/* =========================================================
   协会网站原型 · 设计系统  base.css
   「软立体 · 水波」：大圆角 + 多层柔和阴影 + 玻璃质感 + 流体曲线
   前台 / 后台共用。所有颜色、圆角、阴影都走这里的变量。
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 · 默认「晴空蓝」（参考站同色系） */
  --p-50: #eef8ff;
  --p-100: #d9efff;
  --p-200: #b7e1ff;
  --p-300: #7fcbff;
  --p-400: #3db3f6;
  --p-500: #019fe6;
  --p-600: #0284cf;
  --p-700: #0a63b0;
  --p-800: #2a3d94;
  --p-900: #1f2c45;
  --p-950: #141d31;
  --accent: #5bffb9;
  --grad-primary: linear-gradient(180deg, #27b7f6 0%, #018ee0 100%);
  --grad-brand: linear-gradient(135deg, #2a3d94 0%, #019fe6 62%, #4fd4ff 100%);
  --grad-accent: linear-gradient(93deg, #0e9ccc -6%, #4fa4d9 87%);
  --grad-text: linear-gradient(96deg, #7fe0ff 0%, #ffffff 55%, #a8ffd9 100%);
  --p-sh: rgba(1, 159, 230, .5);
  --glow-1: #2a3d94;
  --glow-2: #019fe6;
  --glow-3: #5bffb9;
  --theme-name: 晴空蓝;

  /* 中性色 */
  --ink: #0f1b2d;
  --n-900: #1f2c45;
  --n-700: #475467;
  --n-500: #667085;
  --n-400: #98a2b3;
  --n-300: #d0d5dd;
  --n-200: #e4e7ec;
  --n-100: #f2f4f7;
  --bg: #f5f7fc;
  --card: #ffffff;

  /* 语义色 */
  --ok: #12b76a;
  --ok-bg: #ecfdf3;
  --warn: #f79009;
  --warn-bg: #fffaeb;
  --danger: #f04438;
  --danger-bg: #fef3f2;
  --info: #0ba5ec;
  --info-bg: #f0f9ff;

  /* 字体 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "SF Pro Display", "Segoe UI Variable Display", var(--font);
  --paper: "Songti SC", "STSong", "SimSun", serif;

  /* 圆角 */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* 阴影（分层、柔和、带一点冷色） */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px -2px rgba(16, 24, 40, .06);
  --sh-md: 0 2px 4px -2px rgba(16, 24, 40, .06), 0 14px 30px -10px rgba(16, 24, 40, .16);
  --sh-lg: 0 4px 8px -4px rgba(16, 24, 40, .06), 0 28px 56px -16px rgba(16, 24, 40, .2);
  --sh-xl: 0 40px 90px -24px rgba(15, 27, 45, .45);
  --sh-glass: inset 0 1px 0 rgba(255, 255, 255, .55), 0 24px 48px -16px rgba(15, 27, 45, .5);

  /* 布局 */
  --container: 1240px;
  --gutter: 24px;
  --sec-y: 96px;
  --header-h: 76px;
  --header-real: 72px;
}

/* 主题 · 中国红 */
[data-theme="red"] {
  --p-50: #fff1f2;
  --p-100: #ffe2e4;
  --p-200: #ffc9ce;
  --p-300: #ff9ba5;
  --p-400: #f9647a;
  --p-500: #e0243f;
  --p-600: #c21732;
  --p-700: #9c1228;
  --p-800: #7a0f2a;
  --p-900: #5a0d24;
  --p-950: #3a0917;
  --accent: #f4c95d;
  --grad-primary: linear-gradient(180deg, #f0445f 0%, #cf1a36 100%);
  --grad-brand: linear-gradient(135deg, #8f1021 0%, #e0243f 60%, #ff9a6b 100%);
  --grad-accent: linear-gradient(93deg, #d2173a -6%, #f26a4b 87%);
  --grad-text: linear-gradient(96deg, #ffd1b0 0%, #ffffff 55%, #ffe9a8 100%);
  --p-sh: rgba(224, 36, 63, .45);
  --glow-1: #8f1021;
  --glow-2: #e0243f;
  --glow-3: #f4c95d;
  --theme-name: 中国红;
}

/* 主题 · 曜石黑金 */
[data-theme="ink"] {
  --p-50: #f1f3f8;
  --p-100: #e3e7f0;
  --p-200: #c8d0e2;
  --p-300: #a0abc7;
  --p-400: #7482a4;
  --p-500: #4a5878;
  --p-600: #3b4763;
  --p-700: #2d3850;
  --p-800: #222b40;
  --p-900: #182031;
  --p-950: #10151f;
  --accent: #e2b95a;
  --grad-primary: linear-gradient(180deg, #3d4a6b 0%, #232c44 100%);
  --grad-brand: linear-gradient(135deg, #0e121c 0%, #2d3850 58%, #8a6f2c 100%);
  --grad-accent: linear-gradient(93deg, #b8902f -6%, #e2b95a 87%);
  --grad-text: linear-gradient(96deg, #f1d48a 0%, #ffffff 55%, #e2b95a 100%);
  --p-sh: rgba(45, 56, 80, .5);
  --glow-1: #2d3850;
  --glow-2: #b8902f;
  --glow-3: #e2b95a;
  --theme-name: 曜石黑金;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; }
::selection { background: var(--p-200); color: var(--ink); }

svg.lucide { display: inline-block; vertical-align: -.15em; width: 1em; height: 1em; stroke-width: 1.8; flex: none; }
[hidden] { display: none !important; }
.i-14 { font-size: 14px; } .i-16 { font-size: 16px; } .i-18 { font-size: 18px; }
.i-20 { font-size: 20px; } .i-22 { font-size: 22px; } .i-24 { font-size: 24px; }
.i-28 { font-size: 28px; } .i-32 { font-size: 32px; }

/* ---------- 3. 文字 ---------- */
.h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -.015em; font-weight: 700; }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.h3 { font-size: 22px; line-height: 1.35; font-weight: 700; }
.h4 { font-size: 18px; line-height: 1.4; font-weight: 700; }
.lead { font-size: 18px; line-height: 1.75; color: var(--n-700); }
.small { font-size: 14px; line-height: 1.6; }
.tiny { font-size: 12px; line-height: 1.5; }
.muted { color: var(--n-500); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--num); letter-spacing: .22em; text-transform: uppercase;
  color: var(--p-600);
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M0 4c3.2-4 6.5-4 9.7 0s6.5 4 9.7 0 4.4-2.6 6.6-1.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px 8px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 8'%3E%3Cpath d='M0 4c3.2-4 6.5-4 9.7 0s6.5 4 9.7 0 4.4-2.6 6.6-1.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px 8px no-repeat;
}
.on-dark { color: #fff; }
.on-dark .muted, .on-dark.muted { color: rgba(255, 255, 255, .72); }

/* ---------- 4. 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 980px; }
.sec { padding: var(--sec-y) 0; position: relative; }
.sec-tight { padding: 56px 0; }
.sec-white { background: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.sec-head .h2 { margin-top: 12px; }
.sec-desc { max-width: 460px; color: var(--n-500); font-size: 15px; line-height: 1.75; }
.more {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 18px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--p-700); white-space: nowrap;
  background: var(--p-50); transition: background .2s, transform .2s, gap .2s;
}
.more:hover { background: var(--p-100); gap: 10px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.wrap { flex-wrap: wrap; } .col { flex-direction: column; }
.g-8 { gap: 8px; } .g-12 { gap: 12px; } .g-16 { gap: 16px; } .g-24 { gap: 24px; } .g-32 { gap: 32px; }
.grow { flex: 1; } .text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- 5. 按钮：渐变 + 内高光 + 投影，悬停上浮、按下回弹 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; line-height: 1; color: var(--ink); white-space: nowrap; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, background-color .2s, color .2s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn::before { /* 顶部高光，按键质感的关键 */
  content: ""; position: absolute; left: 2px; right: 2px; top: 1px; height: 52%;
  border-radius: var(--r-pill); pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
}
.btn-primary {
  color: #fff; background: var(--grad-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14),
              0 2px 4px rgba(16, 24, 40, .1), 0 12px 24px -10px var(--p-sh);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .14),
              0 4px 8px rgba(16, 24, 40, .1), 0 18px 32px -10px var(--p-sh);
}
.btn-primary:active {
  transform: translateY(1px) scale(.985);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), 0 4px 10px -6px var(--p-sh);
}
.btn-brand { color: #fff; background: var(--grad-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 2px 4px rgba(16, 24, 40, .1), 0 14px 28px -10px var(--p-sh); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 20px 36px -12px var(--p-sh); }
.btn-brand:active { transform: translateY(1px) scale(.985); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), 0 4px 10px -6px var(--p-sh); }
.btn-soft {
  color: var(--p-700); background: linear-gradient(180deg, #ffffff, #f2f6fc);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--n-200), 0 6px 14px -6px rgba(16, 24, 40, .16);
}
.btn-soft:hover { transform: translateY(-1px); color: var(--p-600); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--p-200), 0 10px 20px -8px rgba(16, 24, 40, .2); }
.btn-soft:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(16, 24, 40, .12), 0 0 0 1px var(--n-200); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(1px) scale(.985); }
.btn-dark { color: #fff; background: linear-gradient(180deg, #34456b, var(--p-950)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 12px 24px -10px rgba(15, 27, 45, .55); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-dark:active { transform: translateY(1px) scale(.985); }
.btn-danger { color: #fff; background: linear-gradient(180deg, #f87168, #e04237); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 20px -8px rgba(240, 68, 56, .55); }
.btn-link { height: auto; padding: 0; color: var(--p-600); font-weight: 600; }
.btn-link:hover { color: var(--p-700); text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--n-700); font-size: 20px; position: relative;
  background: linear-gradient(180deg, #fff, #f3f6fb);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--n-200), 0 6px 12px -6px rgba(16, 24, 40, .16);
  transition: transform .2s, box-shadow .2s, color .2s;
}
.icon-btn:hover { transform: translateY(-1px); color: var(--p-600); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--p-200), 0 10px 18px -8px rgba(16, 24, 40, .2); }
.icon-btn:active { transform: translateY(1px) scale(.96); }
.icon-btn.sm { width: 34px; height: 34px; font-size: 16px; }
.icon-btn.bare { background: transparent; box-shadow: none; }
.icon-btn.bare:hover { background: var(--n-100); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #fff; }

/* ---------- 6. 卡片与玻璃 ---------- */
.card {
  position: relative; background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm), inset 0 1px 0 #fff; border: 1px solid rgba(255, 255, 255, .9);
}
.card-pad { padding: 28px; }
.card-flat { box-shadow: var(--sh-xs), inset 0 1px 0 #fff; }
.card-hover { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg), inset 0 1px 0 #fff; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--n-100); }
.card-head .h3, .card-head .h4 { font-size: 17px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.card-title .bar { width: 4px; height: 18px; border-radius: 2px; background: var(--grad-accent); }
.glass {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: var(--sh-glass);
}
.panel { background: var(--n-100); border-radius: var(--r-md); padding: 20px; }

/* ---------- 7. 标签 / 徽章 / 选项卡 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--n-700); white-space: nowrap;
  background: #fff; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--n-200);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-1px); color: var(--p-700); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--p-200), 0 6px 12px -6px rgba(16, 24, 40, .18); }
.chip.active, .chip.active:hover { color: #fff; background: var(--grad-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 6px 14px -6px var(--p-sh); }
.chip .count { font-family: var(--num); font-size: 12px; opacity: .75; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: var(--n-100); color: var(--n-700);
}
.badge svg.lucide { font-size: 14px; }
.badge-ok { background: var(--ok-bg); color: #027a48; }
.badge-warn { background: var(--warn-bg); color: #b54708; }
.badge-danger { background: var(--danger-bg); color: #b42318; }
.badge-info { background: var(--info-bg); color: #026aa2; }
.badge-primary { background: var(--p-50); color: var(--p-700); }
.badge-dark { background: var(--p-900); color: #fff; }
.badge-lg { height: 34px; padding: 0 14px; font-size: 15px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-xs); font-size: 13px; color: var(--n-700); background: var(--n-100); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot-ok { color: var(--ok); } .dot-warn { color: var(--warn); } .dot-danger { color: var(--danger); } .dot-p { color: var(--p-500); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--n-100); box-shadow: inset 0 1px 3px rgba(16, 24, 40, .06); }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--n-500); transition: color .2s, background .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--p-700); background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 14px -6px rgba(16, 24, 40, .18); }
.tab .count { font-family: var(--num); font-size: 12px; opacity: .7; }
.tabs.on-dark { background: rgba(255, 255, 255, .14); }
.tabs.on-dark .tab { color: rgba(255, 255, 255, .75); }
.tabs.on-dark .tab.active { color: var(--p-700); background: #fff; }
.tab-pane:not(.active) { display: none !important; }
.tab-pane.active { display: block; animation: fade-up .4s cubic-bezier(.2, .8, .2, 1); }

/* ---------- 8. 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--n-700); }
.label .req { color: var(--danger); }
.hint { font-size: 13px; color: var(--n-400); }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--n-200), inset 0 2px 3px rgba(16, 24, 40, .04);
  transition: box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--n-400); }
.input:focus, .select:focus, .textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--p-500), 0 0 0 4px var(--p-100); }
.input:disabled { background: var(--n-100); color: var(--n-400); }
.textarea { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' 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; background-size: 18px;
}
.input-sm, .select-sm { height: 40px; font-size: 14px; padding: 0 14px; }
.select-sm { padding-right: 40px; background-position: right 12px center; }
.input-lg { height: 56px; }
.input-wrap { position: relative; }
.input-wrap > svg, .input-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--n-400); pointer-events: none; }
.input-wrap .input { padding-left: 48px; }
.input-wrap .tail { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--n-400); }
.input-wrap .tail svg { position: static; transform: none; }
.input.is-ok { box-shadow: inset 0 0 0 1.5px var(--ok), 0 0 0 4px var(--ok-bg); }
.input.is-bad { box-shadow: inset 0 0 0 1.5px var(--danger), 0 0 0 4px var(--danger-bg); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: var(--r-sm); background: var(--n-100); }
.seg button { height: 38px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--n-500); white-space: nowrap; transition: all .2s; }
.seg button.active { color: var(--p-700); background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 10px -4px rgba(16, 24, 40, .16); }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--n-300); transition: background .25s; box-shadow: inset 0 2px 3px rgba(16, 24, 40, .14); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(16, 24, 40, .28); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + span { background: var(--grad-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.switch input:checked + span::after { transform: translateX(20px); }

.check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--n-300); flex: none; }
.check.on { background: var(--grad-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); color: #fff; font-size: 14px; }
.radio { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--n-300); flex: none; }
.radio.on { box-shadow: inset 0 0 0 5px var(--p-500); }

/* ---------- 9. 头像 / 图标块 ---------- */
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; font-weight: 700; font-size: 15px; color: var(--p-700); background: var(--p-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.a2 { color: #b54708; background: #fff4e0; } .avatar.a3 { color: #027a48; background: #e6f9f0; } .avatar.a4 { color: #6941c6; background: #f1ecff; } .avatar.a5 { color: #026aa2; background: #e6f4ff; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; } .avatar-lg { width: 64px; height: 64px; font-size: 22px; } .avatar-xl { width: 96px; height: 96px; font-size: 32px; }
.avatar-group { display: flex; } .avatar-group .avatar { margin-left: -10px; box-shadow: 0 0 0 3px #fff; } .avatar-group .avatar:first-child { margin-left: 0; }

.tile {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; flex: none; color: #fff; font-size: 26px;
  background: var(--grad-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 12px 22px -10px var(--p-sh);
}
.tile-soft { color: var(--p-600); background: linear-gradient(180deg, #fff, var(--p-50)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--p-100), 0 8px 16px -8px var(--p-sh); }
.tile-glass { background: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(255, 255, 255, .3); backdrop-filter: blur(10px); }
.tile-amber { color: #b54708; background: linear-gradient(180deg, #fff, #fff1d6); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #ffe7b3, 0 8px 16px -8px rgba(247, 144, 9, .4); }
.tile-green { color: #027a48; background: linear-gradient(180deg, #fff, #dff8ec); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #c6f0dc, 0 8px 16px -8px rgba(18, 183, 106, .4); }
.tile-violet { color: #6941c6; background: linear-gradient(180deg, #fff, #efe9ff); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #e2d6ff, 0 8px 16px -8px rgba(105, 65, 198, .4); }
.tile-sm { width: 44px; height: 44px; border-radius: 14px; font-size: 21px; }
.tile-lg { width: 76px; height: 76px; border-radius: 24px; font-size: 36px; }

/* ---------- 10. 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--n-500); padding: 12px 16px; background: var(--n-100); white-space: nowrap; }
.table th:first-child { border-radius: 12px 0 0 12px; } .table th:last-child { border-radius: 0 12px 12px 0; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--n-100); vertical-align: middle; color: var(--n-900); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--p-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .mono { font-family: var(--num); letter-spacing: .02em; }
.table .right { text-align: right; }

/* ---------- 11. 流体 / 水波 / 纹理 ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: drift 16s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; left: -160px; top: -200px; background: var(--glow-1); }
.blob.b2 { width: 460px; height: 460px; right: -120px; top: 6%; background: var(--glow-2); animation-delay: -5s; animation-duration: 20s; }
.blob.b3 { width: 380px; height: 380px; left: 38%; bottom: -220px; background: var(--glow-3); opacity: .28; animation-delay: -9s; animation-duration: 24s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(7%, 11%, 0) scale(1.18); }
}
.blob-mask { border-radius: 42% 58% 62% 38% / 48% 40% 60% 52%; overflow: hidden; animation: blob-morph 14s ease-in-out infinite alternate; }
@keyframes blob-morph {
  from { border-radius: 42% 58% 62% 38% / 48% 40% 60% 52%; }
  to { border-radius: 58% 42% 40% 60% / 42% 58% 44% 56%; }
}
.blob-mask img { width: 100%; height: 100%; object-fit: cover; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wave { display: block; width: 100%; height: 90px; }
.wave-sm { height: 56px; }

/* ---------- 12. 浮层：提示 / 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 999;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: #fff; background: var(--p-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--sh-lg); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 24px; text-align: center; color: var(--n-500); }
.empty .tile { margin-bottom: 8px; }

/* ---------- 13. 动效 ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float-y { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.float-y { animation: float-y 5s ease-in-out infinite alternate; }
.anim-up { animation: fade-up .7s cubic-bezier(.2, .8, .2, 1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
html.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1100px) {
  :root { --sec-y: 72px; }
}
@media (max-width: 760px) {
  :root { --sec-y: 56px; --gutter: 18px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .sec-desc { max-width: none; }
  .lead { font-size: 16px; }
  .card-pad { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .wave { height: 48px; }
  .wave-sm { height: 32px; }
}
