/* ==========================================================================
   ZAAT Speak Quest · base.css
   设计令牌 / Reset / 排版 / 通用布局 / 按钮 / 表单
   全站唯一令牌来源，页面样式见 components.css 与 pages.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 色板 */
  --bg: #050d1a;
  --bg-raise: #081527;
  --panel: rgba(13, 28, 48, .72);
  --panel-solid: #0d1c30;
  --panel-soft: rgba(148, 196, 255, .06);
  --line: rgba(148, 196, 255, .14);
  --line-strong: rgba(148, 196, 255, .28);

  --text: #f2f7ff;
  --text-soft: #c3d3ea;
  --text-muted: #7e93b4;

  --gold: #ffd25e;
  --gold-deep: #f0a92e;
  --gold-ink: #241500;
  --cyan: #38e1ff;
  --mint: #7df0b6;
  --violet: #a78bfa;
  --red: #ff7a70;

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* 圆角与投影 */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 18px 48px rgba(2, 8, 20, .45);
  --shadow-pop: 0 28px 80px rgba(2, 8, 20, .6);

  /* 布局 */
  --container: 1180px;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset 与基础
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 85% -5%, rgba(56, 130, 255, .16), transparent 65%),
    radial-gradient(720px 420px at -10% 20%, rgba(56, 225, 255, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* 像素网格底纹，呼应方块沙盒主题 */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 196, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 196, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(#000 0%, transparent 72%);
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #8bebff; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, p, dl, dd, dt, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

main { position: relative; z-index: 1; }

/* 锚点定位时避开吸顶头部 */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

::selection { background: rgba(56, 225, 255, .32); }

/* --------------------------------------------------------------------------
   3. 排版
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: .2px;
}

h2 {
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.3;
  font-weight: 800;
}

h3 { font-size: 18px; line-height: 1.45; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.lead {
  font-size: 16px;
  color: var(--text-soft);
}

.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-mint { color: var(--mint); }

/* 原价统一划线样式：继承文字颜色并降透明度，任何底色上都柔和 */
del {
  color: inherit;
  opacity: .45;
  font-weight: inherit;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* --------------------------------------------------------------------------
   4. 布局工具
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), calc(100vw - 40px));
  margin: 0 auto;
}

.section { padding: 72px 0; position: relative; }
.section-tight { padding: 48px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 { margin: 14px 0 12px; }
.section-head p { color: var(--text-soft); }

.section-head.split {
  max-width: none;
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

/* 加宽版标题区：长标题（如 96 游戏任务体系）一行放下，不折行 */
.section-head.wide { max-width: 960px; }

.section-head.split > div { max-width: 640px; }
.section-head.split p { margin-top: 10px; }

.band {
  /* 分区底色带，用于页面节奏（靠底色区分，不再画横向分隔线） */
  background: linear-gradient(180deg, transparent, rgba(10, 24, 44, .55) 18% 82%, transparent);
}

/* --------------------------------------------------------------------------
   5. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line-strong);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 225, 255, .55);
  color: var(--text);
}

.btn-gold {
  background: linear-gradient(135deg, #ffe08a, var(--gold) 45%, var(--gold-deep));
  color: var(--gold-ink);
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(255, 190, 60, .28);
}

.btn-gold:hover {
  color: var(--gold-ink);
  box-shadow: 0 14px 32px rgba(255, 190, 60, .4);
}

.btn-cyan {
  background: linear-gradient(135deg, rgba(56, 225, 255, .2), rgba(56, 130, 255, .12));
  border-color: rgba(56, 225, 255, .45);
  color: #bdf1ff;
}

.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 13px; }

/* --------------------------------------------------------------------------
   6. 标签 / 徽章 / 进度
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.chip-gold { color: #ffdf94; border-color: rgba(255, 210, 94, .4); background: rgba(255, 210, 94, .1); }
.chip-mint { color: #a5f7cd; border-color: rgba(125, 240, 182, .38); background: rgba(125, 240, 182, .1); }
.chip-cyan { color: #9fe9ff; border-color: rgba(56, 225, 255, .38); background: rgba(56, 225, 255, .1); }

.track {
  height: 8px;
  border-radius: 999px;
  background: rgba(9, 20, 36, .9);
  border: 1px solid var(--line);
  overflow: hidden;
}

.track > i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #6ea8ff);
}

.track-gold > i { background: linear-gradient(90deg, #ffe08a, var(--gold-deep)); }
.track-mint > i { background: linear-gradient(90deg, #9ff7c9, #3ecf8e); }

/* --------------------------------------------------------------------------
   7. 卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-hover { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 225, 255, .4);
  box-shadow: 0 22px 56px rgba(2, 8, 20, .6);
}

/* --------------------------------------------------------------------------
   8. 表单
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 8px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(6, 14, 26, .85);
  border: 1px solid var(--line-strong);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field input:focus {
  border-color: rgba(56, 225, 255, .6);
  box-shadow: 0 0 0 3px rgba(56, 225, 255, .14);
}

.field input::placeholder { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   9. 通用动效
   -------------------------------------------------------------------------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise-in .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   10. 响应式基础
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .section { padding: 52px 0; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
}
