/* ==========================================================================
   云体育链接 · /assets/site.css
   共享层：重置 / 变量 / 中文排版 / 刊头 / 页脚 / 通用组件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, dt, section, article, nav, header, footer {
  margin: 0;
}

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

a { color: inherit; text-decoration: none; }

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

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

table { border-collapse: collapse; }

/* ---------- 2. Design Tokens ---------- */
:root {
  /* 色彩体系 */
  --c-deep:   #0A1730;  /* 深空蓝 · 主底 */
  --c-panel:  #12244A;  /* 夜场蓝 · 面板 */
  --c-cyan:   #35F2D0;  /* 荧光青 · 主强调 */
  --c-amber:  #FFA53B;  /* 琥珀橙 · 次强调 */
  --c-paper:  #F2E7D3;  /* 奶油纸 */
  --c-ink:    #17120C;  /* 深棕黑 */
  --c-brick:  #C8452B;  /* 砖红 */
  --c-mist:   #8FA3C4;  /* 雾灰蓝 */
  --c-teal:   #0E6E63;  /* 深青 */
  --c-bright: #F7FBFF;  /* 亮纸白 */

  --line-soft: rgba(143, 163, 196, 0.20);
  --line-mid:  rgba(143, 163, 196, 0.38);
  --cyan-dim:  rgba(53, 242, 208, 0.14);

  /* 字体 */
  --f-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", "Courier New", monospace;
  --f-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia,
             "Times New Roman", serif;

  /* 字号阶梯 12 / 14 / 17 / 21 / 28 / 34 / 44 / 56 */
  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-17: 1.0625rem;
  --t-21: 1.3125rem;
  --t-28: 1.75rem;
  --t-34: 2.125rem;
  --t-44: 2.75rem;
  --t-56: 3.5rem;

  --lh-body: 1.85;
  --lh-tight: 1.18;

  /* 结构 */
  --w-max: 1320px;
  --pad-x: clamp(16px, 3vw, 40px);
  --gutter: clamp(16px, 2.4vw, 26px);
  --rail-w: 220px;
  --aside-w: 320px;

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 22px;

  --shadow-card: 0 20px 40px -32px rgba(0, 0, 0, 0.9);
  --shadow-cyan: 0 18px 40px -30px rgba(53, 242, 208, 0.65);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--f-sans);
  font-size: var(--t-17);
  line-height: var(--lh-body);
  color: var(--c-bright);
  background-color: var(--c-deep);
  background-image:
    radial-gradient(1100px 560px at 50% -220px, rgba(53, 242, 208, 0.10), transparent 68%),
    radial-gradient(900px 520px at 92% 108%, rgba(14, 110, 99, 0.20), transparent 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#main-content { display: block; scroll-margin-top: 24px; }

::selection {
  background: var(--c-cyan);
  color: var(--c-deep);
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---------- 4. 中文排版基础 ---------- */
.h1 {
  font-size: clamp(2.25rem, 5.6vw, var(--t-56));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--c-bright);
}

.h2 {
  font-size: clamp(1.6rem, 3.6vw, var(--t-34));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--c-bright);
}

.h3 {
  font-size: clamp(1.1875rem, 2.2vw, var(--t-21));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--c-bright);
}

.prose {
  font-size: var(--t-17);
  line-height: var(--lh-body);
  color: rgba(247, 251, 255, 0.86);
  max-width: 72ch;
}

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

.prose a {
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(53, 242, 208, 0.45);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.prose a:hover { border-bottom-color: var(--c-cyan); }

.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }

.prose ul, .prose ol {
  margin: 1em 0 0 1.2em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }

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

.serif-note {
  font-family: var(--f-serif);
  font-size: var(--t-14);
  line-height: 1.7;
  color: var(--c-ink);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: var(--t-12);
  letter-spacing: 0.22em;
  color: var(--c-amber);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-amber);
  flex: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }

.grid { display: grid; gap: var(--gutter); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 11px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--c-cyan);
  color: var(--c-deep);
  font-size: var(--t-14);
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.2s ease;
}

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

/* ---------- 7. 刊头 ---------- */
.masthead {
  position: relative;
  z-index: 40;
  background: linear-gradient(180deg, #0C1B39 0%, #0A1730 74%, #0A1730 100%);
  border-bottom: 1px solid var(--line-soft);
  color: var(--c-bright);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(143, 163, 196, 0.38) 0 1px,
    transparent 1px 26px
  );
  opacity: 0.55;
  pointer-events: none;
}

.masthead__inner {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* 阅读进度条 */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(143, 163, 196, 0.12);
  pointer-events: none;
}

.progress-rail__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-teal), var(--c-cyan) 58%, var(--c-amber));
}

/* --- 第一行：报头 --- */
.masthead__plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 40px);
  padding: 22px 0 16px;
}

.plate-rule {
  flex: 1 1 auto;
  min-width: 20px;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--line-mid), rgba(53, 242, 208, 0.55));
  align-self: flex-start;
  margin-top: 22px;
}

.plate-rule:last-of-type {
  background: linear-gradient(90deg, rgba(53, 242, 208, 0.55), var(--line-mid), transparent);
}

.plate-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--c-cyan);
  opacity: 0.65;
}

.plate-rule:last-of-type::after { right: auto; left: 0; }

.plate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 0 6px;
  flex: none;
}

.plate-brand__name {
  position: relative;
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--c-bright);
}

.plate-brand__name::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-teal) 52%, transparent 100%);
}

.plate-brand__tag {
  font-size: var(--t-12);
  letter-spacing: 0.24em;
  color: var(--c-mist);
  white-space: nowrap;
}

/* 移动端栏目开关 */
.nav-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(53, 242, 208, 0.5);
  border-radius: 999px;
  font-size: var(--t-12);
  letter-spacing: 0.14em;
  color: var(--c-cyan);
  background: rgba(53, 242, 208, 0.06);
  transition: background-color 0.18s ease, border-color 0.18s ease;
  z-index: 3;
}

.nav-toggle:hover {
  background: rgba(53, 242, 208, 0.16);
  border-color: var(--c-cyan);
}

.nav-toggle__glyph {
  display: block;
  width: 16px;
  height: 2px;
  position: relative;
  background: currentColor;
  transition: background-color 0.2s ease;
}

.nav-toggle__glyph::before,
.nav-toggle__glyph::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.nav-toggle__glyph::before { top: -5px; }
.nav-toggle__glyph::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__glyph { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__glyph::after { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

/* --- 第二行：栏目索引 --- */
.masthead__nav {
  display: none;
  border-top: 1px solid rgba(143, 163, 196, 0.16);
}

.nav-index {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2.6vw, 40px);
  padding: 12px 0;
}

.nav-index__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: var(--t-14);
  letter-spacing: 0.14em;
  color: var(--c-mist);
  transition: color 0.18s ease;
}

.nav-index__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--c-brick);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.nav-index__link:hover { color: var(--c-bright); }
.nav-index__link:hover::after { width: 100%; }

.nav-index__link[aria-current="page"] { color: var(--c-bright); font-weight: 600; }
.nav-index__link[aria-current="page"]::after { width: 100%; background: var(--c-brick); }

/* --- 第三行：工具条 --- */
.masthead__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(143, 163, 196, 0.12);
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  color: var(--c-mist);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tool-link__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
  flex: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-link:hover {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: var(--c-deep);
}

.tool-link:hover .tool-link__dot {
  background: var(--c-deep);
  box-shadow: none;
}

.tool-link--amber {
  border-color: rgba(255, 165, 59, 0.5);
  color: var(--c-amber);
}

.tool-link--amber:hover {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-ink);
}

.tool-note {
  display: none;
  font-family: var(--f-mono);
  font-size: var(--t-12);
  letter-spacing: 0.1em;
  color: rgba(143, 163, 196, 0.72);
}

/* ---------- 8. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #0A1730 0%, #07101F 100%);
  border-top: 1px solid var(--line-soft);
  color: var(--c-mist);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--c-cyan) 0 14px,
    transparent 14px 34px
  );
  opacity: 0.32;
}

.site-foot__inner {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 60px) var(--pad-x) clamp(28px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.foot-brand__name {
  font-size: var(--t-28);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--c-bright);
}

.foot-brand__line {
  margin-top: 8px;
  font-size: var(--t-14);
  line-height: 1.75;
  color: var(--c-mist);
}

.foot-brand__scale {
  margin-top: 20px;
  width: min(200px, 100%);
  height: 22px;
  border-bottom: 1px solid rgba(143, 163, 196, 0.3);
  background-image: linear-gradient(90deg, rgba(53, 242, 208, 0.55) 0 1px, transparent 1px);
  background-size: 11px 8px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.foot-col__title {
  position: relative;
  padding-bottom: 11px;
  margin-bottom: 15px;
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(143, 163, 196, 0.2);
}

.foot-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--c-brick);
}

.foot-col li { margin-bottom: 10px; }

.foot-col a {
  font-size: var(--t-14);
  color: var(--c-mist);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot-col a:hover {
  color: var(--c-cyan);
  border-bottom-color: rgba(53, 242, 208, 0.5);
}

.foot-col__item {
  font-size: var(--t-14);
  color: rgba(143, 163, 196, 0.9);
}

.foot-col__item--mono {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--t-12);
  letter-spacing: 0.02em;
  color: rgba(247, 251, 255, 0.82);
  word-break: break-all;
}

.site-foot__legal {
  border-top: 1px solid rgba(143, 163, 196, 0.16);
  background: rgba(7, 16, 31, 0.72);
}

.site-foot__legal-inner {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 20px var(--pad-x) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: var(--t-12);
  color: rgba(143, 163, 196, 0.85);
}

.site-foot__legal-inner a {
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-foot__legal-inner a:hover {
  color: var(--c-cyan);
  border-bottom-color: rgba(53, 242, 208, 0.5);
}

/* ---------- 9. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--t-14);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-cyan); color: var(--c-deep); }
.btn--primary:hover { background: #5FF7DD; }

.btn--ghost {
  border-color: rgba(53, 242, 208, 0.55);
  color: var(--c-cyan);
}
.btn--ghost:hover { background: rgba(53, 242, 208, 0.12); }

.btn--amber { background: var(--c-amber); color: var(--c-ink); }
.btn--amber:hover { background: #FFB75F; }

.btn--paper { background: var(--c-paper); color: var(--c-ink); }
.btn--paper:hover { background: #FBF1E1; }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  color: var(--c-mist);
}

.breadcrumb a { transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--c-cyan); }

.breadcrumb__sep { color: rgba(143, 163, 196, 0.5); }

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

/* ---------- 11. 面板 / 卡片 ---------- */
.panel-dark {
  background: var(--c-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-card);
}

.panel-paper {
  background: var(--c-paper);
  color: var(--c-ink);
  border: 1px solid rgba(23, 18, 12, 0.14);
  border-radius: var(--r-md);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow-card);
}

.panel-paper .h1,
.panel-paper .h2,
.panel-paper .h3,
.panel-paper h1,
.panel-paper h2,
.panel-paper h3 { color: var(--c-ink); }

.panel-paper .prose { color: #2B2419; }

.panel-paper a {
  color: var(--c-brick);
  border-bottom: 1px solid rgba(200, 69, 43, 0.4);
  transition: border-color 0.16s ease;
}
.panel-paper a:hover { border-bottom-color: var(--c-brick); }

.panel-paper .kicker { color: var(--c-brick); }
.panel-paper .kicker::before { background: var(--c-brick); }

.card {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(16px, 2.4vw, 22px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(53, 242, 208, 0.6);
  box-shadow: var(--shadow-cyan);
}

.card__meta {
  font-family: var(--f-mono);
  font-size: var(--t-12);
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

.card__title {
  margin-top: 6px;
  font-size: var(--t-21);
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-bright);
}

.card__note {
  margin-top: 10px;
  font-size: var(--t-14);
  line-height: 1.75;
  color: var(--c-mist);
}

/* ---------- 12. 筛选胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  font-size: var(--t-12);
  letter-spacing: 0.08em;
  color: var(--c-mist);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.chip[aria-pressed="true"] {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: var(--c-deep);
  font-weight: 600;
}

/* ---------- 13. 表格与数值 ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}

.table-scroll table {
  width: 100%;
  min-width: 640px;
  font-size: var(--t-14);
}

.table-scroll th,
.table-scroll td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(143, 163, 196, 0.16);
}

.table-scroll th {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-mist);
  background: rgba(10, 23, 48, 0.9);
  border-bottom: 2px solid var(--c-brick);
}

.table-scroll td { color: rgba(247, 251, 255, 0.88); }

.table-scroll th:first-child,
.table-scroll td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--c-deep);
}

.table-scroll th:first-child { background: #0A1730; }

/* ---------- 14. 图片容器基础规则（供页面阶段放置占位） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background-color: var(--c-panel);
  background-image:
    linear-gradient(142deg, rgba(18, 36, 74, 0.95) 0%, rgba(10, 23, 48, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(143, 163, 196, 0.14) 0 1px, transparent 1px 28px);
}

.media img,
.media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

.media__caption {
  margin-top: 9px;
  font-size: var(--t-12);
  line-height: 1.7;
  color: var(--c-mist);
}

/* ---------- 15. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 16. 响应式 ---------- */
@media (min-width: 480px) {
  .masthead__tools {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (min-width: 720px) {
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .masthead__nav { display: block; }
  .nav-toggle { display: none; }
  .plate-rule { align-self: center; margin-top: 0; }

  .masthead__plate { padding: 30px 0 20px; }

  .site-foot__inner {
    grid-template-columns: minmax(200px, 0.8fr) 2.6fr;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .tool-note { display: block; }
}

@media (max-width: 899px) {
  .masthead__nav[data-open="true"] {
    display: block;
    border-top: 1px solid rgba(53, 242, 208, 0.3);
    padding-bottom: 10px;
    animation: navDrop 0.22s ease both;
  }

  .masthead__nav[data-open="true"] .nav-index {
    flex-direction: column;
    gap: 0;
    padding: 4px 0 0;
  }

  .masthead__nav[data-open="true"] .nav-index li { width: 100%; }

  .masthead__nav[data-open="true"] .nav-index__link {
    display: block;
    width: 100%;
    padding: 13px 4px;
    font-size: var(--t-17);
    letter-spacing: 0.1em;
    color: var(--c-mist);
    border-bottom: 1px dashed rgba(143, 163, 196, 0.22);
  }

  .masthead__nav[data-open="true"] .nav-index__link::after { display: none; }

  .masthead__nav[data-open="true"] .nav-index__link[aria-current="page"] {
    color: var(--c-cyan);
    font-weight: 600;
  }

  .masthead__nav[data-open="true"] .nav-index__link[aria-current="page"]::before {
    content: "▸";
    margin-right: 9px;
    color: var(--c-brick);
  }
}

@media (max-width: 719px) {
  .plate-rule { display: none; }
  .masthead__plate { padding-right: 0; }
}

@media (max-width: 479px) {
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px 13px; }
  .plugin-plate { padding-right: 0; }
  .tool-link { padding: 6px 11px; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 17. 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .btn:hover,
  .card:hover,
  .card:focus-within { transform: none; }
}
