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

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

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============ 2. 变量 ============ */
:root {
  --ink: #0B0D12;
  --ink-deep: #07080C;
  --flame: #FF5A1F;
  --flame-deep: #B52E12;
  --gold: #F2C14E;
  --cyan: #39E6FF;
  --violet: #7A5CFF;
  --glass: #1E2633;
  --mist: #A8B3C7;
  --bone: #F5F7FB;
  --green: #4ADE80;

  --line: rgba(168, 179, 199, 0.16);
  --line-strong: rgba(168, 179, 199, 0.3);

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

/* ============ 3. 基础排版 ============ */
p { font-size: 15px; line-height: 1.75; }
strong, b { font-weight: 700; color: var(--bone); }
small { font-size: 12.5px; }

::selection { background: var(--flame); color: #0B0D12; }

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

#main-content { display: block; }
#main-content:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }

/* ============ 4. 跳转链接 ============ */
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: #0B0D12;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 10px) 100%, 0 100%);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: -4px;
}

/* ============ 5. 容器 ============ */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ 6. 头部 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 13, 18, 0.94);
  transition: box-shadow 0.3s ease;
}
.site-header[data-scrolled="true"] {
  box-shadow: 0 22px 44px -32px rgba(0, 0, 0, 0.95);
}

/* --- 上层：品牌索引带 --- */
.header-utility {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11, 13, 18, 0.98), rgba(11, 13, 18, 0.86));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.header-utility::after {
  content: "";
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(52%, 560px);
  pointer-events: none;
  background:
    linear-gradient(114deg,
      transparent 0 16%,
      rgba(255, 90, 31, 0.14) 16% 34%,
      rgba(242, 193, 78, 0.07) 34% 44%,
      rgba(57, 230, 255, 0.09) 44% 58%,
      transparent 58%);
}
.header-utility-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.6vw, 30px);
  padding-block: 12px;
  min-width: 0;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #0B0D12;
  background: linear-gradient(135deg, #FF7A3D, var(--flame) 48%, var(--flame-deep));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  filter: drop-shadow(0 0 14px rgba(255, 90, 31, 0.42));
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-line {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--bone);
  white-space: nowrap;
}
.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--mist);
  white-space: nowrap;
}

.header-note {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

/* 搜索入口（通往游戏目录） */
.quick-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(30, 38, 51, 0.6);
  color: var(--mist);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.quick-search:hover,
.quick-search:focus-visible {
  color: var(--bone);
  border-color: rgba(57, 230, 255, 0.6);
  background: rgba(30, 38, 51, 0.9);
  box-shadow: 0 0 0 3px rgba(57, 230, 255, 0.12);
}
.quick-search-icon {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.quick-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.quick-search-label { line-height: 1; }

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
  background: linear-gradient(118deg, #FF7A3D, var(--flame) 52%, #E7410D);
  color: #0B0D12;
  font-weight: 800;
  border-color: rgba(242, 193, 78, 0.38);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 12px 26px -14px rgba(255, 90, 31, 0.9);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--bone);
  background: rgba(30, 38, 51, 0.45);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(57, 230, 255, 0.62);
  color: var(--cyan);
}
.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}
.btn--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.btn--cut:focus-visible { outline-offset: -4px; }

/* --- 下层：栏目带 --- */
.header-nav {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 30, 40, 0.96), rgba(11, 13, 18, 0.96));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.7), rgba(242, 193, 78, 0.35) 34%, rgba(57, 230, 255, 0.4) 66%, transparent);
}
.header-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  min-width: 0;
}

.nav-panel {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 26px);
}
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 15px 2px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: linear-gradient(90deg, var(--flame), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s ease;
}
.nav-link:hover { color: var(--bone); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(168, 179, 199, 0.62);
  transition: color 0.2s ease;
}
.nav-link:hover .nav-index { color: var(--gold); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--flame), var(--cyan));
}
.nav-link[aria-current="page"] .nav-index { color: var(--flame); }

.nav-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
  white-space: nowrap;
}
.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  animation: statusPulse 2.6s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.14); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.04); }
}

/* 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(168, 179, 199, 0.1);
  pointer-events: none;
}
.header-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--flame), var(--gold) 46%, var(--cyan));
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.5);
  transition: width 0.12s linear;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.14);
  color: var(--bone);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 10px) 100%, 0 100%);
}
.nav-toggle:focus-visible { outline-offset: -4px; }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.nav-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--flame);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

/* ============ 7. 页脚 ============ */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  color: var(--bone);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(255, 90, 31, 0.18), transparent 58%),
    radial-gradient(90% 80% at 94% 6%, rgba(57, 230, 255, 0.1), transparent 56%),
    radial-gradient(70% 60% at 60% 100%, rgba(122, 92, 255, 0.12), transparent 60%),
    var(--ink-deep);
  border-top: 1px solid rgba(242, 193, 78, 0.24);
}
.footer-ember {
  height: clamp(38px, 6.5vw, 82px);
  opacity: 0.9;
  clip-path: polygon(0 0, 100% 0, 100% 24%, 0 100%);
  background:
    repeating-linear-gradient(112deg, rgba(11, 13, 18, 0.55) 0 2px, transparent 2px 16px),
    linear-gradient(102deg, rgba(255, 90, 31, 0.62), rgba(181, 46, 18, 0.3) 44%, rgba(122, 92, 255, 0.18) 72%, transparent);
}
.footer-inner {
  padding-block: clamp(30px, 5vw, 64px) clamp(20px, 3vw, 36px);
}

.footer-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(22px, 3.6vw, 42px);
  border-bottom: 1px solid var(--line);
}
.brand--footer .brand-mark {
  width: 52px;
  height: 52px;
  font-size: 27px;
}
.brand--footer .brand-line { font-size: 16px; }

.footer-statement {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: #D5DCEA;
  max-width: 46ch;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.8fr)) minmax(0, 1.5fr);
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(26px, 4vw, 46px);
}
.footer-col { min-width: 0; }
.footer-col--contact {
  padding-left: clamp(0px, 2vw, 24px);
  border-left: 1px solid rgba(168, 179, 199, 0.12);
}
.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--flame);
  opacity: 0.6;
  transform: rotate(45deg);
  transition: opacity 0.2s ease, background 0.2s ease;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--bone);
  transform: translateX(2px);
}
.footer-link:hover::before,
.footer-link:focus-visible::before {
  opacity: 1;
  background: var(--cyan);
}

.contact-list {
  display: grid;
  gap: 12px;
}
.contact-row {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 179, 199, 0.8);
  line-height: 1.5;
}
.contact-value {
  color: #D5DCEA;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.copy-btn {
  flex: none;
  padding: 4px 9px;
  border: 1px solid rgba(57, 230, 255, 0.36);
  border-radius: 2px;
  background: rgba(57, 230, 255, 0.09);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover,
.copy-btn:focus-visible {
  background: rgba(57, 230, 255, 0.22);
  border-color: rgba(57, 230, 255, 0.7);
  color: var(--bone);
}
.copy-btn[data-copied="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #0B0D12;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(16px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-icp { color: rgba(168, 179, 199, 0.9); }
.footer-copy { color: var(--mist); }
.footer-note {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(168, 179, 199, 0.75);
}

/* ============ 8. 通用区块与组件 ============ */
.section {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 92px);
}
.section--band {
  background: linear-gradient(180deg, rgba(30, 38, 51, 0.55), rgba(11, 13, 18, 0));
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 72ch;
  margin-bottom: clamp(24px, 3.6vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--flame), var(--gold));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.display-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 92px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--bone);
  transform: skewX(-3deg);
  transform-origin: left bottom;
}
.lede {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: #CBD5E6;
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 26px);
}
.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)); }

.card {
  position: relative;
  display: block;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(30, 38, 51, 0.92), rgba(11, 13, 18, 0.94));
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(225deg, rgba(255, 90, 31, 0.55), transparent 62%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}
.card:hover,
.card:focus-within {
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 20px 44px -28px rgba(255, 90, 31, 0.75);
  transform: translateY(-2px);
}
.card--glass {
  background: rgba(30, 38, 51, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--bone);
}
.card-meta {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--flame { color: #FFD3C2; border-color: rgba(255, 90, 31, 0.6); background: rgba(255, 90, 31, 0.14); }
.tag--gold { color: var(--gold); border-color: rgba(242, 193, 78, 0.55); background: rgba(242, 193, 78, 0.1); }
.tag--cyan { color: var(--cyan); border-color: rgba(57, 230, 255, 0.5); background: rgba(57, 230, 255, 0.1); }
.tag--violet { color: #C6BAFF; border-color: rgba(122, 92, 255, 0.55); background: rgba(122, 92, 255, 0.16); }
.tag--live { color: #B9F5CE; border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.12); }

.num {
  font-family: var(--font-mono);
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: rgba(168, 179, 199, 0.5);
}
.breadcrumbs a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--bone); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.65), rgba(242, 193, 78, 0.35) 32%, rgba(57, 230, 255, 0.26) 62%, transparent);
}

/* 图片容器基础规则（页面阶段放置素材） */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(255, 90, 31, 0.28), transparent 58%),
    radial-gradient(110% 110% at 92% 100%, rgba(57, 230, 255, 0.2), transparent 60%),
    repeating-linear-gradient(118deg, rgba(168, 179, 199, 0.07) 0 1px, transparent 1px 11px),
    linear-gradient(150deg, #1B232F, #0B0D12 78%);
}
.media img,
.media video {
  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-frame {
  padding: clamp(6px, 1vw, 10px);
  border: 1px solid var(--line-strong);
  background: rgba(30, 38, 51, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.media-frame .media { border: 0; border-radius: 0; }

/* 主题筛选（仅筛选当前页面已有内容） */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(30, 38, 51, 0.55);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 8px) 100%, 0 100%);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover,
.filter-btn:focus-visible {
  color: var(--bone);
  border-color: rgba(57, 230, 255, 0.55);
}
.filter-btn[aria-pressed="true"] {
  background: linear-gradient(118deg, #FF7A3D, #E7410D);
  border-color: rgba(242, 193, 78, 0.5);
  color: #0B0D12;
  font-weight: 700;
}
.filter-btn:focus-visible { outline-offset: -4px; }
.filter-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.is-filtered-out { display: none !important; }

/* ============ 9. 滚动显现 ============ */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============ 10. 工具类 ============ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============ 11. 响应式 ============ */
@media (max-width: 1080px) {
  .header-note { display: none; }
  .quick-search-label { display: none; }
  .quick-search { padding: 9px 11px; }
}

@media (max-width: 900px) {
  .header-utility-inner { padding-block: 10px; gap: 10px; }
  .header-nav-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 8px;
    gap: 10px;
  }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .nav-side { order: 1; margin-left: 0; font-size: 10px; letter-spacing: 0.12em; }
  .nav-panel {
    display: none;
    order: 3;
    flex: 1 0 100%;
    border-top: 1px solid var(--line);
    padding-top: 4px;
    margin-top: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-panel[data-open="true"] {
    display: block;
    animation: navDrop 0.22s ease both;
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid rgba(168, 179, 199, 0.1); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    display: flex;
    width: 100%;
    padding: 13px 4px;
    font-size: 16px;
    justify-content: flex-start;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: 12px;
    box-shadow: inset 3px 0 0 var(--flame);
    background: linear-gradient(90deg, rgba(255, 90, 31, 0.14), transparent 60%);
  }
  .nav-index { font-size: 11px; color: var(--gold); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .footer-lead { grid-template-columns: minmax(0, 1fr); }

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

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .brand-tag { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 20px; }
  .brand-line { font-size: 13px; letter-spacing: 0.03em; }
  .brand--footer .brand-mark { width: 44px; height: 44px; font-size: 23px; }
  .btn--sm { padding: 9px 12px; font-size: 12.5px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-row { grid-template-columns: 3.2em minmax(0, 1fr) auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .filter-status { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .quick-search { display: none; }
  .nav-side { letter-spacing: 0.06em; }
}

/* ============ 12. 动效偏好 ============ */
@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;
  }
  html.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .card:hover,
  .card:focus-within,
  .footer-link:hover,
  .footer-link:focus-visible,
  .btn--primary:hover,
  .btn--primary:focus-visible { transform: none; }
}
