/* ============ 基础 ============ */
:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --ink: #0f1c17;
  --muted: #5e6f68;
  --line: #e2eae6;
  --brand: #0b6e4f;
  --brand-strong: #085c41;
  --brand-2: #12a37a;
  --brand-soft: #e7f4ee;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 28, 23, .04), 0 18px 40px -28px rgba(15, 28, 23, .35);
  --shadow-lg: 0 2px 6px rgba(15, 28, 23, .05), 0 30px 60px -30px rgba(9, 62, 45, .35);
  --font: "Inter", "SF Pro SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 246, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

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

.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  box-shadow: 0 6px 14px -8px rgba(11, 110, 79, .9);
  flex: none;
}
.brand-logo svg { width: 23px; height: 23px; display: block; }

.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 15.5px; line-height: 1.15; }
.brand-text small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); }
.nav a { padding: 6px 0; transition: color .15s; }
.nav a:hover { color: var(--brand); }

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--muted);
  width: 240px;
  transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(18, 163, 122, .12); }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13.5px; color: var(--ink); }

/* ============ 首页 Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(18, 163, 122, .14), transparent 60%),
    radial-gradient(700px 380px at 92% 8%, rgba(180, 83, 9, .09), transparent 62%),
    #fbfcfb;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 110, 79, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 110, 79, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 76px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid rgba(11, 110, 79, .16);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .01em;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.hero-sub {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
}

.hero-search {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
  max-width: 540px;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
  font-size: 14.5px;
}
.hero-search button {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 0 22px;
  transition: background .15s;
}
.hero-search button:hover { background: var(--brand-strong); }

.hero-stats { display: flex; gap: 38px; margin-top: 34px; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; height: 320px; }

.stack-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.stack-1 { top: 0; right: 12px; width: 190px; height: 92px; padding: 20px; transform: rotate(4deg); display: grid; gap: 10px; }
.stack-2 { top: 62px; left: 0; right: 36px; padding: 14px; transform: rotate(-1.2deg); display: grid; gap: 8px; }
.stack-3 { bottom: 0; right: 40px; width: 200px; height: 82px; padding: 20px; transform: rotate(2.4deg); display: grid; gap: 10px; }
.stack-card .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); }
.stack-card .line { display: block; height: 8px; border-radius: 99px; background: #edf2ef; }
.line.w40 { width: 40%; } .line.w60 { width: 60%; } .line.w70 { width: 70%; } .line.w80 { width: 80%; }

.mini-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbfdfc;
  border: 1px solid #eef4f1;
}
.mini-app img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.mini-app > div { display: flex; flex-direction: column; min-width: 0; }
.mini-app strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-app small { font-size: 11.5px; color: var(--muted); }
.mini-badge { margin-left: auto; font-size: 10.5px; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; flex: none; }
.mini-placeholder { width: 34px; height: 34px; border-radius: 9px; background: #edf2ef; }

/* ============ 通用区块 ============ */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: 26px; font-weight: 750; letter-spacing: -.025em; }
.section-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }

.sort-tabs { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.sort-tabs a { font-size: 13px; color: var(--muted); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.sort-tabs a.active { background: var(--brand); color: #fff; font-weight: 600; }

.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  transition: all .15s;
}
.cat-chip span { font-size: 11px; color: #96a59e; }
.cat-chip:hover { border-color: var(--brand-2); color: var(--brand); }
.cat-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip.active span { color: rgba(255, 255, 255, .6); }

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

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(18, 163, 122, .35); }

.card-top { display: flex; align-items: center; gap: 12px; }

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #f2f6f4;
  border: 1px solid var(--line);
  flex: none;
}
.app-icon.xl { width: 96px; height: 96px; border-radius: 22px; }

.card-title-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stars { font-size: 12px; color: var(--amber); font-weight: 600; }

.card-desc {
  color: var(--muted);
  font-size: 13.3px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.os-list { display: flex; flex-wrap: wrap; gap: 5px; }
.os { font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: #fafcfb; }
.os.win { color: #1d4ed8; background: #eff4ff; border-color: #dbe6ff; }
.os.mac { color: #6d28d9; background: #f5f1ff; border-color: #e9e0ff; }
.os.linux { color: #a16207; background: #fef8e7; border-color: #f6ecc9; }
.card-size { font-size: 12px; color: #8b9a94; flex: none; }

.card-alt { font-size: 11.5px; color: #94a39c; border-top: 1px dashed var(--line); padding-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ 分页 / 空状态 ============ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  color: var(--muted);
}
.pagination a:hover { border-color: var(--brand-2); color: var(--brand); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 64px 24px 88px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
}
.empty-state h3 { font-size: 20px; }
.empty-state p { margin: 8px auto 22px; color: var(--muted); max-width: 520px; }

/* ============ 流程 ============ */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.flow-num { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--brand-2); }
.flow-step h3 { margin-top: 10px; font-size: 16.5px; }
.flow-step p { margin-top: 8px; font-size: 13.2px; color: var(--muted); }
.flow-arrow { display: none; }

/* ============ 页脚 ============ */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fbfcfb; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding: 52px 0 36px; }
.footer-brand { margin-bottom: 14px; }
.footer-desc { color: var(--muted); font-size: 13.2px; max-width: 420px; }
.site-footer h4 { font-size: 13px; margin-bottom: 12px; color: var(--ink); }
.site-footer a { display: block; font-size: 13.2px; color: var(--muted); padding: 3px 0; }
.site-footer a:hover { color: var(--brand); }
.site-footer p { font-size: 12.8px; color: var(--muted); margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  font-size: 12px;
  color: #93a29b;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-strong); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand-2); color: var(--brand); }
.btn.lg { padding: 12px 22px; font-size: 14.5px; border-radius: 12px; }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }

/* ============ 详情页 ============ */
.detail-page { padding-top: 22px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.8px; color: #8b9a94; padding: 6px 0 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { color: var(--ink); }

.detail-hero {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #fbfdfc);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.detail-hero-body { min-width: 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: #f2f6f4; color: var(--muted); border: 1px solid var(--line); }
.tag.category { background: var(--brand-soft); color: var(--brand-strong); border-color: rgba(11, 110, 79, .14); }
.tag.stars { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }

.detail-hero h1 { margin-top: 12px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.en-name { font-size: .55em; font-weight: 500; color: #96a59e; letter-spacing: 0; }
.detail-tagline { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0 28px;
}
.meta-item { background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.meta-item span { font-size: 11.5px; color: #8b9a94; }
.meta-item strong { font-size: 14.5px; font-weight: 650; word-break: break-word; }
.meta-item.wide { grid-column: span 3; }
.meta-item.wide .alt-list { color: var(--brand-strong); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* 安装教程之后的下载与软件信息模块 */
.detail-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  scroll-margin-top: 88px;
}
.detail-bottom .download-card,
.detail-bottom .info-card { box-shadow: var(--shadow); }
.detail-bottom .download-card { padding: 26px 28px; }
.detail-bottom .info-card { padding: 26px 28px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.section-title { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.panel > .section-title { margin-bottom: 14px; }

.prose { color: #2c3a35; font-size: 14.6px; line-height: 1.85; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose h3 { font-size: 16.5px; margin: 22px 0 8px; }
.prose h4 { font-size: 15px; margin: 18px 0 6px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--brand-2); }
.prose a { color: var(--brand); border-bottom: 1px solid rgba(11, 110, 79, .25); }
.prose code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .88em;
  background: #f1f5f3;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  word-break: break-word;
}
.prose pre {
  background: #10231c;
  color: #d7efe4;
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.prose pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.prose blockquote {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--brand-2);
  background: var(--brand-soft);
  border-radius: 0 10px 10px 0;
  color: #325046;
}
.prose blockquote p { margin: 4px 0; }
.prose img { border-radius: 10px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: #f7faf8; }

.detail-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }

.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}
.download-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.download-head h2 { font-size: 18px; font-weight: 750; }
.download-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.quark-mark {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid rgba(11, 110, 79, .15);
  border-radius: 7px;
  padding: 3px 9px;
}
.notice {
  font-size: 12.5px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 12px;
}

.dl-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.dl-row:last-of-type { border-bottom: 0; }
.dl-platform { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; padding: 5px 8px; border-radius: 7px; flex: none; width: 62px; text-align: center; }
.dl-platform.win { color: #1d4ed8; background: #eff4ff; }
.dl-platform.mac { color: #6d28d9; background: #f5f1ff; }
.dl-platform.linux { color: #a16207; background: #fef8e7; }
.dl-platform.other { color: var(--muted); background: #f2f6f4; }
.dl-info { min-width: 0; flex: 1; }
.dl-name { font-size: 12.8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-sub { display: flex; gap: 10px; font-size: 11.5px; color: #8b9a94; margin-top: 2px; flex-wrap: wrap; }
.dl-pass code { background: var(--amber-soft); color: var(--amber); border-radius: 4px; padding: 0 5px; font-weight: 600; }

.copy-all {
  width: 100%;
  margin-top: 14px;
  border: 1px dashed rgba(11, 110, 79, .35);
  background: #f7fcfa;
  color: var(--brand-strong);
  border-radius: 10px;
  padding: 10px;
  font-size: 12.8px;
  font-weight: 600;
}
.copy-all:hover { background: var(--brand-soft); }
.dl-tip { margin-top: 12px; font-size: 11.8px; color: #8b9a94; line-height: 1.6; }
.dl-more { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--brand); font-weight: 600; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 15.5px; margin-bottom: 12px; }
.info-card dl { margin: 0; display: grid; gap: 9px; }
.info-card dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 12.8px; }
.info-card dt { color: #8b9a94; flex: none; }
.info-card dd { margin: 0; text-align: right; color: var(--ink); word-break: break-all; }
.info-card dd a { color: var(--brand); }
.alt-box { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.alt-box > span { font-size: 12px; color: #8b9a94; }
.alt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alt-chip { font-size: 11.5px; background: #f2f6f4; border: 1px solid var(--line); color: #4a5b54; padding: 3px 9px; border-radius: 999px; }

.related { padding: 50px 0 10px; }

/* ============ 后台 ============ */
.admin-page { padding: 40px 0 20px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.admin-head p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.token-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.token-box span { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8b9a94; }
.token-box input { border: 0; outline: 0; font-size: 13px; width: 220px; background: transparent; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 18px; }
.admin-msg { font-size: 13px; color: var(--brand-strong); }
.admin-msg.error { color: var(--danger); }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat-card span { display: block; font-size: 11.5px; color: #8b9a94; }
.stat-card strong { display: block; margin-top: 3px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }

.admin-panel { padding: 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head .section-title { margin: 0; }
.filter-tabs { display: flex; gap: 4px; }
.filter-tabs button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 8px; font-size: 12px; padding: 5px 10px; }
.filter-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.admin-table th { text-align: left; font-size: 11.5px; color: #8b9a94; font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid #f0f4f2; vertical-align: middle; }
.admin-table tr:hover td { background: #fbfdfc; }
.admin-table .repo { color: #8b9a94; font-size: 11.5px; }
.admin-table .name { font-weight: 600; }
.table-empty { text-align: center; color: #93a29b; padding: 30px 0; }

.status { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status.published { color: #047857; background: #d1fae5; }
.status.draft { color: #475569; background: #e2e8f0; }
.status.processing { color: #b45309; background: var(--amber-soft); }
.status.failed { color: var(--danger); background: var(--danger-soft); }
.status.success { color: #047857; background: #d1fae5; }
.status.running { color: #b45309; background: var(--amber-soft); }

.row-actions { display: flex; gap: 6px; }
.row-actions button { border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 11.5px; padding: 4px 9px; color: var(--muted); }
.row-actions button:hover { border-color: var(--brand-2); color: var(--brand); }
.row-link { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; font-size: 11.5px; padding: 4px 9px; color: var(--brand); }
.row-link:hover { border-color: var(--brand-2); }
.job-msg { max-width: 360px; word-break: break-word; color: var(--muted); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0; }
  .hero-visual { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-bottom { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(3, 1fr); }
  .meta-item.wide { grid-column: span 3; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; gap: 16px; font-size: 13px; width: 100%; overflow-x: auto; }
  .header-search { width: 100%; order: 4; margin-left: 0; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .detail-hero { flex-direction: column; padding: 22px; gap: 16px; }
  .app-icon.xl { width: 72px; height: 72px; border-radius: 18px; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-item.wide { grid-column: span 2; }
  .panel { padding: 20px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .flow { grid-template-columns: 1fr; }
  .admin-head { flex-direction: column; align-items: stretch; }
  .token-box { width: 100%; }
  .token-box input { width: 100%; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ============ 参考站布局：顶栏 / 主头部 / 深色导航 ============ */
.topbar { background: #0f1720; color: #b8c3cc; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 38px; }
.topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 18px; flex: none; }
.topbar-links a:hover { color: #fff; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.masthead .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.masthead .brand-logo svg { width: 29px; height: 29px; }
.masthead .brand-text { font-size: 20px; }
.masthead .brand-text small { font-size: 11px; letter-spacing: .04em; }

.masthead-search { display: flex; flex: 1; max-width: 560px; margin-left: auto; height: 42px; border: 2px solid var(--brand-2); border-radius: 6px; overflow: hidden; background: #fff; }
.masthead-search input { flex: 1; border: 0; outline: 0; padding: 0 14px; font-size: 13.5px; background: transparent; }
.masthead-search button { border: 0; background: var(--brand-2); color: #fff; font-size: 14px; font-weight: 600; padding: 0 26px; }

.mainnav { background: #17212b; }
.mainnav-inner { display: flex; align-items: stretch; gap: 2px; }
.mainnav a { color: #cdd6de; font-size: 14px; padding: 13px 20px; white-space: nowrap; }
.mainnav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mainnav a.active { background: var(--brand-2); color: #fff; font-weight: 600; }

/* 一级分类悬停展开所属二级分类 */
.nav-item { position: relative; display: flex; }
.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 164px;
  padding: 7px;
  display: grid;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 70;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.nav-drop a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.nav-drop a.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.nav-drop a span { font-size: 11px; color: #96a59e; }

/* ============ 内容双栏 ============ */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; padding: 22px 0 56px; }
.page-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.page-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }

.panel-section { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h1, .panel-head h2 { position: relative; font-size: 18px; font-weight: 700; padding-left: 12px; }
.panel-head h1::before, .panel-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--brand-2); }
.panel-head .more { font-size: 12.5px; color: var(--muted); }
.panel-head .more:hover { color: var(--brand); }
.panel-sub { font-size: 12.5px; color: var(--muted); }
.panel-empty { color: var(--muted); font-size: 13px; padding: 12px 0; }

.card-grid.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.panel-section .card { padding: 16px 14px; border-radius: 8px; gap: 9px; align-items: center; text-align: center; }
.panel-section .card-top { flex-direction: column; gap: 8px; }
.panel-section .app-icon { width: 52px; height: 52px; }
.panel-section .card-title-wrap { align-items: center; }
.panel-section .card-title { font-size: 14px; }
.panel-section .card-desc { font-size: 12px; min-height: 38px; }
.panel-section .card-meta { justify-content: center; }
.panel-section .card-foot { flex-direction: column; gap: 8px; width: 100%; align-items: center; }
.panel-section .card-cta { width: 100%; text-align: center; }
.panel-section .categories { margin-bottom: 16px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-facts { font-size: 12px; color: var(--muted); }
.card-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-2); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.card:hover .card-cta { background: var(--brand); }

/* ============ 下载排行 ============ */
.rank-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px 8px; }
.rank-head h2 { position: relative; font-size: 17px; font-weight: 700; padding-left: 12px; margin-bottom: 6px; }
.rank-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--brand-2); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-no { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #eef2f0; color: var(--muted); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rank-no.top { background: var(--brand-2); color: #fff; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name:hover { color: var(--brand); }
.rank-val { flex: none; color: #98a4ad; font-size: 12.5px; }

.side-stats .stat-list { list-style: none; margin: 0; padding: 4px 0 12px; display: flex; flex-direction: column; gap: 12px; }
.side-stats .stat-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-stats .stat-list strong { font-size: 18px; font-weight: 750; color: var(--brand); }
.side-stats .stat-list span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .card-grid.cols4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masthead-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .masthead-search { width: 100%; max-width: none; margin-left: 0; }
  .mainnav-inner { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 24px); }
  .card-grid.cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-note { display: none; }
  .mainnav-inner { flex-wrap: nowrap; overflow-x: auto; }
  .mainnav a { padding: 11px 13px; font-size: 13px; }
  .nav-drop { display: none; }
}

/* 二级分类 */
.categories.subcats { margin-top: -12px; }
.categories.subcats .cat-chip { font-size: 12.5px; padding: 5px 11px; background: #f7faf9; }
