/* HitReel Studio · 爆款素材工坊 —— Ink Black × Volt Lime */
@import url('/vendor/fonts/space-grotesk/latin-500.css');
@import url('/vendor/fonts/space-grotesk/latin-700.css');
@import url('/vendor/fonts/inter/latin-400.css');
@import url('/vendor/fonts/inter/latin-500.css');
@import url('/vendor/fonts/inter/latin-600.css');
@import url('/vendor/fonts/inter/latin-700.css');

:root, html.dark {
  --bg: #0f1113;
  --bg-2: #131518;
  --surface: #17191c;
  --surface-2: #1e2125;
  --surface-3: #272a2f;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f7f7f8;
  --text-2: #b4b5b8;
  --muted: #898a8b;
  --volt: #d1fe17;
  --volt-2: #b8e600;
  --volt-soft: rgba(209, 254, 23, .1);
  --ink: #0f1113;
  --pink: #ff3d8b;
  --ok: #3ddc97;
  --err: #ff5c6c;
  --info: #6aa8ff;
  --radius: 16px;
  --display: "Space Grotesk", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;

  --el-color-primary: #d1fe17;
  --el-color-primary-light-3: #dcfe5c;
  --el-color-primary-light-5: #e5fe86;
  --el-color-primary-light-7: #4d5c13;
  --el-color-primary-light-8: #36410f;
  --el-color-primary-light-9: #22290c;
  --el-color-primary-dark-2: #a9cf0f;
  --el-bg-color: var(--surface);
  --el-bg-color-overlay: var(--surface-2);
  --el-bg-color-page: var(--bg);
  --el-fill-color-blank: var(--surface-2);
  --el-border-color: var(--line-2);
  --el-border-color-light: var(--line);
  --el-border-color-lighter: var(--line);
  --el-text-color-primary: var(--text);
  --el-text-color-regular: var(--text-2);
  --el-border-radius-base: 10px;
  --el-font-family: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--el-font-family); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(209, 254, 23, .3); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2d32; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.el-button--primary { --el-button-text-color: var(--ink); --el-button-hover-text-color: var(--ink); --el-button-active-text-color: var(--ink); --el-button-disabled-text-color: rgba(15, 17, 19, .55); --el-button-disabled-bg-color: #59661f; --el-button-disabled-border-color: #59661f; font-weight: 700; }
.field-label { gap: 10px; }

#boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 9999; transition: opacity .4s; }
#boot .logo { animation: boot .9s ease-in-out infinite alternate; }
@keyframes boot { from { transform: scale(.9); opacity: .5; } to { transform: scale(1.05); opacity: 1; } }

/* ---------- 顶部导航 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; transition: transform .3s ease; }
.topbar.hidden { transform: translateY(-100%); }
.promo { height: 30px; display: flex; align-items: center; background: var(--volt); color: var(--ink); font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; position: relative; }
.promo-track { display: flex; width: max-content; animation: promo-scroll 38s linear infinite; }
.promo:hover .promo-track { animation-play-state: paused; }
.promo-group { display: flex; }
.promo-item { padding: 0 36px; position: relative; }
.promo-item::after { content: "✦"; position: absolute; right: -6px; opacity: .55; }
@keyframes promo-scroll { to { transform: translateX(-50%); } }
.promo-cta { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 16px 0 28px; background: linear-gradient(90deg, transparent, var(--volt) 30%); text-decoration: underline; cursor: pointer; font-weight: 800; }
.nav { position: relative; z-index: 50; height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: rgba(15, 17, 19, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; cursor: pointer; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--volt); display: grid; place-items: center; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.logo-word i { font-style: normal; color: var(--volt); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.menu-drawer.el-drawer { background: var(--bg-2) !important; }
.menu-drawer .el-drawer__body { padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.drawer-head { padding: 4px 6px 18px; }
.drawer-link { padding: 12px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.drawer-link.active { color: var(--volt); background: var(--volt-soft); }
.drawer-link.small { font-size: 14px; font-weight: 500; padding: 9px 12px; }
.drawer-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.top-fab { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.top-fab:hover { border-color: var(--volt); color: var(--volt); }
/* 动效 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.page-enter-active, .page-leave-active { transition: opacity .18s ease, transform .18s ease; }
.page-enter-from { opacity: 0; transform: translateY(8px); }
.page-leave-to { opacity: 0; }
.fade-enter-active, .fade-leave-active { transition: opacity .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.btn-volt:active:not(:disabled), .btn-dark:active, .generate-btn:active:not(:disabled) { transform: scale(.97); }
.skeleton-card { border: none; aspect-ratio: 9 / 16; }
.dim { opacity: .5; transition: opacity .2s; pointer-events: none; }
.load-more { text-align: center; padding: 24px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .promo-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .page-enter-active, .page-leave-active, .topbar { transition: none; }
  .shimmer { animation: none; }
}
.nav-link { padding: 7px 11px; border-radius: 8px; font-size: 14px; color: var(--text-2); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px; transition: .15s; font-weight: 500; }
.nav-link:hover { color: #fff; background: var(--surface-2); }
.nav-link.active { color: var(--volt); }
.badge { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 5px; line-height: 15px; letter-spacing: .3px; }
.badge.top { background: var(--volt); color: var(--ink); }
.badge.new { background: var(--pink); color: var(--ink); }
.badge.hot { background: #ff7a1a; color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chip-btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; }
.chip-btn:hover { border-color: var(--line-2); background: var(--surface-3); }
.chip-btn.volt { background: var(--volt-soft); border-color: rgba(209, 254, 23, .25); color: var(--volt); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--volt); font-weight: 800; display: grid; place-items: center; cursor: pointer; font-family: var(--display); }

.page { max-width: 1440px; margin: 0 auto; padding: 24px 24px 72px; }

/* ---------- 按钮 ---------- */
.btn-volt { border: none; background: var(--volt); color: var(--ink); font-weight: 700; border-radius: 10px; padding: 0 18px; height: 40px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; transition: .15s; font-family: inherit; white-space: nowrap; }
.btn-volt:hover:not(:disabled) { background: #e0ff4f; box-shadow: 0 0 0 4px rgba(209, 254, 23, .15); }
.btn-volt:disabled { opacity: .35; cursor: not-allowed; }
.btn-dark { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 0 16px; height: 40px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; transition: .15s; font-family: inherit; font-weight: 600; white-space: nowrap; }
.btn-dark:hover { border-color: rgba(209, 254, 23, .5); }

/* ---------- 排版 ---------- */
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.5px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 34px; margin: 0; letter-spacing: -.8px; line-height: 1.05; }
.page-desc { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 680px; line-height: 1.6; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 16px; flex-wrap: wrap; }
.section-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 22px; margin: 0; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.volt { color: var(--volt); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field-label { font-size: 12px; color: var(--muted); font-weight: 700; margin: 18px 0 8px; display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; letter-spacing: .8px; }
.field-label:first-child { margin-top: 0; }
.field-label .hint { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 56px 0; font-size: 14px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(8px); white-space: nowrap; }
.tag.volt { background: var(--volt); color: var(--ink); }
.tag.ok { background: rgba(61, 220, 151, .15); color: var(--ok); }
.tag.err { background: rgba(255, 92, 108, .15); color: var(--err); }
.tag.info { background: rgba(106, 168, 255, .15); color: var(--info); }
.tag.line { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--volt-soft); border: 1px solid rgba(209, 254, 23, .2); color: #e4ff7a; font-size: 13px; line-height: 1.5; }

/* ---------- 首页：横幅 ---------- */
.banners { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.banner { cursor: pointer; }
.banner-media { position: relative; height: clamp(180px, 17vw, 250px); border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.banner-media video, .banner-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.banner:hover .banner-media video, .banner:hover .banner-media img { transform: scale(1.04); }
.banner-media .tag { position: absolute; top: 12px; left: 12px; }
.banner h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 15px; margin: 12px 0 3px; letter-spacing: .2px; }
.banner p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 首页：工具区 ---------- */
.tools { display: grid; grid-template-columns: 1.1fr 2fr; gap: 14px; margin-top: 28px; }
.tool-hero { padding: 22px; display: flex; flex-direction: column; background: radial-gradient(500px 200px at 100% 0%, rgba(209, 254, 23, .1), transparent 70%), var(--surface); }
.tool-hero h2 { font-family: var(--display); text-transform: uppercase; font-size: 26px; margin: 0 0 6px; letter-spacing: -.5px; line-height: 1.1; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool { padding: 18px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; gap: 6px; min-height: 120px; position: relative; overflow: hidden; }
.tool:hover { border-color: rgba(209, 254, 23, .35); background: var(--surface-2); }
.tool-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--volt); margin-bottom: auto; }
.tool b { font-size: 15px; display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.tool span.d { font-size: 12.5px; color: var(--muted); }

/* ---------- 生成器 ---------- */
.composer { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; transition: .2s; }
.composer:focus-within { border-color: rgba(209, 254, 23, .45); }
.composer textarea { width: 100%; min-height: 92px; resize: vertical; border: none; outline: none; background: transparent; color: var(--text); font-size: 15px; line-height: 1.65; font-family: inherit; padding: 10px 2px; }
.composer textarea::placeholder { color: #5f6166; }
.composer-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.pill { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text); cursor: pointer; transition: .15s; white-space: nowrap; user-select: none; font-weight: 600; }
.pill:hover { border-color: var(--line-2); background: var(--surface-3); }
.pill .k { color: var(--muted); font-weight: 500; }
.count-pill .el-input-number { width: 40px; }
.count-pill .el-input__wrapper { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.count-pill .el-input__inner { color: var(--text); font-weight: 700; }
.generate-btn { margin-left: auto; height: 40px; border-radius: 10px; border: none; background: var(--volt); color: var(--ink); font-weight: 800; font-size: 14px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: .15s; font-family: inherit; }
.generate-btn:hover:not(:disabled) { background: #e0ff4f; }
.generate-btn:disabled { opacity: .35; cursor: not-allowed; }
.generate-btn .cost { padding-left: 8px; border-left: 1px solid rgba(15, 17, 19, .2); display: inline-flex; align-items: center; gap: 2px; }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 7px 13px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; cursor: pointer; transition: .15s; font-weight: 600; color: var(--text-2); }
.opt:hover { border-color: var(--line-2); color: #fff; }
.opt.on { border-color: var(--volt); background: var(--volt-soft); color: var(--volt); }

/* ---------- 素材上传 ---------- */
.media-row { display: flex; gap: 8px; flex-wrap: wrap; }
.media-item, .media-add { width: 68px; height: 68px; border-radius: 10px; position: relative; overflow: hidden; flex-shrink: 0; }
.media-item { border: 1px solid var(--line-2); background: #000; }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .idx { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; text-align: center; background: rgba(0, 0, 0, .65); font-weight: 700; line-height: 17px; }
.media-item .del { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; opacity: 0; transition: .15s; cursor: pointer; }
.media-item:hover .del { opacity: 1; }
.media-add { border: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; transition: .15s; font-size: 11px; background: var(--bg-2); }
.media-add:hover { border-color: var(--volt); color: var(--volt); }
.media-add.big { width: 100%; height: 148px; border-radius: 12px; font-size: 13px; gap: 6px; text-align: center; padding: 0 16px; }
.media-add.big .el-icon { font-size: 26px; }
.video-picked { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.video-picked video { width: 100%; max-height: 260px; display: block; }
.video-picked .el-button { position: absolute; top: 8px; right: 8px; }

/* ---------- 模板瀑布流 ---------- */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg-item { padding: 6px 14px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 600; transition: .15s; white-space: nowrap; }
.seg-item:hover { color: #fff; }
.seg-item.on { background: var(--surface-3); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 13px; border-radius: 8px; font-size: 12.5px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: .15s; font-weight: 600; }
.chip:hover { color: #fff; border-color: var(--line-2); }
.chip.on { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.masonry { columns: 6 200px; column-gap: 12px; }
.tpl { break-inside: avoid; margin-bottom: 12px; border-radius: 12px; overflow: hidden; position: relative; background: #000; cursor: pointer; border: 1px solid var(--line); transition: border-color .2s; }
.tpl { transition: border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.tpl:hover { border-color: rgba(209, 254, 23, .55); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.tool, .banner-media { transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, background .2s; }
.tool:hover { transform: translateY(-2px); }
.tpl video, .tpl .poster { width: 100%; display: block; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.tpl-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; align-items: center; flex-wrap: wrap; }
.tpl-top .sound { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); font-size: 12px; }
.tpl-thumb { position: absolute; right: 8px; bottom: 52px; width: 44px; height: 44px; border-radius: 9px; border: 2px solid #fff; object-fit: cover; z-index: 2; background: #fff; }
.tpl-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .9)); z-index: 2; }
.tpl-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-meta { font-size: 11.5px; color: var(--text-2); margin-top: 2px; display: flex; gap: 10px; }
.tpl-hover { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 14px; background: rgba(0, 0, 0, .35); opacity: 0; transition: .2s; }
.tpl:hover .tpl-hover { opacity: 1; }
.bubbles { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.bubble { font-size: 11px; padding: 4px 9px; border-radius: 7px; background: rgba(15, 17, 19, .7); backdrop-filter: blur(8px); font-weight: 700; border: 1px solid rgba(255, 255, 255, .12); }

/* ---------- 双栏工作区 ---------- */
.work { display: grid; grid-template-columns: 420px 1fr; gap: 20px; align-items: start; }
.work-form { padding: 20px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.step { flex: 1; display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 9px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-weight: 700; border: 1px solid transparent; }
.step i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; }
.step.on { color: #fff; border-color: rgba(209, 254, 23, .3); }
.step.on i { background: var(--volt); color: var(--ink); }
.script-card { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.script-card .el-textarea__inner { background: var(--bg-2) !important; font-size: 13px; line-height: 1.7; }

/* ---------- 任务卡 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.task { border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); position: relative; transition: .15s; }
.task:hover { border-color: var(--line-2); }
.task.selected { border-color: var(--volt); }
.task-media { aspect-ratio: 9 / 16; background: #08090a; position: relative; display: grid; place-items: center; cursor: pointer; overflow: hidden; }
.task-media.wide { aspect-ratio: 16 / 9; }
.task-media video { width: 100%; height: 100%; object-fit: cover; }
.task-check { position: absolute; top: 8px; left: 8px; z-index: 3; }
.task-status { position: absolute; top: 8px; right: 8px; z-index: 3; }
.task-body { padding: 10px 12px 12px; }
.task-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 6px; }
.task-actions { display: flex; gap: 6px; margin-top: 10px; }
.task-actions .el-button { flex: 1; margin: 0; }
.gen-wait { text-align: center; padding: 16px; width: 100%; }
.gen-wait .ring { width: 70px; height: 70px; margin: 0 auto 12px; position: relative; }
.gen-wait .ring svg { transform: rotate(-90deg); }
.gen-wait .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; font-family: var(--display); }
.gen-wait p { margin: 0; font-size: 12px; color: var(--muted); }
.shimmer { background: linear-gradient(110deg, #0c0d0f 30%, #1a1d21 50%, #0c0d0f 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 弹窗 ---------- */
.el-dialog { border-radius: 18px !important; background: var(--surface) !important; border: 1px solid var(--line); }
.el-dialog__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.bare-dialog.el-dialog { padding: 0 !important; overflow: hidden; }
.bare-dialog .el-dialog__header { display: none; }
.bare-dialog .el-dialog__body { padding: 0 !important; }
.detail { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; height: min(84vh, 760px); }
.detail-video { background: #000; display: grid; place-items: center; min-height: 0; }
.detail-video video { max-width: 100%; max-height: 100%; }
.detail-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.detail-head { padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin: 0 0 10px; font-size: 22px; padding-right: 44px; font-family: var(--display); text-transform: uppercase; letter-spacing: -.3px; line-height: 1.15; }
.detail-head .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px; }
.prompt-text { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.8; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); padding: 14px; border-radius: 10px; font-family: "JetBrains Mono", Consolas, "Microsoft YaHei", monospace; }
.detail-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.detail-foot > .grow { flex: 1; }
.close-x { position: absolute; top: 16px; right: 16px; z-index: 10; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); cursor: pointer; transition: .2s; }
.close-x:hover { background: var(--err); color: #fff; }
.ref-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-thumbs img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line-2); }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 470px; }
.auth-art { position: relative; overflow: hidden; background: #000; }
.auth-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .9)); }
.auth-art .copy { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 2; }
.auth-art .copy h3 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; text-transform: uppercase; line-height: 1; }
.auth-form { padding: 40px 34px; position: relative; }
.auth-form h2 { margin: 0 0 4px; font-size: 26px; font-family: var(--display); text-transform: uppercase; }
.captcha { height: 40px; border-radius: 10px; cursor: pointer; flex-shrink: 0; }

.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pkg { padding: 20px 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); text-align: center; cursor: pointer; transition: .15s; position: relative; }
.pkg:hover { border-color: rgba(209, 254, 23, .4); }
.pkg.on { border-color: var(--volt); background: var(--volt-soft); }
.pkg .p { font-size: 24px; font-weight: 700; font-family: var(--display); }
.pkg .y { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pkg .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { padding: 18px 20px; }
.stat .n { font-size: 28px; font-weight: 700; margin-top: 6px; font-family: var(--display); }
.stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }

.msg { display: flex; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: none; }
.msg-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.msg-dot.success { background: rgba(61, 220, 151, .15); color: var(--ok); }
.msg-dot.error { background: rgba(255, 92, 108, .15); color: var(--err); }
.msg-dot.info { background: rgba(106, 168, 255, .15); color: var(--info); }

.footer { border-top: 1px solid var(--line); padding: 28px 24px 88px; color: var(--muted); font-size: 13px; }
.footer-inner { max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { cursor: pointer; color: var(--text-2); }
.footer-links a:hover { color: var(--volt); }
.contact-fab { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(209, 254, 23, .35); background: var(--surface-2); color: var(--volt); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: .15s; }
.contact-fab:hover { background: var(--volt); color: var(--ink); }
.legal { padding: 32px 36px; line-height: 1.75; color: var(--text-2); font-size: 14.5px; }
.legal .lead { font-size: 16px; color: var(--text); margin-top: 0; }
.legal h2 { font-family: var(--display); text-transform: uppercase; font-size: 16px; color: var(--text); margin: 28px 0 8px; letter-spacing: .2px; }
.legal ul { padding-left: 20px; }
.legal b { color: var(--text); }
.info-grid { display: grid; gap: 10px; margin-top: 8px; }
.info-grid .label { display: inline-block; min-width: 72px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-right: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (hover: none) {
  .tpl-hover { display: none; }   /* 触屏无悬停，点卡片直接打开详情 */
  .tpl:hover { transform: none; box-shadow: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; }
  .nav-right .chip-btn:first-child { display: none; }  /* 语言切换放进菜单 */
  .banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .banners::-webkit-scrollbar { display: none; }
  .banner { flex: 0 0 82%; scroll-snap-align: start; }
  .masonry { columns: 2; column-gap: 8px; }
  .tpl { margin-bottom: 8px; }
  .tpl-title { font-size: 12px; }
  .tpl-thumb { width: 34px; height: 34px; bottom: 46px; }
  .filters .seg { overflow-x: auto; max-width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .composer-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .composer-bar::-webkit-scrollbar { display: none; }
  .composer-bar .pill { flex-shrink: 0; }
  .generate-btn { position: sticky; right: 0; flex-shrink: 0; }
  .el-dialog.bare-dialog { width: 100% !important; margin: 0 !important; border-radius: 0 !important; min-height: 100vh; }
  .detail-video { height: 56vh; }
  .detail-side { overflow: visible; }
  .el-table { font-size: 12.5px; } .contact-grid, .form-2 { grid-template-columns: 1fr; } .legal { padding: 22px 18px; } .contact-fab span { display: none; } }

.el-table { --el-table-bg-color: var(--surface); --el-table-tr-bg-color: var(--surface); --el-table-header-bg-color: var(--surface-2); --el-table-row-hover-bg-color: var(--surface-2); --el-table-border-color: var(--line); border-radius: 12px; overflow: hidden; }
.el-tabs__item { font-weight: 700; }
.el-popper.is-light { background: var(--surface-2) !important; border-color: var(--line-2) !important; }
.el-dropdown-menu__item.is-active { color: var(--volt) !important; font-weight: 700; }
.el-message-box { background: var(--surface) !important; border-color: var(--line) !important; border-radius: 16px !important; }

@media (max-width: 1200px) {
  .tools { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .work-form { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .banners { grid-template-columns: 1fr; }
  .tool-grid, .stats, .pkgs { grid-template-columns: 1fr 1fr; }
  .detail, .auth { grid-template-columns: 1fr; height: auto; }
  .detail-video { height: 52vh; }
  .auth-art { display: none; }
  .nav { padding: 0 14px; gap: 10px; }
  .logo-word { display: none; }
  .page { padding: 16px 16px 48px; }
  .page-title { font-size: 26px; }
  .hide-sm { display: none !important; }
}

/* ---------- 管理后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.admin-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-item { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.admin-nav-item:hover { background: var(--surface-2); color: var(--text); }
.admin-nav-item.on { background: var(--volt-soft); color: var(--volt); }
.admin-nav-item .badge { margin-left: auto; }
.admin-main { min-width: 0; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.todo-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 16px 18px; min-width: 0; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.kpi .n { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.kpi.warn { border-color: rgba(255, 92, 108, .5); }
.kpi.warn .n { color: var(--err); }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-chart { padding: 14px 16px 10px; min-width: 0; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mini-head .l { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.mini-head b { font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-chart svg { width: 100%; height: 80px; display: block; }
.mini-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.mini-head b.tip { font-size: 14px; color: var(--volt); }
.mini-bar { fill: var(--volt); opacity: .8; transition: opacity .15s; }
.mini-bar.on { opacity: 1; }
.mini-axis { stroke: var(--line-2); stroke-width: 1; }
.mini-tick, .mini-tip { fill: var(--muted); font-size: 10.5px; font-family: var(--el-font-family); }
.mini-tip { fill: var(--text); font-weight: 700; }
.admin-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.funnel-row { display: grid; grid-template-columns: 90px 1fr 56px 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.funnel-row .fb { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.funnel-row .fb div { height: 100%; background: var(--volt); border-radius: 4px; }
.funnel-row .fc { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.funnel-row .fp { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.simple-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.simple-table th { text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.simple-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.simple-table td:not(:first-child), .simple-table th:not(:first-child) { text-align: right; }
.trail-row { display: grid; grid-template-columns: 90px auto 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.link { color: var(--volt); cursor: pointer; }
.clickable .el-table__row { cursor: pointer; }
.pager { display: flex; justify-content: center; margin-top: 16px; }
@media (max-width: 1100px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .kpis, .admin-2col { grid-template-columns: 1fr !important; }
}
