/* =====================================================================
   PokeNewX 官网 · 样式表
   分区：变量 / 基础 / 头部 / Hero / 区块通用 / 卡片 / 公告 / 下载 /
        账号表单 / Footer / Toast / Modal / 响应式
   ===================================================================== */

/* ---------------- 1. 变量（大师球色系：紫 / 白 / 粉） ---------------- */
:root {
  --red: #8e24aa;           /* 主紫（大师球上半） */
  --red-dark: #5e1591;      /* 深紫 */
  --red-light: #ec407a;     /* 粉色点缀（大师球 M 标） */
  --yellow: #f8bbd0;        /* 柔粉 */
  --blue: #7c4dff;          /* 亮紫 */
  --green: #66bb6a;

  --ink: #2a1438;
  --ink-2: #4a2c5e;
  --muted: #8a6f9a;
  --line: #ece3f4;
  --bg: #faf5fd;
  --surface: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(123, 31, 162, .06);
  --shadow: 0 8px 28px rgba(123, 31, 162, .10);
  --shadow-lg: 0 18px 48px rgba(123, 31, 162, .18);

  --dark: #1a0d2e;
  --dark-2: #2d1849;

  --header-h: 68px;
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

/* ---------------- 2. 基础 ---------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.app-main { display: block; min-height: 62vh; }

.page-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 120px 0; color: var(--muted);
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 3. 头部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .25s, border-color .25s, color .25s;
}
/* 首页 Hero 之上的透明态 */
.site-header.is-transparent {
  background: transparent; border-color: transparent; backdrop-filter: none;
  color: #fff;
}
.site-header.is-transparent .nav a { color: rgba(255, 255, 255, .86); }
.site-header.is-transparent .nav a.active { color: #fff; }
.site-header.is-transparent .nav-toggle span { background: #fff; }
.site-header.is-transparent .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.site-header.is-transparent .btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* 透明头部所在的页面（首页）：把 Hero 整体上提一个头部高度，
   让深色 Hero 从页面最顶端开始，白字导航真正叠在 Hero 上而不是压在浅色背景上 */
body.has-transparent-header .app-main { margin-top: calc(-1 * var(--header-h)); }
body.has-transparent-header .hero { padding-top: calc(var(--hero-pt) + var(--header-h)); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: .18em; }

/* 站点 Logo（图片，头部/页脚共用）
   ------------------------------------------------------------
   logo 本身是透明底圆形图，下缘带浅色投影 —— 只对透明部分生效，
   所以直接放在浅色头部上不会出现白边方块。
   深色头部下不做任何处理：原图自带深色描边，缩到 34px 依然清晰，
   加光晕反而会在白色球体下方糊出一圈雾。 */
.brand-logo {
  width: 34px; height: 34px; flex: none;
  display: block; object-fit: contain;
  border-radius: 50%;
}
.brand-logo.small { width: 26px; height: 26px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(142, 36, 170, .08); color: var(--red); }
.nav a.active { color: var(--red); }
.site-header.is-transparent .nav a:hover { background: rgba(255, 255, 255, .14); }

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

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(142, 36, 170, .08); color: var(--red-dark); font-weight: 700; font-size: 14px;
}
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.user-menu { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; background: transparent;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; margin: 3px auto;
  background: var(--ink); border-radius: 2px; transition: .25s;
}

/* ---------------- 4. 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .7; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(142, 36, 170, .32);
}
.btn-primary:hover:not([disabled]) { box-shadow: 0 12px 26px rgba(142, 36, 170, .42); transform: translateY(-1px); }

.btn-dark { background: var(--dark); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: var(--dark-2); }

.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-light { background: rgba(255, 255, 255, .16); color: #fff; border: 1.5px solid rgba(255, 255, 255, .38); }
.btn-light:hover { background: rgba(255, 255, 255, .26); }

.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-block { width: 100%; }

.icon { display: inline-flex; width: 1em; height: 1em; }
.icon svg { width: 1em; height: 1em; display: block; }

/* ---------------- 5. Hero ---------------- */
.hero {
  --hero-pt: 96px;                 /* 顶部内边距，透明头部叠加时会再加一个头部高度 */
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 20% -10%, #6a1b9a 0%, transparent 60%),
              radial-gradient(900px 500px at 95% 10%, #ad1457 0%, transparent 55%),
              linear-gradient(160deg, #1a0d2e 0%, #2d1849 50%, #1a0d2e 100%);
  color: #fff; padding: var(--hero-pt) 0 120px;
}
/* 背景装饰：大师球（紫白） */
.hero::before {
  content: ''; position: absolute; right: -160px; top: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: linear-gradient(#8e24aa 0 48%, #3a1d52 48% 52%, #fff 52% 100%);
  opacity: .08;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 500px at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 500px at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 191, 113, .22); }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 900; margin: 20px 0 16px;
  letter-spacing: -.02em; line-height: 1.12;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f8bbd0, #ec407a 60%, #ce93d8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .88);
}

/* Hero 右侧：版本卡片 */
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-card h3 { font-size: 15px; color: rgba(255, 255, 255, .7); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.ver-no { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.ver-note { color: rgba(255, 255, 255, .62); font-size: 13.5px; margin: 4px 0 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.hero-stat { background: rgba(255, 255, 255, .07); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.hero-stat b { display: block; font-size: 17px; }
.hero-stat span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.hero-card .btn { width: 100%; }

/* Hero 底部波浪 */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 70px; }

/* ---------------- 6. 区块通用 ---------------- */
.section { padding: 76px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-title { font-size: clamp(24px, 3vw, 34px); }
.section-sub { color: var(--muted); font-size: 15px; margin: 0; }
.section-head .link-more { color: var(--red); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.section-head .link-more:hover { gap: 8px; }
.link-more .icon { transition: transform .2s; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .16em;
  color: var(--red); text-transform: uppercase; margin-bottom: 10px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- 7. 卡片 ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dbe2f0; }

/* 特色卡片 */
.feature { padding: 26px 24px; }
.feature .f-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 14px; color: #fff;
}
.f-ico.red { background: linear-gradient(135deg, #ce93d8, #8e24aa); }
.f-ico.yellow { background: linear-gradient(135deg, #f8bbd0, #ec407a); }
.f-ico.blue { background: linear-gradient(135deg, #b39ddb, #7c4dff); }
.f-ico.green { background: linear-gradient(135deg, #a5d6a7, #66bb6a); }
.feature h4 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------------- 8. 公告 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: .2s;
}
.news-item:hover { border-color: #d9e0ef; box-shadow: var(--shadow-sm); transform: translateX(3px); }
.news-date {
  text-align: center; border-right: 1px dashed var(--line); padding-right: 14px;
}
.news-date b { display: block; font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--ink); }
.news-date span { font-size: 12.5px; color: var(--muted); }
.news-main { min-width: 0; }
.news-main h4 { font-size: 16.5px; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.news-main p { margin: 0; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-side { display: flex; align-items: center; gap: 12px; }

.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.tag-notice { background: rgba(142, 36, 170, .1); color: var(--red-dark); }
.tag-update { background: rgba(124, 77, 255, .1); color: #5e35b1; }
.tag-event { background: rgba(236, 64, 122, .12); color: #c2185b; }
.tag-maintain { background: rgba(138, 111, 154, .14); color: #6a4f7a; }

.badge-top {
  display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--red-light)); color: #fff; margin-right: 8px; vertical-align: 2px;
}

/* 公告详情 */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.article-head h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.article-body { font-size: 16px; color: var(--ink-2); }
.article-body h3 { font-size: 19px; margin-top: 1.6em; color: var(--ink); }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--ink); }
.article-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.filter-pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .2s;
}
.filter-pill:hover { border-color: var(--red); color: var(--red); }
.filter-pill.active { background: var(--red); border-color: var(--red); color: #fff; }
.search-box { margin-left: auto; position: relative; }
.search-box input {
  width: 230px; padding: 9px 14px 9px 36px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; outline: none; transition: .2s; font-family: inherit;
}
.search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(142, 36, 170, .12); }
.search-box .s-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; color: var(--ink-2); transition: .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.pager button.active { background: var(--red); border-color: var(--red); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 9. 下载 ---------------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.dl-card.is-primary { border-color: rgba(142, 36, 170, .45); box-shadow: 0 10px 30px rgba(142, 36, 170, .12); }
.dl-card .dl-ico { font-size: 34px; color: var(--ink); line-height: 1; }
.dl-card.is-primary .dl-ico { color: var(--red); }
.dl-card h4 { font-size: 18px; margin: 0; }
.dl-card .dl-desc { color: var(--muted); font-size: 14px; margin: 0; }
.dl-os { font-size: 13px; color: var(--ink-2); background: var(--bg); padding: 4px 10px; border-radius: 6px; display: inline-block; align-self: flex-start; }
.dl-card .btn { margin-top: auto; }
.dl-recommend {
  position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--red), var(--red-light)); color: #fff; padding: 3px 10px; border-radius: 999px;
}

.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req-card { padding: 24px; }
.req-card h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.req-card ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.req-card li { margin-bottom: 7px; }
.req-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.req-dot.rec { background: var(--green); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 16px; right: 20px; font-size: 40px; font-weight: 900;
  color: rgba(142, 36, 170, .12); line-height: 1;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.code-box {
  background: var(--dark); color: #d8e2f5; border-radius: var(--radius-sm);
  padding: 16px 18px; font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13.5px; overflow-x: auto; margin: 0; line-height: 1.8;
}
.code-box .k { color: #ce93d8; }

/* ---------------- 10. 账号表单 ---------------- */
.auth-wrap { padding: 56px 0 80px; }
.auth-shell { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }

.auth-side {
  background: linear-gradient(160deg, #3a1d52, #6a1b9a);
  color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px; border-radius: 50%;
  background: linear-gradient(#fff 0 48%, #3a1d52 48% 52%, #fff 52% 100%); opacity: .06;
}
.auth-side h3 { font-size: 20px; margin-bottom: 6px; position: relative; z-index: 1; }
.auth-side > p { color: rgba(255, 255, 255, .66); font-size: 14px; position: relative; z-index: 1; }
.auth-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; position: relative; z-index: 1; }
.auth-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .8); transition: .2s;
}
.auth-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.auth-nav a.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 3px 0 0 var(--red-light); }
.auth-nav .icon { font-size: 17px; }
.auth-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .6); position: relative; z-index: 1; }
.auth-help a { color: var(--yellow); font-weight: 700; }

.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
  padding: 10px 16px; border: 0; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--muted); position: relative; transition: .2s;
}
.auth-tabs button:hover { color: var(--ink); }
.auth-tabs button.active { color: var(--red); }
.auth-tabs button.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
  background: var(--red); border-radius: 3px 3px 0 0;
}

.auth-title { font-size: 24px; margin-bottom: 6px; }
.auth-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }

.form-item { margin-bottom: 18px; }
.form-item > label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.form-item .hint { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon {
  position: absolute; left: 14px; font-size: 17px; color: var(--muted); pointer-events: none;
}
.input-wrap.has-icon input { padding-left: 42px; }
.input-wrap .eye { position: absolute; right: 6px; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px; font-size: 15px; }
.input-wrap.has-suffix input { padding-right: 76px; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"], select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; outline: none; transition: .2s;
}
input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(142, 36, 170, .12); }
input.is-error, select.is-error { border-color: var(--red); }
input::placeholder { color: #aab3c5; }

.form-error { color: var(--red); font-size: 13px; margin: 6px 0 0; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; }

.pw-strength { display: flex; gap: 4px; margin-top: 8px; }
.pw-strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: .3s; }
.pw-strength.s1 i:nth-child(1) { background: var(--red); }
.pw-strength.s2 i:nth-child(-n+2) { background: var(--red-light); }
.pw-strength.s3 i:nth-child(-n+3) { background: #7bc86c; }
.pw-strength.s4 i { background: var(--green); }
.pw-text { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); flex: none; }
.checkbox a { color: var(--red); font-weight: 600; }
.checkbox a:hover { text-decoration: underline; }

.code-row { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }
.btn-code { padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--red); background: rgba(142, 36, 170, .06); color: var(--red); font-weight: 700; cursor: pointer; font-size: 14px; transition: .2s; }
.btn-code:hover:not(:disabled) { background: var(--red); color: #fff; }
.btn-code:disabled { border-color: var(--line); color: var(--muted); background: var(--bg); cursor: not-allowed; }

/* 图形验证码（后端生成，点击刷新） */
.captcha-box {
  position: relative; display: block; height: 48px; line-height: 0;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.captcha-box:hover { border-color: var(--red); }
.captcha-box:focus-visible { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(142, 36, 170, .12); }
.captcha-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.captcha-box.is-loading::after {
  content: '加载中…'; position: absolute; inset: 0; background: var(--bg);
  display: grid; place-items: center; font-size: 12.5px; color: var(--muted); line-height: 1;
}
.captcha-box.is-loading img { opacity: 0; }

/* 步骤条 */
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.stepper-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.stepper-item .num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1.5px solid var(--line); font-size: 13px; font-weight: 800;
}
.stepper-item.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.stepper-item.active { color: var(--red); }
.stepper-item.active .num { background: var(--red); border-color: var(--red); color: #fff; }
.stepper-line { flex: 1; height: 2px; background: var(--line); max-width: 60px; }
.stepper-line.done { background: var(--green); }

.result-box { text-align: center; padding: 22px 0 4px; }
.result-ico {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: rgba(47, 191, 113, .12); color: var(--green); font-size: 36px;
}
.result-ico.warn { background: rgba(142, 36, 170, .1); color: var(--red); }
.result-box h3 { font-size: 21px; }
.result-box p { color: var(--muted); font-size: 14.5px; }
.result-detail {
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin: 16px 0 20px; font-size: 14px; word-break: break-all; text-align: left;
}
.result-detail b { color: var(--red); font-size: 16px; }

.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--red); font-weight: 700; }

/* ---------------- 11. 其它区块 ---------------- */
.stat-strip {
  background: var(--dark); color: #fff; border-radius: var(--radius-lg);
  padding: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; overflow: hidden;
}
.stat-strip::after {
  content: ''; position: absolute; width: 300px; height: 300px; left: -120px; bottom: -160px; border-radius: 50%;
  background: linear-gradient(#fff 0 48%, #3a1d52 48% 52%, #fff 52% 100%); opacity: .05;
}
.stat-strip .st { text-align: center; position: relative; z-index: 1; }
.stat-strip .st b { display: block; font-size: 30px; font-weight: 900; }
.stat-strip .st span { font-size: 13.5px; color: rgba(255, 255, 255, .6); }

.download-cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%); color: #fff;
  border-radius: var(--radius-lg); padding: 44px; text-align: center; position: relative; overflow: hidden;
}
.download-cta::after {
  content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -160px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.download-cta h2 { font-size: clamp(24px, 3.2vw, 34px); }
.download-cta p { color: rgba(255, 255, 255, .82); max-width: 42em; margin: 0 auto 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white { background: #fff; color: var(--red-dark); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn-white:hover { transform: translateY(-2px); }

/* 说明文档 / FAQ */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.prose h2 { margin-top: 1.8em; font-size: 22px; border-left: 4px solid var(--red); padding-left: 12px; }
.prose h3 { font-size: 17px; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }

.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 15.5px; }
.faq-q:hover { color: var(--red); }
.faq-q .plus { transition: transform .25s; color: var(--red); font-weight: 900; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 14px; }
.faq-item.open .faq-a { display: block; }

.empty { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-ball {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; opacity: .35;
  background: linear-gradient(var(--red) 0 48%, #3a1d52 48% 52%, #fff 52% 100%); border: 3px solid #3a1d52;
}
.empty-ball::after { content: ''; }

.breadcrumb { padding: 20px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb a:hover { color: var(--red); }

/* ---------------- 12. Footer ---------------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding: 48px 20px 30px; }
.footer-brand strong { color: #fff; font-size: 17px; letter-spacing: .04em; display: block; margin: 8px 0 6px; }
.footer-brand p { font-size: 14px; margin: 0; max-width: 22em; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-links h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 14px; padding: 4px 0; color: rgba(255, 255, 255, .66); transition: .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 20px; font-size: 13px; }
.footer-bottom p { margin: 0 0 6px; color: rgba(255, 255, 255, .5); }
.disclaimer { font-size: 12.5px !important; }

/* ---------------- 13. Toast ---------------- */
.toast-stack { position: fixed; top: 84px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 380px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow);
  transform: translateX(120%); opacity: 0; transition: .3s cubic-bezier(.2, .9, .3, 1.2);
  font-size: 14px; font-weight: 600;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.toast-success { border-left-color: var(--green); color: var(--ink); }
.toast-success .toast-dot { background: var(--green); }
.toast-error { border-left-color: var(--red); color: var(--ink); }
.toast-error .toast-dot { background: var(--red); }
.toast-info { border-left-color: var(--blue); color: var(--ink); }
.toast-info .toast-dot { background: var(--blue); }

/* ---------------- 14. Modal ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 26, 46, .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 300; padding: 20px;
  opacity: 0; transition: opacity .22s;
}
.modal-mask.show { opacity: 1; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .22s; overflow: hidden;
}
.modal-mask.show .modal { transform: scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-title { margin: 0; font-size: 17px; }
.modal-close { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 22px; font-size: 14.5px; color: var(--ink-2); }
.modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------- 15. 补充状态样式 ---------------- */
#app { transition: opacity .22s ease; }

.form-tip { font-size: 12.5px; color: var(--green); font-weight: 600; margin: 6px 0 0; }
input.is-ok { border-color: var(--green); }

.mock-tip {
  margin-top: 14px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px;
  background: rgba(124, 77, 255, .08); color: #5e35b1; text-align: center;
}

/* 透明头部滚动过 Hero 后变实心 */
.site-header.is-transparent.is-solid {
  background: rgba(255, 255, 255, .94); border-color: var(--line);
  backdrop-filter: saturate(180%) blur(12px); color: var(--ink);
}
.site-header.is-transparent.is-solid .nav a { color: var(--ink-2); }
.site-header.is-transparent.is-solid .nav a.active { color: var(--red); }
.site-header.is-transparent.is-solid .brand-sub { color: var(--muted); }
.site-header.is-transparent.is-solid .nav-toggle span { background: var(--ink); }
.site-header.is-transparent.is-solid .btn-ghost { color: var(--ink); border-color: var(--line); }
.site-header.is-transparent.is-solid .btn-ghost:hover { border-color: var(--red); color: var(--red); background: transparent; }

/* ---------------- 16. 响应式 ---------------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 420px; }
  .dl-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .nav, .header-actions { display: none; }
  .site-header.nav-open .nav {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 12px 16px 18px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); gap: 2px;
  }
  .site-header.nav-open .nav a { color: var(--ink); padding: 12px; border-radius: 10px; }
  .site-header.nav-open .header-actions {
    display: flex; position: absolute; top: calc(var(--header-h) + 210px); left: 16px; right: 16px;
  }
  .hero { --hero-pt: 64px; padding: var(--hero-pt) 0 84px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .req-grid, .stat-strip { grid-template-columns: 1fr; }
  .stat-strip { gap: 14px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-date { text-align: left; border-right: 0; border-bottom: 1px dashed var(--line); padding: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
  .news-date b { font-size: 17px; }
  .auth-card, .article, .prose { padding: 24px 20px; }
  .auth-tabs { overflow-x: auto; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .download-cta { padding: 30px 20px; }
  .toast-stack { left: 16px; right: 16px; top: 76px; }
  .toast { max-width: none; }
}
