/* ==========================================================================
   山河创业网 — Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   令牌
   :root        = 暗色（默认主题）
   html[data-theme="light"] = 浅色（原配色，可切换保留）
   -------------------------------------------------------------------------- */
:root {
  /* ===== 与主题无关 ===== */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --nav-h: 66px;
  --maxw: 1280px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --grad-brand: linear-gradient(135deg, #4F46E5 0%, #7C3AED 52%, #A855F7 100%);
  --grad-warm: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);

  /* ===== 暗色主题（默认） ===== */
  --brand: #7C6CFF;
  --brand-600: #7C6CFF;
  --brand-700: #A99BFF;
  --brand-2: #B06CFF;
  --brand-soft: rgba(124, 108, 255, .15);
  --accent: #FFB020;
  --accent-soft: rgba(255, 176, 32, .12);
  --mint: #2DD4A7;
  --rose: #FB7185;

  --bg: #07080F;
  --bg-deep: #0B0D18;
  --card: #12141F;
  --card-2: #171A28;
  --text: #EEF0F8;
  --text-2: #A6ADC4;
  --muted: #6C748F;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .055);

  --sh-1: 0 1px 2px rgba(0, 0, 0, .60);
  --sh-2: 0 6px 20px rgba(0, 0, 0, .50);
  --sh-3: 0 18px 46px rgba(0, 0, 0, .66);
  --sh-brand: 0 10px 30px rgba(124, 108, 255, .42);

  --grad-ink: linear-gradient(160deg, #181A30 0%, #1E1739 45%, #101322 100%);
  --promo-bg: linear-gradient(158deg, #4B39DC 0%, #7C3AED 52%, #A855F7 100%);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, .055);

  /* 表面：把原先写死 #fff 的地方收进令牌，两个主题自动适配 */
  --hdr-bg: rgba(8, 9, 16, .74);
  --hdr-line: rgba(255, 255, 255, .07);
  --raise: rgba(255, 255, 255, .055);
  --raise-2: rgba(255, 255, 255, .10);
  --hover-line: rgba(255, 255, 255, .16);
  --sk-1: #171A28;
  --sk-2: #1F2334;
  --notice-bg: linear-gradient(90deg, rgba(255, 176, 32, .10), rgba(255, 176, 32, .035));
  --notice-bd: rgba(255, 176, 32, .22);
  --notice-fg: #E7BE79;
  /* Header 站名闪动（第二十九轮引入 / 第三十轮调慢调高级）：站名底色渐变 + 扫过的亮带
     第三十轮把 a/b 各压深一档（#8B7CFF/#B57BFF → #7C6CFF/#9F7CFF）：
     原来偏粉的紫在暗底上有点「跳」，压深后更沉，亮带扫过时的对比也更含蓄。 */
  --logo-name-a: #7C6CFF;
  --logo-name-b: #9F7CFF;
  --logo-flare: #FFFFFF;
  --body-bg:
    radial-gradient(980px 600px at 8% -6%, rgba(124, 108, 255, .17), transparent 62%),
    radial-gradient(860px 540px at 95% 4%, rgba(56, 189, 248, .11), transparent 60%),
    radial-gradient(900px 580px at 50% 102%, rgba(176, 108, 255, .10), transparent 64%),
    linear-gradient(rgba(255, 255, 255, .017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .017) 1px, transparent 1px);
  --body-bg-size: auto, auto, auto, 44px 44px, 44px 44px;
}

/* ---------- 浅色主题（原配色，保留可切换） ---------- */
html[data-theme="light"] {
  --brand: #4F46E5;
  --brand-600: #4F46E5;
  --brand-700: #4338CA;
  --brand-2: #7C3AED;
  --brand-soft: #EEF0FF;
  --accent: #F59E0B;
  --accent-soft: #FFF7E6;
  --mint: #10B981;
  --rose: #F43F5E;

  --bg: #F5F6FB;
  --bg-deep: #EEF0F8;
  --card: #FFFFFF;
  --card-2: #FFFFFF;
  --text: #0F1629;
  --text-2: #475069;
  --muted: #8A93A8;
  --line: #E9EBF3;
  --line-2: #F2F4F9;

  --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --sh-2: 0 4px 12px rgba(16, 24, 40, .06), 0 2px 4px rgba(16, 24, 40, .04);
  --sh-3: 0 12px 32px rgba(16, 24, 40, .10), 0 4px 8px rgba(16, 24, 40, .04);
  --sh-brand: 0 8px 24px rgba(79, 70, 229, .28);

  --grad-ink: linear-gradient(160deg, #1B2145 0%, #2A2354 45%, #1D1B3A 100%);
  --promo-bg: linear-gradient(160deg, #1B2145 0%, #2A2354 45%, #1D1B3A 100%);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0);

  --hdr-bg: rgba(255, 255, 255, .82);
  --hdr-line: #E9EBF3;
  --raise: #FFFFFF;
  --raise-2: #FFFFFF;
  --hover-line: #DFE3F0;
  --sk-1: #EEF0F7;
  --sk-2: #F6F7FB;
  --notice-bg: linear-gradient(90deg, #FFF8EC, #FFFDF8);
  --notice-bd: #FFE7BE;
  --notice-fg: #96601A;
  /* 浅色主题：站名底色压深一点保证对比，亮带改用淡紫（白带会让字「消失」） */
  --logo-name-a: #4F46E5;
  --logo-name-b: #8B5CF6;
  --logo-flare: #C7BFFF;
  --body-bg:
    radial-gradient(820px 500px at 6% 10%, rgba(79, 70, 229, .075), transparent 64%),
    radial-gradient(720px 460px at 94% 24%, rgba(56, 189, 248, .065), transparent 62%),
    radial-gradient(780px 500px at 48% 92%, rgba(168, 85, 247, .06), transparent 64%),
    radial-gradient(520px 340px at 22% 62%, rgba(16, 185, 129, .038), transparent 60%),
    linear-gradient(rgba(15, 22, 41, .0155) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 22, 41, .0155) 1px, transparent 1px);
  --body-bg-size: auto, auto, auto, auto, 36px 36px, 36px 36px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  /* 立体感：多层柔光斑 + 极淡网格（令牌驱动，双主题） */
  background-image: var(--body-bg);
  background-size: var(--body-bg-size);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select { font-family: inherit; }
::selection { background: rgba(79, 70, 229, .18); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.row { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; }
.gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; }
.wfull { width: 100%; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: var(--hdr-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hdr-line);
}
.hdr-in { height: var(--nav-h); display: flex; align-items: center; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  /* 深色底：与站点实景图里马克杯上的品牌标一致（彩色 M 标需要深底才显色） */
  background: radial-gradient(120% 120% at 28% 14%, #262055 0%, #16113A 48%, #0A0820 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px rgba(10, 8, 32, .45);
  flex: 0 0 auto;
}
.logo-mark img { width: 32px; height: 32px; display: block; }
.logo-mark svg { width: 32px; height: 32px; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo-txt b { font-size: 17px; font-weight: 800; letter-spacing: .4px; }
.logo-txt span { font-size: 10px; color: var(--muted); letter-spacing: 2.6px; text-transform: uppercase; }

/* ---- Logo 闪动（第二十九轮引入 / 第三十轮「慢一点、高级一点」） ----
   8s 一个循环，光仍然从左到右扫过，但整条时间线被拉长、强度整体压下来：
     0%  ~ 22%   静默（1.8s，什么都不动）
     22% ~ 68%   光带扫过（3.7s：标与站名扫过仍看得清，但不再「啪」地闪一下）
     68% ~ 100%  归位静默（2.6s）
   标上那道亮度脉冲是「闪」的关键——38px 的标太小，只靠光带在深底上几乎看不出来；
   第三十轮把它从 1.75×/saturate(1.5) 压到 1.28×/saturate(1.10)：够看出「亮了一下」，
   但不像灯。节奏上标先亮、0.30s 后亮到站名，所以那道光是「流过去」的，不是同时炸开。 */
.hdr .logo-mark {
  position: relative; overflow: hidden;
  animation: logoMarkGlow 8s ease-in-out infinite,
             logoFlash 8s ease-in-out infinite;
}
.hdr .logo-mark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%, rgba(255, 255, 255, .18) 42%,
    rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, .18) 58%, transparent 70%);
  transform: translateX(-120%);
  animation: logoStreak 8s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes logoMarkGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px rgba(10, 8, 32, .45); }
  44%      { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20), 0 6px 22px rgba(124, 108, 255, .42),
                         0 0 0 3px rgba(124, 108, 255, .10); }
}
@keyframes logoFlash {
  0%, 26%, 100% { filter: brightness(1) saturate(1); }
  44%           { filter: brightness(1.28) saturate(1.10); }
}
@keyframes logoStreak {
  0%, 22%   { transform: translateX(-120%); }
  68%, 100% { transform: translateX(120%); }
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hdr .logo-txt b {
    background-image:
      linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .10) 45%,
        var(--logo-flare) 50%, rgba(255, 255, 255, .10) 55%, transparent 62%),
      linear-gradient(135deg, var(--logo-name-a) 0%, var(--logo-name-b) 100%);
    background-size: 300% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat, no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: logoShine 8s cubic-bezier(.4, 0, .6, 1) .30s infinite;
  }
}
@keyframes logoShine {
  0%, 22%   { background-position: 0% 0, 0 0; }
  68%, 100% { background-position: 100% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr .logo-mark, .hdr .logo-mark::after, .hdr .logo-txt b { animation: none; }
  .hdr .logo-mark::after { display: none; }
}

.nav { display: flex; align-items: center; gap: 3px; flex: 1 1 auto; overflow: hidden; }
.nav a {
  padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--text-2); white-space: nowrap; transition: .16s;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-700); }
.nav a.on { background: var(--brand-soft); color: var(--brand-700); font-weight: 600; }

.hdr-act { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.inp-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px;
  flex: 0 1 196px; min-width: 0;
  background: var(--bg-deep); border: 1px solid transparent;
  border-radius: 11px; transition: .18s;
}
.inp-search:focus-within { background: var(--raise-2); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,108,255,.18); }
.inp-search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.inp-search input { border: 0; background: none; outline: 0; width: 100%; min-width: 0; font-size: 13.5px; color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 17px; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: .18s; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,.34); }
.btn-ghost { background: var(--raise); color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd4e4; color: var(--text); }
.btn-soft { background: var(--brand-soft); color: var(--brand-700); }
.btn-soft:hover { background: #E3E7FF; }
.btn-gold { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 22px rgba(245,158,11,.30); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 9px; }

/* ---------- Hero（动态实景：办公桌 · 城市天际线 · 日照金山） ---------- */
.hero {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  background-color: #08131F;
  color: #fff; padding: 66px 0 112px;
}
/* 实景照片层：Ken Burns 缓慢推拉。inset 留出余量，保证推拉时永不露边 */
.hero-bg {
  position: absolute; inset: -5%; z-index: 0;
  background-image: url(../img/hero-desk.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 46%;
  transform-origin: 50% 54%;
  animation: heroKen 44s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKen {
  0%   { transform: scale(1.05) translate3d(-1.5%, -1.0%, 0); }
  100% { transform: scale(1.17) translate3d(1.9%, 1.2%, 0); }
}
/* 日出方向：暖光呼吸（screen 混合，像阳光真的在变强变弱） */
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(430px 310px at 12% 31%, rgba(255,198,124,.34), transparent 72%);
  animation: sunBreathe 8.5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes sunBreathe {
  from { opacity: .5; transform: scale(1); }
  to   { opacity: 1;  transform: scale(1.14); }
}
/* 色彩分级 + 上下压暗：保证白色文案始终可读 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(820px 420px at 15% 4%, rgba(79,70,229,.40), transparent 64%),
    radial-gradient(660px 360px at 88% 4%, rgba(14,165,233,.24), transparent 62%),
    linear-gradient(180deg, rgba(4,10,22,.66) 0%, rgba(4,10,22,.34) 42%, rgba(4,10,22,.86) 100%);
  animation: heroFlow 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroFlow {
  0%   { transform: translate3d(-1.4%, -0.8%, 0) scale(1.01); }
  100% { transform: translate3d(1.4%, 1.0%, 0) scale(1.06); }
}
/* 极淡网格纹理（照片背景下只留一点点科技感） */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 18%, #000 8%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 8%, transparent 76%);
}
/* 暮色浮尘 / 城市灯火：暖白光点上浮 */
.hero-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-fx i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,224,182,.85), rgba(255,224,182,0) 70%);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(26px) scale(.7); opacity: 0; }
  18%  { opacity: .8; }
  80%  { opacity: .3; }
  100% { transform: translateY(-200px) scale(1.3); opacity: 0; }
}
.hero .wave {
  position: absolute; left: -2%; right: -2%; bottom: -1px; z-index: 3;
  width: 104%; height: 62px; display: block;
  animation: waveShift 14s ease-in-out infinite alternate;
}
@keyframes waveShift {
  from { transform: translateX(-1.4%); }
  to   { transform: translateX(1.4%); }
}
.hero .wave path { fill: var(--bg); }
.hero-in { position: relative; z-index: 3; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  font-size: 12.5px; font-weight: 500; backdrop-filter: blur(8px); margin-bottom: 22px;
}
.hero-badge i {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 999px; background: var(--grad-warm); font-style: normal; font-size: 11px;
}
.hero h1 {
  margin: 0 0 14px; font-size: 46px; line-height: 1.2; font-weight: 800;
  letter-spacing: -.6px;
}
.hero h1 em {
  font-style: normal; background: linear-gradient(120deg, #A5B4FC, #C4B5FD 40%, #FBCFE8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { margin: 0 0 34px; color: rgba(255,255,255,.66); font-size: 15.5px; }

.search-big {
  max-width: 668px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.97); border-radius: 17px; padding: 9px 9px 9px 20px;
  box-shadow: 0 22px 54px rgba(9,10,35,.44);
}
.search-big svg.ic { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.search-big input { flex: 1; border: 0; outline: 0; background: none; font-size: 15.5px; color: var(--text); height: 40px; }
.search-big input::placeholder { color: #A6AEC2; }
.search-big .btn { height: 44px; padding: 0 26px; border-radius: 12px; font-size: 15px; }

.hot-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; align-items: center; }
.hot-row .lbl { color: rgba(255,255,255,.45); font-size: 12.5px; margin-right: 2px; }
.hot-row a {
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82); transition: .16s;
}
.hot-row a:hover { background: rgba(255,255,255,.20); color: #fff; transform: translateY(-1px); }

.hero-stats {
  position: relative; z-index: 9; margin-top: -74px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.hstat {
  background: var(--card); border-radius: var(--r-lg); padding: 20px 22px;
  box-shadow: var(--sh-2); border: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 15px;
  transition: .2s;
}
.hstat:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.hstat .ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
}
.hstat .ic svg { width: 23px; height: 23px; }
.hstat b { display: block; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; }
.hstat span { font-size: 12.5px; color: var(--muted); }

/* ---------- Quick entries ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.qcard {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 20px; display: flex; align-items: center; gap: 15px;
  box-shadow: var(--sh-1); transition: .2s;
}
.qcard:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--hover-line); }
.qcard .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.qcard .ic svg { width: 24px; height: 24px; }
.qcard b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.qcard span { font-size: 12.5px; color: var(--muted); }
.qcard .arw { margin-left: auto; color: var(--muted); transition: .2s; }
.qcard:hover .arw { color: var(--brand); transform: translateX(3px); }

/* ---------- Notice ---------- */
.notice {
  margin-top: 20px; display: flex; align-items: center; gap: 12px;
  background: var(--notice-bg);
  border: 1px solid var(--notice-bd); border-radius: var(--r-md);
  padding: 11px 18px; font-size: 13.5px; color: var(--notice-fg);
}
.notice .tag {
  background: var(--grad-warm); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 7px; flex: 0 0 auto; letter-spacing: .3px;
}
.notice .txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Section ---------- */
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 {
  margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 10px;
}
.sec-head h2::before {
  content: ""; width: 4px; height: 19px; border-radius: 3px; background: var(--grad-brand);
}
.sec-head .more { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; transition: .16s; }
.sec-head .more:hover { color: var(--brand); }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid.g5 { grid-template-columns: repeat(5, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1); transition: .22s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--hover-line); }
.card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-deep); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.card:hover .thumb img { transform: scale(1.055); }
.card .thumb .badge {
  position: absolute; left: 9px; top: 9px; z-index: 2;
  padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 700;
  background: rgba(6,8,16,.74); color: #fff; backdrop-filter: blur(6px);
  letter-spacing: .2px;
}
.card .thumb .badge.paid { background: rgba(245,158,11,.94); }
.card .body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.card .ttl {
  font-size: 13.8px; font-weight: 600; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 41px; margin-bottom: 9px;
}
.card:hover .ttl { color: var(--brand-700); }
.card .meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); padding-top: 9px; border-top: 1px dashed var(--line);
}
.card .meta .cat { display: flex; align-items: center; gap: 5px; }
.card .meta .cat i { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); font-style: normal; }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--sk-1) 25%, var(--sk-2) 37%, var(--sk-1) 63%); background-size: 400% 100%; animation: sk 1.3s ease-in-out infinite; }
.sk-thumb { aspect-ratio: 16/10; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 9px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Main + sidebar ---------- */
.main-wrap { display: grid; grid-template-columns: 1fr 316px; gap: 24px; margin-top: 40px; align-items: start; }

.side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 18px; }

.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.panel-hd {
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14.5px; font-weight: 700;
}
.panel-hd .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.panel-bd { padding: 15px 18px; }

.promo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--grad-ink); color: #fff; padding: 22px;
  box-shadow: var(--sh-2);
}
.promo::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -62px; top: -62px;
  border-radius: 999px; background: radial-gradient(circle, rgba(168,85,247,.62), transparent 68%);
}
.promo .p-tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px;
  background: var(--grad-warm); font-weight: 700; margin-bottom: 12px;
}
.promo h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; position: relative; }
.promo p { margin: 0 0 16px; font-size: 12.8px; color: rgba(255,255,255,.70); position: relative; }
.promo .price { font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.promo .price small { font-size: 14px; font-weight: 600; }
.promo .btn { position: relative; margin-top: 14px; width: 100%; }

.rank-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.rank-item + .rank-item { border-top: 1px dashed var(--line); }
.rank-no {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  background: var(--bg-deep); color: var(--muted);
}
.rank-item:nth-child(1) .rank-no { background: var(--grad-warm); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg,#94A3B8,#64748B); color:#fff; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg,#D9A06A,#B4763E); color:#fff; }
.rank-item .r-ava { width: 30px; height: 30px; border-radius: 999px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.rank-item .r-tx { flex: 1; min-width: 0; }
.rank-item .r-tx b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .r-tx span { font-size: 11.5px; color: var(--muted); }
.rank-item .r-val { font-size: 12.5px; font-weight: 700; color: var(--accent); flex: 0 0 auto; }

.cat-chip {
  display: block; padding: 9px 13px; border-radius: 11px; font-size: 13.5px;
  color: var(--text-2); transition: .16s; margin-bottom: 3px;
  display: flex; align-items: center; justify-content: space-between;
}
.cat-chip:hover { background: var(--brand-soft); color: var(--brand-700); }
.cat-chip.on { background: var(--brand-soft); color: var(--brand-700); font-weight: 600; }
.cat-chip .n { font-size: 11.5px; color: var(--muted); }
.cat-chip.sub { padding-left: 24px; font-size: 13px; }

/* ---------- List page ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: #CDD3E2; }

.page-hd { padding: 18px 0 4px; }
.page-hd h1 { margin: 0 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.4px; }
.page-hd p { margin: 0; color: var(--muted); font-size: 13.5px; }

.filter-bar {
  margin-top: 18px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  box-shadow: var(--sh-1);
}
.fgroup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fgroup .fl { font-size: 12.5px; color: var(--muted); }
.fbtn {
  padding: 5px 13px; border-radius: 9px; font-size: 12.8px; color: var(--text-2);
  background: var(--bg-deep); transition: .16s;
}
.fbtn:hover { background: #E4E8F5; }
.fbtn.on { background: var(--grad-brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(79,70,229,.25); }

.pager { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 34px 0 10px; flex-wrap: wrap; }
.pager button, .pager a {
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 10px;
  background: var(--raise); border: 1px solid var(--line); color: var(--text-2);
  font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; transition: .16s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--grad-brand); border-color: transparent; color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .42; cursor: not-allowed; }
.pager .dots { color: var(--muted); padding: 0 2px; }

.empty { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty svg { width: 62px; height: 62px; margin-bottom: 14px; color: #CDD3E2; }
.empty b { display: block; font-size: 16px; color: var(--text-2); margin-bottom: 6px; }

/* ---------- Detail ---------- */
.dt-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.dt-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.dt-hero { position: relative; aspect-ratio: 16/8; background: var(--bg-deep); overflow: hidden; }
.dt-hero img { width: 100%; height: 100%; object-fit: cover; }
.dt-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(15,22,41,.80)); }
.dt-hero .cap { position: absolute; left: 26px; right: 26px; bottom: 22px; color: #fff; z-index: 2; }
.dt-hero .cap h1 { margin: 0 0 9px; font-size: 24px; line-height: 1.42; font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.36); }
.dt-hero .cap .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dt-hero .cap .tags span {
  padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.20);
}
.dt-body { padding: 24px 26px 28px; }
.dt-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border-radius: var(--r-md); overflow: hidden; margin-bottom: 24px; }
.dt-info div { background: var(--card); padding: 14px 16px; }
.dt-info span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.dt-info b { font-size: 14px; font-weight: 700; }
.dt-sec-h { font-size: 15.5px; font-weight: 800; margin: 0 0 13px; display: flex; align-items: center; gap: 9px; }
.dt-sec-h::before { content: ""; width: 3.5px; height: 16px; border-radius: 3px; background: var(--grad-brand); }
.dt-desc { color: var(--text-2); font-size: 14px; line-height: 1.9; }
.dt-desc p { margin: 0 0 13px; }

.dl-box {
  margin-top: 24px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid #FFE7BE; background: linear-gradient(180deg,#FFFDF7,#FFFAF0);
}
.dl-box .hd { padding: 13px 18px; background: linear-gradient(90deg,#FFF4E0,#FFFAF2); font-size: 13.5px; font-weight: 700; color: #96601A; border-bottom: 1px solid #FFEBCB; }
.dl-box .bd { padding: 18px; }
.dl-link {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 11px;
  background: var(--raise); border: 1px solid var(--line); font-size: 13.5px; transition: .16s;
}
.dl-link:hover { border-color: var(--accent); box-shadow: 0 6px 16px rgba(245,158,11,.14); }
.dl-link .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.dl-link .tx { flex: 1; min-width: 0; }
.dl-link .tx b { display: block; font-size: 13.5px; }
.dl-link .tx span { font-size: 11.8px; color: var(--muted); }

/* 下载门：已解锁（站长 / 会员） */
.dl-box.on { border-color: rgba(52,199,123,.45); background: linear-gradient(180deg, rgba(52,199,123,.09), rgba(52,199,123,.02)); }
.dl-box.on .hd { background: linear-gradient(90deg, rgba(52,199,123,.20), rgba(52,199,123,.06)); color: #10714A; border-bottom-color: rgba(52,199,123,.30); }
.dl-box.on .dl-link { border-color: rgba(52,199,123,.45); }
.dl-out { margin-top: 12px; }
.dl-out .dl-none {
  font-size: 12.5px; color: var(--muted); background: var(--raise);
  border: 1px dashed var(--line); border-radius: 11px; padding: 12px 14px;
}
.dl-out .dl-ok {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--raise); border: 1px solid rgba(52,199,123,.45);
  border-radius: 11px; padding: 12px 14px;
}
.dl-out .dl-ok .k {
  font-size: 11.5px; font-weight: 700; color: #10714A;
  background: rgba(52,199,123,.16); padding: 3px 8px; border-radius: 6px;
}
.dl-out .dl-ok a { flex: 1 1 240px; min-width: 0; font-size: 12.5px; color: var(--brand); word-break: break-all; }
html:not([data-theme="light"]) .dl-box.on { background: linear-gradient(180deg, rgba(52,199,123,.11), rgba(52,199,123,.02)); }
html:not([data-theme="light"]) .dl-box.on .hd { color: #6EE7A8; }
html:not([data-theme="light"]) .dl-out .dl-ok .k { color: #6EE7A8; }

/* 获取下载地址 · 中转落地面（所有身份共用一个面板，尾部动作按身份变） */
.dlc-hd { position: relative; overflow: hidden; padding: 24px 26px 20px; background: var(--grad-ink); color: #fff; }
.dlc-hd::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -60px; top: -74px;
  border-radius: 999px; background: radial-gradient(circle, rgba(56,189,248,.46), transparent 68%);
}
.dlc-hd h3 { position: relative; margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.dlc-hd p { position: relative; margin: 0; font-size: 12.6px; color: rgba(255,255,255,.66); }
.dlc-bd { padding: 20px 26px 24px; }
.dlc-qrs { display: flex; gap: 13px; }
.dlc-qr { flex: 1 1 0; min-width: 0; text-align: center; }
.dlc-qr img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 5px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.dlc-qr span { display: block; margin-top: 7px; font-size: 11.8px; color: var(--muted); }
.dlc-qr:hover span { color: var(--brand); }
.dlc-tip {
  margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: 12.2px; line-height: 1.7;
  color: var(--muted); background: var(--raise); border: 1px dashed var(--line);
}
.dlc-tip b { color: var(--brand); }
.dlc-stage { margin-top: 14px; }
.dlc-wait {
  display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-radius: 11px;
  font-size: 12.8px; color: var(--muted); background: var(--raise); border: 1px dashed var(--line);
}
.dlc-wait b { color: var(--brand); font-variant-numeric: tabular-nums; }
.dlc-ring {
  flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--brand); animation: dlspin .8s linear infinite;
}
@keyframes dlspin { to { transform: rotate(360deg); } }
.dlc-cta {
  display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center;
  padding: 16px 14px; border-radius: 11px; background: var(--raise); border: 1px dashed var(--line);
}
.dlc-cta-tx { font-size: 12.8px; color: var(--text-2); }
.dlc-cta .btn { width: 100%; }
.dlc-join { margin-top: 10px; font-size: 12.2px; line-height: 1.7; color: var(--muted); }
.dlc-join a { color: var(--brand); font-weight: 700; }
@media (max-width: 520px) {
  /* 375 下卡片会被 .modal 的 20px 内边距压到 335px，三个码平铺只剩 ~85px —— 收到 94px 才好扫 */
  .dlc-hd { padding: 20px 18px 16px; }
  .dlc-bd { padding: 16px 18px 20px; }
  .dlc-qrs { gap: 9px; }
  .dlc-qr span { font-size: 11px; }
}

.rel-item { display: flex; gap: 11px; padding: 9px 0; }
.rel-item + .rel-item { border-top: 1px dashed var(--line); }
.rel-item img { width: 78px; height: 50px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; background: var(--bg-deep); }
.rel-item .tx { flex: 1; min-width: 0; }
.rel-item .tx b { font-size: 12.8px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rel-item .tx span { font-size: 11.5px; color: var(--muted); }
.rel-item:hover .tx b { color: var(--brand-700); }

/* ---------- Footer ---------- */
.ftr { margin-top: 64px; background: var(--grad-ink); color: rgba(255,255,255,.62); padding: 46px 0 26px; }
.ftr-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09); }
.ftr-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.ftr-brand .logo-txt b { color: #fff; }
.ftr-brand .logo-txt span { color: rgba(255,255,255,.42); }
.ftr p { margin: 0; font-size: 13px; line-height: 1.85; }
.ftr h4 { margin: 0 0 14px; font-size: 14px; color: #fff; font-weight: 700; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 9px; font-size: 13px; }
.ftr li a:hover { color: #fff; }
.ftr-bot { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.ftr-icp { display: inline-flex; align-items: center; gap: 12px; }
.ftr-icp a { color: var(--muted); text-decoration: none; transition: color .2s; }
.ftr-icp a:hover { color: var(--brand-700); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px; border-radius: 13px;
  background: var(--raise); box-shadow: var(--sh-3); display: grid; place-items: center;
  color: var(--text-2); z-index: 70; opacity: 0; pointer-events: none; transition: .24s;
}
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover { color: var(--brand); transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid, .grid.g5 { grid-template-columns: repeat(3, 1fr); }
  .main-wrap { grid-template-columns: 1fr 288px; }
  .nav a:nth-child(n+7) { display: none; }
}
@media (max-width: 980px) {
  .hero h1 { font-size: 34px; }
  .hero-stats, .quick { grid-template-columns: repeat(2, 1fr); }
  /* 单列必须写 `minmax(0, 1fr)`，不能裸写 `1fr`！
     裸 `1fr` = `minmax(auto, 1fr)`，`auto` 作最小值时取网格子项的 **min-content 贡献**，
     本页 `section.sec > .grid > a.card` 的 min-content 一路把列撑到 **894.578px**（容器盒仍 347px），
     于是首页在 375 视口下 `scrollWidth=909`、横向溢出 534px。改成 minmax(0,1fr) 列宽锁回 347px，
     卡片自己回流成 164.5px × 2，**既无 overflow 也没有任何内容被裁掉**。 */
  .main-wrap, .dt-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .inp-search { flex-basis: 150px; }
  .nav { display: none; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 14px; }
  .grid, .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0 92px; }
  .hero h1 { font-size: 26px; }
  .search-big { flex-wrap: wrap; padding: 10px; }
  .dt-info { grid-template-columns: repeat(2, 1fr); }
  .hdr-act .btn-ghost, .hdr-act .inp-search { display: none; }
  .ftr-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   滚动组件 (Marquee / Roll / Ticker)
   ========================================================================== */

/* --- 公告跑马灯 --- */
.marquee { flex: 1; overflow: hidden; position: relative; height: 22px; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 26px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #FFFDF8, rgba(255,253,248,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #FFFDF8, rgba(255,253,248,0)); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 52px; white-space: nowrap;
  will-change: transform; animation: marq 97s linear infinite; /* 兜底值，实际由 JS 按 18px/s 反推 */
}
.notice:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; }
.marquee-track span::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); flex: 0 0 auto;
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- 竖向自动翻滚列表 --- */
.roll { height: 296px; overflow: hidden; position: relative; }
.roll-track { will-change: transform; }
.roll-item { display: flex; gap: 10px; align-items: center; padding: 7px 0; }
.roll-item + .roll-item { border-top: 1px dashed var(--line); }
.roll-item img {
  width: 64px; height: 41px; border-radius: 8px; object-fit: cover;
  flex: 0 0 auto; background: var(--bg-deep);
}
.roll-item .tx { flex: 1; min-width: 0; }
.roll-item .tx b {
  display: block; font-size: 12.8px; font-weight: 600; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.roll-item .tx span { font-size: 11.5px; color: var(--muted); }
.roll-item:hover .tx b { color: var(--brand-700); }
.roll .fade-b {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--card));
}

/* --- 横向快讯带 --- */
.tickerbar {
  margin-top: 18px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden;
  display: flex; align-items: center; height: 46px;
}
.tickerbar .lb {
  flex: 0 0 auto; height: 100%; display: flex; align-items: center; gap: 6px;
  padding: 0 16px; background: var(--grad-brand); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
}
.tickerbar .lb svg { width: 14px; height: 14px; }
.tickerbar .tk { flex: 1; overflow: hidden; position: relative; height: 100%; }
.tickerbar .tk-track {
  display: inline-flex; align-items: center; gap: 34px; height: 100%;
  white-space: nowrap; will-change: transform;
  animation: marq 520s linear infinite; /* 兜底值，实际由 JS 按 34px/s 反推 */
}
.tickerbar:hover .tk-track { animation-play-state: paused; }
.tickerbar .tk-track a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); transition: color .15s;
}
.tickerbar .tk-track a:hover { color: var(--brand-700); }
.tickerbar .tk-track a i {
  font-style: normal; font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 2px 7px; border-radius: 6px;
}

/* ==========================================================================
   登录 / 公众号关注弹窗
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(6,12,26,.64); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal-card {
  position: relative; z-index: 2; width: 100%; max-width: 442px; max-height: 92vh; overflow: auto;
  background: var(--card); border-radius: 24px; box-shadow: 0 30px 80px rgba(4,10,26,.46);
  animation: pop .34s cubic-bezier(.2,.9,.3,1.18);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.965); } to { opacity: 1; transform: none; } }
.modal-x {
  position: absolute; right: 15px; top: 15px; z-index: 3;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff; transition: .16s;
}
.modal-x:hover { background: rgba(255,255,255,.30); }
.modal-x svg { width: 15px; height: 15px; }

.lg-hd { position: relative; overflow: hidden; padding: 26px 26px 22px; background: var(--grad-ink); color: #fff; }
.lg-hd::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -60px; top: -74px;
  border-radius: 999px; background: radial-gradient(circle, rgba(56,189,248,.46), transparent 68%);
}
.lg-hd h3 { position: relative; margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.lg-hd p { position: relative; margin: 0; font-size: 12.8px; color: rgba(255,255,255,.66); }

.lg-body { display: flex; gap: 20px; padding: 22px 26px 4px; }
.lg-qr { flex: 0 0 auto; text-align: center; }
.lg-qr .qr-wrap {
  position: relative; width: 132px; height: 132px; border-radius: 14px;
  border: 1px solid var(--line); padding: 7px; background: #fff;
}
.lg-qr .qr-wrap img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.lg-qr .qr-wrap .scanline {
  position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan { 0% { top: 10px; } 50% { top: 118px; } 100% { top: 10px; } }
.lg-qr .qr-hint { display: block; margin-top: 9px; font-size: 11.5px; color: var(--muted); }
.lg-qr .qr-hint b { color: var(--brand); }

.lg-steps { flex: 1; min-width: 0; }
.lg-step { display: flex; gap: 10px; margin-bottom: 13px; }
.lg-step i {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-700);
  display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700;
}
.lg-step div { font-size: 12.8px; color: var(--text-2); line-height: 1.55; }
.lg-step div b { color: var(--accent); }

.lg-foot { padding: 16px 26px 24px; }
.lg-code { display: flex; gap: 9px; }
.lg-code input {
  flex: 1; height: 46px; padding: 0 16px; border-radius: 13px;
  border: 1.5px solid var(--line); outline: 0; font-size: 17px;
  letter-spacing: 5px; font-weight: 600; text-align: center; transition: .16s;
}
.lg-code input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.lg-code input::placeholder { letter-spacing: 0; font-size: 13.5px; font-weight: 400; }
.lg-code .btn { height: 46px; padding: 0 24px; border-radius: 13px; }

.lg-status {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); min-height: 20px;
}
.lg-status .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent); flex: 0 0 auto;
  animation: blink 1.3s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.lg-status.ok { color: var(--mint); }
.lg-status.ok .dot { background: var(--mint); animation: none; }
.lg-status.err { color: var(--rose); }
.lg-status.err .dot { background: var(--rose); animation: none; }
.lg-tip { margin-top: 10px; font-size: 11.5px; color: #A9B1C6; line-height: 1.7; }

/* 登录后的用户胶囊 */
.user-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px;
  padding: 0 13px 0 5px; border-radius: 999px; background: var(--bg-deep);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.user-pill .av {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700;
}
.user-pill .vip-tag {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--grad-warm); color: #fff;
}
.user-pill .vip-tag.admin { background: linear-gradient(135deg,#FB7185,#BE123C); }

@media (max-width: 520px) {
  .lg-body { flex-direction: column; align-items: center; }
  .lg-steps { width: 100%; }
}

/* ==========================================================================
   立体感增强 & 动效（山河创业网）
   ========================================================================== */

/* 卡片：多层阴影 + 内侧高光边 */
.card {
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .045),
    0 4px 10px rgba(16, 24, 40, .05),
    inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.card:hover {
  box-shadow:
    0 18px 40px rgba(16, 24, 40, .135),
    0 6px 14px rgba(16, 24, 40, .06),
    inset 0 0 0 1px rgba(255, 255, 255, .75);
}
.card .thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 32%, rgba(8,14,28,.20) 100%);
}

/* 统计卡 / 快捷入口 / 面板：抬升质感 */
.hstat, .qcard {
  box-shadow:
    0 2px 4px rgba(16, 24, 40, .05),
    0 10px 22px rgba(16, 24, 40, .055),
    inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.hstat:hover, .qcard:hover {
  box-shadow:
    0 20px 42px rgba(16, 24, 40, .14),
    0 6px 16px rgba(16, 24, 40, .06),
    inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.panel, .filter-bar, .tickerbar {
  box-shadow:
    0 1px 3px rgba(16, 24, 40, .045),
    0 8px 20px rgba(16, 24, 40, .05),
    inset 0 0 0 1px rgba(255, 255, 255, .55);
}

/* 区块标题左侧渐变条加光影 */
.sec-head h2::before {
  box-shadow: 0 2px 8px rgba(79, 70, 229, .45);
}

/* 顶部导航加一层极淡投影，浮起来 */
.hdr { box-shadow: 0 1px 0 rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .045); }

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-glow, .hero::before, .hero-fx i, .hero .wave,
  .marquee-track, .tickerbar .tk-track, .card .thumb img {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   暗色主题细化（Dark Premium）
   仅在暗色下生效的观感调整；使用 html:not([data-theme="light"]) 限定。
   ========================================================================== */

/* --- 头部：更强的玻璃感与投影 --- */
html:not([data-theme="light"]) .hdr {
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .055), 0 14px 40px -22px rgba(0, 0, 0, .95);
}

/* --- 顶部小搜索：暗色内陷 --- */
html:not([data-theme="light"]) .inp-search input::placeholder { color: #5C6480; }

/* --- Hero 大搜索框：玻璃质感 --- */
html:not([data-theme="light"]) .search-big {
  background: rgba(11, 13, 23, .74);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255, 255, 255, .085);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html:not([data-theme="light"]) .search-big input { color: var(--text); }
html:not([data-theme="light"]) .search-big input::placeholder { color: #666E8C; }

/* --- Hero 照片：暗色下略压暗、加饱和，夜色更浓 --- */
html:not([data-theme="light"]) .hero-bg {
  filter: saturate(1.06) brightness(.9) contrast(1.04);
}
html:not([data-theme="light"]) .hero::before {
  background:
    radial-gradient(820px 420px at 15% 2%, rgba(124, 108, 255, .34), transparent 66%),
    radial-gradient(640px 360px at 88% 0%, rgba(56, 189, 248, .18), transparent 64%),
    linear-gradient(180deg, rgba(4, 6, 14, .62) 0%, rgba(5, 7, 16, .32) 42%, rgba(7, 8, 15, .92) 100%);
}

/* --- 卡片：内高光边，暗色下更立体 --- */
html:not([data-theme="light"]) .card,
html:not([data-theme="light"]) .hstat,
html:not([data-theme="light"]) .qcard,
html:not([data-theme="light"]) .panel,
html:not([data-theme="light"]) .tickerbar {
  box-shadow: var(--sh-1), var(--card-inset);
}
html:not([data-theme="light"]) .card:hover,
html:not([data-theme="light"]) .hstat:hover,
html:not([data-theme="light"]) .qcard:hover {
  box-shadow: var(--sh-3), var(--card-inset);
}

/* --- 分区标题竖条：发光 --- */
html:not([data-theme="light"]) .sec-head h2::before {
  box-shadow: 0 0 16px rgba(124, 108, 255, .75);
}

/* --- 侧栏会员卡：品牌紫渐变（对照参考站） --- */
.promo { background: var(--promo-bg); }
html:not([data-theme="light"]) .promo {
  box-shadow: 0 18px 44px -14px rgba(124, 60, 220, .62), var(--card-inset);
}
/* 卡片底部权益三点 */
.promo .p-feats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-top: 16px; padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.promo .p-feats div { text-align: center; }
.promo .p-feats svg { width: 19px; height: 19px; margin: 0 auto 6px; display: block; opacity: .92; }
.promo .p-feats span { font-size: 11px; color: rgba(255, 255, 255, .78); }

/* --- 排行榜序号 --- */
html:not([data-theme="light"]) .rank-no { background: var(--card-2); }

/* --- 导航当前项 --- */
html:not([data-theme="light"]) .nav a.on {
  background: rgba(124, 108, 255, .17);
  color: #CCC4FF;
  box-shadow: inset 0 0 0 1px rgba(124, 108, 255, .22);
}

/* --- 页脚分区标题 --- */
html:not([data-theme="light"]) .ftr-top h4 { color: #C3CAE0; }

/* --- 滚动条 --- */
html:not([data-theme="light"]) ::-webkit-scrollbar { width: 11px; height: 11px; }
html:not([data-theme="light"]) ::-webkit-scrollbar-track { background: #0B0D18; }
html:not([data-theme="light"]) ::-webkit-scrollbar-thumb {
  background: #262B40; border-radius: 999px; border: 3px solid #0B0D18;
}
html:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover { background: #363D58; }

/* --- 主题切换按钮 --- */
.themebtn {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--text-2);
  background: var(--raise); border: 1px solid var(--line); transition: .18s;
}
.themebtn:hover { color: var(--brand-700); border-color: var(--hover-line); }
.themebtn svg { width: 17px; height: 17px; display: block; }
.themebtn .i-sun { display: none; }
html[data-theme="light"] .themebtn .i-moon { display: none; }
html[data-theme="light"] .themebtn .i-sun { display: block; }

/* ==========================================================================
   站长加盟（首页通栏板块 + join.html 详情页）
   ========================================================================== */

/* --- 首页通栏横幅 --- */
.join-banner {
  position: relative; overflow: hidden; margin-top: 26px;
  border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(118deg, #4B39DC 0%, #7C3AED 48%, #A855F7 100%);
  box-shadow: 0 20px 46px rgba(79, 70, 229, .34);
  display: flex; align-items: center; gap: 22px; padding: 22px 28px;
}
.join-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 260px at 88% 8%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(420px 220px at 2% 98%, rgba(255, 176, 32, .30), transparent 62%);
}
.join-banner > * { position: relative; z-index: 1; }
.jb-l { flex: 1 1 auto; min-width: 0; }
.jb-tag {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .30);
}
.jb-l h2 { margin: 12px 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -.4px; line-height: 1.28; }
.jb-l h2 em { font-style: normal; color: #FFD98A; }
.jb-l p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.jb-r { flex: 0 0 auto; text-align: center; }
.join-banner .btn-gold { box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }

/* --- join.html 首屏 --- */
.join-hero {
  position: relative; overflow: hidden; padding: 54px 0 40px; text-align: center;
  background: var(--grad-ink); color: #fff;
}
.join-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 18% 0%, rgba(124, 58, 237, .55), transparent 62%),
    radial-gradient(520px 300px at 84% 8%, rgba(245, 158, 11, .32), transparent 60%);
}
.join-hero .in { position: relative; z-index: 2; }
.join-hero .jh-tag {
  display: inline-block; padding: 5px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 2px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
}
.join-hero h1 { margin: 16px 0 12px; font-size: 36px; font-weight: 800; letter-spacing: -.6px; }
.join-hero h1 em { font-style: normal; color: #FFD98A; }
.join-hero p { margin: 0 auto; max-width: 720px; color: rgba(255, 255, 255, .70); font-size: 15px; line-height: 1.8; }

/* --- 加盟内容卡片 --- */
.join-sec { margin-top: 28px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.join-sec > h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -.3px;
}
.join-sec > h2::before {
  content: ""; width: 5px; height: 21px; border-radius: 3px; background: var(--grad-brand);
}
.join-sec > h2 small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.join-lead { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.join-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 20px 22px; box-shadow: var(--sh-1); font-size: 14.5px; color: var(--text-2); line-height: 1.95;
}
.join-card p { margin: 0 0 12px; }
.join-card p:last-child { margin-bottom: 0; }
.join-card b { color: var(--text); }
.join-card .hl { color: var(--accent); font-weight: 700; }

/* --- 长页两栏：左侧目录 + 正文（目录 sticky，手机变横向滚动条） --- */
.join-wrap { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 26px; }
.join-toc { position: sticky; top: calc(var(--nav-h) + 18px); }
.join-toc h4 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.join-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.join-toc a {
  display: block; padding: 7px 11px; border-radius: 9px; font-size: 13px; line-height: 1.5;
  color: var(--text-2); border-left: 2px solid transparent; transition: .16s;
}
.join-toc a:hover { background: var(--raise); color: var(--text); }
.join-toc a.on { background: var(--brand-soft); color: var(--brand-700); border-left-color: var(--brand); font-weight: 600; }

/* --- 赚钱方式 6 卡 --- */
.jm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jm { background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; }
.jm b { display: flex; align-items: center; font-size: 14.5px; color: var(--text); margin-bottom: 7px; }
.jm .n {
  flex: none; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 8px;
  border-radius: 7px; background: var(--brand-soft); color: var(--brand-700);
  font-size: 12px; font-weight: 800; font-style: normal;
}
.jm span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* --- 加盟流程（有序步骤） --- */
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.join-steps li {
  position: relative; padding: 14px 18px 14px 54px; border-radius: var(--r-md);
  background: var(--raise); font-size: 13.8px; color: var(--text-2); line-height: 1.8;
}
.join-steps li::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--grad-brand); color: #fff; font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center;
}
.join-steps b { color: var(--text); }

/* --- 常见问题（details 折叠） --- */
.join-faq { display: grid; gap: 9px; }
.join-faq details { background: var(--raise); border-radius: var(--r-md); padding: 0 16px; }
.join-faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 14px 26px 14px 0;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.join-faq summary::-webkit-details-marker { display: none; }
.join-faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 12px;
  font-size: 17px; font-weight: 700; color: var(--muted); line-height: 1.4;
}
.join-faq details[open] summary::after { content: "−"; }
.join-faq p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.9; }

/* --- 「选加盟站看这几点」对照表 --- */
.join-tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); }
.join-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.join-tbl th, .join-tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.join-tbl th { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.join-tbl td { color: var(--text-2); line-height: 1.8; }
.join-tbl td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.join-tbl tr:last-child td { border-bottom: 0; }

/* 「你会拿到」紧凑清单：直接用 .join-cond 的 ✓ 列表，不再用 8 个卡片 */
.join-gets { margin-top: 18px; }
.join-gets > b { display: block; margin-bottom: 10px; color: var(--text); font-size: 14.5px; }
.join-note { margin-top: 18px !important; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 13.5px; color: var(--muted); }

.join-price {
  display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch;
}
.join-price .amt {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px 24px; color: #fff;
  background: linear-gradient(150deg, #F59E0B 0%, #F97316 55%, #EA580C 100%);
  box-shadow: 0 16px 38px rgba(245, 158, 11, .32); text-align: center;
}
.join-price .amt small { display: block; font-size: 13px; opacity: .88; letter-spacing: 1px; }
.join-price .amt .v { font-size: 46px; font-weight: 800; letter-spacing: -2px; line-height: 1.15; }
.join-price .amt .v i { font-size: 22px; font-style: normal; font-weight: 700; vertical-align: super; }
.join-price .amt .old { font-size: 13px; opacity: .82; text-decoration: line-through; }
.join-price .amt .note { margin-top: 12px; font-size: 12.5px; opacity: .92; }

/* --- 联系方式卡片 --- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-1); text-align: center; transition: .22s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--hover-line); }
.contact-card .qr {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: #fff; display: grid; place-items: center; padding: 12px;
}
.contact-card .qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.contact-card b { display: block; margin: 14px 0 4px; font-size: 15.5px; }
.contact-card span { font-size: 13px; color: var(--muted); }
.contact-card .no { display: block; margin-top: 6px; font-size: 13.5px; color: var(--brand-700); font-weight: 700; letter-spacing: .3px; }

/* QQ 卡：名片条 + 加好友二维码合成图（码的内容是 QQ 官方名片协议，
   手机 QQ 扫码直达名片页；按钮走 HY.addQQ 分流 tencent:// / mqq://，WPA 兜底） */
.contact-card.qq .qr { padding: 0; }
.contact-card .btn { margin-top: 14px; width: 100%; }
.btn-qq { background: linear-gradient(135deg, #12B7F5, #0A84D8); color: #fff; box-shadow: 0 8px 22px rgba(18, 183, 245, .30); }
.btn-qq:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(18, 183, 245, .40); }

/* --- 加盟条件清单 --- */
.join-cond { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.join-cond li {
  position: relative; padding: 11px 16px 11px 40px; border-radius: var(--r-md);
  background: var(--raise); font-size: 14px; color: var(--text-2);
}
.join-cond li::before {
  content: "✓"; position: absolute; left: 16px; top: 11px; color: var(--mint); font-weight: 800;
}

@media (max-width: 980px) {
  .join-banner { flex-direction: column; align-items: stretch; padding: 22px; }
  .jb-r { text-align: left; }
  .join-price { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  /* 长页改单栏：目录从「左侧 sticky」变「顶部横向胶囊条」 */
  .join-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .join-wrap > main, .join-toc { min-width: 0; }
  .join-toc { position: static; top: auto; }
  .join-toc h4 { display: none; }
  .join-toc ol {
    display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px 0 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .join-toc ol::-webkit-scrollbar { display: none; }
  .join-toc a {
    flex: none; white-space: nowrap; padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--card); font-size: 12.5px;
  }
  .join-toc a.on { border-color: var(--brand); }

  .jm-grid { grid-template-columns: repeat(2, 1fr); }
  .join-tbl td:first-child, .join-tbl th { white-space: normal; }
  .join-steps li { padding: 13px 16px 13px 50px; }
}
@media (max-width: 600px) {
  .join-hero h1 { font-size: 25px; }
  .jb-l h2 { font-size: 21px; }
  .join-hero { padding: 38px 0 30px; }

  .jm-grid { grid-template-columns: 1fr; }
  .join-sec { margin-top: 24px; }
  .join-sec h2 { font-size: 19px; }
  .join-price .amt { padding: 22px 20px; }
  .join-price .amt .v { font-size: 40px; }

  /* 3 列对照表窄屏堆成卡片：首列做标题，后两列用 data-label 起头 */
  .join-tbl.vs { display: block; font-size: 13px; }
  .join-tbl.vs thead { display: none; }
  .join-tbl.vs tbody, .join-tbl.vs tr, .join-tbl.vs td { display: block; }
  .join-tbl.vs tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .join-tbl.vs tr:last-child { border-bottom: 0; }
  .join-tbl.vs td { padding: 0; border-bottom: 0; }
  .join-tbl.vs td:first-child { margin-bottom: 8px; font-size: 14px; font-weight: 700; white-space: normal; }
  .join-tbl.vs td[data-label] { padding: 7px 0 0 0; }
  .join-tbl.vs td[data-label]::before {
    content: attr(data-label) "："; font-size: 12px; font-weight: 600; color: var(--muted);
  }
}

/* --- 导航「站长加盟」高亮 --- */
.nav a.nav-join { color: var(--accent); font-weight: 800; }
.nav a.nav-join:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.nav-join.on { background: var(--accent-soft); color: var(--accent); }

/* --- 页脚：数据摘要 + 联系方式 --- */
.ftr-meta { margin-top: 10px !important; font-size: 12.5px !important; color: rgba(255, 255, 255, .46) !important; }
.ftr-meta b { color: #FFD98A; font-size: 14px; }
.ftr-qrs { display: flex; gap: 9px; margin-bottom: 14px; }
.fqr { flex: 1 1 0; min-width: 0; text-align: center; display: block; }
.fqr img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 9px; background: #fff; border: 1px solid rgba(255, 255, 255, .16);
}
.fqr span { display: block; margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .50); }
.fqr:hover span { color: #fff; }
/* 页脚 QQ 卡片：现在有真二维码了（mqq:// 名片协议），直接复用 .fqr 样式；
   整张卡可点 → HY.addQQ 分流唤起 QQ（PC tencent:// / 手机 mqq:// / 兜底 WPA），见 app.js */

@media (min-width: 981px) {
  .ftr-cnt { min-width: 210px; }
  .ftr-top { grid-template-columns: 1.4fr .85fr .85fr 1.25fr; }
}
@media (max-width: 980px) {
  .ftr-qrs { max-width: 320px; }
}

/* ==========================================================================
   每日签到 · 领体验额度（第三十三轮）
   刻意送「体验额度」而不是会员天数：送天数等于会员白拿，29/180/398 的定价立刻站不住。
   额度只能花在站长圈定的体验池里，同一门课只扣一次（后端 (openid,pid) 唯一索引兜底）。
   ========================================================================== */
.ck-entry { position: relative; }
.ck-entry .ck-num {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 11px; font-weight: 700;
}
/* 未签到小红点：顶栏唯一能「把人拽进来」的东西，签完 setUser → mountHeader 自动消失 */
.ck-entry .ck-dot {
  position: absolute; right: -1px; top: -1px; width: 8px; height: 8px; border-radius: 999px;
  background: var(--rose); animation: ckDot 1.7s ease-in-out infinite;
}
@keyframes ckDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .42; transform: scale(.8); } }

/* ---- 顶栏渐进减负（第三十三轮加「签到」入口后重排；>1180px 完全不受影响）----
   加签到之前 681–980 这一档就已经顶破视口（768px 首页横向溢出 15px，登录态更早、更多），
   只是 980 断点两侧没有采样宽度、没人测到。这里按宽度分 5 档收，每一档都留余量，
   不靠某个宽度侥幸不溢出。压缩顺序按「信息价值」排：先间距 → 再身份/文案 → 再搜索框 → 最后站名。 */
.btn-vip .cta-mini { display: none; }

/* 档 1 · ≤1180：这一档原本就差 7px，先把间距收回来 */
@media (max-width: 1180px) {
  .hdr-act { gap: 8px; }
}

/* 档 2 · ≤980：平板。此档 .nav 已隐藏，把「签到 / 用户 / 会员」压到最小形态 */
@media (max-width: 980px) {
  .hdr-in { gap: 10px; }
  .hdr-act .btn-ghost.ck-entry { display: inline-flex; padding: 7px 9px; }
  .hdr-act .ck-entry > span:not(.ck-num):not(.ck-dot) { display: none; }
  .hdr-act .user-pill { font-size: 0; padding: 3px; gap: 0; }
  .hdr-act .user-pill .av { font-size: 13px; }
  .hdr-act .user-pill .vip-tag { display: none; }
  .hdr-act .btn-vip { padding: 0 10px; gap: 5px; }
  .hdr-act .btn-vip .cta-full { display: none; }
  .hdr-act .btn-vip .cta-mini { display: inline; }
}

/* 档 3 · ≤840：顶栏搜索框让位（首页有大搜索框、search.html 也在，能力不损失） */
@media (max-width: 840px) {
  .hdr-act .inp-search { display: none; }
}

/* 档 4 · ≤680：手机。站名缩小、去掉下面的 SHANHE 拉丁行 */
@media (max-width: 680px) {
  .logo { gap: 8px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 11px; }
  .logo-mark img, .logo-mark svg { width: 28px; height: 28px; }
  .logo-txt b { font-size: 14px; }
  .logo-txt > span { display: none; }
  .hdr-act { gap: 6px; }
}

/* 档 5 · ≤360：极小屏，只留 logo 图标 */
@media (max-width: 360px) {
  .logo-txt { display: none; }
}

.ck-card { max-width: 470px; }
.ck-hd { position: relative; overflow: hidden; padding: 24px 26px 18px; background: var(--grad-ink); color: #fff; }
.ck-hd::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -54px; top: -70px;
  border-radius: 999px; background: radial-gradient(circle, rgba(255,176,32,.40), transparent 68%);
}
.ck-hd h3 { position: relative; margin: 0 0 6px; font-size: 18.5px; font-weight: 800; }
.ck-hd p { position: relative; margin: 0; font-size: 12.6px; color: rgba(255,255,255,.68); line-height: 1.65; }
.ck-hd p b { color: #FFD98A; }

.ck-body { padding: 18px 22px 22px; }
.ck-quota {
  display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-radius: 13px;
  background: var(--accent-soft); border: 1px solid var(--notice-bd);
  font-size: 12.8px; color: var(--notice-fg);
}
.ck-quota b { font-size: 25px; font-weight: 800; letter-spacing: -.4px; color: var(--accent); }
.ck-quota b.pop { animation: ckPop .62s cubic-bezier(.2,.9,.3,1.4); }
.ck-quota i { font-style: normal; font-size: 12.5px; }
@keyframes ckPop { 0% { transform: scale(1); } 42% { transform: scale(1.42); } 100% { transform: scale(1); } }

.ck-week { display: grid; gap: 6px; margin-top: 14px; }
.ck-cell { border-radius: 11px; padding: 9px 1px 7px; text-align: center;
  background: var(--raise); border: 1px solid var(--line); transition: .18s; }
.ck-cell i { display: block; font-style: normal; font-size: 13px; font-weight: 800; color: var(--muted); }
.ck-cell i svg { width: 14px; height: 14px; }
.ck-cell span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.ck-cell.done { background: var(--brand-soft); border-color: rgba(124,108,255,.42); }
.ck-cell.done i { color: var(--brand-700); }
.ck-cell.now { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,108,255,.16); }
.ck-cell.now i { color: var(--text); }
.ck-cell.bonus { position: relative; }
.ck-cell.bonus::before {
  content: "奖"; position: absolute; right: 0; top: -7px;
  font-size: 9.5px; font-weight: 700; color: #fff; line-height: 1.5;
  background: var(--grad-warm); padding: 0 4px; border-radius: 5px;
}

.ck-btn { width: 100%; margin-top: 15px; }
.ck-btn.done { background: var(--brand-soft); color: var(--brand-700); box-shadow: none; cursor: default; }
.ck-note { margin-top: 10px; min-height: 17px; font-size: 12.2px; color: var(--muted); line-height: 1.65; }
.ck-note.ok { color: var(--mint); }
.ck-note.err { color: var(--rose); }

.ck-sec { margin-top: 18px; padding-top: 15px; border-top: 1px dashed var(--line);
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.ck-sec b { font-size: 14px; }
.ck-sec span { font-size: 11.5px; color: var(--muted); }
.ck-list { margin-top: 11px; display: grid; gap: 8px; }
.ck-item { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 12px;
  background: var(--raise); border: 1px solid var(--line); transition: .16s; }
.ck-item:hover { border-color: var(--brand); transform: translateY(-1px); }
.ck-item img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; background: var(--bg-deep); }
.ck-item .tx { flex: 1; min-width: 0; }
.ck-item .tx b { display: block; font-size: 12.8px; line-height: 1.45; max-height: 2.9em; overflow: hidden; }
.ck-item .tx span { display: block; margin-top: 4px; font-size: 11.2px; color: var(--muted); }
.ck-item .ck-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; padding: 3px 7px;
  border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.ck-load, .ck-empty { padding: 16px 0; text-align: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) {
  .ck-body { padding: 16px 15px 20px; }
  .ck-hd { padding: 20px 20px 15px; }
  .ck-week { gap: 4px; }
  .ck-cell { padding: 8px 1px 6px; border-radius: 9px; }
  .ck-cell span { font-size: 9px; }
  .ck-item img { width: 44px; height: 44px; }
}

/* 详情页：非会员但手上有体验额度 —— 把「买会员」软化成「先尝一口」 */
.dl-box.trial { border-color: rgba(124,108,255,.45); background: linear-gradient(180deg, rgba(124,108,255,.10), rgba(124,108,255,.02)); }
.dl-box.trial .hd {
  background: linear-gradient(90deg, rgba(124,108,255,.20), rgba(124,108,255,.05));
  color: var(--brand-700); border-bottom-color: rgba(124,108,255,.28);
}
.dl-box.trial .dl-link { border-color: rgba(124,108,255,.40); }
html:not([data-theme="light"]) .dl-box.trial .hd { color: #B9ADFF; }
.dl-out .dl-trial { flex: 1 1 100%; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
