/* ==========================================================================
   半岛看台 · 共享站点样式  /assets/site.css
   夜间看台体系：深海墨蓝铺底，暖橙聚光，琥珀金标轮次，青蓝仅封存于平板入口
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

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

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

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* 色彩 */
  --ink-900: #0B1B2B;      /* 深海墨蓝 · 全站基底 */
  --ink-800: #12263A;      /* 夜幕蓝 · 分区与卡片 */
  --ink-750: #17304a;      /* 卡片提亮 */
  --line: #23384D;         /* 边线蓝灰 · 轨道刻度 */
  --orange: #FF7A2F;       /* 看台暖橙 */
  --orange-dim: rgba(255, 122, 47, .14);
  --amber: #F5B942;        /* 琥珀金 · 轮次与更新 */
  --green: #3FBF6F;        /* 球场草绿 · 正向指标 */
  --cyan: #2BC4D8;         /* 青蓝渐变起 */
  --blue: #4A6CF7;         /* 青蓝渐变终 */
  --paper: #F2F5F7;        /* 米白正文 */
  --paper-soft: #DCE6ED;
  --mist: #A9B8C6;         /* 雾灰辅助 */
  --mist-dim: #8FA3B5;

  --grad-tablet: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);

  /* 字体 */
  --f-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, "DejaVu Sans Mono", Consolas, monospace;

  /* 字阶 12 / 14 / 16 / 20 / 26 / 34 / 48 / 64 / 88 */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: clamp(1.125rem, 0.98rem + 0.45vw, 1.25rem);
  --fs-26: clamp(1.25rem, 1.02rem + 0.72vw, 1.625rem);
  --fs-34: clamp(1.5rem, 1.14rem + 1.3vw, 2.125rem);
  --fs-48: clamp(1.85rem, 1.22rem + 2.4vw, 3rem);
  --fs-64: clamp(2.1rem, 1.24rem + 3.5vw, 4rem);
  --fs-88: clamp(2.4rem, 1.1rem + 5.2vw, 5.5rem);

  /* 度量 */
  --content-w: 1240px;
  --gutter: clamp(18px, 4vw, 96px);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- 3. Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: var(--fs-16);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: var(--fs-48); }
h2 { font-size: var(--fs-34); }
h3 { font-size: var(--fs-26); }
h4 { font-size: var(--fs-20); }

p { text-wrap: pretty; }

::selection {
  background: rgba(255, 122, 47, .32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0.01em;
}

.display-xl {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 88%;
  font-size: var(--fs-64);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}

.display-md {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 88%;
  font-size: var(--fs-34);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--f-serif);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.section-label::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  flex: none;
}

/* ---------- 5. 报头 / site-header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  isolation: isolate;
  color: var(--paper);
  background-color: rgba(11, 27, 43, .94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: box-shadow .18s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(35, 56, 77, .9), 0 26px 52px -34px rgba(0, 0, 0, .95);
}

.header-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vw 160px at 50% -96px, rgba(43, 196, 216, .18), transparent 72%),
    radial-gradient(26vw 130px at 92% -70px, rgba(255, 122, 47, .16), transparent 70%);
}

.header-progress {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 999;
  padding: 10px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--orange);
  color: #170800;
  font-size: var(--fs-14);
  font-weight: 700;
  text-decoration: none;
  transition: top .16s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* 报头网格 */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(12px, 1.8vw, 20px);
  transition: padding-block .18s var(--ease);
}

.site-header.is-scrolled .masthead {
  padding-block: clamp(8px, 1.1vw, 12px);
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.masthead-side--end {
  justify-content: flex-end;
}

.masthead-kicker {
  font-family: var(--f-serif);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--paper);
  padding-right: 14px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.masthead-tagline {
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}

/* 刊名 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--paper);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

.brand-mark {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(23px, 2.6vw, 36px);
  line-height: 1.04;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--paper);
  white-space: nowrap;
  transition: color .12s var(--ease), text-shadow .12s var(--ease);
}

.brand:hover .brand-mark {
  color: #fff;
  text-shadow: 0 0 26px rgba(255, 122, 47, .45);
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mist);
  white-space: nowrap;
}

/* 胶囊 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--f-serif);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease),
              background-color .12s var(--ease), color .12s var(--ease),
              border-color .12s var(--ease);
}

.pill--primary {
  background: var(--orange);
  color: #170800;
  box-shadow: 0 8px 22px -12px rgba(255, 122, 47, .95);
}

.pill--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px rgba(255, 122, 47, 1);
}

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

.pill--tablet {
  background: var(--grad-tablet);
  color: #04131f;
  box-shadow: 0 8px 22px -14px rgba(74, 108, 247, .95);
}

.pill--tablet:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(74, 108, 247, 1);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .72;
  flex: none;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 38, 58, .78);
  color: var(--paper);
  cursor: pointer;
  flex: none;
  transition: border-color .12s var(--ease), background-color .12s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(255, 122, 47, .55);
  background: rgba(255, 122, 47, .12);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .16s var(--ease);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 6. 栏目行 / site-nav ---------- */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
  background-color: rgba(11, 27, 43, .62);
}

.nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  display: flex;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 11px clamp(9px, 1.3vw, 20px);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-family: var(--f-serif);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s var(--ease), background-color .12s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background-color: var(--orange-dim);
}

.nav-link[aria-current="page"] {
  color: var(--paper);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

/* 联赛专题：宽度加倍并持续高亮 */
.nav-item--feature {
  flex: 2 1 auto;
}

.nav-link--feature {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--paper);
  background-image: linear-gradient(180deg, rgba(255, 122, 47, .16), rgba(255, 122, 47, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 122, 47, .22);
}

.nav-link--feature:hover {
  background-image: linear-gradient(180deg, rgba(255, 122, 47, .26), rgba(255, 122, 47, .07));
}

.nav-link--feature[aria-current="page"]::after {
  left: 14px;
  right: 14px;
}

.nav-flag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--amber);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 66, .3);
  background: rgba(245, 185, 66, .1);
  white-space: nowrap;
}

/* ---------- 7. 页脚 / site-footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background-color: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.footer-rail {
  height: 12px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 44px);
  opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4.5vw, 72px);
  padding-block: clamp(36px, 5.5vw, 68px) clamp(24px, 3.4vw, 40px);
}

.footer-brand {
  min-width: 0;
}

.footer-masthead {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  color: var(--paper);
  margin: 0 0 10px;
}

.footer-brand-line {
  margin: 0 0 20px;
  max-width: 24em;
  font-size: var(--fs-14);
  color: var(--mist);
}

.footer-cta {
  margin-bottom: 18px;
}

.footer-update {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(245, 185, 66, .26);
  background: rgba(245, 185, 66, .08);
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.05em;
  color: var(--amber);
}

.footer-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  box-shadow: 0 0 0 0 rgba(245, 185, 66, .55);
  animation: footerPulse 2.6s var(--ease-out) infinite;
}

@keyframes footerPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 185, 66, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(245, 185, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0); }
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin: 0 0 14px;
  font-family: var(--f-serif);
  font-size: var(--fs-14);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.2em;
  color: var(--amber);
  line-height: 1.4;
}

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

.footer-link {
  display: inline-block;
  font-size: var(--fs-14);
  color: var(--mist);
  text-decoration: none;
  transition: color .12s var(--ease), transform .12s var(--ease);
}

.footer-link:hover {
  color: var(--paper);
  transform: translateX(2px);
}

.footer-meta {
  display: grid;
  gap: 10px;
  padding-block: clamp(20px, 3vw, 30px) clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.footer-contact {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--mist);
  line-height: 1.8;
}

.footer-service {
  margin: 0;
  max-width: 78ch;
  font-size: var(--fs-12);
  line-height: 1.8;
  color: var(--mist-dim);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 56, 77, .65);
}

.footer-legal,
.footer-copy {
  margin: 0;
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--mist-dim);
}

/* ---------- 8. 通用组件 ---------- */
/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-family: var(--f-serif);
  font-size: var(--fs-12);
  letter-spacing: 0.07em;
  color: var(--mist);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color .12s var(--ease);
}

.breadcrumb a:hover { color: var(--amber); }

.breadcrumb [aria-current="page"] {
  color: var(--paper);
}

/* 正文 */
.prose {
  max-width: 38em;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--paper-soft);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  font-family: var(--f-serif);
  font-stretch: 100%;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--paper);
}

.prose a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol { list-style: decimal; }

.prose li + li { margin-top: .4em; }

.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--orange);
  color: var(--mist);
}

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

.grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(22px, 3.2vw, 48px);
  align-items: start;
}

.grid--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 卡片 */
.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background-color: var(--ink-800);
  color: inherit;
  text-decoration: none;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease),
              transform .12s var(--ease), background-color .12s var(--ease);
}

.card--link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 47, .58);
  box-shadow: 0 0 0 1px rgba(255, 122, 47, .22), 0 24px 48px -32px rgba(255, 122, 47, .8);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(35, 56, 77, .42);
  color: var(--mist);
  font-family: var(--f-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(245, 185, 66, .34);
  background: rgba(245, 185, 66, .1);
}

.tag--green {
  color: var(--green);
  border-color: rgba(63, 191, 111, .34);
  background: rgba(63, 191, 111, .1);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 47, .36);
  background: rgba(255, 122, 47, .12);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-serif);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease),
              background-color .12s var(--ease), color .12s var(--ease),
              border-color .12s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #170800;
  box-shadow: 0 10px 26px -14px rgba(255, 122, 47, .95);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -14px rgba(255, 122, 47, 1);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: rgba(255, 122, 47, .6);
  background: var(--orange-dim);
  color: #fff;
}

/* 图片容器基础规则（页面阶段直接放入 img / picture） */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background-image: linear-gradient(160deg, #17304a 0%, #0d1c2b 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(78% 58% at 50% 0%, rgba(255, 122, 47, .1), transparent 72%);
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

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

/* ---------- 9. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity .36s var(--ease), transform .42s var(--ease);
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1120px) {
  .masthead-tagline { display: none; }
  .nav-flag { display: none; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .masthead-side--start { display: none; }

  .brand {
    align-items: flex-start;
  }

  .brand-sub { letter-spacing: 0.1em; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    border-block: 1px solid var(--line);
    background-color: #0B1B2B;
    box-shadow: 0 28px 56px -30px rgba(0, 0, 0, .95);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-block: 8px 14px;
  }

  .nav-list > li {
    border-bottom: 1px solid rgba(35, 56, 77, .7);
  }

  .nav-list > li:last-child { border-bottom: 0; }

  .nav-link {
    padding: 15px 4px;
    border-radius: 0;
    font-size: var(--fs-16);
  }

  .nav-link--feature {
    justify-content: flex-start;
    padding-inline: 12px;
    border-radius: var(--r-sm);
    margin-block: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 122, 47, .26);
  }

  .nav-flag { display: inline-flex; }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 20px;
    transform: translateY(-50%);
  }

  .nav-link--feature[aria-current="page"]::after {
    left: 0;
    right: auto;
  }

  .grid--split,
  .grid--cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .masthead-side--end .pill--primary { display: none; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .display-xl { font-size: var(--fs-48); }
}

@media (max-width: 560px) {
  .masthead-side--end .pill--tablet { display: none; }
  .brand-mark { letter-spacing: 0.1em; text-indent: 0.1em; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
}

/* ---------- 11. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card--link:hover,
  .btn--primary:hover,
  .pill--primary:hover,
  .pill--tablet:hover,
  .footer-link:hover {
    transform: none;
  }
}
