/* ═══════════════════════════════════════════════════════════
   MAC优选 · 前台样式（应用宝风格 / 浅色）
   与旧站 RiPro 主题保持同一视觉语言：白卡 + 浅灰底 + 蓝色主调
   CSP 禁止内联 style，所有状态用 class 表达
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand: #0080ff;
  --brand-ink: #0072e4;
  --brand-soft: #e6f2ff;
  --brand-softer: #f2f8ff;
  --orange: #f48319;
  --orange-soft: #fff4e8;
  --green: #6dc168;
  --green-soft: #eef9ed;
  --red: #f04a4a;
  --yellow: #ffc633;

  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c1f23;
  --text-2: #5a6169;
  --text-3: #949aa1;
  --line: #ebeef2;
  --line-2: #dfe4ea;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, .04);
  --shadow: 0 2px 8px rgba(20, 30, 45, .06);
  --shadow-lg: 0 8px 28px rgba(20, 30, 45, .10);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --maxw: 1200px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); }

/* ───────────── 顶栏 ───────────── */

.navbar {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20, 30, 45, .02);
}
.navbar-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 20px; display: flex; align-items: center; gap: 26px;
}

.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo:hover { color: inherit; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(140deg, #2e9bff, #0066e0);
  color: #fff; font-weight: 800; font-size: 17px;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 128, 255, .28);
}
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.logo-text i { font-style: normal; color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 15px;
  color: var(--text-2); white-space: nowrap; transition: color .14s, background .14s;
}
.nav-link:hover { color: var(--brand); background: var(--brand-softer); }
.nav-link.is-active { color: var(--brand); font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 12px; flex: none; }

.searchbox {
  display: flex; align-items: center;
  width: 230px; height: 36px; padding: 0 4px 0 12px;
  background: var(--bg); border: 1px solid transparent;
  border-radius: 18px; transition: all .16s;
}
.searchbox:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.searchbox input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 13.5px;
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: none; color: var(--text-3); cursor: pointer;
  display: grid; place-items: center;
}
.searchbox button:hover { color: var(--brand); background: var(--brand-soft); }

.user-area { display: flex; align-items: center; gap: 8px; }

/* ───────────── 通用控件 ───────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px; border-radius: 18px;
  border: 1px solid transparent; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: filter .14s, transform .06s, background .14s;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-line { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-line:hover { color: var(--brand); background: var(--brand-softer); }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }
.btn-sm { height: 28px; padding: 0 14px; font-size: 12.5px; border-radius: 14px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 22px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); }
.btn-green { background: var(--green); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 70px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 34px 0 14px;
}
.section-head:first-child { margin-top: 4px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.section-head h2 .bar { display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: var(--brand); vertical-align: -3px; margin-right: 9px; }
.section-head .more { font-size: 13.5px; color: var(--text-3); }
.section-head .more:hover { color: var(--brand); }

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

/* ───────────── 排行榜 ───────────── */

.rank-wrap {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.rank-col {
  min-width: 0;
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 6px 0;
}
.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  border-radius: 10px; transition: background .12s;
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: var(--brand-softer); }
.rank-no {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: #c2c8d0;
}
.rank-no.n1 { background: #ff5a5a; }
.rank-no.n2 { background: #ff8f3c; }
.rank-no.n3 { background: #ffb020; }
.rank-no.n4, .rank-no.n5, .rank-no.n6 { background: #b9c2cd; }

.app-icon {
  width: 46px; height: 46px; border-radius: 11px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, #7fb6ff, #2e7cf0);
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.s2 { background: linear-gradient(140deg, #ffb06b, #ff7a45); }
.app-icon.s3 { background: linear-gradient(140deg, #8ee08b, #43b04a); }
.app-icon.s4 { background: linear-gradient(140deg, #c39bff, #7b5cf0); }
.app-icon.s5 { background: linear-gradient(140deg, #7fd8f5, #1f9bd1); }
.app-icon.s6 { background: linear-gradient(140deg, #ffd166, #f0a500); }

.rank-body { flex: 1; min-width: 0; }
.rank-title {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-title:hover { color: var(--brand); }
.rank-desc {
  font-size: 12.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-stars { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--orange); }
.rank-stars .num { color: var(--text-3); margin-left: 2px; }

.rank-act { flex: none; }

/* ───────────── 应用网格 ───────────── */

.app-grid {
  display: grid;
  min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}

.app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s, border-color .16s;
}
.app-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d6e6ff;
}
.app-card-top { display: flex; gap: 11px; align-items: flex-start; }
.app-card-top .app-icon { width: 52px; height: 52px; border-radius: 12px; }
.app-card-title { min-width: 0; flex: 1; }
.app-card-title h3 {
  margin: 0 0 2px; font-size: 14.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card-title h3:hover { color: var(--brand); }
.app-card-title .sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-desc {
  margin: 0; font-size: 12.8px; color: var(--text-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.app-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto;
}
.app-card-foot .meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 4px; font-size: 11.5px; font-weight: 500;
}
.tag-vip { background: var(--orange-soft); color: var(--orange); }
.tag-free { background: var(--green-soft); color: var(--green); }
.tag-pay { background: #fff0f0; color: var(--red); }
.tag-new { background: var(--brand-soft); color: var(--brand); }

/* ───────────── 专题 ───────────── */

.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.series-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .16s, transform .16s;
  display: flex; flex-direction: column; gap: 10px;
}
.series-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.series-card h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.series-card p {
  margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.series-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.series-icons .app-icon { width: 38px; height: 38px; border-radius: 9px; font-size: 16px; }

/* ───────────── 分类条 ───────────── */

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  height: 34px; padding: 0 16px; border-radius: 17px;
  background: #fff; border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 13.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s;
}
.chip:hover { color: var(--brand); border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .n { font-size: 12px; opacity: .65; }

/* ───────────── 详情页 ───────────── */

.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 18px; align-items: start;
}

.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; }

.detail-main { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 26px; }
.detail-main > h1 {
  margin: 0 0 20px; font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
}

.detail-hero { display: flex; gap: 20px; margin-bottom: 22px; align-items: center; }
.detail-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; font-size: 40px; }

.spec-table {
  flex: 1; display: grid; grid-template-columns: 84px 1fr 84px 1fr;
  gap: 10px 12px; align-content: start;
  background: #fafbfc; border-radius: var(--radius); padding: 16px;
}
.spec-table dt { color: var(--text-3); font-size: 13px; }
.spec-table dd { margin: 0; font-size: 13.5px; color: var(--text); font-weight: 500; word-break: break-word; }

.prose { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 26px 0 10px; font-weight: 700; }
.prose h2 { font-size: 18px; }
.prose h3 { font-size: 16px; }
.prose h4 { font-size: 14.5px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); }
.prose code { font-family: var(--mono); font-size: 12.8px; background: #f2f4f7; padding: 2px 5px; border-radius: 4px; }
.prose pre { background: #f6f8fa; padding: 14px; border-radius: 8px; overflow-x: auto; }
.prose img { border-radius: 8px; margin: 12px 0; }
.prose blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--brand); background: var(--brand-softer); color: var(--text-2); border-radius: 0 6px 6px 0; }

/* 购买/下载卡 */
.buy-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  position: relative;   /* 用于角标定位，不再承担 sticky */
  top: auto;
}
.buy-banner {
  padding: 12px 16px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: linear-gradient(100deg, #5cc46a, #3fa94f);
  display: flex; align-items: center; gap: 8px;
}
.buy-banner.locked { background: linear-gradient(100deg, #ffb35c, #f48319); }
.buy-body { padding: 14px; display: flex; flex-direction: column; gap: 13px; }

.price-line { display: flex; align-items: baseline; gap: 6px; }
.price-line .amount { font-size: 30px; font-weight: 800; color: var(--red); line-height: 1; }
.price-line .unit { font-size: 13px; color: var(--text-3); }

.vip-table { border-top: 1px dashed var(--line-2); padding-top: 12px; }
.vip-table .title { font-size: 13px; color: var(--orange); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.vip-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; padding: 5px 0;
}
.vip-row .name { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.vip-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.vip-row .dot.v { background: var(--green); }
.vip-row .dot.s { background: var(--orange); }
.vip-row .val { color: var(--text); font-weight: 600; }
.vip-row .val.free { color: var(--green); }

.side-specs { border-top: 1px solid var(--line); }
.side-specs .row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.side-specs .row:last-child { border-bottom: 0; }
.side-specs .k { color: var(--text-3); flex: none; }
.side-specs .v { color: var(--text); text-align: right; word-break: break-word; }

.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #fff; transition: all .14s;
}
.dl-item:hover { border-color: var(--brand); background: var(--brand-softer); }
.dl-item .net { font-size: 14px; font-weight: 600; flex: none; width: 88px; }
.dl-item .pwd { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.dl-item .go { margin-left: auto; }

.lock-panel {
  text-align: center; padding: 30px 20px;
  background: var(--brand-softer); border-radius: var(--radius);
  border: 1px dashed #b8d8ff;
}
.lock-panel .big { font-size: 30px; margin-bottom: 8px; }
.lock-panel p { margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; }

/* 截图 */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.shots img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; }

/* ───────────── 会员页 ───────────── */

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px; text-align: center; position: relative;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .16s;
}
.plan-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.plan-card.hot { border-color: var(--brand); box-shadow: 0 6px 24px rgba(0,128,255,.14); }
.plan-card .hot-badge {
  position: absolute; top: 0; right: 0;
  background: var(--brand); color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 0 var(--radius-lg) 0 10px;
}
.plan-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--brand); line-height: 1; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--text-3); }
.plan-days { font-size: 12.5px; color: var(--text-3); }
.plan-feats { list-style: none; padding: 0; margin: 6px 0 0; text-align: left; display: grid; gap: 7px; }
.plan-feats li { font-size: 12.8px; color: var(--text-2); display: flex; gap: 7px; align-items: flex-start; }
.plan-feats li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }

/* ───────────── 用户中心 ───────────── */

.me-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.me-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.me-avatar {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, #ffb06b, #ff5a8a);
}
.me-name { text-align: center; font-size: 16px; font-weight: 700; }
.me-mail { text-align: center; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.me-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.me-stats .k { font-size: 12px; color: var(--text-3); }
.me-stats .v { font-size: 17px; font-weight: 700; }

.progress { height: 6px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #4aa6ff, #0080ff); border-radius: 3px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12.5px; color: var(--text-3); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }

/* ───────────── 表单 / 模态 ───────────── */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: #fff; outline: none; font-size: 14px;
  transition: border-color .14s, box-shadow .14s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(18, 24, 33, .48);
  display: grid; place-items: center; padding: 20px; animation: fade .14s ease-out;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 400px; background: #fff; border-radius: 16px;
  padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: pop .18s cubic-bezier(.2,.9,.3,1.05);
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.modal::-webkit-scrollbar { width: 8px; }
.modal::-webkit-scrollbar-thumb { background: var(--line-2, #dfe4ec); border-radius: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px) } to { opacity: 1; transform: none } }
.modal h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.modal .sub { margin: 0 0 20px; font-size: 13px; color: var(--text-3); }
.modal-switch { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 14px; }
.modal-switch a { color: var(--brand); }

.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fff1f1; color: #c0392b; }
.alert-ok { background: var(--green-soft); color: #2f8a3f; }

.toast-wrap { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; }
/* DIY 模式下抬到操作条上方，避免被遮挡 */
body.diy-on .toast-wrap { bottom: 78px; z-index: 999; }
/* 弹窗层必须盖住抽屉与操作条，否则确认框点不到 */
body.diy-on #layer { position: relative; z-index: 1000; }
.toast {
  padding: 10px 20px; border-radius: 22px; background: rgba(28, 31, 35, .92);
  color: #fff; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: up .18s ease-out;
}
.toast.err { background: rgba(200, 50, 50, .94); }
@keyframes up { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ───────────── 分页 / 空态 ───────────── */

.empty { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty .big { font-size: 40px; opacity: .35; margin-bottom: 10px; }

.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 28px; font-size: 13.5px; color: var(--text-3); }
.pagination button {
  height: 34px; min-width: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--text-2);
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.skeleton {
  background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-lg);
  height: 150px;
}
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* ───────────── 悬浮栏 ───────────── */

/* ═════════════ 右侧悬浮导航（5 种样式） ═════════════ */

.dock {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, .1); padding: 6px; width: 68px;
}
.dock-list { display: flex; flex-direction: column; gap: 2px; }
.dock-title {
  font-size: 10.5px; font-weight: 600; color: var(--text-3);
  text-align: center; padding: 4px 0 6px; letter-spacing: .04em;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.dock-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  white-space: nowrap;
  padding: 8px 2px; border-radius: 9px; border: 0; background: none;
  color: var(--text-2); font-size: 10.5px; cursor: pointer; text-align: center;
  text-decoration: none; transition: background .14s, color .14s, transform .14s;
}
.dock-item svg { width: 19px; height: 19px; }
.dock-item:hover { background: var(--brand-soft); color: var(--brand); }
.dock-toggle { display: none; }

/* ① 胶囊竖排：纯文字，最小 */
.dock-pill { width: 62px; border-radius: 999px; padding: 8px 4px; }
.dock-pill .dock-item { font-size: 11.5px; padding: 10px 0; border-radius: 999px; white-space: nowrap; }
.dock-pill .dock-item svg { display: none; }
.dock-pill .dock-list { gap: 0; }

/* ② 图标方块（默认） */
.dock-icon .dock-item { border-radius: 10px; }
.dock-icon .dock-item:hover { transform: translateX(-2px); }

/* ③ 悬浮气泡：收起是圆球 */
.dock-bubble {
  width: auto; padding: 0; border: 0; background: none; box-shadow: none;
  align-items: flex-end; flex-direction: column-reverse;
}
.dock-bubble .dock-toggle {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #2e7cf0, #7b5cf0); color: #fff;
  box-shadow: 0 8px 22px rgba(46, 124, 240, .4);
  transition: transform .18s;
}
.dock-bubble .dock-toggle svg { width: 22px; height: 22px; transition: transform .2s; }
.dock-bubble .dock-list {
  gap: 6px; margin-top: 8px;
  opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none;
  transition: all .2s cubic-bezier(.2,.9,.3,1.05);
  display: flex; flex-direction: column; align-items: flex-end;
}
.dock-bubble.is-open .dock-list { opacity: 1; transform: none; pointer-events: auto; }
.dock-bubble.is-open .dock-toggle svg { transform: rotate(45deg); }
.dock-bubble .dock-item {
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  background: #fff !important; border: 1px solid var(--line); justify-content: center;
  box-shadow: 0 6px 16px rgba(16,24,40,.12); color: var(--text-2);
}
.dock-bubble .dock-item svg { width: 18px; height: 18px; }
.dock-bubble .dock-item span { display: none; }
.dock-bubble .dock-item:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ④ 卡片面板 */
.dock-card {
  width: 126px; border-radius: 16px; padding: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.dock-card .dock-item { align-items: center; padding: 9px 10px; gap: 7px; flex-direction: row; }
.dock-card .dock-item span { font-size: 12px; font-weight: 500; white-space: nowrap; }
.dock-card .dock-item svg { width: 16px; height: 16px; opacity: .75; }
.dock-card .dock-item:hover svg { opacity: 1; }

/* ⑤ 底部横条 */
.dock-bar {
  top: auto; bottom: 18px; right: 50%; transform: translateX(50%);
  width: auto; flex-direction: row; border-radius: 999px; padding: 7px 10px;
  backdrop-filter: blur(12px); background: rgba(255,255,255,.92);
}
.dock-bar .dock-list { flex-direction: row; gap: 4px; }
.dock-bar .dock-item {
  flex-direction: row; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 12px;
}
.dock-bar .dock-item svg { width: 16px; height: 16px; }
.dock-bar .dock-title { display: none; }

@media (max-width: 900px) {
  .dock { display: none; }
  .dock-bar { display: flex; left: 12px; right: 12px; transform: none; width: auto; justify-content: center; }
  .dock-bar .dock-item span { display: none; }
}

/* ───────────── 页脚 ───────────── */

.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 40px; text-align: center; }
.footer-links { display: flex; gap: 22px; justify-content: center; font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; }
.footer-links a:hover { color: var(--brand); }
.footer-copy { font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
.footer-copy p { margin: 0; }

/* ───────────── 响应式 ───────────── */

@media (max-width: 1180px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dock { display: none; }
}
@media (max-width: 980px) {
  .rank-wrap { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .me-grid { grid-template-columns: 1fr; }
  .searchbox { width: 180px; }
}
@media (max-width: 760px) {
  .navbar-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav-link { padding: 6px 10px; font-size: 14px; }
  .searchbox { width: 150px; }
  .container { padding: 16px 14px 50px; }
  .rank-wrap, .app-grid, .series-grid, .plan-grid { grid-template-columns: 1fr; }
  .detail-main { padding: 18px; }
  .detail-main > h1 { font-size: 19px; }
  .detail-hero { flex-direction: column; gap: 14px; align-items: stretch; }
  .detail-hero .app-icon { width: 68px; height: 68px; border-radius: 16px; font-size: 28px; }
  .spec-table { grid-template-columns: 74px 1fr; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ───────────── 补充组件 ───────────── */

.row-inline { display: flex; gap: 10px; align-items: center; }
.row-inline input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9px; outline: none; }
.row-inline input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.me-actions { display: flex; gap: 8px; margin-top: 16px; }
.me-actions .btn { flex: 1; }

.buy-body .me-stats { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.help-q { font-size: 14px; font-weight: 600; color: var(--text); padding: 14px 0 6px; border-top: 1px solid var(--line); }
.help-q:first-child { border-top: 0; padding-top: 0; }
.help-a { font-size: 13.5px; color: var(--text-2); line-height: 1.75; padding-bottom: 4px; }

/* 防长文本撑破网格 */
.detail-main, .buy-card, .me-card, .panel { min-width: 0; }
.rank-body, .app-card-title { min-width: 0; }
.container { overflow-x: clip; }

.row-inline-col { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }

/* ───────────── 装机必备 ───────────── */

.bibei-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 4px 0 18px; flex-wrap: wrap;
}
.bibei-head h1 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.bibei-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-3); }
.bibei-head .count { font-size: 13px; color: var(--text-3); }

.bibei-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; align-items: start;
}

.bibei-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 1px 2px rgba(20, 30, 45, .03);
  position: relative;
  overflow: hidden;
}
.bibei-block::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px;
  background: linear-gradient(180deg, rgba(0, 128, 255, .05), transparent);
  pointer-events: none;
}
.bibei-block h2 {
  position: relative; margin: 0 0 3px; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.bibei-block .blk-sub {
  position: relative; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px;
}
.bibei-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; position: relative; }

.bibei-item {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid #eef1f5;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.bibei-item:hover {
  transform: translateY(-1px);
  border-color: #cfe4ff;
  box-shadow: 0 6px 18px rgba(0, 128, 255, .10);
  color: inherit;
}
.bibei-item .app-icon { width: 48px; height: 48px; border-radius: 11px; font-size: 20px; }
.bibei-item-body { flex: 1 1 auto; min-width: 0; }
.bibei-item-name {
  font-size: 15px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bibei-item-desc {
  font-size: 12.5px; color: var(--text-3); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px;
}
.bibei-badge {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 4px; font-size: 11px; line-height: 1.6;
  color: var(--orange); background: var(--orange-soft);
  padding: 0 6px; border-radius: 4px;
}
.bibei-item .dl { flex: none; }
.bibei-empty { padding: 40px 10px; text-align: center; color: var(--text-3); font-size: 13px; }

@media (max-width: 1180px) { .bibei-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bibei-grid { grid-template-columns: 1fr; } .bibei-block { padding: 16px 14px; } }

/* ═════════════ 首页 Banner 区 ═════════════ */

.home-top {
  display: grid;
  grid-template-columns: 2.1fr 0.78fr 1.28fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 8px;
}

/* —— 主视觉 —— */
.bn-hero {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  min-height: 320px;
  padding: 40px 36px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(120deg, #eef5ff, #ffffff 55%, #f6f0ff);
  border: 1px solid #e8eef7;
}
.bn-hero-text { position: relative; z-index: 2; flex: 1; min-width: 0; }
.bn-hero h1 {
  margin: 0 0 14px; font-size: clamp(23px, 2.15vw, 32px); line-height: 1.24;
  font-weight: 800; letter-spacing: -.03em; color: #0f1723;
}
.bn-sub {
  margin: 0 0 22px; font-size: clamp(14px, 1.1vw, 16.5px); line-height: 1.75;
  color: #8b93a0; font-weight: 600; max-width: 360px;
}
.bn-hi { color: var(--brand); }
.bn-cta {
  height: 48px; padding: 0 30px; border-radius: 12px; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 128, 255, .28);
}
.bn-hero-art {
  position: relative; z-index: 1; flex: 0 0 40%;
  display: grid; place-items: center;
}
.bn-hero-art img { max-height: 300px; width: auto; object-fit: contain; }
.bn-blob {
  position: absolute; border-radius: 50%; filter: blur(3px); opacity: .5; pointer-events: none;
  z-index: 1;
}
.bn-blob.b1 { width: 140px; height: 140px; right: 22%; top: 14%; background: radial-gradient(circle at 35% 30%, #bfd9ff, #e6f0ff 72%); opacity: .85; }
.bn-blob.b2 { width: 88px; height: 88px; right: 8%; bottom: 14%; background: radial-gradient(circle at 40% 60%, #ffd6e8, #fff0f7 72%); opacity: .9; }
.bn-blob.b3 { width: 54px; height: 54px; right: 44%; bottom: 8%; background: radial-gradient(circle at 40% 40%, #cdf0dd, #eefbf4 72%); opacity: .9; }

/* 无图片时的抽象设备轮廓 */
.bn-art-device {
  position: absolute; right: 4%; top: 10%; width: 74%; aspect-ratio: 16 / 10;
  z-index: 3;
  border-radius: 10px;
  background: linear-gradient(155deg, #ffffff, #eaf1fd 70%, #e2ecfb);
  border: 1px solid rgba(178, 202, 232, .95);
  box-shadow: 0 26px 50px -20px rgba(48, 78, 130, .42), inset 0 1px 0 #fff;
  transform: perspective(760px) rotateY(-14deg) rotateX(5deg);
  transform-origin: 50% 60%;
  pointer-events: none;
}
.bn-art-device::before {
  content: ""; position: absolute; inset: 8px 8px 38%;
  border-radius: 6px;
  background:
    linear-gradient(#c3d7f2 0 0) 12px 14px / 42% 7px no-repeat,
    linear-gradient(#d3e1f5 0 0) 12px 28px / 68% 5px no-repeat,
    linear-gradient(#d3e1f5 0 0) 12px 40px / 54% 5px no-repeat,
    linear-gradient(150deg, #dbe7fb, #f6faff 62%, #e6effe);
}
.bn-art-device::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 9%; height: 16%;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #cfdcf0 0 6px, transparent 6px 11px);
  opacity: .85;
}

/* —— 右侧渐变卡片 —— */
.bn-cards { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-width: 0; }
.bn-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 18px; padding: 22px; overflow: hidden;
  color: #fff; text-decoration: none; min-height: 150px;
  transition: transform .16s, box-shadow .16s;
}
.bn-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(190, 40, 150, .28); color: #fff; }
.bn-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, .28), transparent 60%);
  pointer-events: none;
}
.bn-window {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, .92);
  border-radius: 10px; padding: 10px 12px 16px;
  box-shadow: 0 8px 20px rgba(80, 0, 60, .18);
}
.bn-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.bn-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.bn-dots i:nth-child(1) { background: #ff6058; }
.bn-dots i:nth-child(2) { background: #ffbd2e; }
.bn-dots i:nth-child(3) { background: #28c840; }
.bn-window-title {
  font-size: 15px; font-weight: 700; color: #2a2f37;
  text-align: center; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bn-window-sub { text-align: center; font-size: 11px; color: #a8b0ba; margin-top: 4px; }
.bn-card-title {
  position: relative; z-index: 1;
  margin-top: 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(90, 0, 70, .25);
}

/* —— 最近更新榜单 —— */
.home-rail {
  background: linear-gradient(160deg, #fff, #fff6fa 60%, #fdf1ff);
  border: 1px solid #f2e8f0;
  border-radius: 18px; padding: 20px 18px;
  display: flex; flex-direction: column; min-width: 0;
}
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rail-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.rail-refresh {
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: none;
  color: var(--text-3); cursor: pointer; display: grid; place-items: center;
}
.rail-refresh:hover { color: var(--brand); background: #fff; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; }
.rail-list li { display: flex; align-items: center; gap: 9px; padding: 6px 0; min-width: 0; }
.rail-no {
  flex: none; width: 20px; height: 20px; border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #a8b0ba; background: #f1f3f6;
}
.rail-no.n1 { background: #ffe3ef; color: #ff5a8a; }
.rail-no.n2 { background: #ffeadd; color: #f48319; }
.rail-no.n3 { background: #eae4ff; color: #7b5cf0; }
.rail-list a {
  font-size: 13.5px; color: #3b424d; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail-list a:hover { color: var(--brand); }

@media (max-width: 1180px) {
  .home-top { grid-template-columns: 1fr 1fr; }
  .bn-hero { grid-column: 1 / -1; min-height: 260px; }
  .home-rail { grid-column: 1 / -1; }
  .rail-list { grid-template-columns: 1fr 1fr; display: grid; }
}
@media (max-width: 760px) {
  .home-top { grid-template-columns: 1fr; }
  .bn-hero { padding: 26px 22px; flex-direction: column; text-align: left; }
  .bn-hero h1 { font-size: 26px; }
  .bn-sub { font-size: 15px; }
  .bn-hero-art { flex: none; width: 100%; min-height: 120px; }
  .rail-list { grid-template-columns: 1fr; }
}

/* ═════════════ 用户悬浮面板 ═════════════ */

.um-wrap { position: relative; padding-bottom: 10px; margin-bottom: -10px; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 6px;
  border: 1px solid transparent; border-radius: 18px;
  background: none; cursor: pointer; color: var(--text);
  font-size: 13.5px; max-width: 190px;
  transition: background .14s, border-color .14s;
}
.user-chip:hover, .um-wrap.open .user-chip { background: var(--brand-softer); border-color: #dbe9fb; }
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #ff9f5a, #ff5f8f);
  overflow: hidden;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .tag-mini {
  flex: none; font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: #fff6dd; color: #b47a06; font-weight: 600;
}

.um-panel {
  position: absolute; right: 0; top: calc(100% + 2px); z-index: 80;
  width: 360px; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20, 40, 70, .16), 0 0 0 1px rgba(0, 0, 0, .04);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.um-wrap:hover .um-panel, .um-wrap.open .um-panel {
  opacity: 1; visibility: visible; transform: none;
}

.um-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, #eef6ff, #dcecff);
}
.um-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, #ff9f5a, #ff5f8f);
  box-shadow: 0 3px 10px rgba(255, 120, 90, .3);
}
.um-avatar img { width: 100%; height: 100%; object-fit: cover; }
.um-mid { flex: 1; min-width: 0; padding-top: 2px; }
.um-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 9px; border-radius: 5px;
  font-size: 12px; font-weight: 600;
  background: #fff6dd; color: #b47a06;
}
.um-badge.vip { background: #e8f8ef; color: #2f9e63; }
.um-badge.none { background: #eef1f5; color: #7b8492; }
.um-name {
  margin-top: 8px; font-size: 16.5px; font-weight: 700; color: #1b2430;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.um-actions { display: flex; flex-direction: column; gap: 8px; flex: none; padding-top: 2px; }
.um-act {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #4b5563; background: none; border: 0;
  cursor: pointer; padding: 0; white-space: nowrap;
}
.um-act:hover { color: var(--brand); }
.um-act svg { width: 14px; height: 14px; }

.um-body { padding: 16px 18px 18px; }
.um-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.um-coin {
  grid-row: span 2;
  background: linear-gradient(180deg, #86bdf7, #5f9fe8);
  border-radius: 12px; padding: 16px 12px; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px;
}
.um-coin .k { font-size: 14px; opacity: .92; }
.um-coin .v { font-size: 26px; font-weight: 700; line-height: 1; display: flex; align-items: center; gap: 5px; }
.um-coin .v svg { width: 20px; height: 20px; opacity: .9; }
.um-coin .btn-recharge {
  margin-top: 4px; width: 86%; height: 34px; border: 0; border-radius: 17px;
  background: #fff; color: #2f7fd4; font-size: 14px; font-weight: 600; cursor: pointer;
}
.um-coin .btn-recharge:hover { background: #f2f8ff; }
.um-vip, .um-svip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; color: #fff; font-size: 14px; font-weight: 600;
  padding: 14px 10px; min-height: 70px; text-align: center;
}
.um-vip { background: linear-gradient(135deg, #7ad2a4, #4dbb8a); }
.um-svip { background: linear-gradient(135deg, #f8d375, #e5b63a); }
.um-vip svg, .um-svip svg { width: 17px; height: 17px; opacity: .92; flex: none; }

.um-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 18px; }
.um-link {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 4px 2px; border-radius: 10px; border: 0; background: none;
  color: #6b7280; font-size: 12px; cursor: pointer; text-decoration: none;
}
.um-link:hover { color: var(--brand); background: var(--brand-softer); }
.um-link .ic {
  width: 42px; height: 42px; border-radius: 50%; background: #f2f4f7;
  display: grid; place-items: center; color: #8b93a0;
}
.um-link:hover .ic { background: #e3f0ff; color: var(--brand); }
.um-link .ic svg { width: 19px; height: 19px; }

@media (max-width: 760px) {
  .um-panel { width: min(340px, calc(100vw - 28px)); right: -6px; }
  .um-wrap:hover .um-panel { opacity: 0; visibility: hidden; }
  .um-wrap.open .um-panel { opacity: 1; visibility: visible; }
}

/* ───────────── 收藏列表 ───────────── */

.fav-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; padding: 16px;
}
.fav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid #eef1f5; background: #fafbfc;
  transition: all .14s;
}
.fav-item:hover { border-color: #cfe4ff; background: #f5faff; color: inherit; }
.fav-item .app-icon { width: 38px; height: 38px; border-radius: 9px; font-size: 16px; }
.fav-body { min-width: 0; }
.fav-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-desc { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═════════════ 工单中心 ═════════════ */

.support-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.ticket-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ticket-item {
  display: block; padding: 14px 16px; border-bottom: 1px solid var(--line);
  color: inherit; cursor: pointer; transition: background .14s;
}
.ticket-item:last-child { border-bottom: 0; }
.ticket-item:hover { background: var(--brand-softer); color: inherit; }
.ticket-item.is-active { background: var(--brand-soft); }
.ticket-subject { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.ticket-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ticket-head h2 { margin: 0 0 6px; font-size: 17px; }
.ticket-msgs { display: grid; gap: 12px; padding: 16px 0; max-height: 460px; overflow-y: auto; }
.msg { display: flex; gap: 10px; }
.msg.is-staff { flex-direction: row-reverse; }
.msg .bubble {
  max-width: 76%; padding: 10px 14px; border-radius: 12px;
  background: #f4f6f9; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}
.msg.is-staff .bubble { background: var(--brand-soft); }
.msg .who { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.msg-body { min-width: 0; }
.msg.is-staff .msg-body { text-align: right; }

.reply-box { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.reply-box textarea { min-height: 90px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; resize: vertical; outline: none; }
.reply-box textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.status-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600; }
.status-open { background: #fff4e5; color: #b47a06; }
.status-replied { background: var(--green-soft); color: #2f8e4f; }
.status-closed { background: #eef1f5; color: #7b8492; }

/* ═════════════ 我的推广 ═════════════ */

.aff-box { display: grid; gap: 12px; }
.aff-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--brand-softer); border: 1px dashed #bcd9f8;
  border-radius: 10px; padding: 10px 14px;
}
.aff-link code { flex: 1; font-family: var(--mono); font-size: 12.5px; color: var(--brand-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aff-stat { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; }
.aff-stat .k { font-size: 12px; color: var(--text-3); }
.aff-stat .v { font-size: 19px; font-weight: 700; margin-top: 2px; }

@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
  .aff-stats { grid-template-columns: 1fr 1fr; }
}

/* ═════════════ 下载卡（有权限时） ═════════════ */

.buy-card { position: relative; top: auto; overflow: visible; }
.buy-card.is-ready { overflow: hidden; }

/* 右列整体吸顶：滚动到顶就固定，不再跟着页面滚走 */
.detail-side {
  position: sticky;
  top: 84px;
  align-self: start;
  will-change: transform;
}

.buy-ribbon {
  position: absolute; top: 0; right: 0; z-index: 3;
  width: 86px; height: 86px; pointer-events: none;
  font-size: 0;                                   /* DOM 文本不直接显示 */
  background: linear-gradient(225deg,
    #2bbb78 0, #23a866 42%,
    rgba(35, 168, 102, .55) 42.6%, transparent 43%);
  border-top-right-radius: 10px;
}
.buy-ribbon::after {
  content: "下载";
  position: absolute; top: 21px; right: 15px;
  font-size: 12px; font-weight: 600; letter-spacing: 1px; color: #fff;
  transform: rotate(45deg); transform-origin: center;
}

.dl-head {
  padding: 22px 16px 16px; text-align: center;
  background: linear-gradient(180deg, #f2fbf6, #ffffff);
  border-bottom: 1px solid var(--line);
}
.dl-head-title {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 18px; font-weight: 700; color: #17a05e; letter-spacing: -.01em;
}
.dl-head-title svg { width: 21px; height: 21px; }
.dl-head-sub { margin-top: 5px; font-size: 12.5px; color: var(--text-3); }

.dl-actions { display: grid; gap: 9px; }

.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 56px; padding: 0 14px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(120deg, #3ec98a, #23a866);
  color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; position: relative;
  box-shadow: 0 3px 10px -3px rgba(35, 168, 102, .5);
  transition: filter .14s, transform .06s, box-shadow .14s;
}
.dl-btn:hover { filter: brightness(1.05); color: #fff; box-shadow: 0 6px 16px -4px rgba(35, 168, 102, .55); }
.dl-btn:active { transform: translateY(1px); }
.dl-btn:disabled { opacity: .6; cursor: not-allowed; }
.dl-btn svg { width: 19px; height: 19px; flex: none; }
.dl-btn-hint {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 500; opacity: .8; background: rgba(255,255,255,.18);
  padding: 2px 7px; border-radius: 10px;
}
.dl-btn-file {
  background: linear-gradient(120deg, #4aa6ff, #1f7bea);
  box-shadow: 0 3px 10px -3px rgba(31, 123, 234, .5);
}
.dl-btn-file:hover { box-shadow: 0 6px 16px -4px rgba(31, 123, 234, .55); }

.dl-btn-wrap { display: grid; gap: 4px; }
.dl-btn-pwd {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.mini-copy {
  border: 1px solid var(--line-2); background: #fff; color: var(--text-2);
  font-size: 11px; padding: 1px 8px; border-radius: 9px; cursor: pointer;
}
.mini-copy:hover { border-color: var(--brand); color: var(--brand); }

.dl-warn {
  font-size: 12px; color: #b46a00; background: #fff7e8;
  border: 1px solid #ffe0b0; border-radius: 8px; padding: 8px 10px; text-align: center;
}

@media (max-width: 900px) {
  .dl-head { padding: 18px 14px 14px; }
  .dl-head-title { font-size: 16.5px; }
  .buy-ribbon { width: 66px; height: 66px; }
}

/* ───────────── 详情页单列断点（必须放在 .detail-side 定义之后） ───────────── */
@media (max-width: 980px) {
  .detail-side { position: static; }   /* 单列时不吸顶，避免遮挡正文 */
  .buy-card { position: relative; top: auto; }
}

/* ───────────── 未收录下载地址 ───────────── */

.dl-empty {
  display: grid; gap: 8px; justify-items: center;
  padding: 22px 16px; text-align: center;
  background: #fafbfc; border: 1px dashed var(--line-2); border-radius: 12px;
}
.dl-empty-icon { color: #c6ccd4; }
.dl-empty-icon svg { width: 30px; height: 30px; }
.dl-empty-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.dl-empty-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.dl-empty-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }

/* ───────────── 网盘按钮（带提取码的拆分样式） ───────────── */

.dl-split {
  display: flex; align-items: stretch;
  width: 100%; height: 56px;
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(120deg, #3ec98a, #23a866);
  box-shadow: 0 3px 10px -3px rgba(35, 168, 102, .5);
  transition: filter .14s, box-shadow .14s;
}
.dl-split:hover { filter: brightness(1.04); box-shadow: 0 6px 16px -4px rgba(35, 168, 102, .55); }

.dl-split-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none;
  padding: 0 8px 0 18px;
}
.dl-split-main:hover { color: #fff; }
.dl-split-main svg { width: 20px; height: 20px; flex: none; }
.dl-split-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-split-pwd {
  flex: none; width: 108px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-left: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .26);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 0 8px;
  transition: background .14s;
}
.dl-split-pwd:hover { background: rgba(255, 255, 255, .38); }
.dl-split-pwd:active { background: rgba(255, 255, 255, .22); }
.dl-split-pwd svg { width: 17px; height: 17px; flex: none; }

@media (max-width: 900px) {
  .dl-split { height: 54px; }
  .dl-split-main { font-size: 15px; padding-left: 14px; }
  .dl-split-pwd { width: 104px; font-size: 14px; }
}

/* ═════════════ 立即下载 / 历史版本 ═════════════ */

.dl-btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.dl-btn-primary, .dl-btn-history {
  height: 58px; border: 0; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em;
  transition: filter .14s, transform .06s, box-shadow .14s;
}
.dl-btn-primary {
  background: linear-gradient(120deg, #fb5b6b, #ee3f52);
  box-shadow: 0 4px 12px -4px rgba(238, 63, 82, .55);
}
.dl-btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 18px -6px rgba(238, 63, 82, .6); }
.dl-btn-primary svg { width: 21px; height: 21px; }
.dl-btn-history {
  min-width: 116px; padding: 0 16px;
  background: linear-gradient(120deg, #4cc0ff, #2aa8f2);
  box-shadow: 0 4px 12px -4px rgba(42, 168, 242, .5);
  font-size: 15px; font-weight: 600;
}
.dl-btn-history:hover { filter: brightness(1.05); }
.dl-btn-primary:active, .dl-btn-history:active { transform: translateY(1px); }

/* ───────────── 下载弹窗 ───────────── */

.modal.dl-sheet { max-width: 760px; padding: 26px 26px 22px; }
.dl-sheet-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; margin-bottom: 18px;
}
.dl-sheet-body { margin-bottom: 18px; }

.dl-table { width: 100%; border-collapse: collapse; }
.dl-table th {
  text-align: left; font-size: 14px; font-weight: 700; color: var(--text);
  padding: 0 8px 12px; border-bottom: 1px solid var(--line-2);
}
.dl-table th.dl-row-act { text-align: right; }
.dl-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table tr:last-child td { border-bottom: 0; }

.dl-row-desc { font-size: 15px; font-weight: 600; color: var(--text); }
.dl-row-ver { color: var(--text); margin-right: 4px; }
.dl-row-pwd { font-size: 15px; color: var(--text-2); font-family: var(--mono); white-space: nowrap; }
.dl-row-act { text-align: right; white-space: nowrap; }

.dl-row-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 18px; border-radius: 8px; border: 0;
  background: #ffecef; color: #ee3f52; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background .14s;
}
.dl-row-btn:hover { background: #ffdfe4; color: #d92c40; }
.dl-row-btn-copy { background: #eaf6ff; color: #2aa8f2; }
.dl-row-btn-copy:hover { background: #dcefff; color: #1a90d6; }

.pwd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer; padding: 2px 0;
  font-family: var(--mono); font-size: 15px; color: var(--text);
}
.pwd-chip svg { width: 15px; height: 15px; color: var(--text-3); }
.pwd-chip:hover { color: var(--brand); }
.pwd-chip:hover svg { color: var(--brand); }

.dl-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: #eaf4ff; border-radius: 10px; padding: 14px 16px;
  font-size: 13px; line-height: 1.85; color: #1c6bb0;
}
.dl-note-ic { flex: none; font-size: 15px; line-height: 1.6; }

.dl-sheet-empty {
  display: grid; gap: 10px; justify-items: center; padding: 40px 20px;
  color: var(--text-3); font-size: 13.5px;
}

@media (max-width: 760px) {
  .dl-btns { grid-template-columns: 1fr; }
  .dl-btn-history { min-width: 0; }
  .modal.dl-sheet { padding: 20px 16px; }
  .dl-table th, .dl-table td { padding-left: 4px; padding-right: 4px; }
  .dl-row-desc { font-size: 13.5px; }
  .dl-note { font-size: 12px; }
}

/* 弹窗关闭按钮 */
.modal { position: relative; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: none; color: var(--text-3); font-size: 15px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.modal-x:hover { background: var(--bg); color: var(--text); }
.modal.dl-sheet .modal-x { top: 16px; right: 16px; }

/* ═════════════ 历史版本展示卡 ═════════════ */

.history-card {
  margin-top: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
}
.history-head {
  display: flex; align-items: center; gap: 9px;
  padding: 20px 24px 16px;
}
.history-head svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.history-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.history-count { margin-left: auto; font-size: 12.5px; color: var(--text-3); }

.history-body { padding: 0 24px 22px; }

.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left; font-size: 14px; font-weight: 700; color: var(--text);
  padding: 12px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.history-table td {
  padding: 16px 10px; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--text); vertical-align: middle; white-space: nowrap;
}
.history-table tr:last-child td { border-bottom: 0; }

.hv-ver { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hv-new {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 4px; background: #f5455c; color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.hv-date { color: var(--text-2); }
.hv-size { color: var(--text-2); }
.hv-status { color: var(--text-2); }
.hv-lang { color: var(--text-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.hv-act { text-align: right; }

.hv-dl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 66px; height: 34px; padding: 0 16px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: #f5455c; color: #fff; font-size: 14px; font-weight: 600;
  transition: filter .14s, background .14s;
}
.hv-dl:hover { filter: brightness(1.06); }
.hv-dl.is-disabled { background: #f1f3f5; color: var(--text-3); cursor: not-allowed; }
.hv-dl.is-locked { background: #fff0f2; color: #ee3f52; }

.history-lock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: #fafbfc; border: 1px dashed var(--line-2);
  font-size: 13px; color: var(--text-3);
}

@media (max-width: 900px) {
  .history-head { padding: 16px 16px 12px; }
  .history-body { padding: 0 16px 18px; }
  .history-lock { flex-direction: column; align-items: flex-start; }
}

/* 窄屏：表格改成卡片式，避免横向滚动 */
@media (max-width: 720px) {
  .history-table thead { display: none; }
  .history-table, .history-table tbody { display: block; width: 100%; }
  .history-table tr {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .history-table tr:last-child { border-bottom: 0; }
  .history-table td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 3px 0; border: 0; font-size: 13.5px;
  }
  .history-table td::before {
    content: attr(data-label);
    color: var(--text-3); font-size: 12.5px; flex: none;
  }
  .hv-ver { font-size: 16px; }
  .hv-ver::before { content: none !important; }
  .hv-ver .hv-ver-num { font-weight: 700; font-size: 16px; }
  .hv-ver { margin-bottom: 4px; }
  .hv-act { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
  .hv-act::before { content: none !important; }
  .hv-dl { width: 100%; height: 38px; }
}

/* ═════════════ 内容模块（前台） ═════════════ */

.mod-block { margin: 30px 0 0; }
.mod-block:first-child { margin-top: 6px; }

.mod-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mod-head h2 {
  margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  position: relative; padding-left: 12px;
}
.mod-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px; background: var(--brand);
}
.mod-hint { font-size: 12px; color: var(--text-3); }

/* ── 图集 ── */
.gal-wrap { display: grid; gap: 10px; }

.gal-stage {
  position: relative; border-radius: 12px; overflow: hidden;
  background: #0f1216; aspect-ratio: 16 / 9; outline: none;
}
.gal-stage:focus-visible { box-shadow: 0 0 0 3px var(--brand-soft); }
.gal-main-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: #0f1216;
}

.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(16, 20, 26, .55); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px;
  opacity: 0; transition: opacity .16s, background .16s;
}
.gal-stage:hover .gal-nav, .gal-stage:focus-within .gal-nav { opacity: 1; }
.gal-nav:hover { background: rgba(16, 20, 26, .8); }
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }

.gal-count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 2px 9px; border-radius: 10px;
  background: rgba(16, 20, 26, .6); color: #fff; font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.gal-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
}
.gal-thumb-btn {
  flex: none; width: 108px; aspect-ratio: 16 / 10;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  padding: 0; background: none; cursor: pointer; opacity: .62;
  transition: opacity .14s, border-color .14s;
}
.gal-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb-btn:hover { opacity: .9; }
.gal-thumb-btn.is-active { border-color: var(--brand); opacity: 1; }

/* ── 常见问题 ── */
.faq-list { display: grid; gap: 8px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fafbfc;
}
.faq-q {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 16px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 14.5px; font-weight: 600; color: var(--text);
}
.faq-q:hover { color: var(--brand); }
.faq-idx {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 700;
}
.faq-text { flex: 1; min-width: 0; }
.faq-caret {
  flex: none; width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  color: var(--text-3); transition: transform .16s;
}
.faq-item.is-open .faq-caret { transform: rotate(90deg); }
.faq-a {
  display: none; padding: 0 16px 14px 46px;
  font-size: 14px; line-height: 1.85; color: var(--text-2);
}
.faq-item.is-open .faq-a { display: block; }

/* ── 声明 ── */
.mod-disclaimer .mod-head h2::before { background: var(--text-3); }
.disclaimer-body {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 14px 16px; border-radius: 10px;
  background: #f6f8fa; border: 1px solid var(--line);
  font-size: 12.8px; line-height: 1.85; color: var(--text-3);
}
.disclaimer-ic { flex: none; color: var(--text-3); }

@media (max-width: 760px) {
  .gal-stage { aspect-ratio: 4 / 3; }
  .gal-thumb-btn { width: 84px; }
  .faq-a { padding-left: 16px; }
  .mod-head h2 { font-size: 16.5px; }
}

/* 介绍模块：不要标题，只用一条细线分隔 */
.mod-block.mod-intro { margin-top: 22px; }
.mod-divider {
  height: 1px; border: 0; margin: 0 0 18px;
  background: var(--line-2);
}
.mod-intro .prose { font-size: 15px; line-height: 1.95; color: var(--text-2); }
.mod-intro .prose > p:first-child { margin-top: 0; }
.mod-intro .prose > p:last-child { margin-bottom: 0; }

/* ═════════════ 帮助中心 ═════════════ */

/* ── 帮助中心搜索横幅 ── */
.help-search-hero {
  position: relative; overflow: hidden;
  margin: 0 0 22px; padding: 44px 28px 38px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(91, 140, 255, .28), transparent 60%),
    radial-gradient(110% 130% at 88% 100%, rgba(240, 90, 130, .22), transparent 62%),
    linear-gradient(135deg, #2a3039 0%, #1c2127 55%, #171b21 100%);
  box-shadow: 0 16px 40px -28px rgba(16, 24, 40, .55);
}
.help-search-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 18px 18px;
}

.hs-row {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  max-width: 780px; margin: 0 auto;
  height: 58px; background: #fff; border-radius: 11px;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .55);
  transition: box-shadow .16s;
}
.hs-row:focus-within { box-shadow: 0 14px 38px -14px rgba(0, 0, 0, .6), 0 0 0 3px rgba(91, 140, 255, .35); }

.hs-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: none;
  padding: 0 6px 0 26px;
  border-radius: 11px 0 0 11px;
  font-size: 16px; color: #1f2733;
}
.hs-input::placeholder { color: #a8b1bd; }
.hs-input::-webkit-search-cancel-button { display: none; }

.hs-btn {
  flex: none; width: 58px; height: 100%;
  border: 0; background: none; cursor: pointer;
  color: #6b7684; display: grid; place-items: center;
  border-radius: 0 11px 11px 0;
  transition: color .14s, background .14s;
}
.hs-btn:hover { color: var(--brand); background: #f4f7fc; }
.hs-btn svg { width: 21px; height: 21px; }

.hs-hints {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: 780px; margin: 14px auto 0;
  font-size: 12.5px; color: rgba(255, 255, 255, .55);
}
.hs-chip {
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .8); font-size: 12.5px;
  padding: 3px 11px; border-radius: 12px; cursor: pointer;
  transition: background .14s, border-color .14s;
}
.hs-chip:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }

/* 搜索结果头 */
.hs-result-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 18px;
}
.hs-result-head h2 { font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin: 0; }
.hs-result-head h2 em { font-style: normal; color: var(--brand); }

.hs-empty {
  display: grid; gap: 10px; justify-items: center;
  padding: 60px 20px; text-align: center;
}
.hs-empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.hs-empty-sub { font-size: 13.5px; color: var(--text-3); }

.help-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; }
.help-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 17px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 13.5px; color: var(--text-2); text-decoration: none;
  transition: all .14s;
}
.help-tab:hover { border-color: var(--brand-line); color: var(--brand); }
.help-tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.help-block { margin-bottom: 34px; }
.help-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.help-block-head { border-bottom: 0; margin-bottom: 16px; padding-bottom: 0; }
.help-block-head h2 {
  font-size: 22px; font-weight: 750; letter-spacing: -.02em;
  position: relative; padding-left: 0; margin: 0;
}
.help-block-head h2::before { display: none; }
.help-more { font-size: 13.5px; color: var(--brand); text-decoration: none; }
.help-more:hover { text-decoration: underline; }

/* ── 样式 0：彩色横幅 ── */
.al-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.al-banner {
  --bc1: #1a7af8; --bc2: #3b9bff;
  position: relative; overflow: hidden;
  display: block; min-height: 108px; padding: 20px 22px;
  border-radius: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--bc1), var(--bc2));
  box-shadow: 0 6px 18px -10px var(--bc1);
  transition: transform .16s, box-shadow .16s;
}
.al-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--bc1); }
.al-banner.bc-1 { --bc1: #16b884; --bc2: #35d3a0; }
.al-banner.bc-2 { --bc1: #ee2b62; --bc2: #ff557f; }
.al-banner.bc-3 { --bc1: #7b5cf0; --bc2: #9a7dff; }
.al-banner.bc-4 { --bc1: #f5842a; --bc2: #ffa552; }

.al-banner-text { position: relative; z-index: 2; max-width: 80%; }
.al-banner-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.5; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.al-banner-sub {
  margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .82);
  font-weight: 500;
}
.al-banner-mark {
  position: absolute; right: -6px; bottom: -10px; z-index: 1;
  color: rgba(255, 255, 255, .22); pointer-events: none;
}
.al-banner-mark svg { width: 108px; height: 108px; display: block; }

/* ── 样式 1：简洁列表 ── */
.al-list { display: grid; gap: 2px; }
.al-row {
  display: block; padding: 13px 16px; border-radius: 10px;
  border: 1px solid transparent; text-decoration: none;
  transition: background .14s, border-color .14s;
}
.al-row:hover {
  background: linear-gradient(180deg, #f9fbff, #eff5fd);
  border-color: #e2ecfb;
  box-shadow: 0 4px 14px -12px rgba(23, 77, 168, .4);
}
.al-row-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.al-row:hover .al-row-title { color: var(--brand); }
.al-row-desc {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 4px; font-size: 12.8px; color: var(--text-3); line-height: 1.6;
}

/* ── 样式 2：浅色卡片 ── */
.al-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.al-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 18px; border-radius: 14px;
  background: linear-gradient(180deg, #f7fafe 0%, #eaf2fd 100%);
  border: 1px solid #dde9fa;
  box-shadow: 0 2px 4px -2px rgba(23, 77, 168, .10), 0 8px 20px -14px rgba(23, 77, 168, .30);
  text-decoration: none;
  transition: background .16s, transform .16s, box-shadow .16s, border-color .16s;
}
.al-card:hover {
  background: #fff; transform: translateY(-3px);
  border-color: #c3d9f7;
  box-shadow: 0 4px 10px -6px rgba(23, 77, 168, .18), 0 18px 34px -20px rgba(23, 77, 168, .5);
}
.al-card-title {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.al-card:hover .al-card-title { color: var(--brand); }
.al-card-desc {
  margin: 0; font-size: 13px; line-height: 1.85; color: #5f6b7a;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.al-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 6px; font-size: 12px;
}
.al-card-tag {
  color: #2d6cdf; background: rgba(45, 108, 223, .1);
  padding: 2px 9px; border-radius: 6px; font-weight: 500;
}
.al-card-go { color: var(--brand); font-weight: 600; opacity: 0; transition: opacity .16s; }
.al-card:hover .al-card-go { opacity: 1; }

/* ── 样式 3：折叠问答 ── */
.al-acc { display: grid; gap: 10px; }
.al-acc-item {
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #f7fafe 0%, #ecf3fd 100%);
  border: 1px solid #dde9fa;
  box-shadow: 0 2px 4px -2px rgba(23, 77, 168, .10), 0 8px 20px -16px rgba(23, 77, 168, .28);
  transition: background .14s, border-color .14s, box-shadow .14s;
}
.al-acc-item:hover { border-color: #c9dcf8; }
.al-acc-item.is-open {
  background: #fff; border-color: #c3d9f7;
  box-shadow: 0 4px 10px -6px rgba(23, 77, 168, .16), 0 16px 32px -22px rgba(23, 77, 168, .45);
}
.al-acc-q {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px 20px; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 15px; font-weight: 650; color: var(--text);
}
.al-acc-q:hover { color: var(--brand); }
.al-acc-idx {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: #dbeafe; color: #1d5fd6; font-size: 12px; font-weight: 700;
}
.al-acc-text { flex: 1; min-width: 0; line-height: 1.5; }
.al-acc-caret {
  flex: none; width: 0; height: 0; border-left: 5px solid currentColor;
  border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
  color: #9aa4b2; transition: transform .16s;
}
.al-acc-item.is-open .al-acc-caret { transform: rotate(90deg); color: var(--brand); }
.al-acc-body {
  display: none; padding: 0 20px 18px 56px;
  font-size: 13.5px; color: #5f6b7a; line-height: 1.9;
}
.al-acc-item.is-open .al-acc-body { display: block; }
.al-acc-body p { margin: 0 0 10px; }
.al-acc-link { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }

/* ── 样式 4：排行 ── */
.al-rank {
  list-style: none; margin: 0; padding: 10px; display: grid; gap: 3px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef4fd 100%);
  border: 1px solid #e2ecfb; border-radius: 14px;
  box-shadow: 0 2px 4px -2px rgba(23, 77, 168, .08), 0 10px 24px -20px rgba(23, 77, 168, .3);
}
.al-rank-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 9px;
  background: #fff;
  transition: box-shadow .14s, transform .14s;
}
.al-rank-item + .al-rank-item { border-top: 1px solid #eef3fa; }
.al-rank-item:hover {
  transform: translateX(2px);
  box-shadow: 0 3px 10px -6px rgba(23, 77, 168, .35);
}
.al-rank-no {
  flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: #b8c1cd;
}
.al-rank-no.rk-0 { background: #ef3b4f; }
.al-rank-no.rk-1 { background: #23b26d; }
.al-rank-no.rk-2 { background: #f2a33c; }
.al-rank-no.rk-3 { background: #3b8ef0; }
.al-rank-title {
  flex: 1; min-width: 0; font-size: 15px; color: var(--text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.al-rank-title:hover { color: var(--brand); }
.al-rank-heat { flex: none; display: inline-flex; align-items: center; gap: 5px; color: #f4776f; }
.al-rank-num { font-size: 13px; font-variant-numeric: tabular-nums; }
.al-rank-fire svg { width: 13px; height: 13px; display: block; opacity: .85; }

/* ── 样式 5：时间线 ── */
.al-timeline { display: grid; gap: 0; position: relative; padding-left: 4px; }
.al-tl-item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.al-tl-item::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line-2);
}
.al-tl-item:last-child::before { display: none; }
.al-tl-dot {
  flex: none; width: 11px; height: 11px; border-radius: 50%; margin-top: 4px;
  background: #fff; border: 2px solid var(--brand); position: relative; z-index: 1;
  box-shadow: 0 0 0 4px #eef4fd;
}
.al-tl-body { min-width: 0; }
.al-tl-date { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.al-tl-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.al-tl-title:hover { color: var(--brand); }
.al-tl-desc { margin: 4px 0 0; font-size: 12.8px; color: var(--text-3); line-height: 1.65; }

.al-empty { padding: 26px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ═════════════ 文章页 ═════════════ */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; }
.article-main {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 32px 34px; min-width: 0;
}
.article-title { font-size: 25px; font-weight: 750; letter-spacing: -.02em; line-height: 1.4; margin: 0 0 12px; }
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; flex-wrap: wrap; }
.article-tag { background: var(--brand-soft); color: var(--brand); padding: 2px 9px; border-radius: 5px; font-size: 12px; }
.article-cover { margin: 0 0 22px; border-radius: 12px; overflow: hidden; }
.article-cover img { width: 100%; display: block; }
.article-body { font-size: 15px; line-height: 1.95; color: var(--text-2); }
.article-body h2 { font-size: 19px; margin: 28px 0 12px; }
.article-body h3 { font-size: 16.5px; margin: 22px 0 10px; }

.article-side { position: sticky; top: 84px; align-self: start; display: grid; gap: 14px; }
.side-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.side-card h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.side-card p { margin: 0 0 12px; line-height: 1.7; }
.side-card .al-row { padding: 9px 10px; }
.side-card .al-row-title { font-size: 13px; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.article-nav-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; text-decoration: none;
}
.article-nav-item:hover { border-color: var(--brand-line); }
.article-nav-item.is-empty { background: none; border: 0; }
.article-nav-item.next { text-align: right; }
.article-nav-label { font-size: 11.5px; color: var(--text-3); }
.article-nav-title {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1080px) {
  .al-banners { grid-template-columns: repeat(2, 1fr); }
  .al-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .help-search-hero { padding: 26px 16px 22px; border-radius: 14px; }
  .hs-row { height: 52px; }
  .hs-input { font-size: 15px; padding: 0 4px 0 16px; }
  .hs-btn { width: 48px; }
  .hs-hints { font-size: 11.5px; }
  .al-banners { grid-template-columns: 1fr; }
  .al-cards { grid-template-columns: 1fr; }
  .al-banner { min-height: 96px; padding: 16px 18px; }
  .al-banner-mark svg { width: 88px; height: 88px; }
  .al-banner-text { max-width: 72%; }
  .al-banner-title { font-size: 14.5px; }
}
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .article-main { padding: 22px 18px 26px; }
  .article-title { font-size: 21px; }
  .article-nav { grid-template-columns: 1fr; }
  .al-cards { grid-template-columns: 1fr; }
}

/* ═════════════ 装机必备：轮播横幅 ═════════════ */

.bibei-bn { margin-bottom: 18px; }
.bibei-bn:empty { display: none; }

.banner-carousel { position: relative; }

.bc-stage {
  position: relative; overflow: hidden;
  border-radius: 18px;
  height: clamp(168px, 19vw, 226px);
  box-shadow: 0 12px 34px -24px rgba(23, 77, 168, .5);
}

.bc-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.bc-slide.is-active { opacity: 1; pointer-events: auto; }

.bc-slide-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; width: 100%; height: 100%;
  padding: 0 clamp(24px, 5vw, 76px);
  text-decoration: none; color: inherit;
  position: relative;
  transition: transform .4s;
}
.bc-slide-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 82% 40%, rgba(255,255,255,.35), transparent 62%);
}

.bc-text { position: relative; z-index: 2; max-width: 56%; }
.bc-title {
  margin: 0; font-size: clamp(20px, 2.5vw, 33px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.28; color: #16233a;
}
.bc-sub {
  margin: 9px 0 0; font-size: clamp(12.5px, 1vw, 14.5px);
  color: #46536b; line-height: 1.65; max-width: 480px;
}
.bc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 7px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .82); color: #1e4fbf;
  font-size: 13.5px; font-weight: 650;
  box-shadow: 0 4px 14px -8px rgba(23, 77, 168, .5);
  transition: background .16s, transform .16s;
}
.bc-slide-inner:hover .bc-cta { background: #fff; transform: translateX(2px); }

.bc-art {
  position: relative; z-index: 2; flex: none;
  max-width: 40%; height: 78%;
  display: flex; align-items: center; justify-content: center;
}
.bc-art img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 18px 30px rgba(28, 52, 106, .22));
}

.bc-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .78); color: #2b3a55;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px;
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .18s, background .18s;
  z-index: 3;
}
.banner-carousel:hover .bc-nav { opacity: 1; }
.bc-nav:hover { background: #fff; }
.bc-nav.prev { left: 14px; }
.bc-nav.next { right: 14px; }

.bc-dots {
  position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%);
  display: flex; justify-content: center; gap: 7px;
  z-index: 4; margin: 0;
}
.bc-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(30, 79, 191, .26); cursor: pointer;
  transition: width .22s, background .22s;
}
.bc-dot:hover { background: rgba(30, 79, 191, .45); }
.bc-dot.is-active { width: 22px; background: #1d5fd6; }

@media (max-width: 900px) {
  .bc-stage { height: auto; min-height: 196px; border-radius: 14px; }
  .bc-slide-inner { flex-direction: column; justify-content: center; padding: 22px 20px 34px; gap: 10px; }
  .bc-text { max-width: 100%; text-align: center; }
  .bc-title { font-size: 22px; }
  .bc-sub { margin-top: 8px; font-size: 13px; }
  .bc-cta { margin-top: 12px; padding: 7px 16px; font-size: 13px; }
  .bc-art { display: none; }          /* 窄屏空间有限，只留文字 */
  .bc-nav { display: none; }
  .bc-dots { bottom: 10px; }
}

/* 横幅无配图时的装饰 */
.bc-art-ghost { color: rgba(30, 79, 191, .16); }
.bc-art-ghost svg { width: 100%; height: 100%; max-width: 210px; }

/* ═════════════ 首页区块 ═════════════ */

.home-block { margin-bottom: 34px; }
.home-block:last-child { margin-bottom: 8px; }

/* 分类导航 */
.home-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.home-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 15px; border-radius: 11px; text-decoration: none;
  background: linear-gradient(180deg, #f8fbfe, #eef4fd);
  border: 1px solid #e2ecfb;
  box-shadow: 0 2px 4px -2px rgba(23, 77, 168, .08), 0 8px 18px -16px rgba(23, 77, 168, .28);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.home-cat:hover {
  background: #fff; border-color: #c3d9f7; transform: translateY(-2px);
  box-shadow: 0 4px 10px -6px rgba(23, 77, 168, .18), 0 16px 30px -20px rgba(23, 77, 168, .45);
}
.home-cat-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.home-cat:hover .home-cat-name { color: var(--brand); }
.home-cat-n {
  flex: none; font-size: 11.5px; color: var(--text-3);
  background: rgba(45, 108, 223, .08); padding: 1px 7px; border-radius: 6px;
}

/* 装机必备入口 */
.bibei-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(120deg, #eef4ff, #dbe9ff 62%, #cfdffd);
  border: 1px solid #d8e6fb;
  box-shadow: 0 4px 12px -8px rgba(23, 77, 168, .2);
  transition: transform .15s, box-shadow .15s;
}
.bibei-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -16px rgba(23, 77, 168, .45);
}
.bibei-entry-text h3 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -.02em; color: #16233a; }
.bibei-entry-text p { margin: 6px 0 0; font-size: 13.5px; color: #56637a; }
.bibei-entry-go {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px; border-radius: 20px; background: #fff;
  color: #1e4fbf; font-size: 13.5px; font-weight: 650;
  box-shadow: 0 4px 14px -10px rgba(23, 77, 168, .6);
}

@media (max-width: 760px) {
  .home-cats { grid-template-columns: repeat(2, 1fr); }
  .bibei-entry { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
}

/* ═════════════ 幻灯片组件 ═════════════ */

.slider-block { position: relative; margin-bottom: 8px; }

.sl-stage {
  position: relative; overflow: hidden;
  border-radius: 18px;
  height: 260px;
  box-shadow: 0 12px 34px -26px rgba(23, 77, 168, .45);
}

.sl-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .55s ease;
}
.sl-slide.is-active { opacity: 1; pointer-events: auto; }

.sl-slide-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; width: 100%; height: 100%;
  padding: 0 clamp(22px, 4.5vw, 68px);
  text-decoration: none; position: relative;
}

.sl-text { position: relative; z-index: 2; max-width: 58%; }
.sl-title {
  margin: 0; font-size: clamp(20px, 2.5vw, 34px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.28;
}
.sl-sub { margin: 10px 0 0; font-size: clamp(12.5px, 1vw, 15px); line-height: 1.7; opacity: .8; max-width: 480px; }
.sl-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 8px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .85); color: #1e4fbf;
  font-size: 13.5px; font-weight: 650;
  box-shadow: 0 4px 14px -10px rgba(23, 77, 168, .55);
  transition: background .16s, transform .16s;
}
.sl-slide-inner:hover .sl-cta { background: #fff; transform: translateX(2px); }

.sl-art {
  position: relative; z-index: 2; flex: none;
  max-width: 40%; height: 76%;
  display: flex; align-items: center; justify-content: center;
}
.sl-art img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 18px 30px rgba(28, 52, 106, .22));
}

.sl-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: #2b3a55;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px;
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .18s, background .18s; z-index: 4;
}
.slider-block:hover .sl-nav { opacity: 1; }
.sl-nav:hover { background: #fff; }
.sl-nav.prev { left: 14px; }
.sl-nav.next { right: 14px; }

.sl-dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 4;
}
.sl-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(30, 79, 191, .26); cursor: pointer;
  transition: width .22s, background .22s;
}
.sl-dot:hover { background: rgba(30, 79, 191, .45); }
.sl-dot.is-active { width: 22px; background: #1d5fd6; }

/* ── 样式 2：全图叠加 ── */
.sl-style-overlay .sl-slide-inner {
  align-items: flex-end; justify-content: flex-start;
  padding: 0 clamp(22px, 4.5vw, 68px) 46px;
}
.sl-style-overlay .sl-slide.has-img .sl-slide-inner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 26, .62) 0%, rgba(10, 16, 26, .12) 52%, transparent 100%);
}
/* 没有配图时白字压不住浅色底，改成深字 */
.sl-style-overlay .sl-slide:not(.has-img) .sl-title,
.sl-style-overlay .sl-slide:not(.has-img) .sl-sub { color: inherit !important; }
.sl-style-overlay .sl-text { max-width: 70%; }
.sl-style-overlay .sl-title,
.sl-style-overlay .sl-sub { color: #fff !important; }
.sl-style-overlay .sl-art { position: absolute; inset: 0; max-width: none; height: 100%; }
.sl-style-overlay .sl-art img { width: 100%; height: 100%; border-radius: 0; filter: none; object-fit: cover; }
.sl-style-overlay .sl-dot { background: rgba(30, 79, 191, .3); }
.sl-style-overlay .sl-dot.is-active { background: #1d5fd6; }

/* ── 样式 3：居中大字 ── */
.sl-style-center .sl-slide-inner { flex-direction: column; justify-content: center; text-align: center; gap: 0; }
.sl-style-center .sl-text { max-width: 100%; }
.sl-style-center .sl-sub { margin-left: auto; margin-right: auto; }
.sl-style-center .sl-art { display: none; }

/* ── 样式 4：卡片并排 ── */
.sl-style-cards .sl-stage { background: transparent; box-shadow: none; overflow: visible; }
.sl-style-cards .sl-slide { position: absolute; inset: 0; }
.sl-style-cards .sl-slide-inner {
  justify-content: center; text-align: center; flex-direction: column; gap: 0;
  border-radius: 16px; padding: 22px;
  box-shadow: 0 14px 34px -24px rgba(23, 77, 168, .55);
}
.sl-style-cards .sl-slide { transform: scale(.86); transition: opacity .5s, transform .5s; }
.sl-style-cards .sl-slide.is-active { transform: scale(1); }
.sl-style-cards .sl-text { max-width: 100%; }
.sl-style-cards .sl-art { display: none; }
.sl-style-cards .sl-title { font-size: clamp(18px, 2vw, 26px); }

/* ── 样式 5：极简细线 ── */
.sl-style-minimal .sl-stage { box-shadow: none; border: 1px solid var(--line-2); background: #fff; }
.sl-style-minimal .sl-slide-inner { background: #fff !important; justify-content: center; text-align: center; flex-direction: column; }
.sl-style-minimal .sl-text { max-width: 100%; }
.sl-style-minimal .sl-title { font-size: clamp(18px, 2vw, 26px); font-weight: 700; }
.sl-style-minimal .sl-art { display: none; }
.sl-style-minimal .sl-cta { background: var(--brand); color: #fff; }
.sl-style-minimal .sl-dot { background: rgba(0, 0, 0, .16); }
.sl-style-minimal .sl-dot.is-active { background: var(--brand); }

@media (max-width: 900px) {
  .sl-stage { height: auto !important; min-height: 190px; border-radius: 14px; }
  .sl-slide-inner { flex-direction: column; justify-content: center; text-align: center; padding: 22px 18px 36px; gap: 12px; }
  .sl-text { max-width: 100%; }
  .sl-art { display: none; }
  .sl-nav { display: none; }
  .sl-style-overlay .sl-slide-inner { padding: 22px 18px 40px; }
}

/* ═════════════ 自定义页面：自适应栅格 ═════════════ */

.page-hero { margin: 6px 0 24px; }
.page-hero h1 { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin: 0 0 8px; }
.page-hero .muted { font-size: 14px; line-height: 1.7; max-width: 680px; }

.pb-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: start;
}

.pb-cell { min-width: 0; }
.pw-full { grid-column: span 12; }
.pw-two-thirds { grid-column: span 8; }
.pw-half { grid-column: span 6; }
.pw-third { grid-column: span 4; }

.pb-image { display: block; border-radius: 14px; overflow: hidden; }
.pb-image img { width: 100%; display: block; }

/* 半栏里区块字号略收，避免拥挤 */
.pw-half .section-head h2,
.pw-third .section-head h2 { font-size: 16.5px; }
.pw-third .app-grid { grid-template-columns: 1fr; }
.pw-half .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-two-thirds .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-half .rank-wrap,
.pw-third .rank-wrap { grid-template-columns: 1fr; }
.pw-half .al-cards,
.pw-third .al-cards { grid-template-columns: 1fr; }
.pw-half .home-cats,
.pw-third .home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-half .series-grid,
.pw-third .series-grid { grid-template-columns: 1fr; }

@media (max-width: 1080px) {
  .pw-two-thirds, .pw-half, .pw-third { grid-column: span 12; }
  .pw-half .app-grid, .pw-two-thirds .app-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  .pb-grid { gap: 20px 0; }
  .page-hero h1 { font-size: 22px; }
}

/* 面包屑右侧的编辑入口（仅登录且有权限时渲染） */
.crumb-edit {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 4px; padding: 2px 9px;
  border: 1px solid var(--brand); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft);
  transition: background .12s, color .12s;
}
.crumb-edit:hover { background: var(--brand); color: #fff; }

/* 首页侧栏：最近更新 / 排行 */
.rail-rank { padding: 18px 16px; }
.rail-rank .rail-list li { align-items: center; gap: 10px; padding: 8px 0; }
.rail-rank .rail-name { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rail-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
}
.rail-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-icon-txt { font-size: 14px; font-weight: 700; color: var(--text-3); }
.rail-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rail-name {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.rail-name:hover { color: var(--brand); }
.rail-meta { font-size: 11.5px; color: var(--text-3); }

.rail-more {
  font-size: 12px; color: var(--text-3); white-space: nowrap;
  transition: color .12s;
}
.rail-more:hover { color: var(--brand); }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ═════════════ 排行榜页（对齐 sj.qq.com 卡片规格） ═════════════ */
/* 卡片 344px / 3 列 / 88px 高 / 56px 图标 / 14px 标题 / 32px 按钮 */

.yyb-head { padding: 20px 0 14px; }
.yyb-head h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.yyb-head p { font-size: 13px; color: var(--text-3); margin: 0; }

.yyb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
/* 上面已经有幻灯片时不需要额外上边距 */
.page-slider-slot ~ .yyb-bar { margin-top: 0; }
.yyb-segbox {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-2, #f5f6f8); border-radius: 10px;
}
.yyb-seg {
  padding: 6px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: all .14s; white-space: nowrap;
}
.yyb-seg:hover { color: var(--brand); }
.yyb-seg.is-on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.yyb-cats { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.yyb-cats::-webkit-scrollbar { display: none; }
.yyb-cat {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 5px 13px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2);
  white-space: nowrap; transition: all .14s;
}
.yyb-cat i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.yyb-cat:hover { border-color: var(--brand); color: var(--brand); }
.yyb-cat.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.yyb-cat.is-on i { color: rgba(255,255,255,.75); }

/* ── 卡片列表：3 列，每张 88px 高 ── */
.yyb-list {
  display: flex; flex-wrap: wrap;
  gap: 0 24px;
}
.yyb-card {
  position: relative;
  display: flex; align-items: center;
  width: calc((100% - 48px) / 3);
  height: 88px; padding: 8px;
  border-radius: 8px;
  transition: background .14s;
}
.yyb-card:hover { background: rgba(0, 0, 0, .03); }

/* 名次：压在图标左上角 */
.yyb-rank {
  position: absolute; left: 2px; top: 6px; z-index: 1;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(0, 0, 0, .28);
  font-variant-numeric: tabular-nums;
}
.yyb-rank.r1 { background: #ff5a5a; }
.yyb-rank.r2 { background: #ff8f3c; }
.yyb-rank.r3 { background: #ffb020; }

.yyb-icon {
  flex: 0 0 auto; width: 56px; height: 56px;
  border-radius: 24%; overflow: hidden;
  border: .5px solid rgba(0, 0, 0, .1);
  background: linear-gradient(140deg, #7fb6ff, #2e7cf0);
  color: #fff; font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
}
/* 和软件列表同一套彩色底：按 slug 取色，避免全部清一色蓝 */
.yyb-icon.s2 { background: linear-gradient(140deg, #ffb06b, #ff7a45); }
.yyb-icon.s3 { background: linear-gradient(140deg, #8ee08b, #43b04a); }
.yyb-icon.s4 { background: linear-gradient(140deg, #c39bff, #7b5cf0); }
.yyb-icon.s5 { background: linear-gradient(140deg, #7fd8f5, #1f9bd1); }
.yyb-icon.s6 { background: linear-gradient(140deg, #ffd166, #f0a500); }
.yyb-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.yyb-detail {
  flex: 1; width: 0; min-width: 0;
  margin-left: 8px; margin-right: 12px;
  display: flex; flex-direction: column; justify-content: center;
}
.yyb-name {
  display: block;
  font-size: 14px; line-height: 22px; font-weight: 500;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yyb-card:hover .yyb-name { color: var(--brand); }
.yyb-tag {
  display: block; margin-top: 1px;
  font-size: 12px; line-height: 16px; color: rgba(0, 0, 0, .45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yyb-star { display: flex; align-items: center; margin-top: 3px; height: 16px; }
.yyb-star-icon {
  width: 14px; height: 14px; margin-right: 4px; flex: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffb020' d='M12 2.6l2.9 6 6.6.9-4.8 4.6 1.2 6.5-5.9-3.1-5.9 3.1 1.2-6.5L2.5 9.5l6.6-.9z'/></svg>") no-repeat center/contain;
}
.yyb-star-num { font-size: 12px; line-height: 16px; color: rgba(0, 0, 0, .5); }
.yyb-unit { font-style: normal; margin-left: 4px; font-size: 11px; color: rgba(0, 0, 0, .35); }
.yyb-dl-icon {
  width: 14px; height: 14px; margin-right: 4px; flex: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 3.5v11M7.5 10.5 12 15l4.5-4.5M4.5 20.5h15'/></svg>") no-repeat center/contain;
}

.yyb-act { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.yyb-d { font-style: normal; font-size: 10px; font-weight: 700; margin-left: 5px; vertical-align: 1px; }
.yyb-d.up { color: #e5534b; }
.yyb-d.down { color: #2dbd7a; }
.yyb-d.new { color: var(--brand); }

/* 下载按钮：32px 高 / 20px 圆角 / 淡底蓝字，hover 变实心 */
.yyb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 32px; padding: 0 14px;
  border-radius: 16px;
  font-size: 13px; font-weight: 500;
  color: var(--brand); background: rgba(0, 128, 255, .08);
  border: 1px solid transparent;
  transition: all .14s;
}
.yyb-card:hover .yyb-btn { background: var(--brand); color: #fff; }
.yyb-card.is-top .yyb-btn { background: var(--brand); color: #fff; }
.yyb-card.is-top:hover .yyb-btn { background: #1d4ed8; }

.yyb-empty { width: 100%; padding: 60px; text-align: center; color: var(--text-3); }

.yyb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 12px; }
.yyb-pg {
  padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  transition: all .14s;
}
.yyb-pg:hover { border-color: var(--brand); color: var(--brand); }
.yyb-pg.is-off { opacity: .35; }
.yyb-pg-info { font-size: 12.5px; color: var(--text-3); }

/* 中等屏：2 列 */
@media (max-width: 1080px) {
  .yyb-card { width: calc((100% - 24px) / 2); }
}
/* 小屏：单列，卡片改成自适应宽度 */
@media (max-width: 680px) {
  .yyb-card { width: 100%; }
  .yyb-head h1 { font-size: 22px; }
  .yyb-seg { padding: 5px 12px; font-size: 12.5px; }
}
}
}

/* 幻灯片空态 */
.sl-empty {
  padding: 40px; text-align: center; font-size: 13px; color: var(--text-3);
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: #fff;
}

/* 页面槽位幻灯片与前一段内容的间距 */
.page-slider-slot { margin-bottom: 22px; }

/* 视觉隐藏但保留给搜索引擎与读屏 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ═════════════ 前台 DIY 可视化编辑 ═════════════ */

body.diy-on { padding-bottom: 76px; }
body.diy-on .home-rail, body.diy-on .diy-fab { display: none; }

/* 右下角浮动按钮 */
.diy-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px 0 14px; border-radius: 23px;
  border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #2e7cf0, #7b5cf0);
  box-shadow: 0 8px 24px rgba(46, 124, 240, .38);
  font-size: 14px; font-weight: 600;
  transition: transform .16s, box-shadow .16s;
}
.diy-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 124, 240, .46); }
.diy-fab-ic { font-size: 15px; }

/* 底部状态条 */
.diy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  height: 60px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(20, 24, 33, .96); color: #fff;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.diy-bar-left { display: flex; align-items: center; gap: 10px; }
.diy-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dbd7a; box-shadow: 0 0 0 3px rgba(45,189,122,.25); }
.diy-bar-hint { font-size: 12.5px; color: rgba(255,255,255,.6); }
.diy-bar-right { display: flex; gap: 8px; }
.diy-bar .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: transparent; }
.diy-bar .btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* 左侧组件库抽屉 */
.diy-drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 940;
  width: 330px; display: flex; flex-direction: column;
  background: #141821; color: #fff;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 8px 0 32px rgba(0,0,0,.28);
  animation: diySlide .22s ease-out;
}
@keyframes diySlide { from { transform: translateX(-100%); } to { transform: none; } }
body.diy-on .navbar, body.diy-on .container, body.diy-on main, body.diy-on #view {
  margin-left: 330px;
}
body.diy-on .navbar-inner { paddiing-left: 0; }

.diy-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.diy-drawer-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.diy-close {
  width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff; font-size: 13px;
}
.diy-close:hover { background: rgba(255,255,255,.16); }
.diy-drawer-tip { padding: 10px 18px; font-size: 11.5px; color: rgba(255,255,255,.5); line-height: 1.6; }

.diy-lib { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 20px; }
.diy-lib-group {
  padding: 12px 6px 6px; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.4); letter-spacing: .04em;
}
.diy-lib-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; cursor: grab;
  background: rgba(255,255,255,.04); margin-bottom: 5px;
  border: 1px solid transparent; transition: all .14s;
}
.diy-lib-item:hover { background: rgba(255,255,255,.09); border-color: rgba(120,170,255,.4); }
.diy-lib-item:active { cursor: grabbing; }
.diy-lib-ic {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(120,170,255,.16); color: #8ab4ff;
}
.diy-lib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.diy-lib-name { font-size: 12.5px; font-weight: 600; }
.diy-lib-hint { font-size: 10.5px; color: rgba(255,255,255,.42); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diy-lib-add { flex: none; font-size: 15px; color: rgba(255,255,255,.35); }
.diy-lib-item:hover .diy-lib-add { color: #8ab4ff; }

/* 画布 */
.diy-tip {
  padding: 12px 16px; margin-bottom: 14px; border-radius: 10px;
  background: rgba(37, 99, 235, .07); border: 1px dashed rgba(37,99,235,.35);
  font-size: 12.5px; color: var(--brand);
}
.diy-canvas { display: flex; flex-direction: column; }

.diy-drop {
  height: 12px; margin: 3px 0; border-radius: 6px;
  border: 1px dashed transparent; transition: all .14s;
  display: grid; place-items: center;
}
.diy-drop-text { font-size: 11px; color: transparent; }
.diy-drop.over {
  height: 54px; border-color: var(--brand);
  background: rgba(37,99,235,.07);
}
.diy-drop.over .diy-drop-text { color: var(--brand); }

.diy-block {
  position: relative; border-radius: 14px;
  border: 1px solid var(--line); background: #fff;
  transition: box-shadow .14s, border-color .14s;
  overflow: hidden;
}
.diy-block:hover { border-color: rgba(37,99,235,.45); box-shadow: 0 6px 22px rgba(37,99,235,.1); }
.diy-block.dragging { opacity: .45; }
.diy-block.is-off { opacity: .5; }
.diy-block.is-off .diy-body { filter: grayscale(1); }

.diy-tools {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-bottom: 1px solid var(--line);
  background: var(--surface-2, #f7f8fa);
}
.diy-grip { cursor: grab; color: var(--text-3); font-size: 12px; letter-spacing: -1px; }
.diy-grip:active { cursor: grabbing; }
.diy-block-name { font-size: 12.5px; font-weight: 650; color: var(--text); }
.diy-block-hint { font-size: 11px; color: var(--text-3); }
.diy-spacer { flex: 1; }
.diy-tool {
  width: 26px; height: 26px; border-radius: 7px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3); font-size: 12px;
  display: grid; place-items: center; transition: all .12s;
}
.diy-tool:hover { background: rgba(37,99,235,.1); color: var(--brand); }
.diy-tool.is-on { color: #2dbd7a; }
.diy-tool.danger:hover { background: rgba(229,83,75,.12); color: #e5534b; }

.diy-body {
  padding: 14px 16px; pointer-events: none;
  max-height: 420px; overflow: hidden; position: relative;
}
.diy-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(transparent, #fff);
}
.diy-ph { padding: 30px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* ═════════════ 新区块样式 ═════════════ */

/* 数字排行 */
.rn-grid { display: grid; gap: 10px; }
.rn-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  transition: all .14s; color: inherit;
}
.rn-item:hover { border-color: var(--brand); transform: translateY(-1px); color: inherit; }
.rn-no {
  flex: none; width: 22px; text-align: center;
  font-size: 15px; font-weight: 800; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.rn-no.top { color: var(--brand); }
.rn-item .app-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
.rn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rn-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-meta { font-size: 11px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-count { flex: none; font-size: 12px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }

/* 紧凑列表 */
.cl-grid { display: grid; gap: 4px 22px; }
.cl-col { display: flex; flex-direction: column; }
.cl-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 4px; border-bottom: 1px dashed var(--line);
  color: var(--text); font-size: 13px;
}
.cl-item:hover { color: var(--brand); }
.cl-dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: .5; }
.cl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-arrow { flex: none; color: var(--text-3); }

/* 时间线 */
.tl-list { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 12px 96px minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  color: inherit; font-size: 12.5px;
}
.tl-item:last-child { border-bottom: 0; }
.tl-item:hover { color: var(--brand); }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.tl-date { color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-desc { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-softer, #f2f8ff); color: var(--brand);
  font-size: 13px; border: 1px solid transparent; transition: all .14s;
}
.tag-cloud-item:hover { background: var(--brand); color: #fff; }
.tag-cloud-item i { font-style: normal; font-size: 11px; opacity: .7; }

/* 数据统计 */
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.st-item {
  padding: 16px; border-radius: 12px; text-align: center;
  background: linear-gradient(160deg, #f7faff, #f2f6fd);
  border: 1px solid var(--line);
}
.st-value { font-size: 24px; font-weight: 800; color: var(--brand); line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-value i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.st-label { margin-top: 4px; font-size: 12px; color: var(--text-3); }

/* 快捷入口 */
.ql-grid { display: grid; gap: 12px; }
.ql-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  color: var(--text); transition: all .16s;
}
.ql-item:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--brand); box-shadow: 0 8px 20px rgba(0,128,255,.1); }
.ql-ic { font-size: 24px; }
.ql-label { font-size: 13px; font-weight: 600; }

/* 公告条 */
.notice-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  background: linear-gradient(90deg, #fff7e8, #fffaf0);
  border: 1px solid #ffe3b0;
}
.notice-ic { flex: none; font-size: 15px; }
.notice-marquee { flex: 1; overflow: hidden; }
.notice-text { font-size: 13px; color: #8a5a00; white-space: nowrap; }
.notice-more { flex: none; font-size: 12.5px; color: #b87b00; font-weight: 600; }

/* 入口横幅 */
.entry-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(120deg, #eef5ff, #f7f0ff);
  border: 1px solid var(--line); color: inherit;
  transition: all .16s;
}
.entry-banner:hover { border-color: var(--brand); transform: translateY(-1px); color: inherit; }
.entry-text h3 { margin: 0 0 5px; font-size: 19px; font-weight: 700; }
.entry-text p { margin: 0; font-size: 13px; color: var(--text-3); }
.entry-go {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 21px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
}

/* 折叠问答 */
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-item { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 0; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text); text-align: left;
}
.acc-head:hover { color: var(--brand); }
.acc-caret { flex: none; font-size: 16px; color: var(--text-3); }
.acc-body { display: none; padding: 0 16px 14px; }
.acc-item.is-open .acc-body { display: block; }
.acc-body p { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
.acc-link { font-size: 12.5px; color: var(--brand); font-weight: 600; }

@media (max-width: 900px) {
  .diy-drawer { width: 280px; }
  body.diy-on .page, body.diy-on main, body.diy-on .container { margin-left: 0; }
  .rn-grid, .cl-grid, .ql-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .tl-item { grid-template-columns: 12px 1fr; }
  .tl-desc, .tl-date { display: none; }
}

/* ═════════════ 更多组件样式 ═════════════ */

/* 编辑推荐 */
.ft-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.ft-lead {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border-radius: 16px; color: inherit;
  background: linear-gradient(140deg, #eef5ff, #f8f2ff);
  border: 1px solid var(--line); transition: all .16s;
}
.ft-lead:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.ft-lead .app-icon { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }
.ft-lead-name { font-size: 19px; font-weight: 700; }
.ft-lead-desc {
  font-size: 13px; color: var(--text-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ft-lead-meta { font-size: 12px; color: var(--brand); font-weight: 600; }
.ft-lead-btn {
  align-self: flex-start; margin-top: auto; padding: 9px 20px; border-radius: 20px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
}
.ft-list { display: grid; gap: 10px; align-content: start; }
.ft-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: inherit; transition: all .14s;
}
.ft-item:hover { border-color: var(--brand); color: inherit; transform: translateX(2px); }
.ft-item .app-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.ft-item-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ft-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-item .app-icon { flex: none; }
.ft-item-desc { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 三联推荐 */
.tu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tu-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 24px 22px; border-radius: 18px; color: #fff;
  transition: transform .16s, box-shadow .16s;
}
.tu-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.14); color: #fff; }
.tu-1 { background: linear-gradient(135deg, #2e7cf0, #6a5cff); }
.tu-2 { background: linear-gradient(135deg, #ff7a45, #f0407a); }
.tu-3 { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.tu-icon { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.tu-icon img { width: 100%; height: 100%; object-fit: cover; }
.tu-name { font-size: 17px; font-weight: 700; }
.tu-desc { font-size: 12.5px; opacity: .85; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tu-go { margin-top: 6px; font-size: 12.5px; font-weight: 600; opacity: .9; }

/* 价格榜 */
.pl-grid { display: grid; gap: 10px; }
.pl-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); color: inherit;
}
.pl-item:hover { border-color: var(--brand); color: inherit; }
.pl-item .app-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.pl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-desc { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-price {
  flex: none; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: #fff3e6; color: #d97706;
}
.pl-price.is-free { background: #e8f8ef; color: #0f9d58; }

/* 新品首发 */
.nb-grid { display: grid; gap: 14px; }
.nb-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 14px 18px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); color: inherit; text-align: center; transition: all .16s;
}
.nb-item:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; box-shadow: 0 10px 24px rgba(0,128,255,.1); }
.nb-tag {
  position: absolute; left: 10px; top: 10px;
  padding: 1px 7px; border-radius: 5px; font-size: 10px; font-weight: 800;
  background: linear-gradient(135deg, #ff6b6b, #f0407a); color: #fff; letter-spacing: .04em;
}
.nb-item .app-icon { width: 58px; height: 58px; border-radius: 15px; font-size: 24px; }
.nb-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.nb-desc { font-size: 11.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 标题分隔 */
.dv-wrap { display: flex; align-items: center; gap: 18px; padding: 6px 0; }
.dv-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2, #e3e8ef), transparent); }
.dv-text { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.dv-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.dv-sub { font-size: 12px; color: var(--text-3); }

/* 关注条 */
.sb-wrap {
  display: flex; align-items: center; gap: 14px; padding: 20px 24px;
  border-radius: 16px; background: linear-gradient(120deg, #f0f7ff, #eef2ff);
  border: 1px solid var(--line);
}
.sb-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: #fff; color: var(--brand); }
.sb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sb-text strong { font-size: 15px; font-weight: 700; }
.sb-text span { font-size: 12.5px; color: var(--text-3); }
.sb-btn { flex: none; padding: 9px 20px; border-radius: 20px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }

/* ═════════════ 卡片样式变体 ═════════════ */
.app-grid.is-compact { gap: 10px; }
.app-grid.is-compact .app-card { padding: 12px; }
.app-grid.is-compact .app-card-desc { font-size: 12px; -webkit-line-clamp: 1; }

.gs-row { display: flex; flex-direction: column; gap: 8px; }
.gs-row-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); color: inherit;
}
.gs-row-item:hover { border-color: var(--brand); color: inherit; }
.gs-row-item .app-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
.gs-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-row-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-row-desc { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-row-btn { flex: none; padding: 6px 14px; border-radius: 16px; background: var(--brand-softer, #f2f8ff); color: var(--brand); font-size: 12.5px; font-weight: 600; }

.gs-min { display: grid; gap: 4px 20px; }
.gs-min-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 4px;
  border-bottom: 1px dashed var(--line); color: var(--text); font-size: 13px;
}
.gs-min-item:hover { color: var(--brand); }
.gs-min-dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: .5; }
.gs-min-item > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-min-v { flex: none; font-size: 11.5px; color: var(--text-3); }

.gs-cover { display: grid; gap: 14px; }
.gs-cover-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); color: inherit; transition: all .16s;
}
.gs-cover-item:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.gs-cover-icon { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; }
.gs-cover-icon img { width: 100%; height: 100%; object-fit: cover; }
.gs-cover-name { font-size: 13.5px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gs-cover-cat { font-size: 11.5px; color: var(--text-3); }

.gs-price { display: grid; gap: 12px; }
.gs-price-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); color: inherit; transition: all .16s;
}
.gs-price-item:hover { border-color: var(--brand); color: inherit; }
.gs-price-item .app-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; }
.gs-price-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gs-price-tag { padding: 2px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: #fff3e6; color: #d97706; }
.gs-price-tag.is-free { background: #e8f8ef; color: #0f9d58; }

/* ═════════════ 内容编辑器 ═════════════ */
.ce-mode { display: flex; gap: 10px; margin: 12px 0 16px; }
.ce-mode-item {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2);
}
.ce-mode-item input { margin-right: 6px; }
.ce-mode-top { display: flex; align-items: center; gap: 7px; }
.ce-mode-top b { font-size: 13px; font-weight: 600; }
.ce-mode-item i { font-style: normal; font-size: 11px; color: var(--text-3); }
.ce-mode-item { align-items: flex-start; }
.ce-mode-item input[type=radio] { accent-color: var(--brand); }

.ce-search { display: flex; gap: 8px; margin-bottom: 10px; }
.ce-results { display: flex; flex-direction: column; gap: 3px; max-height: 200px; overflow-y: auto; margin-bottom: 12px; }
.ce-res {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px;
  border: 0; border-radius: 8px; background: var(--surface-2); cursor: pointer; text-align: left;
}
.ce-res:hover:not(:disabled) { background: var(--brand-soft); }
.ce-res.is-added { opacity: .55; cursor: default; }
.ce-icon { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; flex: none; overflow: hidden; }
.ce-icon img { width: 100%; height: 100%; object-fit: cover; }
.ce-res-name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-res-add { font-size: 11.5px; color: var(--brand); font-weight: 600; }
.ce-hint { font-size: 12px; color: var(--text-3); padding: 8px; }

.ce-list-title { font-size: 11.5px; color: var(--text-3); margin: 6px 0 8px; }
.ce-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.ce-empty { padding: 18px; text-align: center; font-size: 12px; color: var(--text-3); }
.ce-row {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px;
  border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border);
}
.ce-no { flex: none; width: 18px; text-align: center; font-size: 12px; font-weight: 700; color: var(--brand); padding-top: 6px; }
.ce-fields { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ce-line { display: flex; align-items: center; gap: 7px; }
.ce-k { flex: none; width: 32px; font-size: 11px; color: var(--text-3); text-align: right; }
.ce-fields .input { height: 28px; font-size: 12.5px; flex: 1; min-width: 0; width: auto; }
.ce-line { min-width: 0; }
.le-row .input { min-width: 0; }
.ce-tools { flex: none; display: flex; flex-direction: column; gap: 2px; }
.ce-tool {
  width: 24px; height: 24px; border-radius: 6px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3); font-size: 12px;
}
.ce-tool:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand); }
.ce-tool.danger:hover:not(:disabled) { background: rgba(229,83,75,.12); color: #e5534b; }
.ce-tool:disabled { opacity: .3; cursor: default; }

/* 快捷入口编辑器 */
.le-head { display: grid; grid-template-columns: 60px 1fr 1.2fr 90px; gap: 8px; font-size: 11px; color: var(--text-3); padding: 0 4px 6px; }
.le-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; max-height: 300px; overflow-y: auto; }
.le-row { display: grid; grid-template-columns: 60px 1fr 1.2fr 90px; gap: 8px; align-items: center; }
.le-row .ce-tool { display: inline-grid; place-items: center; }
.le-row { grid-template-columns: 60px 1fr 1.2fr auto auto auto; }
.le-ic { text-align: center; }

@media (max-width: 900px) {
  .ft-wrap { grid-template-columns: 1fr; }
  .tu-grid { grid-template-columns: 1fr; }
  .ce-mode { flex-direction: column; }
}

/* ═════════════ 软件属性行 ═════════════ */

.ac-meta {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3); line-height: 1.6;
}
.ac-item { white-space: nowrap; }
.ac-sep {
  width: 1px; height: 11px; margin: 0 9px;
  background: var(--line-2, #e3e8ef); flex: none;
}
.ac-version { color: var(--text-2); font-weight: 500; }
.ac-price { color: #d97706; font-weight: 600; }
.ac-rating { color: #f0a500; font-weight: 600; }
.ac-downloads, .ac-views { color: var(--brand); }

/* 卡片里的属性行：上分隔线 + 左右分布 */
.ac-meta-card {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}
.ac-meta-card .ac-item { font-size: 12px; }

.gs-row-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.gs-row-meta .ac-sep { margin: 0 7px; height: 10px; }
.gs-cover-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.gs-cover-meta .ac-sep { margin: 0 6px; height: 10px; }
.nb-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.nb-meta .ac-sep { margin: 0 7px; height: 10px; }
.nb-item { justify-content: flex-start; }

/* 设置面板里的胶囊多选 */
.ac-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.ac-chip {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; color: var(--text-2); transition: all .14s;
}
.ac-chip:hover { border-color: var(--brand-line); color: var(--brand); }
.ac-chip.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.ac-hint { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* ═════════════ 拖动时其他区块收起 ═════════════ */
.diy-canvas.is-sorting .diy-block:not(.dragging) .diy-body {
  max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden;
  opacity: 0; transition: max-height .16s, padding .16s, opacity .12s;
}
.diy-canvas.is-sorting .diy-block:not(.dragging) {
  border-style: dashed;
}
.diy-canvas.is-sorting .diy-block:not(.dragging) .diy-tools {
  border-bottom: 0; background: transparent;
}
.diy-canvas.is-sorting .diy-drop.over {
  height: 72px;
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.diy-canvas.is-sorting .diy-block.dragging {
  box-shadow: 0 14px 36px rgba(37,99,235,.28);
  border: 1px solid var(--brand);
  transform: scale(1.01);
}
/* 被拖的那块也只留标题条，保证全部收起 */
.diy-canvas.is-sorting .diy-block.dragging .diy-body {
  max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden;
}
.diy-canvas.is-sorting .diy-block.dragging .diy-tools {
  border-bottom: 0;
  background: var(--brand-soft);
}

/* ═════════════ 幻灯片新样式 ═════════════ */

/* 缩略图导航：底部一排图 */
.sl-style-thumb .sl-dots {
  display: flex; gap: 8px; bottom: 14px; left: 50%; transform: translateX(-50%);
  padding: 6px 8px; border-radius: 12px;
  background: rgba(15, 23, 42, .5); backdrop-filter: blur(8px);
  width: auto;
}
.sl-style-thumb .sl-dot {
  width: 46px; height: 30px; border-radius: 7px; background-size: cover; background-position: center;
  background-color: rgba(255,255,255,.3); opacity: .55; transition: all .18s;
}
.sl-style-thumb .sl-dot.is-active { width: 62px; opacity: 1; box-shadow: 0 0 0 2px #fff; }
.sl-style-thumb .sl-title { font-size: clamp(18px, 2.2vw, 30px); }
.sl-style-thumb .sl-text { max-width: 62%; }

/* 胶片条：右侧竖排 */
.sl-style-film .sl-art { display: none; }
.sl-style-film .sl-slide-inner { justify-content: flex-start; }
.sl-style-film .sl-text { max-width: 70%; }
.sl-style-film .sl-dots {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  flex-direction: column; gap: 7px; width: auto; left: auto; bottom: auto;
}
.sl-style-film .sl-dot { width: 9px; height: 9px; border-radius: 3px; background: rgba(255,255,255,.5); }
.sl-style-film .sl-dot.is-active { height: 22px; background: #fff; }
.sl-style-film .sl-title { font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }

/* 超大标题 */
.sl-style-bigtext .sl-slide-inner { justify-content: center; text-align: center; }
.sl-style-bigtext .sl-art { display: none; }
.sl-style-bigtext .sl-text { max-width: 90%; }
.sl-style-bigtext .sl-title {
  font-size: clamp(30px, 4.4vw, 60px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15;
}
.sl-style-bigtext .sl-sub { font-size: clamp(13px, 1.2vw, 17px); opacity: .75; margin-top: 14px; }
.sl-style-bigtext .sl-cta { margin-top: 20px; }
.sl-style-bigtext .sl-dots { bottom: 16px; }

/* 左图右文 */
.sl-style-splitrev .sl-slide-inner { flex-direction: row-reverse; }
.sl-style-splitrev .sl-text { text-align: left; }
.sl-style-splitrev .sl-art { order: -1; }

/* ═════════════ 幻灯片前台编辑器 ═════════════ */
.sle-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sle-tab {
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 12px; color: var(--text-2);
}
.sle-tab.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.sle-body { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,1fr); gap: 16px; }
.sle-preview {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  background: #f7f8fa; position: relative;
}
.sle-preview-inner { padding: 22px 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.sle-preview-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.sle-preview-sub { font-size: 13px; opacity: .8; margin-top: 8px; }
.sle-preview-btn { align-self: flex-start; margin-top: 14px; padding: 7px 18px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; }
.sle-preview-img { width: 100%; max-height: 180px; object-fit: cover; display: block; }
.sle-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sle-shot {
  position: relative; width: 88px; height: 54px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2) center/cover no-repeat; cursor: pointer;
}
.sle-shot.is-on { box-shadow: 0 0 0 2px var(--brand); }
.sle-shot-del {
  position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 5px;
  border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; cursor: pointer;
  display: grid; place-items: center;
}
.sle-shot-add {
  width: 88px; height: 54px; border-radius: 8px; border: 1px dashed var(--border-strong);
  background: var(--surface-2); cursor: pointer; font-size: 16px; color: var(--text-3);
  display: grid; place-items: center;
}
.sle-shot-add:hover { border-color: var(--brand); color: var(--brand); }
.sle-field { margin-bottom: 9px; }
.sle-field label { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.sle-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sle-color { display: flex; gap: 5px; align-items: center; }
.sle-color input[type=color] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: none; cursor: pointer; }
.sle-color .input { min-width: 0; height: 28px; font-size: 11.5px; }
@media (max-width: 860px) { .sle-body { grid-template-columns: 1fr; } }

/* ═════════════ 多图组件 ═════════════ */
.gl-empty {
  display: grid; place-items: center; gap: 10px; padding: 40px;
  border: 1px dashed var(--line-2, #e3e8ef); border-radius: 14px;
  background: var(--surface-2); font-size: 13px; color: var(--text-3);
}
.gl-grid { display: grid; gap: 12px; }
.gl-item {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); aspect-ratio: 16 / 10;
  transition: transform .16s, box-shadow .16s;
}
.gl-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.gl-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gl-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
}

.b3-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.b3-card {
  position: relative; min-height: 150px; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; color: #fff;
  transition: transform .16s, box-shadow .16s;
}
.b3-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.18); color: #fff; }
.b3-1 { background-image: linear-gradient(135deg, #2e7cf0, #6a5cff); }
.b3-2 { background-image: linear-gradient(135deg, #ff7a45, #f0407a); }
.b3-3 { background-image: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.b3-mask { position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.66)); }
.b3-text { position: relative; z-index: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.b3-title { font-size: 17px; font-weight: 700; }
.b3-desc { font-size: 12.5px; opacity: .85; }

.sc-list { display: flex; flex-direction: column; gap: 26px; }
.sc-row {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 26px; align-items: center;
}
.sc-row.is-rev { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); }
.sc-row.is-rev .sc-img { order: 2; }
.sc-img {
  aspect-ratio: 16 / 10; border-radius: 16px; background: var(--surface-2) center/cover no-repeat;
  border: 1px solid var(--line);
}
.sc-text h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.sc-text p { margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--text-3); }
.sc-link { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand); }

/* 图片编辑器 */
.gle-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.gle-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
}
.gle-no { flex: none; width: 18px; text-align: center; font-size: 12px; font-weight: 700; color: var(--brand); padding-top: 16px; }
.gle-shot {
  flex: none; width: 92px; height: 58px; border-radius: 8px; cursor: pointer;
  background: var(--surface-3) center/cover no-repeat; border: 1px solid var(--border);
}
.gle-shot:hover { box-shadow: 0 0 0 2px var(--brand-soft); }
.gle-shot.is-empty { border-style: dashed; }
.gle-shot-plus {
  display: grid; place-items: center; height: 100%;
  font-size: 18px; color: var(--text-3);
}
.gle-fields { flex: 1; min-width: 0; display: grid; gap: 5px; }
.gle-fields .input { height: 28px; font-size: 12.5px; }
.modal.is-drop { box-shadow: 0 0 0 3px var(--brand), 0 24px 60px rgba(0,0,0,.2); }

/* ═════════════ 幻灯片编辑器（重排） ═════════════ */
.sle-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.sle-head h2 { margin: 0; font-size: 18px; font-weight: 700; }

.sle-previewbar { display: grid; gap: 12px; margin-bottom: 16px; }
.sle-previewframe {
  border-radius: 14px; padding: 10px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.sle-preview {
  border-radius: 10px; overflow: hidden; background: #fff;
  min-height: 190px; display: flex; align-items: center;
  box-shadow: 0 4px 16px rgba(16,24,40,.08);
}
.sle-preview-inner { width: 100%; }
.sle-shotbar { display: flex; align-items: center; gap: 12px; }
.sle-shotbar-label { flex: none; font-size: 11.5px; color: var(--text-3); }

.sle-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; }
.sle-section-title { font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 9px; }

.sle-stylegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sle-style {
  padding: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden;
  background: var(--surface); cursor: pointer; text-align: center; transition: all .14s;
}
.sle-style:hover { border-color: var(--brand-line); }
.sle-style.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.sle-style-demo {
  display: block; height: 40px; position: relative; overflow: hidden; background: #eef3fb;
}
.sle-style-demo i { position: absolute; background: #a9c3e0; border-radius: 2px; }
.sle-style-name {
  display: block; padding: 5px 2px; font-size: 10.5px; color: var(--text-2);
  border-top: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sle-style.is-on .sle-style-name { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.sle-stylehint { margin-top: 8px; font-size: 11px; color: var(--text-3); line-height: 1.6; min-height: 18px; }

/* 九种示意 */
.sle-demo-split .d1 { left: 5px; top: 9px; width: 46%; height: 5px; background: #7d9dc7; }
.sle-demo-split .d2 { left: 5px; top: 19px; width: 34%; height: 3px; }
.sle-demo-split .d3 { right: 5px; top: 8px; width: 38%; height: 24px; background: #cddcf0; }

.sle-demo-overlay { background: linear-gradient(120deg, #9fb6d4, #6f8bb3); }
.sle-demo-overlay .d1 { left: 16%; top: 12px; width: 68%; height: 5px; background: #fff; }
.sle-demo-overlay .d2 { left: 26%; top: 21px; width: 48%; height: 3px; background: rgba(255,255,255,.7); }
.sle-demo-overlay .d3 { display: none; }

.sle-demo-center .d1 { left: 22%; top: 13px; width: 56%; height: 5px; background: #7d9dc7; }
.sle-demo-center .d2 { left: 32%; top: 22px; width: 36%; height: 3px; }
.sle-demo-center .d3 { left: 40%; top: 29px; width: 20%; height: 6px; background: #cddcf0; }

.sle-demo-cards { background: #f4f7fb; }
.sle-demo-cards .d1 { left: 8px; top: 11px; width: 22%; height: 18px; background: #cddcf0; border-radius: 3px; }
.sle-demo-cards .d2 { left: 39%; top: 9px; width: 22%; height: 22px; background: #9fb9d9; border-radius: 3px; }
.sle-demo-cards .d3 { right: 8px; top: 11px; width: 22%; height: 18px; background: #cddcf0; border-radius: 3px; }

.sle-demo-minimal { background: #fff; }
.sle-demo-minimal .d1 { left: 26%; top: 15px; width: 48%; height: 4px; background: #9aa9bd; }
.sle-demo-minimal .d2 { left: 34%; top: 23px; width: 32%; height: 3px; }
.sle-demo-minimal .d3 { display: none; }

.sle-demo-thumb { background: linear-gradient(120deg, #dfe9f7, #c9d9ef); }
.sle-demo-thumb .d1 { left: 8px; top: 9px; width: 50%; height: 5px; background: #6f8fb8; }
.sle-demo-thumb .d2 { left: 8px; top: 18px; width: 34%; height: 3px; }
.sle-demo-thumb .d3 { left: 16%; right: 16%; bottom: 5px; height: 9px; background: rgba(255,255,255,.75); border-radius: 3px; }

.sle-demo-film .d1 { left: 10px; top: 10px; width: 56%; height: 5px; background: #6f8fb8; }
.sle-demo-film .d2 { left: 10px; top: 20px; width: 40%; height: 3px; }
.sle-demo-film .d3 { right: 8px; top: 10px; width: 5px; height: 20px; background: #9fb9d9; border-radius: 3px; }

.sle-demo-bigtext .d1 { left: 8%; top: 14px; width: 84%; height: 9px; background: #6f8fb8; border-radius: 2px; }
.sle-demo-bigtext .d2 { left: 24%; top: 27px; width: 52%; height: 3px; }
.sle-demo-bigtext .d3 { display: none; }

.sle-demo-splitrev .d1 { right: 5px; top: 9px; width: 46%; height: 5px; background: #7d9dc7; }
.sle-demo-splitrev .d2 { right: 5px; top: 19px; width: 34%; height: 3px; }
.sle-demo-splitrev .d3 { left: 5px; top: 8px; width: 38%; height: 24px; background: #cddcf0; }

.sle-foot {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.sle-foot-item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); }
.sle-foot-item .input { width: 84px; height: 30px; font-size: 12.5px; }
.sle-foot-item i { font-style: normal; }

@media (max-width: 860px) {
  .sle-cols { grid-template-columns: 1fr; }
  .sle-stylegrid { grid-template-columns: repeat(3, 1fr); }
}

/* ═════════════ 5 种新卡片样式 ═════════════ */

/* ① 首图放大 hero */
.gs-hero { display: grid; gap: 14px; }
.gs-hero-lead {
  position: relative; display: flex; align-items: flex-end; min-height: 200px;
  border-radius: 18px; overflow: hidden; color: #fff;
  transition: transform .16s, box-shadow .16s;
}
.gs-hero-lead:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.18); color: #fff; }
.gs-hero-bg {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #2e7cf0, #7b5cf0);
}
.gs-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.gs-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(8, 14, 28, .82));
}
.gs-hero-body { position: relative; z-index: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 7px; }
.gs-hero-badge {
  align-self: flex-start; padding: 2px 9px; border-radius: 6px;
  background: rgba(255,255,255,.22); font-size: 11px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.gs-hero-name { font-size: 22px; font-weight: 700; }
.gs-hero-desc { font-size: 13px; opacity: .82; line-height: 1.7; max-width: 560px; }
.gs-hero-meta { color: rgba(255,255,255,.75); font-size: 12px; }
.gs-hero-meta .ac-sep { background: rgba(255,255,255,.35); }
.gs-hero-rest { display: grid; gap: 10px; }
.gs-hero-item {
  display: flex; flex-direction: column; gap: 7px; padding: 14px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); color: inherit;
  transition: all .14s;
}
.gs-hero-item:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; }
.gs-hero-item .app-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
.gs-hero-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-hero-item-meta { font-size: 11.5px; color: var(--text-3); }

/* ② 瀑布流 mosaic */
.gs-mosaic { display: grid; gap: 12px; grid-auto-rows: 118px; }
.gs-mos-item {
  position: relative; display: flex; align-items: flex-end; gap: 10px;
  padding: 14px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); color: inherit;
  transition: all .16s;
}
.gs-mos-item:hover { border-color: var(--brand); color: inherit; box-shadow: 0 10px 24px rgba(0,128,255,.1); }
.gs-mos-item.is-big { grid-column: span 2; grid-row: span 2; }
.gs-mos-icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: .14; font-size: 64px; font-weight: 800;
}
.gs-mos-icon img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.gs-mos-item.is-big .gs-mos-icon { opacity: 1; }
.gs-mos-item.is-big::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(8,14,28,.8));
}
.gs-mos-body {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.gs-mos-item.is-big .gs-mos-body { color: #fff; }
.gs-mos-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-mos-item.is-big .gs-mos-name { font-size: 19px; }
.gs-mos-desc { font-size: 12px; opacity: .8; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-mos-meta { font-size: 11px; opacity: .7; }
.gs-mos-item.is-big .gs-mos-meta .ac-sep { background: rgba(255,255,255,.35); }

/* ③ 序号清单 list2 */
.gs-l2 { display: grid; gap: 4px 22px; }
.gs-l2-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 4px;
  border-bottom: 1px dashed var(--line); color: var(--text);
}
.gs-l2-item:hover { color: var(--brand); }
.gs-l2-no {
  flex: none; width: 26px; font-size: 13px; font-weight: 800;
  color: var(--brand); opacity: .45; font-variant-numeric: tabular-nums;
}
.gs-l2-item:hover .gs-l2-no { opacity: 1; }
.gs-l2-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-l2-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-l2-meta { font-size: 11px; color: var(--text-3); }
.gs-l2-arrow { flex: none; color: var(--text-3); }

/* ④ 双列大卡 grid2 */
.gs-g2 { display: grid; gap: 14px; }
.gs-g2-item {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); color: inherit;
  transition: all .16s;
}
.gs-g2-item:hover { border-color: var(--brand); transform: translateY(-2px); color: inherit; box-shadow: 0 12px 26px rgba(0,128,255,.1); }
.gs-g2-top { display: flex; align-items: center; gap: 11px; }
.gs-g2-top .app-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; flex: none; }
.gs-g2-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-g2-name { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-g2-cat { font-size: 11.5px; color: var(--text-3); }
.gs-g2-desc {
  font-size: 12.5px; color: var(--text-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gs-g2-meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; }

/* ⑤ 聚光灯 spotlight */
.gs-spot { display: grid; gap: 14px; }
.gs-spot-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 12px 20px; border-radius: 18px; color: #fff; text-align: center;
  overflow: hidden; transition: transform .16s, box-shadow .16s;
}
.gs-spot-item:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 36px rgba(0,0,0,.22); color: #fff; }
.gs-spot-item::before {
  content: ""; position: absolute; inset: 0; opacity: .92;
  background: linear-gradient(150deg, #2e7cf0, #6a5cff);
}
.gs-spot-item.s2::before { background: linear-gradient(150deg, #ffb06b, #ff7a45); }
.gs-spot-item.s3::before { background: linear-gradient(150deg, #8ee08b, #43b04a); }
.gs-spot-item.s4::before { background: linear-gradient(150deg, #c39bff, #7b5cf0); }
.gs-spot-item.s5::before { background: linear-gradient(150deg, #7fd8f5, #1f9bd1); }
.gs-spot-item.s6::before { background: linear-gradient(150deg, #ffd166, #f0a500); }
.gs-spot-item::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.16); top: -50px; right: -40px;
}
.gs-spot-icon {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.22); display: grid; place-items: center;
  font-size: 26px; font-weight: 800; backdrop-filter: blur(4px);
}
.gs-spot-icon img { width: 100%; height: 100%; object-fit: cover; }
.gs-spot-name {
  position: relative; z-index: 1; font-size: 13.5px; font-weight: 650;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-spot-meta { position: relative; z-index: 1; font-size: 11px; opacity: .8; }
.gs-spot-meta .ac-sep { background: rgba(255,255,255,.4); }

/* ═════════════ 幻灯片里的站内搜索 ═════════════ */
.sl-search {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 4; display: flex; align-items: center; gap: 0;
  width: min(430px, 46%);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 5px 6px 5px 6px;
  box-shadow: 0 10px 30px rgba(16,24,40,.12);
  border: 1px solid rgba(255,255,255,.8);
}
.sl-search-scope {
  flex: none; height: 36px; padding: 0 10px; border: 0; background: transparent;
  font-size: 13px; color: var(--text-2); cursor: pointer; outline: none;
  border-right: 1px solid var(--line);
}
.sl-search-input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px;
  border: 0; background: transparent; font-size: 13.5px; color: var(--text);
  outline: none;
}
.sl-search-input::placeholder { color: var(--text-3); }
.sl-search-btn {
  flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .14s;
}
.sl-search-btn:hover { background: #1d6fd6; }

/* 各类幻灯片里搜索框的位置微调 */
.sl-style-overlay .sl-search { background: rgba(255,255,255,.94); }
.sl-style-center .sl-search,
.sl-style-bigtext .sl-search,
.sl-style-cards .sl-search {
  position: static; transform: none; margin: 18px auto 0; width: min(430px, 90%);
}
.sl-style-center .sl-slide-inner,
.sl-style-bigtext .sl-slide-inner { flex-direction: column; }
.sl-style-minimal .sl-search { position: static; transform: none; margin-top: 18px; width: 100%; }

@media (max-width: 900px) {
  .sl-search { position: static; transform: none; width: auto; margin: 14px 16px 46px; }
}

/* ═════════════ 搜索结果页 ═════════════ */
.sr-hero { padding: 4px 0 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sr-title { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.sr-meta {
  font-size: 12px; color: var(--text-3);
  padding: 2px 10px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.sr-box {
  display: flex; align-items: center; gap: 0; max-width: 620px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 6px; box-shadow: 0 6px 20px rgba(16,24,40,.06);
}
.sr-scope {
  flex: none; height: 38px; padding: 0 12px; border: 0; background: transparent;
  font-size: 13.5px; color: var(--text-2); cursor: pointer; outline: none;
  border-right: 1px solid var(--line);
}
.sr-input {
  flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: 0; background: transparent;
  font-size: 14px; color: var(--text); outline: none;
}
.sr-btn {
  flex: none; height: 38px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.sr-btn:hover { background: #1d6fd6; }

.sr-results { display: grid; gap: 26px; min-width: 0; }
.sr-sec { min-width: 0; }
/* 结果区占满容器宽度 */
.sr-results, .sr-hero { padding-right: 0; max-width: 100%; }
.sr-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sr-sec-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.sr-count {
  padding: 1px 8px; border-radius: 6px; background: var(--brand-soft);
  color: var(--brand); font-size: 11.5px; font-weight: 600;
}

.sr-apps {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1180px) { .sr-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sr-apps { grid-template-columns: 1fr; } }

/* 搜索结果卡片：与首页「最新更新」同款 */
.sr-app {
  display: flex; flex-direction: column; gap: 0;
  padding: 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: inherit;
  transition: border-color .14s, transform .14s, box-shadow .14s;
}
.sr-app:hover {
  border-color: var(--brand); transform: translateY(-2px); color: inherit;
  box-shadow: 0 10px 26px rgba(0,128,255,.1);
}
.sr-app-top { display: flex; align-items: center; gap: 11px; }
.sr-app .app-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; flex: none; }
.sr-app-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-app-title h3 {
  margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-app-title .sub { font-size: 12px; color: var(--text-3); }
.sr-app-desc {
  margin: 10px 0 12px; font-size: 12.5px; line-height: 1.75; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px;
}
.sr-app-foot {
  display: flex; align-items: center; gap: 0;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
}
.sr-app-foot .ac-item { white-space: nowrap; }
.sr-app-foot .ac-sep { width: 1px; height: 11px; margin: 0 9px; background: var(--line-2, #e3e8ef); flex: none; }

.sr-arts {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) { .sr-arts { grid-template-columns: 1fr; } }
.sr-art {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  min-width: 0; overflow: hidden;
  border-radius: 12px; background: #fff; border: 1px solid var(--line); color: inherit;
  transition: all .14s;
}
.sr-art:hover { border-color: var(--brand); color: inherit; }
.sr-art-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 14px;
}
.sr-art-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-art-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-art-desc { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-art-views { flex: none; font-size: 11.5px; color: var(--text-3); }
.sr-skel { height: 68px; border-radius: 12px; }
