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

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

:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --ink: #171f26;
  --bg: #e8eff7;
  --surface: #e6eef6;
  --line: rgba(23, 31, 38, 0.16);
  --mute: rgba(23, 31, 38, 0.66);
  --out: -6px -6px 14px rgba(255, 255, 255, 0.92), 6px 6px 16px rgba(23, 31, 38, 0.14);
  --in: inset -4px -4px 9px rgba(255, 255, 255, 0.9), inset 4px 4px 9px rgba(23, 31, 38, 0.11);
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Archivo', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(165deg, #f3f8fc 0%, var(--bg) 46%, #e2ebf5 100%);
  background-attachment: fixed;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

hr {
  border: 0;
  height: 2px;
  border-radius: 2px;
  margin: 1.2rem 0;
  background: linear-gradient(90deg, var(--blue), var(--pink), rgba(23, 31, 38, 0));
}

h2 + hr,
h3 + hr {
  width: 72px;
  height: 3px;
  margin: 0.55rem 0 1.1rem;
  background: var(--ink);
  opacity: 0.85;
}

/* 顶部细条 */
.strip {
  background: var(--ink);
  color: #eef4fa;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-align: center;
}

.strip a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.2rem;
  color: inherit;
  text-decoration: none;
}

.strip a::after { content: "›"; margin-left: 0.45rem; }

/* 页头 */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem clamp(12px, 3vw, 24px) 0.9rem;
  background: rgba(238, 245, 251, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(23, 31, 38, 0.07);
}

.brandrow {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* 菜单 */
.menu {
  position: relative;
  z-index: 95;
  display: flex;
  justify-content: center;
  width: 100%;
}

.menu > summary {
  position: relative;
  z-index: 96;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 44px;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--out);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.menu > summary::-webkit-details-marker { display: none; }

.menu > summary::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.menu > summary:active { transform: scale(0.97); }
.menu[open] > summary { box-shadow: var(--in); }

.menu > menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu[open] > menu {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.12rem;
  padding: 110px 20px 48px;
  overflow: auto;
  overscroll-behavior: contain;
  background: linear-gradient(165deg, #eff6fc, #e0eaf5);
}

.menu > menu > li { width: min(560px, 100%); }

.menu > menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: clamp(1.15rem, 4.6vw, 1.6rem);
  font-weight: 600;
  text-align: center;
}

.menu > menu > li > a:hover {
  background: linear-gradient(145deg, var(--blue), #dcecf8);
  box-shadow: var(--out);
}

.menu > menu > li > a:active { transform: scale(0.98); box-shadow: var(--in); }

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

.menu[open] > menu > li { animation: rise 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.menu[open] > menu > li:nth-child(2) { animation-delay: 0.04s; }
.menu[open] > menu > li:nth-child(3) { animation-delay: 0.08s; }
.menu[open] > menu > li:nth-child(4) { animation-delay: 0.12s; }
.menu[open] > menu > li:nth-child(5) { animation-delay: 0.16s; }
.menu[open] > menu > li:nth-child(6) { animation-delay: 0.2s; }
.menu[open] > menu > li:nth-child(7) { animation-delay: 0.24s; }

/* 主体骨架 */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 30px);
}

div { min-width: 0; }

div article[id],
.hero { scroll-margin-top: 142px; }

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  min-height: calc(100vh - 132px);
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: clamp(28px, 7vw, 72px) clamp(16px, 4vw, 40px);
  overflow: hidden;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(150deg, #f8fbff, #dfeaf5);
  box-shadow: var(--out);
}

.hero-num {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  font-size: clamp(9rem, 40vw, 24rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(23, 31, 38, 0.06);
  user-select: none;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.9rem, 7.4vw, 3.6rem);
}

.hero-dek {
  max-width: 44ch;
  margin: 0;
  color: var(--mute);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
}

/* 正文区块 */
div > article:not(.hero) {
  margin: 0 0 clamp(16px, 2.6vw, 24px);
  padding: clamp(18px, 3.4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(160deg, #f6fafd, #e8f0f8);
  box-shadow: var(--in);
}

div > article:not(.hero) > *:last-child { margin-bottom: 0; }

div h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
div h3 { font-size: clamp(1.1rem, 3vw, 1.28rem); }
div p { color: rgba(23, 31, 38, 0.86); }
div ul,
div ol { margin: 0 0 1em; padding-left: 1.25rem; }
div li { margin: 0.35em 0; }
div a { color: #1d4a6b; text-underline-offset: 3px; }

div blockquote {
  margin: 0 0 1em;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: rgba(200, 224, 244, 0.36);
}

div table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: 0.95rem;
}

div th,
div td {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

/* 侧栏 */
.side {
  padding: 1.1rem 1.15rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(160deg, #f7fbfe, #e6eff8);
  box-shadow: var(--out);
}

.side-h {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
}

.side-list a:hover {
  background: var(--pink);
  border-color: rgba(23, 31, 38, 0.08);
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: clamp(24px, 4vw, 44px) auto 0;
  padding: 0 clamp(14px, 3vw, 30px) clamp(28px, 5vw, 48px);
}

.cta {
  margin-bottom: clamp(16px, 2.6vw, 26px);
  padding: clamp(26px, 5vw, 52px);
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(150deg, var(--pink), #f9eef2);
  box-shadow: var(--out);
}

.cta-h { margin: 0; font-size: clamp(1.4rem, 4.4vw, 2.1rem); }

.cta hr {
  width: 72px;
  height: 3px;
  margin: 1rem auto 1.4rem;
  background: var(--ink);
  opacity: 0.8;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #dfe9f3);
  box-shadow: var(--out);
  font-weight: 700;
  text-decoration: none;
}

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

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.foot-brand { font-weight: 700; }

.foot-nav {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mute);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.copy {
  width: 100%;
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
  text-align: center;
}

@media (min-width: 700px) {
  .foot-nav { flex: 1 1 auto; justify-content: flex-start; }
  .copy { width: auto; margin-left: auto; text-align: right; }
}

@media (min-width: 920px) {
  main {
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
  }
  .side { position: sticky; top: 152px; }
  .hero { min-height: calc(100vh - 150px); }
}

@media (max-width: 480px) {
  .hero { min-height: calc(100vh - 120px); }
  div > article:not(.hero) { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .menu[open] > menu > li { animation: none; }
}

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