/* =============================================================================
   江南70 官网 · style.css
   预设 P19「玄铁赤焰」—— 冷铁灰黑底 + 猩红主色 + 骨白正文
   目标形态 = 腾讯系端游官网：朴素、信息密度高、玩家一眼认得。
   ---------------------------------------------------------------------------
   ★ 变量命名说明（2026-08-23 一次性修好的历史坑）
     本文件的变量名从前是从克隆源带过来的，名字和取值完全对不上
     （曾经 --blood 是绿色、--gold 是紫色）。本次改版**全部改成语义名**：
       --accent      主强调色（猩红，唯一的主 CTA 色）
       --accent-hi   主强调色·亮（hover / 高亮文字）
       --accent-dim  主强调色·暗（边框 / 分隔 / 次级块）
       --ink         正文主色（骨白）
       --muted       次要文字   --faint 更弱的文字
       --bg/--bg-2/--panel/--panel-2  由深到浅的四层底
     以后改色只改 :root，别再往下面塞硬编码色值。
   ---------------------------------------------------------------------------
   ★ 视觉基调：降饱和、少发光。阴影一律走 --shadow / --shadow-sm，
     发光只留主 CTA 一处很轻的 --glow。靠大图 + 排版层级撑场子，不靠荧光。
   ============================================================================= */

:root {
  /* —— 底色（冷铁灰黑，比纯黑更哑、更冷） —— */
  --bg:          #0b0c0f;
  --bg-2:        #0f1114;
  --panel:       #14161a;
  --panel-2:     #1b1d22;

  /* —— 主强调（猩红） —— */
  --accent:      #d92626;
  --accent-hi:   #ef3a3a;
  --accent-dim:  #8a1f1f;
  --accent-deep: #4d1212;

  /* —— 文字 —— */
  --ink:         #e6e1d8;   /* 骨白 · 正文/标题 */
  --muted:       #9a958c;   /* 次要文字 */
  --faint:       #6e6a63;   /* 最弱：日期、注脚 */

  /* —— 线 —— */
  --line:        rgba(230,225,216,.09);
  --line-2:      rgba(230,225,216,.16);
  --line-accent: rgba(217,38,38,.34);

  /* —— 字体 —— */
  --font-cn:     'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-title:  'Noto Serif SC', 'Songti SC', serif;
  --font-num:    'Oswald', 'DIN Alternate', 'Noto Sans SC', sans-serif;

  /* —— 阴影 / 圆角 / 尺寸 —— */
  --shadow:      0 8px 24px rgba(0,0,0,.45);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.35);
  --glow:        0 4px 16px rgba(217,38,38,.28);
  --radius:      4px;
  --radius-lg:   6px;
  --maxw:        1200px;
  --nav-h:       64px;

  --ok:          #4b9e5f;   /* 在线状态点（唯一允许的绿，属状态色不是主题色） */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* 滚动进度条：细、暗，只做位置提示 */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 10001;
}

/* =============================================================================
   通用按钮
   ============================================================================= */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .98rem; letter-spacing: 1px;
  padding: 12px 28px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost {
  color: var(--ink); background: transparent; border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-icon { width: 18px; height: 18px; flex: none; }

/* =============================================================================
   顶部导航（不透明 · 固定 · 右侧红色大按钮）
   —— 首屏内容一律靠 margin-top: var(--nav-h) 让位，导航不压任何内容。
   ============================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(11,12,15,.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(217,38,38,.22);
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-logo-img { width: 36px; height: 36px; border-radius: var(--radius); object-fit: cover; }
.nav-logo-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  font-size: 1.1rem; color: #fff; border-radius: var(--radius);
  background: var(--accent);
}
.nav-logo-text {
  font-family: var(--font-title); font-weight: 900; font-size: 1.25rem;
  color: var(--ink); letter-spacing: 2px; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-left: auto; }
.nav-links a {
  position: relative; display: block; padding: 6px 0;
  font-size: .98rem; font-weight: 500; color: var(--muted);
  letter-spacing: 1px; white-space: nowrap; transition: color .18s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px;
  background: var(--accent); transition: left .2s, right .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { left: 0; right: 0; }
.nav-cta {
  flex: none; margin-left: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .95rem; letter-spacing: 1px;
  padding: 9px 22px; border-radius: var(--radius);
  color: #fff; background: var(--accent);
  box-shadow: var(--glow);
  transition: background .18s;
}
.nav-cta:hover { background: var(--accent-hi); }
.nav-cta svg { width: 15px; height: 15px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* =============================================================================
   首屏 BANNER 轮播
   —— 数据源 data/banners.json（服务端读，前端零 fetch）。
      没有配图时走 .jn-slide-fallback：纯 CSS 抽象主视觉，不留天窗。
   ★ 容器按原图比例 2007:784（≈2.56:1）走，只用 max/min-height 兜边界，
     不写死高度 —— 写死会让 cover 上下狂裁，把人物头脚切掉。
   ★ 三张图本身左侧就是近黑的，暗罩必须「轻」：重罩会把左边压成一块死黑。
   ============================================================================= */
.jn-banner {
  position: relative; margin-top: var(--nav-h);
  aspect-ratio: 2007 / 784; max-height: 640px; min-height: 300px;
  overflow: hidden; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.jn-slides { position: absolute; inset: 0; }
.jn-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}
.jn-slide.active { opacity: 1; visibility: visible; }
/* 纵向锚 42%：容器比原图矮时 cover 会上下裁，偏上一点保住人物头部 */
.jn-slide-media { position: absolute; inset: 0; background-size: cover; background-position: center 42%; }
/* 只做很轻的左压暗 + 底部过渡，不盖重色罩子 */
.jn-slide-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,15,.70) 0%, rgba(11,12,15,.44) 26%, rgba(11,12,15,.10) 52%, rgba(11,12,15,0) 70%),
    linear-gradient(0deg, rgba(11,12,15,.88) 0%, rgba(11,12,15,0) 28%);
}
/* 无图降级：冷铁纹理 + 一道赤焰斜光 + 右侧巨型水印字 */
.jn-slide-fallback {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(90% 120% at 88% 50%, rgba(217,38,38,.20), transparent 62%),
    repeating-linear-gradient(115deg, rgba(230,225,216,.028) 0 2px, transparent 2px 9px),
    linear-gradient(120deg, #0b0c0f 0%, #15171c 48%, #0d0e12 100%);
}
.jn-slide-fallback::before {
  content: ""; position: absolute; top: -30%; right: 16%; width: 2px; height: 160%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: .55;
}
.jn-slide-fallback::after {
  content: attr(data-mark);
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(120px, 20vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(230,225,216,.10);
  letter-spacing: -.04em; pointer-events: none;
}
.jn-slide[data-variant="2"] .jn-slide-fallback { background-position: 0 0; filter: hue-rotate(0deg) brightness(1.06); }
.jn-slide[data-variant="2"] .jn-slide-fallback::before { right: 34%; transform: rotate(-14deg); }
.jn-slide[data-variant="3"] .jn-slide-fallback::before { right: 24%; height: 120%; top: -10%; opacity: .38; }

/* ★ 文案容器故意不跟 --maxw 居中：图是整屏铺的，居中容器会让屏越宽、
     文案离图左边越远（可用宽度反而变窄）。这里改成贴左 + 视口比例限宽，
     上限按三张图里最窄的那张（职业群像，人物约从 35% 处开始）定死。 */
.jn-slide-inner {
  position: relative; z-index: 2; height: 100%;
  padding: 0 clamp(16px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.jn-slide-copy { max-width: min(520px, 30vw); }
.jn-slide-kicker {
  display: inline-block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: 3px; color: var(--accent-hi);
  padding: 4px 12px; border: 1px solid var(--line-accent); border-radius: 2px;
  background: rgba(217,38,38,.10);
}
.jn-slide-title {
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.26; letter-spacing: 1px;
  color: var(--ink); margin-bottom: 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,.85);
  text-wrap: balance;   /* 万一换行也两行均分，不留「临」这种孤字 */
}
.jn-slide-sub {
  font-size: clamp(13px, 1.15vw, 16px); color: var(--muted); letter-spacing: .5px;
  line-height: 1.8; margin-bottom: 20px; text-shadow: 0 1px 10px rgba(0,0,0,.85);
}
.jn-slide-sub em { font-style: normal; color: var(--accent-hi); font-weight: 700; }
.jn-slide-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* 圆点指示器 */
.jn-dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 4;
  display: flex; justify-content: center; gap: 10px;
}
.jn-dot {
  width: 26px; height: 4px; border-radius: 2px; border: none; padding: 0;
  background: rgba(230,225,216,.28); cursor: pointer;
  transition: background .2s, width .2s;
}
.jn-dot:hover { background: rgba(230,225,216,.5); }
.jn-dot.active { background: var(--accent); width: 40px; }

/* 左右箭头（桌面才显示） */
.jn-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 40px; height: 60px; border: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink); background: rgba(11,12,15,.42);
  opacity: 0; transition: opacity .2s, background .2s;
}
.jn-banner:hover .jn-arrow { opacity: 1; }
.jn-arrow:hover { background: rgba(217,38,38,.75); }
.jn-arrow svg { width: 20px; height: 20px; }
.jn-arrow-prev { left: 0; }
.jn-arrow-next { right: 0; }

/* =============================================================================
   快捷入口条
   ============================================================================= */
.jn-quick { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.jn-quick-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.jn-quick-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 8px; text-align: center;
  border-left: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: .98rem; letter-spacing: 1px;
  transition: background .18s, color .18s;
}
/* 首尾不描边：容器是居中定宽的，给首尾描了边会看起来像左右各多出一个空格子 */
.jn-quick-item:first-child { border-left: none; }
.jn-quick-item:hover { background: rgba(217,38,38,.10); color: var(--accent-hi); }
.jn-quick-ic { display: grid; place-items: center; color: var(--accent); flex: none; }
.jn-quick-ic svg { width: 22px; height: 22px; }
.jn-quick-item:hover .jn-quick-ic { color: var(--accent-hi); }

/* =============================================================================
   主区：左公告 tab / 右侧栏
   ============================================================================= */
.jn-main {
  max-width: var(--maxw); margin: 0 auto;
  padding: 44px clamp(16px, 4vw, 40px) 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: stretch;
}
/* 公告条数少时右栏更高，左边会空出一大块页面底色 —— 让公告面板整块撑满，
   空白留在面板内部，比留在页面上干净 */
.jn-main > .jn-panel { display: flex; flex-direction: column; }
.jn-main > .jn-panel > .jn-news-list { flex: 1; }

/* —— 面板通用 —— */
.jn-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.jn-panel-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 0 16px; border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.jn-panel-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-weight: 900; font-size: 1.06rem;
  letter-spacing: 2px; color: var(--ink); padding: 13px 0;
}
.jn-panel-title::before {
  content: ""; width: 3px; height: 15px; background: var(--accent); border-radius: 1px;
}
.jn-panel-more { margin-left: auto; font-size: .85rem; color: var(--faint); }
.jn-panel-more:hover { color: var(--accent-hi); }
.jn-panel-body { padding: 6px 16px 14px; }

/* —— 公告 tab —— */
.jn-tabs { display: flex; gap: 2px; margin-left: auto; }
.jn-tab {
  position: relative; border: none; background: none; cursor: pointer;
  padding: 13px 14px; font-size: .92rem; font-weight: 500; color: var(--muted);
  letter-spacing: 1px; transition: color .18s;
}
.jn-tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--accent); opacity: 0; transition: opacity .18s;
}
.jn-tab:hover { color: var(--ink); }
.jn-tab.active { color: var(--accent-hi); font-weight: 700; }
.jn-tab.active::after { opacity: 1; }

.jn-news-list { padding: 4px 0 6px; }
.jn-news-item { border-bottom: 1px dashed var(--line); }
.jn-news-item:last-child { border-bottom: none; }
.jn-news-item.hidden { display: none; }
.jn-news-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: none; border: none; cursor: pointer;
  text-align: left; color: inherit; transition: background .16s;
}
.jn-news-row:hover { background: rgba(230,225,216,.035); }
.jn-news-tag {
  flex: none; font-size: .74rem; font-weight: 700; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 2px; border: 1px solid var(--line-2); color: var(--muted);
}
.jn-news-tag.t-activity    { color: var(--accent-hi); border-color: var(--line-accent); background: rgba(217,38,38,.10); }
.jn-news-tag.t-update      { color: #b9b3a8; border-color: var(--line-2); }
.jn-news-tag.t-maintenance { color: var(--ink); border-color: var(--line-2); background: rgba(230,225,216,.06); }
.jn-news-tag.t-notice      { color: var(--muted); border-color: var(--line-2); }
.jn-news-pin { flex: none; font-size: .74rem; color: var(--accent-hi); }
.jn-news-name {
  flex: 1; min-width: 0; color: var(--ink); font-size: .98rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jn-news-row:hover .jn-news-name { color: var(--accent-hi); }
.jn-news-date { flex: none; font-size: .85rem; color: var(--faint); letter-spacing: .5px; }
.jn-news-arrow { flex: none; color: var(--faint); transition: transform .2s; }
.jn-news-arrow svg { width: 13px; height: 13px; display: block; }
.jn-news-item.open .jn-news-arrow { transform: rotate(180deg); }
.jn-news-body {
  display: none; padding: 2px 16px 18px 16px;
  color: var(--muted); font-size: .94rem; line-height: 1.95;
  white-space: pre-wrap; word-break: break-word;
  border-left: 2px solid var(--line-accent); margin: 0 16px 12px;
}
.jn-news-item.open .jn-news-body { display: block; }
.jn-news-empty { padding: 40px 16px; text-align: center; color: var(--faint); }

/* —— 右侧栏 —— */
.jn-aside { display: flex; flex-direction: column; gap: 18px; }
.jn-cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 4px; }
.jn-cdu {
  text-align: center; padding: 10px 2px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
}
.jn-cdu b {
  display: block; font-family: var(--font-num); font-weight: 700;
  font-size: 1.55rem; line-height: 1.1; color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
}
.jn-cdu i { font-style: normal; font-size: .72rem; color: var(--faint); letter-spacing: 1px; }
.jn-cd-label { font-size: .86rem; color: var(--muted); letter-spacing: 1px; }
.jn-cd-open {
  display: block; text-align: center; padding: 14px 8px; margin: 10px 0 4px;
  border: 1px solid var(--line-accent); border-radius: var(--radius);
  background: rgba(217,38,38,.08);
  color: var(--accent-hi); font-weight: 700; letter-spacing: 1px;
}
.jn-cd-date { margin-top: 8px; font-size: .8rem; color: var(--faint); letter-spacing: .5px; }

.jn-aside-btns { display: flex; flex-direction: column; gap: 10px; }
.jn-aside-btns .btn-primary, .jn-aside-btns .btn-ghost { width: 100%; padding: 14px 16px; font-size: 1rem; }

.jn-kf-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.jn-kf-row:last-of-type { border-bottom: none; }
.jn-kf-ic {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius); background: rgba(217,38,38,.10);
  border: 1px solid var(--line-accent); font-size: 1rem;
}
.jn-kf-info { flex: 1; min-width: 0; }
.jn-kf-label { font-size: .76rem; color: var(--faint); letter-spacing: 1px; }
.jn-kf-value {
  font-size: .92rem; color: var(--ink); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.jn-kf-value:hover { color: var(--accent-hi); }
.jn-kf-note { font-size: .85rem; color: var(--muted); line-height: 1.9; }
.jn-kf-note b { color: var(--accent-hi); }
.jn-qr { margin-top: 12px; text-align: center; }
.jn-qr img {
  width: 148px; height: 148px; margin: 0 auto; object-fit: contain;
  padding: 8px; background: #fff; border-radius: var(--radius);
}
.jn-qr figcaption { margin-top: 8px; font-size: .8rem; color: var(--faint); }
.jn-online {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--muted); margin-left: auto;
}
.jn-online i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 5px var(--ok); display: block;
}

/* =============================================================================
   通用 section（版本特色 / 充值 / 攻略 / 下载）
   ============================================================================= */
.sec { position: relative; padding: 52px clamp(16px, 4vw, 40px); }
.sec-inner { max-width: var(--maxw); margin: 0 auto; }
.sec-head {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.sec-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: 3px; color: var(--ink);
}
.sec-title::before {
  content: ""; width: 4px; height: 20px; background: var(--accent); border-radius: 1px;
}
.sec-eyebrow {
  font-size: .78rem; letter-spacing: .22em; color: var(--faint);
  text-transform: uppercase; padding-bottom: 4px;
}
.sec-desc, .sec-sub {
  width: 100%; color: var(--muted); font-size: .95rem; letter-spacing: .5px; margin-top: 4px;
}
.sec-more { margin-left: auto; font-size: .88rem; color: var(--faint); padding-bottom: 4px; }
.sec-more:hover { color: var(--accent-hi); }

/* =============================================================================
   版本特色（图文分栏）
   ============================================================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  position: relative; display: flex; gap: 14px; padding: 20px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, background .2s;
}
.feature-card:hover { border-color: var(--line-accent); background: var(--panel-2); }
.feature-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.feature-icon img, .feature-icon svg { width: 46px; height: 46px; display: block; }
.feature-main { flex: 1; min-width: 0; }
.feature-tag {
  display: inline-block; font-size: .7rem; letter-spacing: 1px; color: var(--accent-hi);
  padding: 1px 7px; border: 1px solid var(--line-accent); border-radius: 2px;
  background: rgba(217,38,38,.08); margin-bottom: 6px;
}
.feature-title {
  font-family: var(--font-title); font-weight: 700; font-size: 1.12rem;
  color: var(--ink); letter-spacing: 1px; margin-bottom: 4px;
}
.feature-desc { color: var(--muted); font-size: .92rem; line-height: 1.8; }

/* =============================================================================
   充值中心
   ============================================================================= */
.recharge-sec { background: var(--bg-2); }
.recharge-cta {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 34px 26px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line);
}
.recharge-cta-icon { font-size: 2rem; margin-bottom: 8px; }
.recharge-cta-title {
  font-family: var(--font-title); font-weight: 900; font-size: 1.3rem;
  color: var(--ink); letter-spacing: 2px; margin-bottom: 10px;
}
.recharge-cta-desc { color: var(--muted); font-size: .95rem; line-height: 1.95; margin-bottom: 22px; }
.recharge-cta-btn { font-size: 1rem; padding: 13px 34px; }
.recharge-cta-note { margin-top: 14px; color: var(--faint); font-size: .82rem; }

.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pack-card {
  position: relative; padding: 26px 20px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.pack-card:hover, .pack-card.featured { border-color: var(--line-accent); }
.pack-badge {
  position: absolute; top: 10px; right: 10px; font-size: .7rem; padding: 2px 9px;
  border-radius: 2px; color: #fff; background: var(--accent);
}
.pack-name { font-family: var(--font-title); font-weight: 700; color: var(--ink); font-size: 1.1rem; letter-spacing: 1px; }
.pack-price { margin: 10px 0 2px; color: var(--accent-hi); }
.pack-price-currency { font-size: 1rem; }
.pack-price-num { font-family: var(--font-num); font-weight: 700; font-size: 2.2rem; }
.pack-original { color: var(--faint); text-decoration: line-through; font-size: .85rem; }
.pack-items { margin: 14px 0; }
.pack-items li { color: var(--muted); font-size: .9rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pack-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 10px 24px; border-radius: var(--radius); color: #fff; font-weight: 700;
  background: var(--accent); cursor: pointer; transition: background .18s;
}
.pack-btn:hover { background: var(--accent-hi); }

/* =============================================================================
   游戏攻略（首页板块 / 列表页 / 详情页）
   ============================================================================= */
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.guide-tab {
  font-size: .92rem; color: var(--muted); padding: 7px 18px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid var(--line); background: var(--panel);
  transition: color .18s, border-color .18s, background .18s;
}
.guide-tab span { color: var(--faint); font-size: .8rem; margin-left: 2px; }
.guide-tab:hover { color: var(--ink); border-color: var(--line-2); }
.guide-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.guide-tab.active span { color: rgba(255,255,255,.75); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s;
}
.guide-card:hover { border-color: var(--line-accent); transform: translateY(-3px); }
.guide-card-cover { position: relative; height: 150px; overflow: hidden; display: grid; place-items: center; }
.guide-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-cover-icon { font-size: 2.4rem; opacity: .7; }
.guide-cover-c1 { background: linear-gradient(140deg, #1a1c21, var(--accent-deep)); }
.guide-cover-c2 { background: linear-gradient(140deg, #17191e, #2a2d34); }
.guide-cover-c3 { background: linear-gradient(140deg, #131519, var(--accent-dim)); }
.guide-card-cat {
  position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700;
  color: var(--ink); padding: 2px 10px; border-radius: 2px;
  background: rgba(11,12,15,.7); border: 1px solid var(--line-2);
}
.guide-card-pin {
  position: absolute; top: 10px; right: 10px; font-size: .7rem;
  color: var(--accent-hi); padding: 2px 8px; border-radius: 2px; background: rgba(11,12,15,.7);
}
.guide-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.guide-card-title { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.55; margin-bottom: 8px; }
.guide-card-summary { color: var(--muted); font-size: .9rem; line-height: 1.75; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .8rem; color: var(--faint); }
.guide-card-more { color: var(--accent-hi); }
.guide-home-more { text-align: center; margin-top: 30px; }
.guide-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 1rem; }

.guide-list-sec, .guide-article { padding-top: calc(var(--nav-h) + 40px); }
.guide-article-inner { max-width: 820px; margin: 0 auto; }
.guide-crumb { font-size: .88rem; color: var(--faint); margin-bottom: 16px; }
.guide-crumb a:hover { color: var(--accent-hi); }
.guide-crumb span { margin: 0 6px; }
.guide-article-title {
  font-family: var(--font-title); font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--ink); line-height: 1.4; margin-bottom: 14px;
}
.guide-article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font-size: .88rem; color: var(--faint); }
.guide-article-cat { font-size: .76rem; font-weight: 700; color: var(--ink); padding: 3px 12px; border-radius: 2px; }
.guide-article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; border: 1px solid var(--line); }
.guide-article-cover img { width: 100%; display: block; }

.guide-article-body { color: var(--ink); font-size: 1.02rem; line-height: 2; }
.guide-article-body h2, .guide-article-body h3, .guide-article-body h4 {
  font-family: var(--font-title); color: var(--ink); margin: 28px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--accent); line-height: 1.45;
}
.guide-article-body h2 { font-size: 1.4rem; }
.guide-article-body h3 { font-size: 1.2rem; }
.guide-article-body h4 { font-size: 1.06rem; }
.guide-article-body p { margin: 0 0 15px; }
.guide-article-body ul, .guide-article-body ol { margin: 0 0 16px; padding-left: 4px; }
.guide-article-body li { position: relative; padding-left: 20px; margin-bottom: 7px; color: var(--muted); list-style: none; }
.guide-article-body ul li::before { content: "·"; position: absolute; left: 6px; color: var(--accent); font-weight: 900; }
.guide-article-body ol { counter-reset: gi; }
.guide-article-body ol li { counter-increment: gi; }
.guide-article-body ol li::before { content: counter(gi); position: absolute; left: 0; color: var(--accent); font-family: var(--font-num); font-weight: 700; }
.guide-article-body img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; border: 1px solid var(--line); }
.guide-article-body a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.guide-article-body b, .guide-article-body strong { color: var(--ink); }
.guide-article-body blockquote { border-left: 3px solid var(--accent-dim); padding: 8px 16px; margin: 16px 0; background: var(--panel); color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0; }
.guide-article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; }
.guide-article-body th, .guide-article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.guide-article-body th { background: var(--panel-2); color: var(--ink); }

.guide-article-foot { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide-related { margin-top: 36px; }
.guide-related-title { font-family: var(--font-title); font-weight: 700; font-size: 1.12rem; color: var(--ink); margin-bottom: 14px; }
.guide-related-list { display: flex; flex-direction: column; gap: 8px; }
.guide-related-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; }
.guide-related-item:hover { border-color: var(--line-accent); }
.guide-related-cat { font-size: .72rem; font-weight: 700; color: var(--ink); padding: 2px 9px; border-radius: 2px; flex: none; }
.guide-related-name { color: var(--ink); font-size: .95rem; }

/* =============================================================================
   下载中心
   ============================================================================= */
.download-sec { background: var(--bg-2); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dl-item {
  position: relative; padding: 24px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.dl-item > .dl-item-icon, .dl-item > .dl-item-name,
.dl-item > .dl-item-desc, .dl-item > .dl-item-size { width: 100%; }
.dl-item:hover, .dl-item-featured { border-color: var(--line-accent); }
.dl-item-tag { position: absolute; top: 10px; right: 10px; font-size: .7rem; color: #fff; background: var(--accent); padding: 2px 9px; border-radius: 2px; }
.dl-item-icon { font-size: 2.1rem; margin-bottom: 10px; }
.dl-item-name { font-family: var(--font-title); font-weight: 700; color: var(--ink); font-size: 1.06rem; letter-spacing: 1px; }
.dl-item-desc { color: var(--muted); font-size: .88rem; margin: 7px 0; min-height: 38px; }
.dl-item-size { color: var(--faint); font-size: .82rem; margin-bottom: 10px; }
.dl-item-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  padding: 10px 22px; border-radius: var(--radius); color: #fff; font-weight: 700;
  background: var(--accent); transition: background .18s;
}
.dl-item-btn:hover { background: var(--accent-hi); }
.dl-tips { text-align: center; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.dl-tips b { color: var(--ink); }
.dl-tips a { color: var(--accent-hi); }
.dl-faq-callout {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  max-width: 680px; margin: 16px auto 0; padding: 12px 20px;
  border: 1px solid var(--line-accent); border-radius: var(--radius);
  background: rgba(217,38,38,.07); color: var(--ink); font-size: .93rem;
  transition: background .2s;
}
.dl-faq-callout:hover { background: rgba(217,38,38,.14); }
.dl-faq-callout b { color: var(--accent-hi); }
.dl-faq-icon { font-size: 1.2rem; flex: none; }

/* =============================================================================
   页脚
   ============================================================================= */
footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 44px clamp(16px, 4vw, 40px) 92px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 900; font-size: 1.25rem; color: var(--ink); margin-bottom: 12px; letter-spacing: 2px; }
.footer-brand-img { width: 34px; height: 34px; border-radius: var(--radius); }
.footer-brand-desc { color: var(--muted); font-size: .92rem; line-height: 1.9; }
.footer-col-title { font-family: var(--font-title); font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: 2px; }
.footer-links li, .footer-contacts li { margin-bottom: 9px; color: var(--muted); font-size: .93rem; }
.footer-links a:hover { color: var(--accent-hi); }
.footer-contacts .contact-icon { margin-right: 6px; }
.contact-value { color: var(--ink); }
a.contact-value {
  border-bottom: 1px dashed var(--line-accent); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
a.contact-value:hover, a.contact-value:focus-visible { color: var(--accent-hi); border-bottom-color: var(--accent-hi); border-bottom-style: solid; }
.contact-fallback { color: var(--muted); font-size: .9rem; line-height: 1.85; margin-bottom: 10px; }
.contact-fallback b { color: var(--accent-hi); }
.footer-contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  color: #fff; background: var(--accent); transition: background .18s;
}
.footer-contact-btn:hover { background: var(--accent-hi); }
.footer-links-bar { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--faint); }
.footer-links-label { color: var(--muted); }
.footer-links-bar a { color: var(--muted); }
.footer-links-bar a:hover { color: var(--accent-hi); }
.footer-links-sep { margin: 0 8px; color: var(--faint); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; }
.footer-copy { color: var(--faint); font-size: .85rem; line-height: 1.85; }
/* 本站页脚无 ICP 备案位：对应样式已清除，别再加回来 */

/* =============================================================================
   右侧客服侧栏（站群标配组件）
   ============================================================================= */
.side-bar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 9998; }
.side-tab {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 34px; min-height: 168px; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--accent); border: 1px solid var(--accent-hi); border-right: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; box-shadow: -3px 0 14px rgba(0,0,0,.4);
  transition: opacity .28s, background .2s;
}
.side-tab:hover { background: var(--accent-hi); }
.side-tab-icon { width: 18px; height: 18px; color: #fff; }
.side-tab-text { font-size: .78rem; color: #fff; line-height: 1.35; letter-spacing: 1px; }
.side-tab-dot { position: absolute; top: 9px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: dotBlink 2s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.side-panel {
  width: 262px; background: var(--panel);
  border: 1px solid var(--line-2); border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -6px 0 24px rgba(0,0,0,.45); overflow: hidden;
  transition: transform .3s ease, opacity .3s ease;
}
.side-bar.collapsed .side-panel { transform: translateX(100%); opacity: 0; pointer-events: none; }
.side-bar.collapsed .side-tab { opacity: 1; }
.side-bar:not(.collapsed) .side-tab { opacity: 0; pointer-events: none; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.side-head-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.side-head-text { flex: 1; font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: 1px; }
.side-head-close { background: none; border: none; color: var(--muted); font-size: .95rem; cursor: pointer; }
.side-head-close:hover { color: var(--accent-hi); }
.side-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.side-row:last-child { border-bottom: none; }
.side-row[data-link] { position: relative; cursor: pointer; transition: background .2s; }
.side-row[data-link]::after { content: "↗"; position: absolute; top: 5px; right: 9px; font-size: .68rem; color: var(--faint); }
.side-row[data-link]:hover, .side-row[data-link]:focus-visible { background: rgba(217,38,38,.08); outline: none; }
.side-row[data-link]:hover .side-row-value, .side-row[data-link]:focus-visible .side-row-value { color: var(--accent-hi); text-decoration: underline; }
.side-row[data-link]:hover::after { color: var(--accent-hi); }
.side-row-icon { font-size: 1.2rem; }
.side-row-info { flex: 1; min-width: 0; }
.side-row-label { font-size: .76rem; color: var(--faint); }
.side-row-value { color: var(--ink); font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-row-copy { background: none; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.side-row-copy:hover { color: var(--accent-hi); border-color: var(--line-accent); }
.side-row-copy svg { width: 15px; height: 15px; }
.side-row-copy.copied { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-top {
  position: absolute; right: 0; bottom: -52px; width: 40px; height: 40px;
  border-radius: var(--radius) 0 0 var(--radius); border: 1px solid var(--line-2); border-right: none;
  background: var(--panel); color: var(--ink); cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: .25s; display: grid; place-items: center;
}
.side-top.show { opacity: 1; transform: translateY(0); }
.side-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-top svg { width: 18px; height: 18px; }

/* =============================================================================
   右下角浮动公告 toast（站群标配组件）
   ============================================================================= */
.notice-toast { position: fixed; right: 22px; bottom: 22px; z-index: 9997; width: 336px; max-width: calc(100vw - 44px); }
.notice-toast-trigger {
  position: absolute; bottom: 0; right: 0; width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); border: 1px solid var(--accent-hi); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: scale(0); transition: opacity .28s, transform .28s;
}
.notice-toast-trigger svg { width: 22px; height: 22px; }
.notice-toast-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.notice-toast.collapsed .notice-toast-trigger { opacity: 1; transform: scale(1); }
.notice-toast.collapsed .notice-toast-box { opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; }
.notice-toast-box {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: opacity .3s ease, transform .3s ease;
}
.notice-toast-activity { border-top: 2px solid var(--accent); }
.notice-toast-update   { border-top: 2px solid var(--line-2); }
.notice-toast-maint    { border-top: 2px solid var(--accent-dim); }
.notice-toast-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.notice-toast-type { font-weight: 700; color: var(--ink); font-size: .93rem; letter-spacing: 1px; }
.notice-toast-close { background: none; border: none; color: var(--muted); font-size: .95rem; cursor: pointer; }
.notice-toast-close:hover { color: var(--accent-hi); }
.notice-toast-body { padding: 14px 15px; }
.notice-toast-pin { font-size: .76rem; color: var(--accent-hi); margin-bottom: 5px; }
.notice-toast-title { font-family: var(--font-title); font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 6px; line-height: 1.5; }
.notice-toast-date { color: var(--faint); font-size: .82rem; margin-bottom: 9px; }
.notice-toast-content { color: var(--muted); font-size: .89rem; line-height: 1.9; max-height: 158px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.notice-toast-content::-webkit-scrollbar { width: 4px; }
.notice-toast-content::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.notice-toast-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; border-top: 1px solid var(--line); }
.notice-toast-nshow { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--faint); cursor: pointer; user-select: none; }
.notice-toast-nshow input { accent-color: var(--accent); cursor: pointer; }
.notice-toast-link { font-size: .84rem; color: var(--muted); }
.notice-toast-link:hover { color: var(--accent-hi); }

/* =============================================================================
   左下角在线客服浮动按钮
   ============================================================================= */
.chat-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 9996;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 19px 11px 13px; border-radius: 40px;
  font-weight: 700; font-size: .95rem; color: #fff; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent-hi);
  box-shadow: var(--shadow); transition: background .2s;
}
.chat-fab:hover { background: var(--accent-hi); }
.chat-fab-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255,255,255,.14); }
.chat-fab-icon svg { width: 17px; height: 17px; }
.chat-fab-text { white-space: nowrap; letter-spacing: 1px; }
.chat-fab-dot { position: absolute; top: 7px; left: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 5px var(--ok); animation: dotBlink 2s ease-in-out infinite; }
.chat-fab-bubble {
  position: fixed; left: 18px; bottom: 72px; z-index: 9996;
  max-width: 220px; padding: 9px 13px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 2px;
  font-size: .86rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(6px) scale(.94); transform-origin: left bottom;
  pointer-events: none; transition: opacity .28s ease, transform .28s ease;
}
.chat-widget.nudge .chat-fab-bubble { opacity: 1; transform: translateY(0) scale(1); }
.chat-widget.nudge .chat-fab { animation: fabShake 1.8s ease-in-out infinite; }
@keyframes fabShake {
  0%, 92%, 100% { transform: translateY(0) rotate(0); }
  94% { transform: translateY(-3px) rotate(-3deg); }
  96% { transform: translateY(-3px) rotate(3deg); }
  98% { transform: translateY(-2px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) { .chat-widget.nudge .chat-fab { animation: none; } }

/* 品牌客服页外壳（kefu.php 自带独立样式，这里只留 guide/kefu 复用的壳） */
.kefu-sec { padding-top: calc(var(--nav-h) + 40px); }
.kefu-back { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ★ 原「滚动淡入」样式（.reveal{opacity:0}）已于 2026-08-23 删除。
   内容可见性绝不能依赖 JS：IntersectionObserver 一旦不回调，整片区块就永久隐形。
   要加动效请只做 transform，别拿 opacity 当开关。 */

/* =============================================================================
   响应式
   ============================================================================= */
@media (max-width: 1080px) {
  .jn-main { grid-template-columns: 1fr; }
  .jn-aside { flex-direction: row; flex-wrap: wrap; }
  .jn-aside > * { flex: 1 1 300px; }
}
@media (max-width: 980px) {
  .features-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .jn-quick-inner { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); }
  .jn-quick-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  :root { --nav-h: 56px; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--nav-h); margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,12,15,.99); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open .nav-links { max-height: 70vh; overflow-y: auto; }
  .nav-links a { padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin-left: auto; padding: 8px 14px; font-size: .86rem; }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 竖屏：容器比原图矮胖得多，cover 会横向狂裁 —— 主体在右，锚到 78% 才不会把人裁没 */
  .jn-banner { aspect-ratio: auto; height: clamp(360px, 92vw, 470px); }
  .jn-slide-media { background-position: 78% center; }
  /* 竖屏文案必然压在图上：上半留给主体只轻压，下半（文案区）压重保可读 */
  .jn-slide-media::after {
    background: linear-gradient(180deg,
      rgba(11,12,15,.28) 0%, rgba(11,12,15,.22) 22%,
      rgba(11,12,15,.74) 52%, rgba(11,12,15,.96) 100%);
  }
  .jn-slide-inner { justify-content: flex-end; padding-bottom: 46px; }
  .jn-slide-copy { max-width: 100%; }
  .jn-arrow { display: none; }
  .sec { padding: 40px clamp(16px, 4vw, 40px); }
}
@media (max-width: 640px) {
  .features-grid, .guide-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .jn-quick-inner { grid-template-columns: repeat(2, 1fr); }
  .jn-quick-item { flex-direction: column; gap: 5px; padding: 14px 6px; font-size: .88rem; border-bottom: 1px solid var(--line); }
  /* 奇数个入口时最后一格独占整行，不留半个空格子 */
  .jn-quick-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: none; }
  .jn-main { padding-top: 30px; gap: 18px; }
  .jn-aside { flex-direction: column; }
  .jn-news-date { display: none; }
  .notice-toast { right: 12px; bottom: 12px; }
  .chat-fab { left: 12px; bottom: 12px; padding: 9px 15px 9px 11px; font-size: .88rem; }
  .chat-fab-bubble { left: 12px; bottom: 62px; }
  footer { padding-bottom: 76px; }
  .jn-tab { padding: 11px 9px; font-size: .86rem; }
  .jn-panel-title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .1ms !important; }
  html { scroll-behavior: auto; }
}
