:root {
  --ink: #0D1B2A;
  --ink-deep: #060D15;
  --slate: #232E3B;
  --slate-deep: #18222D;
  --mist: #8E97A3;
  --paper: #F3EFE6;
  --cyan: #3FE0C6;
  --ember: #FF6A45;
  --sand: #D9B36C;
  --moss: #7A9B70;
  --clay: #B56A46;

  --hair: rgba(243, 239, 230, .13);
  --hair-2: rgba(243, 239, 230, .26);
  --glass: rgba(13, 27, 42, .78);
  --glass-slate: rgba(35, 46, 59, .66);

  --shell: min(1280px, 100% - 3rem);
  --cap: 999px;
  --r: 2px;
  --ease: cubic-bezier(.2, .65, .3, 1);

  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(243, 239, 230, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 239, 230, .022) 1px, transparent 1px),
    radial-gradient(110% 70% at 82% -8%, rgba(63, 224, 198, .10), transparent 58%),
    radial-gradient(80% 60% at 4% 2%, rgba(255, 106, 69, .065), transparent 52%);
  background-size: 88px 88px, 88px 88px, 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, fixed, fixed;
}

::selection {
  background: var(--cyan);
  color: #04211C;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.18;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s var(--ease);
}

img, svg, video { max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

main { display: block; }

/* ---------- 无障碍跳转 ---------- */
.skip-link {
  position: fixed;
  top: .6rem;
  left: 50%;
  z-index: 200;
  padding: .6rem 1.1rem;
  border-radius: var(--cap);
  background: var(--cyan);
  color: #04211C;
  font-size: .82rem;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform .22s var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 容器 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}
.shell--tight {
  width: min(780px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: .85rem 0 .95rem;
  transition: padding .26s var(--ease);
}
.site-head[data-scrolled] { padding: .42rem 0 .5rem; }

.head-rail {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .6rem;
}

.island {
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--cap);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

/* 品牌岛 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  padding: .44rem .95rem .44rem .48rem;
  flex: none;
  transition: background-color .18s var(--ease);
}
.brand-mark:hover { background: rgba(35, 46, 59, .52); }

.brand-glyph {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--hair-2);
  border-radius: 1px;
  background: linear-gradient(135deg, rgba(63, 224, 198, .26), rgba(13, 27, 42, 0) 62%);
}
.brand-glyph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--cyan);
}
.brand-glyph::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-tag {
  font-size: .7rem;
  color: var(--mist);
  letter-spacing: .05em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 12rem;
  transition: max-width .3s var(--ease), opacity .2s var(--ease);
}
.site-head[data-scrolled] .brand-tag {
  max-width: 0;
  opacity: 0;
}

/* 栏目岛 */
.nav-capsule {
  justify-self: center;
  display: flex;
  align-items: center;
  padding: .26rem;
  max-width: 100%;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-link {
  display: inline-block;
  padding: .46rem .82rem;
  border-radius: var(--cap);
  font-size: .845rem;
  font-weight: 600;
  color: rgba(243, 239, 230, .7);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(243, 239, 230, .07);
}
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(63, 224, 198, .12);
  box-shadow: inset 0 0 0 1px rgba(63, 224, 198, .34);
}

.nav-tail { display: none; }

.nav-stamp {
  display: flex;
  align-items: center;
  gap: .48rem;
  margin: 0;
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--mist);
}

/* 工具岛 */
.head-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-self: end;
}

.stamp-cap {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  margin: 0;
  padding: .44rem .82rem;
  border-radius: var(--cap);
  border: 1px solid var(--hair);
  background: var(--glass-slate);
  color: var(--mist);
  font-size: .74rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  animation: dot-pulse 2.6s var(--ease) infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 224, 198, .55); }
  70% { box-shadow: 0 0 0 7px rgba(63, 224, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 224, 198, 0); }
}

.cta-chip {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: var(--cap);
  background: var(--ember);
  color: #1B0A04;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.cta-chip:hover {
  background: #FF8264;
  transform: translateY(-1px);
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .88rem .5rem .72rem;
  border: 1px solid var(--hair);
  border-radius: var(--cap);
  background: var(--glass-slate);
  color: var(--paper);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* 阅读进度 */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(243, 239, 230, .05);
  overflow: hidden;
}
.scroll-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--ember));
}

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: 5rem;
  background: var(--ink-deep);
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--ember), transparent);
  opacity: .55;
}
.foot-shell {
  width: var(--shell);
  margin-inline: auto;
  padding: 3.2rem 0 1.8rem;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(200px, 22%) 1fr;
  gap: 2.8rem;
  align-items: start;
  padding-bottom: 2.6rem;
}

.foot-brand { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.brand-mark--foot {
  padding: .4rem .9rem .4rem .44rem;
  background: rgba(243, 239, 230, .04);
}
.foot-brand__line {
  margin: 0;
  font-size: .8rem;
  color: var(--mist);
  letter-spacing: .03em;
  line-height: 1.7;
}

.foot-index { border-top: 1px solid var(--hair); }
.foot-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 7.5rem) minmax(0, 1fr);
  align-items: baseline;
  gap: .9rem;
  padding: .82rem .3rem;
  border-bottom: 1px solid var(--hair);
  color: var(--paper);
  transition: background-color .18s var(--ease), padding-inline .18s var(--ease);
}
.foot-row:hover {
  background: rgba(243, 239, 230, .045);
  padding-inline: .85rem .3rem;
}
.foot-row--insights { --c: var(--cyan); }
.foot-row--download { --c: var(--ember); }
.foot-row--guide    { --c: var(--sand); }
.foot-row--culture  { --c: var(--moss); }
.foot-row--consult  { --c: var(--clay); }

.foot-row__idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--c, var(--mist));
}
.foot-row__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: -.005em;
}
.foot-row__note {
  font-size: .78rem;
  color: var(--mist);
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
  font-size: .78rem;
  color: var(--mist);
}
.foot-contact { margin: 0; }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
}
.foot-legal a { color: var(--mist); }
.foot-legal a:hover { color: var(--cyan); }
.foot-mark {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .74rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--cap);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn--sm { padding: .56rem 1rem; font-size: .82rem; }
.btn--ember { background: var(--ember); color: #1B0A04; }
.btn--ember:hover { background: #FF8264; transform: translateY(-1px); }
.btn--cyan { background: var(--cyan); color: #04211C; }
.btn--cyan:hover { background: #6BEDD8; transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--hair-2);
  color: var(--paper);
  background: rgba(243, 239, 230, .03);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  color: var(--mist);
  letter-spacing: .03em;
}
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before {
  content: "/";
  color: rgba(142, 151, 163, .55);
}
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; font-size: 16.5px; }
.prose h2 {
  margin: 2.8rem 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -.02em;
}
.prose h3 { margin: 2rem 0 .8rem; font-size: 1.1rem; }
.prose p { margin-bottom: 1.15rem; }
.prose ul { margin: 0 0 1.2rem; }
.prose ul li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: .5rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: .72rem;
  height: 1px;
  background: var(--cyan);
}
.prose blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 2px solid var(--clay);
  color: rgba(243, 239, 230, .82);
}
.prose code {
  font-family: var(--font-mono);
  font-size: .86em;
  padding: .1em .4em;
  background: rgba(243, 239, 230, .07);
  border-radius: 2px;
}
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(63, 224, 198, .4);
}
.prose a:hover { border-bottom-color: var(--cyan); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--slate);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--cyan);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  padding: .22rem .62rem;
  border: 1px solid currentColor;
  border-radius: var(--cap);
  font-size: .7rem;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--sand);
}
.tag--cyan { color: var(--cyan); }
.tag--ember { color: var(--ember); }
.tag--moss { color: var(--moss); }
.tag--clay { color: var(--clay); }

/* ---------- 数据块 ---------- */
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--cyan);
}
.stat__label {
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--mist);
}

/* ---------- 时间轴刻度 ---------- */
.tick-strip {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hair);
}
.tick {
  position: relative;
  display: block;
  padding: .72rem 0 .72rem 1.15rem;
  font-size: .84rem;
  color: var(--mist);
}
.tick::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 1.3rem;
  width: 7px;
  height: 7px;
  background: var(--slate);
  border: 1px solid var(--hair-2);
  border-radius: 50%;
}
.tick:hover { color: var(--paper); }
.tick.is-current { color: var(--cyan); }
.tick.is-current::before {
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 图片容器 ---------- */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-deep);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.frame--wide { aspect-ratio: 21 / 9; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }
.frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: .6rem .8rem;
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--mist);
  background: linear-gradient(transparent, rgba(6, 13, 21, .88));
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .32s var(--ease) var(--reveal-delay, 0ms),
    transform .32s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  :root { --shell: calc(100% - 1.75rem); }

  .site-head { padding: .6rem 0 .7rem; }
  .site-head[data-scrolled] { padding: .35rem 0 .45rem; }

  .head-rail { grid-template-columns: 1fr auto; gap: .45rem; }
  .brand-tag { display: none; }
  .stamp-cap { display: none; }
  .cta-chip { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-capsule {
    position: fixed;
    left: .8rem;
    right: .8rem;
    bottom: .8rem;
    z-index: 95;
    display: none;
    grid-template-columns: 1fr;
    gap: .18rem;
    padding: .85rem;
    border-radius: 20px;
    background: rgba(6, 13, 21, .97);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .6);
    max-height: min(76vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-capsule[data-open] { display: grid; }

  .nav-list { flex-direction: column; align-items: stretch; gap: .16rem; }
  .nav-link {
    display: block;
    padding: .78rem .95rem;
    border-radius: 12px;
    font-size: .95rem;
  }
  .nav-tail {
    display: grid;
    gap: .7rem;
    margin-top: .55rem;
    padding-top: .75rem;
    border-top: 1px solid var(--hair);
  }
  .nav-tail .btn { width: 100%; }

  .foot-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .foot-shell { padding: 2.4rem 0 6rem; }
  .foot-row {
    grid-template-columns: 2rem minmax(0, 1fr);
    row-gap: .1rem;
  }
  .foot-row__note { grid-column: 2; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 1.15rem); }
  body { font-size: 15.5px; }
  .brand-name { font-size: .9rem; }
  .shell--tight { width: calc(100% - 1.6rem); }
  .foot-shell { padding-bottom: 6.5rem; }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-rail__fill { transition: none !important; }
}
