/* ===== 阿喵电玩 · 前台样式 ===== */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e6eaf2;
  --line-2: #eef1f7;
  --text: #1a2233;
  --text-2: #5a6478;
  --text-3: #8b94a7;
  --brand: #3358f4;
  --brand-2: #5b7cff;
  --brand-soft: #eef2ff;
  --brand-ink: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --gold: #b45309;
  --hero-1: #1a2233;
  --hero-2: #3358f4;
  --cover-dim: rgba(0, 0, 0, .28);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --shadow-lg: 0 8px 30px rgba(16, 24, 40, .10);
  --radius: 14px;
  --radius-sm: 10px;
}

/* 暗色：跟随系统（未手动设置时） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1320;
    --surface: #151b2b;
    --surface-2: #1b2233;
    --line: #262f45;
    --line-2: #1f2739;
    --text: #e6ebf5;
    --text-2: #a3adc2;
    --text-3: #6f7a91;
    --brand: #7d97ff;
    --brand-2: #9db1ff;
    --brand-soft: #1d2740;
    --brand-ink: #0e1320;
    --hero-1: #ffffff;
    --hero-2: #7d97ff;
    --cover-dim: rgba(0, 0, 0, .42);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .45);
  }
}

/* 暗色：手动切换 */
:root[data-theme="dark"] {
  --bg: #0e1320;
  --surface: #151b2b;
  --surface-2: #1b2233;
  --line: #262f45;
  --line-2: #1f2739;
  --text: #e6ebf5;
  --text-2: #a3adc2;
  --text-3: #6f7a91;
  --brand: #7d97ff;
  --brand-2: #9db1ff;
  --brand-soft: #1d2740;
  --brand-ink: #0e1320;
  --hero-1: #ffffff;
  --hero-2: #7d97ff;
  --cover-dim: rgba(0, 0, 0, .42);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration: none; }

/* 语言切换下拉 */
.lang-switch {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.lang-switch:hover { border-color: var(--brand); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .site-header,
:root:not([data-theme="light"]) .site-header { background: rgba(21, 27, 43, .92); }
@media (prefers-color-scheme: light) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); }
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #7c5cff, var(--brand));
  color: #fff;
}
.logo-mark.big { width: 48px; height: 48px; border-radius: 13px; }
.logo-mark-img { padding: 0; overflow: hidden; background: transparent; }
.logo-mark-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { font-weight: 800; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2);
  white-space: nowrap; transition: .15s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.search-box {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 5px 5px 13px; color: var(--text-3);
}
.search-box:focus-within { border-color: var(--brand); }
.search-box input {
  border: 0; background: transparent; outline: none; width: 190px;
  font-size: 14px; color: var(--text);
}
.search-box button {
  border: 0; cursor: pointer; background: var(--brand); color: var(--brand-ink);
  font-size: 13px; padding: 6px 15px; border-radius: 999px; font-weight: 600;
}
.search-box button:hover { background: var(--brand-2); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}
.menu-btn { display: none; }

/* 移动端抽屉 */
.mobile-nav {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 14px 0 18px; max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-search { display: flex; gap: 8px; margin-bottom: 12px; }
.mobile-search input {
  flex: 1; height: 42px; padding: 0 16px; font-size: 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); outline: none;
}
.mobile-search button {
  height: 42px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 600;
}
.mobile-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.mobile-links a {
  padding: 10px 12px; border-radius: 9px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: 14px; text-align: center;
}

/* ===== Announce ===== */
.announce {
  display: flex; align-items: center; gap: 9px;
  margin: 20px 0 0; padding: 11px 16px;
  background: var(--brand-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px;
}
.announce svg { flex-shrink: 0; color: var(--brand); }

/* ===== Hero ===== */
.hero { text-align: center; padding: 46px 0 34px; }
.hero-title { font-size: 40px; line-height: 1.25; letter-spacing: -.03em; }
.hero-title {
  background: linear-gradient(120deg, var(--hero-1) 20%, var(--hero-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slogan { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.hero-search { display: flex; gap: 10px; max-width: 560px; margin: 26px auto 0; }
.hero-search input {
  flex: 1; height: 46px; padding: 0 18px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  outline: none; color: var(--text); transition: .15s;
}
.hero-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(51, 88, 244, .12); }
.hero-search button {
  height: 46px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 18px rgba(51, 88, 244, .25);
}
.hero-search button:hover { background: var(--brand-2); }
.hero-stats { display: flex; justify-content: center; gap: 54px; margin-top: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 26px; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--text-3); }

/* ===== Section ===== */
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; }
.more { font-size: 13px; color: var(--brand); }

/* ===== Categories ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; transition: .18s;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-ico { color: var(--brand); }
.cat-name { font-weight: 600; font-size: 15px; }
.cat-count { font-size: 12.5px; color: var(--text-3); }

/* ===== Resource cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: .18s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-cover {
  position: relative; height: 140px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #94a3b8, #64748b); overflow: hidden;
}
.card-cover img { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; display: block; }
.card-cover::after {
  content: ""; position: absolute; inset: 0;
  background: var(--cover-dim); opacity: 0; transition: opacity .2s;
}
.card:hover .card-cover::after { opacity: 1; }
.cover-glyph { color: #fff; opacity: .95; }
.card-cover.kind-app     { background: linear-gradient(135deg, #6d8bff, #3358f4); }
.card-cover.kind-archive { background: linear-gradient(135deg, #f8b34a, #ea8c2f); }
.card-cover.kind-doc     { background: linear-gradient(135deg, #4ade80, #16a34a); }
.card-cover.kind-video   { background: linear-gradient(135deg, #fb7185, #be3455); }
.card-cover.kind-audio   { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.card-cover.kind-image   { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.card-cover.kind-code    { background: linear-gradient(135deg, #818cf8, #4338ca); }
.card-cover.kind-file    { background: linear-gradient(135deg, #a3b0c4, #64748b); }

.badge-featured, .badge-cat {
  position: absolute; z-index: 2; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; color: #fff;
}
.badge-featured {
  top: 10px; right: 10px;
  background: rgba(245, 158, 11, .95);
}
.badge-cat {
  left: 10px; bottom: 10px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 封面图顶部图片条：占用封面顶部 10%，不遮挡封面大图（大图在下方填充剩余空间） */
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-summary {
  font-size: 13px; color: var(--text-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.card-meta .genre {
  min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px; line-height: 1.5;
}
.mc-mini {
  margin-left: auto; flex: none;
  min-width: 34px; height: 24px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 13px; font-weight: 800; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; background: #78829a;
}
.mc-mini.is-good { background: #66cc33; }
.mc-mini.is-mid { background: #ffcc33; color: #1a2233; }
.mc-mini.is-bad { background: #ff3b30; }

/* ===== Two column ===== */
.two-col { display: grid; grid-template-columns: 1fr 290px; gap: 22px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel h3 { font-size: 15px; margin-bottom: 12px; }

.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.rank li:last-child { border-bottom: 0; }
.rank-no {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px;
  background: var(--surface-2); color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.rank-no.top { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.rank li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li a:hover { color: var(--brand); }
.rank-dl { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.rank-empty { color: var(--text-3); justify-content: center; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 4px 11px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); transition: .15s;
}
.tag-cloud a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 22px 0 6px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }

/* ===== List ===== */
.list-section { margin-top: 12px; }
.list-sub { font-size: 13px; color: var(--text-3); }

/* ----- 分类顶部横幅（后台「分类管理」可自定义标题/描述/角标/背景图/主题色） ----- */
.cat-hero {
  --hero-c: var(--brand);
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 30px 32px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  background:
    radial-gradient(120% 140% at 12% 0%, color-mix(in srgb, var(--hero-c) 26%, transparent), transparent 60%),
    linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cat-hero.has-img { color: #fff; border-color: transparent; }
.cat-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
.cat-hero-glow {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 14, 26, .82) 8%, rgba(10, 14, 26, .45) 52%, rgba(10, 14, 26, .12) 100%);
}
.cat-hero.has-img .cat-hero-glow { display: block; }
.cat-hero:not(.has-img) .cat-hero-glow { display: none; }
.cat-hero-inner { position: relative; z-index: 1; }
.cat-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; margin-bottom: 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  background: color-mix(in srgb, var(--hero-c) 16%, transparent);
  border-color: color-mix(in srgb, var(--hero-c) 38%, transparent);
  color: var(--hero-c);
}
.cat-hero.has-img .cat-hero-badge {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .34); color: #fff;
}
.cat-hero-title {
  font-size: 34px; line-height: 1.2; letter-spacing: -.03em;
  color: var(--text);
}
.cat-hero.has-img .cat-hero-title { color: #fff; }
.cat-hero-desc {
  margin-top: 10px; max-width: 640px;
  font-size: 14.5px; line-height: 1.7; color: var(--text-2);
}
.cat-hero.has-img .cat-hero-desc { color: rgba(255, 255, 255, .82); }
.cat-hero-stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 20px; }
.cat-hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.cat-hero-stats b {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.cat-hero-stats span { font-size: 12px; color: var(--text-3); }
.cat-hero.has-img .cat-hero-stats b { color: #fff; }
.cat-hero.has-img .cat-hero-stats span { color: rgba(255, 255, 255, .7); }

/* ----- 排序 + 筛选工具栏 ----- */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.sort-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.sort-tabs a {
  padding: 6px 15px; border-radius: 999px; font-size: 13.5px;
  color: var(--text-2); white-space: nowrap; transition: .15s;
}
.sort-tabs a:hover { color: var(--brand); background: var(--brand-soft); }
.sort-tabs a.active {
  background: var(--brand); color: var(--brand-ink); font-weight: 600;
  box-shadow: 0 2px 8px rgba(51, 88, 244, .3);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 32%, transparent);
}
.list-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lf-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.lf-item select {
  height: 32px; max-width: 190px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--text);
  font-size: 13px; font-family: inherit; outline: none; cursor: pointer;
}
.lf-item select:hover, .lf-item select:focus { border-color: var(--brand); }
.lf-reset { font-size: 12.5px; color: var(--text-3); padding: 4px 8px; border-radius: 8px; }
.lf-reset:hover { color: var(--danger); background: var(--surface-2); }

@media (max-width: 720px) {
  .cat-hero { padding: 22px 18px 20px; border-radius: 14px; }
  .cat-hero-title { font-size: 25px; }
  .cat-hero-stats { gap: 10px 22px; }
  .cat-hero-stats b { font-size: 18px; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .list-filters { justify-content: flex-start; }
  .lf-item select { max-width: 150px; }
}
.sort-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sort-bar a {
  padding: 5px 13px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.sort-bar a:hover { border-color: var(--brand); color: var(--brand); }
.sort-bar a.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager a {
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty p { margin-bottom: 16px; }
.empty-page { padding: 90px 20px; }
.empty-code { font-size: 72px; font-weight: 800; color: var(--line); letter-spacing: -.04em; }
.empty-page h2 { margin: 6px 0 8px; font-size: 22px; color: var(--text); }
.empty-page p { margin-bottom: 22px; }

/* ===== Detail（详情页：左栏媒体+条目，右栏广告+榜单） ===== */
.detail-page { padding-bottom: 40px; }

/* 主体两栏：左 62% / 右 38% */
.d-layout { display: grid; grid-template-columns: minmax(0, 70fr) minmax(0, 30fr); gap: 20px; align-items: start; }
.d-main, .d-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* 统一卡片 */
.d-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; min-width: 0;
}

/* ---- 顶部媒体 + 游戏信息（同一张卡片，左视频右信息） ---- */
.d-hero { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 18px; align-items: stretch; }
.d-hero-media { min-width: 0; display: flex; flex-direction: column; max-height: 344px; }
.gallery-stage {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 auto; min-height: 0; max-height: 268px;
}
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-stage img.is-hidden { display: none; }

/* ---- Metacritic 风格综合评分卡片（媒体区右上角） ---- */
.mc-score {
  position: absolute; top: 0; right: 0; z-index: 5;
  display: inline-flex; align-items: stretch;
  background: rgba(11, 15, 25, .66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-left: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0 0 0 8px; overflow: hidden;
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .34);
  transition: box-shadow .15s ease;
}
.mc-score:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .42); }
.mc-score__box {
  min-width: 44px; padding: 7px 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 800; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; background: #78829a;
}
.mc-score.is-good .mc-score__box { background: #66cc33; }
.mc-score.is-mid .mc-score__box { background: #ffcc33; color: #1a2233; }
.mc-score.is-bad .mc-score__box { background: #ff3b30; }
.mc-score.is-none .mc-score__box { background: #78829a; font-size: 20px; }
.mc-score__img { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; background: rgba(255, 255, 255, .14); margin: 0 7px; align-self: center; }
.mc-score__icon { width: 34px; height: 34px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; margin: 0 7px; align-self: center; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .02em; overflow: hidden; }
.mc-score__icon--plain { background: none; border-radius: 0; }
.mc-score__icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* 视频在图廊框内播放（默认显示封面，点击才播放） */
.gallery-video { width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-video.is-hidden { display: none; }
.gallery-video video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
/* 封面遮罩层 */
.video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; cursor: pointer; background: #0b0f19;
  transition: opacity .18s ease;
}
.video-overlay.is-hidden { opacity: 0; pointer-events: none; }
.video-overlay__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-overlay::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.video-play {
  position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
  transition: transform .15s ease, background .15s ease;
}
.video-play:hover { transform: scale(1.08); background: var(--brand-2); }
.video-play:active { transform: scale(.96); }
.video-overlay__tip {
  position: relative; z-index: 1;
  font-size: 13px; color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.gthumb.is-video { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f2937, #111827); position: relative; }
.gthumb-play { color: #fff; opacity: .92; display: flex; }
.gthumb.is-video.active .gthumb-play { color: var(--brand-2); }
.gthumb-play--over {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 26px;
  align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; opacity: 1;
}
.gthumb.is-video.active .gthumb-play--over { color: #fff; background: var(--brand); }
.gallery-empty .cover-glyph { color: #fff; }
.gallery-empty.kind-app     { background: linear-gradient(135deg, #6d8bff, #3358f4); }
.gallery-empty.kind-archive { background: linear-gradient(135deg, #f8b34a, #ea8c2f); }
.gallery-empty.kind-doc     { background: linear-gradient(135deg, #4ade80, #16a34a); }
.gallery-empty.kind-video   { background: linear-gradient(135deg, #fb7185, #be3455); }
.gallery-empty.kind-audio   { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.gallery-empty.kind-image   { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.gallery-empty.kind-code    { background: linear-gradient(135deg, #818cf8, #4338ca); }
.gallery-empty.kind-file    { background: linear-gradient(135deg, #a3b0c4, #64748b); }

/* 缩略图条：单行横向滑动，左右箭头常驻显示（无溢出时禁用） */
.gallery-strip { position: relative; margin-top: 12px; min-width: 0; padding: 0 4px; }
.gallery-thumbs {
  display: flex; gap: 10px; flex-wrap: nowrap; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery-thumbs::-webkit-scrollbar { height: 7px; }
.gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gthumb {
  width: 64px; height: 45px; padding: 0; border: 2px solid var(--line); border-radius: 7px;
  overflow: hidden; cursor: pointer; background: var(--surface-2); transition: border-color .15s;
  flex: 0 0 auto; scroll-snap-align: start;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb:hover { border-color: var(--brand-2); }
.gthumb.active { border-color: var(--brand); }
/* 左右翻页箭头：贴边悬浮，常驻显示；滑动到头尾或无需滑动时禁用 */
.gstrip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, opacity .15s, background .15s;
}
.gstrip-arrow:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }
.gstrip-arrow[disabled] { opacity: .5; pointer-events: none; }
.gstrip-arrow--prev { left: -10px; }
.gstrip-arrow--next { right: -10px; }

/* 右：游戏信息区（标题 / 下载量 / 简介 / 信息表 / 评分） */
.d-hero-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.d-title-row { display: flex; align-items: flex-start; gap: 12px; }
.d-title {
  font-size: 20px; line-height: 1.3; margin: 0; font-weight: 700;
  min-width: 0; flex: 1 1 auto; word-break: break-word;
}
.d-dlcount {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  font-size: 13px; font-weight: 700; color: var(--text-3);
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2);
}
.d-summary { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-2); word-break: break-word; }

/* 英文名：标题下方的次级说明文字 */
.d-entitle {
  font-size: 13px; line-height: 1.5; color: var(--text-3);
  font-weight: 500; word-break: break-word;
}

/* 信息表：卡片式参数块（每项独立圆角卡，替代平铺分隔线） */
.d-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px; margin: 0; min-width: 0;
}
.d-field {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 11px; min-width: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  transition: border-color .15s, background .15s;
}
.d-field:hover { border-color: var(--brand); background: var(--brand-soft); }
/* 奇数个参数时，最后一项横跨整行，避免右侧留空 */
.d-fields > .d-field:last-child:nth-child(odd) { grid-column: 1 / -1; }
.d-field dt {
  flex: 0 0 auto; color: var(--text-3);
  font-size: 11.5px; line-height: 1.35; font-weight: 500;
  letter-spacing: .02em;
}
.d-field dd {
  margin: 0; min-width: 0; color: var(--text);
  font-size: 13.5px; line-height: 1.4; font-weight: 600;
  overflow-wrap: anywhere;
}

/* 评分区：好评率徽章 + 评分数 + 赞/踩 */
.d-vote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-steam {
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 6px; color: #fff; background: #6b7280;
}
.d-steam.is-good { background: linear-gradient(135deg, #ff7a7a, #e8384f); }
.d-steam.is-mid  { background: linear-gradient(135deg, #f7b955, #e08b17); }
.d-steam.is-bad  { background: linear-gradient(135deg, #9aa4b2, #64748b); }
.d-steam-total { font-size: 12px; color: var(--text-3); }


/* 操作区 */
.d-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0; }
.d-buycard { display: flex; flex-direction: column; gap: 12px; }
.d-buycard .buy-tip { margin: 0; }
.d-desc { padding: 18px 20px; }
.d-desc-title { font-size: 15px; margin: 0 0 12px; font-weight: 700; }

/* ===== 用户评分卡片 ===== */
.d-rate { padding: 18px 20px; }
.d-rate-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.d-rate-head .d-desc-title { margin: 0; }
.d-rate-total { font-size: 12.5px; color: var(--text-3); }

.d-rate-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; }

/* 左：均分 + 星级 */
.d-rate-score { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-right: 20px; border-right: 1px solid var(--line-2); }
.d-rate-avg { font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.d-rate-stars { display: inline-flex; gap: 2px; color: var(--line); }
.d-rate-stars .rs { display: inline-flex; }
.d-rate-stars .rs.is-on { color: #f5a623; }
.d-rate-stars .rs.is-half { color: #f5a623; opacity: .5; }

/* 中：1~5 星分布条 */
.d-rate-dist { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.d-rate-bar { display: grid; grid-template-columns: 30px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.d-rate-bar-l { white-space: nowrap; }
.d-rate-bar-t { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.d-rate-bar-t i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f5a623, #f08a2c); transition: width .25s; }
.d-rate-bar-n { text-align: right; font-variant-numeric: tabular-nums; }

/* 右：操作区 */
.d-rate-action { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; }
.d-rate-tip { margin: 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.d-rate-pick { display: inline-flex; gap: 2px; }
.d-rate-pick .rp {
  display: inline-flex; cursor: pointer; padding: 3px; border: 0; border-radius: 6px;
  background: none; color: var(--line); transition: transform .12s, color .12s;
}
.d-rate-pick .rp:hover { transform: scale(1.15); color: #f5a623; }
.d-rate-pick .rp.is-on { color: #f5a623; }
.d-desc .prose { max-width: 100%; font-size: 14px; line-height: 1.85; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.d-desc .prose img,
.d-desc .prose video,
.d-desc .prose iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.d-related .rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.d-related .rel-list a {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  text-decoration: none; color: var(--text); font-size: 13.5px; min-width: 0;
}
.d-related .rel-list a + a { border-top: 1px solid var(--line-2); }
.d-related .rel-list a:hover .rel-title { color: var(--brand); }
.d-related .rel-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-related .rel-dl { flex: 0 0 auto; font-size: 12px; color: var(--text-3); }

/* ---- 下载条目（本体）---- */
.d-entries { padding: 0; overflow: hidden; }
.d-entries-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-2);
}
.d-entries-tabs { display: flex; gap: 4px; }
.d-etab {
  position: relative; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--text-3);
  background: none; border: 0; padding: 6px 10px 9px;
}
.d-etab.is-active { color: var(--text); }
.d-etab.is-active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0;
  height: 3px; border-radius: 3px; background: var(--brand);
}
.d-entries-sort { display: flex; gap: 6px; margin-left: auto; }
.d-esort {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; color: var(--text-3);
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid transparent; background: none; transition: .15s;
}
.d-esort:hover { color: var(--text-2); background: var(--surface-2); }
.d-esort.is-active { color: var(--brand); font-weight: 600; }

.d-entry-list { list-style: none; margin: 0; padding: 0; }
.d-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; min-width: 0;
  transition: background .15s;
}
.d-entry + .d-entry { border-top: 1px solid var(--line-2); }
.d-entry:hover { background: var(--surface-2); }
.d-entry-ico {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.d-entry-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 auto; }
.d-entry-title {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-entry-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-tag {
  font-size: 11px; line-height: 1.6; padding: 1px 7px; border-radius: 4px;
  background: rgba(34, 197, 94, .13); color: #16a34a; font-weight: 600;
}
.d-tag:nth-child(2n) { background: rgba(99, 102, 241, .13); color: #4f46e5; }
.d-tag:nth-child(3n) { background: rgba(236, 72, 153, .13); color: #db2777; }
.d-entry-time { font-size: 11.5px; color: var(--text-3); margin-left: 2px; }
.d-entry-ops { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.d-dlbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; padding: 7px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--nd-c, var(--brand));
  transition: filter .15s, transform .12s;
}
.d-dlbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.d-empty { margin: 0; padding: 34px 18px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* 视频区 */
.d-video { margin-top: 12px; border-radius: 12px; overflow: hidden; background: #000; }
.d-video video { display: block; width: 100%; max-height: 440px; background: #000; }
.d-video__embed { position: relative; padding-top: 56.25%; width: 100%; }
.d-video__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.d-video .btn { margin: 10px; }

/* 文章内立即下载（后台开关控制） */
.inline-download {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.inline-download .btn-lg { flex-shrink: 0; }
.inline-download__meta { color: var(--text-3); font-size: 13px; word-break: break-all; }

/* SKU 规格卡片：图标 + 名称 + 划线原价 + 现价（礼品卡卡片样式，固定一行平铺） */
.d-skus { margin: 4px 0 14px; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
.d-skus__title { font-size: 12px; color: var(--text-3); flex-shrink: 0; flex-basis: auto; margin-right: 2px; align-self: center; }
.sku-card {
  position: relative;
  container-type: inline-size;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px;
  flex: 1 1 0; min-width: 0; max-width: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.sku-card:hover { border-color: var(--brand); }
.sku-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sku-card:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.sku-card.is-off { opacity: .62; cursor: not-allowed; background: var(--surface-2); border-style: dashed; }
.sku-card.is-off .sku-card__price { color: var(--text-3); text-decoration: line-through; }
.sku-card.is-off .sku-card__meta del { display: none; }
.sku-card.is-off:hover { border-color: var(--line); }
.sku-card.is-owned { border-color: var(--ok); }
/* radio 视觉隐藏（保留键盘焦点与 :checked 状态） */
.sku-card input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
/* 图标槽：白底圆角方块，优先资源封面，兜底类型图标 */
.sku-card__icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-3);
}
.sku-card__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 多规格（默认）：名称一行、价格一行，窄卡也能完整展示 */
.sku-card__main { display: flex; flex-direction: column; align-items: stretch; gap: 3px; flex: 1 1 auto; min-width: 0; }
.sku-card__name {
  min-width: 0;
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sku-card__name i { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-left: 5px; }
.sku-card__restock { min-width: 0; font-size: 11.5px; color: var(--warn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sku-card__meta { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; align-self: flex-start; min-width: 0; }
.sku-card__price { font-size: 13.5px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.sku-card__meta del { font-size: 11.5px; color: var(--text-3); }
.sku-card__stock { font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.sku-card__stock.is-out { color: var(--warn, #f59e0b); font-weight: 600; }
.sku-card__owned { font-style: normal; font-size: 11px; color: var(--ok); border: 1px solid var(--ok); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
/* 单规格：名称与价格同一行（价格靠右），完全还原参考卡片 */
.d-skus.is-solo .sku-card__main { flex-direction: row; align-items: center; gap: 8px; }
.d-skus.is-solo .sku-card__meta { margin-left: auto; flex-wrap: nowrap; }
.d-skus.is-solo .sku-card__restock { flex: 0 1 auto; }
/* 卡片宽度不足时逐级降级（容器查询基于卡片内容宽度，与视口/规格数量无关），保证名称+现价始终可见 */
@container (max-width: 200px) {
  .sku-card__stock { display: none; }
}
@container (max-width: 153px) {
  .sku-card__meta del { display: none; }
}
@container (max-width: 130px) {
  .sku-card__icon { width: 30px; height: 30px; border-radius: 7px; }
}
@container (max-width: 90px) {
  .sku-card__icon { display: none; }
}
.sku-soldout-tip {
  flex-basis: 100%; display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; padding: 10px 12px;
  border-radius: 10px; background: var(--warn-soft, rgba(245, 158, 11, .1));
  color: var(--warn, #f59e0b); font-size: 13px; line-height: 1.65;
}
/* 有售罄提示时允许容器换行，让提示独占一行，胶囊仍保持一行 */
.d-skus:has(.sku-soldout-tip) { flex-wrap: wrap; }
.sku-soldout-tip svg { flex-shrink: 0; margin-top: 2px; }
/* SKU 直连下载 / 复制链接（已购规格） */
.sku-card__ops { display: flex; flex-direction: row; gap: 6px; flex-shrink: 0; }
.sku-card__dl, .sku-card__copy {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border: 1px solid var(--ok); border-radius: 999px; background: transparent;
  color: var(--ok); font-size: 12.5px; cursor: pointer; text-decoration: none;
  font-family: inherit; white-space: nowrap; transition: .15s;
}
.sku-card__copy { border-color: var(--line); color: var(--text-3); }
.sku-card__dl:hover { background: var(--ok); color: #fff; }
.sku-card__copy:hover { border-color: var(--brand); color: var(--brand); }

.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 500;
}
.chip-plain { background: var(--surface-2); color: var(--text-2); }

.detail-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin: 22px 0; padding: 18px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid var(--line);
}
.detail-num { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.detail-num b { color: var(--text); font-size: 15px; margin-right: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 9px 18px; border-radius: 10px; font-size: 14px; cursor: pointer;
  font-weight: 500; transition: .15s;
}
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-plain { background: var(--surface-2); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand); }

.detail-section { margin-top: 26px; }
.detail-section h2 { font-size: 16px; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.prose { white-space: pre-wrap; color: var(--text-2); font-size: 14.5px; line-height: 1.85; word-break: break-word; }

.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.info-table th { width: 120px; color: var(--text-3); font-weight: 500; }
.info-table td { word-break: break-all; }
.tip { margin-top: 14px; font-size: 13px; color: var(--warn); }

.rel-list { list-style: none; margin: 0; padding: 0; }
.rel-list li { border-bottom: 1px dashed var(--line-2); }
.rel-list li:last-child { border-bottom: 0; }
.rel-list a { display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 13.5px; }
.rel-list a:hover .rel-title { color: var(--brand); }
.rel-ico { flex-shrink: 0; color: var(--text-3); display: inline-flex; }
.rel-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-dl { font-size: 12px; color: var(--text-3); flex-shrink: 0; }

/* ===== Footer（深色多列，参考 SEAGM 结构） ===== */
.site-footer {
  margin-top: 60px; color: #c7cede;
  background: linear-gradient(180deg, #151b2e 0%, #0e1322 100%);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
:root[data-theme="dark"] .site-footer,
:root:not([data-theme="light"]) .site-footer { background: linear-gradient(180deg, #0d1220 0%, #080b14 100%); }

/* 信任徽章条 */
.footer-badges {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 0 4px;
}
.footer-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09);
}
.footer-badge img { max-height: 20px; max-width: 96px; object-fit: contain; display: block; }

/* 主体：多列 */
.footer-main { padding: 26px 0 8px; }
.footer-cols {
  display: grid; gap: 30px 40px;
  grid-template-columns: minmax(220px, 1.35fr) repeat(auto-fit, minmax(130px, 1fr));
  align-items: start;
}
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 12px;
  letter-spacing: .01em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col li a { font-size: 13px; color: #9aa4bb; transition: .15s; }
.footer-col li a:hover { color: #fff; }

/* 品牌列 */
.footer-col-brand { max-width: 340px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo strong { font-size: 17px; color: #fff; letter-spacing: -.01em; }
.footer-logo-img {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  background: rgba(255, 255, 255, .08);
}
.footer-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-slogan { font-size: 13px; color: #8a93a9; margin: 0 0 16px; line-height: 1.7; }
.footer-nav { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-nav a { font-size: 13px; color: #b6bfd2; transition: .15s; }
.footer-nav a:hover { color: #fff; }

/* 联系方式 */
.footer-contact { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-contact li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.fc-k {
  flex-shrink: 0; min-width: 58px; text-align: center;
  font-size: 11.5px; color: #9aa4bb;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 6px; padding: 2px 8px;
}
.fc-v { color: #d7dcea; word-break: break-all; }
.fc-v a { color: #8fb0ff; }
.fc-v a:hover { text-decoration: underline; }
.footer-note { font-size: 12.5px; color: #7d879e; margin: 0; line-height: 1.7; }

/* 右侧栏：推广卡 + 社交 */
.footer-col-side { display: flex; flex-direction: column; gap: 16px; }
.footer-promo {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; transition: .18s;
}
.footer-promo:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(51, 88, 244, .35); }
.fp-img {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  background: rgba(255, 255, 255, .18);
}
.fp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fp-txt b { font-size: 13.5px; font-weight: 600; }
.fp-txt i { font-style: normal; font-size: 12px; opacity: .82; }
.fp-btn {
  flex-shrink: 0; font-size: 12px; padding: 5px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .28);
}
.footer-social-title { margin-bottom: 10px !important; }
.footer-social { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.footer-social li a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09);
  color: #b6bfd2; font-size: 12.5px; transition: .15s;
}
.footer-social li a:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); }
.soc-ico { flex-shrink: 0; opacity: .9; }

/* 页脚自定义 HTML 区块 */
.footer-custom { padding: 18px 0 6px; font-size: 13px; color: #8a93a9; }
.footer-custom a { color: #8fb0ff; }
.footer-custom a:hover { text-decoration: underline; }
.footer-custom p { margin: 0 0 6px; }
.footer-custom img { max-width: 100%; height: auto; }
.footer-custom ul, .footer-custom ol { margin: 4px 0; padding-left: 20px; }

/* 底部版权条 */
.footer-bottom {
  display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 12.5px; color: #7d879e;
}
.fb-copy { color: #99a3b8; }
.footer-bottom .fb-icp { color: #7d879e; }
.footer-bottom .fb-text { color: #7d879e; }
.fb-top { margin-left: auto; color: #9aa4bb; transition: .15s; }
.fb-top:hover { color: #fff; }

@media (max-width: 860px) {
  .footer-cols { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
  .footer-col-brand { max-width: none; }
  .fb-top { margin-left: 0; }
}
.footer-custom p { margin: 0 0 6px; }
.footer-custom img { max-width: 100%; height: auto; }
.footer-custom ul, .footer-custom ol { margin: 4px 0; padding-left: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .main-nav, .search-box { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { padding: 32px 0 24px; }
  .hero-title { font-size: 30px; }
  .hero-stats { gap: 30px; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .btn { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-cover { height: 108px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: 1fr; }
  .card-cover { height: 150px; }
  .logo-text { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 22px; }
}

/* ===== 顶部用户菜单 ===== */
.user-menu { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text);
  font-size: 13.5px; cursor: pointer; }
.user-chip:hover { border-color: var(--brand); }
.user-drop { position: absolute; right: 0; top: 44px; min-width: 138px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.user-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.user-drop a:hover { background: var(--surface-2); color: var(--brand); }
.ud-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ud-bal { font-size: 12.5px; color: #e8590c; font-weight: 600; }
.btn-login { height: 34px; padding: 0 16px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 18px; color: var(--text); font-size: 13.5px; }
.btn-login:hover { border-color: var(--brand); color: var(--brand); }
.btn-register { height: 34px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 18px; background: var(--brand); color: var(--brand-ink); font-size: 13.5px; }
.btn-register:hover { background: var(--brand-2); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost:disabled { opacity: .6; cursor: not-allowed; }

/* ===== 滑块拼图验证码 ===== */
.sc { margin-top: 4px; }
.sc-box { position: relative; width: auto; max-width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); }
.sc-bg, .sc-piece { display: block; width: 100%; height: auto; }
.sc-piece { position: absolute; left: 0; top: 0; pointer-events: none; }
.sc-tip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.62); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.sc-tip.ok { background: var(--ok); }
.sc-tip.err { background: var(--danger); }
.sc-bar { margin-top: 12px; }
.sc-track { position: relative; height: 42px; border-radius: 21px; background: var(--surface-2);
  border: 1px solid var(--line); }
.sc-track.active { border-color: var(--brand); }
.sc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brand-soft); border-radius: 21px; }
.sc-thumb { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; color: var(--brand); cursor: grab;
  box-shadow: var(--shadow); touch-action: none; }
.sc-thumb:active { cursor: grabbing; }
.sc-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.sc-hint.ok { color: var(--ok); }

/* 随机字母验证码 */
.cap-wrap { display: flex; align-items: stretch; gap: 10px; margin-top: 4px; }
.cap-img {
  height: 46px; width: 130px; flex-shrink: 0; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface-2); cursor: pointer; display: block;
}
.cap-refresh { flex-shrink: 0; border-radius: 8px; }
.cap-input {
  margin-top: 10px; width: 100%; max-width: 200px; letter-spacing: 4px;
  font-size: 16px; font-weight: 600; text-transform: uppercase;
}

/* ===== 登录 / 注册 / 找回 / 个人中心 ===== */
.auth-wrap { display: flex; justify-content: center; padding: 48px 20px 60px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 28px; }
.auth-card.wide { max-width: 560px; }
.auth-title { font-size: 22px; margin: 0 0 6px; }
.auth-sub { color: var(--text-3); font-size: 14px; margin: 0 0 22px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form[hidden], .auth-verify[hidden] { display: none !important; }
/* 全局兜底：任何带 hidden 属性的元素都必须真正隐藏（防止 .btn 等 display 规则覆盖） */
[hidden] { display: none !important; }
/* 注册切换按钮：与登录表单视觉分离 */
#mRegSwitchBtn { margin-top: 16px; border-style: dashed; }
#mRegSwitchBtn[hidden] { display: none !important; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.field label small { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 4px; }
.field input { height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
  color: var(--text); padding: 0 14px; font-size: 15px; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--brand); }
.input-with-btn { display: flex; gap: 10px; }
.input-with-btn input { flex: 1; min-width: 0; }
.input-with-btn .btn { flex-shrink: 0; white-space: nowrap; }
.form-msg { font-size: 13px; min-height: 18px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.auth-foot { margin-top: 20px; display: flex; justify-content: space-between; font-size: 13.5px;
  color: var(--text-2); flex-wrap: wrap; gap: 8px; }
.auth-foot a { color: var(--brand); }
.auth-result { text-align: center; }
.result-ico { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px; }
.result-ico.ok { background: rgba(22,163,74,.12); color: var(--ok); }
.result-ico.err { background: rgba(220,38,38,.12); color: var(--danger); }
.auth-result .btn { margin-top: 18px; }
.verify-sent { text-align: center; }
.verify-sent .result-ico { margin-top: 6px; }
.verify-sent .auth-sub { line-height: 1.7; }
.verify-sent .auth-sub b { color: var(--text); }
.verify-sent .auth-form { text-align: left; margin-top: 16px; }
.verify-sent .auth-form .field { text-align: left; }
.auth-tips { font-size: 13px; color: var(--text-3); margin: 0 0 4px; }
.verify-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 16px; }
.verify-box .btn { margin-top: 10px; }
#resendVerifyBtn { margin-top: 10px; }

/* ===== 登录 / 注册 弹窗 ===== */
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s; }
.auth-modal.is-open { opacity: 1; visibility: visible; }
.auth-modal__mask { position: absolute; inset: 0; background: rgba(8, 12, 22, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.auth-modal__panel { position: relative; width: 100%; max-width: 404px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 26px 26px 20px; max-height: calc(100vh - 40px); overflow: auto;
  transform: translateY(14px) scale(.98); transition: transform .24s cubic-bezier(.2, .8, .3, 1); }
.auth-modal.is-open .auth-modal__panel { transform: translateY(0) scale(1); }
.auth-modal__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0;
  background: var(--surface-2); border-radius: 50%; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s; }
.auth-modal__close:hover { background: var(--line); color: var(--text); }
.auth-modal__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-modal__logo { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px var(--brand-soft); }
.auth-modal__logo-img { padding: 0; overflow: hidden; background: transparent; box-shadow: none; }
.auth-modal__logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-modal__title { font-size: 20px; margin: 0; }
.auth-modal__sub { font-size: 13px; color: var(--text-3); margin: 2px 0 0; }
/* 登录 / 注册 通过底部「免费注册 / 去登录」链接切换，不再使用 Tab 按钮 */
.auth-modal .auth-form { gap: 15px; }
.auth-modal .field input { height: 46px; }
.auth-verify { text-align: center; }
.auth-verify__head { margin-bottom: 16px; }
.auth-verify__head h3 { margin: 8px 0 4px; font-size: 17px; }
.auth-verify__head p { font-size: 13.5px; color: var(--text-3); }
.auth-verify__head b { color: var(--text); }
.auth-verify .field { text-align: left; }
.auth-verify .field input { height: 46px; letter-spacing: 3px; font-size: 16px; font-weight: 600; text-align: center; }
.auth-verify .btn { margin-top: 10px; }
.auth-verify__back { display: block; width: 100%; margin-top: 12px; padding: 8px 0; border: 0;
  background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; }
.auth-verify__back:hover { color: var(--brand); }
.auth-modal__foot { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-3); }
.auth-modal__foot a { color: var(--brand); }
.auth-switch a { font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-modal__foot[hidden] { display: none; }

@media (max-width: 480px) {
  .auth-modal { padding: 0; align-items: flex-end; }
  .auth-modal__panel { max-width: none; border-radius: 18px 18px 0 0; padding: 24px 18px 18px;
    transform: translateY(100%); max-height: 92vh; }
  .auth-modal.is-open .auth-modal__panel { transform: translateY(0); }
}

.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.me-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.me-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.fact span { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; }
.fact b { font-size: 14.5px; font-weight: 600; }
.tag { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 7px; border-radius: 6px; }
.tag-ok { background: rgba(22,163,74,.14); color: var(--ok); }
.tag-warn { background: rgba(217,119,6,.14); color: var(--warn); }
.tag-goods { background: rgba(37,99,235,.12); color: #2563eb; }
.tag-recharge { background: rgba(217,119,6,.12); color: #b45309; }
.lv-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.me-section h2 { font-size: 16px; margin: 0 0 14px; }
.me-section .auth-form { max-width: 360px; }

/* ===== 个人中心（新版式：左用户卡 + 右主区） ===== */
.me-page { padding: 22px 0 48px; }
.me-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.me-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.me-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.me-user { text-align: center; }
.me-avatar.lg { width: 72px; height: 72px; font-size: 32px; margin: 0 auto 12px; }
.me-name { font-size: 19px; margin: 0 0 8px; }
.me-badges { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.me-uid { font-size: 12px; color: var(--text-3); }
.me-progress { margin-top: 16px; text-align: left; }
.mp-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.mp-bar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.mp-bar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.me-max { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

.me-asset { text-align: center; }
.ma-label { font-size: 12.5px; color: var(--text-3); }
.ma-balance { font-size: 32px; font-weight: 700; color: #e8590c; margin: 6px 0 14px; letter-spacing: .5px; }
.ma-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ma-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; }
.ma-item span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.ma-item b { font-size: 15px; }
.ma-links { display: flex; justify-content: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ma-links a { font-size: 13px; color: var(--text-3); }
.ma-links a:hover { color: var(--brand); }

.me-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.ms-card span { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 3px; }
.ms-card b { font-size: 17px; }
.ms-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-ico.bal { background: rgba(232,89,12,.12); color: #e8590c; }
.ms-ico.pts { background: rgba(124,58,237,.12); color: #7c3aed; }
.ms-ico.lvl { background: var(--brand-soft); color: var(--brand); }

.me-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.mp-title { font-size: 16px; margin: 0 0 6px; }
.sec-row { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--line-2); }
.sec-row:last-of-type { border-bottom: 0; }
.sec-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface-2); color: var(--text-2); }
.sec-ico.mail { background: var(--brand-soft); color: var(--brand); }
.sec-ico.phone { background: rgba(22,163,74,.12); color: var(--ok); }
.sec-ico.lock { background: rgba(217,119,6,.12); color: var(--warn); }
.sec-info { flex: 1; min-width: 0; }
.sec-name { display: block; font-size: 12.5px; color: var(--text-3); }
.sec-val { font-size: 14.5px; font-weight: 500; word-break: break-all; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.pwd-form { max-width: 380px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pwd-actions { display: flex; gap: 10px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.info-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.info-item span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.info-item b { font-size: 14px; font-weight: 600; }

.log-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; }
.log-table th, .log-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: left; }
.log-table th { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.log-table tr:last-child td { border-bottom: 0; }
.lt-time { color: var(--text-3); white-space: nowrap; }
.lt-reason { color: var(--text-2); max-width: 260px; }
.lt-type { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; }
.lt-type.t-recharge { background: rgba(22,163,74,.14); color: var(--ok); }
.lt-type.t-consume { background: rgba(217,119,6,.14); color: var(--warn); }
.lt-type.t-refund { background: var(--brand-soft); color: var(--brand); }
.lt-type.t-adjust { background: var(--surface-2); color: var(--text-2); }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--warn); font-weight: 600; }
.empty-tip { padding: 26px 0; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* 充值弹窗 */
.rc-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.rc-amt { padding: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s; }
.rc-amt:hover { border-color: var(--brand); }
.rc-amt.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.rc-custom { display: block; margin-bottom: 14px; }
.rc-custom span { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.rc-custom input { width: 100%; }
.buy-msg.ok { color: var(--ok); }
.buy-msg.err { color: var(--danger); }

@media (max-width: 960px) {
  .me-grid { grid-template-columns: 1fr; }
  .me-side { position: static; }
  .me-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ma-row { grid-template-columns: 1fr; }
  .sec-row { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .auth-card { padding: 24px 18px; }
  .me-facts { grid-template-columns: 1fr; }
}

/* ===== 商品购买 ===== */
.buy-tip { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 11px 14px; border-radius: var(--radius-sm); background: rgba(217,119,6,.12); color: var(--warn); font-size: 14px; }
.price-tag { display: flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.price-tag span { font-size: 13px; color: var(--text-3); }
.price-tag b { font-size: 24px; color: var(--danger); }
.price-tag i { font-style: normal; font-size: 12px; color: var(--text-3); }
.owned-badge { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--radius-sm); background: rgba(22,163,74,.14); color: var(--ok); font-size: 14px; font-weight: 600; }
.btn-buy { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; }
.btn-buy:hover { filter: brightness(1.06); }

/* 购买弹窗 */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(10,15,25,.5); padding: 20px; }
.modal[hidden] { display: none !important; }
.modal-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; }
.modal-card h3 { margin: 0 0 16px; font-size: 18px; }
.buy-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.buy-row span { color: var(--text-3); white-space: nowrap; }
.buy-row b { color: var(--text); text-align: right; word-break: break-all; }
.buy-row b.amount { color: var(--danger); font-size: 20px; }
.pay-list { margin: 14px 0 4px; display: grid; gap: 8px; }
.pay-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pay-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.pay-item input { accent-color: var(--brand); }
.pi-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pi-main b { font-size: 14px; }
.pi-main i { font-style: normal; font-size: 12px; color: var(--text-3); }
.pi-warn { flex-shrink: 0; font-size: 11.5px; color: var(--warn, #f59e0b); font-weight: 600; }
.pay-item.is-lack { opacity: .62; cursor: not-allowed; border-style: dashed; }
.pay-item.is-lack:hover { border-color: var(--line); background: none; }
.pay-item.is-lack input { cursor: not-allowed; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; justify-content: center; }
.buy-msg { margin: 10px 0 0; font-size: 13px; color: var(--text-2); min-height: 18px; }
.buy-msg.err { color: var(--danger); }

/* ===== 支付页 ===== */
.pay-page { padding: 40px 0 60px; }
.pay-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pay-head h1 { font-size: 22px; margin: 0; }
.pay-status { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.st-pending { background: rgba(217,119,6,.14); color: var(--warn); }
.st-paid { background: rgba(22,163,74,.14); color: var(--ok); }
.st-closed, .st-refunded { background: var(--surface-2); color: var(--text-3); }
.pay-goods { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.pg-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pg-rows { display: grid; gap: 6px; }
.pg-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.pg-row span { color: var(--text-3); white-space: nowrap; }
.pg-row b { font-weight: 600; word-break: break-all; text-align: right; }
.pg-row b.amount { color: var(--danger); font-size: 18px; }
.pay-box { text-align: center; padding: 22px 0; }
.pb-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.pb-sub { font-size: 13px; color: var(--text-2); margin: 0 0 16px; }
.qr-wrap { margin: 16px auto; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: 8px; }
.qr-wrap svg { width: 100%; height: 100%; }
.qr-fallback { font-size: 12px; color: var(--text-2); word-break: break-all; padding: 10px; }
.qr-tip { font-size: 12px; color: var(--text-3); word-break: break-all; }
.pay-actions { display: flex; gap: 10px; margin-top: 16px; }
.pay-actions .btn { flex: 1; justify-content: center; }
.btn.danger { color: var(--danger); }
.pay-err { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(220,38,38,.1); color: var(--danger); font-size: 13px; margin-bottom: 14px; }
/* 支付方式切换 */
.pay-switch { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.pay-switch__toggle {
  width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: none; color: var(--text-2); font-size: 13px; cursor: pointer;
}
.pay-switch__toggle:hover { border-color: var(--brand); color: var(--brand); }
.pay-switch__list { display: grid; gap: 8px; margin-top: 12px; }
.pay-switch__list .pay-item { padding: 10px 12px; }
.pay-switch__msg { margin: 0; font-size: 12.5px; color: var(--text-2); }
.pay-switch__msg.err { color: var(--danger); }
.pay-done { text-align: center; padding: 20px 0; }
.done-ico { color: var(--ok); margin-bottom: 8px; }
.done-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.done-sub { font-size: 13px; color: var(--text-2); margin: 0 0 20px; }
.done-actions { display: flex; gap: 10px; justify-content: center; }
.pay-ck { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px dashed var(--brand); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 8%, transparent); margin: 0 0 12px; text-align: left; }
.pay-ck__label { flex-shrink: 0; font-size: 13px; font-weight: 600; }
.pay-ck__code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
.pay-ck--owed { border-color: var(--warn, #f59e0b); color: var(--warn, #f59e0b); justify-content: center; font-size: 13px; }
.o-ck code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.o-ck { max-width: 210px; }
.o-ck code { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.o-ck__copy {
  margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--surface-2, var(--bg-soft)); color: var(--text-2);
  font-size: 11.5px; line-height: 1.7; cursor: pointer; white-space: nowrap;
}
.o-ck__copy:hover { border-color: var(--brand); color: var(--brand); }
.o-ck__owed { color: var(--warn, #f59e0b); font-size: 12px; white-space: nowrap; }
.o-ck__extract {
  padding: 2px 10px; border: 1px solid var(--brand); border-radius: 5px;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand);
  font-size: 12px; line-height: 1.7; cursor: pointer; white-space: nowrap;
}
.o-ck__extract:hover { background: var(--brand); color: #fff; }
.o-ck__shown { display: inline-flex; align-items: center; gap: 6px; max-width: 210px; }
.o-ck__shown code { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

/* ===== 提取卡密弹窗 ===== */
.ck-extract-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .5); padding: 16px;
}
.ck-extract-mask[hidden] { display: none; }
.ck-extract-box {
  width: 100%; max-width: 380px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.ck-extract-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ck-extract-head b { font-size: 16px; }
.ck-extract-close { border: 0; background: transparent; color: var(--text-3); font-size: 22px; line-height: 1; cursor: pointer; }
.ck-extract-close:hover { color: var(--text); }
.ck-extract-tip { font-size: 12.5px; color: var(--text-3); margin: 0 0 14px; line-height: 1.5; }
.ck-extract-field { display: block; margin-bottom: 14px; }
.ck-extract-field span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.ck-extract-field input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; background: var(--bg); color: var(--text); font-family: inherit;
}
.ck-extract-field input:focus { outline: none; border-color: var(--brand); }
.ck-extract-actions { display: flex; align-items: center; gap: 10px; }
.ck-extract-actions .form-msg { font-size: 12.5px; color: var(--danger, #ef4444); }
.ck-extract-result {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ck-extract-result[hidden] { display: none; }
.ck-extract-label { font-size: 13px; color: var(--text-2); }
.ck-extract-result code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--brand); }

/* ===== 我的订单 ===== */
.my-orders { padding: 32px 0 60px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title h1 { font-size: 22px; margin: 0; }
.pt-ops { display: flex; gap: 8px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.orders-table th { text-align: left; padding: 12px 14px; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.orders-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.o-no { font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-3); }
.o-title a { color: var(--text); font-weight: 600; }
.o-title a:hover { color: var(--brand); }
.o-kind {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; line-height: 1.6;
  background: rgba(217,119,6,.12); color: #b45309;
}
.o-amt { color: var(--danger); font-weight: 700; }
.o-time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.o-ops { display: flex; gap: 6px; }
.btn-mini { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.btn-mini.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.empty-box { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-box p { color: var(--text-2); margin-bottom: 16px; }

@media (max-width: 560px) {
  .pay-card { padding: 18px; }
  .qr-wrap { width: 180px; height: 180px; }
  .done-actions, .pay-actions { flex-direction: column; }
}

/* ===== 详情页右栏榜单（本周最热 / 本月最热 / 历史最热） ===== */
.d-hot { padding: 14px 12px; }
.d-hot-tabs { display: flex; align-items: center; gap: 2px; padding: 0 6px 12px; }
.d-hot-tab {
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-3); background: none; border: 0; padding: 4px 8px; transition: color .15s;
}
.d-hot-tab:hover { color: var(--text-2); }
.d-hot-tab.is-active { color: var(--text); }
.d-hot-list { list-style: none; margin: 0; padding: 0; }
.d-hot-list > li > a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 10px;
  text-decoration: none; color: inherit; transition: background .15s;
}
.d-hot-list > li > a:hover { background: var(--surface-2); }
.d-hot-rank {
  width: 24px; flex: 0 0 auto; text-align: center;
  font-size: 14px; font-weight: 800; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.d-hot-list > li:nth-child(1) .d-hot-rank { color: #e8384f; }
.d-hot-list > li:nth-child(2) .d-hot-rank { color: #f0913a; }
.d-hot-list > li:nth-child(3) .d-hot-rank { color: #3b82f6; }
.d-hot-thumb {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: #fff;
}
.d-hot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-hot-thumb.kind-app     { background: linear-gradient(135deg, #6d8bff, #3358f4); }
.d-hot-thumb.kind-archive { background: linear-gradient(135deg, #f8b34a, #ea8c2f); }
.d-hot-thumb.kind-doc     { background: linear-gradient(135deg, #4ade80, #16a34a); }
.d-hot-thumb.kind-video   { background: linear-gradient(135deg, #fb7185, #be3455); }
.d-hot-thumb.kind-audio   { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.d-hot-thumb.kind-image   { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.d-hot-thumb.kind-code    { background: linear-gradient(135deg, #818cf8, #4338ca); }
.d-hot-thumb.kind-file    { background: linear-gradient(135deg, #a3b0c4, #64748b); }
.d-hot-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.d-hot-title {
  font-size: 13.5px; color: var(--text); line-height: 1.4; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-hot-meta {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 12px; color: var(--text-3);
}
.d-hot-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-hot-score { color: var(--brand); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.detail-ad {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; min-width: 0;
}
.detail-ad__link { display: block; text-decoration: none; color: inherit; }
.detail-ad__img {
  display: block; width: 100%; height: auto; max-height: 320px;
  object-fit: contain; border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.detail-ad__body { margin-top: 8px; padding: 0 2px; }
.detail-ad__title { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-word; }
.detail-ad__text { margin-top: 3px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; word-break: break-word; }
.detail-ad__tag {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 999px;
  background: rgba(15, 23, 42, .62); color: #fff; pointer-events: none;
}
.detail-ad__link:hover .detail-ad__img { opacity: .92; }

/* ===== 详情页响应式 ===== */
@media (max-width: 1000px) {
  .d-layout { grid-template-columns: minmax(0, 1fr); }
  .d-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mc-score { top: 0; right: 0; }
  .mc-score__box { min-width: 38px; font-size: 19px; padding: 5px 7px; }
  .d-card { padding: 14px; }
  .d-entries-head { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .d-entries-sort { margin-left: 0; flex: 1 1 100%; }
  .d-esort { flex: 1 1 0; min-width: 0; justify-content: center; padding: 5px 4px; font-size: 12px; }
  .d-entry { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .d-entry-ico { order: 1; }
  .d-entry-main { order: 2; flex: 1 1 calc(100% - 42px); }
  .d-entry-title { white-space: normal; }
  .d-entry-ops { order: 3; flex: 1 1 100%; justify-content: flex-start; gap: 6px; }
  .d-dlbtn { flex: 1 1 calc(50% - 3px); min-width: 0; padding: 7px 6px; }
  .d-title { font-size: 18px; }
  .d-fields { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .d-field { padding: 8px 11px; }
  .d-rate { padding: 14px; }
  .d-rate-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .d-rate-score { flex-direction: row; gap: 10px; justify-content: center; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .d-rate-avg { font-size: 28px; }
  .d-rate-action { min-width: 0; width: 100%; }
  .detail-ad { padding: 8px; }
  .detail-ad__img { max-height: 200px; }
}
