@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #171f26;
  --ink-2: #43535f;
  --ink-3: #5d6d79;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --card-a: #f4fafd;
  --card-b: #e5eef7;
  --dark-sh: rgba(23, 31, 38, 0.16);
  --light-sh: rgba(255, 255, 255, 0.95);
  --r: 28px;
  --r-sm: 14px;
  --lift: -6px -6px 16px var(--light-sh), 7px 7px 20px var(--dark-sh);
  --lift-sm: -3px -3px 9px var(--light-sh), 4px 4px 12px var(--dark-sh);
  --press: inset -4px -4px 10px var(--light-sh), inset 4px 4px 10px var(--dark-sh);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Rubik', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 10% -8%, #e7f1fb 0%, rgba(231, 241, 251, 0) 62%),
    radial-gradient(900px 620px at 102% 6%, #fbeaf1 0%, rgba(251, 234, 241, 0) 58%),
    linear-gradient(162deg, #eaf2fa 0%, #fbeef3 56%, #f2f7fb 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, summary, .badge, .cta, .brand-name {
  font-family: 'Rubik', 'Nunito Sans', system-ui, 'Noto Sans SC', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

p, li, a { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
menu { margin: 0; padding: 0; list-style: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

:focus-visible {
  outline: 2px solid #7d9db8;
  outline-offset: 3px;
  border-radius: 10px;
}

.subtitle {
  margin: 0 0 1em;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.62;
}

/* ---------- 顶部两行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px clamp(12px, 3vw, 34px) 10px;
  background: linear-gradient(160deg, rgba(236, 244, 250, 0.95), rgba(251, 238, 243, 0.95));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 24px -22px rgba(23, 31, 38, 0.9);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 18px 6px 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f6fbfe, #e2ecf6);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.brand:active { transform: scale(0.985); box-shadow: var(--press); }

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue), var(--pink));
  box-shadow: var(--press);
}

.brand-name { font-size: 1.08rem; }

.menu-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer { flex: 1 1 auto; min-width: 0; }

.drawer > summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(145deg, #f6fbfe, #e3edf7);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
  user-select: none;
}

.drawer > summary:active { transform: scale(0.98); box-shadow: var(--press); }

.bars {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
  width: 100%;
}

.menu-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 0.96rem;
  color: var(--ink-2);
  background: linear-gradient(145deg, #f4fafd, #e4eef7);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.menu-list a:hover { color: var(--ink); }

.menu-list a:active { transform: scale(0.97); box-shadow: var(--press); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 0.98rem;
  background: linear-gradient(145deg, #d3e6f6, #f8e3eb);
  box-shadow: -5px -5px 13px var(--light-sh), 6px 6px 16px rgba(23, 31, 38, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

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

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 66vh;
  margin-bottom: clamp(16px, 3vw, 34px);
  padding: clamp(34px, 7vw, 82px) clamp(14px, 4vw, 40px) clamp(60px, 9vw, 96px);
  border-radius: 0 0 52% 52% / 0 0 76px 76px;
  background: linear-gradient(150deg, #dbeaf8, #f8e4ec);
  box-shadow: inset -10px -14px 34px rgba(255, 255, 255, 0.72), 0 26px 44px -34px rgba(23, 31, 38, 0.7);
}

.hero-plain { background: linear-gradient(150deg, var(--blue), var(--pink)); }

.hero-media {
  position: absolute;
  inset: -10% 0 0;
  z-index: 0;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 122%;
  object-fit: cover;
  opacity: 0.52;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: clamp(20px, 4vw, 34px) clamp(18px, 4vw, 40px);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(252, 254, 255, 0.88), rgba(252, 240, 246, 0.88));
  backdrop-filter: blur(6px);
  box-shadow: var(--lift);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 15px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  background: linear-gradient(145deg, #eef6fc, #f8e6ee);
  box-shadow: var(--press);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.72rem, 5.1vw, 2.9rem);
  line-height: 1.24;
}

.hero .subtitle {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 1rem;
}

/* ---------- 主区 ---------- */
.stage {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 30px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 32px) 56px;
}

.rail {
  position: sticky;
  top: 18px;
  padding: 22px 16px 18px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #f5fafd, #e4eef7);
  box-shadow: var(--lift);
}

.rail h2 { margin: 0; font-size: 1.04rem; }
.rail .subtitle { margin: 2px 0 14px; font-size: 0.85rem; }

.rail-list { display: grid; gap: 7px; margin-bottom: 14px; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
  background: linear-gradient(145deg, #f8fcfe, #e9f1f9);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.rail-list a:active { transform: scale(0.975); box-shadow: var(--press); }

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 12px;
  border-radius: 11px;
  font-size: 0.9rem;
  color: var(--ink-2);
  box-shadow: var(--press);
}

.body { min-width: 0; }

.body > div {
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: clamp(20px, 3.6vw, 40px);
  border-radius: var(--r);
  background: linear-gradient(145deg, var(--card-a), var(--card-b));
  box-shadow: var(--lift);
  scroll-margin-top: 190px;
  animation: rise 0.5s ease both;
}

.body > div:nth-child(2) { animation-delay: 0.05s; }
.body > div:nth-child(3) { animation-delay: 0.1s; }
.body > div:nth-child(4) { animation-delay: 0.15s; }
.body > div:nth-child(5) { animation-delay: 0.2s; }
.body > div:nth-child(6) { animation-delay: 0.25s; }
.body > div:nth-child(7) { animation-delay: 0.3s; }

.body h2 {
  margin: 0 0 0.45em;
  font-size: clamp(1.28rem, 2.7vw, 1.68rem);
  line-height: 1.34;
}

.body h2 + .subtitle { margin-top: -0.15em; }

.body h3 { margin: 1.5em 0 0.45em; font-size: 1.12rem; }
.body h4 { margin: 1.3em 0 0.4em; font-size: 1.02rem; }

.body p { margin: 0 0 1em; color: var(--ink-2); }
.body ul, .body ol { margin: 0 0 1.1em; padding-left: 1.3em; color: var(--ink-2); }
.body li { margin: 0.35em 0; }

.body a {
  color: #2a3b48;
  border-bottom: 1px solid rgba(23, 31, 38, 0.28);
}

.body strong { color: var(--ink); }

.body figure { margin: 1.2em 0; }
.body figure img { border-radius: var(--r-sm); box-shadow: var(--lift-sm); }
.body blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: linear-gradient(145deg, #eef5fb, #f9ecf2);
  box-shadow: var(--press);
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(12px, 3vw, 32px) 46px;
}

.brand-sm { min-height: 42px; font-size: 0.96rem; }
.brand-sm .mark { width: 24px; height: 24px; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.95rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--ink-2);
}

.foot-nav a:hover { color: var(--ink); }

.foot-legal { display: grid; gap: 10px; justify-items: start; }

.copy { margin: 0; font-size: 0.92rem; color: var(--ink-3); }

.sub { display: flex; gap: 8px; width: 100%; }

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #e6eef7, #f7fbfe);
  box-shadow: var(--press);
}

.sub button {
  min-height: 42px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #d7e8f7, #f8e5ed);
  box-shadow: var(--lift-sm);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.sub button:active { transform: scale(0.97); box-shadow: var(--press); }

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--ink-3);
  padding: 0 4px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 2; }
  .body { order: 1; }
  .body > div { scroll-margin-top: 210px; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .foot-nav { gap: 2px 12px; }
  .hero { border-radius: 0 0 44% 44% / 0 0 54px 54px; min-height: 60vh; }
}

@media (max-width: 560px) {
  .hero { min-height: 56vh; padding-top: 26px; }
  .hero-copy { border-radius: 26px; }
  .cta { padding: 0 16px; font-size: 0.92rem; }
  .menu-list a { padding: 8px 12px; font-size: 0.93rem; }
  .body > div { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-media { transform: none !important; }
}

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