/* ============================================================
   设计：参考创作者会员平台的布局——封面 + 头像 + 档位卡片 + 动态流
   主色为黑白，品牌色只做点缀（在后台设置）
   ============================================================ */
:root {
  --bg: #ffffff;
  --canvas: #f6f5f2;
  --ink: #141413;
  --ink-2: #45443f;
  --muted: #7a776f;
  --line: #e9e6e0;
  --line-2: #d8d4cc;
  --hover: #f1efea;
  --btn: #141413;
  --btn-ink: #ffffff;
  --brand: #b8432f;
  --brand-ink: #ffffff;
  --ok: #1d6b3f; --ok-bg: #e8f3ec;
  --warn: #8a5300; --warn-bg: #fbf1df;
  --danger: #b42318;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171716; --canvas: #0f0f0e; --ink: #f3f1ec; --ink-2: #c9c6be; --muted: #98958c;
    --line: #2a2926; --line-2: #3a3935; --hover: #22211f; --btn: #f3f1ec; --btn-ink: #141413;
    --ok: #74d49c; --ok-bg: #15281c; --warn: #f2bd62; --warn-bg: #2b2213; --danger: #ff7a6e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.ic { flex: none; vertical-align: -3px; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; } .pre-wrap { white-space: pre-wrap; word-break: break-word; }
.mt { margin-top: 20px; } .big { font-size: 18px; font-weight: 700; }
.warn-text { color: var(--warn); } .danger { color: var(--danger); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 32px; padding-bottom: 64px; }
main { min-height: calc(100vh - 140px); }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; min-width: 0; }
.brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav > a:not(.btn) { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.topnav > a:not(.btn):hover, .topnav > a.on { background: var(--hover); color: var(--ink); }
.topnav .me { padding: 3px !important; margin-left: 4px; }
.topnav .me img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font: 600 15px var(--sans); cursor: pointer; white-space: nowrap; transition: opacity .15s, background .15s; }
.btn:hover { opacity: .86; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--hover); opacity: 1; }
.btn.brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); } /* 兼容后台旧类名 */
button.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: 500 13px var(--sans); }
button.link:hover { color: var(--ink); }
button.link.danger { color: var(--danger); }
form.inline { display: inline; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
label .hint, label span.muted { font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
input, textarea, select { font: 15px var(--sans); padding: 10px 14px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea { line-height: 1.6; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
input[type=file] { padding: 9px; font-size: 13px; }
input[type=color] { padding: 4px; width: 64px; height: 44px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1 1 160px; }
.w-sm { max-width: 110px; } .w-md { max-width: 200px; }

/* ---------- 提示 ---------- */
.flash { margin: 16px auto 0; max-width: 1080px; padding: 0 16px; }
.flash > div, .notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; }
.flash .ok, .notice.ok { background: var(--ok-bg); color: var(--ok); }
.flash .warn, .notice.warn { background: var(--warn-bg); color: var(--warn); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--ink-2); vertical-align: 2px; }
.tag.brand { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.tag.danger { background: var(--warn-bg); color: var(--danger); }

/* ---------- 卡片 / 面板 ---------- */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel h3 { font-size: 16px; margin-bottom: 12px; }
.panel-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 16px; } /* 后台沿用 */

/* ---------- 创作者头部 ---------- */
.creator { background: var(--bg); border-bottom: 1px solid var(--line); }
.cover { height: 280px; background: #24221f center / cover no-repeat; }
.cover.empty { background:
  radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--brand) 55%, #1d1b18) 0%, transparent 55%), #1d1b18; }
.creator-id { text-align: center; padding: 0 16px 8px; }
.creator-avatar { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: -58px auto 0; border: 4px solid var(--bg); background: var(--bg); position: relative; }
.creator-id h1 { font-size: 30px; font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.creating { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.creator-stats { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.creator-stats li + li::before { content: "·"; margin-right: 6px; }
.creator-stats b { color: var(--ink); font-weight: 700; }
.creator-cta { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.tabs { display: flex; justify-content: center; gap: 28px; margin-top: 22px; }
.tabs a { padding: 12px 2px 14px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* 主内容 + 右侧档位 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.layout aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.section-title, .panel .section-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.015em; }

/* ---------- 档位卡片 ---------- */
.tiers { display: grid; gap: 16px; }
.tiers.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tier.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tier-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-price { display: flex; align-items: baseline; gap: 6px; }
.tier-price b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tier-price span { color: var(--muted); font-size: 14px; }
.tier-desc { color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.tier li { display: flex; gap: 8px; align-items: flex-start; }
.tier li .ic { color: var(--ink); margin-top: 3px; }
.tier form { margin-top: auto; }

/* ---------- 动态流 ---------- */
.feed { display: flex; flex-direction: column; gap: 16px; }
.post-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s; }
.post-card:hover { border-color: var(--line-2); }
.post-card > a { display: block; }
.post-cover { aspect-ratio: 16 / 8; width: 100%; object-fit: cover; background: var(--hover); border-bottom: 1px solid var(--line); }
.post-body { padding: 20px 24px 6px; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post-card h2 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; }
.post-excerpt { color: var(--ink-2); margin-top: 8px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 18px; color: var(--muted); font-size: 13px; }
.post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.post-card.locked h2 { color: var(--ink); }
.locked-strip { display: flex; align-items: center; gap: 10px; margin: 14px 24px 20px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--canvas); color: var(--ink-2); font-size: 14px; }
.locked-hero { padding: 40px 24px; text-align: center; }
.locked-hero .lock-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--canvas); }
.locked-hero h3 { font-size: 18px; margin-bottom: 6px; }

.pager { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 24px; }

/* ---------- 关于 ---------- */
.about { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.about p { margin: 0 0 1em; }
.about p:last-child { margin-bottom: 0; }
.about.clamp { max-height: 12.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* ---------- 文章页 ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.back:hover { color: var(--ink); }
.article { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 48px 48px; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline b { display: block; font-size: 15px; }
.byline span { color: var(--muted); font-size: 13px; }
.byline .edit { margin-left: auto; }
.article h1 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 28px; }
.prose { font-size: 17px; line-height: 1.9; color: var(--ink); word-break: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2 { font-size: 23px; font-weight: 800; margin: 1.8em 0 .7em; }
.prose h3, .prose h4 { font-size: 19px; font-weight: 700; margin: 1.6em 0 .6em; }
.prose p { margin: 0 0 1.25em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose img { margin: 1.6em auto; border-radius: var(--r-sm); height: auto; }
.prose blockquote { margin: 1.5em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.25em; }
.prose li { margin: .3em 0; }
.prose pre { background: var(--canvas); padding: 14px 16px; border-radius: var(--r-sm); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose code { background: var(--canvas); padding: 1px 5px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; margin: 1.5em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-weight: 700; border-bottom-color: var(--line-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- 评论 ---------- */
.comments { margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 48px; }
.comments h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 28px; }
.comment-form .fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.comment-form textarea { min-height: 84px; }
.comment-form .actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.replying { font-size: 13px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--hover); }
.avatar.sm { width: 30px; height: 30px; } .avatar.lg { width: 88px; height: 88px; }
.comment { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment.reply { border-top: 0; padding: 14px 0 0; }
.comment.reply .avatar { width: 30px; height: 30px; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.comment-meta b { font-weight: 700; }
.comment-meta .muted { font-size: 12.5px; }
.comment-body { margin: 4px 0 6px; font-size: 15px; word-break: break-word; }
.comment-actions { display: flex; gap: 16px; }

/* ---------- 登录注册 ---------- */
.auth { max-width: 420px; margin: 56px auto; padding: 0 16px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.auth-head h1 { font-size: 26px; font-weight: 800; }
.auth-head p { color: var(--muted); margin-top: 6px; }
.auth .panel { padding: 28px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.auth-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 付款 ---------- */
.checkout-head { text-align: center; margin-bottom: 32px; }
.checkout-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.checkout-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.checkout-head p { color: var(--muted); margin-top: 6px; }
.howto { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.howto div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-size: 14px; color: var(--ink-2); }
.howto b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.howto i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; margin-bottom: 10px; }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { position: relative; padding: 0 0 26px 44px; counter-increment: s; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 6px; width: 1px; background: var(--line-2); }
.steps h4 { font-size: 15px; margin-bottom: 6px; padding-top: 3px; }
.steps p { color: var(--ink-2); font-size: 14px; }
.amount-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-top: 10px; }
.amount { font: 800 30px var(--mono); letter-spacing: -.02em; }
.amount small { font: 600 14px var(--sans); color: var(--muted); margin-left: 6px; }
.addr-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); margin-top: 10px; }
.addr-box code { flex: 1; word-break: break-all; font-size: 14px; }
.qr-panel { text-align: center; }
.qr-panel img { width: 200px; height: 200px; margin: 4px auto 14px; border-radius: var(--r-sm); background: #fff; padding: 8px; border: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; text-align: left; }
.summary-row span { color: var(--muted); }
.countdown { font: 700 26px var(--mono); }
.status-line { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.success { text-align: center; padding: 24px 0 8px; }
.success .badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ok-bg); color: var(--ok); }

/* ---------- 个人中心 ---------- */
.settings-head { margin-bottom: 24px; }
.settings-head h1 { font-size: 28px; font-weight: 800; }
.profile-row { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-row .meta { min-width: 0; }
.profile-row .name { font-size: 20px; font-weight: 800; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.member-state { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.member-state .big { font-size: 20px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
td.ua { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.status.paid { background: var(--ok-bg); color: var(--ok); }
.status.pending { background: var(--warn-bg); color: var(--warn); }

/* ---------- 后台 ---------- */
body.admin main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.admin-nav a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.on { background: var(--ink); color: var(--bg); }
body.admin h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
body.admin h3 { font-size: 16px; font-weight: 700; margin: 4px 0 12px; }
body.admin .row-between h2 { margin: 0; }
.tabs-sub { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs-sub a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--bg); }
.tabs-sub a.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.plan-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.plan-row label:not(.check) { flex: 1 1 120px; }
.plan-row label.wide { flex: 1 1 100%; }
.plan-row label.check { padding-bottom: 12px; }
.plan-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-item:first-child { padding-top: 0; }
.plan-item:last-child { border-bottom: 0; padding-bottom: 0; }
.checks { display: flex; gap: 22px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.editor-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor-panes textarea { font-family: var(--mono); font-size: 14px; line-height: 1.7; min-height: 600px; }
.preview { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 24px; overflow: auto; max-height: 82vh; }
.brand-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-row .thumb-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand-row .thumb-cover { width: 240px; height: 60px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--line); background: var(--hover); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-in { max-width: 1080px; margin: 0 auto; padding: 20px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- 内容保护 ---------- */
body.protect main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protect main textarea, body.protect main input { -webkit-user-select: text; user-select: text; }
body.protect .prose img, body.protect .post-cover { -webkit-user-drag: none; pointer-events: none; }
@media print {
  body.protect * { display: none !important; }
  body.protect::after { content: "本站内容禁止打印"; display: block !important; padding: 40px; font-size: 20px; }
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .layout aside { position: static; }
  .order-grid { grid-template-columns: 1fr; }
  .order-grid .qr-col { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .cover { height: 150px; }
  .creator-avatar { width: 92px; height: 92px; margin-top: -46px; }
  .creator-id h1 { font-size: 24px; }
  .tabs { gap: 22px; margin-top: 16px; }
  .article { padding: 24px 20px 28px; border-radius: var(--r); border-left: 0; border-right: 0; margin: 0 -16px; }
  .article h1 { font-size: 25px; }
  .prose { font-size: 16.5px; }
  .comments { padding: 24px 20px; border-radius: var(--r); border-left: 0; border-right: 0; margin-left: -16px; margin-right: -16px; }
  .comment-form > .avatar { display: none; }
  .post-body { padding: 18px 18px 4px; }
  .post-foot { padding: 12px 18px 16px; }
  .locked-strip { margin: 12px 18px 18px; }
  .post-card h2 { font-size: 18px; }
  .panel { padding: 20px; }
  .howto { grid-template-columns: 1fr; }
  .grid-2, .editor-panes { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .kv { grid-template-columns: 96px 1fr; }
  .admin-nav { border-radius: var(--r); }
}
