:root {
  --bg: #f3f6fc;
  --card: #ffffff;
  --line: #e4eaf6;
  --text: #1a2433;
  --muted: #6d7c92;
  --primary: #4f6dff;
  --primary-2: #7a5cff;
  --primary-soft: #ebefff;
  --mobile: #10b981;
  --mobile-soft: #e5f8f1;
  --pc: #4f6dff;
  --pc-soft: #ebefff;
  --shadow: 0 8px 24px rgba(31, 52, 90, .08);
  --shadow-lg: 0 16px 40px rgba(31, 52, 90, .14);
  --radius: 16px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 12% -120px, #e2ecff 0%, rgba(226, 236, 255, 0) 70%),
    radial-gradient(700px 380px at 92% -80px, #ffe9f3 0%, rgba(255, 233, 243, 0) 70%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ 顶部栏 ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 234, 246, .9);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* 设置加载完成前隐藏品牌文字，避免闪现默认站名 */
body.brand-pending .logo, body.brand-pending .brand-text { visibility: hidden; }

.logo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #5b7cff, #8b5cff);
  box-shadow: 0 6px 16px rgba(91, 124, 255, .32);
  overflow: hidden;
}
.logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }

.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 16px; letter-spacing: .3px; line-height: 1.25; }
.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-link {
  flex: none;
  font-size: 12px;
  color: var(--primary);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  font-weight: 600;
}

/* ============ 页面容器 ============ */

.page { max-width: 1080px; margin: 0 auto; padding: 14px 16px 26px; }

/* ============ 头图 ============ */

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 20px 18px;
  color: #fff;
  background: linear-gradient(135deg, #5b7cff 0%, #7a5cff 55%, #b06bff 100%);
  box-shadow: 0 14px 34px rgba(95, 110, 255, .3);
  margin-bottom: 14px;
}
.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.hero-banner::before { width: 180px; height: 180px; right: -60px; top: -70px; }
.hero-banner::after { width: 110px; height: 110px; right: 40px; bottom: -70px; background: rgba(255, 255, 255, .1); }

.hero-banner h1 {
  position: relative;
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .5px;
}
.hero-banner h1 span { opacity: .82; font-weight: 500; font-size: 14px; display: block; margin-top: 2px; }
.hero-banner p {
  position: relative;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
}
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 18px; line-height: 1.25; }
.hero-stats span { font-size: 10.5px; color: rgba(255, 255, 255, .78); }

/* ============ 快捷入口 ============ */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31, 52, 90, .05);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s;
}
.quick-item:active { transform: scale(.97); }
.quick-item:hover { box-shadow: 0 8px 22px rgba(31, 52, 90, .1); }

.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}
.qi-1 { background: linear-gradient(135deg, #34d399, #10b981); }
.qi-2 { background: linear-gradient(135deg, #60a5fa, #4f6dff); }
.qi-3 { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.qi-4 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.quick-item span { font-size: 11.5px; color: #45536b; font-weight: 600; }
.quick-icon svg { width: 19px; height: 19px; fill: #fff; display: block; }

/* ============ 搜索 ============ */

.searchbar {
  position: relative;
  margin-bottom: 12px;
}

.searchbar svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #9aa8bf;
  pointer-events: none;
}

.searchbar input {
  width: 100%;
  height: 48px;
  padding: 0 15px 0 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  outline: none;
  box-shadow: 0 4px 14px rgba(31, 52, 90, .05);
  transition: border-color .18s, box-shadow .18s;
}
.searchbar input::placeholder { color: #a6b3c7; }
.searchbar input:focus {
  border-color: rgba(79, 109, 255, .5);
  box-shadow: 0 0 0 3px rgba(79, 109, 255, .1);
}

/* ============ 公告 ============ */

.notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff8e9;
  border: 1px solid #ffe6bc;
  font-size: 12.5px;
  color: #a4762a;
  line-height: 1.55;
}
.notice b { color: #f59e0b; flex: none; font-weight: 700; }
.notice span { min-width: 0; word-break: break-word; }

/* ============ 分区切换 ============ */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: #5c6b82;
  padding: 11px 8px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all .18s;
  box-shadow: 0 3px 10px rgba(31, 52, 90, .04);
}
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: #c3cede; }

.tab.active[data-section="mobile"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 8px 20px rgba(16, 185, 129, .28);
}
.tab.active[data-section="mobile"] .dot { background: #fff; }

.tab.active[data-section="pc"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6d8bff, #4f6dff);
  box-shadow: 0 8px 20px rgba(79, 109, 255, .26);
}
.tab.active[data-section="pc"] .dot { background: #fff; }

/* ============ 分类 ============ */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: #6b7a90;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
  box-shadow: 0 2px 8px rgba(31, 52, 90, .04);
}
.chip.active { color: var(--primary); border-color: #c9d5ff; background: var(--primary-soft); font-weight: 600; }
.chip.active.mobile { color: #0e9f6e; border-color: #bbeedd; background: var(--mobile-soft); }

/* ============ 列表 ============ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 6px 2px 12px;
  color: #4a5870;
  font-size: 13px;
  font-weight: 600;
}
.section-head .count { color: #9aa8bf; font-weight: 400; font-size: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(31, 52, 90, .06);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:active { transform: scale(.985); }

.cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef2fa;
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cover-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.ph-1 { background: linear-gradient(135deg, #34d399, #059669); }
.ph-2 { background: linear-gradient(135deg, #7c9dff, #4f6dff); }
.ph-3 { background: linear-gradient(135deg, #f487b2, #e0508c); }
.ph-4 { background: linear-gradient(135deg, #fbc16a, #f0932b); }
.ph-5 { background: linear-gradient(135deg, #67d5e8, #2ba6bf); }
.ph-6 { background: linear-gradient(135deg, #a78bfa, #7c4dff); }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10.5px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 7px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.badge.mobile { background: rgba(16, 185, 129, .92); }
.badge.pc { background: rgba(79, 109, 255, .92); }

.new-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 4px 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff8a5c, #ff5c7c);
  box-shadow: 0 3px 8px rgba(255, 92, 124, .3);
}

.card-body { padding: 11px 12px 13px; }
.card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-desc {
  font-size: 11.5px;
  color: #7f8da3;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: #94a2b8;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.card-meta span { white-space: nowrap; }
.card-meta i { color: #cbd5e3; font-style: normal; }

/* ============ 加载更多 / 空态 ============ */

.more-wrap { display: grid; place-items: center; margin-top: 22px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  height: 38px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: #41506a; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .16s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-num {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: #41506a; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .16s;
}
.page-num:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.page-num.active { background: linear-gradient(135deg, #6d8bff, #4f6dff); color: #fff; border-color: transparent; }
@media (max-width: 480px) {
  .pagination { gap: 6px; }
  .page-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .page-num { min-width: 34px; height: 36px; font-size: 13px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: #41506a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s;
  box-shadow: 0 3px 10px rgba(31, 52, 90, .05);
}
.btn:hover { border-color: #cfd9ea; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-primary {
  background: linear-gradient(135deg, #6d8bff, #4f6dff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(79, 109, 255, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #7d98ff, #5f7bff); }

.empty { text-align: center; padding: 54px 20px; color: #93a1b7; font-size: 13px; }
.empty .icon { font-size: 38px; opacity: .4; display: block; margin-bottom: 8px; }

.skeleton-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
@media (min-width: 600px) { .skeleton-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .skeleton-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sk {
  background: linear-gradient(100deg, #eaeff8 30%, #f4f7fd 50%, #eaeff8 70%);
  background-size: 200% 100%;
  animation: sk 1.4s infinite linear;
  border-radius: var(--radius);
  height: 200px;
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ============ 底部导航 ============ */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid #e8edf7;
  box-shadow: 0 -6px 24px rgba(31, 52, 90, .08);
}

.tabbar-item {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  height: 100%;
  justify-content: center;
  color: #8c9ab0;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.tabbar-item svg { width: 21px; height: 21px; fill: currentColor; opacity: .92; }
.tabbar-item.active { color: var(--primary); font-weight: 700; }
.tabbar-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #6d8bff, #a06bff);
}

/* ============ 回到顶部 ============ */

.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  z-index: 55;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  color: #5c6b82;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(31, 52, 90, .14);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ============ 关注弹层 ============ */

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 30, 50, .42);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
  animation: rise .24s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 -12px 40px rgba(20, 30, 50, .18);
}
@keyframes rise { from { transform: translateY(28px); opacity: .7; } to { transform: none; opacity: 1; } }

.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #f1f4fa; color: #7b8aa0; font-size: 15px; cursor: pointer;
}

.follow-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: #f7f9fe;
  border: 1px solid #e9eff9;
  margin-bottom: 10px;
}
.fc-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  text-align: center; line-height: 1.2;
}
.fc-icon svg { width: 19px; height: 19px; fill: #fff; display: block; }
.fc-gzh { background: linear-gradient(135deg, #34d399, #059669); }
.fc-qq { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.fc-group { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.fc-body { min-width: 0; flex: 1; }
.fc-body b { display: block; font-size: 14px; }
.fc-body p { margin: 2px 0 0; font-size: 12px; color: #8291a6; line-height: 1.5; word-break: break-all; }
.fc-body a { color: var(--primary); font-weight: 600; font-size: 12.5px; }

.sheet-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: #93a1b7;
  line-height: 1.6;
  padding: 12px;
  border-radius: 12px;
  background: #f7f9fe;
}

/* ============ 详情页 ============ */

.detail { max-width: 880px; margin: 0 auto; padding: 0 16px 26px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.back svg { width: 16px; height: 16px; fill: currentColor; }

.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2fa;
  box-shadow: 0 10px 30px rgba(31, 52, 90, .12);
  height: clamp(200px, 42vw, 340px);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .cover-ph { font-size: 54px; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 20, 34, .88) 0%, rgba(12, 20, 34, .28) 45%, transparent 72%);
  pointer-events: none;
}
.hero-title { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; }
.hero-title h1 { font-size: 21px; line-height: 1.3; margin: 0 0 5px; }
.hero-title .sub { font-size: 12px; color: rgba(255, 255, 255, .8); line-height: 1.5; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tag {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  color: #5c6b82;
  box-shadow: 0 2px 6px rgba(31, 52, 90, .04);
}
.tag.mobile { color: #0e9f6e; border-color: #bbeee0; background: var(--mobile-soft); }
.tag.pc { color: #4457c9; border-color: #c9d5ff; background: var(--pc-soft); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.actions .btn { height: 50px; border-radius: 13px; font-size: 15px; }
.actions.full { grid-template-columns: 1fr; }

.notice-inline { margin: 8px 0 0; font-size: 12px; color: #93a1b7; }

/* ---------- 多网盘下载 ---------- */

.dl-box {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 4px;
  box-shadow: 0 5px 16px rgba(31, 52, 90, .05);
}
.dl-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 8px;
  font-size: 13px; font-weight: 700; color: #1f2c40;
}
.dl-head span:last-child { font-size: 11.5px; font-weight: 500; color: #93a1b7; }

.dl-list { display: grid; gap: 8px; }
.dl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f7f9fe;
  border: 1px solid #e9eff9;
}
.dl-badge {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: -.5px;
  background: #94a3b8;
}
.dl-badge.t-quark { background: linear-gradient(135deg, #4f8bff, #2f5fe0); }
.dl-badge.t-xunlei { background: linear-gradient(135deg, #35c2f8, #1287d8); }
.dl-badge.t-uc { background: linear-gradient(135deg, #ffab4a, #ff7a18); }
.dl-badge.t-baidu { background: linear-gradient(135deg, #5b8dff, #3a5fe0); }
.dl-badge.t-ali { background: linear-gradient(135deg, #ff9a6c, #ff6a3d); }
.dl-badge.t-p123 { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.dl-badge.t-lanzou { background: linear-gradient(135deg, #79b8ff, #2f75e0); }
.dl-badge.t-tianyi { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.dl-badge.t-other { background: linear-gradient(135deg, #9aa8bd, #76839a); }

.dl-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dl-info b { font-size: 14px; font-weight: 700; }
.dl-sub { font-size: 12px; color: #7d8ca3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dl-sub b { font-weight: 700; color: #3b4a63; letter-spacing: .5px; }
.dl-copy {
  font-size: 11.5px; padding: 1px 8px;
  border-radius: 7px; border: 1px solid #d7e2f4;
  background: #fff; color: var(--primary);
  font-weight: 600; cursor: pointer;
}
.dl-copy:active { transform: scale(.96); }
.dl-go {
  flex: none; height: 34px; padding: 0 14px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 14px rgba(79, 109, 255, .28);
}
.dl-go:active { transform: scale(.97); }


.panel {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 5px 16px rgba(31, 52, 90, .05);
}
.panel h2 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #2c3a52;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h2::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6d8bff, #4f6dff);
}
.panel p { margin: 0 0 11px; color: #4f5e76; font-size: 14px; line-height: 1.75; }
.panel p:last-child { margin-bottom: 0; }
.panel .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

.related-head {
  margin: 24px 2px 12px;
  font-size: 14px;
  color: #4a5870;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.related-head span:last-child { color: #9aa8bf; font-weight: 400; font-size: 12px; }

footer.site-foot {
  text-align: center;
  padding: 26px 16px 30px;
  color: #93a1b7;
  font-size: 12px;
  line-height: 1.8;
}

/* ---------- 详情页截图画廊 ---------- */

.sg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sg-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2fa;
  aspect-ratio: 4 / 3;
}
.sg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px) {
  .sg-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 轻提示 ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 26px); z-index: 120;
  transform: translate(-50%, 12px);
  max-width: 84vw;
  padding: 10px 16px;
  border-radius: 11px;
  background: rgba(23, 34, 56, .92);
  color: #fff; font-size: 13px; text-align: center; line-height: 1.5;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
