/* ============================================================
   OELink 设计系统
   一、平台 UI（首页 / 编辑器 / 后台 / 仪表盘）
   二、公开主页（8 主题 × 3 布局，全部以 .oe-page 作用域）
   ============================================================ */

/* ---------- 一、平台 UI ---------- */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #23201c;
  --muted: #7a7268;
  --line: #e8e2d8;
  --accent: #b5451f;
  --accent-deep: #8f3213;
  --jade: #2e6e5e;
  --danger: #c0392b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(35, 32, 28, .04), 0 8px 24px -12px rgba(35, 32, 28, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-head: Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.6; min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 241, .88);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 18px; }
.brand { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: .14em; text-decoration: none; color: var(--ink); }
.brand em { color: var(--accent); font-style: normal; }
.topbar .sp { flex: 1; }
.topbar a.lk { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 4px; }
.topbar a.lk:hover { color: var(--ink); }
.topbar a.lk.on { color: var(--accent); font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 18px; border-radius: 10px; font-size: 14px; text-decoration: none;
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #d5cec2; transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: rgba(0,0,0,.04); transform: none; }
.btn.danger { color: var(--danger); border-color: #eeD8d4; }
.btn.danger:hover { background: #fdf3f1; border-color: #e2b8b0; }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 10px 13px; color: var(--ink); outline: none; transition: .15s;
}
.input:focus, textarea.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 69, 31, .08); }
textarea.input { resize: vertical; min-height: 76px; }
.input-sm { padding: 7px 10px; font-size: 13px; }
.form-err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 20px; }

/* 卡片 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-p { padding: 26px; }
.card-h { padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-h .right { margin-left: auto; }
.card-b { padding: 22px 24px; }

/* 徽标 */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.badge.green { color: #256d4f; border-color: #bfe3d2; background: #effaf4; }
.badge.orange { color: #a35a13; border-color: #f0d9b8; background: #fdf6ec; }
.badge.red { color: #a83226; border-color: #eccac2; background: #fdf1ee; }
.badge.gray { color: #6b6b6b; border-color: #e3e3e3; background: #f6f6f6; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #f1ede5; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fbf9f5; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.trunc { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 24px; overflow-x: auto; }
.tab { border: none; background: none; padding: 12px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* Toast */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #2b2823; color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toastIn .25s ease; max-width: 90vw; }
.toast.ok { background: #2d6a4f; }
.toast.err { background: #a83226; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* Modal */
.modal-mask { position: fixed; inset: 0; background: rgba(28, 25, 21, .45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--radius-lg); max-width: 520px; width: 100%; max-height: 84vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal-h { padding: 18px 22px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; align-items: center; }
.modal-b { padding: 20px 22px; }
.modal-f { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.x-btn { margin-left: auto; border: none; background: none; font-size: 18px; color: var(--muted); line-height: 1; padding: 2px 6px; }

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 14px; }

/* 脚注 */
.site-foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* 手机预览框 */
.phone { width: 320px; border-radius: 36px; border: 10px solid #23201c; background: #23201c; box-shadow: 0 30px 60px -20px rgba(35,32,28,.35); overflow: hidden; }
.phone .notch { height: 22px; background: #23201c; position: relative; }
.phone .notch::after { content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 92px; height: 10px; border-radius: 6px; background: #0d0c0b; }
.phone .screen { height: 560px; overflow-y: auto; background: #fff; }
.phone .screen::-webkit-scrollbar { width: 0; }
.phone .screen .oe-page { min-height: 100%; }

/* ============================================================
   二、公开主页（作用域 .oe-page）
   主题通过 .theme-* 覆盖 CSS 变量；布局通过 .layout-* 控制
   ============================================================ */

.oe-page {
  --p-bg: #fbfaf7; --p-bg2: #f4f1ea;
  --p-surface: #ffffff; --p-ink: #1c1a17; --p-muted: #857d70;
  --p-accent: #b5451f; --p-accent-ink: #ffffff;
  --p-line: #e9e3d9; --p-chip: rgba(28, 26, 23, .05);
  --p-radius: 14px; --p-shadow: 0 2px 10px -4px rgba(28, 26, 23, .12);
  --p-card-shadow: 0 1px 2px rgba(28,26,23,.05), 0 10px 30px -18px rgba(28,26,23,.25);
  --p-head-font: Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
  --p-block-gap: 12px;
  background: linear-gradient(180deg, var(--p-bg) 0%, var(--p-bg2) 100%);
  color: var(--p-ink);
  font-family: var(--font);
  min-height: 100vh;
  width: 100%;
}
body.public-page { background: var(--bg); }
.oe-page * { box-sizing: border-box; }

.oe-inner { max-width: 560px; margin: 0 auto; padding: 46px 22px 40px; }

/* 头部 */
.oe-head { text-align: center; margin-bottom: 30px; }
.oe-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 55%, #000));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 600; box-shadow: 0 10px 26px -12px var(--p-accent);
}
.oe-avatar img { width: 100%; height: 100%; object-fit: cover; }
.oe-name { font-family: var(--p-head-font); font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.oe-tagline { color: var(--p-muted); font-size: 14px; margin-top: 6px; }
.oe-badge { display: inline-block; margin-top: 12px; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--p-accent) 10%, transparent); color: var(--p-accent); border: 1px solid color-mix(in srgb, var(--p-accent) 26%, transparent); }
.oe-intro { margin-top: 18px; font-size: 14px; line-height: 1.9; color: color-mix(in srgb, var(--p-ink) 84%, transparent); text-align: left; background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 15px 17px; box-shadow: var(--p-shadow); }

/* 内容块 */
.oe-blocks { display: flex; flex-direction: column; gap: var(--p-block-gap); margin-top: 26px; }
.oe-block {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: var(--p-surface); border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 15px 17px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  box-shadow: var(--p-shadow);
}
.oe-block:hover { transform: translateY(-2px); box-shadow: var(--p-card-shadow); border-color: color-mix(in srgb, var(--p-accent) 40%, var(--p-line)); }
.oe-block .bt { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.oe-block .bs { color: var(--p-muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.oe-block .bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--p-accent); opacity: 0; transition: .16s; }
.oe-block:hover .bar { opacity: 1; }
.oe-block .arrow { margin-left: auto; color: var(--p-muted); font-size: 14px; transition: .16s; }
.oe-block:hover .arrow { color: var(--p-accent); transform: translateX(3px); }

/* 精选大卡 */
.oe-block.featured { padding: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--p-accent) 7%, var(--p-surface)), var(--p-surface)); border-color: color-mix(in srgb, var(--p-accent) 30%, var(--p-line)); }
.oe-block.featured .bt { font-size: 17px; font-family: var(--p-head-font); }
.oe-block.featured .tag { font-size: 11px; color: var(--p-accent); border: 1px solid color-mix(in srgb, var(--p-accent) 35%, transparent); border-radius: 999px; padding: 1px 8px; font-weight: 400; }

/* 布局：grid（网格） */
.oe-page.layout-grid .oe-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oe-page.layout-grid .oe-block { padding: 17px 14px; }
.oe-page.layout-grid .oe-block .bt { font-size: 14px; }
.oe-page.layout-grid .oe-block .bs { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oe-page.layout-grid .oe-block .arrow, .oe-page.layout-grid .oe-block .bar { display: none; }
.oe-page.layout-grid .oe-block.featured { grid-column: 1 / -1; }

/* 布局：card（大卡铺陈） */
.oe-page.layout-card .oe-blocks { gap: 14px; }
.oe-page.layout-card .oe-block { padding: 22px 20px; text-align: left; }
.oe-page.layout-card .oe-block .bt { font-size: 17px; }
.oe-page.layout-card .oe-block .bs { font-size: 13.5px; }

/* 社交图标墙 */
.oe-socials { margin-top: 26px; }
.oe-sec-title { text-align: center; font-size: 13px; color: var(--p-muted); margin-bottom: 14px; letter-spacing: .08em; }
.oe-social-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.oe-social {
  width: 46px; height: 46px; border-radius: 50%; background: var(--p-surface); border: 1px solid var(--p-line);
  display: flex; align-items: center; justify-content: center; color: var(--p-ink);
  transition: .16s; text-decoration: none; box-shadow: var(--p-shadow);
}
.oe-social:hover { transform: translateY(-3px); color: var(--p-accent); border-color: color-mix(in srgb, var(--p-accent) 45%, var(--p-line)); }
.oe-social svg { width: 20px; height: 20px; }

/* 微信号复制 */
.oe-wechat { margin-top: 20px; background: var(--p-surface); border: 1px dashed color-mix(in srgb, var(--p-accent) 40%, var(--p-line)); border-radius: var(--p-radius); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.oe-wechat .wlabel { font-size: 12px; color: var(--p-muted); }
.oe-wechat .wval { font-weight: 600; font-size: 15px; word-break: break-all; }
.oe-wechat .wbtn { margin-left: auto; flex-shrink: 0; border: 1px solid var(--p-accent); color: var(--p-accent); background: transparent; border-radius: 8px; padding: 6px 13px; font-size: 13px; }
.oe-wechat .wbtn:hover { background: var(--p-accent); color: var(--p-accent-ink); }

/* 引用语 */
.oe-note { margin-top: 24px; text-align: center; color: var(--p-muted); font-size: 13.5px; line-height: 1.9; font-style: italic; padding: 0 10px; }
.oe-note::before { content: "「"; }
.oe-note::after { content: "」"; }

/* CTA */
.oe-cta { display: block; margin-top: 26px; text-align: center; background: var(--p-accent); color: var(--p-accent-ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 14px; border-radius: var(--p-radius); box-shadow: 0 12px 26px -12px var(--p-accent); transition: .16s; }
.oe-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* 页脚 */
.oe-foot { margin-top: 44px; text-align: center; font-size: 12px; color: var(--p-muted); line-height: 2; }
.oe-foot a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.oe-foot .pf { letter-spacing: .12em; }
.oe-foot .pf b { color: var(--p-accent); }

/* 二维码按钮 & 弹层（公开页专用） */
.oe-qr-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--p-line, #e9e3d9); background: var(--p-surface, #fff); color: var(--p-ink, #1c1a17);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -10px rgba(0,0,0,.3);
}
.oe-qr-btn svg { width: 20px; height: 20px; }
.oe-qr-mask { position: fixed; inset: 0; background: rgba(20,18,15,.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.oe-qr-box { background: #fff; color: #1c1a17; border-radius: 18px; padding: 24px; text-align: center; max-width: 320px; width: 100%; }
.oe-qr-box h4 { font-size: 15px; margin-bottom: 4px; }
.oe-qr-box p { font-size: 12px; color: #857d70; margin-bottom: 14px; }
.oe-qr-box canvas { width: 216px; height: 216px; border: 1px solid #eee; border-radius: 10px; margin: 0 auto 14px; display: block; }
.oe-qr-box .row { display: flex; gap: 8px; justify-content: center; }
.oe-qr-box button { border: 1px solid #e0d9cd; background: #fff; border-radius: 9px; padding: 7px 14px; font-size: 13px; }
.oe-qr-box button.main { background: #b5451f; border-color: #b5451f; color: #fff; }

/* ---------- 8 套主题 ---------- */

/* 1 墨白 */
.oe-page.theme-mo { }
/* 2 宣纸 */
.oe-page.theme-xuan {
  --p-bg: #f8f3e9; --p-bg2: #f1e9d9; --p-surface: #fffdf8; --p-ink: #3a3228; --p-muted: #8d8171;
  --p-accent: #8a6a3b; --p-line: #e6dcc8; --p-shadow: 0 2px 10px -4px rgba(58,50,40,.14);
}
/* 3 朱砂 */
.oe-page.theme-zhu {
  --p-bg: #fdf7f4; --p-bg2: #f9ece6; --p-surface: #ffffff; --p-ink: #2a1f1c; --p-muted: #94796f;
  --p-accent: #c03324; --p-line: #f0ddd6; --p-radius: 16px;
}
/* 4 青瓷 */
.oe-page.theme-qing {
  --p-bg: #f3f8f5; --p-bg2: #e9f2ec; --p-surface: #ffffff; --p-ink: #1f2a26; --p-muted: #74857e;
  --p-accent: #2e6e5e; --p-line: #dcebe3;
}
/* 5 夜墨 */
.oe-page.theme-ye {
  --p-bg: #141312; --p-bg2: #0e0d0c; --p-surface: #1e1c1a; --p-ink: #f0ece4; --p-muted: #a09a8e;
  --p-accent: #d9a154; --p-accent-ink: #1c1a17; --p-line: #302d29; --p-chip: rgba(255,255,255,.07);
  --p-shadow: 0 2px 10px -4px rgba(0,0,0,.5);
}
/* 6 深海 */
.oe-page.theme-shen {
  --p-bg: #0f1620; --p-bg2: #0a0f17; --p-surface: #17202e; --p-ink: #e8eef6; --p-muted: #8fa3b8;
  --p-accent: #4c9be0; --p-accent-ink: #08111c; --p-line: #26313f; --p-shadow: 0 2px 10px -4px rgba(0,0,0,.5);
}
/* 7 暖橙 */
.oe-page.theme-nuan {
  --p-bg: #fff9f2; --p-bg2: #fef1e2; --p-surface: #ffffff; --p-ink: #33261a; --p-muted: #a08870;
  --p-accent: #e2793b; --p-line: #f4e2cd; --p-radius: 18px;
}
/* 8 樱粉 */
.oe-page.theme-ying {
  --p-bg: #fdf6f7; --p-bg2: #fae9ec; --p-surface: #ffffff; --p-ink: #35232a; --p-muted: #a1848e;
  --p-accent: #d4607f; --p-line: #f3dde2; --p-radius: 18px;
}

/* 主题选择色卡（编辑器 / 首页共用） */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); text-align: center; cursor: pointer; transition: .15s; }
.theme-card:hover { border-color: #cfc6b8; transform: translateY(-1px); }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,69,31,.1); }
.theme-card .sw { height: 44px; border-radius: 8px; margin-bottom: 7px; border: 1px solid rgba(0,0,0,.06); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.theme-card .sw i { width: 22px; height: 6px; border-radius: 3px; display: block; }
.theme-card .tn { font-size: 12.5px; color: var(--ink); }
.theme-card .td { font-size: 11px; color: var(--muted); margin-top: 1px; }

.layout-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.layout-pick { border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; background: var(--surface); cursor: pointer; text-align: center; transition: .15s; }
.layout-pick:hover { border-color: #cfc6b8; }
.layout-pick.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,69,31,.1); }
.layout-pick .nm { font-size: 13px; font-weight: 600; }
.layout-pick .ds { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.layout-pick .ic { height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; margin-bottom: 6px; }
.layout-pick .ic i { display: block; background: var(--muted); opacity: .45; border-radius: 2px; }

/* 编辑器布局 */
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; padding: 24px 0 60px; }
.ed-preview-col { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ed-sec { margin-bottom: 18px; }
.ed-list { display: flex; flex-direction: column; gap: 8px; }
.ed-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ed-item-main { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.ed-item-main .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ed-item-main .sub { font-size: 12px; color: var(--muted); }
.ed-item-form { border-top: 1px dashed var(--line); padding: 14px 12px; display: none; }
.ed-item.open .ed-item-form { display: block; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: #cfc6b8; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #d8d2c7; border: none; transition: .15s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--jade); }
.switch.on::after { left: 18px; }
.sec-toggle { width: 100%; display: flex; align-items: center; border: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sec-toggle .ar { margin-left: auto; transition: .2s; color: var(--muted); }
.sec-body { display: none; padding-top: 12px; }
.ed-sec.open .sec-toggle .ar { transform: rotate(180deg); }
.ed-sec.open .sec-body { display: block; }
.social-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.social-pick { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 4px 6px; text-align: center; cursor: pointer; }
.social-pick svg { width: 18px; height: 18px; color: var(--muted); }
.social-pick span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.social-pick.on { border-color: var(--accent); background: #fdf6f2; }
.social-pick.on svg, .social-pick.on span { color: var(--accent); }

/* 统计条 */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat .n { font-size: 26px; font-weight: 700; font-family: var(--font-head); }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; padding-top: 8px; }
.bars i { flex: 1; background: #e9e3d8; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars i.on { background: color-mix(in srgb, var(--accent) 82%, #fff); }
.bars i.on:hover { background: var(--accent-deep); }

/* 营销首页 */
.hero { padding: 74px 0 30px; display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-head); font-size: 42px; line-height: 1.28; letter-spacing: .01em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--muted); font-size: 16px; margin: 18px 0 30px; line-height: 1.9; max-width: 460px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.section { padding: 54px 0; }
.section-h { margin-bottom: 30px; }
.section-h h2 { font-family: var(--font-head); font-size: 27px; font-weight: 700; }
.section-h p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.feat .fi { width: 38px; height: 38px; border-radius: 11px; background: #f7ece5; color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat .fi svg { width: 19px; height: 19px; }
.feat h3 { font-size: 15.5px; margin-bottom: 6px; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.theme-stage { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: center; }
.theme-side .t-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.theme-side .t-desc { color: var(--muted); font-size: 14px; margin: 10px 0 20px; line-height: 1.8; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 15px; font-size: 13px; color: var(--muted); transition: .15s; }
.chip:hover { border-color: #cfc6b8; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: inherit; transition: .15s; box-shadow: var(--shadow); }
.demo-card:hover { transform: translateY(-3px); border-color: #d5cec2; }
.demo-card .dn { font-weight: 600; font-size: 15px; }
.demo-card .dd { color: var(--muted); font-size: 13px; margin-top: 4px; }
.demo-card .dtheme { margin-top: 12px; font-size: 12px; color: var(--accent); }

/* 认证页 */
.auth-wrap { min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }

/* 字体响应 */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .hero .phone { margin: 0 auto; }
  .feat-grid, .demo-row { grid-template-columns: 1fr; }
  .theme-stage { grid-template-columns: 1fr; gap: 26px; }
  .theme-stage .phone { margin: 0 auto; }
  .ed-grid { grid-template-columns: 1fr; }
  .ed-preview-col { position: static; order: -1; }
  .theme-grid { grid-template-columns: repeat(4, 1fr); }
  .phone { width: 300px; }
}
@media (max-width: 560px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 14px; }
  .card-p { padding: 20px; }
}
