:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #171a21;
  --muted: #6b7280;
  --line: #e5e9f1;
  --accent: #2b7cff;
  --accent-ink: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 28px); } }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c5cff); color: #fff;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #4b5563; padding: 6px 10px; border-radius: 9px; font-size: 14px; }
.nav a:hover { background: #f0f3f9; text-decoration: none; color: var(--ink); }
.nav a.on { color: var(--ink); background: #eef2fa; font-weight: 600; }
.nav a.nav-admin { color: #7c3aed; }
.nav .nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.nav .nav-user { font-size: 13px; color: var(--muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .nav-link-muted { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .topbar-inner { min-height: 54px; gap: 10px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: 13px; }
  .nav .nav-user, .nav .nav-sep { display: none; }
  .brand span:last-child { font-size: 15px; }
}

.main { padding: 28px 0 56px; min-height: calc(100vh - 170px); }

/* 底部 */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; font-size: 13px; color: var(--muted); }
.footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { flex-basis: 100%; font-size: 12px; line-height: 1.9; color: #8a94a6; }
.footer-legal a { color: #8a94a6; text-decoration: underline; }

/* 合规/协议页 */
.legal-doc { max-width: 900px; margin: 0 auto; font-size: 14.5px; line-height: 1.85; color: #374151; }
.legal-doc h1 { font-size: 26px; margin-bottom: 6px; }
.legal-doc h2 { font-size: 17px; margin: 26px 0 10px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc .table { margin: 10px 0 16px; }
.legal-doc .table th, .legal-doc .table td { white-space: normal; }
.legal-doc a { color: var(--accent); }

/* 扫码展示页的合规页脚 */
.pub-legal { padding: 18px 16px 28px; text-align: center; font-size: 11.5px; line-height: 1.9; color: #7d8798; }
.pub-legal .legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.pub-legal a { color: #64748b; text-decoration: underline; text-decoration-color: #cbd5e1; }

/* 手机端触控目标与后台导航 */
@media (max-width: 720px) {
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .code-card-foot .btn { min-height: 44px; padding: 10px 12px; }
  .eye { min-height: 36px; padding: 7px 8px; }
  .swatch { width: 38px; height: 38px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-legal a { display: inline-block; padding: 5px 0; }
  .pub-bottom .links a, .pub-bottom .links button { min-height: 36px; display: inline-flex; align-items: center; }
  .is-admin .brand span:last-child { display: none; }
  .is-admin .nav a { padding: 4px 5px; font-size: 12.5px; }
}

/* 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .15s ease; text-align: center;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #f7f9fc; }
.btn-soft { background: #eef3ff; color: #1d4ed8; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 22px; }

.h1 { font-size: 28px; }
.h2 { font-size: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flash-wrap { margin-top: 14px; }
.flash { padding: 11px 16px; border-radius: 11px; margin-bottom: 8px; font-size: 14px; border: 1px solid; }
.flash-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.flash-err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2f8; color: #475569; }
.badge-ok { background: #e8f8ef; color: #15803d; }
.badge-warn { background: #fff5e6; color: #b45309; }
.badge-err { background: #fdecec; color: #b91c1c; }
.badge-info { background: #eaf1ff; color: #1d4ed8; }

/* 表单 */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #d8deea; border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 124, 255, .14); }
.textarea { min-height: 88px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.check input { margin-top: 4px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.switch-row:last-child { border-bottom: 0; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.table th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfe; }
.table tr:last-child td { border-bottom: 0; }
.table td.wrap-cell { white-space: normal; min-width: 180px; }
.admin-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px) { .admin-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .table-actions th:last-child, .table-actions td:last-child {
    position: sticky; right: 0; z-index: 1; background: #fff;
    width: 100px; min-width: 100px; padding: 8px;
    box-shadow: -10px 0 12px -12px rgba(15, 23, 42, .35);
  }
  .table-actions th:last-child { background: #fafbfe; }
  .table-actions td:last-child .inline-form { display: block; }
  .table-actions td:last-child .btn { display: flex; width: 100%; margin-bottom: 5px; }
  .table-actions td:last-child .btn:last-child { margin-bottom: 0; }

  /* 手机端只保留关键列，避免长距离横滑 */
  .table-codes th:nth-child(4), .table-codes td:nth-child(4),
  .table-codes th:nth-child(5), .table-codes td:nth-child(5),
  .table-codes th:nth-child(6), .table-codes td:nth-child(6),
  .table-users th:nth-child(1), .table-users td:nth-child(1),
  .table-users th:nth-child(3), .table-users td:nth-child(3),
  .table-users th:nth-child(5), .table-users td:nth-child(5),
  .table-users th:nth-child(6), .table-users td:nth-child(6),
  .table-users th:nth-child(7), .table-users td:nth-child(7),
  .table-users th:nth-child(8), .table-users td:nth-child(8),
  .table-mod th:nth-child(4), .table-mod td:nth-child(4),
  .table-mod th:nth-child(5), .table-mod td:nth-child(5) { display: none; }
}

/* 统计数字 */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 首页 */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 36px 0 26px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 44px); letter-spacing: -.03em; line-height: 1.16; }
.hero p.lead { font-size: 17px; color: #4b5563; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-card {
  width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(23, 34, 68, .35); padding: 22px; transform: rotate(-2deg);
}
.hero-card .mini-qr { width: 100%; border-radius: 12px; background: #fff; }
.hero-card .hero-plate { margin-top: 12px; font-weight: 700; letter-spacing: .06em; }
.hero-card .hero-name { color: var(--muted); font-size: 13px; }
.hero-float {
  position: absolute; bottom: -10px; right: -10px; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 13px; font-size: 13px; font-weight: 600;
  box-shadow: 0 16px 32px -14px rgba(43, 124, 255, .7);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; }
  .hero-art { order: -1; }
  .hero-card { width: 250px; transform: none; }
}

.feature { padding: 20px; }
.feature .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eef3ff; color: #1d4ed8; font-weight: 700; margin-bottom: 12px; }
.feature h3 { font-size: 15px; margin-bottom: 5px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }

.notice { border-left: 3px solid var(--accent); background: #f2f7ff; padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14px; color: #26406b; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 16px; }
.section-title h2 { margin: 0; font-size: 20px; }

.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; }
.step::before {
  counter-increment: s; content: counter(s); flex: none;
  width: 28px; height: 28px; border-radius: 50%; background: #eef3ff; color: #1d4ed8;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* 登录注册 */
.auth { max-width: 430px; margin: 20px auto 40px; }
.auth .card { padding: 30px; }
.auth h1 { font-size: 23px; }
.auth .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* 码卡片 */
.code-card { display: flex; flex-direction: column; overflow: hidden; }
.code-card-top { display: flex; gap: 16px; padding: 18px; }
.code-card .thumb { width: 86px; height: 86px; border-radius: 10px; border: 1px solid var(--line); flex: none; background: #fff; }
.code-card .meta { min-width: 0; flex: 1; }
.code-card .meta h3 { font-size: 16px; margin-bottom: 2px; }
.code-card .plate { font-size: 13px; color: #374151; letter-spacing: .04em; }
.code-card .nums { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.code-card .nums b { color: var(--ink); font-weight: 650; }
.code-card-foot { margin-top: auto; display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfe; flex-wrap: wrap; }
.code-card-foot .btn { padding: 6px 11px; font-size: 12.5px; }
.empty { padding: 46px 24px; text-align: center; color: var(--muted); }

/* 编辑器 */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .editor { grid-template-columns: 1fr; } .editor .preview-col { order: 2; } }
.preview-col { position: sticky; top: 78px; }
@media (max-width: 980px) { .preview-col { position: static; } }
.preview-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.fieldset-title { font-size: 13px; font-weight: 700; color: #111827; text-transform: uppercase; letter-spacing: .05em; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fieldset-title:first-child { margin-top: 0; }

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }

.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bg-opt { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; border: 2px solid transparent; cursor: pointer; overflow: hidden; }
.bg-opt.on { border-color: var(--ink); }
.bg-opt span { position: absolute; left: 5px; bottom: 4px; font-size: 10px; color: #334155; background: rgba(255,255,255,.78); padding: 1px 5px; border-radius: 4px; }
.bg-opt.gradient-blue { background: linear-gradient(160deg, #dbeafe, #bfdbfe 55%, #e0e7ff); }
.bg-opt.gradient-sunset { background: linear-gradient(160deg, #ffe4d6, #ffd0bf 40%, #ffc9e0); }
.bg-opt.gradient-mint { background: linear-gradient(160deg, #d7f7ec, #c7f0e4 55%, #d9f7ff); }
.bg-opt.night { background: linear-gradient(160deg, #2a2f45, #1b2033 60%, #302a4d); }
.bg-opt.night span { background: rgba(255,255,255,.85); }
.bg-opt.paper { background: repeating-linear-gradient(0deg, #fbf7ee, #fbf7ee 7px, #f3ecdd 7px, #f3ecdd 8px); }
.bg-opt.grid { background-color: #f8fafc; background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); background-size: 12px 12px; }
.bg-opt.aurora { background: radial-gradient(circle at 20% 15%, #c7f9ff, transparent 45%), radial-gradient(circle at 85% 30%, #e6d9ff, transparent 50%), linear-gradient(160deg, #eef2ff, #e8fff9); }
.bg-opt.solid { background: #eef2f8; }

.layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.layout-opt { border: 2px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 12px; cursor: pointer; background: #fff; color: #475569; }
.layout-opt.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* 手机预览框 */
.phone {
  width: 100%; border-radius: 30px; border: 9px solid #1b2030; background: #fff; overflow: hidden;
  box-shadow: 0 26px 60px -30px rgba(15, 23, 42, .5);
}
.phone-screen { min-height: 470px; display: flex; flex-direction: column; }
.phone-notch { height: 18px; display: grid; place-items: center; background: transparent; }
.phone-notch::after { content: ""; width: 70px; height: 5px; border-radius: 99px; background: #1b2030; opacity: .85; }
.preview-body { flex: 1; }

/* ====== 展示页（扫码打开） ====== */
.pub-page { background: #eef1f7; }
.pub-bg { min-height: calc(100vh - 0px); padding: 34px 16px 46px; background: #eef1f7; }
.pub-bg.gradient-blue { background: linear-gradient(165deg, #e8f0ff 0%, #dee9ff 45%, #eef1ff 100%); }
.pub-bg.gradient-sunset { background: linear-gradient(165deg, #fff0e8 0%, #ffe3d5 45%, #ffe8f1 100%); }
.pub-bg.gradient-mint { background: linear-gradient(165deg, #e6fbf3 0%, #dcf8ee 45%, #e6f8ff 100%); }
.pub-bg.night { background: radial-gradient(circle at 50% 0%, #3a3f5c, #191d2c 60%); }
.pub-bg.paper { background: repeating-linear-gradient(0deg, #fdfaf3, #fdfaf3 23px, #f3ecdd 24px); }
.pub-bg.grid { background-color: #f8fafc; background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); background-size: 26px 26px; }
.pub-bg.aurora { background: radial-gradient(circle at 18% 12%, #cdf4ff, transparent 46%), radial-gradient(circle at 88% 26%, #e9dcff, transparent 50%), linear-gradient(165deg, #eef3ff, #e9fff8); }
.pub-bg.solid { background: #f0f3f9; }

.pub-shell { max-width: 430px; margin: 0 auto; }
.pub-head { text-align: center; margin-bottom: 18px; color: #526078; font-size: 12.5px; letter-spacing: .04em; }
.pub-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #334155; font-size: 13px; }
.pub-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.pub-card {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 26px;
  box-shadow: 0 30px 70px -34px rgba(15, 23, 42, .38); overflow: hidden;
  color: #172033;
}
.pub-main { padding: 28px 24px 22px; text-align: center; }
.pub-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover;
  display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--accent), #7c5cff);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  border: 3px solid #fff;
}
.pub-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.pub-sub { color: #64748b; font-size: 13px; margin-top: 3px; }
.pub-plate {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 4px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  background: #f2f5fb; border: 1px solid #e2e8f3; color: #1f2937;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #e9f9f0; color: #15803d;
}
.status-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2s infinite; }
.status-pill.away { background: #f1f5f9; color: #64748b; }
.status-pill.away .pulse { background: #94a3b8; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.pub-note {
  margin: 18px auto 0; max-width: 330px; font-size: 14px; color: #3f4b5f; line-height: 1.7;
  background: #f7f9fd; border: 1px dashed #dbe3ef; border-radius: 13px; padding: 12px 15px; text-align: left;
}
.pub-note .k { display: block; font-size: 11px; color: #8a95a8; letter-spacing: .06em; margin-bottom: 2px; }
.pub-note > div + div { margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e3e9f2; }

/* 手机内的预览 */
.phone .pub-bg { min-height: 0; padding: 14px 12px 18px; }
.phone .pub-shell { max-width: none; }
.phone .pub-card { border-radius: 18px; box-shadow: none; }
.phone .pub-main { padding: 22px 16px 18px; }
.phone .pub-avatar { width: 60px; height: 60px; font-size: 24px; }
.phone .pub-name { font-size: 18px; }
.phone .pub-note { font-size: 13px; padding: 10px 12px; }
.phone .action-btn { padding: 11px 14px; font-size: 14px; }
.phone .pub-bottom { display: none; }

.pub-actions { display: grid; gap: 10px; margin-top: 20px; }
.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 18px; border-radius: 14px; font-size: 15.5px; font-weight: 650;
  background: var(--accent); color: #fff; border: 1px solid transparent; cursor: pointer;
  box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: .15s ease;
}
.action-btn:hover { text-decoration: none; filter: brightness(1.04); transform: translateY(-1px); }
.action-btn svg { flex: none; }
.action-btn.secondary { background: #fff; color: #263244; border-color: #e2e8f3; box-shadow: none; }
.action-btn.secondary:hover { background: #f8fafc; }
.action-btn.tertiary { background: transparent; color: #5b6b85; border-color: transparent; box-shadow: none; font-size: 14px; font-weight: 500; padding: 9px; }
.action-btn.tertiary:hover { background: rgba(255,255,255,.6); }
.pub-actions .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; color: #4b5a71; }
.phone-line .num { font-variant-numeric: tabular-nums; letter-spacing: .06em; font-weight: 650; }
.eye { background: none; border: 0; color: #6b7a90; cursor: pointer; font-size: 12.5px; padding: 3px 6px; border-radius: 6px; }
.eye:hover { background: #f1f5fb; color: #1d4ed8; }

.pub-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 20px; border-top: 1px solid #eef1f6; font-size: 12px; color: #8a95a8; background: rgba(255,255,255,.6); }
.pub-bottom .links { display: flex; gap: 12px; }
.pub-bottom a { color: #64748b; }
.pub-meta-foot { text-align: center; font-size: 11.5px; color: #7d8798; margin-top: 14px; line-height: 1.8; }
.pub-meta-foot a { color: #64748b; text-decoration: underline; text-decoration-color: #cbd5e1; }

.sheet {
  margin-top: 16px; background: #fff; border-radius: 20px; border: 1px solid #e8edf5;
  box-shadow: 0 20px 50px -30px rgba(15,23,42,.3); padding: 20px; display: none;
}
.sheet.open { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sheet h3 { font-size: 15px; margin-bottom: 12px; }

/* 展示页布局变体 */
.banner-top { display: none; }
.layout-banner .banner-top { display: block; }
.layout-banner .identity { display: none; }
.layout-banner .pub-main { padding: 16px 22px 22px; }
.layout-banner .banner-top {
  padding: 30px 22px 26px; color: #fff; text-align: center;
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7c5cff));
}
.layout-banner .banner-top .pub-avatar { border-color: rgba(255,255,255,.9); background: rgba(255,255,255,.18); margin-bottom: 10px; }
.layout-banner .banner-top .pub-name { color: #fff; }
.layout-banner .banner-top .pub-sub { color: rgba(255,255,255,.82); }
.layout-banner .banner-top .pub-plate { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); color: #fff; }

.layout-minimal .pub-card { background: #fff; border-radius: 6px; box-shadow: 0 18px 46px -32px rgba(15,23,42,.28); }
.layout-minimal .pub-main { padding: 34px 24px 26px; }
.layout-minimal .pub-avatar { width: 62px; height: 62px; border-radius: 16px; font-size: 24px; box-shadow: none; }
.layout-minimal .pub-name { font-weight: 600; letter-spacing: .02em; }
.layout-minimal .action-btn { border-radius: 4px; box-shadow: none; }
.layout-minimal .pub-note { border: 0; border-left: 2px solid var(--accent); border-radius: 0; background: #fcfdff; }
.layout-minimal .status-pill { border-radius: 4px; }

/* 海报 */
.poster-wrap { max-width: 430px; margin: 0 auto; }
.poster {
  background: #fff; border-radius: 22px; padding: 30px 26px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.poster .brandline { font-size: 12px; letter-spacing: .22em; color: #94a3b8; text-transform: uppercase; }
.poster h2 { margin: 8px 0 2px; font-size: 22px; }
.poster .plate-big { font-size: 18px; font-weight: 700; letter-spacing: .12em; margin-top: 6px; }
.poster .qr-frame { margin: 20px auto 14px; padding: 12px; border-radius: 16px; border: 1px solid #e6ebf4; background: #fff; width: 78%; }
.poster .qr-frame img { display: block; width: 100%; }
.poster .tip { font-size: 13px; color: #64748b; }
.poster .accent-bar { width: 46px; height: 4px; border-radius: 99px; background: var(--accent); margin: 12px auto 8px; }
@media print {
  .topbar, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
  .poster { border: 0; box-shadow: none; }
}

/* 后台 */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 24px; margin: 0; }
.admin-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 10px 2px 0; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bar-chart .bar i { display: block; width: 100%; max-width: 44px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); min-height: 3px; }
.bar-chart .bar span { font-size: 10.5px; color: var(--muted); }
.bar-chart.dense { gap: 2px; }
.bar-chart.dense .bar { min-width: 0; }
.bar-chart.dense .bar span { display: none; font-size: 9px; }
.bar-chart.dense .bar:nth-child(5n+1) span { display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 5px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .input, .filters .select { width: auto; min-width: 150px; }
.inline-form { display: inline; }
.thumb-sm { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.avatar-xs { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.theme-swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.notice-card { border-left: 3px solid var(--accent); }
.kbd { font-size: 11px; background: #f1f5f9; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: #475569; }
