/* 雲创AI 剧库 —— 单文件样式表
   品牌色沿用软件端：主色 #7c5cff，底色 #0a0a10 */

:root {
  --bg: #0a0a10;
  --bg-2: #0e0e16;
  --card: #12121b;
  --card-2: #171722;
  --line: #24243a;
  --fg: #e9e9f2;
  --muted: #8b8ba7;
  --brand: #7c5cff;
  --brand-soft: rgba(124, 92, 255, 0.14);
  --brand-line: rgba(124, 92, 255, 0.42);
  --cyan: #4ecdc4;
  --rose: #fb7185;
  --amber: #fbbf24;
  --r-lg: 14px;
  --r-xl: 20px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: #c9bfff; }
.muted { color: var(--muted); }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 0 22px; height: 62px;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #7c5cff, #4ecdc4);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}
.brand-txt { display: flex; align-items: baseline; gap: 6px; }
.brand-txt b { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; }
.brand-txt i { font-style: normal; font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
.nav-links { display: flex; gap: 20px; margin-left: 8px; }
.nav-links a { font-size: 13.5px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lic-chip {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  color: #c9bfff; background: var(--brand-soft); border: 1px solid var(--brand-line);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 11px;
  font-size: 13.5px; font-weight: 650; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.12s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #8b6dff, #6b4bf0);
  color: #fff; box-shadow: 0 8px 24px rgba(124, 92, 255, 0.32);
}
.btn-primary:hover { background: linear-gradient(135deg, #9a80ff, #7a5cff); }
.btn-ghost { background: #16161f; border-color: var(--line); color: #d7d7e6; }
.btn-ghost:hover { border-color: var(--brand-line); color: #fff; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: center 22%;
  filter: blur(26px) saturate(120%); transform: scale(1.25); opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 30%, rgba(124, 92, 255, 0.22), transparent 60%),
              linear-gradient(180deg, rgba(10, 10, 16, 0.55) 0%, rgba(10, 10, 16, 0.86) 55%, var(--bg) 100%);
}
.hero-in {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 58px 22px 46px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.kicker {
  display: inline-block; font-size: 11px; letter-spacing: 0.24em; color: #b9a7ff;
  padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--brand-line);
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 14px; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.hero-sub { color: #c3c3d6; font-size: 15.5px; max-width: 46ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 22px; }
.hero-tags em {
  font-style: normal; font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #b7b7cc;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-spec { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.hero-spec i { width: 3px; height: 3px; border-radius: 50%; background: #3a3a55; }
.hero-poster {
  justify-self: end; width: min(300px, 100%); border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(124, 92, 255, 0.2);
  transform: rotate(1.2deg);
}
.hero-poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------------- 数据条 ---------------- */
.stats {
  max-width: var(--maxw); margin: -18px auto 0; padding: 0 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  position: relative; z-index: 3;
}
.stats > div { background: var(--bg-2); padding: 18px 16px; text-align: center; }
.stats b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #a48dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 11.5px; color: var(--muted); }

/* ---------------- 区块 ---------------- */
.row { max-width: var(--maxw); margin: 0 auto; padding: 44px 22px 0; }
.row-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.row-head p { color: var(--muted); font-size: 13px; }
.row-more { margin-left: auto; font-size: 13px; color: #a99bff; }
.row-more:hover { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.grid.wide { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- 卡片 ---------------- */
.card { display: block; border-radius: var(--r-lg); transition: transform 0.18s; }
.card:hover { transform: translateY(-4px); }
.card-poster {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: linear-gradient(160deg, #1a1a26, #101018);
  border: 1px solid var(--line);
}
.card-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-poster .pa { transition: opacity 0.35s, transform 0.6s; }
.card-poster .pb { opacity: 0; transition: opacity 0.35s; }
.card:hover .pa { transform: scale(1.03); }
.card:hover .pb { opacity: 1; }
.card-poster .ph { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #14141d, #14141d 10px, #171722 10px, #171722 20px); }
.badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(8px);
  background: rgba(10, 10, 16, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); color: #dcdcf0;
}
.badge.drama { color: #9df3d0; border-color: rgba(52, 211, 153, 0.4); }
.badge.ongoing { color: #ffd68a; border-color: rgba(251, 191, 36, 0.4); }
.badge.ip { color: #a9c7ff; border-color: rgba(96, 165, 250, 0.35); }
.badge.demo { color: #c9bfff; border-color: var(--brand-line); }
.play-dot {
  position: absolute; right: 9px; bottom: 9px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 10, 16, 0.6); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px; color: #fff; backdrop-filter: blur(6px);
}
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 8px;
  padding: 22px 10px 8px; font-size: 10.5px; color: #d9d9ea;
  background: linear-gradient(transparent, rgba(8, 8, 14, 0.88));
}
.cover-note {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  font-size: 10px; padding: 3px 7px; border-radius: 6px;
  background: rgba(251, 191, 36, 0.16); border: 1px solid rgba(251, 191, 36, 0.4); color: #ffd68a;
}
.card-body { padding: 11px 3px 0; }
.card-body h3 { font-size: 14.5px; font-weight: 700; }
.card-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.card-tags em { font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.045); color: #a5a5bd; }

/* ---------------- 价格 ---------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan {
  position: relative; padding: 22px 20px 20px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.plan.hot { border-color: var(--brand-line); box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.18), 0 18px 50px rgba(124, 92, 255, 0.12); }
.plan-flag {
  position: absolute; top: -9px; right: 16px; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: var(--brand); color: #fff;
}
.plan-price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price i { font-size: 13px; font-weight: 500; color: var(--muted); font-style: normal; margin-left: 4px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.plan li { font-size: 12.5px; color: #b6b6cb; padding-left: 16px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-size: 11px; }
.plan .btn { margin-top: auto; }

/* ---------------- CTA ---------------- */
.cta-band {
  max-width: var(--maxw); margin: 52px auto 0; padding: 34px 30px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  border-radius: 24px; border: 1px solid var(--brand-line);
  background: radial-gradient(90% 140% at 8% 0%, rgba(124, 92, 255, 0.28), transparent 62%), var(--bg-2);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #b7b7cc; font-size: 13.5px; max-width: 56ch; }
.cta-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------------- 详情页 ---------------- */
.detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dh-bg {
  position: absolute; inset: 0; background-image: var(--bg);
  background-size: cover; background-position: center 25%;
  filter: blur(40px) saturate(120%) brightness(0.6); transform: scale(1.3);
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.7), rgba(10, 10, 16, 0.92) 60%, var(--bg));
}
.dh-in {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 40px 22px 36px; display: grid; grid-template-columns: 260px 1fr; gap: 34px;
}
.dh-poster { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.dh-poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.dh-crumb { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.dh-crumb a { color: #a99bff; }
.dh-sub { color: #bfbfd4; font-size: 13.5px; margin-top: 8px; }
.dh-logline { color: #d3d3e4; font-size: 14.5px; margin: 0 0 18px; max-width: 62ch; }
.dh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dh-spec { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; }
.dh-spec div { display: flex; gap: 8px; align-items: baseline; }
.dh-spec dt { font-size: 11px; color: var(--muted); }
.dh-spec dd { margin: 0; font-size: 12.5px; color: #dcdcf0; }

.two-col {
  max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 0;
  display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start;
}
.prose h2 { font-size: 17px; margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #c2c2d6; font-size: 14px; margin-bottom: 12px; }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stills img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 9 / 16; object-fit: cover; }
.shots { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.shots th, .shots td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: #c2c2d6; }
.shots th { color: var(--muted); font-weight: 500; font-size: 11px; }

.side { display: grid; gap: 16px; position: sticky; top: 78px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; }
.panel h3 { margin-bottom: 12px; }
.panel p { font-size: 12.5px; color: #b0b0c6; }
.panel.buy { display: grid; gap: 10px; }
.eps { display: grid; gap: 4px; max-height: 460px; overflow: auto; }
.ep {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center;
  padding: 8px 9px; border-radius: 9px; font-size: 12.5px; color: #c6c6db;
  border: 1px solid transparent; transition: background 0.14s, border-color 0.14s;
}
.ep:hover { background: #171722; border-color: var(--line); }
.ep-no { color: #8f8fab; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.ep-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-state { font-size: 10.5px; color: #7c7c96; }
.ep.pend .ep-state { color: var(--amber); }
.ep.cur { background: var(--brand-soft); border-color: var(--brand-line); color: #fff; }
.free { font-style: normal; font-size: 10px; color: #6ee7b7; margin-left: 4px; }
.cast { display: grid; gap: 12px; }
.cast figure { display: grid; grid-template-columns: 58px 1fr; gap: 10px; margin: 0; align-items: start; }
.cast img { width: 58px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cast figcaption b { display: block; font-size: 12.5px; }
.cast figcaption span { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ---------------- 播放页 ---------------- */
.watch {
  max-width: var(--maxw); margin: 0 auto; padding: 24px 22px 0;
  display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start;
}
.watch-stage {
  background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 9 / 16; max-height: 74vh; display: grid; place-items: center;
}
.watch-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.locked { text-align: center; padding: 40px 20px; display: grid; gap: 12px; justify-items: center; }
.locked .lock { font-size: 28px; }
.watch-info { padding: 18px 4px; }
.watch-info h1 { font-size: 22px; }
.ep-tag { font-size: 12px; color: #a99bff; border: 1px solid var(--brand-line); border-radius: 6px; padding: 2px 7px; vertical-align: middle; margin-left: 6px; }
.watch-sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.watch-actions { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.watch-desc { color: #b6b6cb; font-size: 13.5px; max-width: 66ch; }
.watch-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; position: sticky; top: 78px; }
.watch-side h3 { margin: 6px 0 10px; }
.cast-mini { display: flex; gap: 8px; }
.cast-mini figure { margin: 0; text-align: center; }
.cast-mini img { width: 54px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cast-mini figcaption { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* ---------------- 表单 ---------------- */
.narrow { max-width: 720px; margin: 0 auto; padding: 44px 22px 0; }
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 22px; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 70ch; }
.form { display: grid; gap: 14px; margin-top: 18px; }
.form.inline { margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 12px; color: #a6a6bd; }
.form input, .form select, .form textarea {
  background: #0f0f18; border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); padding: 10px 12px; font-size: 13.5px; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand-line); }
.form textarea { resize: vertical; }
.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-top: 16px; }
.alert.ok { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: #8af0c8; }
.alert.bad { background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.35); color: #ffb3bd; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; color: #b6b6cb; }

/* ---------------- 筛选 chip ---------------- */
.filters { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: #13131c; border: 1px solid var(--line); color: #b0b0c6; font-size: 12.5px;
}
.chip.sel { background: var(--brand-soft); border-color: var(--brand-line); color: #c9bfff; }

/* ---------------- 后台 ---------------- */
.admin { max-width: var(--maxw); margin: 0 auto; padding: 0 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin + .panel, .panel + .panel { margin-top: 16px; }
body > .panel { max-width: var(--maxw); margin: 16px auto 0; }
.admin .panel { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); color: #c2c2d6; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 500; font-size: 11px; }
.tag { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.tag.bad { background: rgba(251, 113, 133, 0.12); color: #fda4af; }

/* ---------------- 页脚 ---------------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 26px; display: flex; gap: 40px; flex-wrap: wrap; }
.foot-brand { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.foot-desc { color: var(--muted); font-size: 12.5px; }
.foot-cols { margin-left: auto; display: flex; gap: 56px; }
.foot-cols h5 { font-size: 11px; letter-spacing: 0.16em; color: #6f6f8c; margin-bottom: 10px; }
.foot-cols a { display: block; font-size: 12.5px; color: #b0b0c6; padding: 3px 0; }
.foot-cols a:hover { color: #fff; }
.foot-bar { border-top: 1px solid var(--line); padding: 14px 22px; text-align: center; font-size: 11.5px; color: #6f6f8c; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding: 36px 18px 32px; }
  .hero-poster { justify-self: start; width: 168px; transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .two-col { grid-template-columns: 1fr; }
  .side { position: static; }
  .watch { grid-template-columns: 1fr; }
  .watch-side { position: static; }
  .dh-in { grid-template-columns: 140px 1fr; gap: 18px; padding: 26px 18px; }
  .admin { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nav-links { display: none; }
  .stills { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-actions { margin-left: 0; }
}
@media (max-width: 520px) {
  .grid, .grid.wide { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body h3 { font-size: 13px; }
  .foot-cols { margin-left: 0; gap: 32px; }
}
/* ---------------- 能力条 ---------------- */
.caps {
  max-width: var(--maxw); margin: 40px auto 0; padding: 0 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.cap { padding: 16px 16px 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.cap h4 { font-size: 13.5px; margin-bottom: 6px; color: #dcdcf0; }
.cap h4::before { content: "◆"; color: var(--brand); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.cap p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.filters.inline { padding: 0 0 16px; max-width: none; margin: 0; }
.nav-links a.on { color: var(--fg); }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }
/* 竖屏素材裁切：人物在画面上部，取景偏上 */
.card-poster img, .dh-poster img, .hero-poster img, .stills img { object-position: center 22%; }
.cast img, .cast-mini img { object-position: center 18%; }
/* 播放页侧栏补充 */
.watch-side h3:not(:first-child) { margin-top: 18px; }
.watch-side ul.plain li { font-size: 12px; display: flex; gap: 10px; }
.watch-side ul.plain li::first-letter { color: var(--muted); }
.more-list { display: grid; gap: 8px; }
.more-list a { display: grid; grid-template-columns: 40px 1fr; gap: 9px; align-items: center; font-size: 12.5px; color: #c6c6db; }
.more-list img { width: 40px; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.more-list a:hover { color: #fff; }
.watch-stage { max-height: 68vh; }
@media (max-width: 640px) {
  .nav { padding: 0 14px; gap: 12px; }
  .nav-right .btn { height: 34px; padding: 0 12px; font-size: 12px; }
  .brand-txt i { display: none; }
  .hero-poster { width: 132px; margin-top: 4px; }
  .hero-in { gap: 18px; }
  .dh-in { grid-template-columns: 112px 1fr; }
  .dh-poster img { aspect-ratio: 3 / 4; }
  .watch-stage { max-height: 62vh; }
}
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; height: auto; min-height: 52px; padding: 7px 12px; gap: 8px; }
  .nav-brand { flex: 0 0 auto; }
  .nav-right { flex: 1 1 auto; justify-content: flex-end; margin-left: 0; }
  .nav-right .btn { height: 32px; padding: 0 11px; font-size: 12px; }
  .hero { padding-top: 0; }
  .stats { margin-top: 0; border-radius: 16px; }
}
/* 移动端网格：1fr 会按内容最小宽度撑破视口，必须 minmax(0,1fr) */
@media (max-width: 640px) {
  .grid, .grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card-poster, .card-body { min-width: 0; }
  .card-body h3 { font-size: 13px; }
  .card-sub, .card-tags em { overflow: hidden; text-overflow: ellipsis; }
  .hero-spec { flex-wrap: wrap; row-gap: 4px; }
}
/* ===== 交易站新增组件（剧本商品 / 报价 / 流程） ===== */
.price-tag {
  position: absolute; left: 9px; bottom: 34px; z-index: 3;
  font-size: 13px; font-weight: 800; letter-spacing: -0.02em; color: #fff;
  padding: 3px 9px; border-radius: 7px;
  background: rgba(124, 92, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.price-tag i { font-style: normal; font-size: 10px; font-weight: 500; opacity: 0.8; margin-left: 2px; }
.badge.script { color: #b7f7d8; border-color: rgba(52, 211, 153, 0.42); }
.state-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.32); color: #7ef0bd;
}

/* 授权档位 */
.lic-list { display: grid; gap: 9px; }
.lic { padding: 11px 12px; border-radius: 11px; background: #0f0f18; border: 1px solid var(--line); }
.lic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lic-head b { font-size: 13px; }
.lic-head span { font-size: 15px; font-weight: 800; color: #c9bfff; }
.lic-head span i { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.lic p { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 交付清单 */
ul.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
ul.check li { position: relative; padding-left: 19px; font-size: 12px; color: #b8b8cd; line-height: 1.55; }
ul.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #34d399; font-size: 11px; }

/* 采购流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding: 18px 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.step span { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #7c5cff; }
.step h4 { font-size: 14px; margin: 7px 0 6px; }
.step p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 说明带 */
.note-band {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--r-lg);
  background: rgba(124, 92, 255, 0.07); border: 1px solid var(--brand-line);
}
.note-band b { font-size: 13px; color: #c9bfff; }
.note-band p { font-size: 12.5px; color: #b1b1c8; margin-top: 6px; line-height: 1.7; }

/* 样章 */
.sample {
  margin: 0 0 10px; padding: 16px 18px; border-left: 3px solid var(--brand);
  background: #0f0f18; border-radius: 0 12px 12px 0;
  font-size: 13px; line-height: 1.85; color: #cfcfe2; white-space: pre-wrap;
}
.outline-table td:nth-child(2) { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 片段试看 */
.preview-wrap { position: relative; width: 100%; height: 100%; display: grid; }
.preview-note {
  position: absolute; left: 0; right: 0; bottom: 62px;
  text-align: center; font-size: 12px; color: #fff;
  padding: 7px 10px; background: linear-gradient(90deg, transparent, rgba(10, 10, 16, 0.82), transparent);
  pointer-events: none;
}
.muted.small { font-size: 12px; }
.foot-note { font-size: 11.5px; color: #6f6f8c; margin-top: 8px; max-width: 46ch; line-height: 1.6; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .price-tag { font-size: 12px; }
}
/* 片段提示挪到画面上沿，不压字幕 */
.preview-note { top: 12px; bottom: auto; background: linear-gradient(180deg, rgba(10,10,16,.82), transparent); }
/* 剧库网格里的“报需求”占位卡 */
.card.ghost { border: 1px dashed var(--brand-line); background: rgba(124, 92, 255, 0.04); }
.card.ghost .ghost-in { display: grid; gap: 10px; align-content: center; padding: 22px 18px; aspect-ratio: 3 / 4; }
.card.ghost b { font-size: 15px; font-weight: 800; }
.card.ghost p { font-size: 12px; color: var(--muted); line-height: 1.65; }
.card.ghost .btn { height: 34px; font-size: 12.5px; }
.card.ghost:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.7); }
.tag { text-decoration: none; }
/* ===== 后台管理 ===== */
.metrics {
  max-width: var(--maxw); margin: 0 auto 16px; padding: 0 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.metrics > div { padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.metrics b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.metrics span { font-size: 11.5px; color: var(--muted); }
.head-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.admin-grid {
  max-width: var(--maxw); margin: 16px auto; padding: 0 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.admin-grid .panel { margin: 0; }
body > .panel { max-width: var(--maxw); margin: 16px auto 0; }
.table.wide-table td { white-space: normal; vertical-align: top; }
.table.wide-table td:nth-child(4) { max-width: 240px; }
.mini { display: flex; gap: 6px; align-items: center; }
.mini select { background: #0f0f18; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); padding: 6px 8px; font-size: 12px; font-family: inherit; }
.mini .btn { height: 30px; padding: 0 10px; font-size: 12px; }
.tag.warn { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.tag.info { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(2, 1fr); } .admin-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .admin-grid { grid-template-columns: 1fr; } }
/* ===== 购买页 ===== */
.buy-page {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 0;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start;
}
.buy-left { display: grid; gap: 16px; }
.back { font-size: 12.5px; color: var(--muted); }
.back:hover { color: #fff; }
.buy-item { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start; }
.buy-item img { width: 132px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.buy-item h1 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 6px; }
.buy-line { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.buy-line span { color: var(--muted); flex: 0 0 auto; }
.buy-line b { text-align: right; font-weight: 650; color: #dcdcf0; }
.buy-line b.hl { color: #c9bfff; font-size: 16px; }
.buy-price { display: grid; gap: 2px; margin-bottom: 12px; }
.buy-price b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.buy-price span { font-size: 12px; color: var(--muted); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.buy-total span { font-size: 12.5px; color: var(--muted); }
.buy-total b { font-size: 24px; font-weight: 800; }
.payinfo { margin: 14px 0; padding: 13px 14px; border-radius: 11px; background: #0f0f18; border: 1px dashed var(--brand-line); }
.payinfo h4 { font-size: 12.5px; margin-bottom: 6px; color: #c9bfff; }
.payinfo p { font-size: 12.5px; color: #bcbcd0; line-height: 1.7; }
.steps-mini { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; }
.steps-mini li { font-size: 12.5px; color: #b6b6cb; line-height: 1.6; }
.panel.paid h3 { color: #7ef0bd; }
@media (max-width: 900px) {
  .buy-page { grid-template-columns: 1fr; }
  .buy-item { grid-template-columns: 96px 1fr; }
  .buy-item img { width: 96px; }
}
/* ===== 资产库 ===== */
.asset-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px;
}
.asset { margin: 0; display: grid; gap: 10px; }
.asset-img {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: #0f0f18; cursor: zoom-in; display: block; width: 100%;
}
.asset-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; transition: transform .4s; }
.asset-img:hover img { transform: scale(1.03); }
.asset-kind {
  position: absolute; left: 9px; top: 9px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #dcdcf0;
  padding: 3px 8px; border-radius: 6px; background: rgba(10,10,16,.72);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px);
}
.asset figcaption b { display: block; font-size: 14px; }
.asset-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.asset figcaption p { font-size: 11.5px; color: #9f9fb8; line-height: 1.6; margin-top: 6px; }

/* 大图 */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; gap: 10px;
  background: rgba(6, 6, 12, .92); backdrop-filter: blur(6px); padding: 30px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: min(92vw, 720px); border-radius: 14px; border: 1px solid rgba(255,255,255,.12); }
.lightbox p { font-size: 13px; color: #cfcfe2; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.16); }
@media (max-width: 520px) { .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* 购剧车 */
.cart-btn { position: relative; }
.cart-btn b {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--brand); color: #fff;
}
.cart-btn b:empty, .cart-btn b[data-zero="1"] { display: none; }
.card-add {
  position: absolute; right: 8px; top: 34px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: rgba(10, 10, 16, .68); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff; font-size: 16px; line-height: 1; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s, background .18s;
}
.card:hover .card-add { opacity: 1; }
.card-add:hover { background: var(--brand); border-color: transparent; }
.inline-form { display: inline; }

.cart-page {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 24px; align-items: start;
}
.cart-list { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; }
.cart-list.flat { background: none; border: 0; padding: 0; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-list.flat .cart-row { grid-template-columns: 1fr auto; }
.cart-thumb img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 8px; border: 1px solid var(--line); }
.cart-title { font-size: 14px; font-weight: 650; }
.cart-title:hover { color: #c9bfff; }
.cart-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cart-price { font-size: 15px; font-weight: 800; color: #c9bfff; white-space: nowrap; }
.cart-tools { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.cart-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; position: sticky; top: 78px; }
.cart-summary h3 { margin-bottom: 8px; }
@media (max-width: 900px) {
  .cart-page { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-row { grid-template-columns: 54px 1fr auto; }
  .cart-row form { grid-column: 1 / -1; justify-self: end; }
}
/* 触屏设备没有 hover，加购按钮常显 */
@media (hover: none) { .card-add { opacity: 1; } }
/* ===== 购买/结算页排版放松 ===== */
.buy-page { padding: 34px 22px 0; gap: 30px; }
.buy-left { gap: 20px; }
.buy-right { display: grid; gap: 16px; }
.buy-item { grid-template-columns: 148px 1fr; gap: 22px; }
.buy-item > div { display: grid; gap: 4px; align-content: start; }
.buy-item h1 { margin-bottom: 4px; line-height: 1.25; }
.buy-item .muted { font-size: 12.5px; margin-bottom: 6px; }

.buy-line {
  display: grid; grid-template-columns: 68px 1fr; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.buy-line:last-of-type { border-bottom: 0; }
.buy-line span { color: var(--muted); font-size: 12px; }
.buy-line b { text-align: left; font-weight: 650; color: #dcdcf0; line-height: 1.6; word-break: break-word; }
.buy-line b.hl { color: #c9bfff; font-size: 18px; }
.buy-total { padding: 16px 0; margin-top: 6px; }
.panel { padding: 20px; }
.form { gap: 16px; }
.form label { gap: 8px; }
.steps-mini { gap: 8px; line-height: 1.8; }

@media (max-width: 900px) {
  .buy-page { padding: 22px 16px 0; gap: 22px; }
  .buy-item { grid-template-columns: 104px 1fr; gap: 16px; }
  .buy-item h1 { font-size: 22px; }
  .buy-item .muted { font-size: 12px; }
  .buy-line { grid-template-columns: 58px 1fr; gap: 10px; font-size: 12.5px; }
  .panel { padding: 16px; }
  .cart-summary { padding: 16px; }
}
@media (max-width: 520px) {
  .buy-item { grid-template-columns: 84px 1fr; gap: 14px; }
  .buy-item h1 { font-size: 20px; }
  .buy-line { grid-template-columns: 52px 1fr; padding: 10px 0; }
}
/* ===== 极简后台 ===== */
.admin-head p { max-width: 76ch; }
.metrics { grid-template-columns: repeat(4, 1fr); }

.table.prod-table td, .table.order-table td { vertical-align: middle; white-space: normal; }
.table.prod-table td > .muted, .table.order-table td > .muted { display: block; font-size: 11.5px; margin-top: 3px; }
.p-thumb img { width: 42px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; border-radius: 6px; border: 1px solid var(--line); }
.table td.num { font-weight: 700; color: #dcdcf0; white-space: nowrap; }
tr.is-off { opacity: .55; }
tr.is-off td.num { text-decoration: line-through; }

.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.state.on { color: #7ef0bd; }
.state.on::before { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
.state.off { color: #9a9ab3; }
.state.off::before { background: #4b4b63; }

.table td.ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.price-form { display: inline-flex; gap: 6px; align-items: center; }
.price-form input {
  width: 92px; background: #0f0f18; border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); padding: 6px 8px; font-size: 12.5px; font-family: inherit;
}
.price-form input:focus { border-color: var(--brand-line); outline: none; }

/* 行内收款折叠 */
details.op { display: inline-block; position: relative; }
details.op > summary { list-style: none; cursor: pointer; }
details.op > summary::-webkit-details-marker { display: none; }
.op-form {
  margin-top: 8px; padding: 12px; width: 230px;
  background: #101019; border: 1px solid var(--brand-line); border-radius: 11px;
  display: grid; gap: 8px; position: absolute; right: 0; z-index: 20;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.op-form label { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.op-form input, .op-form select {
  background: #0b0b12; border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); padding: 6px 8px; font-size: 12.5px; font-family: inherit; width: 100%;
}
.card-tools { margin: 4px 0 12px; }
.gen-cards { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gen-cards input {
  background: #0f0f18; border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); padding: 8px 10px; font-size: 12.5px; font-family: inherit;
}
.gen-cards input[name="count"] { width: 76px; }
.gen-cards input[name="note"] { width: 200px; }
details > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; padding: 6px 0; }
details[open] > summary { color: var(--fg); }
.panel.log summary h3 { color: var(--fg); }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .table.prod-table td.ops, .table.order-table td.ops { gap: 4px; }
}
/* 收款表单：行内展开，不遮挡下方内容 */
.op-form { position: static; width: 100%; max-width: 320px; margin-top: 10px; box-shadow: none; }
/* 收款展开时独占一行，按钮不被推开 */
.table td.ops { align-items: flex-start; }
details.op { flex: 0 0 auto; }
details.op[open] { flex: 1 1 100%; order: -1; }
details.op[open] + form { margin-top: 2px; }
/* ===== 业务介绍 Hero ===== */
.hero { padding-bottom: 8px; }
.hero-copy h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.18; margin-bottom: 16px; }
.hero-copy .hero-sub { max-width: 54ch; font-size: 15px; line-height: 1.75; }
.hero-in { grid-template-columns: 1.25fr 0.75fr; gap: 44px; padding: 60px 22px 54px; }

.hero-collage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start;
  justify-self: end; width: 100%; max-width: 430px;
}
.hero-collage img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}
.hero-collage .c1 { transform: translateY(26px) rotate(-1.2deg); }
.hero-collage .c2 { transform: translateY(0) rotate(0.6deg); z-index: 2; }
.hero-collage .c3 { transform: translateY(40px) rotate(1.4deg); }

@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; gap: 26px; }
  .hero-collage { justify-self: start; max-width: 320px; }
  .hero-collage .c1, .hero-collage .c2, .hero-collage .c3 { transform: none; }
}
@media (max-width: 640px) {
  .hero-in { padding: 34px 16px 30px; }
  .hero-copy h1 { font-size: 27px; }
  .hero-collage { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 8px; }
  .hero-collage .c3 { display: none; }
  .hero-collage img { aspect-ratio: 3 / 4; }
}
/* 拼贴改为两张大图，气势够、不缩成缩略图 */
.hero-collage { grid-template-columns: 1fr 1fr; max-width: 460px; gap: 14px; }
.hero-collage .c1 { transform: translateY(22px) rotate(-1deg); }
.hero-collage .c2 { transform: translateY(0) rotate(1deg); }
.hero-collage img { border-radius: 14px; }
@media (max-width: 1100px) {
  .hero-collage { max-width: 340px; }
  .hero-collage .c1, .hero-collage .c2 { transform: none; }
}
@media (max-width: 640px) {
  .hero-collage { max-width: none; gap: 10px; }
  .hero-collage .c3 { display: none; }
}
/* 剧本库搜索与分页 */
.search { display: flex; gap: 8px; margin-top: 16px; max-width: 520px; }
.search input[type="search"] {
  flex: 1; background: #0f0f18; border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); padding: 9px 12px; font-size: 13.5px; font-family: inherit; outline: none;
}
.search input[type="search"]:focus { border-color: var(--brand-line); }
.pager { max-width: var(--maxw); margin: 26px auto 0; padding: 0 22px; display: flex; gap: 14px; align-items: center; justify-content: center; }

/* 后台批量 */
.pick { width: 40px; }
.pick input[type="checkbox"] { width: 16px; height: 16px; accent-color: #7c5cff; cursor: pointer; }
.bulk-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.bulk-bar .muted { margin-right: auto; }
/* Hero 宣传语 */
.hero-slogan {
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 700; letter-spacing: 0.01em; line-height: 1.5;
  color: #c9bfff; margin: 0 0 8px;
}
.hero-copy .hero-sub { font-size: 14px; color: #b9b9cd; max-width: 46ch; }
.hero-slogan-2 {
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; line-height: 1.6;
  color: #e2e2ef; margin: 0 0 20px; letter-spacing: 0.01em;
}
/* ===== Hero 右侧：办公室实景 + 作品小图 ===== */
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero-office {
  margin: 0; position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 190, 120, 0.12);
}
.hero-office img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 58% center; }
.hero-office figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 11.5px; color: #eee9df; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 7px;
  background: rgba(10, 10, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.hero-visual .hero-collage {
  position: absolute; left: -34px; bottom: -30px;
  display: flex; gap: 10px; width: auto; max-width: none;
  grid-template-columns: none; align-items: flex-end;
}
.hero-visual .hero-collage img {
  width: 104px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.62);
}
.hero-visual .hero-collage .c1 { transform: rotate(-2.5deg); }
.hero-visual .hero-collage .c2 { transform: rotate(1.5deg) translateY(-10px); }

/* 背景用实景，压暗 + 模糊，暖光不抢字 */
.hero .hero-bg { filter: blur(34px) saturate(115%) brightness(0.55); opacity: 0.55; }

@media (max-width: 1100px) {
  .hero-visual { justify-self: start; max-width: 100%; }
  .hero-visual .hero-collage { position: static; margin-top: 12px; }
  .hero-visual .hero-collage img { width: 92px; }
  .hero-visual .hero-collage .c1, .hero-visual .hero-collage .c2 { transform: none; }
}
@media (max-width: 640px) {
  .hero-office img { aspect-ratio: 3 / 2; }
  .hero-visual .hero-collage img { width: 78px; }
}
/* 图注挪到右上，避免被左下角的作品卡挡住 */
.hero-office figcaption { left: auto; right: 12px; top: 12px; bottom: auto; }
/* ===== Hero：整区用办公室照片做背景 ===== */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url("/img/office.jpg");
  background-size: cover; background-position: 64% 56%; background-repeat: no-repeat;
  filter: none; transform: none; opacity: 1;
}
/* 左侧压暗保证文字可读，右侧留出前台与招牌 */
.hero::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 14, 0.96) 0%, rgba(8, 8, 14, 0.9) 30%, rgba(8, 8, 14, 0.55) 58%, rgba(8, 8, 14, 0.3) 100%),
    linear-gradient(180deg, rgba(8, 8, 14, 0.35) 0%, rgba(8, 8, 14, 0.15) 45%, rgba(10, 10, 16, 0.96) 100%);
}
.hero-in {
  grid-template-columns: 1fr; gap: 0;
  padding: 92px 22px 84px;
}
.hero-copy { max-width: 620px; }
.hero-copy h1 { text-shadow: 0 8px 32px rgba(0, 0, 0, 0.55); }
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero .hero-bg { background-position: 60% 52%; }
  .hero-in { padding: 64px 20px 58px; }
}
@media (max-width: 640px) {
  .hero .hero-bg { background-position: 56% 46%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(8, 8, 14, 0.55) 0%, rgba(8, 8, 14, 0.86) 42%, var(--bg) 100%);
  }
  .hero-in { padding: 48px 16px 44px; }
  .hero-copy h1 { text-shadow: none; }
}
/* 让内容贴容器左侧，而不是被 flex 居中挤到照片中间 */
.hero-in { width: 100%; }
.hero-copy { justify-self: start; }
/* 调轻压暗，让照片本身能看清（尤其手机） */
.hero::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 14, 0.94) 0%, rgba(8, 8, 14, 0.86) 28%, rgba(8, 8, 14, 0.48) 56%, rgba(8, 8, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(8, 8, 14, 0.28) 0%, rgba(8, 8, 14, 0.06) 42%, rgba(10, 10, 16, 0.82) 100%);
}
@media (max-width: 640px) {
  .hero .hero-bg { background-position: 72% 38%; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 14, 0.72) 0%, rgba(8, 8, 14, 0.5) 55%, rgba(8, 8, 14, 0.3) 100%),
      linear-gradient(180deg, rgba(8, 8, 14, 0.3) 0%, rgba(8, 8, 14, 0.42) 48%, rgba(10, 10, 16, 0.92) 100%);
  }
  .hero-copy h1 { text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7); }
  .hero-slogan, .hero-slogan-2 { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
}
/* 后台上架表单 */
.panel-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h3 { margin: 0; }
.head-btns { margin-left: auto; display: flex; gap: 8px; }
.tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.admin-form { max-width: 820px; }
.admin-form input[type="file"] {
  background: #0f0f18; border: 1px dashed var(--brand-line); border-radius: 10px;
  color: #b9b9cd; padding: 10px 12px; font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.admin-form textarea { min-height: 74px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
/* 所有表格里的副文字都换行显示（资产/卡密表同样） */
.table td > .muted { display: block; font-size: 11.5px; margin-top: 3px; }
/* 支付页 */
.pay-page { grid-template-columns: 1.1fr 0.9fr; }
.qr-wrap { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: 12px; margin: 8px 0 14px; }
.qr-wrap img { width: 220px; height: 220px; display: block; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.pay-line span { color: var(--muted); }
@media (max-width: 900px) { .pay-page { grid-template-columns: 1fr; } }
/* 静态收款码 */
.pay-qrs { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.pay-qrs figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.pay-qrs img { width: 168px; height: 168px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.pay-qrs figcaption { font-size: 11.5px; color: var(--muted); }
.pay-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 6px; text-align: center; color: #c9bfff; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #b9b9cd; }
.check-line input { width: 16px; height: 16px; accent-color: #7c5cff; }
.pay-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 4px 0; display: grid; gap: 12px; }
.pay-group legend { font-size: 12.5px; color: #c9bfff; padding: 0 6px; }
.pay-group .muted.small { font-size: 11.5px; }
/* 指标自适应列数（5 个指标不再掉到第二行） */
.metrics { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
/* ===== 后台上架表单（分组卡片） ===== */
.editor { max-width: 860px; margin: 0 auto; padding: 0 22px 70px; display: grid; gap: 18px; }
.editor .group {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: grid; gap: 16px;
}
.editor .group h3 { font-size: 14px; color: #c9bfff; margin: 0; letter-spacing: .02em; }
.editor .field { display: grid; gap: 8px; }
.editor .field > label { font-size: 12px; color: #a6a6bd; }
.editor .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor input[type="text"], .editor input:not([type]), .editor input[type="number"], .editor select {
  height: 42px; padding: 0 13px; border-radius: 10px;
  background: #0d0d15; border: 1px solid var(--line); color: var(--fg);
  font-size: 13.5px; font-family: inherit; outline: none; width: 100%;
}
.editor input:focus, .editor select:focus, .editor textarea:focus { border-color: var(--brand-line); }
.editor textarea {
  min-height: 104px; padding: 12px 13px; border-radius: 10px; line-height: 1.7;
  background: #0d0d15; border: 1px solid var(--line); color: var(--fg);
  font-size: 13.5px; font-family: inherit; outline: none; resize: vertical; width: 100%;
}
.editor .upload {
  display: grid; gap: 8px; padding: 16px; border-radius: 12px;
  background: #0d0d15; border: 1px dashed rgba(124, 92, 255, 0.42);
}
.editor .upload b { font-size: 13px; color: #dcdcf0; font-weight: 600; }
.editor .upload .muted { font-size: 11.5px; line-height: 1.6; }
.editor .upload input[type="file"] { font-size: 12.5px; color: #b9b9cd; }
.editor .upload input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  background: #1b1b28; border: 1px solid var(--line); color: #e2e2ef; font-size: 12.5px;
}
.editor .upload input[type="file"]::file-selector-button:hover { border-color: var(--brand-line); }
.editor .actions {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  position: sticky; bottom: 0; padding: 14px 0 10px;
  background: linear-gradient(180deg, rgba(10,10,16,0), var(--bg) 55%);
}
@media (max-width: 720px) {
  .editor { padding: 0 14px 60px; }
  .editor .row2 { grid-template-columns: 1fr; }
  .editor .group { padding: 18px 16px; }
}
/* 动作条不吸底（避免遮住上传框）；标题与表单同宽对齐 */
.editor .actions {
  position: static; background: none; padding: 4px 0 0; margin-top: 2px;
}
.editor-head { max-width: 860px; margin: 0 auto; padding: 36px 22px 16px; }
@media (max-width: 720px) { .editor-head { padding: 24px 14px 12px; } }
