:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;
  --accent: #0071e3;
  --accent-soft: #e8f1fd;
  --free: #34c759;
  --deal: #ff9f0a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.logo { color: inherit; text-decoration: none; }   /* 独立页 logo 是链接，颜色风格与首页 div.logo 一致 */
.dt-mt-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.header-inner .logo { flex: none; }
.logo { font-weight: 600; font-size: 19px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.logo:hover { opacity: .82; }
.logo .radar { color: var(--accent); flex: none; }

/* 右上角控件区：语言 + 主题切换（药丸底色风格） */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(0, 0, 0, .07); background: rgba(0, 0, 0, .05); color: var(--text);
  border-radius: 999px; height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600;
  line-height: 1; cursor: pointer; transition: background .18s;
}
.icon-btn:hover { background: rgba(0, 0, 0, .09); }
.icon-btn:active { background: rgba(0, 0, 0, .13); }
.icon-btn .ic { display: block; width: 16px; height: 16px; }
.lang-btn .ic { color: var(--accent); }
/* 搜索图标 + 点击弹出的搜索/分类面板（图标置于语言胶囊前） */
.search-wrap { position: relative; flex: none; }
.search-trigger { width: 34px; padding: 0; }
.search-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30;
  display: flex; gap: 8px; width: 430px; max-width: 78vw;
  padding: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.search-pop[hidden] { display: none; }
.search-pop::before {
  content: ''; position: absolute; top: -7px; right: 13px;
  width: 12px; height: 12px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.search-pop .search-input, .search-pop .genre-select { border-radius: 10px; }
.search-pop .search-input { flex: 1; min-width: 0; padding: 9px 14px; font-size: 14px; }
.search-pop .genre-select { min-width: 118px; padding: 9px 32px 9px 14px; font-size: 14px; }
#themeBtn { width: 34px; padding: 0; }
/* 主题图标：用 currentColor 自动随主题变黑/白，无彩色；按 data-theme / 系统偏好切换 太阳/月亮 */
.theme-ic-moon { display: none; }
.theme-ic-sun { display: block; }
:root[data-theme="dark"] .theme-ic-moon { display: block; }
:root[data-theme="dark"] .theme-ic-sun { display: none; }
:root[data-theme="light"] .theme-ic-moon { display: none; }
:root[data-theme="light"] .theme-ic-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-ic-moon { display: block; }
  :root:not([data-theme]) .theme-ic-sun { display: none; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-ic-moon { display: none; }
  :root:not([data-theme]) .theme-ic-sun { display: block; }
}
.header-actions a { color: var(--muted); font-size: 13px; font-weight: 500; }
.header-actions a:hover { color: var(--text); text-decoration: none; }

main { padding: 0 0 96px; }

.hero { text-align: center; padding: 56px 0 24px; animation: fadeUp .6s ease both; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; letter-spacing: -.02em; font-weight: 700; line-height: 1.08; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 640px; font-size: 19px; line-height: 1.42; letter-spacing: -.01em; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--free);
  background: rgba(52, 199, 89, .12); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.date-line {
  display: block; width: fit-content; font-size: 13px; font-weight: 600; color: var(--free);
  background: rgba(52, 199, 89, .12); padding: 5px 14px; border-radius: 999px; margin: 16px auto 0;
}

/* 统计条：限免/特价条数 + 今日可省（仿 Apple 数据看板） */
.stats {
  display: inline-flex; gap: 0; margin: 22px auto 0; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.stats .stat { padding: 14px 30px; min-width: 120px; }
.stats .stat + .stat { border-left: 1px solid var(--border); }
.stats .stat-num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.stats .stat:first-child .stat-num { color: var(--free); }
.stats .stat:nth-child(2) .stat-num { color: var(--deal); }
.stats .stat:last-child .stat-num { color: var(--accent); }
.stats .stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* 搜索 + 分类筛选工具栏（iOS 胶囊风；现位于顶栏内，见 .header-inner .toolbar） */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 200px; padding: 11px 18px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
}
.search-input:focus { outline: none; border-color: var(--accent); }
.genre-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 11px 36px 11px 18px; font: inherit; font-size: 15px; min-width: 150px;
  border: 1px solid var(--border); border-radius: 999px; background-color: var(--surface);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  color: var(--text); cursor: pointer; transition: border-color .15s;
}
.genre-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* 区域切换菜单（Apple 分段控件风格） */
.region-switch { display: inline-flex; gap: 2px; margin-top: 22px; padding: 2px; background: #e8e8ed; border-radius: 999px; }
.region-btn {
  border: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--muted); background: transparent; padding: 7px 22px; border-radius: 999px;
  transition: all .18s ease;
}
.region-btn:hover { color: var(--text); }
.region-btn.active { color: #1d1d1f; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .16); }

/* Editorial intro (原创内容，满足 AdSense 要求) */
.intro {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin: 28px 0; box-shadow: var(--shadow); font-size: 16px; color: #1d1d1f;
}
.intro h2 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.01em; font-weight: 600; }
.intro p { margin: 8px 0; }
.intro ul { margin: 8px 0; padding-left: 20px; }
.intro li { margin: 4px 0; }

.ad-slot { margin: 28px 0; text-align: center; }
/* 首页「今日限免」列表中部广告位：跨满整行（3 列），与卡片行对齐 */
.ad-row { grid-column: 1 / -1; margin: 10px 0; }
/* 独立页：App 头部卡片下方的固定广告位 */
.dt-ad { margin: 22px 0; }
/* 独立页：正文末尾广告位（应用介绍之后、推荐区块之前） */
.dt-ad-tail { margin: 26px 0; }
ins.adsbygoogle { background: #ececf0; border-radius: var(--radius); }

/* Sections */
.section-title { display: flex; align-items: center; gap: 12px; margin: 36px 0 16px; }
.section-title h2 { font-size: 28px; margin: 0; letter-spacing: -.015em; font-weight: 600; }
.section-title .count { font-size: 13px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 999px; padding: 3px 12px; }
.section-title .count.free { background: var(--free); }
.section-title .count.deal { background: var(--deal); }

/* App cards */
/* 桌面端两列：minmax 提高到 440px，配合 auto-fit 在宽屏下排两列而非三列，
   给卡片更多横向空间，让 App 名称与开发者名称完整显示（配合下面的换行规则）。 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.card img { width: 80px; height: 80px; border-radius: 18px; border: 1px solid var(--border); background: #fff; flex: none; object-fit: cover; }
.card .info { min-width: 0; flex: 1; }
/* 名称与开发者允许折行显示完整内容，最多两行；超出省略。
   （原本是 nowrap + ellipsis 一行截断，两列后空间变大，仍保留两行上限以防超长名撑高卡片） */
.card .name-row { display: flex; align-items: center; gap: 8px; }
.card .name {
  font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; line-height: 1.3;
}
.card .new-badge {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: var(--accent); padding: 2px 7px; border-radius: 6px; line-height: 1.5;
}
.card .dev {
  color: var(--muted); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; line-height: 1.35; margin-top: 2px;
}
.card .genre { color: var(--muted); font-size: 13px; margin-top: 3px; }
.card .rating { color: #ff9f0a; font-size: 13px; font-weight: 600; margin-top: 2px; }
.card .rating.norate { color: var(--muted); font-weight: 400; opacity: .75; }
.dt-chip.norate { opacity: .75; font-style: normal; }
.card .price { margin-top: 5px; font-size: 14px; }
.card .price .old { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.card .price .new.free { color: var(--free); font-weight: 700; }
.card .price .new.deal { color: var(--deal); font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 36px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.loading { text-align: center; color: var(--muted); padding: 36px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; flex-direction: column; gap: 8px; }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; }
.copyright { font-size: 13px; color: var(--muted); }
.copyright .cr-word { font-weight: 600; letter-spacing: .02em; margin-right: 2px; }

/* 页脚双栏：左导航链接 / 右版权（移动端自动换行居中） */
.footer-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap;
}
.footer-nav { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.footer-nav a { color: var(--text); opacity: .85; text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-nav .sep { color: var(--muted); opacity: .55; font-size: 12px; user-select: none; }
.footer-bar .copyright { text-align: left; }
.footer-bar #footerSiteName { color: var(--text); opacity: .9; text-decoration: none; font-weight: 600; }
.footer-bar #footerSiteName:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 600px) {
  .footer-bar { justify-content: center; text-align: center; }
  .footer-bar .copyright { text-align: center; }
}

/* 法务页（隐私政策/使用条款）最后更新时间 */
.legal-updated { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* 首页精简摘要（完整说明在 about.html） */
.intro-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin: 24px 0 0; font-size: 14px; color: var(--muted);
}
.intro-mini p { margin: 0; flex: 1; min-width: 220px; }
.intro-mini a { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* 入场动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 中屏（平板/窄桌面）：3 列太挤，退回 2 列；顶栏放不下搜索行，换行到第二行 */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .header-inner { flex-wrap: wrap; row-gap: 8px; }
  .header-inner .toolbar { order: 10; flex: 1 1 100%; }
  .header-inner .search-input { flex: 1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 32px 0 16px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .header-inner { padding: 10px 14px; }
  .logo { font-size: 17px; }
  .header-actions { gap: 6px; }
  .icon-btn { height: 30px; padding: 0 10px; font-size: 12px; }
  #themeBtn { width: 30px; }
  .header-actions a { font-size: 12px; }
  .toolbar { flex-wrap: nowrap; }
  .card { padding: 11px 13px; gap: 11px; }
  .card img { width: 72px; height: 72px; border-radius: 18px; }
  .card .name { font-size: 16px; }
  .section-title h2 { font-size: 23px; }
  .section-title { margin: 28px 0 12px; }
  .stats { width: 100%; justify-content: center; }
  .stats .stat { padding: 12px 16px; min-width: 0; flex: 1; }
  .stats .stat-num { font-size: 24px; }
  .ad-slot { margin: 20px 0; }
  .intro-mini { padding: 12px 14px; font-size: 13px; }
  .site-footer { padding: 22px 0; }
  main { padding: 0 0 56px; }

  /* 手机端：搜索面板改为「顶栏下方居中通栏」——左右各留 12px，搜索框与分类同一行 */
  .search-wrap { position: static; }
  .search-pop {
    position: absolute; top: calc(100% - 1px); left: 12px; right: 12px;
    width: auto; max-width: none;
    flex-direction: row; gap: 8px; padding: 12px; border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  }
  .search-pop::before { display: none; }   /* 通栏面板不需要指向箭头 */
  .search-pop .search-input,
  .search-pop .genre-select { padding: 11px 14px; font-size: 15px; }
  .search-pop .search-input { flex: 1 1 auto; min-width: 0; }
  .search-pop .genre-select { flex: 0 0 auto; width: auto; min-width: 104px; padding-right: 30px; }
}

/* 深色主题：手动 data-theme="dark" 强制深色；无 data-theme 时跟随系统（苹果纯黑 + #1c1c1e 面板） */
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --text: #f5f5f7; --muted: #98989d;
  --border: #38383a; --accent-soft: #0a2547; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
:root[data-theme="dark"] ins.adsbygoogle { background: #2c2c2e; }
:root[data-theme="dark"] .intro { color: #e5e5ea; }
:root[data-theme="dark"] .site-header { background: rgba(0, 0, 0, .72); border-bottom-color: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .badge { background: rgba(52, 199, 89, .18); }
:root[data-theme="dark"] .card img { background: #2c2c2e; }
:root[data-theme="dark"] .region-switch { background: #2c2c2e; }
:root[data-theme="dark"] .region-btn.active { background: #636366; color: #fff; box-shadow: none; }
:root[data-theme="dark"] .icon-btn { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .icon-btn:hover { background: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .icon-btn:active { background: rgba(255, 255, 255, .22); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000; --surface: #1c1c1e; --text: #f5f5f7; --muted: #98989d;
    --border: #38383a; --accent-soft: #0a2547; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
  :root:not([data-theme]) ins.adsbygoogle { background: #2c2c2e; }
  :root:not([data-theme]) .intro { color: #e5e5ea; }
  :root:not([data-theme]) .site-header { background: rgba(0, 0, 0, .72); border-bottom-color: rgba(255, 255, 255, .1); }
  :root:not([data-theme]) .badge { background: rgba(52, 199, 89, .18); }
  :root:not([data-theme]) .card img { background: #2c2c2e; }
  :root:not([data-theme]) .region-switch { background: #2c2c2e; }
  :root:not([data-theme]) .region-btn.active { background: #636366; color: #fff; box-shadow: none; }
  :root:not([data-theme]) .icon-btn { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .12); }
  :root:not([data-theme]) .icon-btn:hover { background: rgba(255, 255, 255, .16); }
  :root:not([data-theme]) .icon-btn:active { background: rgba(255, 255, 255, .22); }
}

/* ===== 应用详情（独立页 + 浮层共用 dt-* 样式；浮层已弃用，仅保留独立页所需） ===== */
.card-click { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.card-click:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.dt-head { display: flex; gap: 16px; align-items: flex-start; padding-right: 36px; flex-wrap: wrap; }
.dt-icon { width: 96px; height: 96px; border-radius: 20px; flex: 0 0 auto; background: var(--surface); object-fit: cover; }
.dt-ic { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.dt-hinfo { min-width: 0; flex: 1 1 240px; }
.dt-name { font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt-dev { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.dt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dt-chip { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
.dt-price { display: flex; align-items: baseline; gap: 10px; }
.dt-cur { font-size: 22px; font-weight: 700; }
.dt-cur.free { color: var(--free); }
.dt-cur.deal { color: var(--deal); }
.dt-old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.dt-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 18px 0 6px; }
.dt-go { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 12px; text-decoration: none; }
.dt-go:hover { text-decoration: none; opacity: .92; }
.dt-side { margin-left: auto; flex: 0 0 auto; width: 112px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.dt-qr-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 100%; padding: 10px 8px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 12px; cursor: pointer;
}
.dt-qr-btn:hover { border-color: var(--accent); color: var(--accent); }
.dt-qr-btn svg { display: block; }
.dt-go-sm { display: block; width: 100%; text-align: center; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.dt-go-sm:hover { text-decoration: none; opacity: .9; }
.dt-section { margin-top: 22px; }
.dt-section h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.dt-loading { color: var(--muted); font-size: 14px; padding: 8px 0; }
.dt-cross { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.dt-cross-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; font-size: 14px; }
.dt-cross-row + .dt-cross-row { border-top: 1px solid var(--border); }
.dt-cross-row.cur { background: var(--accent-soft); }
.dt-cr-label { color: var(--text); }
.dt-cur-tag { font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 1px 5px; margin-left: 4px; }
.dt-cr-price { font-weight: 700; }
.pc-chart { width: 100%; height: 180px; display: block; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.dt-shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.dt-shots img { height: 320px; border-radius: 10px; flex: 0 0 auto; background: var(--surface); cursor: zoom-in; }
.dt-metarow { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dt-dot { opacity: .5; }
.dt-desc { font-size: 14px; line-height: 1.65; color: var(--text); }
.dt-desc br { content: ''; display: block; margin-bottom: 6px; }
.dt-related h3 { margin-bottom: 12px; }
/* 分类标签为链接（跳首页对应分类限免） */
a.dt-chip { text-decoration: none; }
a.dt-chip:hover { color: var(--accent); border-color: var(--accent); }
/* 灯箱：应用截图放大 / 二维码浮层（共用） */
.dt-lightbox {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); cursor: zoom-out;
  animation: fadeUp .18s ease both;
}
.dt-lightbox[hidden] { display: none; }
.dt-lb-img { max-width: 92vw; max-height: 92vh; border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); background: #000; }
.dt-lb-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 26px 30px;
  text-align: center; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); cursor: default;
}
.dt-lb-card img { width: 220px; height: 220px; border-radius: 10px; background: #fff; display: block; }
.dt-lb-cap { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text); }
.dt-lb-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .dt-head { padding-right: 0; }
  .dt-icon { width: 72px; height: 72px; border-radius: 16px; }
  .dt-name { font-size: 20px; }
  .dt-shots img { height: 260px; }
  /* 手机端：扫码 + App Store 按钮改为通栏一行双按钮，替代右侧窄条 */
  .dt-side { width: 100%; margin-left: 0; flex: 1 1 100%; flex-direction: row; align-items: stretch; gap: 10px; margin-top: 14px; }
  .dt-qr-btn { flex: 1 1 42%; flex-direction: row; justify-content: center; gap: 7px; padding: 12px 6px; font-size: 13.5px; border-radius: 12px; }
  .dt-go-sm { flex: 1 1 58%; display: flex; align-items: center; justify-content: center; padding: 12px 8px; font-size: 14.5px; border-radius: 12px; }
}

/* ===== App 详情独立页 ===== */
.app-page-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 16px; }
.app-back { font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; }
.app-back:hover { text-decoration: underline; }
.app-page-crumb { font-size: 13px; color: var(--muted); }
main > .detail-body {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 26px 26px 30px; margin-bottom: 24px;
}
@media (max-width: 560px) {
  main > .detail-body { padding: 20px 16px 24px; }
}
