@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --ink: #171f26;
  --sky: #c8e0f4;
  --rose: #f5e0e8;
  --line: rgba(23, 31, 38, 0.14);
  --pop: -6px -6px 16px rgba(255, 255, 255, 0.95), 6px 6px 18px rgba(23, 31, 38, 0.1);
  --sink: inset -4px -4px 10px rgba(255, 255, 255, 0.9), inset 4px 4px 12px rgba(23, 31, 38, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: linear-gradient(160deg, #eef6fd 0%, #fbf1f6 48%, #edf4fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* masthead */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.7rem 1rem 0.55rem;
  background: rgba(240, 247, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 26px rgba(23, 31, 38, 0.07);
}

.mast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #fbe9f1, #eedbe6);
  box-shadow: var(--pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

.jump {
  max-width: 1120px;
  margin: 0.45rem auto 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.jump::-webkit-scrollbar {
  display: none;
}

.jump p {
  display: flex;
  gap: 0.3rem;
  margin: 0;
  min-width: max-content;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  font-size: 1rem;
  color: #3c4a56;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.jump a:hover,
.jump a:focus-visible {
  color: var(--ink);
  box-shadow: var(--pop);
  outline: none;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem 5.5rem;
  min-height: calc(100vh - 7.4rem);
  min-height: calc(100svh - 7.4rem);
  background: linear-gradient(150deg, #d9e9fa 0%, #f6e4ee 100%);
  border-radius: 0 0 46% 46% / 0 0 9% 9%;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 34ch;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(2rem, 6.6vw, 4rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.85);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #fdf3f8, #efdbe6);
  box-shadow: var(--pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

.hero::after {
  content: '';
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 0;
  height: 28px;
  background: linear-gradient(90deg, var(--sky), var(--rose), var(--sky));
  clip-path: polygon(0 62%, 100% 0, 100% 42%, 0 100%);
}

/* shell */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.side {
  position: sticky;
  top: 9rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: #eef4fa;
  box-shadow: var(--pop);
}

.side h3 {
  display: flex;
  align-items: center;
  margin: 0.2rem 0.2rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #44525e;
}

.side h3 span {
  display: inline-flex;
  align-items: center;
}

.side h3 span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky), var(--rose));
  box-shadow: 0 0 0 3px rgba(200, 224, 244, 0.6);
}

.side h3 a {
  color: inherit;
  text-decoration: none;
}

.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.side li a {
  display: block;
  padding: 0.55rem 0.7rem;
  min-height: 42px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.7;
  color: #3a4854;
  text-decoration: none;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.side li a:hover,
.side li a:focus-visible {
  color: var(--ink);
  box-shadow: var(--pop);
  outline: none;
}

.side-sec {
  margin-top: 1rem;
}

/* section body */
.doc {
  min-width: 0;
}

.doc > article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  margin: 0 0 1.6rem;
  background: rgba(255, 255, 255, 0.55);
  scroll-margin-top: 9.6rem;
}

.doc > article:last-child {
  margin-bottom: 0;
}

.doc h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc h2 span {
  position: relative;
  display: inline-block;
}

.doc h2 span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--sky), var(--rose));
  opacity: 0.9;
}

.doc h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.doc p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.doc ul,
.doc ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.doc li {
  margin: 0.35rem 0;
}

.doc a {
  color: #1b4a6e;
  text-underline-offset: 3px;
}

.doc img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 14px;
}

.doc blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--sky);
  border-radius: 0 14px 14px 0;
  background: rgba(245, 224, 232, 0.5);
}

.doc blockquote p:last-child {
  margin-bottom: 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.doc th,
.doc td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.doc strong {
  font-weight: 700;
}

/* footer */
.base {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  border-top: 1px solid var(--line);
}

.base p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  font-size: 1rem;
  color: #44525e;
}

.base a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  color: #3a4854;
  text-decoration: none;
  font-size: 1rem;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.base a:hover,
.base a:focus-visible {
  color: var(--ink);
  box-shadow: var(--pop);
  outline: none;
}

/* reveal */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 880px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding-top: 1.4rem;
  }

  .side {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side::-webkit-scrollbar {
    display: none;
  }

  .side h3 {
    flex: none;
    margin: 0;
    font-size: 1rem;
  }

  .side ul {
    display: flex;
    gap: 0.35rem;
    min-width: max-content;
  }

  .side li a {
    white-space: nowrap;
    min-height: 40px;
  }

  .side-sec {
    display: none;
  }

  .hero {
    border-radius: 0 0 34% 34% / 0 0 6% 6%;
    padding-bottom: 4.5rem;
  }

  .base {
    justify-content: flex-start;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
