/* ==========================================================================
   游戏资源网 · Web 版设计系统
   还原小程序 design-system.wxss 的 token，重写为三端自适应（rpx → px）
   断点：< 768 手机 | 768–1023 平板 | >= 1024 桌面
   ========================================================================== */

:root {
  /* 色彩 */
  --brand: #10233F;
  --brand-2: #1B3A63;
  --brand-light: #E7EDF5;
  --gold: #E8A33D;
  --gold-light: #FDF3E3;
  --green: #12B886;
  --green-light: #E4F8F1;
  --red: #F03E3E;
  --red-light: #FDECEC;
  --blue: #3B82F6;

  --text-1: #14161F;
  --text-2: #4A5568;
  --text-3: #8A94A6;
  --text-4: #C9CFD9;

  --line: #E8EBF0;
  --bg: #F5F6F8;
  --card: #FFFFFF;

  /* 圆角 */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-full: 999px;

  /* 阴影 */
  --sd-1: 0 1px 4px rgba(16, 35, 63, .04);
  --sd-2: 0 2px 10px rgba(16, 35, 63, .06);
  --sd-3: 0 4px 16px rgba(16, 35, 63, .10);
  --sd-up: 0 -2px 12px rgba(16, 35, 63, .08);

  /* 布局 */
  --maxw: 1180px;
  --tabbar-h: 54px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
body { min-height: 100vh; min-height: 100dvh; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #D3D8E0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B8BFCA; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 原子类 ============ */
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-center { display: flex; align-items: center; justify-content: center; }
.col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.hide { display: none !important; }

.t-display { font-size: 22px; font-weight: 700; line-height: 1.3; }
.t-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
.t-body { font-size: 14px; }
.t-caption { font-size: 12px; color: var(--text-3); }
.t-label { font-size: 11px; font-weight: 500; }
.t-num { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.c-1 { color: var(--text-1); } .c-2 { color: var(--text-2); } .c-3 { color: var(--text-3); }
.c-brand { color: var(--brand); } .c-gold { color: var(--gold); }
.c-green { color: var(--green); } .c-red { color: var(--red); }

.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2, .ellipsis-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis-2 { -webkit-line-clamp: 2; }
.ellipsis-3 { -webkit-line-clamp: 3; }

/* ============ 卡片 / 按钮 / 标签 ============ */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sd-2); overflow: hidden; }
.card-flat { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); }
.card-pad { padding: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease), opacity .15s;
}
.btn:active { transform: scale(.97); opacity: .92; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-gold { background: linear-gradient(135deg, #F2B457, #E8A33D); color: #4A2F00; box-shadow: 0 3px 10px rgba(232,163,61,.32); }
.btn-gold:hover { box-shadow: 0 6px 18px rgba(232,163,61,.42); transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: var(--brand-light); color: var(--brand); }
.btn-ghost:hover { background: #DAE4F0; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.btn-outline:hover { border-color: var(--text-4); color: var(--text-1); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn-disabled { background: var(--line) !important; color: var(--text-4) !important; box-shadow: none !important; cursor: not-allowed; pointer-events: none; }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: var(--r-sm); font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag-gray { background: #F0F2F5; color: var(--text-3); }
.tag-brand { background: var(--brand-light); color: var(--brand); }
.tag-gold { background: var(--gold-light); color: #B47C1C; }
.tag-green { background: var(--green-light); color: #0C7A5B; }
.tag-red { background: var(--red-light); color: var(--red); }
.tag-blue { background: #E8F1FE; color: #1D6AD1; }
.tag-category { background: color-mix(in srgb, var(--cat-color, var(--brand)) 12%, white); color: var(--cat-color, var(--brand)); }

.divider { height: 1px; background: var(--line); }
.divider-8 { height: 8px; background: var(--bg); }

.section-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 10px; }
.section-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; }
.section-title::before {
  content: ''; width: 4px; height: 15px; margin-right: 8px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.section-more { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 2px; }
.section-more:hover { color: var(--brand); }
.section-subtitle { margin-top: 3px; color: var(--text-3); font-size: 12px; line-height: 1.4; }

/* ============ 骨架 / 动画 ============ */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.sk {
  background: linear-gradient(90deg, #EDEFF3 25%, #F6F7F9 50%, #EDEFF3 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-sm);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .32s var(--ease) both; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.page-loading { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.page-loading .spinner { border-color: var(--line); border-top-color: var(--brand); }

/* ============ 顶部导航（桌面/平板） ============ */
.topbar {
  position: sticky; top: 0; z-index: 500; display: none;
  height: var(--topbar-h); background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--gold);
  font-weight: 700; font-size: 17px;
}
.brand-text { font-size: 16px; font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text em { font-style: normal; font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: .4px; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  padding: 7px 14px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background .18s, color .18s;
}
.topnav a:hover { background: var(--brand-light); color: var(--brand); }
.topnav a.on { background: var(--brand); color: #fff; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-search {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--r-full); background: var(--bg); color: var(--text-3); font-size: 13px;
  border: 1px solid transparent; transition: .18s;
}
.top-search:hover { background: #fff; border-color: var(--line); box-shadow: var(--sd-1); }
.btn-vip-mini {
  height: 34px; padding: 0 16px; border-radius: var(--r-full); display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #F2B457, #E8A33D); color: #4A2F00; font-size: 13px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(232,163,61,.3); transition: .2s var(--ease-out);
}
.btn-vip-mini:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,163,61,.4); }

/* ============ 主容器 ============ */
.app { min-height: 60vh; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; }

/* ============ 底部 tabbar（手机） ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--sd-up);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-3); font-size: 10px; transition: color .18s;
}
.tab svg { width: 22px; height: 22px; fill: currentColor; transition: transform .22s var(--ease-out); }
.tab.on { color: var(--brand); font-weight: 600; }
.tab.on svg { transform: translateY(-1px) scale(1.06); }

/* ============ 页面内标题栏（手机） ============ */
.navbar {
  position: sticky; top: 0; z-index: 400; height: 48px; display: flex; align-items: center;
  padding: 0 8px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav-back { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-1); }
.nav-back:hover { background: var(--bg); }
.nav-back-empty { visibility: hidden; pointer-events: none; }
.nav-back svg { width: 20px; height: 20px; }
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; padding-right: 36px; }
.nav-title-no-back { padding-right: 0; }
.nav-act { min-width: 36px; display: flex; justify-content: flex-end; padding-right: 6px; font-size: 13px; color: var(--text-2); }
.nav-title.has-act { padding-right: 0; }

/* ============ 首页 Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #10233F 0%, #1B3A63 60%, #24518A 100%);
  padding: 18px 14px 26px;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,.32), transparent 68%); pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; left: -40px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,184,134,.22), transparent 70%); pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.hero h1 b { color: var(--gold); }
.hero h1.hero-message { font-size: 24px; line-height: 1.42; letter-spacing: 0; }
.hero h1.hero-message b { display: inline-block; }
.hero p { font-size: 12px; opacity: .78; margin-top: 4px; }
.hero-stats { display: flex; gap: 20px; margin-top: 14px; }
.hero-stats div { line-height: 1.2; }
.hero-stats b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; font-size: 11px; opacity: .68; }

.search-bar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin-top: 16px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-full); color: rgba(255,255,255,.82); font-size: 13px;
  backdrop-filter: blur(6px); transition: .2s;
}
.search-bar:hover { background: rgba(255,255,255,.24); }
.search-bar svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-hot { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hero-hot::-webkit-scrollbar { display: none; }
.hero-hot a {
  flex-shrink: 0; padding: 3px 10px; border-radius: var(--r-full); font-size: 11px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.86);
  transition: .18s; cursor: pointer;
}
.hero-hot a:hover { background: rgba(255,255,255,.28); }

/* 上浮内容区 */
.pull-up { margin-top: -32px; position: relative; z-index: 2; }

/* ============ 分类胶囊 ============ */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 12px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: 13px; color: var(--text-2); transition: .18s var(--ease); cursor: pointer;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); }
.cat-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.cat-chip em { font-style: normal; font-size: 15px; }
.cat-chip small { color: var(--text-4); font-size: 11px; }
.home-categories { padding-top: 2px; }
.home-categories .section-head { padding-top: 12px; }
.home-feed { padding-bottom: 20px; }
.home-cat-scroll { padding-bottom: 4px; }

/* ============ 情报卡 ============ */
.plist { display: grid; gap: 12px; padding: 0 12px; }
.pcard {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sd-2); overflow: hidden; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sd-3); }
.pcard-cover { position: relative; width: 100%; aspect-ratio: 16/9; background: #EDEFF3; overflow: hidden; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.pcard:hover .pcard-cover img { transform: scale(1.05); }
.pcard-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; }
.badge {
  height: 20px; padding: 0 7px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; backdrop-filter: blur(4px);
}
.badge-hot { background: rgba(240,62,62,.92); color: #fff; }
.badge-top { background: rgba(16,35,63,.86); color: var(--gold); }
.pcard-lock {
  position: absolute; right: 8px; top: 8px; height: 20px; padding: 0 7px; border-radius: var(--r-sm);
  background: rgba(16,35,63,.7); color: #fff; font-size: 11px; display: inline-flex; align-items: center; gap: 3px;
  backdrop-filter: blur(4px);
}
.pcard-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-category {
  align-self: flex-start; padding-left: 8px; border-left: 3px solid var(--cat-color, var(--brand));
  color: var(--cat-color, var(--brand)); font-size: 11px; font-weight: 600; line-height: 1.2;
}
.pcard-subcategory { margin-left: 6px; color: var(--text-3); font-size: 10px; font-weight: 500; }
.pcard-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.pcard-sum { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* 四维情报条 */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.dim { background: #FAFBFC; padding: 7px 4px; text-align: center; }
.dim span { display: block; font-size: 10px; color: var(--text-3); line-height: 1.4; }
.dim b { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }

.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 2px; }
.pcard-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-3); }
.pcard-meta i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.pcard-meta svg { width: 12px; height: 12px; fill: currentColor; }

/* 星级 */
.stars { display: inline-flex; gap: 1px; }
.stars i { width: 9px; height: 9px; background: var(--text-4); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.stars i.on { background: var(--gold); }

/* ============ 筛选栏 ============ */
.filter-bar {
  position: sticky; top: 0; z-index: 300; display: flex; gap: 8px; padding: 10px 12px;
  background: rgba(245,246,248,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
}
.filter-bar::-webkit-scrollbar { display: none; }
.fchip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-full); font-size: 12.5px;
  color: var(--text-2); cursor: pointer; transition: .18s;
}
.fchip:hover { border-color: var(--brand); }
.fchip.on { background: var(--brand-light); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.fchip svg { width: 11px; height: 11px; }
.filter-divider { width: 1px; height: 22px; margin: 4px 2px; background: var(--line); flex-shrink: 0; }
.category-filter-group { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.category-subgroup { display: none; align-items: center; gap: 8px; }
.category-filter-group.is-open .category-subgroup { display: inline-flex; }
.category-caret { margin-left: 2px; color: var(--text-4); font-size: 14px; line-height: 1; transform: translateY(-1px); }
.category-toggle.expanded .category-caret { transform: rotate(180deg) translateY(1px); }

/* ============ 鍒嗙被椤电粍浠?============ */
.category-page { padding-bottom: 20px; }
.category-intro { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 14px; }
.category-intro b { font-size: 18px; }
.category-intro span { color: var(--text-3); font-size: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.category-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 76px; padding: 14px;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--sd-3); }
.category-main { display: flex; align-items: center; gap: 10px; color: inherit; }
.category-main::after { content: '›'; margin-left: auto; color: var(--cat-color, var(--text-4)); font-size: 22px; line-height: 1; }
.category-card .cat-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 13%, white); color: var(--cat-color, var(--brand)); font-size: 19px;
}
.cat-copy { min-width: 0; }
.cat-copy b { display: block; font-size: 14px; font-weight: 600; }
.cat-copy span { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; }
.subcategory-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; border-top: 1px solid var(--line); }
.subcategory-chip { display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px; border-radius: var(--r-sm); background: var(--bg); color: var(--text-2); font-size: 11px; }
.subcategory-chip:hover { background: var(--brand-light); color: var(--brand); }
.subcategory-chip small { color: var(--text-4); font-size: 10px; }
.fchip-sub { background: #F8FAFD; color: var(--text-3); }

/* ============ 详情页 ============ */
.detail-hero { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 340px; background: #EDEFF3; overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(transparent, rgba(16,35,63,.55)); }
.detail-back {
  position: absolute; left: 10px; top: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(16,35,63,.5); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff;
}
.detail-back svg { width: 18px; height: 18px; }
.unlock-hint { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 11px 12px; border: 1px solid #F0D5A6; border-radius: var(--r-md); background: var(--gold-light); color: #6D4B14; }
.unlock-hint b { font-size: 13px; }
.unlock-hint span { font-size: 12px; line-height: 1.5; }

.dsec { background: #fff; margin: 10px 0 0; padding: 16px 14px; }
.dsec:first-of-type { margin-top: 0; }
.dsec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.dsec-title i {
  font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; background: var(--brand-light); color: var(--brand); font-weight: 700;
}
.dsec-title small { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: auto; }

/* 四维大卡 */
.dims-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dim-lg { background: #FAFBFC; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 6px; text-align: center; }
.dim-lg span { display: block; font-size: 10.5px; color: var(--text-3); margin-bottom: 3px; }
.dim-lg b { display: block; font-size: 13px; font-weight: 700; }

/* 路径时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-light)); border-radius: 1px; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
}
.tl-item b { display: block; font-size: 14px; font-weight: 600; }
.tl-item p { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* 清单 / 避坑 */
.checklist li, .pitfalls li { display: flex; gap: 8px; padding: 7px 0; font-size: 13.5px; line-height: 1.6; }
.checklist li + li, .pitfalls li + li { border-top: 1px dashed var(--line); }
.checklist li i {
  flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--green-light);
  color: #0C7A5B; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.pitfalls li i {
  flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--red-light);
  color: var(--red); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* 锁定遮罩 */
.locked-wrap { position: relative; }
.locked-blur { filter: blur(5px); opacity: .5; pointer-events: none; user-select: none; }
.locked-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: linear-gradient(transparent, rgba(255,255,255,.86) 32%, #fff 62%); padding-top: 30px;
}
.locked-cover .lk-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #F2B457, #E8A33D); box-shadow: 0 4px 14px rgba(232,163,61,.36);
}
.locked-cover .lk-icon svg { width: 20px; height: 20px; fill: #fff; }
.locked-cover p { font-size: 13px; color: var(--text-2); text-align: center; }
.locked-cover p b { color: var(--brand); }

/* 资源区 */
.resource-box { background: linear-gradient(135deg, #F6FBF9, #E4F8F1); border: 1px solid #BCEBDB; border-radius: var(--r-md); padding: 12px; }
.res-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.res-row span { color: var(--text-3); flex-shrink: 0; width: 52px; }
.res-row .v { flex: 1; min-width: 0; word-break: break-all; color: var(--text-1); font-weight: 500; }

/* 详情底部操作条
   注意：勿加 backdrop-filter —— iOS/微信 X5/部分安卓内核上，
   fixed 元素 + backdrop-filter 会导致 GPU 合成异常、按钮不渲染/错位（实测手机看不到解锁按钮） */
.detail-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px calc(8px + var(--safe-b));
  background: #fff; box-shadow: var(--sd-up);
}
.dbar-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 46px; height: 40px; min-height: 40px; box-sizing: border-box; color: var(--text-3); font-size: 10px; line-height: 1.2; }
.dbar-act svg { width: 20px; height: 20px; fill: currentColor; }
.dbar-act#btnCollect svg { width: 18px; height: 18px; }
.detail-meta { flex-wrap: wrap; }
.detail-meta span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.dbar-act.on { color: var(--gold); }

/* ============ 会员中心 ============ */
.vip-hero {
  background: linear-gradient(135deg, #14263F 0%, #1E3B63 55%, #2C4F80 100%);
  color: #fff; padding: 22px 16px 34px; position: relative; overflow: hidden;
}
.vip-hero::after {
  content: ''; position: absolute; right: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,.4), transparent 65%);
}
.vip-hero-in { position: relative; max-width: 640px; margin: 0 auto; }
.vip-hero h2 { font-size: 20px; font-weight: 700; }
.vip-hero h2 b { color: var(--gold); }
.vip-hero p { font-size: 12.5px; opacity: .78; margin-top: 6px; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 10px; text-align: center; cursor: pointer; transition: .22s var(--ease-out);
}
.plan:hover { border-color: var(--gold); transform: translateY(-2px); }
.plan.on { border-color: var(--gold); background: linear-gradient(180deg, #FFFDF8, #FDF3E3); box-shadow: 0 6px 18px rgba(232,163,61,.2); }
.plan-tag {
  position: absolute; right: -1px; top: -1px; padding: 2px 8px; font-size: 10px; font-weight: 600;
  background: linear-gradient(135deg, #F2B457, #E8A33D); color: #4A2F00;
  border-radius: 0 var(--r-lg) 0 var(--r-md);
}
.plan h4 { font-size: 14px; font-weight: 600; }
.plan .price { font-size: 24px; font-weight: 800; color: var(--gold); margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 12px; font-weight: 600; }
.plan .origin { font-size: 11px; color: var(--text-4); text-decoration: line-through; }
.plan .desc { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.4; min-height: 30px; }

.rights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.right-item { display: flex; gap: 9px; align-items: flex-start; }
.right-item i {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gold-light); font-style: normal; font-size: 14px;
}
.right-item b { display: block; font-size: 13px; font-weight: 600; }
.right-item span { font-size: 11px; color: var(--text-3); line-height: 1.4; }

.card-key { display: flex; gap: 8px; }
.input {
  flex: 1; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #FAFBFC; font-size: 14px; outline: none; transition: .18s; min-width: 0;
}
.input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(16,35,63,.06); }
textarea.input { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.6; resize: vertical; }

/* ============ 我的 ============ */
.mine-hero { background: linear-gradient(135deg, #10233F, #1B3A63); color: #fff; padding: 20px 14px 44px; }
.mine-hero-in { max-width: var(--maxw); margin: 0 auto; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center;
  font-size: 22px; border: 2px solid rgba(255,255,255,.24); overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-name { font-size: 17px; font-weight: 700; }
.mine-sub { font-size: 11.5px; opacity: .72; margin-top: 2px; }
.vip-badge {
  display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 7px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #F2B457, #E8A33D); color: #4A2F00; font-size: 10.5px; font-weight: 700;
}

.vip-card {
  background: linear-gradient(115deg, #2A2113 0%, #4A3416 46%, #7A5520 100%);
  border-radius: var(--r-lg); padding: 14px; color: #F7E4C3; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 6px 20px rgba(74,52,22,.28); position: relative; overflow: hidden; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.vip-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74,52,22,.36); }
.vip-card::after {
  content: ''; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,150,.28), transparent 68%);
}
.vip-card .vc-txt { flex: 1; min-width: 0; position: relative; }
.vip-card b { display: block; font-size: 15px; font-weight: 700; color: #FFE6B8; }
.vip-card span { font-size: 11.5px; opacity: .82; }
.vip-card .vc-btn {
  position: relative; flex-shrink: 0; height: 30px; padding: 0 14px; border-radius: var(--r-full);
  background: linear-gradient(135deg, #F2B457, #E8A33D); color: #3A2500; font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-row > a { text-align: center; padding: 12px 4px; transition: background .18s; border-radius: var(--r-md); }
.stat-row > a:hover { background: var(--bg); }
.stat-row b { display: block; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-row span { font-size: 11px; color: var(--text-3); }

.menu { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sd-2); }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-size: 14.5px; cursor: pointer;
  transition: background .16s;
}
.menu-item:hover { background: #FAFBFC; }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 14px; flex-shrink: 0; }
.menu-item .arrow { margin-left: auto; color: var(--text-4); display: flex; }
.menu-item .arrow svg { width: 15px; height: 15px; }
.menu-item .val { margin-left: auto; font-size: 12.5px; color: var(--text-3); }

/* ============ 列表项（收藏/历史/积分/订单） ============ */
.lrow { display: flex; gap: 10px; padding: 12px 14px; background: #fff; cursor: pointer; transition: background .16s; }
.lrow:hover { background: #FAFBFC; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow-thumb { width: 92px; height: 60px; border-radius: var(--r-md); object-fit: cover; background: #EDEFF3; flex-shrink: 0; }
.lrow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.lrow-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.lrow-meta { font-size: 11.5px; color: var(--text-3); }

/* 积分流水 */
.plog { display: flex; align-items: center; padding: 12px 14px; background: #fff; }
.plog + .plog { border-top: 1px solid var(--line); }
.plog b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: auto; }

/* ============ 任务中心 ============ */
.sign-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.sign-day { text-align: center; padding: 8px 2px; border-radius: var(--r-md); background: #FAFBFC; border: 1px solid var(--line); }
.sign-day.done { background: var(--gold-light); border-color: #F0D5A6; }
.sign-day span { display: block; font-size: 10px; color: var(--text-3); }
.sign-day b { display: block; font-size: 12px; font-weight: 700; color: var(--gold); }

.task-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; }
.task-item + .task-item { border-top: 1px solid var(--line); }
.task-item i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-light); font-style: normal; font-size: 15px; flex-shrink: 0; }

/* ============ 空态 / 结果提示 ============ */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; text-align: center; }
.empty .em-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 26px; }
.empty b { font-size: 15px; font-weight: 600; }
.empty span { font-size: 12.5px; color: var(--text-3); }
.load-more { text-align: center; padding: 16px; font-size: 12.5px; color: var(--text-3); }

/* ============ Toast / Loading / Sheet ============ */
.toast-wrap { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  padding: 10px 18px; border-radius: var(--r-md); background: rgba(16,35,63,.92); color: #fff; font-size: 13.5px;
  box-shadow: var(--sd-3); animation: toastIn .26s var(--ease-out) both; max-width: 78vw; text-align: center;
}
.toast.out { animation: toastOut .22s var(--ease) forwards; }
.toast.ok { background: rgba(18,184,134,.95); }
.toast.err { background: rgba(240,62,62,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(.97); } }

.mask { position: fixed; inset: 0; background: rgba(16,35,63,.5); z-index: 900; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.loading-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: rgba(16,35,63,.86); color: #fff; padding: 18px 22px; border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px;
}

.sheet-mask { z-index: 950; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 951; background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 86vh; overflow-y: auto;
  padding-bottom: var(--safe-b); animation: sheetUp .3s var(--ease-out);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.sheet-head b { font-size: 16px; font-weight: 700; }
.sheet-close { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--bg); }
.sheet-body { padding: 16px; }

/* 解锁方式选项 */
.unlock-opt {
  display: flex; align-items: center; gap: 11px; padding: 13px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; transition: .18s var(--ease-out);
}
.unlock-opt + .unlock-opt { margin-top: 9px; }
.unlock-opt:hover { border-color: var(--brand); background: #FAFBFC; transform: translateX(2px); }
.unlock-opt.rec { border-color: var(--gold); background: linear-gradient(90deg, #FFFDF8, #fff); }
.unlock-opt i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 16px; flex-shrink: 0; }
.unlock-opt b { display: block; font-size: 14px; font-weight: 600; }
.unlock-opt span { font-size: 11.5px; color: var(--text-3); }
.unlock-opt .go { margin-left: auto; color: var(--text-4); }

/* ============ 页脚（桌面） ============ */
.footer { display: none; padding: 28px 20px 36px; background: #fff; border-top: 1px solid var(--line); margin-top: 22px; }
.footer-in { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between; }
.footer p { font-size: 12px; color: var(--text-3); line-height: 1.8; }
.footer a:hover { color: var(--brand); }

/* ==========================================================================
   响应式
   ========================================================================== */

/* 平板及以上：显示顶部导航，隐藏底部 tab */
@media (min-width: 768px) {
  .topbar { display: block; }
  .tabbar { display: none; }
  .app { padding-bottom: 0; }
  .navbar { top: var(--topbar-h); }
  .container { padding: 0 20px; }
  .plist { grid-template-columns: repeat(2, 1fr); padding: 0 20px; }
  .hero { padding: 34px 20px 42px; border-radius: 0; }
  .hero h1 { font-size: 28px; }
  .hero h1.hero-message { font-size: 32px; line-height: 1.35; }
  .hero p { font-size: 14px; }
  .search-bar { max-width: 520px; height: 44px; }
  .cat-scroll { padding: 2px 20px 14px; flex-wrap: wrap; overflow: visible; }
  .section-head { padding: 22px 20px 12px; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .rights { grid-template-columns: repeat(4, 1fr); }
  .dsec { border-radius: var(--r-lg); margin: 12px auto 0; max-width: 860px; padding: 20px; }
  .detail-bar { position: sticky; bottom: 0; max-width: 860px; margin: 14px auto 0; border-radius: var(--r-lg); box-shadow: var(--sd-3); }
  .detail-hero { max-width: 860px; margin: 14px auto 0; border-radius: var(--r-lg); }
  .detail-back { display: none; }
  .footer { display: block; }
  .filter-bar { top: var(--topbar-h); padding: 12px 20px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .mine-hero { padding: 28px 20px 50px; }
  .vip-hero { padding: 34px 20px 46px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%,-50%); width: 440px; max-width: 92vw; border-radius: var(--r-xl); animation: popIn .26s var(--ease-out); }
  @keyframes popIn { from { opacity: 0; transform: translate(-50%,-46%) scale(.96); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
  .menu, .lrow-wrap, .card-wrap { border-radius: var(--r-lg); }
}

/* 桌面：三列网格 + 更大留白 */
@media (min-width: 1024px) {
  .plist { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero { padding: 46px 20px 46px; }
  .hero h1 { font-size: 34px; }
  .hero-stats b { font-size: 24px; }
  .pull-up { margin-top: -38px; }
  .navbar { display: none; }
  .dims-lg { gap: 12px; }
  .plan { padding: 20px 14px; }
  .plan .price { font-size: 28px; }
}

@media (min-width: 1280px) {
  .plist { grid-template-columns: repeat(4, 1fr); }
}

/* 深色偏好下仍保持浅色（业务要求品牌一致） */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--bg); color: var(--text-1); }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
