/* ============================================================
   极客软件库 · 设计系统
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --bg-soft: #eaeef7;
  --card: #ffffff;
  --card-2: #f8fafd;
  --text: #0d1526;
  --muted: #69728a;
  --line: rgba(13, 21, 38, 0.08);
  --brand: #2f6bff;
  --brand-2: #7c5cff;
  --brand-soft: rgba(47, 107, 255, 0.10);
  --ok: #12b886;
  --warn: #ff9f1c;
  --danger: #f43f5e;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05), 0 4px 14px rgba(13, 21, 38, .04);
  --shadow: 0 10px 34px rgba(13, 21, 38, .09);
  --shadow-lg: 0 24px 60px rgba(13, 21, 38, .16);
  --radius: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html[data-theme="dark"] {
  --bg: #080b12;
  --bg-soft: #0f1521;
  --card: #121a28;
  --card-2: #17202f;
  --text: #e9eefb;
  --muted: #8b95ab;
  --line: rgba(255, 255, 255, .09);
  --brand-soft: rgba(88, 133, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner {
  height: 62px; display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr;
}
.topbar-side { display: flex; align-items: center; gap: 6px; min-width: 40px; }
.topbar-right { justify-content: flex-end; }
.brand {
  display: flex; align-items: center; gap: 10px;
  justify-self: center; font-weight: 800; letter-spacing: -.02em;
  color: var(--text-1);
}
.brand-icon {
  width: 32px; height: 32px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 4px 12px rgba(20, 40, 120, .30);
}
.brand-name { font-size: 17px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--muted); transition: .18s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }

/* ---------------- 通用组件 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 12px;
  font-weight: 650; font-size: 14px; white-space: nowrap;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:hover { box-shadow: var(--shadow); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(47, 107, 255, .3);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(47, 107, 255, .42); }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}
.pill.gray { background: var(--bg-soft); color: var(--muted); }
.pill.ok { background: rgba(18, 184, 134, .12); color: var(--ok); }
.pill.warn { background: rgba(255, 159, 28, .14); color: #c77900; }

.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}

.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; margin: 0; letter-spacing: -.02em; }
.section-head h2 span { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 8px; letter-spacing: 0; }
.section-head .more { font-size: 13px; color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden; margin-top: 18px;
  border-radius: 26px; padding: 26px 24px;
  background: linear-gradient(125deg, #2148d8 0%, #2f6bff 38%, #7c5cff 100%);
  color: #fff; box-shadow: 0 18px 44px rgba(47, 107, 255, .28);
}
.hero::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -110px; top: -150px;
  background: radial-gradient(circle, rgba(255,255,255,.34), transparent 62%);
  border-radius: 50%;
}
.hero::before {
  content: ""; position: absolute; width: 220px; height: 220px; right: 90px; bottom: -150px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  border-radius: 50%;
}
.hero h1 { position: relative; margin: 0 0 8px; font-size: 24px; line-height: 1.3; letter-spacing: -.03em; }
.hero p { position: relative; margin: 0; opacity: .82; font-size: 14px; }
.hero-stats { position: relative; display: flex; gap: 26px; margin-top: 20px; }
.hero-stats b { display: block; font-size: 21px; letter-spacing: -.02em; }
.hero-stats span { font-size: 12px; opacity: .74; }

/* ---------------- 搜索 ---------------- */
.search-hero { margin-top: 18px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 0 14px; height: 52px;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box input { flex: 1; border: none; background: none; outline: none; font-size: 15px; }
.search-box button { color: var(--brand); font-weight: 650; font-size: 14px; padding: 6px; }

/* ---------------- 分类 ---------------- */
.chips { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-sm); transition: .18s;
}
.chip:hover, .chip.active { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: .2s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; background: var(--bg-soft);
}
.cat-tile b { display: block; font-size: 14.5px; }
.cat-tile span { font-size: 12px; color: var(--muted); }

/* ---------------- 应用卡片 ---------------- */
.feature-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feature-scroll::-webkit-scrollbar { display: none; }
.feature-card {
  position: relative; flex: none; width: 300px; padding: 18px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  scroll-snap-align: start; overflow: hidden; transition: .22s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 92px;
  background: linear-gradient(135deg, var(--fc, #2f6bff), transparent);
  opacity: .13;
}
.fc-top { position: relative; display: flex; gap: 12px; align-items: center; }
.app-icon {
  width: 56px; height: 56px; border-radius: 15px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
  overflow: hidden; box-shadow: 0 6px 16px rgba(13, 21, 38, .16);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.sm { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
.app-icon.lg { width: 92px; height: 92px; border-radius: 23px; font-size: 36px; }
.fc-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.35; }
.fc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fc-desc { position: relative; margin: 12px 0 14px; font-size: 13px; color: var(--muted); line-height: 1.55; min-height: 40px; }
.fc-foot { position: relative; display: flex; align-items: center; justify-content: space-between; }

.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-row {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: .18s;
}
.app-row:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 20%, var(--line)); }
.app-row .info { flex: 1; min-width: 0; }
.app-row .name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.app-row .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.app-row .sub i { font-style: normal; opacity: .55; }
.rank-no {
  flex: none; width: 26px; text-align: center; font-weight: 800; font-size: 15px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.rank-no.top { color: var(--danger); }

.grid-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-card {
  padding: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: .18s;
  display: flex; flex-direction: column;
}
.grid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.grid-card .name { font-weight: 650; font-size: 14.5px; margin-top: 10px; }
.grid-card .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.grid-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

/* ---------------- 详情页 ---------------- */
.detail-hero {
  position: relative; margin-top: 16px; padding: 24px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 140px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: .10;
}
.detail-top { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.detail-title { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.detail-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.meta-grid {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); gap: 12px;
}
.meta-grid div b { display: block; font-size: 14px; font-weight: 700; }
.meta-grid div span { font-size: 11.5px; color: var(--muted); }
.ext-note {
  position: relative; display: flex; align-items: center; gap: 7px;
  margin-top: 16px; padding: 9px 12px; border-radius: 10px;
  font-size: 12.5px; background: var(--brand-soft); color: var(--brand);
}
.ext-note b { font-weight: 700; }
.detail-actions { position: relative; display: flex; gap: 10px; margin-top: 20px; }
.detail-actions .btn-primary { flex: 1; height: 48px; border-radius: 14px; font-size: 16px; }

.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img {
  width: 176px; height: 313px; object-fit: cover; border-radius: 16px; flex: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg-soft);
}
.desc { white-space: pre-line; color: var(--text); font-size: 14.5px; line-height: 1.85; opacity: .9; }
.kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }

.version-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.version-item:last-child { border-bottom: none; }
.version-item .v { font-weight: 700; font-size: 14px; }
.version-item .d { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------------- 空态 / 页脚 / 底栏 ---------------- */
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 42px; margin-bottom: 10px; opacity: .5; }

.footer {
  margin: 46px 0 24px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.9; text-align: center;
}
.footer a { color: var(--brand); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
}
.tabbar.tabs3 { grid-template-columns: repeat(3, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tabbar a.active { color: var(--brand); }
.tabbar svg { width: 22px; height: 22px; }

/* ---------------- 后台 ---------------- */
.admin-body { background: var(--bg-soft); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 228px; flex: none; position: sticky; top: 0; height: 100vh;
  background: var(--card); border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
}
.admin-side .brand { padding: 4px 10px 20px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: .16s;
}
.side-link:hover { background: var(--bg-soft); color: var(--text); }
.side-link.active { background: var(--brand-soft); color: var(--brand); }
.side-link svg { width: 18px; height: 18px; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.admin-main { flex: 1; min-width: 0; padding: 26px 30px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: 23px; margin: 0; letter-spacing: -.03em; }
.admin-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat .lab { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .val { font-size: 26px; font-weight: 800; letter-spacing: -.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .val small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-body { padding: 18px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding-top: 8px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
.chart .bar {
  width: 100%; max-width: 40px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand-2) 70%, transparent));
  min-height: 4px; transition: height .4s ease;
}
.chart .bar-lab { font-size: 10.5px; color: var(--muted); }
.chart .bar-val { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-size: 12px; font-weight: 650; color: var(--muted);
  padding: 11px 14px; background: var(--card-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: color-mix(in srgb, var(--brand) 3%, transparent); }
.cell-app { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.cell-app b { font-weight: 650; display: block; font-size: 13.5px; }
.cell-app span { font-size: 11.5px; color: var(--muted); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.input, .select, .textarea {
  height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); outline: none;
  transition: .18s; width: 100%;
}
.textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; min-height: 110px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-section { padding: 20px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: none; }
.form-section h3 { margin: 0 0 16px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; background: var(--card-2); }

.upload-box {
  border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px;
  background: var(--card-2); transition: .2s; cursor: pointer;
}
.upload-box:hover { border-color: var(--brand); background: var(--brand-soft); }
.upload-box input[type=file] { width: 100%; font-size: 12.5px; color: var(--muted); }

.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb { position: relative; }
.thumb img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.thumb.shot img { width: 76px; height: 135px; }
.thumb .x {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: #fff; font-size: 12px; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; font-size: 13px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.notice.err { background: rgba(244, 63, 94, .1); color: var(--danger); }
.notice.ok { background: rgba(18, 184, 134, .1); color: var(--ok); }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center;
  font-size: 13px; background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .gap { border: none; background: none; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(47, 107, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 85% 100%, rgba(124, 92, 255, .18), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; padding: 30px;
  background: var(--card); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 21px; margin: 16px 0 4px; letter-spacing: -.03em; }
.login-card p { margin: 0 0 22px; font-size: 13px; color: var(--muted); }

/* ---------------- 响应式 ---------------- */
@media (min-width: 720px) {
  .hero { padding: 34px; }
  .hero h1 { font-size: 30px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-apps { grid-template-columns: repeat(3, 1fr); }
  .detail-actions .btn-primary { flex: none; min-width: 220px; }
}
@media (min-width: 980px) {
  .grid-apps { grid-template-columns: repeat(4, 1fr); }
  .shots img { width: 200px; height: 355px; }
  .app-list.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-side {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 40;
    flex-direction: row; align-items: center; gap: 4px; padding: 8px 12px;
    overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line);
  }
  .admin-side .brand { padding: 0 10px 0 2px; }
  .admin-side .brand-name { display: none; }
  .side-label, .side-foot { display: none; }
  .side-link { padding: 8px 11px; font-size: 13px; white-space: nowrap; }
  .admin-main { padding: 18px 16px 50px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(62px + var(--safe-b)); }
  .topbar-inner { height: 56px; }
  .top-search { display: none; }
  .tabbar { display: grid; }
  .footer { margin-bottom: 0; }
  .hero { border-radius: 22px; padding: 22px 20px; }
  .hero-stats { gap: 20px; }
  .feature-card { width: 268px; }
  .admin-body { padding-bottom: 0; }
  .detail-hero { padding: 18px; }
  .detail-top { gap: 13px; }
  .app-icon.lg { width: 76px; height: 76px; border-radius: 19px; }
  .detail-title { font-size: 18px; }
  .grid-apps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 关于页 ---------- */
.about-page { max-width: 520px; margin: 0 auto; text-align: center; }
.about-brand { padding: 56px 16px 30px; }
.about-icon {
  display: block; width: 148px; height: 148px; border-radius: 33px; object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.about-name { font-size: 25px; font-weight: 800; margin-top: 24px; letter-spacing: -.3px; }
.about-copy { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ---------- 顶栏返回按钮 ---------- */
.back-btn { flex: none; margin-right: -4px; }
