@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --ink: #171f26;
  --ink-soft: #3f4d59;
  --link: #22618d;
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --base: #e9f1f9;
  --card-a: #edf5fc;
  --card-b: #faefF4;
  --hi: #ffffff;
  --lo: rgba(23, 31, 38, 0.13);
  --r: 14px;
  --up: -6px -6px 14px rgba(255, 255, 255, 0.95), 7px 7px 18px var(--lo);
  --down: inset 3px 3px 6px rgba(23, 31, 38, 0.16), inset -3px -3px 6px rgba(255, 255, 255, 0.95);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: 108px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink);
  background: linear-gradient(158deg, #dbeaf7 0%, #eef4fa 44%, #f9ecf1 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.veil-open { overflow: hidden; }

a { color: var(--link); }

h1, h2, h3 { color: var(--ink); font-weight: 800; }

hr {
  border: 0;
  height: 2px;
  border-radius: 2px;
  margin: 10px 0 16px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  box-shadow: inset 1px 1px 2px rgba(23, 31, 38, 0.1), inset -1px -1px 2px #ffffff;
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: rgba(238, 245, 251, 0.92);
  box-shadow: 0 -10px 26px rgba(23, 31, 38, 0.13), inset 0 1px 0 #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dock-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.dock-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, var(--pink), #fbebf1);
  box-shadow: -3px -3px 8px #ffffff, 4px 4px 10px var(--lo);
}

.burger {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(145deg, #eef6fd, #f9edf3);
  box-shadow: -4px -4px 10px #ffffff, 4px 4px 11px var(--lo);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.burger:active,
.dock-cta:active {
  transform: scale(0.96);
  box-shadow: var(--down);
}

/* 全屏遮罩菜单 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 20px 44px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  background: linear-gradient(162deg, #e2eef9 0%, #f8eaf1 100%);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

body.veil-open .veil {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.veil-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(145deg, #eff6fd, #faedf3);
  box-shadow: -4px -4px 10px #ffffff, 4px 4px 11px var(--lo);
}

.veil-close:active { box-shadow: var(--down); }

.veil-nav { width: 100%; }

.veil-nav ol {
  counter-reset: navc;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(540px, 100%);
  display: grid;
  gap: 10px;
}

.veil-nav li { counter-increment: navc; }

.veil-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #eff6fd, #faedf3);
  box-shadow: var(--up);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.veil-nav a::before {
  content: counter(navc, decimal-leading-zero);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.veil-nav a:active {
  transform: scale(0.985);
  box-shadow: var(--down);
}

/* 主区 */
.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 18px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 26px;
  align-items: start;
}

.doc { min-width: 0; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 46px 26px;
  border-radius: 22px;
  background: linear-gradient(145deg, #e9f4fd, #f9edf3);
  box-shadow: -8px -8px 22px #ffffff, 10px 10px 28px var(--lo);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 31, 38, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 var(--py, 0);
  opacity: 0.5;
  pointer-events: none;
}

.hero > * { position: relative; }

.brand-mark {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 48ch;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

/* 正文区块 */
.doc > div {
  position: relative;
  margin-top: 26px;
  padding: 24px 24px 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--card-a), var(--card-b));
  box-shadow: -6px -6px 14px rgba(255, 255, 255, 0.95), 7px 7px 19px rgba(23, 31, 38, 0.1);
  scroll-margin-top: 24px;
}

.doc > div::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 13px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
}

.doc > div > h2,
.doc h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.doc h3 {
  margin: 22px 0 6px;
  font-size: 1.1rem;
  line-height: 1.4;
}

.doc p { margin: 12px 0; }

.doc ul,
.doc ol {
  margin: 12px 0;
  padding-left: 1.25em;
}

.doc li { margin: 6px 0; }

.doc a { text-decoration: underline; text-underline-offset: 3px; }

.doc img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--up);
}

.doc blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--down);
}

.doc code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
}

/* 右侧栏 */
.side {
  position: sticky;
  top: 20px;
  padding: 20px 18px 22px;
  border-radius: var(--r);
  background: linear-gradient(145deg, #f8edf3, #e9f2fb);
  box-shadow: -6px -6px 14px #ffffff, 7px 7px 19px rgba(23, 31, 38, 0.11);
}

.side-t {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  font-weight: 800;
}

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

.side-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #eff6fd, #faeef4);
  box-shadow: -3px -3px 8px #ffffff, 3px 3px 9px rgba(23, 31, 38, 0.09);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.side-list a:active {
  transform: scale(0.98);
  box-shadow: var(--down);
}

.side-top {
  display: block;
  margin-top: 16px;
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #dcebf8, #f8e6ee);
  box-shadow: -3px -3px 8px #ffffff, 4px 4px 10px var(--lo);
}

.side-top:active { box-shadow: var(--down); }

/* 页脚 */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 18px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  border-top: 1px solid rgba(23, 31, 38, 0.1);
}

.foot-brand { flex: 0 0 auto; }

.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.foot nav { flex: 1 1 320px; }

.foot nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.foot nav a:active { box-shadow: var(--down); }

.copy {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* 滚动出现 */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 16px;
  }

  .side {
    position: static;
    order: 2;
  }

  .hero {
    min-height: 66vh;
    padding: 38px 20px;
    border-radius: 18px;
  }

  .doc > div {
    padding: 20px 18px 28px;
  }

  .doc > div::after {
    left: 18px;
    right: 18px;
  }
}

@media (max-width: 420px) {
  body { padding-bottom: 96px; }

  .dock { padding-left: 12px; padding-right: 12px; }

  .dock-cta { display: none; }

  .hero h1 { font-size: 2rem; }

  .foot { gap: 8px 12px; }
}

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

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

  .burger,
  .veil,
  .side-list a { transition: none; }
}

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