﻿/* ==========================================================================
   对决三国 · 站点样式 v2「棋局街机」
   —— 亮色冷灰底 / 青碧主色 / 琥珀强调 / 圆角卡片 / 轻投影 / 无质感纹理
   ========================================================================== */

/* ---------------------------------- 基础 ---------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.js { scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(720px 420px at 88% -6%, rgba(14, 155, 141, 0.1), transparent 62%),
    radial-gradient(680px 400px at 4% 2%, rgba(255, 176, 32, 0.13), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.15em; }
li + li { margin-top: 4px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(14, 155, 141, 0.55); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--teal-t); color: var(--teal-d); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* ---------------------------------- 排版 ---------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-d);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

.lead { font-size: var(--fs-md); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.hint { font-size: var(--fs-xs); color: var(--ink-3); }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 26px; }
.mt-5 { margin-top: 38px; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.head-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 2px 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--teal-d);
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s, color 0.16s;
}
.head-link:hover { color: var(--teal); border-bottom-color: currentColor; }

.hide-sm { display: block; }

/* ---------------------------------- 按钮 ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s, color 0.14s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--zhu {
  background: var(--coral-d);
  color: #fff;
  box-shadow: var(--sh-press), 0 6px 16px rgba(207, 59, 42, 0.32);
}
.btn--zhu:hover { background: var(--coral-d); }

.btn--line {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--sh-1);
}
.btn--line:hover { border-color: var(--teal); color: var(--teal-d); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn--sm { min-height: 36px; padding: 0 16px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

/* ---------------------------------- 标签 ---------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.chip--zhu { background: var(--coral-t); color: #b32a1c; }
.chip--jin { background: var(--amber-t); color: #8a5c07; }
.chip--qing { background: var(--teal-t); color: var(--teal-d); }

/* ---------------------------------- 贴纸 ---------------------------------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 9px;
  background: var(--amber);
  color: #3a2703;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(255, 176, 32, 0.34);
  transform: rotate(-3deg);
}
.seal--paper { background: #fff; color: var(--coral-d); box-shadow: 0 4px 10px rgba(21, 48, 92, 0.14); }

/* ---------------------------------- 版块 ---------------------------------- */
.section { position: relative; padding: clamp(48px, 6vw, 78px) 0; }
.section--tight { padding: clamp(34px, 4vw, 52px) 0; }
.section--paper2 { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.sec-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.012em;
}
.sec-title em {
  font-style: normal;
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}
.sec-lead {
  margin-top: 10px;
  max-width: 60ch;
  font-size: var(--fs-base);
  color: var(--ink-2);
}

/* ---------------------------------- 顶栏 + 页头 ---------------------------------- */
.topbar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar-list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar-list li { margin: 0; }
.topbar-list a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--ink-2);
  font-weight: 600;
}
.topbar-list a:hover { color: var(--teal-d); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(21, 48, 92, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--teal-l), var(--teal-d));
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(14, 155, 141, 0.32);
}
.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand-en {
  display: block;
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--teal-t); color: var(--teal-d); }
.nav-link.is-active { background: var(--teal-d); color: #fff; }

.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 208px;
  padding: 8px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  display: none;
  z-index: 5;
}
.nav-dd-panel a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
}
.nav-dd-panel a:hover { background: var(--teal-t); color: var(--teal-d); }
.nav-dd-panel a.is-active { background: var(--bg-3); color: var(--ink); font-weight: 800; }
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel { display: block; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------------------------------- 抽屉 ---------------------------------- */
.drawer { position: fixed; inset: 0; overflow: hidden; z-index: var(--z-drawer); pointer-events: none; }
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 36, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 330px);
  padding: 20px;
  background: #fff;
  box-shadow: var(--sh-3);
  transform: translateX(102%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.drawer-group { margin-top: 18px; }
.drawer-group h4 {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.drawer-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-weight: 700;
  color: var(--ink-2);
}
.drawer-link:hover { background: var(--teal-t); color: var(--teal-d); }
.drawer-link.is-active { background: var(--bg-3); color: var(--ink); }
.drawer-cta { display: grid; gap: 10px; margin-top: 24px; }

/* ---------------------------------- 首屏 ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(560px 340px at 74% 8%, rgba(14, 155, 141, 0.11), transparent 62%),
    radial-gradient(420px 300px at 8% 90%, rgba(255, 176, 32, 0.12), transparent 62%),
    var(--bg-2);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding-block: clamp(38px, 5.4vw, 74px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.hero-title {
  margin-top: 16px;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-title span { display: block; }
.hero-title .t2 {
  font-size: 0.94em;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.1em;
}
.hero-title .t3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-shadow: none;
}
.hero-sub {
  margin-top: 20px;
  max-width: 44ch;
  font-size: var(--fs-md);
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 6px;
}
.bagua {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(59, 111, 224, 0.18);
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 2;
  width: clamp(158px, 17vw, 216px);
  aspect-ratio: 9 / 19.2;
  padding: 7px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--sh-3), 0 0 0 1px var(--line);
  transform: rotate(-2.5deg);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #eef4fb;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.promo-thumb {
  position: absolute;
  z-index: 1;
  width: 40%;
  border: 4px solid #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-thumb--a { left: 0; bottom: 2%; transform: rotate(-6deg); }
.promo-thumb--b { right: 1%; top: 0; transform: rotate(4deg); }

.hero-stamp {
  position: absolute;
  z-index: 3;
  right: 13%;
  bottom: 4%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--coral-d);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.25;
  text-align: center;
  transform: rotate(5deg);
  box-shadow: 0 12px 24px rgba(255, 95, 77, 0.36);
}

/* ---------------------------------- 走马灯 ---------------------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--teal-d);
  color: #fff;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--teal), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--teal), transparent); }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 11px 0;
  animation: ticker-run 42s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}
.ticker-item::before {
  content: "◆";
  font-size: 9px;
  color: var(--amber);
}
@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------- 玩法卡 ---------------------------------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.mode-card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--line-2);
}
.mode-card .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--teal-t);
  color: var(--teal-d);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.mode-card h3 { font-size: var(--fs-lg); }
.mode-card p { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.mode-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ---------------------------------- 阵营 ---------------------------------- */
.camp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.camp {
  position: relative;
  padding: 26px 22px 24px;
  overflow: hidden;
}
.camp + .camp { border-left: 1px solid var(--line); }
.camp .han {
  position: absolute;
  right: 8px;
  bottom: -18px;
  font-size: 108px;
  font-weight: 800;
  line-height: 1;
  color: var(--acc, var(--teal));
  opacity: 0.07;
  pointer-events: none;
}
.camp-name {
  font-size: var(--fs-lg);
  color: var(--acc, var(--teal-d));
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.camp-name span {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
}
.camp-desc { position: relative; margin-top: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.camp-meta { margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-3); }
.camp--wei { --acc: var(--blue); }
.camp--shu { --acc: var(--coral); }
.camp--wu { --acc: var(--teal); }
.camp--qun { --acc: var(--violet); }

/* ---------------------------------- 轮播 ---------------------------------- */
.carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--sh-2);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide { position: relative; flex: 0 0 100%; min-width: 0; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 44px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 34, 0.72));
  color: #fff;
}
.slide-cap h3 { font-size: var(--fs-lg); }
.slide-cap p { margin-top: 4px; font-size: var(--fs-sm); opacity: 0.9; max-width: 52ch; }
.carousel-nav {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.carousel-nav button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sh-1);
}
.carousel-nav button:hover { background: #fff; color: var(--teal-d); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 14px 0;
  background: #fff;
}
.carousel-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: none;
}
.carousel-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--line-2);
  transition: width 0.2s, background-color 0.2s;
}
.carousel-dots button.is-on::before { width: 24px; background: var(--teal-d); }

/* ---------------------------------- 截图条 ---------------------------------- */
.shot-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
}
.shot-strip a {
  flex: 0 0 clamp(150px, 16vw, 190px);
  scroll-snap-align: start;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shot-strip a:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.shot-strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.strip-note { margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------------------------------- 资讯 ---------------------------------- */
.news-list {
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.news-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  transition: background-color 0.15s;
}
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item:hover { background: var(--teal-t); }
.news-date { font-family: var(--font-num); font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.news-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-base);
  font-weight: 700;
  min-width: 0;
}
.news-more { font-size: var(--fs-xs); font-weight: 700; color: var(--teal-d); text-align: right; }

/* ---------------------------------- 下载带 ---------------------------------- */
.band {
  padding: clamp(42px, 5vw, 64px) 0;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%);
  color: #fff;
}
.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
}
.band h2 { font-size: clamp(24px, 3vw, 34px); }
.band p { margin-top: 12px; font-size: var(--fs-base); color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.band-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.band .btn--line {
  background: var(--amber);
  border-color: transparent;
  color: #3a2703;
  box-shadow: var(--sh-press), 0 8px 20px rgba(0, 0, 0, 0.16);
}
.band .btn--line:hover { background: #ffc44d; color: #3a2703; }

.plat-card {
  padding: 22px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.plat-card h4 { font-size: var(--fs-sm); letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.8); }
.plat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: var(--fs-sm);
}
.plat-row + .plat-row { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.plat-row span { color: rgba(255, 255, 255, 0.78); }
.plat-row b { font-family: var(--font-num); font-size: var(--fs-md); }

/* ---------------------------------- 规格表 ---------------------------------- */
.spec-table {
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.spec-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 20px;
  align-items: baseline;
}
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-key { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.spec-val { font-size: var(--fs-base); font-weight: 700; }
.spec-val a { display: inline-flex; align-items: center; min-height: 26px; color: var(--teal-d); }

/* ---------------------------------- 制度入口 ---------------------------------- */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.policy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  font-size: var(--fs-base);
  font-weight: 700;
  box-shadow: var(--sh-1);
  transition: transform 0.16s ease, border-color 0.16s, color 0.16s;
}
.policy-item:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal-d); }
.policy-item .arrow { color: var(--teal); font-weight: 800; }

/* ---------------------------------- 页脚 ---------------------------------- */
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(22px, 3vw, 44px);
  padding: clamp(36px, 4.4vw, 54px) 0 clamp(22px, 3vw, 30px);
}
.footer-desc {
  margin-top: 14px;
  max-width: 40ch;
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--ink-2);
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 2px; }
.footer-col a,
.footer-col p {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.footer-col a:hover { color: var(--teal-d); }

.footer-legal {
  padding: 18px 0 26px;
  border-top: 1px solid var(--line-2);
  font-size: var(--fs-xs);
  line-height: 1.9;
  color: var(--ink-3);
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--teal-d); font-weight: 600; }
.footer-legal a:hover { text-decoration: underline; }
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
}
.footer-badges a { display: inline-flex; align-items: center; min-height: 26px; }

/* ---------------------------------- 内容页首屏 ---------------------------------- */
.page-hero {
  padding: clamp(26px, 3.4vw, 44px) 0 clamp(22px, 3vw, 34px);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  flex-wrap: wrap;
}
.crumb a { display: inline-flex; align-items: center; min-height: 26px; font-weight: 600; color: var(--ink-2); }
.crumb a:hover { color: var(--teal-d); }
.crumb .sep { color: var(--ink-3); }
.page-title {
  margin-top: 10px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-lead {
  margin-top: 12px;
  max-width: 62ch;
  font-size: var(--fs-md);
  color: var(--ink-2);
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------------------------------- 文档 ---------------------------------- */
.doc-grid {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.doc-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.doc-box {
  padding: 18px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.doc-box h2 {
  margin: 0 0 10px;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-toc { display: grid; gap: 2px; }
.doc-toc a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.14s, color 0.14s;
}
.doc-toc a:hover { background: var(--bg-3); color: var(--ink); }
.doc-toc a.is-active { background: var(--teal-t); color: var(--teal-d); font-weight: 800; }
.doc-contact { font-size: var(--fs-sm); line-height: 1.9; color: var(--ink-2); }
.doc-contact b { display: block; margin-bottom: 6px; color: var(--ink); }

.doc-body {
  max-width: 720px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.doc-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line-2);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.doc-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 12px;
  font-size: var(--fs-xl);
}
.doc-body h2:first-of-type { margin-top: 18px; }
.idx {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--teal-t);
  color: var(--teal-d);
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: 800;
  flex: none;
}
.doc-body h3 { margin: 20px 0 8px; font-size: var(--fs-base); color: var(--ink); }
.doc-body p { margin: 10px 0; font-size: var(--fs-base); color: var(--ink-2); }
.doc-body ul,
.doc-body ol { margin: 10px 0; color: var(--ink-2); }
.doc-body li { margin: 6px 0; font-size: var(--fs-base); }

.doc-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border-left: 4px solid var(--amber);
  background: var(--amber-t);
  font-size: var(--fs-sm);
  color: #6b4a05;
}
.doc-note strong { color: #5a3d00; }

.steps { display: grid; gap: 12px; margin: 18px 0; counter-reset: step; }
.step {
  position: relative;
  padding: 16px 18px 16px 56px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.step h4 { font-size: var(--fs-base); }
.step p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }

.doc-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.doc-related a:hover { background: var(--teal-t); color: var(--teal-d); }
.doc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ---------------------------------- 登录注册 ---------------------------------- */
.auth { padding: clamp(26px, 3.4vw, 44px) 0 clamp(38px, 5vw, 60px); }
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
.auth-art {
  position: relative;
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--bg-3);
}
.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 44, 0.18) 0%, rgba(6, 22, 44, 0.3) 55%, rgba(6, 22, 44, 0.45) 100%);
}
.auth-art .caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(18px, 2.6vw, 26px) clamp(20px, 3vw, 28px);
  color: #fff;
  background: rgba(9, 24, 40, 0.72);
  backdrop-filter: blur(6px);
}
.auth-art .quote {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.auth-art .sub {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.auth-art .seal { position: absolute; top: 20px; left: 20px; z-index: 3; }

.auth-card {
  align-self: start;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
.auth-card h1 { font-size: var(--fs-2xl); }
.auth-card > p { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-3); }

.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 22px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
}
.auth-tabs a,
.auth-tabs span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
}
.auth-tabs a:hover { color: var(--teal-d); }
.auth-tabs .is-on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label,
.field-label { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 155, 141, 0.16);
}
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.input-row .btn { min-height: 46px; }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.7;
}
.checkline input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--teal-d);
}
.checkline a { color: var(--teal-d); font-weight: 700; text-decoration: underline; }

.auth-alt { margin-top: 16px; font-size: var(--fs-sm); color: var(--ink-3); text-align: center; }
.auth-alt a { color: var(--teal-d); font-weight: 700; }

/* ---------------------------------- 浮动件 ---------------------------------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-2);
  font-size: 16px;
  box-shadow: var(--sh-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.to-top.is-on { opacity: 1; pointer-events: auto; transform: translateY(0); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: var(--z-toast);
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------- 响应式 ---------------------------------- */
@media (max-width: 1120px) {
  .nav-link { padding: 0 9px; font-size: var(--fs-sm); }
  .header-inner { gap: 12px; }
  .camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .camp:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1080px) {
  .nav,
  .header-actions { display: none; }
  .burger { display: block; margin-left: auto; }
  .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-aside { position: static; }
  .doc-toc { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 260px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .topbar .wrap { gap: 6px; padding-block: 6px; }
  .topbar-list { gap: 12px; }
  .hide-sm { display: none; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .news-more { display: none; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .policy-grid { grid-template-columns: minmax(0, 1fr); }
  .camp-grid { grid-template-columns: minmax(0, 1fr); }
  .camp + .camp { border-left: 0; border-top: 1px solid var(--line); }
  .phone { width: clamp(150px, 44vw, 200px); }
  .promo-thumb { width: 40%; }
  .hero-stamp { right: 2%; bottom: 0; font-size: var(--fs-xs); }
  .slide-cap { flex-direction: column; align-items: flex-start; gap: 8px; padding: 38px 16px 14px; }
  .slide img { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-body { padding: 20px 16px; }
  .doc-body h2 { font-size: var(--fs-lg); }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(40px, 13vw, 52px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .shot-strip a { flex-basis: 62%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar,
  .site-header,
  .drawer,
  .to-top,
  .ticker,
  .site-footer { display: none !important; }
  body { background: #fff; }
  .doc-aside { display: none; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-body { border: 0; box-shadow: none; padding: 0; }
}

/* 表单防呆提示 */
.field-err {
  margin-top: 6px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: #c0362a;
  font-weight: 600;
}
.input.is-bad {
  border-color: #d0453a;
  box-shadow: 0 0 0 3px rgba(208, 69, 58, 0.14);
}
.checkline input.is-bad {
  outline: 2px solid #d0453a;
  outline-offset: 2px;
}
