/* ==========================================================
   夺命笑2 / 全站共享样式 /assets/site.css
   技术蓝图 × 赛博归档索引
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg-page: #1A1E2E;
  --bg-zone-a: #0F2E24;
  --bg-zone-b: #2A1E3A;
  --bg-card: #222639;
  --bg-card-hover: #2A3044;

  --primary: #00B0FF;
  --accent-orange: #FF5E3A;
  --accent-yellow: #FFD23F;
  --accent-cyan: #00E5A0;
  --accent-magenta: #FF2E63;

  --status-update: #4DFF4D;
  --status-refill: #FF8C1A;
  --status-new: #FFD23F;
  --status-fix: #FF2E63;

  --text-main: #E6E9F2;
  --text-dim: #8B94A9;
  --text-dark: #12151F;

  --border-line: #3A4157;
  --border-light: #4E5670;

  --font-head: "PingFang SC Bold", "Microsoft YaHei UI Bold", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Consolas", "Liberation Mono", "Courier New", monospace;

  --container-w: 1200px;
  --header-h: 92px;

  --shadow-pop: 0 4px 20px rgba(0, 0, 0, 0.4);
  --glow-primary: 0 0 14px rgba(0, 176, 255, 0.25);
}

/* ---------- 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-yellow);
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}

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

::selection {
  background: var(--primary);
  color: var(--text-dark);
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(28px, 4.5vw, 40px); }
h2 { font-size: clamp(22px, 3.5vw, 30px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
h4 { font-size: 17px; }
h5 { font-size: 15px; }

p {
  margin: 0 0 1em;
}

code,
kbd,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page {
  padding-top: var(--header-h);
  min-height: 70vh;
}

.section-block {
  padding: 56px 0;
}

.section-block[data-tone="a"] {
  background: var(--bg-zone-a);
}

.section-block[data-tone="b"] {
  background: var(--bg-zone-b);
}

.section-block[data-tone="grid"] {
  background:
    linear-gradient(rgba(0, 176, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 176, 255, 0.05) 1px, transparent 1px),
    var(--bg-page);
  background-size: 32px 32px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--primary);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transform: skewX(-2deg);
  text-transform: uppercase;
}

.section-label[data-color="orange"] { background: var(--accent-orange); color: var(--text-dark); }
.section-label[data-color="yellow"] { background: var(--accent-yellow); color: var(--text-dark); }
.section-label[data-color="cyan"] { background: var(--accent-cyan); color: var(--text-dark); }
.section-label[data-color="magenta"] { background: var(--accent-magenta); color: var(--text-dark); }
.section-label[data-color="blue"] { background: var(--primary); color: var(--text-dark); }

.section-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 24px;
}

/* ---------- 页头 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background:
    linear-gradient(rgba(0, 176, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 176, 255, 0.045) 1px, transparent 1px),
    var(--bg-page);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(0, 176, 255, 0.8);
  z-index: 102;
  pointer-events: none;
}

.header-meta {
  border-bottom: 1px dashed var(--border-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.header-meta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  gap: 16px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* ---------- 品牌标识 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-orange);
  color: var(--text-dark);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 16px;
  border-radius: 3px;
  transform: skewX(-4deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  transform: skewX(-2deg);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  transform: skewX(-2deg);
}

/* ---------- 导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  padding: 0 4px;
  background: rgba(0, 22, 42, 0.35);
  border: 1px solid var(--border-line);
  border-radius: 3px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.nav-link:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: var(--border-line);
}

.nav-link:hover {
  color: var(--accent-yellow);
}

.nav-link[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  border: 1px solid var(--border-line);
  border-radius: 4px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--primary);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

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

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

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

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  background:
    linear-gradient(rgba(255, 210, 63, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 210, 63, 0.04) 1px, transparent 1px),
    var(--bg-zone-a);
  background-size: 24px 24px;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
}

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

.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.brand-footer {
  margin-bottom: 12px;
}

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-line);
  text-transform: uppercase;
}

.footer-link {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-main);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link::before {
  content: "▸ ";
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-link:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-dim);
  padding: 5px 0;
  margin: 0;
}

.footer-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.7;
  border-left: 2px solid var(--primary);
  padding-left: 12px;
}

.footer-bottom {
  background: var(--accent-orange);
  color: var(--text-dark);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

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

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

.breadcrumb-sep {
  color: var(--border-line);
  font-size: 11px;
}

.breadcrumb [aria-current] {
  color: var(--text-main);
  font-weight: 700;
}

/* ---------- 页面标题 ---------- */
.page-title {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 8px 0 12px;
  transform: skewX(-2deg);
  position: relative;
}

.page-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--accent-orange);
  margin-top: 10px;
  transform: skewX(2deg);
}

.page-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-dark);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 3px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--text-dark);
  box-shadow: 0 0 16px rgba(255, 210, 63, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 176, 255, 0.12);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.btn-dark {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-line);
}

.btn-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.more-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.more-link:hover {
  color: var(--accent-yellow);
}

.more-link:hover::after {
  transform: translateX(4px);
}

.label-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin: 0;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  filter: saturate(1.15);
}

.tile-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  transform: skewX(-2deg);
  line-height: 1.2;
}

.tile-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.06em;
}

.tile-orange { background: var(--accent-orange); color: var(--text-dark); }
.tile-yellow { background: var(--accent-yellow); color: var(--text-dark); }
.tile-cyan { background: var(--accent-cyan); color: var(--text-dark); }
.tile-magenta { background: var(--accent-magenta); color: var(--text-dark); }
.tile-blue { background: var(--primary); color: var(--text-dark); }

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

.entry-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-line);
  transition: background-color 0.2s ease;
}

.entry-row:last-child {
  border-bottom: none;
}

.entry-row:hover {
  background: var(--bg-card-hover);
}

.entry-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.entry-title {
  font-weight: 700;
  font-size: 15px;
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- 标签块 ---------- */
.tag-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tag-block:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 176, 255, 0.2);
}

.tag-block[data-heat="1"] { font-size: 13px; }

.tag-block[data-heat="2"] {
  font-size: 15px;
  color: var(--accent-yellow);
  border-color: rgba(255, 210, 63, 0.5);
}

.tag-block[data-heat="3"] {
  font-size: 17px;
  font-weight: 900;
  color: var(--accent-orange);
  border-color: rgba(255, 94, 58, 0.5);
  background: rgba(255, 94, 58, 0.08);
}

/* ---------- 状态徽标 ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.status-update {
  background: rgba(77, 255, 77, 0.12);
  color: var(--status-update);
  border-color: var(--status-update);
}

.status-refill {
  background: rgba(255, 140, 26, 0.12);
  color: var(--status-refill);
  border-color: var(--status-refill);
}

.status-new {
  background: rgba(255, 210, 63, 0.12);
  color: var(--status-new);
  border-color: var(--status-new);
}

.status-fix {
  background: rgba(255, 46, 99, 0.12);
  color: var(--status-fix);
  border-color: var(--status-fix);
}

/* ---------- 序号标记 ---------- */
.seq-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--border-line);
  color: var(--text-main);
  border-radius: 3px;
  flex-shrink: 0;
}

.seq-mark[data-rank="1"] { background: var(--accent-orange); color: var(--text-dark); }
.seq-mark[data-rank="2"] { background: var(--accent-yellow); color: var(--text-dark); }
.seq-mark[data-rank="3"] { background: var(--accent-cyan); color: var(--text-dark); }

/* ---------- 指标条 ---------- */
.metric-bar {
  position: relative;
  height: 8px;
  background: var(--border-line);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--metric, 50%);
  background: var(--primary);
  border-radius: 4px;
}

.metric-bar[data-color="orange"] .metric-bar-fill { background: var(--accent-orange); }
.metric-bar[data-color="yellow"] .metric-bar-fill { background: var(--accent-yellow); }
.metric-bar[data-color="cyan"] .metric-bar-fill { background: var(--accent-cyan); }
.metric-bar[data-color="magenta"] .metric-bar-fill { background: var(--accent-magenta); }

/* ---------- 索引条 ---------- */
.index-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 4px;
}

.index-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.index-strip a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.index-strip a[aria-current="true"] {
  background: var(--primary);
  color: var(--text-dark);
  font-weight: 700;
  border-color: var(--primary);
}

/* ---------- 横向滑轨 ---------- */
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.rail > * {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.rail::-webkit-scrollbar-track {
  background: var(--border-line);
  border-radius: 3px;
}

/* ---------- 表格 ---------- */
.data-table,
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.schedule-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--bg-card);
  border-bottom: 2px solid var(--primary);
}

.data-table td,
.schedule-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-line);
}

.data-table tr:hover td,
.schedule-table tr:hover td {
  background: rgba(0, 176, 255, 0.05);
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border-line);
}

.schedule-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

/* ---------- 图像占位 ---------- */
.img-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 3px;
  overflow: hidden;
}

.img-frame::before {
  content: "IMG";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 2px 8px;
  background: rgba(18, 21, 31, 0.85);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  border-radius: 2px;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--border-light);
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .header-meta {
    display: none;
  }

  .header-main {
    height: 56px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 12px 20px 16px;
    background: var(--bg-page);
    border: 0;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    border-radius: 0;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px dashed var(--border-line);
    border-radius: 0;
  }

  .nav-link:not(:last-child)::after {
    display: none;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link[aria-current="page"] {
    background: rgba(0, 176, 255, 0.08);
    border-bottom: 1px solid var(--primary);
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 36px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tile-matrix {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .entry-row {
    grid-template-columns: 36px 1fr auto;
  }

  .entry-meta {
    display: none;
  }

  .section-block {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .tile-matrix {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tile {
    min-height: 96px;
    padding: 12px;
  }

  .tile-title {
    font-size: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
