/* ============================================================
   微广图片直播 · 设计系统
   ============================================================ */
:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --surface-3: #22272d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f3ef;
  --muted: #a3a39b;
  --dim: #70716b;
  --brand: #e2453a;
  --brand-soft: rgba(226, 69, 58, 0.14);
  --ok: #3fbf87;
  --warn: #e8a33d;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8);
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.28; letter-spacing: 0.01em; }
h1, .display { font-family: var(--serif); letter-spacing: 0.04em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(10, 11, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; letter-spacing: 0.06em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-family: var(--serif); font-size: 16px; font-weight: 500;
  box-shadow: 0 6px 18px -8px var(--brand);
}
.brand small { font-family: var(--sans); font-size: 10.5px; color: var(--dim); letter-spacing: 0.18em; line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: 0.18s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-2);
  font-size: 14px; transition: 0.18s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.24); }
.btn-primary { background: var(--brand); border-color: transparent; color: #fff; font-weight: 500; }
.btn-primary:hover { filter: brightness(1.08); background: var(--brand); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { color: var(--brand); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  outline: none; transition: 0.18s; font-size: 14px;
}
.textarea { height: auto; padding: 11px 13px; min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: #0c0e11; box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: #565751; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.hint { font-size: 12px; color: var(--dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-size: 13px; transition: 0.16s; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.chip.on { background: var(--text); color: #0a0b0d; border-color: var(--text); font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.07); color: var(--muted); font-size: 11.5px; letter-spacing: 0.04em;
}
.tag-live { background: var(--brand-soft); color: #ff8b82; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 69, 58, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(226, 69, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 69, 58, 0); } }

/* ---------- 首页 ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px;
  background: radial-gradient(58% 60% at 50% 0%, rgba(226, 69, 58, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: 0.24em; color: var(--brand); margin-bottom: 20px; }
.eyebrow span { width: 26px; height: 1px; background: var(--brand); display: inline-block; }
.hero h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.24; letter-spacing: .03em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { margin-top: 20px; max-width: 460px; color: var(--muted); font-size: 16px; }
.hero-acts { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { margin-top: 40px; display: flex; gap: 36px; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: 0.02em; }
.hero-stats span { font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 132px 132px 132px; gap: 12px; }
.collage div { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; }
.collage div:nth-child(1) { grid-row: span 2; }
.collage div:nth-child(4) { grid-column: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: 0.5s; }
.collage div:hover img { opacity: 1; transform: scale(1.03); }
.collage .ph { width: 100%; height: 100%; background: linear-gradient(140deg, #1a1f24, #0e1114); display: grid; place-items: center; color: #33383d; font-size: 12px; letter-spacing: 0.2em; }

.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: 26px; letter-spacing: 0.05em; }
.section-head p { color: var(--dim); font-size: 13.5px; margin-top: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); gap: 18px; }
.acard {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  transition: 0.22s; display: block;
}
.acard:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.2); box-shadow: var(--shadow); }
.acard-cover { aspect-ratio: 4 / 3; background: var(--bg-2); position: relative; overflow: hidden; }
.acard-cover img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.acard:hover .acard-cover img { transform: scale(1.04); }
.acard-cover .badge { position: absolute; top: 12px; left: 12px; }
.acard-body { padding: 16px 18px 18px; }
.acard-body h3 { font-size: 16.5px; font-family: var(--serif); letter-spacing: 0.03em; }
.acard-meta { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
.acard-meta .sep { width: 1px; height: 10px; background: var(--line-2); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat { background: var(--bg-2); padding: 28px 26px; }
.feat .n { font-family: var(--serif); font-size: 13px; color: var(--brand); letter-spacing: 0.2em; }
.feat h3 { margin: 12px 0 8px; font-size: 17px; letter-spacing: 0.02em; }
.feat p { color: var(--muted); font-size: 13.5px; line-height: 1.75; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.footer a:hover { color: var(--text); }

/* ---------- 相册页 ---------- */
.album-top { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(226, 69, 58, 0.07), transparent); }
.album-head { padding: 34px 0 26px; display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.album-org { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.1em; }
.album-org .sq { width: 22px; height: 22px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 11px; display: grid; place-items: center; font-family: var(--serif); }
.album-head h1 { margin-top: 14px; font-size: clamp(24px, 3.4vw, 36px); }
.album-sub { margin-top: 10px; color: var(--muted); font-size: 14px; }
.album-facts { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.album-facts b { color: var(--text); font-weight: 500; font-family: var(--serif); font-size: 15px; }
.album-qr { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.album-qr img { width: 74px; height: 74px; border-radius: 6px; background: #fff; padding: 4px; }
.album-qr .t { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.toolbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 13, 0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.toolbar-in { display: flex; align-items: center; gap: 10px; height: 58px; overflow-x: auto; scrollbar-width: none; }
.toolbar-in::-webkit-scrollbar { display: none; }
.toolbar .spacer { margin-left: auto; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding-left: 12px; flex: 0 0 auto; white-space: nowrap; }
.live-pill.off .dot { background: var(--dim); animation: none; box-shadow: none; }

.masonry { position: relative; margin: 22px 0 60px; }
.mitem {
  position: absolute; top: 0; left: 0; overflow: hidden; border-radius: 10px;
  background: var(--surface); cursor: zoom-in;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.mitem img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s; }
.mitem img.ready { opacity: 1; }
.mitem:hover { border-color: rgba(255, 255, 255, 0.2); }
.mitem .meta {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #d8d6d0;
  opacity: 0; transition: 0.2s;
}
.mitem:hover .meta { opacity: 1; }
.mitem .meta .lk { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mitem.is-new::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--brand); border-radius: 10px;
  animation: flash 1.6s ease-out forwards; pointer-events: none;
}
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

.newbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 70;
  display: none; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 12px 30px -10px rgba(226, 69, 58, 0.8);
}
.newbar.show { display: inline-flex; animation: pop 0.3s ease-out; }
@keyframes pop { from { transform: translateX(-50%) translateY(10px); opacity: 0; } }

.alb-foot { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--dim); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 7, 8, 0.97);
  display: none; flex-direction: column;
}
.lightbox.on { display: flex; }
.lb-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lb-bar .grow { margin-left: auto; display: flex; gap: 8px; }
.lb-stage { flex: 1; display: grid; place-items: center; padding: 22px; min-height: 0; position: relative; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; font-size: 18px; }
.lb-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-cap { padding: 12px 20px 20px; text-align: center; font-size: 12.5px; color: var(--dim); }

/* ---------- 大屏 ---------- */
.screen-body { background: #050607; height: 100vh; overflow: hidden; }
.screen-wrap { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.screen-head { display: flex; align-items: center; gap: 18px; padding: 22px 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.screen-head h1 { font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); letter-spacing: 0.08em; }
.screen-head .meta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.screen-stage { position: relative; overflow: hidden; }
.screen-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s ease; }
.screen-stage img.on { opacity: 1; }
.screen-foot { display: flex; align-items: center; gap: 22px; padding: 18px 34px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; color: var(--muted); }
.screen-qr { width: 78px; height: 78px; background: #fff; padding: 5px; border-radius: 8px; }
.rail { display: flex; gap: 10px; overflow: hidden; margin-left: auto; }
.rail img { width: 92px; height: 62px; object-fit: cover; border-radius: 6px; opacity: 0.4; transition: 0.4s; border: 1px solid transparent; }
.rail img.on { opacity: 1; border-color: var(--brand); }

/* ---------- 后台 ---------- */
.admin { display: grid; grid-template-columns: 222px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 4px 8px 22px; }
.side a.navi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; transition: 0.16s; }
.side a.navi:hover { background: var(--surface-2); color: var(--text); }
.side a.navi.on { background: var(--surface-3); color: var(--text); }
.side a.navi .ic { width: 18px; text-align: center; opacity: 0.8; font-size: 14px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12.5px; color: var(--dim); }
.side-foot .u { color: var(--text); font-size: 13.5px; }
.side-foot .link { display: inline-block; white-space: nowrap; }
.side-foot .link + .link { margin-left: 14px; }
.main { padding: 26px 30px 60px; min-width: 0; }
.main-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.main-head h1 { font-size: 22px; font-family: var(--serif); letter-spacing: 0.04em; }
.main-head .grow { margin-left: auto; display: flex; gap: 10px; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; }
.kpi b { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: 0.02em; margin-top: 2px; }
.kpi span { font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; letter-spacing: 0.04em; }
.panel-head .grow { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 20px; }

table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tb th { text-align: left; font-weight: 400; color: var(--dim); font-size: 12px; letter-spacing: 0.08em; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tb td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tb tr:last-child td { border-bottom: 0; }
table.tb tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.tb .acts { display: flex; gap: 6px; justify-content: flex-end; }
.tb-cover { width: 54px; height: 38px; object-fit: cover; border-radius: 5px; background: var(--bg-2); }
.cell-title { font-size: 14px; margin-bottom: 3px; }

.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.act-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.act-card .cv { aspect-ratio: 16 / 9; background: var(--surface-2); position: relative; }
.act-card .cv img { width: 100%; height: 100%; object-fit: cover; }
.act-card .bd { padding: 14px; }
.act-card .bd h3 { font-size: 14.5px; }
.act-card .rows { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--dim); }
.act-card .btns { margin-top: 13px; display: flex; gap: 7px; }

.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 34px 20px; text-align: center;
  transition: 0.2s; cursor: pointer; background: var(--bg-2);
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: rgba(226, 69, 58, 0.05); }
.dropzone .big { font-family: var(--serif); font-size: 17px; margin-bottom: 6px; letter-spacing: 0.04em; }
.dropzone .sm { font-size: 12.5px; color: var(--dim); }

.queue { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.qitem { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.qitem .nm { width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qitem .bar { flex: 1; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.qitem .bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; transition: width 0.2s; }
.qitem .st { width: 54px; text-align: right; font-size: 11.5px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 9px; }
.pcell { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.pcell img { width: 100%; height: 100%; object-fit: cover; }
.pcell .ops { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: 0.18s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pcell:hover .ops { opacity: 1; }
.pcell .flag { position: absolute; top: 6px; left: 6px; font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.65); color: #ffd9a1; }
.pcell.hid img { filter: grayscale(1) brightness(0.5); }

.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 90; display: none; }
.drawer-mask.on { display: block; }
.modal {
  position: fixed; z-index: 100; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: 88vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 24px; display: none; box-shadow: 0 30px 80px -20px #000;
}
.modal.on { display: block; }
.modal h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 18px; letter-spacing: 0.04em; }
.modal .foot { margin-top: 22px; display: flex; gap: 10px; justify-content: flex-end; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; top: 22px; transform: translate(-50%, -14px);
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 20px; border-radius: 10px; font-size: 13.5px; z-index: 300;
  opacity: 0; pointer-events: none; transition: 0.25s; box-shadow: var(--shadow);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(226, 69, 58, 0.6); }

.empty { padding: 56px 20px; text-align: center; color: var(--dim); font-size: 13.5px; }
.skel { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%); background-size: 400% 100%; animation: sk 1.4s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .collage { grid-template-rows: 108px 108px 108px; max-width: 460px; }
  .cards, .feats { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; align-items: center; }
  .side .brand { padding: 0 14px 0 4px; }
  .side a.navi { white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0 6px; display: flex; align-items: center; gap: 10px; }
  .main { padding: 20px 16px 60px; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .nav-in { height: 58px; gap: 12px; }
  .nav-links { display: none; }
  .hero { padding: 54px 0 40px; }
  .hero-stats { gap: 22px; }
  .cards, .feats { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .album-head { padding: 24px 0 20px; gap: 18px; }
  .album-qr { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .lb-nav { width: 38px; height: 38px; }
  .toolbar .chip { padding: 0 10px; font-size: 12.5px; }
  .live-pill #liveText { display: none; }
  .main-head h1 { font-size: 19px; }
  .qitem .nm { width: 110px; }
  .screen-foot .rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 大屏背景虚化 */
.screen-bg { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(38px) saturate(.9) brightness(.34); opacity: 0; transition: opacity 1.2s ease; }
.screen-bg.on { opacity: 1; }
.screen-stage img { z-index: 1; }

/* 批量管理（后台照片） */
.pcell .ck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.65); background: rgba(0, 0, 0, 0.35); z-index: 3; display: none; box-sizing: border-box; }
.pgrid.sel .pcell .ck { display: block; }
.pgrid.sel .pcell .ops { display: none; }
.pcell .ck.on { background: var(--brand); border-color: var(--brand); }
.pcell .ck.on::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; display: block; text-align: center; line-height: 17px; }
.batchbar { display: none; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: var(--surface); font-size: 13px; color: var(--muted); }
.batchbar.on { display: flex; }
.batchbar b { color: var(--brand); font-family: var(--serif); }
.poster-img { width: min(340px, 76vw); border-radius: 12px; box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8); }

/* 手机工作台 /m */
.m-body { background: #0a0b0d; min-height: 100vh; padding-bottom: 76px; }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10, 11, 13, 0.94); backdrop-filter: blur(14px); z-index: 30; }
.m-who { font-size: 12.5px; color: var(--muted); }
#view { padding: 16px 16px 20px; max-width: 560px; margin: 0 auto; }
.m-loading, .m-empty { text-align: center; color: var(--dim); padding: 60px 0; font-size: 13.5px; }
.m-actions { margin-bottom: 14px; }
.btn-block { width: 100%; justify-content: center; display: inline-flex; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.m-card.flat { padding: 14px 16px; }
.m-cv { position: relative; aspect-ratio: 16/9; background: var(--surface-2); }
.m-cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-badge { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #ffd9a1; }
.m-badge.end { color: var(--dim); }
.m-bd { padding: 12px 14px 14px; }
.m-card.flat .m-bd { padding: 0; }
.m-bd h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 0.02em; }
.m-meta { font-size: 12.5px; color: var(--dim); margin-top: 5px; }
.m-btns { display: flex; gap: 8px; margin-top: 10px; }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.m-big { height: 46px; border-radius: 12px; justify-content: center; display: inline-flex; align-items: center; font-size: 14.5px; }
.m-back { background: none; border: 0; color: var(--dim); font-size: 13px; padding: 0 0 12px; cursor: pointer; }
.m-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.m-sec h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.03em; }
.m-hint { font-size: 12px; color: var(--dim); line-height: 1.6; margin-bottom: 10px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-ftp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12.5px; }
.m-ftp div { display: flex; flex-direction: column; gap: 3px; background: var(--surface-2); border-radius: 9px; padding: 8px 10px; }
.m-ftp span { color: var(--dim); font-size: 11px; }
.m-ftp code { color: var(--text); font-size: 13px; word-break: break-all; }
.m-tab { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(12, 13, 16, 0.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 30; }
.m-tab button { flex: 1; background: none; border: 0; color: var(--dim); font-size: 12px; padding: 9px 0 max(9px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m-tab button.on { color: var(--brand); }
.m-tab .ic { font-size: 17px; }
@media (min-width: 640px) { #view { max-width: 640px; } }
