:root {
  --ink: #1c1c1f;
  --mut: #8a8a93;
  --line: #e6e6ea;
  --bg: #f6f6f8;
  --panel: #fff;
  --accent: #1f1f23;
  --accent-soft: #ececef;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fff7ed;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.nav {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 0;
  position: sticky; top: 0; height: 100vh;
}
.nav .brand {
  font-weight: 700; font-size: 16px; padding: 0 20px 16px;
  display: flex; align-items: center; gap: 8px;
}
.nav .brand .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.nav .brand small { color: var(--mut); font-weight: 400; font-size: 11px; }
.nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px; color: #555; text-decoration: none; font-size: 13.5px;
  border-left: 3px solid transparent;
}
.nav a:hover { background: #fafafa; }
.nav a.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.nav a.future { color: #c2c2c8; cursor: pointer; }
.nav a.future::after { content: "即将开放"; font-size: 10px; margin-left: auto; color: #c2c2c8; border: 1px solid #e6e6ea; border-radius: 8px; padding: 0 5px; }
.nav a .ico { width: 16px; text-align: center; opacity: .8; }

.main { padding: 28px 36px 80px; max-width: 1040px; }
.view-h { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.view-sub { color: var(--mut); margin: 0 0 24px; font-size: 13px; }

/* ---- cards / sections ---- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.card-h { font-weight: 600; font-size: 14.5px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.card-h .step-n {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.card.disabled { opacity: .5; pointer-events: none; }

/* ---- buttons / pills ---- */
.btn {
  border: 1px solid var(--accent); border-radius: 7px; padding: 8px 16px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 500;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px;
  font-size: 12.5px; color: #555; background: #fff;
}
.pill select { border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.inp { border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font: inherit; outline: none; min-width: 180px; }
.inp:focus { border-color: var(--accent); }
.pill input[type="datetime-local"] { border: 0; background: transparent; font: inherit; outline: none; }
.list-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 14px 18px; margin-bottom: 10px; font-size: 13.5px; }
.list-item .grow { flex: 1; }
.list-item .sub { color: var(--mut); font-size: 12px; }
.list-item .sub.err { color: var(--err); display: block; margin-top: 2px; }
/* 发布账号卡片网格：每个账号一张卡（平台 logo + 用户名），剩余额度补空位卡 */
#accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
#accounts .empty { grid-column: 1 / -1; }
.acc-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; background: #fff; }
.acc-logo { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.acc-logo svg { width: 36px; height: 36px; display: block; }
.acc-logo-txt { font-weight: 700; font-size: 12px; color: var(--ink); }
.acc-name { font-weight: 600; font-size: 14px; word-break: break-all; line-height: 1.25; }
.acc-plat { font-size: 12px; color: var(--mut); }
.acc-plat.err { color: var(--err); }
.acc-card .btn { margin-top: 2px; }
.acc-card.slot-empty { border-style: dashed; background: transparent; }
.acc-card.slot-empty .acc-name, .acc-card.slot-empty .acc-plat { color: var(--mut); }
.slot-plus { border-radius: 10px; background: #f1f1f4; color: var(--mut); font-size: 24px; line-height: 1; }
.spacer { flex: 1; }

/* 素材库卡片 */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.asset-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.ac-thumb { position: relative; height: 96px; display: flex; align-items: center; justify-content: center; font-size: 34px; background: #f4f4f6; }
.store-badge { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px; letter-spacing: .3px; }
.store-badge.loc { background: #eef1f4; color: #5b6470; border: 1px solid #d8dee5; }
.store-badge.r2 { background: #fff1e6; color: #c2410c; border: 1px solid #fcd9bd; }
.store-badge.s3 { background: #fef9e7; color: #92400e; border: 1px solid #fde68a; }
.store-badge.oss { background: #e7f0ff; color: #1d4ed8; border: 1px solid #bfd4fe; }
.ac-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ac-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-meta { font-size: 12px; color: var(--ink); }
.ac-meta .sub { color: var(--mut); }
.ac-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ac-actions .btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost.danger { color: var(--err); border-color: #f0c9c9; }
.btn.ghost.danger:hover { background: var(--err-bg); }
/* 网盘导入进度行 */
#imports { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.import-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; font-size: 13px; }
.import-row .grow { flex: 1; }
.import-row .sub { color: var(--mut); font-size: 12px; }
.import-row.failed { border-color: #f0c9c9; background: var(--err-bg); }
.ipbar { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.ipbar-fill { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.import-row.failed .ipbar-fill { background: var(--err); }
/* 成品库：成片预览 + 版本历史 */
.ac-video { position: relative; background: #000; aspect-ratio: 9 / 16; max-height: 280px; display: flex; align-items: center; justify-content: center; }
.ac-video video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.ac-video .empty { color: #888; padding: 0; }
/* 素材源片可能是横屏，用 16/9 矮缩略图，避免大面积黑边 */
.ac-video.asrc { aspect-ratio: 16 / 9; max-height: 170px; font-size: 34px; color: #d8d8dc; }
.ver-list { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ver-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ver-tag { font-weight: 600; font-size: 11px; padding: 1px 7px; border-radius: 8px; background: #eef1f4; color: #5b6470; }
.ver-tag.reburn { background: #fff1e6; color: #c2410c; }
.ver-row .sub { color: var(--mut); }

/* ---- upload dropzone ---- */
.drop {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 34px; text-align: center; color: var(--mut); background: #fcfcfd;
  transition: border-color .15s, background .15s;
}
.drop.hot { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.drop .big { font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.drop input { display: none; }
.asset-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3c4;
  border-radius: 8px; padding: 8px 14px; font-size: 13px;
}

/* ---- mode grid ---- */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modecard {
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff;
  position: relative; cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.modecard:hover { border-color: #bbb; }
.modecard.sel { border: 2px solid var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.modecard .thumb {
  aspect-ratio: 9/16; background:
    repeating-linear-gradient(45deg, #ededf0, #ededf0 8px, #f5f5f7 8px, #f5f5f7 16px);
  display: flex; align-items: flex-end; justify-content: center; position: relative;
  background-size: cover; background-position: center;
}
.modecard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modecard .subbar {
  position: absolute; bottom: 12%; left: 8%; width: 84%; z-index: 1;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; text-align: center; border-radius: 3px; padding: 3px 0;
}
.modecard .subbar.caption { bottom: 4%; background: rgba(0,0,0,.78); padding: 5px 0; }
.modecard .meta { padding: 8px 10px; }
.modecard .meta b { font-size: 13px; display: block; }
.modecard .meta span { color: var(--mut); font-size: 11px; }
.modecard .rec {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--ok-bg); color: var(--ok); font-size: 10px; font-weight: 700;
  border: 1px solid var(--ok); border-radius: 4px; padding: 1px 7px;
}
.modecard .check {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); color: #fff; display: none;
  align-items: center; justify-content: center; font-size: 12px;
}
.modecard.sel .check { display: flex; }

/* ---- note ---- */
.note {
  background: var(--warn-bg); border: 1px solid #fed7aa; color: var(--warn);
  border-radius: 8px; padding: 10px 13px; font-size: 12.5px; margin-top: 14px;
}
.note b { color: #92400e; }

/* ---- webhook 信息块（支付配置页）---- */
.wh-box {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; font-size: 12.5px; color: #555; margin-top: 14px;
}
.wh-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.wh-row { margin: 4px 0; }
.wh-row.note { margin-top: 8px; }
.wh-list { margin: 6px 0 2px; padding-left: 18px; }
.wh-list li { margin: 3px 0; }
.wh-box code { background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; font-size: 12px; }
.wh-ok, .wh-bad { font-size: 11px; border-radius: 8px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.wh-ok { color: var(--ok); background: var(--ok-bg); }
.wh-bad { color: var(--warn); background: var(--warn-bg); border: 1px solid #fed7aa; }

/* ---- board / jobs ---- */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--panel); }
.stat .n { font-size: 24px; font-weight: 700; }
.stat .l { color: var(--mut); font-size: 12px; }

.job { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px 18px; margin-bottom: 12px; }
.job-top { display: flex; align-items: center; gap: 12px; }
/* 已完成任务：摘要行可点击展开/收起 */
.job-done-head { cursor: pointer; }
.job-done .caret { color: var(--mut); font-size: 12px; width: 14px; text-align: center; }
.job-done:not(.open):hover { border-color: #cfcfd6; }
.job-id { font-weight: 600; }
.job-id small { color: var(--mut); font-weight: 400; margin-left: 6px; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 12px; font-weight: 600; }
.badge.run { background: var(--accent-soft); color: var(--accent); }
.badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.failed { background: var(--err-bg); color: var(--err); }

.steps { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; }
.steps .s { padding: 3px 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--mut); }
.steps .s.done { background: var(--ok-bg); border-color: #bfe3c4; color: var(--ok); }
.steps .s.cur { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps .arrow { color: #ccc; }
.job-err { color: var(--err); background: var(--err-bg); border-radius: 6px; padding: 8px 12px; margin-top: 12px; font-size: 12.5px; }

/* ---- result preview ---- */
.result { display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.result video { width: 100%; border-radius: 8px; background: #000; aspect-ratio: 9/16; }
.result .title { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.result .tags { color: #555; font-size: 12.5px; margin-bottom: 14px; }
.result .tags span { color: var(--mut); }
.srtbox { max-height: 260px; overflow-y: auto; }
.srtline { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.srtline .t { color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; }
.srtline .e { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 4px 7px; font: inherit; outline: none; }
.srtline .e:focus { border-color: var(--accent); }

.empty { text-align: center; color: var(--mut); padding: 50px 0; }
.empty .big { font-size: 15px; color: var(--ink); margin-bottom: 6px; }

.hidden { display: none !important; }

/* ---- publish rule form ---- */
.rule-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-l { font-size: 12.5px; font-weight: 600; color: #555; }
.field-l small { font-weight: 400; color: var(--mut); margin-left: 6px; }
.rule-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty::before { content: "先去「账号」绑定"; color: var(--mut); font-size: 13px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 13px; font-size: 13px; background: #fff;
  transition: border-color .12s, background .12s;
}
.chip:hover { border-color: #bbb; }
.chip input { display: none; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.chip:has(input:checked)::before { content: "✓"; font-size: 11px; }
.rule-actions { display: flex; align-items: center; gap: 12px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 11px; background: #ccc; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { transform: translateX(16px); }
.rules-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.rules-list:not(:empty) { border-top: 1px dashed var(--line); padding-top: 16px; }

/* ---- auth overlay ---- */
.auth-overlay {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center; z-index: 40;
}
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; width: 340px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.auth-card .brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.auth-card .brand small { color: var(--mut); font-weight: 400; font-size: 11px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.auth-tab { flex: 1; padding: 8px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 13px; color: var(--mut); }
.auth-tab.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.auth-card input {
  width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line);
  border-radius: 7px; font: inherit; outline: none;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-err { color: var(--err); font-size: 12.5px; margin-top: 10px; min-height: 16px; }

.nav-foot { margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--line); }
.nav-user { padding: 0 20px 8px; font-size: 12px; color: var(--mut); word-break: break-all; }

/* ---- admin panel ---- */
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.admin-top .sub { color: var(--mut); font-size: 12px; margin-left: 8px; }
.admin-body { max-width: 860px; margin: 0 auto; padding: 24px; }
.tabbar { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabbar .tab {
  border: 0; background: transparent; padding: 10px 16px; font: inherit; font-size: 13.5px;
  color: var(--mut); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabbar .tab:hover { color: var(--ink); }
.tabbar .tab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
/* 面板内子 Tab（多区块） */
.subtabbar { display: inline-flex; gap: 4px; margin-bottom: 16px; background: #f4f4f6; border-radius: 9px; padding: 3px; }
.subtabbar .subtab {
  border: 0; background: transparent; padding: 6px 14px; font: inherit; font-size: 12.5px;
  color: var(--mut); cursor: pointer; border-radius: 7px;
}
.subtabbar .subtab:hover { color: var(--ink); }
.subtabbar .subtab.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.subtabbar .active-dot { color: var(--ok); font-size: 9px; vertical-align: middle; }
.active-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.active-badge { font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-bg); border: 1px solid #bfe3c4; border-radius: 8px; padding: 2px 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-body label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #555; }
.admin-body label.full { grid-column: 1 / -1; }
.admin-body label > .full, .admin-body label.full { margin-top: 14px; }
.admin-body select.inp, .admin-body select {
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font: inherit; background: #fff; outline: none;
}
.admin-body textarea.inp { font-family: ui-monospace, Menlo, monospace; font-size: 12px; resize: vertical; }
.admin-body .subhead { font-weight: 600; font-size: 12.5px; color: var(--mut); margin: 16px 0 8px; }
.utable { width: 100%; border-collapse: collapse; font-size: 13px; }
.utable th, .utable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.utable th { font-size: 12px; color: var(--mut); font-weight: 600; }
.utable td .sub { color: var(--mut); }
.utable tbody tr:hover { background: #fafafa; }
.pages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 14px; }
.admin-body label.page-row { flex-direction: row; align-items: center; font-size: 13.5px; color: var(--ink); }
.admin-save { display: flex; align-items: center; gap: 14px; margin: 8px 0 40px; }
.cfg-row { display: grid; gap: 8px; margin-bottom: 8px; align-items: center; }
.cfg-head { display: grid; gap: 8px; font-size: 11px; color: var(--mut); margin: 4px 2px; }
#packs-editor .cfg-row, .cfg-head { grid-template-columns: 1fr 1fr 34px; }
.cfg-row [data-del] { padding: 6px 0; }

/* 会员套餐编辑器：每档一张卡，字段带标签、自适应换行不外溢 */
.cfg-plan { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fafafb; }
.plan-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; margin-right: 30px; }
.pf { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pf > span { font-size: 11px; font-weight: 600; color: var(--mut); letter-spacing: .02em; }
.pf .inp { width: 100%; box-sizing: border-box; }
.plan-feats-l { display: block; font-size: 11px; font-weight: 600; color: var(--mut); margin: 14px 0 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cfg-plan .chips { gap: 6px; }
.cfg-del { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 0; line-height: 24px; text-align: center; border-radius: 7px; }

/* ---- landing page ---- */
body.landing { background: #fff; color: var(--ink); }
.landing main { display: block; }
.lp-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 6vw; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); z-index: 10; }
.lp-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink); }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-nav a { text-decoration: none; color: #555; font-size: 14px; }
.lp-nav a.btn { color: #fff; }
.lp-nav a.btn.ghost { color: var(--ink); }

.lp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 6vw; max-width: 1180px; margin: 0 auto; }
.lp-kicker { color: var(--mut); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 14px; }
.lp-hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.5px; }
.lp-sub { font-size: 16px; color: #555; line-height: 1.7; margin: 0 0 26px; max-width: 540px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta .btn { padding: 12px 22px; font-size: 15px; border-radius: 9px; text-decoration: none; }
.lp-note { color: var(--mut); font-size: 13px; margin-top: 14px; }

.lp-hero-art { position: relative; height: 360px; display: flex; align-items: center; justify-content: center; }
.lp-hero-art .phone { width: 190px; height: 338px; border-radius: 22px; background: linear-gradient(160deg,#2b2b30,#16161a); box-shadow: 0 24px 60px rgba(0,0,0,.22); position: relative; border: 5px solid #0c0c0e; }
.lp-hero-art .phone-sub { position: absolute; bottom: 40px; left: 12%; width: 76%; background: rgba(255,255,255,.92); color: #111; font-size: 11px; text-align: center; padding: 4px 0; border-radius: 4px; }
.lp-hero-art .phone-back { position: absolute; width: 170px; height: 300px; transform: rotate(-9deg) translate(-58px,8px); background: linear-gradient(160deg,#e9e9ec,#d6d6db); z-index: -1; opacity: .8; }

.lp-band { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 26px 6vw; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-band-item { text-align: center; min-width: 150px; }
.lp-band-item b { display: block; font-size: 22px; }
.lp-band-item span { color: var(--mut); font-size: 13px; }

.lp-section { max-width: 1100px; margin: 0 auto; padding: 72px 6vw; }
.lp-section > h2 { font-size: 30px; text-align: center; margin: 0 0 10px; letter-spacing: -.3px; }
.lp-section-sub { text-align: center; color: var(--mut); margin: 0 0 34px; }
.lp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.lp-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.lp-card h3 { margin: 0 0 8px; font-size: 16px; }
.lp-card p { margin: 0; color: #555; font-size: 14px; line-height: 1.65; }

.lp-how { background: var(--bg); max-width: none; }
.lp-steps { list-style: none; padding: 0; margin: 34px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.lp-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.lp-steps li span { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.lp-steps li b { display: block; margin-bottom: 4px; }
.lp-steps li p { margin: 0; color: var(--mut); font-size: 13px; }

.lp-pricing { grid-template-columns: repeat(4,1fr); }
.lp-card.price { display: flex; flex-direction: column; }
.lp-card.price.hot { border: 2px solid var(--accent); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.lp-card.price .price-n { font-size: 30px; font-weight: 800; margin: 6px 0 14px; }
.lp-card.price .price-n small { font-size: 13px; font-weight: 400; color: var(--mut); }
.lp-card.price ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.lp-card.price li { padding: 5px 0; border-bottom: 1px dashed var(--line); color: #555; font-size: 13.5px; }
.lp-card.price .btn { text-align: center; text-decoration: none; }
.lp-card.price li .soon { font-size: 10px; color: var(--mut); border: 1px solid var(--line); border-radius: 7px; padding: 0 6px; margin-left: 4px; vertical-align: middle; }

.lp-final { text-align: center; padding: 80px 6vw; }
.lp-final h2 { font-size: 30px; margin: 0 0 22px; }
.lp-final .btn { padding: 13px 30px; font-size: 16px; text-decoration: none; border-radius: 9px; }
.lp-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px 6vw; border-top: 1px solid var(--line); color: var(--mut); font-size: 13px; }
.lp-foot .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); margin-right: 7px; }
.lp-foot a { color: var(--mut); text-decoration: none; margin-left: 14px; }
.lp-foot a:hover { color: var(--ink); }

/* ---- 法律/条款页 ---- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 6vw 96px; color: var(--ink); line-height: 1.75; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .legal-meta { color: var(--mut); font-size: 13px; margin: 0 0 36px; }
.legal h2 { font-size: 19px; margin: 38px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 15px; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 14.5px; color: #444; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 5px 0; }
.legal a { color: var(--accent); }
.legal .note { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #555; margin: 18px 0; }

@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-art { display: none; }
  .lp-hero h1 { font-size: 34px; }
  .lp-grid, .lp-steps, .lp-pricing { grid-template-columns: 1fr 1fr; }
  .lp-nav a:not(.btn) { display: none; }
}

/* ---- toast ---- */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
#toast.err { background: var(--err); }
