/* ============================================================
   WINOS TRACKER — 科技感 HUD 风格样式
   ============================================================ */

/* ---------- 本地字体 (Orbitron/Rajdhani 拉丁子集, 离线可用; 中文回退系统字体) ---------- */

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/orbitron-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/orbitron-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/orbitron-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rajdhani-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rajdhani-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/rajdhani-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rajdhani-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #04070d;
  --bg-2: #070c16;
  --panel: rgba(10, 18, 34, 0.72);
  --panel-solid: #0a1222;
  --line: rgba(0, 240, 255, 0.18);
  --line-strong: rgba(0, 240, 255, 0.55);
  --cyan: #00f0ff;
  --cyan-soft: rgba(0, 240, 255, 0.65);
  --purple: #a855f7;
  --green: #4ade80;
  --amber: #fbbf24;
  --pink: #f472b6;
  --text: #d7e6f7;
  --text-dim: #7c93b5;
  --text-faint: #4a5f7d;
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 32px rgba(0, 240, 255, 0.22);
  --font-display: 'Orbitron', 'Rajdhani', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Rajdhani', 'Noto Sans SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- 背景层 ---------- */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 85%);
}

.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.03) 50%, transparent 100%);
  background-size: 100% 220px;
  animation: scan 9s linear infinite;
  opacity: 0.5;
}

@keyframes scan {
  from { background-position: 0 -220px; }
  to   { background-position: 0 100vh; }
}

body::before {
  /* 环境光 */
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.09), rgba(168, 85, 247, 0.05) 55%, transparent 75%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- 角标 HUD ---------- */

.hud {
  position: fixed;
  top: 14px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cyan-soft);
  text-shadow: var(--glow-cyan);
  background: rgba(4, 10, 20, 0.55);
  border: 1px solid var(--line);
  padding: 5px 12px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: flicker 6s infinite;
}

.hud-right { right: 14px; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.6; }
  94% { opacity: 1; }
  96% { opacity: 0.75; }
  97% { opacity: 1; }
}

/* ---------- 头部 ---------- */

.hero {
  position: relative;
  z-index: 2;
  padding: 72px 24px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.brand { display: flex; align-items: center; gap: 18px; }

.brand-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(168, 85, 247, 0.08));
  box-shadow: var(--glow-cyan);
  animation: logoPulse 3.2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 0 28px rgba(0, 240, 255, 0.15); }
  50%      { box-shadow: 0 0 20px rgba(0, 240, 255, 0.85), 0 0 48px rgba(168, 85, 247, 0.35); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  position: relative;
}

.glitch { position: relative; }

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.75;
  pointer-events: none;
}

.glitch::before {
  color: var(--purple);
  animation: glitchA 3.1s infinite steps(1);
}

.glitch::after {
  color: var(--pink);
  animation: glitchB 2.7s infinite steps(1);
}

@keyframes glitchA {
  0%, 92%, 100% { transform: none; opacity: 0; }
  93% { transform: translate(-3px, 1px); opacity: 0.7; }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 2px); opacity: 0; }
}

@keyframes glitchB {
  0%, 90%, 100% { transform: none; opacity: 0; }
  91% { transform: translate(3px, -1px); opacity: 0.7; }
  94% { transform: translate(-2px, 1px); }
  96% { transform: translate(1px, -2px); opacity: 0; }
}

.subtitle {
  margin-top: 4px;
  color: var(--text-dim);
  letter-spacing: 2px;
  font-size: 15px;
}

.dim { color: var(--text-faint); }

.hero-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: right;
}

.status-item { letter-spacing: 1px; }

.status-item strong { color: var(--text); font-family: var(--font-mono); }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--green);
  animation: dotBlink 1.6s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status-item strong.ok { color: var(--green); text-shadow: 0 0 10px rgba(74, 222, 128, 0.6); }
.status-item strong.warn { color: var(--amber); text-shadow: 0 0 10px rgba(251, 191, 36, 0.6); }

/* ---------- 统计面板 ---------- */

.stats {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);           /* 8 张统计卡固定单行并排 */
  gap: 14px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 只有带分类的统计卡可点击（总收录卡无 data-cat，不显示手型） */
.stat-card[data-cat] { cursor: pointer; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.7;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--glow-cyan);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);                 /* 暗灰 → 醒目青色 */
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: #7df9ff;                      /* 更亮的青白数字 */
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.8), 0 0 40px rgba(0, 240, 255, 0.35);
  line-height: 1.15;
  margin: 4px 0 8px;
}

.stat-total .stat-value { color: #fff; }

.stat-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.8s ease;
}

/* ---------- 控制栏 ---------- */

.controls {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;              /* 单行并排，不换行 */
}

.tab {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: rgba(10, 18, 34, 0.6);
  border: 1px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: all 0.25s ease;
  font-weight: 600;
  white-space: nowrap;            /* 文字不换行 */
  flex: 1 1 0;                    /* 均分宽度，一行排满 */
  text-align: center;
}

.tab:hover { color: var(--cyan); border-color: var(--line-strong); text-shadow: var(--glow-cyan); }

.tab.active {
  color: #02131a;
  background: linear-gradient(135deg, var(--cyan), #4da8ff);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  text-shadow: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
  min-width: 300px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search:focus-within {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.search-icon { color: var(--cyan); font-size: 18px; text-shadow: var(--glow-cyan); }

.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.search input::placeholder { color: var(--text-faint); }

.search-hint {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---------- 结果信息 ---------- */

.results-info {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---------- 卡片网格 ---------- */

.grid {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  animation: cardIn 0.5s ease both;
  cursor: pointer;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.14), var(--glow-cyan);
}

.card::after {
  /* 顶部装饰条 */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--cyan)), transparent);
  opacity: 0.85;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 3px 12px;
  border-radius: 3px;
  border: 1px solid;
  color: var(--card-accent, var(--cyan));
  border-color: currentColor;
  text-shadow: 0 0 8px currentColor;
  background: rgba(255, 255, 255, 0.03);
}

.card[data-cat="Windows 10"] { --card-accent: var(--cyan); }
.card[data-cat="Windows 11"] { --card-accent: var(--purple); }
.card[data-cat="Windows 7"]  { --card-accent: var(--amber); }
.card[data-cat="WinPE"]      { --card-accent: var(--pink); }

.card-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: 0.4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: 13.5px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 下载区 */
.dl-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--card-accent, var(--cyan));
  text-decoration: none;
  border: 1px solid currentColor;
  padding: 5px 12px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.22s ease;
}

.dl-btn::before {
  content: '⭳';
  font-size: 13px;
  line-height: 1;
}

.dl-btn:hover {
  background: var(--card-accent, var(--cyan));
  color: #02131a;
  box-shadow: 0 0 14px currentColor;
}

.dl-btn .dl-code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 1px;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--amber);
  border: 1px dashed rgba(251, 191, 36, 0.4);
  padding: 5px 12px;
  border-radius: 4px;
}

.lock-badge::before {
  content: '🔒';
  font-size: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(124, 147, 181, 0.25);
}

.card-source {
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.5px;
  border-bottom: 1px dotted rgba(124, 147, 181, 0.4);
}

.card-source:hover { color: var(--cyan); }

.card-id { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 1px; }

.card-link {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 5px 14px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all 0.25s ease;
}

.card-link:hover {
  background: var(--cyan);
  color: #02131a;
  box-shadow: var(--glow-cyan);
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-display);
  letter-spacing: 3px;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ---------- 页脚 ---------- */

.footer {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.footer-line a:not(.gh-link) { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed var(--line-strong); }
.footer-line a:hover { text-shadow: var(--glow-cyan); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  box-shadow: var(--glow-cyan);
  font-family: var(--font-mono);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 加载态 ---------- */

.loading-ring {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.loading-ring::before {
  content: '';
  width: 46px;
  height: 46px;
  border: 2px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--cyan);
  border-right-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: var(--glow-cyan);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 详情页 ---------- */

.detail-page {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 30px;
}

.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.btn-back {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 7px 16px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.25s ease;
}

.btn-back:hover {
  background: var(--cyan);
  color: #02131a;
  box-shadow: var(--glow-cyan);
}

.detail-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
}

.detail-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.5s ease both;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), transparent);
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.detail-title {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--text);
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(124, 147, 181, 0.25);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-faint);
}

.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 12px;
}

.detail-body {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.detail-summary {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.9;
  letter-spacing: 0.4px;
}

/* 结构化小节 */
.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.detail-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  border-left: 3px solid var(--cyan);
  animation: cardIn 0.4s ease both;
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(124, 147, 181, 0.25);
}

.sec-icon {
  font-size: 15px;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.detail-section-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sec-item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

.sec-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 12px;
}

.sec-para {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.85;
  margin: 2px 0;
}

/* meta 徽章 */
.detail-badges {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-build {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: var(--cyan);
}

.badge-size {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: var(--purple);
}

/* MD5 值醒目高亮 */
.md5-val {
  font-family: var(--font-mono);
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 1px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  white-space: nowrap;
}

/* 开源仓库链接（GitHub 标志 + 中文） */
.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
}

.gh-link svg {
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.gh-link:hover {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

/* 数据更新时间醒目高亮 */
#updatedAt {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.65);
}

/* 版权 / 站点地图行 */
.footer-legal {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(124, 147, 181, 0.25);
}

.footer-legal a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px dotted rgba(124, 147, 181, 0.4);
}

.footer-legal a:hover {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

/* 页脚动作组 */
.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 打赏按钮 */
.donate-btn {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: #ff8fa3;
  background: transparent;
  border: 1px solid rgba(255, 143, 163, 0.55);
  padding: 6px 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.donate-btn:hover {
  background: rgba(255, 143, 163, 0.15);
  color: #ffb3c1;
  box-shadow: 0 0 14px rgba(255, 143, 163, 0.5);
}

/* 打赏浮层 */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(2, 8, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.donate-modal[hidden] { display: none; }

.donate-box {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 30px 34px 24px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.18);
  animation: cardIn 0.35s ease both;
  max-width: 92vw;
}

.donate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.donate-close:hover { color: var(--cyan); }

.donate-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 20px;
  text-align: center;
}

.donate-qrs {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}

.donate-qrs figure {
  margin: 0;
  text-align: center;
}

.donate-qrs img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.donate-qrs figcaption {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.donate-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* 下载区（详情末尾） */
.detail-download {
  margin-top: 26px;
  padding: 24px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(168, 85, 247, 0.05)),
    var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  animation: cardIn 0.5s ease 0.1s both;
}

.detail-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), transparent);
}

.dl-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dl-panel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}

.dl-panel-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* 下载面板内每行一组（面板名 / 链接 / 提取码）的内联布局 */
.dl-panel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.dl-panel-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.dl-panel-link {
  font-size: 13.5px;
  color: var(--text-dim);
  text-decoration: none;
  word-break: break-all;
}

.dl-panel-link:hover { color: var(--cyan); }

.dl-code-box {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--green);
  border: 1px dashed rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.06);
  padding: 3px 12px;
  border-radius: 4px;
  align-self: flex-start;
}

.dl-panel-go {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.25s ease;
}

.dl-panel-go:hover {
  background: var(--cyan);
  color: #02131a;
  box-shadow: var(--glow-cyan);
}

.dl-note {
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-total { grid-column: 1 / -1; }
  .search { min-width: 100%; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-status { text-align: left; }

  /* Tabs 中屏起换行，避免 621-900px 单行硬挤压裁切文字 */
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1 1 auto; min-width: 72px; }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .hud { display: none; }
  h1 { font-size: 24px; letter-spacing: 2px; }

  /* Tabs 手机端换行，按钮自适应宽度 */
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1 1 auto; min-width: 72px; }

  /* 统计卡窄屏仍 2 列，标签防折行 */
  .stat-label { letter-spacing: 2px; font-size: 10px; }
  .stat-value { font-size: 26px; }

  /* 详情页内边距收紧 */
  .detail-page,
  .detail-body,
  .detail-download { padding-left: 16px; padding-right: 16px; }
  .detail-hero { padding: 20px 16px 18px; }
  .detail-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* 下载面板窄屏堆叠 */
  .dl-panel { flex-wrap: wrap; }
  .dl-panel-info { flex: 1 1 100%; }

  /* 打赏二维码缩小 */
  .donate-qrs img { width: 140px; height: 140px; }
  .donate-box { padding: 24px 18px 18px; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 6px;
  border: 2px solid var(--bg-2);
}