/* ===== 软仓 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: 24px;
  --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: 36px 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 { display: block; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ===== 首页热门排行：双栏大榜 ===== */
.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;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.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);
  overflow: hidden;                 /* 内容不许冒出卡片 */
  position: relative;
}
.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: grid;
  grid-template-columns: repeat(auto-fill, 34px);
  grid-auto-rows: 34px;
  gap: 8px;
  margin: 0 0 18px;
  max-height: 76px;                 /* 正好两行（34 + 8 + 34） */
  overflow: hidden;
  position: relative;
  align-content: start;
}
/* 第二行末尾做淡出，暗示还有更多 */

.coll-logos .app-icon { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; }
.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-end; 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: 22px 18px 30px; }
.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}

/* 详情页真实截图：大图 + 缩略图 */
.shot-real{display:block;border-radius:14px;overflow:hidden;background:#111}
.shot-real img{width:100%;display:block;border-radius:14px}
.shot-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.shot-thumb{width:86px;height:64px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#111;cursor:pointer;opacity:.72;transition:opacity .15s,border-color .15s}
.shot-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.shot-thumb:hover{opacity:1}
.shot-thumb.is-active{opacity:1;border-color:#1d1c1a}

/* 教程区块 */
.tut-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;aspect-ratio:16/9;border-radius:14px;background:#111;color:#fff;margin-top:2px}
.tut-empty b{color:#fff;font-size:14px}
.tut-empty small{color:#8f8f8f;font-size:12px}
.tut-play{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#1d1c1a;color:#fff;flex:none}
.tut-play svg{width:16px;height:16px}
.tut-empty b{display:block;font-size:14px;color:#1d1c1a}
.tut-empty small{font-size:12px;color:#8a8477}
.tut-player{position:relative;border-radius:14px;overflow:hidden;background:#000;aspect-ratio:16/9}
.tut-player video{width:100%;height:100%;display:block;object-fit:contain;background:#000}
.tut-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12px;color:#8a8477}
.tut-meta b{font-size:13px;color:#1d1c1a}
.tut-chapters{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tut-chapter{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #e2ddd3;border-radius:999px;background:#fff;font-size:12.5px;color:#3d3a35;cursor:pointer}
.tut-chapter span{color:#a29b8e;font-variant-numeric:tabular-nums}
.tut-chapter:hover{border-color:#1d1c1a}

/* 简介卡（详情页右列） */
.ov-lead{font-size:15px;line-height:1.6;color:#fff;margin:2px 0 10px;font-weight:600}
.ov-text{font-size:12.5px;line-height:1.9;color:var(--dark-muted);margin:0 0 12px}
.ov-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.ov-chips span{font-size:11px;padding:3px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.18);color:#e7e7e7;background:rgba(255,255,255,.06)}
.ov-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin:0 0 16px}
.ov-facts dt{font-size:10.5px;letter-spacing:.04em;color:#8f8f8f;margin:0 0 3px}
.ov-facts dd{margin:0;font-size:12.5px;color:#fff}
.ov-rule{height:1px;background:rgba(255,255,255,.1);margin:0 0 14px}

/* 教程占位：文字在深色海报上要亮 */
.tut-empty b{color:#fff}
.tut-empty small{color:#8f8f8f}

/* 简介卡变短后不要拉满整列 */

/* 三列通栏 + 主体/详情分割线 */
.span-3{grid-column:span 3}
@media (max-width:900px){ .span-3{grid-column:span 1} }
.section-split{display:flex;align-items:center;gap:14px;margin:38px 0 26px}
.section-split i{flex:1;height:1px;background:linear-gradient(90deg,rgba(0,0,0,.06),rgba(0,0,0,.18),rgba(0,0,0,.06))}
.section-split span{font-size:11px;letter-spacing:.22em;color:#a09889;white-space:nowrap}

/* 简介卡与预览同高：标题在上、胶囊贴底，避免大片死黑 */
#featureGrid{display:flex;flex-direction:column}
#featureGrid .ov-chips{margin-top:auto;margin-bottom:0}
.shot-real img{max-height:520px;object-fit:cover}

/* 教程整屏通栏 */
.tut-section{margin:34px 0 40px}
.tut-card{background:#0d0d0e;border-radius:26px;padding:38px 40px 34px;color:#fff}
.tut-head .section-kicker{color:#8f8f8f}
.tut-title{font-size:28px;line-height:1.2;margin:8px 0 8px;color:#fff;letter-spacing:-.01em}
.tut-sub{font-size:13.5px;color:#9a958c;margin:0 0 26px}
.tut-stage{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000;display:grid;place-items:center}
.tut-stage video{width:100%;height:100%;display:block;object-fit:contain;background:#000}
.tut-stage.is-empty{border:1px solid rgba(255,255,255,.08);gap:10px}
.tut-stage.is-empty .tut-play{width:64px;height:64px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18)}
.tut-stage.is-empty .tut-play svg{width:22px;height:22px}
.tut-stage.is-empty b{color:#fff;font-size:15px}
.tut-stage.is-empty small{color:#8f8f8f;font-size:12.5px}
.tut-card .tut-meta{color:#9a958c}
.tut-card .tut-meta b{color:#fff}
.tut-card .tut-chapter{background:transparent;border-color:rgba(255,255,255,.18);color:#e7e7e7}
.tut-card .tut-chapter:hover{border-color:#fff}
.tut-card .tut-chapter span{color:#8f8f8f}

/* 空教程位：图标与文字聚在中间 */
.tut-stage.is-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}

/* 教程卡与上下区块的呼吸感 */
.tut-section{margin:34px 0 40px}
.detail-bento + .detail-bento{margin-top:0}

/* 教程卡改成跟其它卡片同款浅色，视频块的圆角才看得出来 */
.tut-card{background:var(--card);color:#1d1c1a;border:1px solid rgba(0,0,0,.035);box-shadow:0 1px 2px rgba(0,0,0,.02)}
.tut-card .section-kicker{color:#a09889}
.tut-card .tut-title{color:#1d1c1a}
.tut-card .tut-sub{color:#8a8477}
.tut-card .tut-meta{color:#8a8477}
.tut-card .tut-meta b{color:#1d1c1a}
.tut-card .tut-chapter{background:#fff;border-color:#e2ddd3;color:#3d3a35}
.tut-card .tut-stage{box-shadow:0 10px 30px rgba(0,0,0,.14)}
.tut-card .tut-stage.is-empty{border:0}

/* 分割改为「留白 + 小标签」，不再拉横线贯穿 */
.section-split{display:flex;justify-content:center;align-items:center;margin:46px 0 30px}
.section-split span{font-size:11px;letter-spacing:.3em;color:#b3aa99;text-transform:uppercase}

/* 详情页：上下拆成两个白色容器，中间露出页面背景色 */
.page-stack{width:100%;display:flex;flex-direction:column;align-items:center;flex:1 0 auto}
.frame-top{border-radius:var(--r-frame);flex:0 0 auto;padding-bottom:26px}

/* 三个容器之间统一 44px 留白 */
.page-stack > .frame + .frame{margin-top:22px}

/* 推荐区：横向滚动条 */
.related-scroll{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
  padding:2px 2px 14px;margin:0 -2px;-webkit-overflow-scrolling:touch}
.related-scroll > .coll-card{flex:0 0 320px;scroll-snap-align:start}
.related-scroll::-webkit-scrollbar{height:8px}
.related-scroll::-webkit-scrollbar-track{background:rgba(0,0,0,.04);border-radius:99px}
.related-scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:99px}
.related-scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}
@media (max-width:760px){ .related-scroll > .coll-card{flex:0 0 78%} }

/* 页头整体放大一档 */
.topbar-inner{padding:14px 20px;gap:26px}
.brand-mark{width:42px;height:42px;border-radius:13px}
.brand-mark svg{width:22px;height:22px}
.brand-name{font-size:19px}
.brand-name small{font-size:10px;letter-spacing:2.4px;margin-top:4px}
.nav-mini{gap:4px}
.nav-mini a{padding:9px 16px;font-size:14.5px}
.search-mini{width:290px;height:44px;padding:0 16px;gap:10px}
.search-mini svg{width:17px;height:17px}
.search-mini input{font-size:14px}
.kbd{font-size:10.5px;padding:2px 6px}

/* 主视觉：改成两块独立圆角卡片（左浅右深），外面留白边 */
.detail-split{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:12px; margin:0; padding:0; border-radius:0; background:none; box-shadow:none;
}
.detail-split .card-light{
  background:var(--card); border-radius:18px;
  box-shadow:0 2px 6px rgba(16,18,24,.04), 0 16px 40px -24px rgba(16,18,24,.16);
}
.detail-split .card-dark{
  background:var(--dark); color:#fff; border-radius:18px;
  box-shadow:0 2px 6px rgba(16,18,24,.06), 0 18px 44px -26px rgba(16,18,24,.28);
}

/* 黑卡上的主按钮：黑底黑字看不见，改成白底黑字的大按钮 */
.detail-right .dark-actions{gap:12px}
.detail-right .dark-actions .btn-dark{
  background:#fff; color:#0d0d0e;
  height:56px; font-size:15.5px; font-weight:800; letter-spacing:.01em;
  border-radius:14px;
  box-shadow:0 10px 26px -14px rgba(255,255,255,.55), inset 0 1px 0 rgba(255,255,255,.9);
}
.detail-right .dark-actions .btn-dark:hover{
  background:#f4f4f2; transform:translateY(-1px);
  box-shadow:0 16px 34px -16px rgba(255,255,255,.65);
}
.detail-right .dark-actions .btn-dark:disabled{background:#d8d8d4;color:#7a7a75}
.detail-right .dark-actions .btn-dark svg{width:18px;height:18px}
.detail-right .dark-actions .dl-btn{
  height:46px; font-size:13.5px; border-radius:12px;
  border-color:rgba(255,255,255,.34); color:rgba(255,255,255,.92);
}
.detail-right .dark-actions .dl-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.55)}

/* 教程卡：底部也圆角，视频块四角一致 */
.tut-card{overflow:hidden;border-radius:26px;padding-bottom:30px}
.tut-stage{border-radius:18px !important;overflow:hidden}
.tut-stage.is-empty{box-shadow:none}
.tut-stage video{border-radius:18px}

/* 页脚下方留白 */
.footer-mini{margin-bottom:0;padding-bottom:44px}

/* 右列更新日志（深色卡内） */
.ov-log{margin-bottom:16px}
.ov-log-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.ov-log-head b{font-size:13px;color:#fff}
.ov-log-head time{font-size:11px;color:#8f8f8f}
.ov-log ul{margin:0;padding-left:16px}
.ov-log li{font-size:12px;line-height:1.9;color:var(--dark-muted)}
.ov-log li::marker{color:#5a5a5a}

/* 更新日志卡改成浅灰（跟预览卡同色），不再用黑底 */
#featureGrid{background:var(--card);color:var(--ink)}
#featureGrid .cell-eyebrow{color:#a09889}
#featureGrid .cell-title{color:var(--ink)}
#featureGrid .ov-log-head b{color:var(--ink)}
#featureGrid .ov-log-head time{color:var(--muted)}
#featureGrid .ov-log li{color:#4a463f}
#featureGrid .ov-log li::marker{color:#c2bbae}
#featureGrid .ov-text{color:var(--muted)}
#featureGrid .ov-chips span{background:#fff;border-color:var(--line-2);color:var(--ink-2)}

/* 更新日志：竖向时间线，一条线贯穿到底 */
.ov-timeline{position:relative;flex:1;padding-left:22px;margin-top:2px}
.ov-timeline::before{
  content:"";position:absolute;left:5px;top:7px;bottom:0;width:1.5px;
  background:linear-gradient(180deg,#d9d2c6 0%,#d9d2c6 70%,rgba(217,210,198,0) 100%);
}
.ov-tl{position:relative;margin-bottom:22px}
.ov-tl-dot{position:absolute;left:-22px;top:4px;width:9px;height:9px;border-radius:50%;
  background:#1d1c1a;box-shadow:0 0 0 3px var(--card)}
.ov-tl:first-child .ov-tl-dot{background:#1d1c1a}
.ov-tl-head{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
.ov-tl-head b{font-size:13px;color:var(--ink)}
.ov-tl-head time{font-size:11px;color:var(--muted)}
.ov-tl-list{margin:0;padding-left:14px}
.ov-tl-list li{font-size:12px;line-height:1.95;color:#4a463f}
.ov-tl-list li::marker{color:#c2bbae}

/* 时间线线条再清楚一点 */
.ov-timeline::before{background:linear-gradient(180deg,#c9c1b2 0%,#d6cfc2 55%,rgba(214,207,194,0) 100%);width:2px;left:4.5px}
.ov-tl-dot{width:11px;height:11px;left:-23px;top:3px;box-shadow:0 0 0 4px var(--card)}

/* 外层白卡四角都圆，页面底部留一点底色 */
.frame{border-radius:var(--r-frame)}
.page{padding-bottom:22px}

/* 推荐区隐藏滚动条（自动滚动已经能露出后面内容） */
.related-scroll{scrollbar-width:none;-ms-overflow-style:none;padding-bottom:4px}
.related-scroll::-webkit-scrollbar{height:0;display:none}
/* 两侧柔化，暗示还有内容 */
.related-scroll{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 24px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 24px),transparent 100%);
}

/* 连续滚动不要吸附 */
.related-scroll{scroll-snap-type:none;scroll-behavior:auto}
.related-scroll > .coll-card{scroll-snap-align:none}

/* 页面底部留白加大 */
.page{padding-bottom:72px}

/* 最后一个容器：底部不要圆角 */
.page-stack > .frame:last-child{border-radius:var(--r-frame) var(--r-frame) 0 0}

/* 推荐卡：圆角收小 + logo 放大 */
.related-scroll > .coll-card{border-radius:14px;padding:22px}
.related-scroll .coll-app-head{gap:14px;align-items:center}
.related-scroll .app-icon.md{width:62px;height:62px;border-radius:17px;font-size:20px}
.related-scroll .app-icon.md .logo-inner{width:78%;height:78%}
.related-scroll .app-icon.md .logo-inner.logo-full{width:100%;height:100%}
.related-scroll .coll-app-head b{font-size:16px;letter-spacing:-.2px}
.related-scroll .coll-app-head span{font-size:11.5px}
.related-scroll .coll-desc{font-size:12.5px;margin-top:14px}
.related-scroll .coll-btn{margin-top:auto}

/* 排行榜 */
.rank-head{margin-top:52px}
.rank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 34px;min-width:0}
.rank-grid .rank-row{padding:14px 4px;min-width:0}
.rank-grid .rank-num{font-size:15px;width:26px;color:var(--muted-2)}
.rank-grid .rank-num.top{color:var(--ink);font-weight:800}
.rank-grid .rank-name b{font-size:14.5px}
.rank-grid .rank-name span{font-size:11.5px}
.rank-grid .btn-sm{height:34px;padding:0 16px;font-size:12.5px}
@media (max-width:900px){ .rank-grid{grid-template-columns:1fr} }

/* 更新时间在前、版本/标题在后 */
.ov-tl-head{gap:14px}
.ov-tl-head time{font-size:13px;color:var(--ink);font-weight:700;letter-spacing:-.1px;order:0}
.ov-tl-head b{font-size:11.5px;color:var(--muted);font-weight:600;order:1}

/* 时间线：一条细灰线，不要渐变和米色 */
.ov-timeline::before{
  background:#e6e3dd;width:1px;left:5.5px;top:9px;bottom:10px;
  background-image:none;
}

/* 详情页两栏：预览 60% / 更新日志 40%，右边宽一点 */
.detail-bento{grid-template-columns:repeat(5,minmax(0,1fr))}
.detail-bento #shotPanel{grid-column:span 3}
.detail-bento #featureGrid{grid-column:span 2}
@media (max-width:900px){
  .detail-bento{grid-template-columns:minmax(0,1fr)}
  .detail-bento #shotPanel,.detail-bento #featureGrid{grid-column:span 1}
}

/* 智能推荐结果：卡片化，信息更清楚 */
.reco-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.reco-item{
  flex-direction:column;align-items:stretch;gap:14px;padding:22px;
  background:var(--card);border:1px solid transparent;border-radius:16px;
}
.reco-item:hover{transform:translateY(-2px);border-color:transparent;box-shadow:0 14px 30px rgba(0,0,0,.08)}
.reco-item .app-icon{width:56px;height:56px;border-radius:15px;flex:none}
.reco-top{display:flex;align-items:center;gap:14px}
.reco-id{min-width:0}
.reco-id b{display:block;font-size:16px;font-weight:800;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reco-id span{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.reco-desc{font-size:12.5px;line-height:1.65;color:var(--muted);margin:0;min-height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reco-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.reco-reason{margin-top:0;font-size:11px;padding:3px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58%}
.reco-install{height:36px;padding:0 16px;font-size:12.5px}
@media (max-width:1100px){ .reco-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:720px){ .reco-grid{grid-template-columns:minmax(0,1fr)} }

/* 搜索结果 / 推荐模式：页脚隐藏，只留结果 */
body.search-mode .footer-mini,
body.reco-mode .footer-mini{display:none}

/* 推荐卡：与软件库卡片同款，按钮改黑色 */
.reco-item{
  align-items:center;text-align:center;gap:8px;padding:26px 16px 22px;
  background:#fff;border:0;border-radius:6px;
  box-shadow:0 1px 2px rgba(0,0,0,.05),0 8px 22px rgba(0,0,0,.09);
}
.reco-item:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(0,0,0,.14)}
.reco-item .app-icon{width:64px;height:64px;border-radius:15px}
.reco-name{font-size:14px;font-weight:700;letter-spacing:-.2px;line-height:1.3;margin:6px 0 0;color:var(--ink)}
.reco-desc{font-size:12px;line-height:1.6;color:var(--muted);margin:0;min-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reco-reason{margin:2px 0 6px;font-size:10.5px;padding:2px 8px;max-width:100%}
.reco-install{
  height:34px;padding:0 18px;border-radius:999px;background:var(--ink);color:#fff;
  font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:5px;
}
.reco-install:hover{background:#000;transform:translateY(-1px)}
.reco-install svg{width:12px;height:12px}

/* 推荐结果：一行 4 个；按钮默认浅色，悬浮才变黑 */
.reco-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.reco-item{padding:22px 14px 18px}
.reco-item .app-icon{width:58px;height:58px;border-radius:14px}
.reco-install{background:#f2f2f2;color:var(--ink);border:0}
.reco-install:hover{background:var(--ink);color:#fff;transform:translateY(-1px)}
@media (max-width:1200px){ .reco-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:900px){ .reco-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){ .reco-grid{grid-template-columns:minmax(0,1fr)} }

/* 教程：多集视频布局 */
.tut-body{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.tut-body.has-list{grid-template-columns:minmax(0,1fr) 300px}
@media (max-width:1000px){ .tut-body.has-list{grid-template-columns:minmax(0,1fr)} }
.tut-main{min-width:0}
.tut-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.tut-episodes{display:flex;flex-direction:column;gap:10px;max-height:520px;overflow-y:auto;padding-right:4px}
.tut-ep{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid transparent;border-radius:12px;background:transparent;cursor:pointer;text-align:left;width:100%}
.tut-ep:hover{background:rgba(0,0,0,.03)}
.tut-ep.is-active{background:#fff;border-color:var(--line-2)}
.tut-ep img,.tut-ep-ph{width:96px;height:56px;border-radius:8px;object-fit:cover;background:#111;flex:none;display:block}
.tut-ep-main{min-width:0}
.tut-ep-main b{display:block;font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tut-ep-main small{display:block;font-size:11px;color:var(--muted);margin-top:2px}

/* 推荐卡：分类标签挪到右上角，字号收小 */
.reco-item{position:relative}
.reco-item .reco-reason{
  position:absolute;top:12px;right:12px;margin:0;
  font-size:10px;padding:2px 8px;line-height:1.6;max-width:56%;
  background:rgba(124,92,255,.1);color:#6b4bff;
}

/* ===== 「AI 智能体」纯净视图：只保留这一类 ===== */
body.agent-only .hero-out,
body.agent-only .reco-results,
body.agent-only #discover,
body.agent-only .charts,
body.agent-only .search-mini,
body.agent-only .footer-mini,
body.agent-only .page-head,
body.agent-only .filter-bar,
body.agent-only .section-kicker,
body.agent-only .section-sub { display: none !important; }

body.agent-only #library { margin-top: 34px; padding-top: 0; border-top: 0; }
body.agent-only #library .section-head { margin-bottom: 22px; }
body.agent-only .app-grid { margin-top: 4px; }

/* AI 智能体：顶部工具条（分类胶囊 + 排序）也收起来，只留结果 */
body.agent-only .toolbar{display:none !important}
body.agent-only #library .section-head{margin-bottom:8px}
body.agent-only #library .section-title-lg{font-size:30px;letter-spacing:-1px}

/* ===== AI 智能体页头 ===== */
.agent-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:40px;
  padding:6px 4px 30px; margin-bottom:26px;
  border-bottom:1px solid var(--line);
}
.agent-eyebrow{font-size:11px; font-weight:700; letter-spacing:2.6px; color:var(--muted-2)}
.agent-title{font-size:clamp(34px,3.6vw,48px); line-height:1.05; letter-spacing:-2px; margin:10px 0 12px; font-weight:800; color:var(--ink)}
.agent-sub{font-size:14.5px; line-height:1.7; color:var(--muted); margin:0; max-width:620px}
.agent-stat{flex:none; display:flex; align-items:flex-end; gap:8px; padding-bottom:4px}
.agent-stat b{font-size:clamp(38px,4vw,54px); line-height:.9; font-weight:800; letter-spacing:-2.5px; color:var(--ink)}
.agent-stat span{font-size:12px; color:var(--muted); line-height:1.35}
.agent-stat span i{font-style:normal; color:var(--muted-2)}
/* agent 模式下把默认 section-head 收掉 */
body.agent-only .section-head{display:none !important}
body.agent-only .agent-head{display:flex !important}
@media (max-width:820px){
  .agent-head{flex-direction:column; align-items:flex-start; gap:18px; padding-bottom:22px}
  body.agent-only #library .app-grid{margin-top:2px}
}

/* 手机端：单列布局，下载卡保留并排在最前（手机用户也要能下载） */
@media (max-width:920px){
  .detail-split{grid-template-columns:minmax(0,1fr) !important}
  .detail-split .card-dark{display:block !important}   /* 手机也显示下载卡 */
  .detail-bento{grid-template-columns:minmax(0,1fr) !important}
  .detail-bento #shotPanel,.detail-bento #featureGrid{grid-column:span 1 !important}
  .detail-right{display:flex !important}                /* 不再隐藏 */
}

/* 手机端信息表：窄屏改单列，值不再折行 */
@media (max-width:560px){
  .info-grid{grid-template-columns:minmax(0,1fr) !important}
  .info-grid .info-row{font-size:13px}
  .hero-app-title{font-size:32px !important;letter-spacing:-1.5px !important}
}

/* 详细信息那一块的上沿留白再松一点 */
.page-stack > .frame > .section-split,
.page-stack > .frame > .detail-split{margin-top:6px}

/* 教程块：外面那条空白收紧，卡内底部稍微松一点 */
#tutorialPanel{margin-bottom:10px}
#tutorialPanel .tut-card{padding-bottom:38px}

/* 推荐区与下载排行之间加分隔线 */
.rank-head{
  margin-top:42px;
  padding-top:34px;
  border-top:1px solid var(--line);
}

/* 手机端：信息表只保留前 4 项（版本 / 大小 / 系统 / 芯片） */
@media (max-width:920px){
  .info-item-extra{display:none !important}
}

/* 手机端信息表：第一行换成「更新时间」 */
@media (max-width:920px){
  .info-item-ver{display:none !important}
  .info-item-upd{display:flex !important; order:-1}
}

/* 手机端：预览缩略图 / 选集列表都改成「主图下方横滑」 */
@media (max-width:920px){
  .shot-thumbs{
    flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none; -ms-overflow-style:none;
    padding-bottom:4px; margin-top:12px;
    scroll-snap-type:x proximity;
  }
  .shot-thumbs::-webkit-scrollbar{display:none}
  .shot-thumb{flex:0 0 auto; width:104px; height:76px; scroll-snap-align:start}

  .tut-episodes{
    flex-direction:row; overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none; -ms-overflow-style:none;
    max-height:none; padding:2px 2px 8px; gap:10px;
    scroll-snap-type:x proximity;
  }
  .tut-episodes::-webkit-scrollbar{display:none}
  .tut-ep{flex:0 0 78%; scroll-snap-align:start}
  .tut-ep img,.tut-ep-ph{width:86px;height:52px}
}

/* 备案号 */
.footer-copy{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.footer-dot{color:var(--muted-2)}
.icp{color:var(--muted);text-decoration:none;border-bottom:1px solid transparent;transition:color .15s,border-color .15s}
.icp:hover{color:var(--ink);border-bottom-color:var(--line-2)}

/* 手机端缩略图再小一点 */
@media (max-width:920px){
  .shot-thumbs{gap:6px}
  .shot-thumb{width:76px;height:56px;border-radius:8px;border-width:1.5px}
}

/* 预览缩略图：描边改成中性灰 + 选中用品牌紫，不再用黑色 */
.shot-thumb{border-color:#e8e5df;opacity:.82}
.shot-thumb:hover{opacity:1;border-color:#d3cec5}
.shot-thumb.is-active{
  opacity:1;
  border-color:#7c5cff !important;
  box-shadow:0 0 0 3px rgba(124,92,255,.16);
}

/* AI 智能体页头右侧：数字 + 立即查看 */
.agent-head-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.agent-cta{
  display:inline-flex;align-items:center;gap:7px;
  height:40px;padding:0 20px;border-radius:999px;
  background:var(--ink);color:#fff;font-size:13.5px;font-weight:700;
  text-decoration:none;white-space:nowrap;
  transition:background .2s ease, transform .2s ease;
}
.agent-cta:hover{background:#000;color:#fff;transform:translateY(-1px)}
.agent-cta svg{width:15px;height:15px}
@media (max-width:820px){
  .agent-head-side{flex-direction:row;align-items:center;gap:16px;width:100%;justify-content:space-between}
}

/* 详情页收藏按钮 */
.fav-btn{
  display:inline-flex;align-items:center;gap:7px;margin-top:14px;
  height:38px;padding:0 16px;border-radius:999px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);
  color:#e7e7e7;font-size:12.5px;font-weight:600;cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.fav-btn:hover{background:rgba(255,255,255,.14);color:#fff}
.fav-btn svg{width:15px;height:15px}
.fav-btn.is-on{background:#fff;color:#111214;border-color:#fff}
.fav-btn.is-on svg{fill:currentColor}
.fav-btn:disabled{opacity:.6;cursor:default}

/* 顶栏登录胶囊 + 微信头像（新版页面用，之前只在旧样式里定义过） */
.btn-chip{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;
  height:34px;padding:0 16px;border-radius:999px;
  background:var(--card);color:var(--ink);font-size:12.5px;font-weight:700;
  text-decoration:none;line-height:1;transition:background .18s ease,color .18s ease;
}
.btn-chip:hover{background:#e9e9e9;color:var(--ink)}
/* 深色变体：赞助会员 / 主操作 */
.btn-chip.btn-chip-dark{background:var(--ink);color:#fff;padding:0 16px}
.btn-chip.btn-chip-dark:hover{background:#000;color:#fff}
.btn-chip .u-face{width:26px;height:26px}
.u-face{display:inline-block;border-radius:50%;object-fit:cover;background:#eceff3;flex:none;vertical-align:middle}
.u-face-txt{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;background:#1a1a1a;line-height:1}
.u-face.is-fail{visibility:hidden}

/* 缩略图选中态：换成中性灰，不再用紫色 */
.shot-thumb.is-active{
  border-color:#a8a196 !important;
  box-shadow:0 0 0 3px rgba(0,0,0,.07);
}
.shot-thumb.is-active:hover{border-color:#8f887c !important}

/* 无截图时的预览空态 */
.shot-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:52px 20px;color:var(--muted);font-size:13px}
.shot-empty p{margin:0}

/* 安装进度：更醒目 */
.install-panel .track{height:10px;background:rgba(255,255,255,.14)}
.install-panel .track > i{background:#fff;box-shadow:0 0 12px rgba(255,255,255,.35)}
.install-status{align-items:center}
.install-status b{font-size:16px;letter-spacing:-.3px}
.install-status b.is-done{color:#8fe36f}
.install-status .pct{font-size:19px;font-weight:800;letter-spacing:-.5px}

/* 没有助手时的回落按钮 */
.install-fallback{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.install-fallback .btn{background:#fff;color:#111214}
.install-fallback .btn:hover{background:#eee}

/* 没有助手时，高亮页面上原本那个「直接下载安装包」 */
.dl-btn.is-hint{
  background:#fff !important;color:#111214 !important;border-color:#fff !important;
  box-shadow:0 0 0 4px rgba(255,255,255,.16);
  animation:hintPulse 1.6s ease-in-out 3;
}
@keyframes hintPulse{
  0%,100%{box-shadow:0 0 0 4px rgba(255,255,255,.16)}
  50%{box-shadow:0 0 0 8px rgba(255,255,255,.28)}
}

/* ===== 新版登录弹窗 ===== */
.mk-mask{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:24px;
  background:rgba(16,16,18,.46);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.mk-mask.is-open{display:flex}
.mk-card{position:relative;width:min(420px,100%);background:#fff;border-radius:24px;padding:30px 28px 26px;
  box-shadow:0 24px 70px -24px rgba(0,0,0,.4);animation:mkIn .22s ease}
@keyframes mkIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.mk-x{position:absolute;top:14px;right:16px;width:30px;height:30px;border:0;background:transparent;font-size:22px;line-height:1;color:#b3ada2;cursor:pointer;border-radius:50%}
.mk-x:hover{background:#f4f2ee;color:#111214}
.mk-card h3{font-size:22px;letter-spacing:-.6px;margin:0 0 6px;font-weight:800}
.mk-sub{font-size:13px;color:#8a8477;margin:0 0 18px}
.mk-tabs{display:flex;gap:6px;background:#f4f2ee;border-radius:999px;padding:4px;margin-bottom:18px}
.mk-tab{flex:1;height:36px;border:0;background:transparent;border-radius:999px;font-size:13.5px;font-weight:700;color:#6f6a61;cursor:pointer}
.mk-tab.is-on{background:#fff;color:#111214;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.mk-field{display:block;margin-bottom:14px}
.mk-field span{display:block;font-size:12px;color:#8a8477;margin-bottom:6px}
.mk-field input{width:100%;height:44px;padding:0 14px;border:1px solid #e6e2da;border-radius:12px;font-size:14px;font-family:inherit;background:#faf9f7;box-sizing:border-box}
.mk-field input:focus{outline:none;border-color:#111214;background:#fff}
.mk-btn{display:flex;align-items:center;justify-content:center;width:100%;height:46px;border:0;border-radius:999px;
  background:#111214;color:#fff;font-size:14px;font-weight:700;cursor:pointer;text-decoration:none}
.mk-btn:hover{background:#000;color:#fff}
.mk-wx{background:#07c160}
.mk-wx:hover{background:#06ad56}
.mk-or{position:relative;text-align:center;color:#a8a29a;font-size:12px;margin:16px 0}
.mk-or::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#efece6}
.mk-or span{position:relative;background:#fff;padding:0 10px}
.mk-msg{font-size:12.5px;color:#c0392b;margin:10px 0 0;min-height:18px;text-align:center}
body.mk-lock{overflow:hidden}
.retry-helper{margin-top:12px}
.retry-helper .btn{background:#fff;color:#111214;border:0}

/* 连不上助手时的紧凑提示（不展开大面板，保持两张卡对齐） */
.helper-hint{margin-top:14px;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}
.helper-hint p{margin:0 0 10px;font-size:12.5px;line-height:1.7;color:#b9b4ab}
.helper-hint-btns{display:flex;gap:8px;flex-wrap:wrap}
.hh-btn{height:34px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:transparent;color:#e7e3dc;font-size:12.5px;font-weight:600;cursor:pointer}
.hh-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.hh-btn.dark{background:#fff;color:#111214;border-color:#fff}
.hh-btn.dark:hover{background:#eee}
.hh-btn:disabled{opacity:.6;cursor:default}

/* 移动端顶栏（新版）：导航单独一行，不再整块隐藏 */
@media (max-width:1080px){
  .topbar-inner{flex-wrap:wrap;row-gap:8px;padding:10px 14px 8px}
  .brand{order:1}
  .nav-mini{
    display:flex;order:3;flex:0 0 100%;width:100%;justify-content:space-between;
    border-top:1px solid #f0efec;padding-top:6px;
  }
  .nav-mini a{padding:7px 6px;font-size:13.5px;flex:1 1 0;text-align:center;white-space:nowrap}
  .search-mini{display:none}
  /* 右上角按钮（登录 / 用户）固定第二行首，靠右 */
  .topbar-inner > .btn-chip,.topbar-inner > .btn-dark,.topbar-inner > .top-actions{order:2;margin-left:auto}
  /* 物料组用的包容器 .top-right / #topRight —— 绝对定位到顶栏右上 */
  .topbar-inner{position:relative;padding-right:0 !important}
  .topbar-inner > .top-right,
  .topbar-inner > #topRight,
  .topbar-inner > .wm-user{
    position:absolute !important;
    top:12px;right:14px;
    display:flex !important;align-items:center;gap:8px;
    margin:0 !important;order:0 !important;
    z-index:5;
  }
  .brand{order:1 !important}
  .nav-mini{order:3 !important;margin-top:0 !important}
  /* 第一行给按钮留出空间 */
  .brand{padding-right:110px}
  /* 移动端把用户名和档位收起来，只留头像 + 退出 */
  .wm-uname{display:none}
  .wm-utag{display:none}
  /* logo 在手机上小一号 */
  .brand-mark{width:34px;height:34px;border-radius:10px}
  .brand-name{font-size:17px}
  .brand-name small{font-size:9px;letter-spacing:2px}
}

@media (max-width:560px){
  .hero h1,.hero-title{font-size:34px;line-height:1.18;letter-spacing:-1px}
  .page h1{font-size:30px}
}

/* 头像兜底：文字头像也必须是正圆、绝不溢出胶囊 */
.u-face{overflow:hidden}
.u-face-txt{background:#2b2f36}
.btn-chip{overflow:hidden}

/* 无头像时的小人图标 */
.u-face-ico{display:inline-flex;align-items:center;justify-content:center;background:#2b2f36;color:#fff}
.u-face-ico svg{width:70%;height:70%}

/* 顶栏「我的收藏」按钮（登录后出现） */
.btn-fav{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:34px;height:34px;border-radius:999px;background:var(--card);
  color:var(--ink);text-decoration:none;transition:background .2s ease,color .2s ease;
}
.btn-fav svg{width:17px;height:17px}
.btn-fav:hover{background:var(--ink);color:#fff}

/* 连不上助手时的排查卡片 */
.trouble-card{
  position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:320;
  width:min(560px,calc(100vw - 32px));background:#fff;border-radius:18px;padding:22px 24px 18px;
  box-shadow:0 24px 70px -24px rgba(0,0,0,.4);font-size:13px;color:#111214;
}
.trouble-card h4{margin:0 0 10px;font-size:16px;letter-spacing:-.3px}
.trouble-card ol{margin:0 0 14px;padding-left:18px;color:#4a463f;line-height:1.8}
.trouble-card ol b{color:#111214}
.trouble-actions{display:flex;gap:8px;flex-wrap:wrap}
.trouble-actions .hh-btn{border-color:#e6e2da;color:#111214}
.trouble-actions .hh-btn:hover{background:#f4f2ee}
.trouble-actions .hh-btn.dark{background:#111214;color:#fff;border-color:#111214}
.trouble-browser{margin:-4px 0 10px;font-size:12px;color:#8a8477}

/* 首次自动安装助手的提示框 */
.auto-helper{
  position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:330;
  width:min(520px,calc(100vw - 28px));background:#fff;border-radius:18px;padding:20px 22px 16px;
  box-shadow:0 24px 70px -24px rgba(0,0,0,.42);font-size:13px;color:#3a3630;
}
.auto-helper .ah-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.auto-helper .ah-head b{font-size:15px;color:#111214;letter-spacing:-.2px}
.auto-helper .ah-dot{width:8px;height:8px;border-radius:50%;background:#111214;animation:ahPulse 1.2s ease-in-out infinite}
@keyframes ahPulse{0%,100%{opacity:.25}50%{opacity:1}}
.auto-helper p{margin:0 0 12px;line-height:1.75;color:#6b665e}
.auto-helper .ah-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.auto-helper .hh-btn{border-color:#e6e2da;color:#111214}
.auto-helper .hh-btn.dark{background:#111214;color:#fff;border-color:#111214}
.auto-helper .ah-state{margin:0;font-size:12px;color:#8a8477}

/* 整块 App 图标（从 .icns 提取）：不要白底卡片，圆角直接用图片本身 */
.app-icon.has-logo.logo-raw{
  background: transparent !important;
  border: 0 none !important;        /* 边框宽度也要去掉，否则占掉 2px 内容 */
  box-shadow: none !important;
  padding: 0 !important;
}
.app-icon.has-logo.logo-raw::after{ display:none; }
.app-icon.has-logo.logo-raw .logo-inner,
.app-icon.has-logo.logo-raw .logo-inner.logo-full{ width: 100%; height: 100%; }
.app-icon.has-logo.logo-raw .logo-inner > img{
  border-radius: inherit;
}

/* 设计规则：官方 logo 原样显示，不加白底/边框/色块（badge 占位与白标深底除外） */
.app-icon.has-logo.logo-raw .logo-inner{ width: 92%; height: 92%; }
.app-icon.has-logo.logo-raw .logo-inner.logo-full{ width: 100%; height: 100%; }

/* 站点 logo */
.brand-mark img, .svh-mark img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.brand-mark, .svh-mark { overflow: hidden; }


/* ===== 柔和交互（2026-11-17） ===== */

/* 推荐结果区切换时淡入，不用生硬地「啪」一下出现 */
@keyframes wmSoftIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.reco-results:not([hidden]),
.reco-grid:not(:empty),
#bundleApps:not([style*="display: none"]) {
  animation: wmSoftIn .32s cubic-bezier(.22,.61,.36,1) both;
}

/* 推荐卡片：依次淡入，最多错开 8 张，后面的一起出 */
.reco-item {
  animation: wmSoftIn .36s cubic-bezier(.22,.61,.36,1) both;
  transition: transform .22s cubic-bezier(.22,.61,.36,1),
              box-shadow .22s ease;
}
.reco-item:nth-child(1) { animation-delay: .02s; }
.reco-item:nth-child(2) { animation-delay: .05s; }
.reco-item:nth-child(3) { animation-delay: .08s; }
.reco-item:nth-child(4) { animation-delay: .11s; }
.reco-item:nth-child(5) { animation-delay: .14s; }
.reco-item:nth-child(6) { animation-delay: .17s; }
.reco-item:nth-child(7) { animation-delay: .20s; }
.reco-item:nth-child(8) { animation-delay: .23s; }
.reco-item:nth-child(n+9) { animation-delay: .26s; }

/* 卡片悬浮：轻轻抬起，阴影变柔 */
.reco-item:hover,
.app-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px rgba(0,0,0,.32);
}

/* 推荐标签（媒体博主 / 程序员 …）：按下有轻微回弹 */
.reco-chips button {
  transition: transform .16s cubic-bezier(.34,1.4,.64,1),
              background-color .16s ease,
              border-color .16s ease;
}
.reco-chips button:hover { transform: translateY(-1px); }
.reco-chips button:active { transform: scale(.96); }

/* 合集卡片：切换时轻微缩放反馈 */
.coll-card { transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease; }
.coll-card:active { transform: scale(.985); }

/* 榜单切换：行淡入 */
@keyframes wmRowIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: none; }
}
#rankGrid .rank-row, #detailRankGrid .rank-row {
  animation: wmRowIn .3s cubic-bezier(.22,.61,.36,1) both;
}
#rankGrid .rank-row:nth-child(2), #detailRankGrid .rank-row:nth-child(2) { animation-delay: .02s; }
#rankGrid .rank-row:nth-child(3), #detailRankGrid .rank-row:nth-child(3) { animation-delay: .04s; }
#rankGrid .rank-row:nth-child(4), #detailRankGrid .rank-row:nth-child(4) { animation-delay: .06s; }
#rankGrid .rank-row:nth-child(5), #detailRankGrid .rank-row:nth-child(5) { animation-delay: .08s; }
#rankGrid .rank-row:nth-child(n+6), #detailRankGrid .rank-row:nth-child(n+6) { animation-delay: .10s; }

/* 榜单标签：选中时柔和过渡 */
.rank-tab { transition: background-color .2s ease, color .2s ease, transform .16s ease; }
.rank-tab:active { transform: scale(.97); }

/* 按钮统一：点击回弹 */
.btn, .btn-chip, .app-tile-install, .reco-install {
  transition: transform .16s cubic-bezier(.34,1.4,.64,1),
              background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active, .btn-chip:active, .app-tile-install:active, .reco-install:active {
  transform: scale(.97);
}

/* 无障碍：用户开了「减少动态效果」就全部关掉 */
@media (prefers-reduced-motion: reduce) {
  .reco-results, .reco-grid, #bundleApps,
  .reco-item, #rankGrid .rank-row, #detailRankGrid .rank-row {
    animation: none !important;
  }
  .reco-item, .app-tile, .coll-card, .btn, .btn-chip,
  .reco-chips button, .rank-tab {
    transition: none !important;
  }
}


/* ===== 卡片副标题不出边（2026-11-17） ===== */
.reco-item {
  overflow: hidden;
  min-width: 0;
}
.reco-item .reco-desc {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 长英文单词也要能断 */
  word-break: break-all;
}
.reco-item .reco-name {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 软件库卡片同样处理 */
.app-tile {
  overflow: hidden;
  min-width: 0;
}
.app-tile .app-tile-desc,
.app-tile .app-tile-name {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 网格子项也不许撑破 */
.reco-grid, .app-grid, .bundle-grid {
  min-width: 0;
}
.reco-grid > *, .app-grid > *, #bundleGrid > * {
  min-width: 0;
}


/* 合集卡片：选中态 */
.coll-card { transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease, outline-color .2s ease; }
.coll-card.is-on {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 30px -20px rgba(0,0,0,.35);
}
.coll-card.dark.is-on {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), 0 10px 30px -20px rgba(0,0,0,.35);
}
.coll-card:hover { transform: translateY(-2px); }


/* 合集卡片与下方软件列表之间：一条分隔线 */
#bundleApps {
  margin-top: 8px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  position: relative;
}
/* 左侧加一个短的重色段落，视觉上更像「分节」而不是普通的线 */
#bundleApps::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  width: 56px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}


/* ===== 合集卡片收尾（2026-11-17） ===== */

/* ① 选中态：不用 outline（会被 :focus-visible 的 3px 抢），只用内阴影 */
.coll-card { outline: none !important; }
.coll-card:focus,
.coll-card:focus-visible { outline: none !important; }

/* ② 描述限一行，给图标区腾出空间 */
.coll-card .coll-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* ③ 图标区固定两行高度，不被压缩 */
.coll-card .coll-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, 34px);
  grid-auto-rows: 34px;
  gap: 8px;
  height: 76px;          /* 固定，不参与 flex 压缩 */
  flex: 0 0 76px;
  min-height: 76px;
  margin: 0 0 16px;
  overflow: hidden;
  align-content: start;
}

/* ④ 轮播卡片加高一点，容得下完整内容 */
.coll-slide { height: 320px; }
.coll-card { min-height: 240px; }

/* ⑤ 按钮右下 */
.coll-card .coll-btn { align-self: flex-end; margin-top: auto; }


/* 图标区：固定 6 列 × 2 行，12 个图标正好排满 */
.coll-card .coll-logos {
  display: grid;
  grid-template-columns: repeat(6, 34px);
  grid-template-rows: repeat(2, 34px);
  gap: 8px;
  height: 76px;
  flex: 0 0 76px;
  margin: 0 0 16px;
  overflow: hidden;
}
.coll-card .coll-logos .app-icon { width: 34px; height: 34px; min-width: 34px; }


/* ===== 视频封面兜底：没 poster 也不出现纯黑块 ===== */
.tut-stage.has-fallback {
  background: linear-gradient(135deg, #22242a 0%, #17181d 55%, #101114 100%);
}
.tut-stage-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.tut-stage-glyph {
  display: block; opacity: .22;
  filter: blur(.4px) saturate(1.15);
  transform: scale(4.2);
  transform-origin: center;
}
.tut-stage-glyph .app-icon {
  width: 64px; height: 64px; border-radius: 15px;
}
/* 有兜底背景时，video 本身透明，播放时再露出画面 */
.tut-stage.has-fallback video {
  position: relative; z-index: 2;
  background: transparent;
}
.tut-stage.has-fallback video:not([data-playing="1"]) { opacity: .999; }


/* ===== Logo（透明 PNG，不要白底） ===== */
.brand-mark img,
.svh-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;          /* 圆形 logo 本身带圆角，不要额外加 */
  background: transparent;   /* 绝不能有白底 */
}
.brand-mark,
.svh-mark {
  background: transparent !important;
  overflow: visible;
}
/* 头像也用同一个：圆形裁切，无白底 */
.wm-halo img {
  background: transparent !important;
  border-radius: 50%;
}


/* ===== 手机版：下载卡提到最前面（登录后要能立刻找到下载） ===== */
@media (max-width: 900px) {
  /* 单列布局里，黑色下载卡排第一 */
  .detail-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
  }
  .detail-split .detail-left  { order: 1; }
  .detail-split .detail-right { order: 2; }

  /* 下载卡内部：按钮更大更好点 */
  .detail-right {
    min-height: 0;
    padding: 24px 20px 20px;
  }
  .detail-right .dark-title { font-size: 26px; }
  .detail-right .dark-lead { font-size: 13px; line-height: 1.7; }
  .detail-right .dark-actions { gap: 10px; }

  /* 主按钮占满整行，高度够手指点 */
  .detail-right .btn-lg,
  .detail-right .dl-btn {
    width: 100%;
    height: 50px;
    justify-content: center;
    font-size: 15px;
  }

  /* 收藏按钮也整行 */
  .detail-right .fav-btn { width: 100%; justify-content: center; height: 46px; }

  /* 面包屑压缩 */
  .crumbs { font-size: 11.5px; padding: 0 6px 10px; }
}

/* 更窄的屏幕：图标和标题上下排列 */
@media (max-width: 560px) {
  .detail-left { padding: 24px 18px 22px; }
  .detail-head { gap: 14px; }
  .detail-title { font-size: 30px; line-height: 1.1; }
  .detail-lead { font-size: 14px; }
  .detail-desc { font-size: 12.5px; line-height: 1.75; }
  .pill-row { gap: 6px; }
  .pill-row .tag, .pill-row .pill { height: 26px; padding: 0 11px; font-size: 11px; }
  .info-item { min-height: 40px; }
  .info-k { font-size: 11.5px; }
  .info-v { font-size: 12px; }
}


/* ===== 手机版：下载卡强制排第一 ===== */
@media (max-width: 900px) {
  .detail-split {
    display: flex !important;
    flex-direction: column !important;
  }
  /* JS 注入的两块：card-light（信息）· card-dark（下载） */
  .detail-split > .card-light,
  .detail-split > .detail-left {
    order: 1 !important;
  }
  .detail-split > .card-dark,
  .detail-split > .detail-right {
    order: 2 !important;
  }
  /* 下载卡在手机上更紧凑 */
  .detail-split > .card-dark {
    padding: 22px 18px 20px !important;
  }
  .detail-split > .card-dark .dark-title {
    font-size: 25px !important;
    letter-spacing: -1px !important;
  }
  .detail-split > .card-dark .dark-actions { gap: 10px !important; }
  .detail-split > .card-dark .dark-actions .btn,
  .detail-split > .card-dark .dark-actions .dl-btn,
  .detail-split > .card-dark .fav-btn {
    width: 100% !important;
    height: 50px !important;
    font-size: 15px !important;
    justify-content: center !important;
  }
  .detail-split > .card-dark .fav-btn { height: 46px !important; }
}


/* ===== 手机版：下载改成底部悬浮按钮 + 黑色弹窗 ===== */
@media (max-width: 900px) {
  /* 内嵌的下载卡在手机上隐藏 */
  .detail-split > .card-dark,
  .detail-split > .detail-right {
    display: none !important;
  }
  /* 给底部悬浮条留出空间，避免遮住页脚 */
  body { padding-bottom: 86px; }
}

/* 悬浮下载条 */
.wm-dlbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,.06);
  align-items: center;
  gap: 12px;
  box-shadow: 0 -8px 30px -20px rgba(0,0,0,.28);
}
@media (max-width: 900px) {
  .wm-dlbar { display: flex; }
}
.wm-dlbar-info { flex: 1 1 auto; min-width: 0; }
.wm-dlbar-info b {
  display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wm-dlbar-info span {
  display: block; font-size: 11.5px; color: #8f8f8f; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wm-dlbar-btn {
  flex: none; height: 46px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #111214; color: #fff; font-size: 14.5px; font-weight: 800;
  letter-spacing: .2px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,.5);
  transition: transform .16s cubic-bezier(.34,1.4,.64,1), background .16s;
}
.wm-dlbar-btn:active { transform: scale(.96); background: #000; }
.wm-dlbar-btn svg { width: 17px; height: 17px; }

/* 黑色下载弹窗 */
.wm-dl-mask {
  display: none; position: fixed; inset: 0; z-index: 9999;
  padding: 20px;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  align-items: flex-end; justify-content: center;
  overflow-y: auto;
}
.wm-dl-mask.open { display: flex; }
.wm-dl-card {
  width: 100%; max-width: 460px;
  background: #17181c; color: #fff;
  border-radius: 24px;
  padding: 26px 22px calc(24px + env(safe-area-inset-bottom, 0px));
  position: relative;
  animation: wmDlUp .26s cubic-bezier(.22,.61,.36,1) both;
  max-height: 90vh; overflow-y: auto;
}
@keyframes wmDlUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.wm-dl-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #cfcfd4;
  font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wm-dl-close:active { background: rgba(255,255,255,.2); }
.wm-dl-label {
  display: block; font-size: 10.5px; letter-spacing: 2.2px;
  font-weight: 800; color: #8f8f8f; margin-bottom: 6px;
}
.wm-dl-title {
  font-size: 26px; font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin: 0 0 10px;
}
.wm-dl-lead {
  font-size: 12.5px; line-height: 1.7; color: #a4a4a4;
  margin: 0 0 18px;
}
.wm-dl-acts { display: flex; flex-direction: column; gap: 10px; }
.wm-dl-acts a, .wm-dl-acts button {
  width: 100%; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 800; text-decoration: none;
  font-family: inherit; cursor: pointer;
  background: #fff; color: #111214; border: 0;
  transition: transform .16s, background .16s;
}
.wm-dl-acts a:active, .wm-dl-acts button:active { transform: scale(.98); }
.wm-dl-acts .dl-btn {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.34);
}
.wm-dl-acts .dl-btn:active { background: rgba(255,255,255,.1); }
.wm-dl-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.14);
  font-size: 11.5px; color: #7a7a80; text-align: center;
}


/* 榜单按钮不溢出网格 */
.rank-grid .rank-row { min-width: 0; overflow: hidden; }
.rank-grid .rank-row > a,
.rank-grid .rank-row > .btn,
.rank-grid .rank-row > .btn-dark {
  flex: 0 0 auto;
  max-width: 100%;
}
.rank-grid > * { min-width: 0; }


/* ===== 详情页：「已下架」空态 ===== */
.detail-offline {
  max-width: 560px;
  margin: 60px auto 80px;
  padding: 0 24px;
  text-align: center;
}
.detail-offline-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: #a0a0a4;
  margin-bottom: 14px;
}
.detail-offline-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #111214;
}
.detail-offline-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #6e7076;
  margin: 0 0 30px;
}
.detail-offline-acts {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.detail-offline-acts .btn {
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.detail-offline-acts .btn-dark { background: #111214; color: #fff; }
.detail-offline-acts .btn-outline { border: 1px solid #ddd; color: #111214; }
@media (max-width: 640px) {
  .detail-offline { margin: 40px auto 60px; }
  .detail-offline-title { font-size: 28px; }
}


/* ===== 图标裁切修正 =====
   规则：logo-raw（原图直接显示）和带圆角底的原图，不能再被容器裁一次，
   否则自带圆角/描边的图标（如 KeyShot 的渐变边框）会被切掉。 */
.app-icon.logo-raw,
.app-icon.has-logo.logo-raw {
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}
.app-icon.logo-raw .logo-inner,
.app-icon.logo-raw .logo-inner.logo-full {
  border-radius: 0 !important;
  overflow: visible !important;
  width: 100%;
  height: 100%;
}
.app-icon.logo-raw img {
  border-radius: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 列表里的小图标同样处理 */
.app-icon.sm.logo-raw,
.app-icon.md.logo-raw {
  border-radius: 0 !important;
  overflow: visible !important;
}


/* ===== logo-raw 内层必须铺满 100% =====
   之前有 `.logo-raw .logo-inner{width:92%}` 的规则，导致图标比容器小一圈，
   看起来像「没换成功 / 缩了一圈」。整块 App 图标应该铺满容器。 */
.app-icon.has-logo.logo-raw .logo-inner,
.app-icon.logo-raw .logo-inner,
.app-icon.has-logo.logo-raw .logo-inner.logo-full,
.app-icon.logo-raw .logo-inner.logo-full {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.app-icon.has-logo.logo-raw .logo-inner > img,
.app-icon.logo-raw .logo-inner > img,
.app-icon.logo-raw img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
}
/* 小尺寸图标也别缩 */
.app-icon.sm.logo-raw .logo-inner,
.app-icon.md.logo-raw .logo-inner,
.app-icon.xl.logo-raw .logo-inner {
  width: 100% !important;
  height: 100% !important;
}


/* ===== 导航：5 项不换行 ===== */
.nav-mini { white-space: nowrap; flex-wrap: nowrap; }
.nav-mini > a { white-space: nowrap; flex: 0 0 auto; }
/* 空间紧张时压缩字号和间距 */
@media (max-width: 1280px) {
  .nav-mini { gap: 14px !important; }
  .nav-mini > a { font-size: 13px !important; }
}
@media (max-width: 1100px) {
  .nav-mini { gap: 10px !important; }
  .nav-mini > a { font-size: 12.5px !important; }
}

/* ── 「用安装助手一键安装」按钮 + 推荐角标（2026-11-19） ── */
.dl-rec-wrap{position:relative;display:block;width:100%}
.dl-rec-wrap .btn{width:100%;display:flex;align-items:center;justify-content:center}
.dl-rec-badge{position:absolute;top:-9px;right:14px;z-index:2;
  background:linear-gradient(92deg,#ff7a3c,#ff4d3c);color:#fff;font-style:normal;
  font-size:10.5px;font-weight:800;letter-spacing:.6px;line-height:1;
  padding:4px 9px;border-radius:999px;box-shadow:0 4px 12px rgba(255,90,60,.4);
  pointer-events:none}
@media(max-width:760px){.dl-rec-badge{top:-8px;right:10px;font-size:10px;padding:3px 8px}}

/* ── 图文教程（开源项目安装步骤，2026-11-20） ── */
.tut-guide{padding:6px 26px 30px;color:var(--ink);font-size:15px;line-height:1.95}
.tut-guide p{margin:0 0 14px;color:var(--ink2)}
.tut-guide h3{font-size:16.5px;font-weight:800;margin:26px 0 12px;color:var(--ink);letter-spacing:-.2px;
  display:flex;align-items:center;gap:8px}
.tut-guide h3::before{content:"";width:4px;height:16px;border-radius:2px;background:linear-gradient(180deg,#2f6bf6,#7c4dff)}
.tut-guide ul{margin:0 0 16px;padding-left:0;list-style:none}
.tut-guide li{position:relative;padding-left:22px;margin-bottom:9px;color:var(--ink2)}
.tut-guide li::before{content:"";position:absolute;left:4px;top:.72em;width:6px;height:6px;border-radius:50%;
  background:#2f6bf6;opacity:.75}
.tut-guide pre{margin:0 0 16px;background:#101828;color:#e6edf7;border-radius:12px;padding:16px 18px;
  font:13px/1.85 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto;
  box-shadow:0 10px 26px -18px rgba(16,24,40,.7)}
.tut-guide code{font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  background:#eef2fa;color:#2f6bf6;border-radius:5px;padding:1px 6px}
.tut-guide pre code{background:none;color:inherit;padding:0}
.tut-guide a{color:#2f6bf6;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(47,107,246,.35)}
.tut-guide a:hover{border-bottom-color:#2f6bf6}
@media(max-width:760px){.tut-guide{padding:2px 16px 22px;font-size:14px}}

/* ── 右侧黑框「安装命令」块（开源项目，2026-11-20） ── */
.cmds-box{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);
  border-radius:12px;padding:14px 14px 12px;margin-bottom:12px}
.cmds-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.cmds-head>span{font-size:12px;font-weight:800;letter-spacing:.10em;text-transform:uppercase;
  color:rgba(255,255,255,.62)}
.cmds-copy{border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.10);color:#fff;
  font:inherit;font-size:12px;font-weight:700;border-radius:8px;padding:5px 11px;cursor:pointer;
  white-space:nowrap;transition:.15s}
.cmds-copy:hover{background:rgba(255,255,255,.20);border-color:rgba(255,255,255,.44)}
.cmds-copy.is-ok{background:#12a150;border-color:#12a150;color:#fff}
.cmds-pre{margin:0;max-height:190px;overflow:auto;background:rgba(0,0,0,.36);border-radius:9px;
  padding:11px 12px;color:#dfe7f5;font:12.5px/1.75 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:pre;-webkit-overflow-scrolling:touch}
.cmds-tip{margin:9px 0 0;font-size:11.5px;line-height:1.7;color:rgba(255,255,255,.5)}

/* ── 开源项目「仓库地址」标签：跟其他 pill 完全一致（白底深字），只是可点 ── */
.pill-repo{
  display:inline-flex;align-items:center;height:29px;padding:0 14px;gap:5px;
  border-radius:999px;background:#fff;border:1px solid var(--line);
  font-size:12px;font-weight:600;color:var(--ink-2);white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.03);text-decoration:none;cursor:pointer;
  transition:border-color .15s,color .15s,box-shadow .15s;
}
.pill-repo:hover{border-color:#cdd9f2;color:var(--ink);box-shadow:0 4px 12px rgba(0,0,0,.06)}
.pill-repo svg{width:13px;height:13px;flex:none;opacity:.72}
.pill-repo:hover svg{opacity:1}
@media(max-width:760px){
  .pill-repo{height:26px;padding:0 11px;font-size:11px}
  .pill-repo svg{width:12px;height:12px}
}

/* ── 黑卡按钮列：禁止长命令撑破容器（2026-11-20） ── */
.detail-right .dark-actions > *{min-width:0;max-width:100%}
.detail-right .dark-actions .cmds-box{width:100%;min-width:0;box-sizing:border-box}
.detail-right .dark-actions .cmds-pre{
  max-width:100%;white-space:pre;overflow-x:auto;overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.detail-right .dark-actions .dl-btn{max-width:100%;min-width:0}
.detail-right .dark-actions .dl-rec-wrap{min-width:0;max-width:100%}

/* ── 「支持哪些 AI」标签：跟其他 pill 同款，无装饰点（2026-11-20） ── */
.pill-ai{position:relative}

/* ── 「支持哪些 AI」标签：可点跳站内对应工具页（2026-11-20） ── */
.pill-ai{position:relative;text-decoration:none}
.pill-ai.is-link{cursor:pointer;transition:border-color .15s,color .15s,box-shadow .15s}
.pill-ai.is-link:hover{border-color:#bcd0fa;color:#2f6bf6;box-shadow:0 4px 12px rgba(47,107,246,.12)}

/* ── 位图 logo 统一圆角（2026-11-20 站长要求：图标要圆角，别是方块）
   注意：文件上方有 .app-icon.logo-raw .logo-inner{border-radius:0!important}
   （当初为了"品牌标不裁角"写的），这里必须用 !important 才盖得住。 ── */
.app-icon.has-logo.logo-raw .logo-inner.logo-full,
.app-icon.logo-raw .logo-inner.logo-full{
  border-radius:22% !important;
  overflow:hidden !important;
  -webkit-mask-image:-webkit-radial-gradient(#fff,#000); /* Safari 圆角失效的修法 */
}
.app-icon.has-logo.logo-raw .logo-inner.logo-full > img,
.app-icon.logo-raw .logo-inner.logo-full > img{
  border-radius:inherit !important;
  object-fit:cover;
}
/* 详情页大图标：圆角再大一点点，贴近 macOS 图标观感 */
.detail-head .app-icon.has-logo.logo-raw .logo-inner.logo-full,
.detail-head .app-icon.logo-raw .logo-inner.logo-full{border-radius:23% !important}

/* ── 会员门禁：非会员看到的命令块（2026-11-20） ── */
.cmds-pre.is-locked{
  color:rgba(255,255,255,.62);font-family:inherit;font-size:12.5px;line-height:1.9;
  text-align:center;padding:18px 12px;letter-spacing:.2px;
}
.cmds-box.is-locked{opacity:.94}
.cmds-copy.is-locked{background:#ff5a3c;border-color:#ff5a3c;color:#fff}
.cmds-copy.is-locked:hover{background:#ff6f52;border-color:#ff6f52}
