/* ===== 软仓 SOFTVAULT · 极简黑白 / 卡片式分栏主题 =====
 * 视觉参考：Ready to Scale / Trustworthy checkout 双栏卡片
 * 浅灰底 + 厚白圆角外框 / 左浅卡右黑卡 / 大留白 / 胶囊按钮与标签 / 柔和阴影
 * 无渐变、无玻璃、无光晕；靠黑白对比、字重与留白建立层次。
 */
:root {
  color-scheme: light;
  --page: #f5f5f7;
  --frame: #ffffff;
  --card: #f4f4f4;
  --card-2: #fafafa;
  --dark: #1b1b1b;
  --dark-2: #242424;
  --ink: #111214;
  --ink-2: #3c3e42;
  --muted: #6e7076;
  --muted-2: #8b8d93;
  --dark-muted: #a4a4a4;
  --line: #e5e5e5;
  --line-2: #d6d6d6;
  --line-dark: rgba(255, 255, 255, .14);
  --shadow-frame: 0 30px 80px rgba(0, 0, 0, .09), 0 8px 24px rgba(0, 0, 0, .05);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, .06);
  --shadow-btn: 0 10px 24px rgba(0, 0, 0, .18);
  --r-frame: 42px;
  --r-card: 26px;
  --r-cell: 22px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; font-family: var(--font); font-size: 14px; line-height: 1.6;
  background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid #111; outline-offset: 3px; border-radius: 8px; }
::selection { background: #111; color: #fff; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
i[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ===== 外框 ===== */
.page { min-height: 100dvh; padding: 16px clamp(20px, 5vw, 90px) 0; display: flex; flex-direction: column; align-items: center; }
/* 推荐 Hero 融在页面背景上，白色圆角容器从热门榜单才开始 */
.hero-out { width: min(1120px, 100%); padding: 14px 0 18px; }
.frame {
  width: min(1120px, 100%); flex: 1 0 auto; background: var(--frame);
  border-radius: var(--r-frame) var(--r-frame) 0 0;
  padding: 20px; box-shadow: var(--shadow-frame); overflow: hidden;
}

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn-dark { background: var(--dark); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.btn-dark:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, .24); }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-btn); }
.btn-white:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .24); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 14.5px; }
.btn-sm { height: 34px; padding: 0 15px; font-size: 12.5px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: var(--card); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.app-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--g1, #2a2a2a), var(--g2, #555)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14); position: relative; overflow: hidden;
}
.app-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 55%); }
.app-icon > span { position: relative; z-index: 1; }
.app-icon.xl { width: 78px; height: 78px; border-radius: 21px; font-size: 28px; }
.app-icon.md { width: 44px; height: 44px; border-radius: 13px; font-size: 15px; }
.app-icon.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }

/* ===== 真实品牌 Logo =====
 * 彩色 / 深色官方矢量标：白底卡片，原色完整呈现
 * 纯白矢量标（如剪映、Notion）：自动套品牌渐变深底，避免白底融掉
 * 未收录官方矢量的少数软件：品牌色占位徽章铺满格子 */
.app-icon.has-logo {
  background: #fff; border: 1px solid rgba(0, 0, 0, .07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}
.app-icon.has-logo::after { display: none; }
.app-icon.has-logo.on-dark {
  background: linear-gradient(145deg, var(--g1), var(--g2));
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.app-icon .logo-inner {
  position: relative; z-index: 1; width: 70%; height: 70%;
  display: flex; align-items: center; justify-content: center;
}
.app-icon .logo-inner > svg { width: 100%; height: 100%; display: block; }
.app-icon .logo-inner > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.app-icon .logo-inner.logo-full { width: 100%; height: 100%; }
.app-icon.sm .logo-inner { width: 74%; height: 74%; }
.card-dark .app-icon:not(.has-logo), .cell-dark .app-icon:not(.has-logo) {
  background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

.tag, .pill {
  display: inline-flex; align-items: center; height: 29px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03); white-space: nowrap;
}
.tag.blue, .tag.green, .tag.orange, .tag.pink { background: #fff; color: var(--ink-2); border-color: var(--line); }
.card-dark .tag, .card-dark .pill, .cell-dark .tag, .cell-dark .pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #eee; box-shadow: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 26px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; }

.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.stars svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.stars .score { color: var(--ink); font-weight: 800; font-size: 13px; margin-left: 5px; }
.card-dark .stars, .cell-dark .stars { color: #fff; }
.card-dark .stars .score, .cell-dark .stars .score { color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.text-link:hover { opacity: .6; }
.text-link svg { width: 15px; height: 15px; }
.card-dark .text-link { color: #fff; }

/* ===== 顶部悬浮导航（吸顶：顶部透明融入，滚动后才浮现毛玻璃） ===== */
.topbar {
  position: sticky; top: 0; z-index: 90; width: 100%;
  background: transparent; border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease;
}
.topbar.is-scrolled {
  background: rgba(245, 245, 247, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, .07);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 19px; height: 19px; }
.brand-mark.small { width: 30px; height: 30px; border-radius: 10px; }
.brand-mark.small svg { width: 16px; height: 16px; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; }
.brand-name small { display: block; font-size: 9px; letter-spacing: 2.2px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.nav-mini { display: flex; align-items: center; gap: 2px; }
.nav-mini a { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s ease, color .2s ease; }
.nav-mini a:hover { color: var(--ink); }
.nav-mini a.active { background: var(--card); color: var(--ink); }
.search-mini {
  margin-left: auto; display: flex; align-items: center; gap: 9px;
  width: 240px; height: 38px; padding: 0 14px; background: var(--card); border-radius: 999px;
  transition: box-shadow .2s ease;
}
.search-mini:focus-within { box-shadow: inset 0 0 0 1.5px #111; }
.search-mini svg { width: 16px; height: 16px; color: var(--muted); }
.search-mini input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-mini input::placeholder { color: var(--muted-2); }
.kbd { font-size: 10px; color: var(--muted-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; background: #fff; }

/* ===== 主视觉：居中大标题（大气、矮，软件进首屏） ===== */
.hero-center { text-align: center; padding: 52px 16px 6px; }
.hero-center .eyebrow { display: block; }
.hero-title { font-size: clamp(44px, 6vw, 78px); line-height: 1.06; letter-spacing: -3.5px; margin: 18px 0 20px; font-weight: 800; }
.hero-lead { font-size: 16px; line-height: 1.9; color: var(--muted); max-width: 560px; margin: 0 auto; }
.stat-row { display: flex; justify-content: center; gap: 64px; padding-top: 36px; }
.stat-item b { display: block; font-size: 27px; letter-spacing: -.8px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-item span { font-size: 12px; color: var(--muted); }

/* ===== 卡片与眉标（详情页仍依赖） ===== */
.card-light, .card-dark { border-radius: var(--r-card); padding: 40px; }
.card-light { background: var(--card); }
.card-dark { background: var(--dark); color: #fff; }
.eyebrow, .section-kicker, .dark-label, .cell-eyebrow { font-size: 10.5px; letter-spacing: 2.2px; font-weight: 800; color: var(--muted); }
.dark-label, .card-dark .cell-eyebrow, .cell-dark .cell-eyebrow { color: #8f8f8f; }

.dark-title { font-size: 34px; letter-spacing: -1.3px; margin: 20px 0 14px; font-weight: 700; line-height: 1.2; }
.dark-lead { font-size: 14px; line-height: 1.9; color: var(--dark-muted); max-width: 470px; margin: 0; }
.dark-divider { height: 1px; background: var(--line-dark); }
.dark-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.task-info { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--dark-muted); }
.task-ring { width: 17px; height: 17px; border-radius: 50%; background: conic-gradient(#8ed36a 0 68%, rgba(255, 255, 255, .2) 68% 100%); position: relative; flex: none; }
.task-ring::after { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--dark); }

/* ===== 区块标题 ===== */
.section { margin-top: 58px; padding: 0 16px; scroll-margin-top: 80px; }
.section.section-tight { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-title-lg { font-size: 30px; letter-spacing: -1.2px; margin: 6px 0 0; font-weight: 800; line-height: 1.2; }
.section-sub { font-size: 13px; color: var(--muted); margin: 0; }
.sub-head { margin-top: 46px; }

/* ===== Bento 卡片区 ===== */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cell { border-radius: var(--r-cell); padding: 26px; min-height: 210px; }
.cell-light { background: var(--card); }
.cell-dark { background: var(--dark); color: #fff; }
.span-2 { grid-column: span 2; }
.cell-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.cell-title { font-size: 18px; font-weight: 800; letter-spacing: -.5px; margin: 0; }
.cell-dark .cell-title { color: #fff; }

.featured-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.featured-item {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: rgba(255, 255, 255, .055); border: 1px solid var(--line-dark); border-radius: 16px;
  transition: background .2s ease, transform .2s ease;
}
.featured-item:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.featured-item b { display: block; font-size: 13.5px; color: #fff; }
.featured-item > span { font-size: 11.5px; color: var(--dark-muted); line-height: 1.6; min-height: 36px; }
.featured-item .btn { align-self: flex-start; }

.cat-list, .rank-mini, .recent-row, .feature-list, .tl-list, .rec-list { display: flex; flex-direction: column; }
.cat-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px;
  border-bottom: 1px solid var(--line); text-align: left; transition: padding .2s ease, background .2s ease;
}
.cat-row:last-child { border-bottom: 0; }
.cat-row:hover { padding-left: 9px; background: rgba(0, 0, 0, .025); }
.cat-row.is-active { font-weight: 800; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #111; }
.cat-row b { flex: 1; font-size: 13px; font-weight: 600; }
.cat-row small { font-size: 11.5px; color: var(--muted); }
.cat-row svg { width: 14px; height: 14px; color: var(--muted-2); }

.rank-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(0, 0, 0, .025); }
.rank-num { width: 18px; font-size: 12px; font-weight: 800; color: var(--muted-2); font-style: italic; flex: none; }
.rank-row:nth-child(-n+3) .rank-num { color: var(--ink); }
.rank-name { flex: 1; min-width: 0; }
.rank-name b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name span { font-size: 11px; color: var(--muted); }

/* ===== 首页热门排行：双栏大榜 ===== */
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
.rank-grid .rank-row { padding: 15px 8px; gap: 15px; border-radius: 12px; }
.rank-grid .rank-num { width: 30px; font-size: 18px; letter-spacing: -.5px; }
.rank-grid .rank-name b { font-size: 15px; }
.rank-grid .rank-name span { font-size: 12px; }
.rank-grid .rank-row .app-icon { width: 42px; height: 42px; border-radius: 12px; }

/* ===== 发现区：全宽智能推荐 + 榜单 Tab ===== */
.discover-top { margin: 0; }
/* 榜单是白色容器的第一个区块：去掉与 Hero 之间的旧分隔线 */
#discover { margin-top: 8px; }
.charts { margin-top: 0; padding-top: 24px; }
#library { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ===== 智能推荐 Hero（无框，融入页面；下方榜单/软件库自成区块） ===== */
.reco-card {
  position: relative; padding: 44px 24px 36px;
  display: flex; flex-direction: column; align-items: stretch; gap: 26px; flex-wrap: nowrap;
  text-align: center; background: none; border: 0; box-shadow: none;
}
.reco-lead { flex: none; width: 100%; min-width: 0; }
.reco-panel { flex: none; width: 100%; min-width: 0; }
.reco-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 2.2px;
  font-weight: 800; color: #7c5cff;
}
.reco-kicker svg { width: 15px; height: 15px; }
.reco-title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.1; letter-spacing: -2px; margin: 18px 0 14px; font-weight: 800; }
.reco-sub { font-size: 15.5px; line-height: 1.75; color: var(--muted); margin: 0 auto; max-width: 660px; }
.reco-form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; }
.reco-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--card-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.reco-form input::placeholder { color: var(--muted-2); }
.reco-form input:focus { outline: none; border-color: #7c5cff; box-shadow: 0 0 0 4px rgba(124, 92, 255, .14); }
.reco-go {
  flex: none; height: 52px; padding: 0 24px; border: 0; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
  transition: transform .2s var(--ease-out), background .2s ease;
}
.reco-go:hover { background: #000; transform: translateY(-1px); }
.reco-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; justify-content: center; }
.reco-chips button {
  font-size: 12.5px; color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 17px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.reco-chips button:hover { background: #7c5cff; color: #fff; border-color: #7c5cff; }

/* ===== 推荐结果（输入后出现，全宽） ===== */
.reco-results { margin: 0 0 40px; }
.reco-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.reco-results-kicker {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--ink);
  padding: 5px 14px; border-radius: 999px; background: rgba(124, 92, 255, .1); color: #6b4bff;
}
.reco-results-sub { font-size: 12.5px; color: var(--muted); margin: 7px 0 0; }
.reco-clear {
  flex: none; font-size: 12.5px; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px;
}
.reco-clear:hover { color: var(--ink); }
.reco-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.reco-item {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s ease;
}
.reco-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .09); border-color: var(--line-2); }
.reco-item .app-icon { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.reco-item-main { flex: 1; min-width: 0; }
.reco-item-main b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco-item-main span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco-reason {
  display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700; color: #6b4bff;
  background: rgba(124, 92, 255, .1); border-radius: 999px; padding: 2px 9px;
}
.reco-install {
  flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  transition: transform .2s var(--ease-out), background .2s ease;
}
.reco-install:hover { background: #000; transform: translateY(-1px); }
.reco-install svg { width: 12px; height: 12px; }

/* ===== 搜索 / 推荐模式：只留匹配结果，隐藏榜单与全量列表 ===== */
body.search-mode .charts { display: none; }
body.search-mode #library { margin-top: 12px; padding-top: 24px; border-top: 0; }
body.reco-mode .charts,
body.reco-mode #library { display: none; }
body.reco-mode #discover { padding-bottom: 34px; }
body.reco-mode .reco-results { margin-bottom: 0; }

.rank-tabs {
  display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px;
}
.rank-tab {
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.rank-tab:hover { color: var(--ink); }
.rank-tab.is-active { background: var(--ink); color: #fff; }

.recent-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.recent-item b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item span { font-size: 10.5px; color: var(--muted); }
.recent-item > div { min-width: 0; }

/* 工具栏 */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 22px; }
.chip { padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .2s ease; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar .count { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.sort-select { height: 34px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; padding: 0 12px; color: var(--ink-2); font-size: 12.5px; outline: 0; }

/* 软件库：大图标网格（App Store / 启动台风格，图标为主、留白充足、更易扫读） */
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.app-tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; padding: 26px 16px 20px;
  background: #fff; border: 0; border-radius: 6px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 22px rgba(0, 0, 0, .09);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .2s ease;
}
.app-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0, 0, 0, .14); border-color: var(--line-2); }
.app-tile:active { transform: translateY(-1px) scale(.99); }
.app-tile .app-icon { width: 64px; height: 64px; border-radius: 15px; }
.app-tile-name {
  font-size: 14px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.app-tile-desc {
  font-size: 11.5px; line-height: 1.6; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 37px;
}
.app-tile-install {
  margin-top: 6px; height: 30px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--card); color: var(--ink); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: transform .2s var(--ease-out), background .2s ease, color .2s ease;
}
.app-tile-install:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-cell); }
.empty-state svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--muted-2); }
.empty-state b { color: var(--ink); }

/* ===== 软件库分页 ===== */
.pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin: 44px 0 6px;
}
.pager[hidden] { display: none; }
.pager-btn {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s var(--ease-out), border-color .18s ease, color .18s ease, background .18s ease;
}
.pager-btn svg { width: 15px; height: 15px; }
.pager-btn:hover:not(:disabled):not(.is-active) { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.pager-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; cursor: default; }
.pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.pager-gap { min-width: 22px; text-align: center; color: var(--muted-2); font-size: 13px; letter-spacing: 1px; }
.pager-info { font-size: 12px; color: var(--muted); margin-left: 12px; }

/* 装机合集：封面流横向轮播（中间大 · 两侧小 · 由左向右滚动） */
.coll-wrap { position: relative; }
.coll-carousel {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  padding: 28px 0 36px;
}
.coll-carousel::-webkit-scrollbar { height: 6px; }
.coll-carousel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.coll-carousel::-webkit-scrollbar-track { background: transparent; }
.coll-track { position: relative; display: flex; align-items: center; gap: 24px; width: max-content; }
.coll-slide {
  flex: 0 0 320px; height: 300px;
  scroll-snap-align: center; transform-origin: center center;
  transition: transform .4s var(--ease-out), opacity .4s ease, filter .4s ease;
  transform: scale(.74); opacity: .42; filter: saturate(.78);
  will-change: transform, opacity;
}
.coll-slide.is-center { transform: scale(1); opacity: 1; filter: none; }
.coll-slide .coll-card { width: 100%; height: 100%; }
.coll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  display: flex; align-items: center; justify-content: center; z-index: 5;
  opacity: 0; transition: opacity .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.coll-wrap:hover .coll-arrow { opacity: 1; }
.coll-arrow:hover { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.06); }
.coll-arrow svg { width: 18px; height: 18px; }
.coll-arrow-prev { left: 4px; }
.coll-arrow-next { right: 4px; }

/* 合集卡片（轮播内复用） */
/* 三卡网格（详情页「你可能还需要」等；合集页已改用 .coll-carousel 轮播） */
.coll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.coll-card { display: flex; flex-direction: column; min-height: 216px; padding: 26px; border-radius: var(--r-cell); background: var(--card); }
.coll-card.dark { background: var(--dark); color: #fff; }
.coll-num { font-size: 10.5px; letter-spacing: 2px; font-weight: 800; color: var(--muted); }
.coll-card.dark .coll-num { color: #8f8f8f; }
.coll-title { font-size: 20px; font-weight: 800; letter-spacing: -.6px; margin: 20px 0 8px; line-height: 1.25; }
.coll-desc { font-size: 12.5px; line-height: 1.8; color: var(--muted); margin: 0 0 14px; }
.coll-card.dark .coll-desc { color: var(--dark-muted); }
.coll-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.coll-logos .app-icon { flex: none; }
.coll-card.dark .coll-logos .app-icon { box-shadow: 0 4px 14px rgba(0, 0, 0, .32); }
.coll-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; }
.coll-btn:hover { transform: translateY(-2px); }
.coll-card.dark .coll-btn { background: #fff; color: var(--ink); }
.coll-btn svg { width: 14px; height: 14px; }
.coll-app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.coll-app-head b { display: block; font-size: 13.5px; }
.coll-app-head span { font-size: 11px; color: var(--muted); }

/* 页脚 */
.footer-mini { margin: 60px 16px 6px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.footer-mini p { flex: 1; min-width: 260px; font-size: 11.5px; color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { width: 100%; font-size: 11px; color: var(--muted-2); }

/* ===== 详情页 ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 4px 16px 20px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb b { color: var(--ink-2); font-weight: 700; }
/* 左灰右黑一张卡，中间干净分割（不做渐变过渡） */
.detail-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; margin: 0 16px;
  border-radius: var(--r-card);
  background: linear-gradient(90deg, var(--card) 0%, var(--card) 52%, var(--dark) 52%, var(--dark) 100%);
  box-shadow: 0 2px 8px rgba(16, 18, 24, .05), 0 20px 48px rgba(16, 18, 24, .13), 0 40px 80px -34px rgba(16, 18, 24, .10);
}
.detail-split .card-light, .detail-split .card-dark { background: none; border-radius: 0; box-shadow: none; }
.detail-left, .detail-right { display: flex; flex-direction: column; min-height: 520px; }
/* 图标 + 标题：图标在标题左侧，用黑色柔光「融合过渡」进浅色卡片（而非两个生硬圆角） */
.detail-head { display: flex; align-items: center; gap: 22px; }
.detail-head .eyebrow { display: block; }
.detail-head .detail-title { margin: 8px 0 0; }
.icon-fuse { position: relative; flex: none; }
.icon-fuse::before {
  content: ''; position: absolute; inset: -1px; border-radius: 27px;
  background: #111214; filter: blur(5px); opacity: .055; pointer-events: none;
}
.icon-fuse::after {
  content: ''; position: absolute; inset: 3px; border-radius: 24px;
  background: #111214; filter: blur(3px); opacity: .03; pointer-events: none;
}
.icon-fuse .app-icon { position: relative; z-index: 1; }
.icon-fuse .app-icon.has-logo { box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.icon-fuse .app-icon.xl { width: 96px; height: 96px; border-radius: 26px; font-size: 32px; }
.detail-title { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -1.6px; margin: 18px 0 8px; font-weight: 800; line-height: 1.15; }
.detail-lead { font-size: 16px; color: var(--ink-2); margin: 14px 0 18px; }
.detail-desc { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 26px 0 24px; border-top: 1px solid var(--line); }
.info-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.info-item span { color: var(--muted); flex: none; }
.info-item b { font-weight: 700; text-align: right; word-break: break-all; }
.fingerprint { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.detail-left .text-link { margin-top: auto; }

.icon-big { margin: 24px 0 6px; }
.rating-row { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; }
.rating-row .big-score { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.rating-row .small { font-size: 11.5px; color: var(--dark-muted); }
.dark-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-right .dark-foot { margin-top: auto; }
.detail-right .dark-label { margin-bottom: 4px; }

/* 安装进度（默认浅色，黑卡内覆盖） */
.install-panel { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; display: none; }
.install-panel.is-open { display: block; animation: slideDown .3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 20px; }
.step { text-align: center; }
.step .dot { width: 30px; height: 30px; margin: 0 auto 7px; border-radius: 50%; background: #ececec; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line); transition: all .3s ease; }
.step .dot svg { width: 14px; height: 14px; }
.step .label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.step.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.done .label { color: var(--ink); }
.step.active .dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(0, 0, 0, .1); }
.step.active .label { color: var(--ink); font-weight: 800; }
.install-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.install-status b { font-size: 13.5px; }
.install-status .pct { font-weight: 800; font-variant-numeric: tabular-nums; }
.track { height: 7px; border-radius: 99px; background: #ececec; overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .35s ease; }
.log-box, .modal-log { margin-top: 16px; background: #171717; color: #cfcfcf; border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.9; max-height: 140px; overflow-y: auto; }
.log-box .ok, .modal-log .ok { color: #9ad97b; }
.log-box .info, .modal-log .info { color: #b9c9ff; }
.log-box .dim, .modal-log .dim { color: #7c7c7c; }
.install-done { display: none; align-items: center; gap: 13px; margin-top: 16px; background: #efefef; border-radius: 13px; padding: 13px 15px; }
.install-done.is-open { display: flex; }
.install-done .done-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.install-done .done-ico svg { width: 19px; height: 19px; }
.install-done b { display: block; font-size: 13px; }
.install-done span { font-size: 11.5px; color: var(--muted); }
.install-done .btn { margin-left: auto; }

.card-dark .install-panel { border-top-color: var(--line-dark); }
.card-dark .step .dot { background: rgba(255, 255, 255, .1); border-color: var(--line-dark); color: var(--dark-muted); }
.card-dark .step .label { color: var(--dark-muted); }
.card-dark .step.done .dot, .card-dark .step.active .dot { background: #fff; border-color: #fff; color: var(--ink); }
.card-dark .step.done .label, .card-dark .step.active .label { color: #fff; }
.card-dark .step.active .dot { box-shadow: 0 0 0 5px rgba(255, 255, 255, .12); }
.card-dark .install-status b { color: #fff; }
.card-dark .install-status .pct { color: #fff; }
.card-dark .track { background: rgba(255, 255, 255, .16); }
.card-dark .track > i { background: #fff; }
.card-dark .install-done { background: rgba(255, 255, 255, .09); }
.card-dark .install-done b { color: #fff; }
.card-dark .install-done span { color: var(--dark-muted); }
.card-dark .install-done .done-ico { background: #fff; color: var(--ink); }

/* 详情 Bento 内容 */
.cell-head.row { flex-direction: row; align-items: center; justify-content: space-between; }
.shot-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.shot-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 600; color: var(--muted); }
.shot-tab:hover { color: var(--ink); }
.shot-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.shot-window { border-radius: 15px; overflow: hidden; background: #1b1b1b; border: 1px solid #2a2a2a; }
.shot-bar { height: 34px; background: #242424; display: flex; align-items: center; gap: 6px; padding: 0 13px; }
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.shot-bar .name { margin-left: 10px; font-size: 10px; color: #8f8f8f; }
.shot-body { display: grid; grid-template-columns: 76px 1fr; min-height: 226px; }
.shot-side { background: #202020; border-right: 1px solid rgba(255, 255, 255, .07); padding: 15px 10px; display: flex; flex-direction: column; gap: 9px; }
.shot-side i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .11); }
.shot-side i:nth-child(1) { background: rgba(255, 255, 255, .42); width: 80%; }
.shot-side i:nth-child(3) { width: 65%; }
.shot-side i:nth-child(5) { width: 88%; }
.shot-content { padding: 18px; }
.shot-content .line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-bottom: 10px; }
.shot-content .line.t { width: 42%; height: 14px; background: rgba(255, 255, 255, .24); margin-bottom: 16px; }
.shot-content .line.s { width: 72%; }
.shot-content .line.m { width: 88%; }
.shot-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.shot-cards i { display: block; height: 58px; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); }

.feature-list { gap: 0; }
.feature-row { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
.feature-row:last-child { border-bottom: 0; }
.feature-ico { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; flex: none; }
.feature-ico svg { width: 15px; height: 15px; }
.feature-row b { display: block; font-size: 12.5px; color: #fff; }
.feature-row small { display: block; font-size: 11px; color: var(--dark-muted); line-height: 1.6; }

.tl-item { position: relative; padding-bottom: 16px; border-left: 1px solid var(--line-2); padding-left: 16px; margin-left: 4px; }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tl-item:nth-child(n+2)::before { background: #c9c9c9; }
.tl-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.tl-head b { font-size: 12.5px; }
.tl-head time { font-size: 10.5px; color: var(--muted); }
.tl-item li { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.tl-item ul { margin: 0; padding-left: 15px; }

.rec-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rec-row:last-child { border-bottom: 0; }
.rec-row b { display: block; font-size: 12.5px; }
.rec-row span { font-size: 11px; color: var(--muted); }
.rec-row > div { flex: 1; min-width: 0; }
.rec-row svg { width: 14px; height: 14px; color: var(--muted-2); }
.rec-row:hover b { text-decoration: underline; }

.score-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 11px; }
.score-row .lbl { width: 28px; color: var(--muted); }
.score-row .track { flex: 1; height: 5px; }
.score-row .track > i { background: var(--ink); }
.score-row .val { width: 28px; text-align: right; color: var(--muted); }

/* ===== 一键安装弹窗 ===== */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 20, 20, .48); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-backdrop.is-open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(510px, 100%); background: #fff; border-radius: 26px; box-shadow: 0 34px 90px rgba(0, 0, 0, .28); overflow: hidden; animation: popIn .25s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head .txt { flex: 1; min-width: 0; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.modal-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.modal-body { padding: 22px; }
.modal .steps { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.modal .step .label { font-size: 10px; }
.modal-log { height: 130px; margin-top: 16px; }
.modal-foot { padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-foot .btn { flex: 1; }
.modal-done-state { text-align: center; padding: 10px 0 4px; }
.modal-done-state .big { width: 62px; height: 62px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.modal-done-state .big svg { width: 30px; height: 30px; }
.modal-done-state h3 { font-size: 19px; margin: 0 0 6px; font-weight: 800; }
.modal-done-state p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.demo-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); background: var(--card); border-radius: 9px; padding: 6px 11px; margin-top: 13px; }
.demo-hint svg { width: 13px; height: 13px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); animation: toastIn .25s ease; }
.toast svg { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .nav-mini { display: none; }
  .featured-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page { padding: 20px 16px 0; }
  .frame { padding: 14px; border-radius: 32px 32px 0 0; }
  .detail-split { grid-template-columns: minmax(0, 1fr); background: none; box-shadow: none; gap: 14px; }
  .detail-split .card-light { background: var(--card); border-radius: var(--r-card); box-shadow: 0 2px 8px rgba(16, 18, 24, .05), 0 16px 36px rgba(16, 18, 24, .10); }
  .detail-split .card-dark { background: var(--dark); border-radius: var(--r-card); box-shadow: 0 2px 8px rgba(16, 18, 24, .06), 0 16px 36px rgba(16, 18, 24, .14); }
  .card-light, .card-dark { padding: 30px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coll-grid { grid-template-columns: minmax(0, 1fr); }
  .recent-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .search-mini { width: 200px; }
}
@media (max-width: 560px) {
  .page { padding: 12px 10px 0; }
  .frame { padding: 10px; border-radius: 26px 26px 0 0; }
  .topbar { padding: 6px 8px 18px; gap: 10px; }
  .search-mini { display: none; }
  .topbar .btn-dark { margin-left: auto; }
  .card-light, .card-dark { padding: 24px; border-radius: 20px; }
  .dark-title { font-size: 27px; }
  .rank-grid .rank-num { width: 24px; font-size: 15px; }
  .rank-grid .rank-name b { font-size: 13.5px; }
  .app-grid, .featured-row, .recent-row, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 1; }
  .cell { padding: 20px; min-height: 0; }
  .app-tile { padding: 18px 10px 16px; }
  .coll-slide { flex: 0 0 76vw; height: 264px; }
  .coll-arrow { opacity: .92; }
  .app-tile .app-icon { width: 58px; height: 58px; border-radius: 15px; }
  .reco-card { flex-direction: column; align-items: stretch; gap: 22px; padding: 36px 12px 28px; }
  .reco-lead, .reco-panel { flex: 1 1 auto; }
  .reco-grid { grid-template-columns: minmax(0, 1fr); }
  .rank-tabs { width: 100%; overflow-x: auto; }
  .section { padding: 0 8px; margin-top: 42px; }
  .detail-split { margin: 0 8px; }
  .section-title-lg { font-size: 25px; }
  .dark-foot { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-mini { margin: 44px 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 幕客助手下载入口（详情页黑卡 / 安装日志里） */
.helper-dl{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;opacity:.92;transition:opacity .15s}
.helper-dl:hover{opacity:1;text-decoration-thickness:2px}
