/* =========================================================
   游戏经验分享 · fatechins.cn
   设计系统：新拟态 / Neumorphism（Soft UI）· 视觉升级 v2
   核心指纹：单色底 + 双向柔和阴影（亮/暗各一层），保持不变
   v2 升级摘要：
   - 色彩：正文/次级文字与描边对比度提升，背景加入极淡氛围光
   - 排版：行高、字距、标题层级与段落节奏统一
   - 组件：按钮/表单/卡片/徽标/开关状态补全（悬停/按下/聚焦/禁用）
   - 间距：区块、卡片、表单、页脚统一留白节奏
   - 响应式：1080 / 920 / 640 / 480 四档细化，防溢出与遮挡
   - 动效：头部滚动状态 + 进入视口呈现（渐进增强，尊重减弱动效）
   - 无障碍：焦点环、锚点偏移、链接可辨识、滚动条与选区优化
   ========================================================= */

:root {
  color-scheme: light;

  /* 圆角（本风格关键指纹，勿改） */
  --border-radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* 颜色 */
  --color-light: #F5F5F5;
  --bg: #E6ECF3;
  --bg-grad: linear-gradient(145deg, #F2F6FB, #DCE4EE);
  --bg-grad-soft: linear-gradient(145deg, #EDF2F9, #DFE7F1);
  --bg-grad-deep: linear-gradient(145deg, #DFE8F2, #D1DCE9);
  --color-primary: #C8E0F4;
  --color-pink: #F5E0E8;
  --color-grey: #E8E8E8;

  --text: #232F45;
  --text-2: #55647C;
  --accent: #2F5C8C;
  --accent-strong: #24476E;
  --accent-soft: rgba(47, 92, 140, 0.14);
  --pink-deep: #834963;

  --line: rgba(88, 105, 130, 0.22);
  --line-soft: rgba(88, 105, 130, 0.13);

  /* 阴影 / 深度 */
  --shadow-soft-1: -6px -6px 16px rgba(255, 255, 255, 0.9);
  --shadow-soft-2: 7px 7px 18px rgba(92, 110, 136, 0.26);
  --shadow-raised: var(--shadow-soft-1), var(--shadow-soft-2);
  --shadow-raised-sm: -3px -3px 9px rgba(255, 255, 255, 0.85), 4px 4px 12px rgba(92, 110, 136, 0.22);
  --shadow-raised-lg: -12px -12px 28px rgba(255, 255, 255, 0.95), 14px 14px 34px rgba(92, 110, 136, 0.3);
  --shadow-inset: inset 4px 4px 10px rgba(92, 110, 136, 0.22), inset -4px -4px 10px rgba(255, 255, 255, 0.9);
  --shadow-inset-sm: inset 2px 2px 6px rgba(92, 110, 136, 0.18), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
  --shadow-press: inset 5px 5px 12px rgba(36, 71, 110, 0.45), inset -4px -4px 10px rgba(255, 255, 255, 0.18);

  /* 焦点环 / 边缘高光 */
  --ring: rgba(47, 92, 140, 0.55);
  --edge: rgba(255, 255, 255, 0.66);
  --edge-strong: rgba(255, 255, 255, 0.85);

  /* 动效 */
  --dur: 180ms;
  --dur-fast: 150ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.25, 0.6, 0.35, 1);

  --font: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* 锚点跳转避开吸顶导航 */
  scroll-padding-top: 96px;
  /* Firefox 滚动条配色 */
  scrollbar-color: #AFBDD0 #E4EAF2;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--bg);
  /* 极淡氛围光：蓝 + 粉，保持单色底指纹的同时增加层次 */
  background-image:
    radial-gradient(1200px 560px at 10% -10%, rgba(122, 164, 212, 0.16), transparent 62%),
    radial-gradient(980px 520px at 94% 0%, rgba(214, 166, 198, 0.13), transparent 60%),
    linear-gradient(180deg, #EBF1F8, #E2E9F2 46%, #E6ECF3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img, svg { display: block; }

/* 正文内链接带可辨识的下划线（组件级链接会单独关闭） */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(47, 92, 140, 0.32);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
a:hover { text-decoration-color: currentColor; }

::selection { background: rgba(47, 92, 140, 0.22); }

/* Webkit 滚动条 */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #E4EAF2; }
::-webkit-scrollbar-thumb {
  background: #B7C4D5;
  border: 3px solid #E4EAF2;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: #A2B2C6; }

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -88px;
  z-index: 100;
  padding: 13px 22px;
  border-radius: var(--border-radius);
  background: #FFFFFF;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* 可见焦点环（键盘导航） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }

.section-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(214, 224, 236, 0.62));
  border-top: 1px solid var(--edge-strong);
  border-bottom: 1px solid var(--line-soft);
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 12px 0 14px;
}
.section-head .lead { font-size: 16px; }

.lead {
  color: var(--text-2);
  max-width: 36em;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(230, 236, 243, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  transition: box-shadow var(--dur-slow) var(--ease), background-color var(--dur-slow) var(--ease);
}
/* 滚动后（由 main.js 添加）：加深投影，与内容分层 */
.site-header.is-scrolled {
  background: rgba(228, 235, 243, 0.94);
  box-shadow: 0 16px 32px -20px rgba(59, 78, 105, 0.45);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
  color: var(--accent);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-2);
}

.nav-desktop { margin-left: auto; }

.nav-links,
.nav-mobile {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-grad);
  box-shadow: var(--shadow-raised-sm);
  transform: translateY(-1px);
}
.nav-links a.is-active {
  color: var(--accent);
  font-weight: 700;
  box-shadow: var(--shadow-inset-sm);
}

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
  color: var(--text);
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.nav-toggle:hover { transform: translateY(-1px); }
.nav-toggle:active { box-shadow: var(--shadow-inset-sm); transform: scale(0.97); }

.nav-toggle-ico, .nav-toggle-close { display: grid; place-items: center; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-ico > svg { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: grid; }

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 10px 0 20px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 26px 44px rgba(59, 78, 105, 0.28);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.nav-panel.is-open { display: block; animation: panel-in 260ms var(--ease); }

.nav-mobile { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0; }
.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-mobile a:hover { color: var(--text); background: var(--bg-grad); }
.nav-mobile a.is-active { color: var(--accent); font-weight: 700; box-shadow: var(--shadow-inset-sm); }
.nav-mobile-cta { width: 100%; margin-top: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(150deg, #46789F, #2C5583 58%, #274E79);
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(18, 43, 72, 0.32),
    -4px -4px 10px rgba(255, 255, 255, 0.68),
    6px 6px 16px rgba(38, 74, 112, 0.42);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(18, 43, 72, 0.32),
    -5px -5px 12px rgba(255, 255, 255, 0.72),
    9px 10px 22px rgba(38, 74, 112, 0.48);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-press);
}

.btn-secondary {
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  color: var(--text);
  box-shadow: var(--shadow-raised);
}
.btn-secondary:hover {
  color: var(--accent);
  border-color: rgba(47, 92, 140, 0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised-lg);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-inset-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0 10px;
  box-shadow: none;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost:active { transform: scale(0.98); opacity: 0.85; }

.btn[disabled],
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
  box-shadow: var(--shadow-inset-sm);
  background: #E3E9F1;
  color: var(--text-2);
}

/* ---------- 徽标 / 标签 / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); }
.badge-pink { background: var(--color-pink); color: var(--pink-deep); }
.badge-grey { background: var(--color-grey); color: var(--text-2); }
.badge-outline { background: transparent; color: var(--text-2); border: 1px solid var(--line); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-grad);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-raised-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.chip strong { color: var(--text); font-weight: 800; }
.chip-value { color: var(--text-2); }

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.chip-dot--pink { background: #C98BA8; }
.chip-dot--grey { background: #9AA9BD; }

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #E2E9F2;
  box-shadow: var(--shadow-inset-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
}
.dot--pink { background: #C98BA8; }
.dot--grey { background: #9AA9BD; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-grad);
  border-radius: var(--radius-lg);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
  padding: 26px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--edge-strong);
  box-shadow: var(--shadow-raised-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised-sm);
  color: var(--accent-strong);
  flex: none;
}

.feature-card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 18px 0 10px; }
.feature-card p { font-size: 15px; color: var(--text-2); line-height: 1.72; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-more:hover { gap: 12px; color: var(--accent-strong); }

/* 栏目预览大卡 */
.panel-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.panel-card-head h3 { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.panel-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-2); text-transform: uppercase; }
.panel-card-head .badge { margin-left: auto; }
.panel-card > p { font-size: 15px; color: var(--text-2); line-height: 1.72; }

.mini-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.mini-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--bg-grad-soft);
  box-shadow: var(--shadow-raised-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.mini-list a:hover {
  color: var(--accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-raised);
}
.mini-list a svg { color: var(--accent); flex: none; }

/* 任务卡片 */
.task-card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 16px 0 10px; }
.task-card > p { font-size: 15px; color: var(--text-2); line-height: 1.72; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.task-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.meta-row span { color: var(--text-2); }
.meta-row strong { font-weight: 800; }

/* 步骤卡（阅读方式） */
.step-card { display: flex; flex-direction: column; align-items: flex-start; }
.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--bg-grad);
  box-shadow: var(--shadow-inset-sm);
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
}
.step-card h3 { font-size: 17px; font-weight: 800; margin: 16px 0 8px; }
.step-card p { font-size: 15px; color: var(--text-2); line-height: 1.72; }

/* 团队成员卡 */
.member-card { text-align: center; }
.member-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  color: #3A5A7E;
  background: linear-gradient(145deg, #E9F2FB, #D3E1F0);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
}
.member-avatar--pink {
  color: var(--pink-deep);
  background: linear-gradient(145deg, #F7E8EE, #EED8E2);
}
.member-card h3 { font-size: 18px; font-weight: 800; margin: 16px 0 4px; }
.member-role { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.member-bio { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.72; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* 统计卡 */
.stat-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised-sm);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--bg-grad);
  box-shadow: var(--shadow-inset-sm);
  color: var(--accent);
  margin-bottom: 12px;
}
.stat-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.stat-value { display: block; font-size: 19px; font-weight: 800; margin-top: 6px; line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- 首屏 Hero ---------- */
.hero { padding: 76px 0 52px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 18px 0 22px;
}

.hero-sub { font-size: 17px; color: var(--text-2); max-width: 34em; line-height: 1.78; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-raised-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.hero-note svg { color: var(--accent); }

/* Hero 装饰视觉（纯 CSS/SVG） */
.hero-visual { position: relative; padding: 22px; }

.hero-panel {
  border-radius: 28px;
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised-lg);
  padding: 22px;
}

.hero-screen {
  border-radius: 20px;
  background: linear-gradient(145deg, #DFE8F1, #D3DDE9);
  box-shadow: var(--shadow-inset);
  padding: 22px;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.screen-title { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }

.ring-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 2px auto 20px;
}
.ring-wrap svg { width: 100%; height: 100%; }
/* 用 CSS 变量统一圆环颜色（覆盖 SVG 内联描边，保持主题一致） */
.ring-wrap svg circle:first-of-type { stroke: rgba(92, 110, 136, 0.16); }
.ring-wrap svg circle:last-of-type { stroke: var(--accent); }
.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring-center strong { font-size: 26px; font-weight: 900; line-height: 1.1; display: block; letter-spacing: -0.01em; }
.ring-center span { font-size: 12px; font-weight: 600; color: var(--text-2); }

.bars { display: grid; gap: 12px; }
.bar {
  display: grid;
  grid-template-columns: 78px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.bar-track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: #D6E0EC;
  box-shadow: var(--shadow-inset-sm);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #86AED2, #2F5C8C);
}
.bar-val { text-align: right; font-weight: 800; color: var(--text); }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-chip svg { color: var(--accent); flex: none; }
.float-chip--a { top: 6%; left: 0; }
.float-chip--b { bottom: 9%; right: 0; animation-delay: -2.7s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 组件 / 交互展示 ---------- */
.showcase { display: grid; gap: 20px; }

.showcase-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-grad-soft);
  box-shadow: var(--shadow-inset-sm);
}
.showcase-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
}
.showcase-cluster { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.showcase-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.72;
}
.showcase-note svg { color: var(--accent); flex: none; margin-top: 3px; }

/* 开关 Toggle */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  position: relative;
  width: 56px;
  height: 32px;
  flex: none;
  border-radius: var(--radius-pill);
  background: #DCE3EC;
  box-shadow: var(--shadow-inset-sm);
  transition: background var(--dur) var(--ease);
}
.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFFFFF, #E8EDF4);
  box-shadow: 2px 2px 6px rgba(92, 110, 136, 0.35), -1px -1px 4px rgba(255, 255, 255, 0.9);
  transition: transform var(--dur) var(--ease);
}
.switch input:checked + .switch-track { background: linear-gradient(145deg, #4678A9, #2B5480); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(24px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--ring); outline-offset: 3px; }
.switch input:disabled + .switch-track { opacity: 0.45; }
.switch:has(input:disabled) { cursor: not-allowed; opacity: 0.75; }
.switch:hover input:not(:disabled) + .switch-track { background: #D3DBE6; }
.switch:hover input:checked:not(:disabled) + .switch-track { background: linear-gradient(145deg, #4C7FAE, #2E5A86); }

/* ---------- 表单 ---------- */
.form-wrap { max-width: 780px; }

.form-card { padding: 34px; }
.form-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.5rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.form-card > p { font-size: 15px; color: var(--text-2); margin-bottom: 26px; line-height: 1.72; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }

.field label { font-size: 14px; font-weight: 700; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background-color: #E8EEF5;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-inset-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
textarea.input { min-height: 140px; resize: vertical; line-height: 1.7; }
.input::placeholder { color: #8E9DB2; }
.input:hover { border-color: rgba(47, 92, 140, 0.38); }
.input:focus-visible {
  border-color: var(--accent);
  background-color: #EAF0F7;
  box-shadow: var(--shadow-inset-sm), 0 0 0 4px var(--accent-soft);
}
/* 浏览器校验失败时的可视提示（渐进增强） */
.input:user-invalid { border-color: #B4556B; }

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355647C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.form-hint { font-size: 13px; color: var(--text-2); }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #E6EFF8, #D8E4F1);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-inset-sm);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}
.form-success svg { flex: none; margin-top: 3px; }

/* ---------- 子页：页头 / 面包屑 ---------- */
.page-hero { padding: 56px 0 10px; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 16px 0 18px;
}
.page-hero .lead { font-size: 17px; }
.page-hero .meta-chips { margin-top: 24px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.breadcrumb a { color: var(--text-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb > span[aria-hidden="true"] { color: #9AA9BD; }
.breadcrumb span[aria-current="page"] { color: var(--text); font-weight: 700; }

.meta-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--bg-grad);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-raised-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 文章详情 ---------- */
.article { max-width: 880px; margin: 0 auto; }
.article-section { margin-top: 56px; }
.article-section > h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

/* 分步攻略 */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-grad);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-raised-lg); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-grad);
  box-shadow: var(--shadow-inset-sm);
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
}
.steps h3 { font-size: 17px; font-weight: 800; margin: 2px 0 8px; }
.steps p { font-size: 15px; color: var(--text-2); line-height: 1.72; }

/* 提示盒 */
.callout {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #EAF2F9, #DFE8F1);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-inset-sm);
}
.callout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
}
.callout-head svg { color: var(--accent); flex: none; }
.callout ul { list-style: none; display: grid; gap: 10px; }
.callout li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.72;
}
.callout li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 准备清单 */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.check-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  background: var(--bg-grad);
  box-shadow: var(--shadow-inset-sm);
  color: var(--accent);
}

/* 相关任务 */
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.related-card h3 { font-size: 17px; font-weight: 800; margin: 8px 0 8px; }
.related-card p { font-size: 14px; color: var(--text-2); line-height: 1.72; }
.related-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* CTA 横幅 */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #DEEAF6, #CFDCEC);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-raised);
}
.cta-copy h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
.cta-copy p { font-size: 15px; color: var(--text-2); max-width: 34em; line-height: 1.72; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}
.contact-side { display: grid; gap: 20px; }
.info-card h3 { font-size: 17px; font-weight: 800; margin: 16px 0 6px; }
.info-card p { font-size: 14px; color: var(--text-2); line-height: 1.72; }
.info-card a { font-weight: 700; }

.note-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.72;
}
.note-line svg { color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  padding: 60px 0 26px;
  background: linear-gradient(180deg, #E3EAF3, #D5DFEC);
  border-top: 1px solid var(--edge-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p { font-size: 14px; color: var(--text-2); max-width: 30em; margin-top: 16px; line-height: 1.72; }
.footer-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-mail svg { color: var(--accent); flex: none; }
.footer-mail a { color: var(--text); text-decoration: none; }
.footer-mail a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--accent); padding-left: 3px; }
.footer-col li span { color: var(--text-2); font-size: 14px; font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-2);
}
.footer-icp a { color: var(--text-2); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-icp a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 辅助 ---------- */
.strip { padding: 4px 0 8px; }
.section-more { margin-top: 26px; }
.page-hero .eyebrow { margin-top: 26px; }
.task-card .link-more { margin-top: 18px; }

/* ---------- 动效 ---------- */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 进入视口的呈现动效：仅在 JS 就绪（html.js-fx）且未开启减弱动效时启用 */
@media (prefers-reduced-motion: no-preference) {
  html.js-fx .fx-reveal { opacity: 0; }
  html.js-fx .fx-reveal.fx-in {
    animation: fx-rise 620ms var(--ease) both;
    animation-delay: var(--fx-delay, 0ms);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav-desktop { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }

  .hero { padding: 52px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }

  .grid-2, .related-grid, .contact-grid { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; gap: 14px; }

  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .card { padding: 21px; }
  .form-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }

  .steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .steps li::before { width: 48px; height: 48px; border-radius: 14px; font-size: 14px; }

  .cta-band { padding: 30px 22px; }
  .hero-title { margin: 14px 0 18px; }
  .float-chip { max-width: 200px; font-size: 12px; padding: 9px 12px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-bar { min-height: 68px; gap: 14px; }
  .brand-sub { letter-spacing: 0.12em; }

  .hero-actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-actions .form-hint { text-align: center; }

  /* 装饰性浮动标签在窄屏隐藏，避免遮挡内容 */
  .float-chip { display: none; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
