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

:root {
  --ink: #171f26;
  --ink-2: #42525f;
  --bg: #e7eef6;
  --bg-hi: #f4f9fe;
  --rose: #f5e0e8;
  --sky: #c8e0f4;
  --r: 14px;
  --sh: 7px 7px 18px rgba(23, 31, 38, .13), -7px -7px 18px rgba(255, 255, 255, .95);
  --sh-sm: 4px 4px 10px rgba(23, 31, 38, .1), -4px -4px 10px rgba(255, 255, 255, .9);
  --sh-in: inset 3px 3px 8px rgba(23, 31, 38, .14), inset -3px -3px 8px rgba(255, 255, 255, .9);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: 104px;
  background:
    radial-gradient(1100px 520px at 84% -12%, #f8f1f5 0%, rgba(248, 241, 245, 0) 62%),
    radial-gradient(920px 520px at 4% 6%, #d6e8f8 0%, rgba(214, 232, 248, 0) 58%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

.skip {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-hi);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* 底部固定胶囊导航 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(231, 238, 246, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 26px rgba(23, 31, 38, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.dock-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, #fdfeff, #e1eaf4);
  box-shadow: var(--sh-sm);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dock-brand:active { transform: scale(.97); box-shadow: var(--sh-in); }

.dock-pills {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.dock-pills::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f3f8fd, #dce6f1);
  box-shadow: var(--sh-sm);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.pill:hover { color: var(--ink); transform: translateY(-1px); }
.pill:active { transform: translateY(1px) scale(.97); box-shadow: var(--sh-in); }

/* 主区域 */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 26px;
  align-items: start;
}

.sheet {
  background: linear-gradient(160deg, #f5fafe, #dfe9f4);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 38px);
  box-shadow: var(--sh);
}

.hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 6px 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 17px;
  border-radius: 999px;
  background: linear-gradient(145deg, #fdf4f8, #efdae3);
  box-shadow: var(--sh-sm);
  font-size: 16px;
  line-height: 1;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .5;
  box-shadow: 0 0 0 4px rgba(23, 31, 38, .08);
}

h1 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero-sub {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
}

.hero .subtitle {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* 正文 */
.sheet > section {
  scroll-margin-top: 28px;
  margin-top: 30px;
  padding: 34px 0 6px;
  border-top: 1px solid rgba(23, 31, 38, .08);
}

.sheet h2 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -.01em;
}

.sheet h3 {
  margin: 24px 0 8px;
  font-size: 1.14rem;
  line-height: 1.45;
}

.sheet p { margin: 0 0 14px; color: var(--ink-2); }

.sheet ul,
.sheet ol { margin: 0 0 16px; padding-left: 1.3em; color: var(--ink-2); }
.sheet li { margin: .35em 0; }

.sheet a {
  color: var(--ink);
  text-decoration-color: rgba(23, 31, 38, .35);
  text-underline-offset: 3px;
}

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

.sheet img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 12px;
  box-shadow: var(--sh-sm);
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f7f1f4, #e3ecf6);
  box-shadow: var(--sh);
}

.rail-tag {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-2);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f5fafe, #e2ebf5);
  box-shadow: var(--sh-sm);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.rail-list a:hover { color: var(--ink); transform: translateY(-1px); }
.rail-list a:active { box-shadow: var(--sh-in); transform: scale(.98); }

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 18px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.foot > section {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f6fafe, #dde8f3);
  box-shadow: var(--sh);
}

.foot-mark {
  display: inline-block;
  margin: 0 0 10px;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.7rem, 7.4vw, 2.5rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  word-break: break-word;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .8);
}

.foot-lead {
  margin: 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.foot nav dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}

.foot dt {
  font-size: 16px;
  line-height: 1;
  color: var(--ink-2);
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f6fbff, #e4edf6);
  box-shadow: var(--sh-sm);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.foot dd a:hover { transform: translateY(-1px); }
.foot dd a:active { box-shadow: var(--sh-in); transform: scale(.98); }

.foot-base {
  grid-column: 1 / -1;
  text-align: center;
}
.foot-base p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
}

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; padding-top: 18px; }
  .rail { position: static; }
  .rail-list { flex-direction: row; flex-wrap: wrap; }
  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  body { padding-bottom: 112px; }
  .dock { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .dock-brand { padding: 0 12px; }
  .pill { padding: 0 12px; }
  .wrap, .foot { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

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