/* ===== 久久亚洲视界 · 共享皮肤 /assets/site.css ===== */

/* ---------- 设计令牌 ---------- */
:root {
  --base-dark: #2C3E50;
  --base-dark-deep: #1A252F;
  --asia-purple: #4A235A;
  --europe-green: #1E8449;
  --card-orange: #E67E22;
  --card-cyan: #1ABC9C;
  --accent-yellow: #F1C40F;
  --status-red: #E74C3C;
  --status-green: #2ECC71;
  --text-dark: #2C3E50;
  --border-gray: #BDC3C7;
  --tag-purple: #8E44AD;
  --tag-cyan: #16A085;
  --page-bg: #F5F7FA;
  --panel-bg: #FFFFFF;
  --muted: #5D6D7E;
  --ink-on-dark: #ECF0F1;
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(44, 62, 80, 0.12);
  --shadow-hover: 0 6px 16px rgba(44, 62, 80, 0.16);
  --content-max: 1360px;
}

/* ---------- Reset & 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--page-bg);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.3; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }

p { margin-bottom: 1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; border: none; background: none; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

#main-content { display: block; min-height: 65vh; scroll-margin-top: 120px; }

/* ---------- 链接可见焦点 ---------- */
:focus-visible { outline: 3px solid var(--accent-yellow); outline-offset: 2px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  padding: 10px 16px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: var(--shadow-hover);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline: 3px solid var(--base-dark); outline-offset: 2px; }

/* ---------- 容器 ---------- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--card-orange); color: #fff; }
.btn-primary:hover { background: #CA6F1E; }
.btn-cyan { background: var(--card-cyan); color: #fff; }
.btn-cyan:hover { background: #16A085; }
.btn-dark { background: var(--base-dark); color: #fff; }
.btn-dark:hover { background: var(--base-dark-deep); }
.btn-ghost { background: transparent; color: var(--text-dark); border-color: var(--border-gray); }
.btn-ghost:hover { border-color: var(--text-dark); background: #F0F3F5; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--base-dark);
  border-bottom: 3px solid var(--accent-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-frame {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 92px;
}

.brand-rail {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--asia-purple);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--card-orange), var(--accent-yellow));
  border-radius: var(--radius);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  white-space: nowrap;
}

.header-console { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }

.console-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--base-dark-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.signal-item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.signal-live { color: var(--accent-yellow); font-weight: 700; }
.signal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-yellow); animation: pulse 2s infinite ease-in-out; }
.signal-divider { color: rgba(255, 255, 255, 0.35); }
.console-code { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.site-nav { flex: 1; display: flex; align-items: stretch; min-height: 52px; }

.nav-cell {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-on-dark);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav-cell:first-child { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.nav-cell:hover { background: var(--card-cyan); color: #fff; }
.nav-cell[aria-current="page"] { background: var(--accent-yellow); color: var(--text-dark); box-shadow: inset 0 -3px 0 var(--base-dark); }
.nav-cell:focus-visible { z-index: 2; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  color: #fff;
}
.toggle-line { width: 22px; height: 2px; background: #fff; }
.toggle-label { margin-top: 2px; font-family: var(--font-head); font-size: 10px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.08em; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 56px; background: var(--base-dark); color: #D5DBDB; }

.footer-strip { display: flex; height: 6px; }
.strip-seg { display: block; height: 100%; }
.strip-asia { flex: 0 0 42%; background: var(--asia-purple); }
.strip-eu { flex: 0 0 33%; background: var(--europe-green); }
.strip-alert { flex: 1; background: var(--accent-yellow); }

.footer-frame {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px 24px 16px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 28px 36px;
}

.footer-part { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer-brandpart { gap: 16px; }
.footer-navpart, .footer-legalpart, .footer-contactpart { gap: 6px; }

.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-brand .brand-name { font-size: 20px; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.55); }

.footer-coltitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

.footer-link {
  display: block;
  padding: 4px 0;
  color: #BFC9CA;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.footer-link:hover { color: #fff; padding-left: 4px; }

.footer-contactline { display: block; padding: 4px 0; font-family: var(--font-mono); font-size: 13px; color: #BFC9CA; word-break: break-all; }

.footer-note { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; }
.footer-inline-link { color: var(--accent-yellow); text-decoration: underline; text-underline-offset: 2px; }
.footer-inline-link:hover { color: #fff; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-icp { font-family: var(--font-mono); }

/* ---------- 页面排版 ---------- */
.page-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 16px; }
.page-head { padding: 24px 0 8px; }
.page-title { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--text-dark); }
.page-desc { font-family: var(--font-mono); font-size: 14px; color: var(--muted); margin-top: 6px; }

.section { margin: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-kicker { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--card-orange); margin-bottom: 4px; text-transform: uppercase; }
.section-kicker::before { content: "// "; color: var(--accent-yellow); }
.section-title { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.section-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 12px 0 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border-gray); }
.breadcrumb a { color: var(--tag-cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-dark); font-weight: 700; }
.crumb-sep { color: var(--border-gray); }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-asia { background: var(--asia-purple); border-color: #3B1B47; color: #fff; }
.card-eu { background: var(--europe-green); border-color: #18693C; color: #fff; }
.card-orange { background: var(--card-orange); border-color: #CA6F1E; }
.card-cyan { background: var(--card-cyan); border-color: #16A085; }

.card-title { font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.3; }
.card-desc { font-size: 13px; opacity: 0.85; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; }

/* ---------- 磁贴矩阵 ---------- */
.tile-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile-asia { background: var(--asia-purple); border-color: #3B1B47; color: #fff; }
.tile-eu { background: var(--europe-green); border-color: #18693C; color: #fff; }
.tile-accent { background: var(--card-orange); border-color: #CA6F1E; }
.tile-cyan { background: var(--card-cyan); border-color: #16A085; }

.tile-name { font-family: var(--font-head); font-size: 15px; font-weight: 800; }
.tile-count { font-family: var(--font-mono); font-size: 12px; font-weight: 700; opacity: 0.7; }

/* ---------- 条目列表 ---------- */
.entry-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-gray); border-radius: var(--radius); overflow: hidden; }

.entry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-gray);
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.14s ease;
}
.entry-item:last-child { border-bottom: none; }
.entry-item:hover { background: #F0F3F5; }

.entry-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.entry-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- 标签 ---------- */
.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--tag-purple);
  border-radius: 2px;
  text-decoration: none;
  line-height: 1.4;
}
.tag-asia { background: var(--asia-purple); }
.tag-eu { background: var(--europe-green); }
.tag-year { background: var(--tag-cyan); }
.tag-clarity { background: var(--card-orange); color: var(--text-dark); }
.tag-update { background: var(--accent-yellow); color: var(--text-dark); }
.tag-muted { background: #E8EAED; color: var(--muted); }

/* ---------- 状态徽标 ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: rgba(46, 204, 113, 0.14); border-color: rgba(46, 204, 113, 0.5); color: #1E8449; }
.status-error { background: rgba(231, 76, 60, 0.12); border-color: rgba(231, 76, 60, 0.5); color: #C0392B; }
.status-warn { background: rgba(241, 196, 15, 0.16); border-color: rgba(241, 196, 15, 0.55); color: #8A6D0B; }
.status-live { background: var(--accent-yellow); border-color: var(--accent-yellow); color: var(--text-dark); }

/* ---------- 序号标记 ---------- */
.seq-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--base-dark);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
}
.seq-mark-asia { background: var(--tag-purple); }
.seq-mark-eu { background: var(--europe-green); }
.seq-mark-cyan { background: var(--tag-cyan); }
.seq-mark-orange { background: var(--card-orange); color: var(--text-dark); }

/* ---------- 指标条 ---------- */
.metric { display: flex; align-items: center; gap: 10px; }
.metric-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 72px; }
.metric-bar { flex: 1; height: 8px; background: #E8EAED; border-radius: 4px; overflow: hidden; }
.metric-fill { display: block; height: 100%; width: 0; background: var(--tag-cyan); border-radius: 4px; }
.metric-fill-orange { background: var(--card-orange); }
.metric-fill-purple { background: var(--tag-purple); }
.metric-fill-green { background: var(--europe-green); }
.metric-fill-yellow { background: var(--accent-yellow); }
.metric-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-dark); min-width: 44px; text-align: right; }

/* ---------- 索引条 ---------- */
.index-rail {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  overflow-x: auto;
}
.rail-item {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  border-right: 1px solid var(--border-gray);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.rail-item:last-child { border-right: none; }
.rail-item:hover { background: #F0F3F5; }
.rail-item[aria-current="true"],
.rail-item.is-active { background: var(--accent-yellow); color: var(--text-dark); box-shadow: inset 0 -3px 0 var(--base-dark); }

/* ---------- 横向轨道 ---------- */
.h-track { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x proximity; }
.h-track > * { flex: 0 0 auto; scroll-snap-align: start; }

.track-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 18px 0;
  border-top: 1px solid var(--border-gray);
}
.track-label { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--text-dark); }
.track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.track-card {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-gray); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tag-cyan);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--tag-cyan);
}
.timeline-item.is-new::before { background: var(--accent-yellow); box-shadow: 0 0 0 2px var(--accent-yellow); }
.timeline-date { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- 步骤流 ---------- */
.step-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step-item {
  position: relative;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: step;
}
.step-item::before {
  content: "0" counter(step);
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: rgba(44, 62, 80, 0.1);
  line-height: 1;
}
.step-title { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; padding-right: 30px; }
.step-desc { font-size: 13px; color: var(--muted); }

/* ---------- 数据表 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.data-table th,
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-gray); text-align: left; vertical-align: top; }
.data-table th { background: var(--base-dark); color: #fff; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #F0F3F5; }
.data-table .stat { font-family: var(--font-mono); font-weight: 700; }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #E8EAED;
  border: 1px solid var(--border-gray);
  aspect-ratio: 16 / 9;
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.12) 0%, rgba(44, 62, 80, 0.03) 60%, rgba(26, 188, 156, 0.1) 100%);
}
.media-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media-frame-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 0;
  background: var(--base-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.media-frame-4x3 { aspect-ratio: 4 / 3; }
.media-frame-square { aspect-ratio: 1 / 1; }
.media-frame-tall { aspect-ratio: 3 / 4; }

/* ---------- 背景与文字工具 ---------- */
.bg-asia { background: var(--asia-purple); color: #fff; }
.bg-eu { background: var(--europe-green); color: #fff; }
.bg-dark { background: var(--base-dark); color: #fff; }
.bg-orange { background: var(--card-orange); color: var(--text-dark); }
.bg-cyan { background: var(--card-cyan); color: var(--text-dark); }
.bg-yellow { background: var(--accent-yellow); color: var(--text-dark); }
.text-muted { color: var(--muted); }
.text-ok { color: var(--status-green); }
.text-error { color: var(--status-red); }
.text-warn { color: #B7950B; }

/* ---------- 滚动进度与返回顶部 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; background: rgba(255, 255, 255, 0.15); pointer-events: none; }
.scroll-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--tag-purple) 0%, var(--tag-cyan) 45%, var(--accent-yellow) 100%); transition: width 0.08s linear; }

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 390;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--base-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 18px;
  font-family: var(--font-mono);
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.2s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--card-orange); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .brand-rail { flex-basis: 220px; }
  .nav-cell { padding: 0 12px; font-size: 14px; }
  .console-code { display: none; }
  .track-row { grid-template-columns: 1fr; }
  .track-label { border-bottom: 1px solid var(--border-gray); padding-bottom: 6px; }
}

@media (max-width: 900px) {
  .header-frame { flex-wrap: wrap; min-height: 0; }
  .brand-rail { flex: 1 1 auto; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .header-console { flex: 0 0 100%; order: 3; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; }
  .site-nav[data-open] { display: flex; }
  .nav-cell { padding: 14px 18px; border-right: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-cell:first-child { border-left: none; border-top: none; }
  .console-topline { padding: 6px 14px; }
  .signal-divider,
  .signal-cycle { display: none; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .footer-frame { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-sub { display: none; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .tile-matrix { grid-template-columns: repeat(2, 1fr); }
  .step-flow { grid-template-columns: 1fr; }
  .console-topline { padding: 6px 12px; }
  .brand-rail { padding: 10px 12px; }
  .console-code { display: none; }
}

/* ---------- 弱化动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .signal-dot { animation: none; }
  .card:hover,
  .tile:hover { transform: none; }
  .scroll-progress-bar { transition: none; }
  .back-top { transition: none; }
}
