/* ==========================================================================
   半岛赛事 / Site Kit — /assets/site.css
   1. Reset  2. 变量  3. 中文排版  4. 布局容器  5. 原子组件  6. 页头  7. 页脚
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-styles: none;
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }
ul[class], ol[class] { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0B1B2B;
  --ink-2: #102A3C;
  --paper: #F5EFE6;
  --orange: #E4572E;
  --gold: #F2A541;
  --jade: #1F7A6B;
  --cyan: #2BD9C4;
  --violet: #7A6CFF;
  --mist: #8FA3B8;
  --char: #0E1620;
  --ink-soft: #33485C;

  /* 字体 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 6px;
  --cut: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* 滚动进度（由 JS 写入） */
  --scroll-progress: 0;
}

@media (max-width: 1180px) {
  :root { --header-h: 64px; }
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: inherit;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.display-1 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 900;
}

.display-2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 900;
}

.display-3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.32;
  letter-spacing: -.015em;
  font-weight: 800;
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section--ink .lede,
.section--deep .lede,
.panel--dark .lede { color: var(--mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jade);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .75;
  flex: none;
}

.section--ink .eyebrow,
.section--deep .eyebrow,
.panel--dark .eyebrow { color: var(--cyan); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 72ch;
  margin-bottom: clamp(24px, 3vw, 44px);
}

:where(h1, h2, h3, h4, [id]) {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ---------- 4. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(32px, 4.5vw, 60px); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--deep { background: var(--ink-2); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.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)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 原子组件 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* 焦点环 */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.section--paper a:focus-visible,
.section--paper button:focus-visible,
.panel a:focus-visible {
  outline-color: var(--violet);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              box-shadow .18s var(--ease), transform .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #08131F;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset;
}

.btn--primary:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(245, 239, 230, .34);
}

.btn--ghost:hover {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(11, 27, 43, .24);
}

.btn--quiet:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
  background: rgba(11, 27, 43, .07);
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag--orange { background: rgba(228, 87, 46, .14); color: #AC3917; }
.tag--gold   { background: rgba(242, 165, 65, .22); color: #7B5210; }
.tag--jade   { background: rgba(31, 122, 107, .16); color: #165E53; }
.tag--violet { background: rgba(122, 108, 255, .16); color: #4536C9; }

.tag--on-dark {
  background: rgba(43, 217, 196, .12);
  color: var(--cyan);
}

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--mist);
}

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

.crumbs a:hover { color: var(--cyan); }

.crumbs__sep {
  width: 10px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}

.crumbs [aria-current="page"] {
  color: var(--gold);
  letter-spacing: .08em;
}

.section--paper .crumbs { color: var(--ink-soft); }
.section--paper .crumbs a:hover { color: var(--orange); }
.section--paper .crumbs [aria-current="page"] { color: #A8481F; }

/* 面板（专题研究板 / 切角） */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: #FFFDF9;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(11, 27, 43, .1), 0 1px 0 rgba(11, 27, 43, .04);
}

.panel--cut { overflow: hidden; }

.panel--cut::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: var(--gold);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
}

.panel--dark {
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(143, 163, 184, .22);
}

.panel--dark.panel--cut::before { background: var(--cyan); }

/* 图片容器基础规则（页面阶段填充 <img>） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--ink-2);
  background-image:
    radial-gradient(circle at 78% 18%, rgba(242, 165, 65, .35) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 82%, rgba(43, 217, 196, .3) 0 3px, transparent 4px),
    linear-gradient(140deg, #102A3C 0%, #0B1B2B 55%, #12312C 100%);
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(143, 163, 184, .18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 163, 184, .18) 1px, transparent 1px);
  background-size: 64px 64px;
  mix-blend-mode: screen;
  opacity: .6;
}

.media > img,
.media > picture > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

@media (max-width: 640px) {
  .media--wide { aspect-ratio: 16 / 10; }
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: rgba(11, 27, 43, .55);
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--gold) 46%, var(--cyan) 100%);
  transition: transform .12s linear;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(143, 163, 184, .18);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--orange), var(--gold) 34%, var(--cyan) 68%, rgba(43, 217, 196, 0) 100%);
  opacity: .85;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  flex: none;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(90deg, rgba(43, 217, 196, .38) 1px, transparent 1px),
    linear-gradient(0deg, rgba(43, 217, 196, .38) 1px, transparent 1px);
  background-size: 10px 10px;
  box-shadow: inset 0 0 0 1px rgba(43, 217, 196, .55);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: box-shadow .18s var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 165, 65, .2);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 3px rgba(43, 217, 196, .16);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper);
}

.brand__sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--mist);
  white-space: nowrap;
}

/* 导航 + 工具组 */
.site-header__nav-wrap {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
  min-width: 0;
}

.site-nav { min-width: 0; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 5px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              box-shadow .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background: rgba(143, 163, 184, .13);
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(43, 217, 196, .1);
  box-shadow: inset 0 -2px 0 0 var(--cyan);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.search-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mist);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(143, 163, 184, .28);
  transition: color .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease);
}

.search-link:hover,
.search-link:focus-visible {
  color: var(--paper);
  background: rgba(43, 217, 196, .08);
  box-shadow: inset 0 0 0 1px rgba(43, 217, 196, .6);
}

.search-link__icon {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-link__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: 0 50%;
}

.search-link__label { line-height: 1; }

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.follow-link:hover,
.follow-link:focus-visible {
  background: rgba(122, 108, 255, .18);
  color: #CFCAFF;
}

.follow-link__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(122, 108, 255, .22);
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  margin-left: 4px;
  font-size: .85rem;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(143, 163, 184, .34);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  flex: none;
  transition: box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(143, 163, 184, .12);
  box-shadow: inset 0 0 0 1px rgba(43, 217, 196, .55);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}

.nav-toggle__text { line-height: 1; }

.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉 */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }

  .site-header__nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 79;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 28px;
    background: linear-gradient(180deg, #0B1B2B 0%, #0A1724 100%);
    background-image:
      linear-gradient(90deg, rgba(143, 163, 184, .09) 1px, transparent 1px),
      linear-gradient(0deg, rgba(143, 163, 184, .09) 1px, transparent 1px),
      linear-gradient(180deg, #0B1B2B 0%, #0A1724 100%);
    background-size: 72px 72px, 72px 72px, auto;
    border-bottom: 1px solid rgba(143, 163, 184, .22);
    box-shadow: 0 26px 50px rgba(0, 0, 0, .48);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }

  .site-header[data-open] .site-header__nav-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav { width: 100%; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(143, 163, 184, .14);
    font-size: 1rem;
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(43, 217, 196, .08);
    box-shadow: inset 3px 0 0 0 var(--cyan);
  }

  .header-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(143, 163, 184, .18);
  }

  .search-link,
  .follow-link {
    justify-content: flex-start;
    border-radius: var(--radius);
    padding: 0 14px;
  }

  .search-link { box-shadow: inset 0 0 0 1px rgba(143, 163, 184, .28); }

  .header-cta {
    width: 100%;
    margin-left: 0;
    min-height: 48px;
  }
}

@media (max-width: 1180px) {
  html.nav-is-open { overflow: hidden; }
}

/* 极窄屏：隐藏拉丁副标，保证品牌块不换行 */
@media (max-width: 380px) {
  .brand__mark { width: 34px; height: 34px; }
  .brand__sub { display: none; }
  .nav-toggle__text { display: none; }
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 6vw, 76px);
  background-color: var(--char);
  background-image: linear-gradient(180deg, #0E1620 0%, #0B1B2B 100%);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(143, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 163, 184, .08) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--orange), var(--gold) 40%, var(--jade) 72%, rgba(43, 217, 196, 0) 100%);
  opacity: .9;
}

.footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, 1fr));
  gap: clamp(24px, 3.5vw, 52px);
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer__mark {
  flex: none;
  width: 34px;
  height: 34px;
  background-color: var(--ink-2);
  background-image:
    linear-gradient(90deg, rgba(43, 217, 196, .4) 1px, transparent 1px),
    linear-gradient(0deg, rgba(43, 217, 196, .4) 1px, transparent 1px);
  background-size: 9px 9px;
  box-shadow: inset 0 0 0 1px rgba(43, 217, 196, .5);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer__name {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--paper);
}

.footer__name span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--mist);
}

.footer__line {
  font-size: .86rem;
  font-weight: 600;
  color: var(--paper);
}

.footer__tagline {
  max-width: 22ch;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__list {
  display: flex;
  flex-direction: column;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .875rem;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer__link::before {
  content: "";
  flex: none;
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--cyan);
  transition: width .22s var(--ease), margin-right .22s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible { color: var(--paper); }

.footer__link:hover::before,
.footer__link:focus-visible::before {
  width: 14px;
  margin-right: 8px;
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 30px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 26px;
  border-top: 1px solid rgba(143, 163, 184, .16);
}

.footer__contact-item { min-width: 0; }

.footer__contact-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold);
}

.footer__contact-value {
  display: block;
  font-size: .86rem;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.footer__contact-item--mono .footer__contact-value {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .01em;
}

.footer__note {
  max-width: 70ch;
  margin-top: 22px;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--mist);
}

.footer__note-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 165, 65, .42);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer__note-link:hover,
.footer__note-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 26px;
  padding: 16px 0 28px;
  border-top: 1px solid rgba(143, 163, 184, .13);
  font-size: .76rem;
  color: var(--mist);
}

.footer__sep {
  width: 14px;
  height: 1px;
  background: rgba(143, 163, 184, .5);
  flex: none;
}

.footer__meta [data-year] {
  font-family: var(--font-mono);
  color: var(--gold);
}

@media (max-width: 980px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .footer__contact { grid-template-columns: minmax(0, 1fr); }
  .footer__sep { display: none; }
  .footer__meta { gap: 6px 14px; }
}

@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

/* ---------- 动效与无障碍降级 ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress__bar { transition: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .btn--primary:hover,
  .footer__link:hover::before,
  .footer__link:focus-visible::before { transform: none; }
}
