/* =====================================================================
   琉璃云免费子域名 · 全局样式（设计系统）
   依据 docs/design-spec.md 重建。仅改表现层，不改动任何 JS 逻辑/接口。
   ===================================================================== */

:root{
  /* 主色 sky */
  --primary-50:#E0F2FE; --primary-100:#BAE6FD; --primary-200:#7DD3FC;
  --primary-300:#38BDF8; --primary:#0EA5E9;       /* 主按钮 / 强调 */
  --primary-600:#0284C7;   /* hover */
  --primary-700:#0369A1;   /* 链接 / 主色文字 */
  --primary-900:#0C4A6E;

  /* 强调 violet */
  --accent:#8B5CF6; --accent-600:#7C3AED; --accent-700:#6D28D9;

  /* 中性 slate（完整 10 阶） */
  --neutral-50:#F8FAFC; --neutral-100:#F1F5F9; --neutral-200:#E2E8F0;
  --neutral-300:#CBD5E1; --neutral-400:#94A3B8; --neutral-500:#64748B;
  --neutral-600:#475569; --neutral-700:#334155; --neutral-800:#1E293B;
  --neutral-900:#0F172A;

  /* 语义色：底色 + 文字色成对出现 */
  --success:#16A34A;  --success-bg:#DCFCE7; --success-text:#15803D;
  --warning:#F59E0B;  --warning-bg:#FEF3C7; --warning-text:#B45309;
  --danger:#DC2626;   --danger-bg:#FEE2E2;  --danger-text:#B91C1C;
  --info:#0EA5E9;     --info-bg:#E0F2FE;    --info-text:#0369A1;

  /* 功能底色 */
  --bg:#F8FAFC;            /* 页面背景（提亮，更清爽） */
  --surface:#FFFFFF;       /* 卡片表面 */
  --surface-alt:#F1F5F9;   /* 次级表面 / 斑马纹 / 输入框只读底 */
  --border:#E2E8F0;        /* 默认边框 */
  --text:#1E293B;          /* 正文 */
  --text-secondary:#475569;/* 次级标题文字 */
  --text-muted:#64748B;    /* 辅助文字（≥4.5:1 时才作文字） */
  --text-disabled:#94A3B8; /* 禁用态 / 纯装饰，不可作正文 */
  --link:#0369A1;          /* 链接色（非 --primary） */

  /* 品牌渐变（沿用，不可改） */
  --gradient-brand:linear-gradient(135deg,#0EA5E9 0%,#8B5CF6 100%);
  --gradient-brand-dark:linear-gradient(135deg,#0F172A 0%,#1E293B 55%,#312E81 100%);
  --gradient-free:linear-gradient(135deg,#16A34A 0%,#059669 100%);
  --gradient-sidebar:linear-gradient(180deg,#0F172A 0%,#1E293B 100%);

  /* 圆角 */
  --radius-sm:8px; --radius:12px; --radius-lg:16px; --radius-pill:999px;
  /* 阴影 */
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow:0 2px 12px rgba(15,23,42,.06);
  --shadow-md:0 4px 16px rgba(15,23,42,.08);
  --shadow-lg:0 12px 32px rgba(15,23,42,.12);
  --ring:0 0 0 3px rgba(14,165,233,.25);   /* 聚焦环 */
  /* 间距（8pt 基准，含 4） */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px;
  --space-6:32px; --space-7:48px; --space-8:64px; --space-9:96px; --space-10:128px;
  /* 字体 */
  --font-sans:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;

  /* 兼容别名（现状 JS/HTML 内联样式仍引用） */
  --card:#FFFFFF;
  --primary-dark:#0284C7;
  --muted:#64748B;
}

/* ---------- 基础 ---------- */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-sans);
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4,h5,h6{ color:var(--text); line-height:1.3; }
code{ font-family:var(--font-mono); font-size:.92em; background:var(--neutral-100); padding:1px 5px; border-radius:4px; color:var(--text-secondary); }
img,svg{ max-width:100%; }

/* 可见焦点（无障碍硬项） */
:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; border-radius:2px; }
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,
.btn:focus-visible,a:focus-visible{ outline:none; box-shadow:var(--ring); }

/* =====================================================================
   布局 · 侧栏 + 顶栏
   ===================================================================== */
.layout{ display:flex; min-height:100vh; }
.sidebar{
  width:232px;
  background:var(--gradient-sidebar);
  color:var(--neutral-300);
  display:flex; flex-direction:column;
  position:fixed; inset:0 auto 0 0; z-index:50;
}
.brand{ padding:22px 20px 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.brand h1{ font-size:17px; color:#fff; font-weight:600; letter-spacing:.5px; display:flex; align-items:center; gap:8px; }
.brand .dot{
  width:26px; height:26px; border-radius:8px; flex:none;
  background:var(--gradient-brand); display:grid; place-items:center;
  font-size:13px; color:#fff; font-weight:700;
}
.brand p{ font-size:11px; color:var(--neutral-500); margin-top:4px; letter-spacing:.5px; }

.nav{ flex:1; overflow-y:auto; padding:12px 0; }
.nav-group{ padding:12px 20px 6px; font-size:11px; color:var(--neutral-600); letter-spacing:1px; }
.nav-item{
  display:flex; align-items:center; gap:10px;
  padding:12px 20px; cursor:pointer; font-size:13.5px;
  border-left:3px solid transparent; transition:background .15s,color .15s;
  min-height:44px;
}
.nav-item:hover{ background:rgba(255,255,255,.05); color:#fff; }
/* 侧栏菜单项是 div[role=link]，必须给可见焦点环（深色底用亮色环） */
.nav-item:focus-visible{ outline:2px solid var(--primary-200); outline-offset:-2px; color:#fff; }
.sidebar-foot a:focus-visible{ outline:2px solid var(--primary-200); outline-offset:2px; color:#fff; }
.nav-item.active{
  background:rgba(14,165,233,.14); color:var(--primary-200);
  border-left-color:var(--primary); font-weight:500;
}
.nav-item.active .ico{ opacity:1; }
.nav-item .ico{ width:18px; text-align:center; opacity:.85; font-size:15px; }

.sidebar-foot{ padding:14px 20px; border-top:1px solid rgba(255,255,255,.08); font-size:12px; }
.sidebar-foot .user{ color:var(--neutral-200); margin-bottom:8px; }
.sidebar-foot a{ color:var(--text-disabled); font-size:12px; cursor:pointer; }
.sidebar-foot a:hover{ color:var(--neutral-300); }

.main{ flex:1; margin-left:232px; display:flex; flex-direction:column; min-width:0; }
.topbar{
  height:58px; background:var(--surface); border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:12px;
  padding:0 var(--space-5); position:sticky; top:0; z-index:30;
}
.topbar .title{ font-size:22px; font-weight:700; flex:1; }
.topbar .right{ display:flex; align-items:center; gap:14px; font-size:13px; color:var(--text-muted); }
.topbar .right a{ color:var(--link); }

/* 移动端汉堡（默认隐藏，<1024 显示） */
.nav-toggle{
  display:none; width:44px; height:44px; flex:none; cursor:pointer;
  background:transparent; border:0; border-radius:var(--radius-sm); color:var(--text-secondary);
  align-items:center; justify-content:center;
}
.nav-toggle:hover{ background:var(--surface-alt); }
.nav-toggle svg{ width:22px; height:22px; }

/* 移动端遮罩 */
.nav-overlay{
  position:fixed; inset:0; background:rgba(15,23,42,.5);
  z-index:140; display:none; opacity:0; transition:opacity .2s;
}

.content{ padding:var(--space-5) var(--space-5) var(--space-8); flex:1; max-width:1280px; width:100%; margin:0 auto; }

/* =====================================================================
   卡片 / 栅格 / 统计卡
   ===================================================================== */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); margin-bottom:var(--space-4); overflow:hidden; }
.card-head{ padding:16px 20px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.card-head h3{ font-size:18px; font-weight:600; line-height:1.4; }
.card-body{ padding:20px; }

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

.stat{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden; transition:box-shadow .15s,transform .15s; }
.stat .label{ font-size:12.5px; color:var(--text-muted); }
.stat .value{ font-size:26px; font-weight:700; margin-top:6px; letter-spacing:-.5px; color:var(--text); }
.stat .sub{ font-size:11.5px; color:var(--text-disabled); margin-top:2px; }
.stat::after{ content:""; position:absolute; right:-18px; top:-18px; width:70px; height:70px; border-radius:50%; background:rgba(14,165,233,.08); }
.stat.green::after{ background:rgba(22,163,74,.09); }
.stat.purple::after{ background:rgba(139,92,246,.09); }
.stat.orange::after{ background:rgba(245,158,11,.10); }

/* =====================================================================
   按钮（四态 + loading）
   ===================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 16px; border:0; border-radius:var(--radius-sm); cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:600; line-height:1.2;
  min-height:44px; transition:background .15s,box-shadow .15s,transform .05s;
  background:var(--primary); color:#fff; white-space:nowrap;
}
.btn:hover{ background:var(--primary-600); }
.btn:active{ background:var(--primary-600); transform:translateY(1px); }
.btn:disabled,.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none; }

.btn.sm{ padding:6px 12px; min-height:36px; font-size:13px; font-weight:500; }
.btn.block{ width:100%; }
.btn.ghost{ background:var(--surface); color:var(--text-secondary); border:1px solid var(--border); }
.btn.ghost:hover{ background:var(--surface-alt); border-color:var(--primary); color:var(--primary-700); }
.btn.danger{ background:var(--danger); }
.btn.danger:hover{ background:var(--danger-text); }
.btn.ok{ background:var(--success); }
.btn.ok:hover{ background:var(--success-text); }
.btn.warn{ background:var(--warning); }
.btn.warn:hover{ background:#D97706; }
.btn.text{ background:transparent; color:var(--primary-700); padding:6px 10px; min-height:auto; }
.btn.text:hover{ background:var(--primary-50); }
.btn.text:disabled{ color:var(--text-disabled); }

/* loading 态：spinner（reduced-motion 时退化为省略号由 JS 文案控制） */
.btn .spinner{ width:14px; height:14px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:spin .6s linear infinite; }

/* =====================================================================
   表单 / 输入框
   ===================================================================== */
input,select,textarea{
  width:100%; padding:9px 12px; border:1px solid var(--border);
  border-radius:var(--radius-sm); font-size:14px; line-height:1.5;
  outline:none; background:var(--surface); color:var(--text);
  font-family:inherit; transition:border-color .15s,box-shadow .15s;
}
input::placeholder,textarea::placeholder{ color:var(--text-disabled); }
input:focus,select:focus,textarea:focus{ border-color:var(--primary); box-shadow:var(--ring); }
textarea{ min-height:110px; resize:vertical; line-height:1.7; }
input:disabled,select:disabled,textarea:disabled{ background:var(--surface-alt); color:var(--text-disabled); cursor:not-allowed; }
select{ appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5L6 8l3-3.5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }

label.field{ display:block; margin-bottom:14px; }
label.field > span{ display:block; font-size:12.5px; color:var(--text-secondary); margin-bottom:6px; font-weight:500; }
/* 规范要求辅助文字用 --text-muted（4.76:1）；--text-disabled 仅 2.57:1，不得作正文 */
.hint{ font-size:12px; color:var(--text-muted); margin-top:4px; line-height:1.5; }

/* 错误态 */
.field.error > span{ color:var(--danger-text); }
.field.error input,.field.error select,.field.error textarea{ border-color:var(--danger); box-shadow:0 0 0 3px rgba(220,38,38,.18); }
.field-error{ display:none; align-items:center; gap:4px; font-size:12px; color:var(--danger-text); margin-top:4px; }
.field.error .field-error{ display:flex; }
.field-error svg{ width:13px; height:13px; flex:none; }

/* 前缀输入 */
.prefix-input{ display:flex; align-items:stretch; gap:0; }
.prefix-input input{ border-radius:var(--radius-sm) 0 0 var(--radius-sm); }
.prefix-input .suffix{ display:flex; align-items:center; padding:9px 14px; border:1px solid var(--border); border-left:0; border-radius:0 var(--radius-sm) var(--radius-sm) 0; background:var(--surface-alt); color:var(--text-muted); font-size:14px; white-space:nowrap; }

/* 复选 / 单选 */
.agree{ font-size:12.5px; color:var(--text-muted); display:flex; gap:8px; align-items:flex-start; margin:12px 0 4px; line-height:1.6; cursor:pointer; }
.agree input{ width:auto; margin-top:3px; accent-color:var(--primary); }
input[type=checkbox],input[type=radio]{ accent-color:var(--primary); width:16px; height:16px; }

/* =====================================================================
   表格 / 徽章 / 分页 / 空状态
   ===================================================================== */
table{ width:100%; border-collapse:collapse; font-size:13px; }
table th{
  text-align:left; padding:11px 14px; background:var(--neutral-50);
  color:var(--text-secondary); font-weight:600; font-size:12px;
  border-bottom:1px solid var(--border); white-space:nowrap;
}
table td{ padding:11px 14px; border-bottom:1px solid var(--neutral-100); vertical-align:middle; color:var(--text); }
table tbody tr:hover{ background:var(--neutral-50); }
.table-wrap{ overflow-x:auto; }

.badge{ display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:var(--radius-pill); font-size:12px; font-weight:500; line-height:1.5; }
.badge.ok{ background:var(--success-bg); color:var(--success-text); }
.badge.warn{ background:var(--warning-bg); color:var(--warning-text); }
.badge.err{ background:var(--danger-bg); color:var(--danger-text); }
.badge.info{ background:var(--info-bg); color:var(--info-text); }
.badge.gray{ background:var(--neutral-100); color:var(--neutral-500); }

.empty{ text-align:center; padding:46px 20px; color:var(--text-muted); }
.empty .big{ font-size:38px; margin-bottom:10px; opacity:.45; }
.empty p{ font-size:14px; color:var(--text-muted); }

.pagination{ display:flex; gap:6px; justify-content:flex-end; align-items:center; padding:14px 20px; font-size:13px; color:var(--text-muted); flex-wrap:wrap; }
.pagination button{ padding:5px 11px; border:1px solid var(--border); background:var(--surface); border-radius:6px; cursor:pointer; font-size:13px; min-height:32px; color:var(--text-secondary); }
.pagination button:hover{ border-color:var(--primary); color:var(--primary-700); }
.pagination button.active{ background:var(--primary); color:#fff; border-color:var(--primary); }

/* =====================================================================
   提示条 · Toast / Alert
   ===================================================================== */
.toast-wrap{ position:fixed; top:18px; left:50%; transform:translateX(-50%); z-index:999; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.toast{ pointer-events:auto; padding:10px 18px; border-radius:9px; color:#fff; font-size:13.5px; box-shadow:var(--shadow-md); animation:slide .22s; display:flex; align-items:center; gap:6px; }
.toast.ok{ background:var(--success); }
.toast.err{ background:var(--danger); }
.toast.info{ background:var(--primary); }

.alert{ padding:12px 15px; border-radius:9px; font-size:13px; margin-bottom:14px; border:1px solid; line-height:1.6; }
.alert.info{ background:#EFF6FF; border-color:#BFDBFE; color:var(--info-text); }
.alert.ok{ background:var(--success-bg); border-color:#BBF7D0; color:var(--success-text); }
.alert.warn{ background:var(--warning-bg); border-color:#FDE68A; color:var(--warning-text); }
.alert.err{ background:var(--danger-bg); border-color:#FECACA; color:var(--danger-text); }

/* =====================================================================
   弹窗
   ===================================================================== */
.mask{ position:fixed; inset:0; background:rgba(15,23,42,.5); display:grid; place-items:center; z-index:200; padding:20px; animation:fade .16s; }
.modal{ background:var(--surface); border-radius:var(--radius-lg); width:100%; max-width:520px; max-height:86vh; display:flex; flex-direction:column; box-shadow:var(--shadow-lg); animation:pop .16s; }
.modal.modal-wide{ max-width:720px; }
.modal-head{ padding:16px 20px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; font-size:16px; font-weight:600; }
.modal-body{ padding:20px; overflow-y:auto; }
.modal-foot{ padding:14px 20px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
/* 关闭按钮是真正的 <button>（键盘可达），需清掉浏览器默认外观 */
.close{
  cursor:pointer; color:var(--text-muted); font-size:22px; line-height:1;
  width:44px; height:44px; display:grid; place-items:center;
  margin:-10px -12px -10px 0; border-radius:var(--radius-sm);
  background:transparent; border:0; padding:0; font-family:inherit; flex:none;
}
.close:hover{ color:var(--text); background:var(--surface-alt); }
.close:focus-visible{ outline:none; box-shadow:var(--ring); }

/* =====================================================================
   域名展示 / 代码框 / 文档 / 免费标签
   ===================================================================== */
.domain-hero{
  background:var(--gradient-brand); border-radius:var(--radius);
  padding:26px 28px; color:#fff; margin-bottom:var(--space-4);
  box-shadow:0 8px 28px rgba(14,165,233,.25);
}
.domain-hero .label{ font-size:12.5px; opacity:.9; }
.domain-hero .big{ font-size:30px; font-weight:700; letter-spacing:-.5px; margin:6px 0 12px; word-break:break-all; color:#fff; }
.domain-hero .meta{ display:flex; gap:22px; flex-wrap:wrap; font-size:13px; opacity:.97; }
.domain-hero .meta b{ font-size:17px; font-weight:600; display:block; color:#fff; }

pre.code-box{
  background:var(--neutral-900); color:var(--neutral-200); padding:14px 16px; border-radius:9px;
  font-size:12.5px; line-height:1.7; overflow-x:auto; white-space:pre-wrap;
  word-break:break-all; font-family:var(--font-mono); max-height:340px; overflow-y:auto;
}
.copy-btn{ float:right; }

.doc h2{ font-size:20px; margin:4px 0 16px; font-weight:600; }
.doc h3{ font-size:15px; margin:22px 0 10px; color:var(--primary-700); font-weight:600; }
.doc p{ margin-bottom:10px; color:var(--neutral-700); line-height:1.9; }
.doc ul{ margin:0 0 12px 22px; }
.doc li{ margin-bottom:6px; line-height:1.85; color:var(--neutral-700); }
.doc b{ color:var(--neutral-900); }

.free-tag{
  display:inline-flex; align-items:center; background:var(--gradient-free);
  color:#fff; font-size:11px; padding:2px 10px; border-radius:var(--radius-pill); font-weight:500; white-space:nowrap;
}

/* 行内小工具 */
.row{ display:flex; gap:var(--space-4); flex-wrap:wrap; }
.row > .field{ flex:1; min-width:160px; }

/* =====================================================================
   登录 / 注册 / 找回密码
   ===================================================================== */
.auth-page{
  min-height:100vh; display:grid; place-items:center; padding:30px 16px;
  background:var(--gradient-brand-dark);
}
.auth-box{
  width:100%; max-width:420px; background:var(--surface); border-radius:var(--radius-lg);
  padding:34px 36px; box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.auth-box .logo{ text-align:center; margin-bottom:22px; }
.auth-box .logo .icon{
  width:52px; height:52px; margin:0 auto 12px; border-radius:14px;
  background:var(--gradient-brand); display:grid; place-items:center; color:#fff; font-size:22px; font-weight:700;
}
.auth-box .logo h2{ font-size:19px; font-weight:600; color:var(--text); }
.auth-box .logo p{ font-size:12px; color:var(--text-muted); margin-top:3px; }
.tabs{ display:flex; border-bottom:1px solid var(--border); margin-bottom:20px; }
.tabs > div{ flex:1; text-align:center; padding:10px; cursor:pointer; font-size:14px; color:var(--text-muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.tabs > div.active{ color:var(--primary-700); border-bottom-color:var(--primary); font-weight:600; }
.tabs > div:focus-visible{ outline:2px solid var(--primary); outline-offset:-2px; }
/* 落地页滚动锚点是 <a role=button>，补焦点环 */
.lnav a:focus-visible,.footer a:focus-visible{ outline:2px solid var(--primary-200); outline-offset:2px; }
.foot-link{ text-align:center; margin-top:18px; font-size:12.5px; color:var(--text-muted); }

/* =====================================================================
   落地页（公开营销页）
   ===================================================================== */
.landing{ background:var(--bg); min-height:100vh; }
.lnav{
  position:sticky; top:0; z-index:60; background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(10px); -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:0 24px; height:64px;
}
.lnav .brand-mini{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; color:var(--text); }
.lnav .brand-mini .dot{ width:30px; height:30px; border-radius:8px; background:var(--gradient-brand); display:grid; place-items:center; color:#fff; font-size:14px; font-weight:700; }
.lnav .nav-links{ display:flex; align-items:center; gap:24px; font-size:14px; color:var(--text-secondary); }
.lnav .nav-links a{ color:var(--text-secondary); cursor:pointer; }
.lnav .nav-links a:hover{ color:var(--primary-700); text-decoration:none; }
.lnav .nav-actions{ display:flex; align-items:center; gap:10px; }

.hero{
  position:relative; overflow:hidden; text-align:center;
  padding:96px 24px 72px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(800px 420px at 85% 0%, rgba(139,92,246,.12), transparent 60%),
    var(--surface);
  border-bottom:1px solid var(--border);
}
.hero h1{
  font-size:40px; line-height:1.2; font-weight:800; letter-spacing:-.5px;
  max-width:880px; margin:0 auto 18px;
  background:var(--gradient-brand); -webkit-background-clip:text; background-clip:text; color:var(--primary-700);
}
.hero .sub{ font-size:16px; line-height:1.7; color:var(--text-secondary); max-width:720px; margin:0 auto 28px; }
.hero .cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero .cta .btn{ min-height:48px; padding:12px 26px; font-size:15px; }
.hero .trust{
  display:flex; gap:18px 28px; justify-content:center; flex-wrap:wrap;
  margin-top:34px; font-size:13px; color:var(--text-muted);
}
.hero .trust span{ display:inline-flex; align-items:center; gap:7px; }
.hero .trust svg{ width:16px; height:16px; color:var(--success); flex:none; }

.section{ padding:var(--space-8) 24px; max-width:1120px; margin:0 auto; }
.section h2{ font-size:28px; font-weight:700; text-align:center; margin-bottom:12px; }
.section .lead{ text-align:center; color:var(--text-muted); font-size:16px; line-height:1.7; max-width:720px; margin:0 auto var(--space-7); }

.features{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-4); }
.feature{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow-sm); transition:box-shadow .15s,transform .15s;
}
.feature:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }
.feature .ficon{
  width:46px; height:46px; border-radius:12px; background:var(--gradient-brand);
  display:grid; place-items:center; color:#fff; margin-bottom:14px;
}
.feature .ficon svg{ width:24px; height:24px; }
.feature h3{ font-size:18px; font-weight:600; margin-bottom:8px; }
.feature p{ font-size:13.5px; color:var(--text-muted); line-height:1.7; }

.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-5); margin-top:8px; }
.step{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }
.step .num{
  width:40px; height:40px; border-radius:50%; background:var(--primary-50); color:var(--primary-700);
  display:grid; place-items:center; font-weight:700; font-size:18px; margin-bottom:14px; border:1px solid var(--primary-100);
}
.step h3{ font-size:17px; font-weight:600; margin-bottom:8px; }
.step p{ font-size:13.5px; color:var(--text-muted); line-height:1.7; }
.step code{ font-size:12px; }

.detail{ display:grid; gap:var(--space-7); }
.detail-block h2{ text-align:left; font-size:22px; margin-bottom:10px; }
.detail-block p{ font-size:15px; color:var(--text-secondary); line-height:1.8; }

/* FAQ 折叠 */
.faq{ max-width:800px; margin:0 auto; }
.faq-item{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:12px; overflow:hidden; }
.faq-item summary{
  list-style:none; cursor:pointer; padding:16px 20px; font-size:15px; font-weight:600; color:var(--text);
  display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chev{ width:18px; height:18px; color:var(--text-muted); transition:transform .2s; flex:none; }
.faq-item[open] summary .chev{ transform:rotate(180deg); }
.faq-item .faq-a{ padding:0 20px 18px; font-size:14px; color:var(--text-secondary); line-height:1.8; }
.faq-item .faq-a p{ margin-bottom:8px; }

/* CTA 条 */
.cta-bar{
  background:var(--gradient-brand); border-radius:var(--radius-lg);
  padding:48px 24px; text-align:center; color:#fff; margin:var(--space-8) 24px; max-width:1120px;
}
.cta-bar h2{ color:#fff; font-size:28px; font-weight:700; margin-bottom:18px; }
.cta-bar .btn{ min-height:48px; padding:12px 30px; font-size:15px; background:#fff; color:var(--primary-700); }
.cta-bar .btn:hover{ background:var(--neutral-100); }

/* 页脚 */
.footer{ background:var(--neutral-900); color:var(--neutral-300); padding:var(--space-8) 24px var(--space-6); margin-top:var(--space-8); }
.footer .cols{ max-width:1120px; margin:0 auto; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:var(--space-6); }
.footer .fbrand .dot{ width:30px; height:30px; border-radius:8px; background:var(--gradient-brand); display:grid; place-items:center; color:#fff; font-weight:700; margin-bottom:14px; }
.footer .fbrand p{ font-size:13px; color:var(--neutral-400); line-height:1.7; max-width:300px; }
.footer h4{ font-size:13px; color:var(--neutral-50); margin-bottom:14px; font-weight:600; }
.footer ul{ list-style:none; }
.footer li{ margin-bottom:10px; }
.footer a{ color:var(--text-disabled); font-size:13px; cursor:pointer; }
.footer a:hover{ color:var(--primary-200); text-decoration:none; }
.footer .copyright{ max-width:1120px; margin:var(--space-7) auto 0; padding-top:var(--space-5); border-top:1px solid rgba(255,255,255,.08); font-size:12px; color:var(--neutral-500); text-align:center; line-height:1.7; }

/* =====================================================================
   动画
   ===================================================================== */
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes fade{ from{ opacity:0; } }
@keyframes slide{ from{ opacity:0; transform:translateY(-12px); } }
@keyframes pop{ from{ opacity:0; transform:translateY(8px); } }

/* =====================================================================
   响应式（手机优先：640 / 1024 / 1280）
   ===================================================================== */
@media (max-width:1023px){
  .nav-toggle{ display:inline-flex; }
  .sidebar{ transform:translateX(-100%); transition:transform .25s ease; z-index:150; }
  body.nav-open .sidebar{ transform:none; box-shadow:var(--shadow-lg); }
  body.nav-open .nav-overlay{ display:block; opacity:1; }
  .main{ margin-left:0; }
  .topbar{ padding:0 16px; }
  .content{ padding:20px 16px var(--space-8); }
}

@media (max-width:1023px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:639px){
  .grid-4,.grid-3,.grid-2{ grid-template-columns:1fr; }

  .features{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .footer .cols{ grid-template-columns:1fr 1fr; }

  .hero{ padding:64px 16px 48px; }
  .hero h1{ font-size:30px; }
  .hero .cta .btn{ width:100%; }
  .section{ padding:48px 16px; }
  .section h2{ font-size:24px; }

  .lnav{ padding:0 16px; }
  .lnav .nav-links{ display:none; }
  .nav-item{ min-height:48px; }

  .topbar .title{ font-size:18px; }
  .card-head{ padding:14px 16px; }
  .card-body{ padding:16px; }

  /* 小屏输入框/按钮命中区 ≥44 */
  input,select,textarea{ min-height:44px; }
  .btn{ min-height:44px; }

  .footer .cols{ grid-template-columns:1fr; }
  .cta-bar{ margin:48px 16px; padding:36px 20px; }
  .cta-bar h2{ font-size:24px; }

  /* 小屏：分页与紧凑按钮补到 44px 命中区 */
  .btn.sm{ min-height:40px; padding:8px 12px; }
  .pagination button{ min-height:40px; padding:8px 12px; }

  /* 顶栏右侧信息挤出标题时截断，不撑破布局 */
  .topbar .right{ min-width:0; overflow:hidden; }
  .topbar .right .free-tag{ display:none; }
  .topbar .right > span:last-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* 规范要求移动端弹窗内边距 12px */
  .mask{ padding:12px; }
}

/* 动效克制：关闭位移与循环 */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
}
