/**
 * 素成AI · 设计系统 tokens —— 「放映室 · 暗」全站版(大升级批0,对标 ReelMate 暗色制片厂)
 *   在 style.css 之后加载:token 翻暗 + 壳层(侧栏/顶栏)+ 通用组件暗色适配。
 *   回退方式:从 index.html 移除本文件引用即可,不动 style.css。
 */

:root {
    /* 页面:深空影棚 */
    --bg: #0e1013;
    --bg-white: #15181f;           /* 卡片(原白卡 → 暗面板) */
    --bg-warm: #1a1e26;            /* 次级面板 */
    --text: #c9ccd4;
    --text-secondary: #8b8e98;
    --text-hint: #6a6d76;
    --border: rgba(255, 255, 255, .09);
    /* 琥珀在暗底上提亮半档 */
    --primary: #d08b28;
    --primary-hover: #e0a13a;
    --primary-light: rgba(232, 176, 75, .13);   /* 琥珀染(暗底 tint) */
    --accent: #e8b04b;
    --accent-deep: #e8c073;        /* 暗底上的"深琥珀文字"改亮金 */
    --success: #4dbfa8;
    --danger: #e07b63;
    /* 侧栏:比页面再深一档 */
    --sidebar-bg: #0b0d11;
    --sidebar-text: rgba(233, 231, 224, .62);
    --sidebar-active: #e8b04b;
    --sidebar-line: rgba(255, 255, 255, .07);
    --shadow: 0 2px 14px rgba(0, 0, 0, .35);
    --shadow-lg: 0 14px 36px rgba(0, 0, 0, .5);
    --gold-grad: linear-gradient(135deg, #e8b04b, #c8791f);
    /* 强文字 / 中文展示字 */
    --strong: #efede4;
    --font-display-cn: 'Songti SC', 'STSong', 'Noto Serif SC', 'SimSun', serif;
    --shadow-console: 0 30px 60px -22px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
    /* 兼容旧引用(首映厅时代的墨块/金字):暗版下墨块=亮字 */
    --ink-block: #efede4;
    --gold-on-ink: #e8b04b;
}

/* 页面底:钨丝 + 青光氛围(放映室) */
body {
    background-image: radial-gradient(900px 480px at 18% -12%, rgba(224, 161, 58, .10), transparent 62%),
                      radial-gradient(760px 460px at 104% 112%, rgba(47, 158, 137, .07), transparent 60%);
    background-color: var(--bg);
    color-scheme: dark;
}

/* ========== 侧栏:深空 chrome + 琥珀点亮 ========== */
.sidebar { border-right: 1px solid var(--sidebar-line); }
.menu-item {
    margin: 1px 10px;
    padding: 10px 14px;
    border-radius: 9px;
    border-left: none;
}
.menu-item:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.menu-item.active {
    color: #e8b04b;
    background: rgba(232, 176, 75, .13);
    border-left: none;
    box-shadow: inset 0 0 0 1px rgba(232, 176, 75, .22);
}
.menu-item.active i { color: #e8b04b; }
.menu-section { color: rgba(233, 231, 224, .3); padding: 16px 24px 6px; }
.menu-group-head { margin: 1px 10px; padding: 10px 14px; border-radius: 9px; border-left: none; }
.menu-sub { background: rgba(0, 0, 0, .22); border-radius: 9px; margin: 0 10px; }
.menu-sub .menu-item { margin: 1px 4px; padding-left: 34px; }
.menu-sub .menu-item::before { left: 20px; }
.menu-sub .menu-item.active::before { background: #e8b04b; box-shadow: 0 0 6px rgba(232, 176, 75, .8); }

/* 品牌区:宋体片名字 */
.sidebar-logo .brand-name { font-family: var(--font-display-cn); font-weight: 900; letter-spacing: .06em; }

/* ========== 全局顶栏(暗色玻璃) ========== */
.gtb {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 26px;
    background: rgba(13, 15, 19, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.gtb-greet {
    font-family: var(--font-display-cn);
    font-weight: 900;
    font-size: 14.5px;
    letter-spacing: .05em;
    color: var(--strong);
}
.gtb-date {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    color: var(--text-hint);
    margin-left: 2px;
}
.gtb-sp { flex: 1; }
.gtb-cap {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    overflow: hidden;
}
.gtb-cap .seg { display: flex; align-items: center; gap: 6px; padding: 0 13px; cursor: pointer; }
.gtb-cap .seg + .seg { border-left: 1px solid rgba(255, 255, 255, .14); }
.gtb-cap .lb { font-size: 11px; color: rgba(255, 255, 255, .42); }
.gtb-cap .vl {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12.5px;
    color: var(--strong);
    font-variant-numeric: tabular-nums;
}
.gtb-cap .vl.gold { color: #e8c073; }
.gtb-cap .topup {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--gold-grad);
    color: #1a1205;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    letter-spacing: .04em;
}
.gtb-cap .topup:hover { filter: brightness(1.08); }
.gtb-vip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(232, 176, 75, .35);
    background: rgba(232, 176, 75, .1);
    color: #e8c073;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.gtb-vip .lt {
    position: absolute;
    top: -8px;
    right: -6px;
    background: #c2452d;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 6px;
    letter-spacing: .04em;
}
.gtb-ava {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-grad);
    color: #1a1205;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, .2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
    user-select: none;
}
/* 用户菜单(暗面板) */
.gtb-menu {
    position: absolute;
    top: 52px;
    right: 18px;
    width: 238px;
    background: #171a22;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    box-shadow: 0 24px 56px -12px rgba(0, 0, 0, .7);
    overflow: hidden;
    display: none;
}
.gtb-menu.open { display: block; }
.gtb-menu-head { padding: 13px 16px 11px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gtb-menu-head .nm { font-weight: 700; font-size: 13.5px; color: var(--strong); }
.gtb-menu-head .em { font-size: 11px; color: var(--text-hint); margin-top: 1px; word-break: break-all; }
.gtb-menu-bal { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gtb-menu-bal > div { flex: 1; background: rgba(232, 176, 75, .1); border-radius: 8px; padding: 7px 10px; }
.gtb-menu-bal .k { font-size: 10px; color: #e8c073; letter-spacing: .06em; }
.gtb-menu-bal .v {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--strong);
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
}
.gtb-mi {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    font-size: 12.5px;
    color: var(--text);
    cursor: pointer;
}
.gtb-mi:hover { background: rgba(255, 255, 255, .05); }
.gtb-mi i { width: 15px; text-align: center; color: var(--text-hint); font-size: 12px; }
.gtb-mi .soon {
    margin-left: auto;
    font-size: 10px;
    color: #e8c073;
    background: rgba(232, 176, 75, .12);
    border-radius: 999px;
    padding: 1px 7px;
}
.gtb-mi.out { border-top: 1px solid rgba(255, 255, 255, .08); color: var(--danger); }
.gtb-mi.out i { color: var(--danger); }
/* 轻提示 */
.gtb-toast {
    position: fixed;
    top: 66px;
    right: 24px;
    z-index: 999;
    background: #f2e9d8;
    color: #1a1205;
    font-size: 12.5px;
    padding: 9px 16px;
    border-radius: 9px;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(-6px);
    transition: all .22s ease;
    pointer-events: none;
}
.gtb-toast.show { opacity: 1; transform: none; }

/* ========== 通用暗色适配(存量组件常见形态) ========== */
/* 内页表头:宋体片名字 */
.page-header h1 {
    font-family: var(--font-display-cn);
    font-weight: 900;
    letter-spacing: .05em;
    color: var(--strong);
}
/* 表单控件:跟随暗色 */
input, textarea, select {
    color-scheme: dark;
}
/* 白底硬编码兜底:常见 .card/.panel 类已走 --bg-white;剩余零散白底逐页修 */

@media (prefers-reduced-motion: reduce) {
    .gtb-toast { transition: none; }
}

/* —— AIGC 页零散亮底块 —— */
.aigc-model-info {
    background: linear-gradient(135deg, rgba(232, 176, 75, .07), rgba(138, 107, 160, .07));
    border-color: var(--border);
}
.tc-expand-header { background: var(--bg-warm); }

/* —— AIGC 能力 chips / 备注条(原亮底) —— */
.cap-chip { background: var(--bg-warm); border-color: var(--border); color: var(--text); }
.cap-chip.cap-param { background: var(--bg-warm); border-color: var(--border); color: var(--text); }
.cap-chip.cap-param i { color: var(--text-hint); }
.cap-chip.cap-ability { background: rgba(77, 191, 168, .12); border-color: rgba(77, 191, 168, .35); color: #4dbfa8; }
.cap-chip.cap-ability i { color: #4dbfa8; }
.cap-chip.cap-ext { background: rgba(232, 176, 75, .12); border-color: rgba(232, 176, 75, .35); color: #e8c073; }
.cap-chip.cap-ext i { color: #e8b04b; }
.cap-remark { background: rgba(255, 255, 255, .05); color: var(--text-secondary); border-left-color: #e8b04b; }
.cap-remark i { color: #e8b04b; }

/* ========== 窄图标侧导航(shell-sidenav) ========== */
body.shell-rail .sidebar { display: none !important; }
.srail {
    flex: 0 0 84px;
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 10px 12px;
    background: #0b0d11;
    border-right: 1px solid rgba(255, 255, 255, .07);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.srail::-webkit-scrollbar { display: none; }
.srail-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border-radius: 11px;
    background: var(--gold-grad);
    color: #1a1205;
    font-family: var(--font-display-cn);
    font-weight: 900;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(200, 121, 28, .35);
    flex: none;
}
.srail-it {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 2px 9px;
    border-radius: 10px;
    color: rgba(233, 231, 224, .55);
    cursor: pointer;
    transition: .15s;
    user-select: none;
    flex: none;
}
.srail-it i { font-size: 17px; }
.srail-it span { font-size: 10.5px; letter-spacing: .05em; line-height: 1; }
.srail-it:hover { color: #efede4; background: rgba(255, 255, 255, .05); }
.srail-it.on, .srail-it.fly-open {
    color: #e8b04b;
    background: rgba(232, 176, 75, .13);
    box-shadow: inset 0 0 0 1px rgba(232, 176, 75, .22);
}
.srail-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(233, 231, 224, .3);
}
.srail-it.on .srail-dot, .srail-it.fly-open .srail-dot { background: #e8b04b; }
.srail-sp { flex: 1; min-height: 10px; }

/* 弹出子菜单 */
.srail-fly {
    position: fixed;
    z-index: 200;
    min-width: 248px;
    background: rgba(23, 26, 34, .96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    box-shadow: 0 24px 56px -12px rgba(0, 0, 0, .7);
    padding: 6px;
    animation: srailFlyIn .14s ease;
}
@keyframes srailFlyIn { from { opacity: 0; transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .srail-fly { animation: none; } }
.srail-fly-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 13px 7px;
}
.srail-fly-hd b {
    font-family: var(--font-display-cn);
    font-weight: 900;
    font-size: 13.5px;
    letter-spacing: .05em;
    color: var(--strong);
}
.srail-fly-hd span { font-family: var(--font-mono); font-size: 10px; color: var(--text-hint); letter-spacing: .1em; }
/* 卡片式条目:彩色玻璃图标片 + 名称 + 一行说明(对标 OranTV 工具箱) */
.srail-fly-it {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: .13s;
}
.srail-fly-it .tl {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.srail-fly-it .tl.t1 { background: rgba(232, 176, 75, .15); color: #e8b04b; }
.srail-fly-it .tl.t2 { background: rgba(77, 191, 168, .14); color: #4dbfa8; }
.srail-fly-it .tl.t3 { background: rgba(155, 125, 190, .16); color: #b79ad6; }
.srail-fly-it .tl.t4 { background: rgba(96, 140, 200, .16); color: #7fa7dd; }
.srail-fly-it .tl.t5 { background: rgba(214, 122, 110, .14); color: #dd9a8f; }
.srail-fly-it .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.srail-fly-it .tx b { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.srail-fly-it .tx small { font-size: 10.5px; color: var(--text-hint); white-space: nowrap; }
.srail-fly-it .go { font-size: 10px; color: transparent; transition: .13s; }
.srail-fly-it:hover { background: rgba(255, 255, 255, .05); }
.srail-fly-it:hover .tx b { color: #efede4; }
.srail-fly-it:hover .go { color: var(--text-hint); }
.srail-fly-it.on { background: rgba(232, 176, 75, .1); }
.srail-fly-it.on .tx b { color: #e8b04b; }
.srail-fly-it.on .go { color: #e8b04b; }

/* 全铺型页面(position:absolute inset:0)让出 sticky 顶栏高度,防页头被压
   (#page-libtv.page 权重压过后载的 libtv.css 里的 inset:0) */
#page-libtv.page { top: 54px; }

/* ========== AIGC「创作」页:居中 hero + 页内类型 tabs + 悬浮创作台(对标 LibLib 版式) ========== */
#page-aigc > .page-header { display: none; }
.aigc-hero { text-align: center; margin: 16px auto 4px; }
.aigc-hero h1 {
    font-family: var(--font-display-cn);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .08em;
    color: var(--strong);
    border: none;
    margin: 0;
}
.aigc-hero .sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 8px; }
.aigc-hero .sub .md { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-hint); margin-right: 6px; }
.aigc-type-tabs { display: flex; gap: 6px; justify-content: center; margin: 16px auto 18px; }
.aigc-type-tabs .att {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: .14s;
    font-family: inherit;
}
.aigc-type-tabs .att:hover { color: var(--strong); background: rgba(255, 255, 255, .05); }
.aigc-type-tabs .att.on { background: var(--primary-light); color: #e8c073; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(232, 176, 75, .25); }
/* 创作台悬浮卡:居中限宽 + 齿孔签名条 */
#page-aigc .aigc-scene-panel { max-width: 920px; margin: 0 auto; }
#page-aigc .aigc-prompt-panel {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-console);
}
#page-aigc .aigc-prompt-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, rgba(232,176,75,.06) 0 9px, rgba(232,176,75,.8) 9px 14px, rgba(232,176,75,.06) 14px 23px);
    pointer-events: none;
}
/* 能力面板/高级参数/结果区跟随限宽,版式统一 */
#page-aigc .aigc-model-info,
#page-aigc .aigc-extinfo-panel,
#page-aigc .tc-expand-section.aigc-advanced { max-width: 920px; margin-left: auto; margin-right: auto; }

/* ========== 创作页修正:下拉不裁切 + 生文工具条落底/暗色化 ========== */
/* ① 悬浮卡不再裁切内部下拉菜单(齿孔条自己带圆角) */
#page-aigc .aigc-prompt-panel { overflow: visible; }
#page-aigc .aigc-prompt-panel::before { border-radius: 16px 16px 0 0; }
/* ② 生文:模型/参数工具条挪到输入区上方(与生图/生视频的底部参数条同位),容器本就是 flex column,用 order 重排零 JS */
.aigc-chat-alert { order: 1; }
.aigc-chat-messages { order: 2; }
.aigc-chat-toolbar {
    order: 3;
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: none;
}
.aigc-chat-input-wrap { order: 4; }
/* 工具条在底部 → 模型下拉向上弹,避免出界 */
.aigc-chat-model-menu { top: auto !important; bottom: calc(100% + 8px); }
/* ③ 亮色残留压暗:提示条 / 分隔线 */
.aigc-chat-alert {
    background: rgba(232, 176, 75, .1);
    border-bottom: 1px solid rgba(232, 176, 75, .25);
    color: #e8c073;
}
.aigc-chat-model-menu { border-color: var(--border); }
.aigc-chat-model-group + .aigc-chat-model-group { border-top-color: var(--border); }

/* ==================================================================
   放映室 · 精修层(2026-07-10 高端化):在既有暗色身份上提炼质感。
   原则:金分三级(饱和金=唯一主行动 / 香槟金=强调文字与数字 / 发丝金=边线),
   大面积琥珀降饱和,层次靠玻璃与内高光,不加新花样。
   ================================================================== */
:root {
    --champagne: #dcc08a;                       /* 香槟金:数字/强调字,比 accent 柔 */
    --hairline-gold: rgba(216, 166, 74, .25);   /* 金发丝:边线/分隔 */
}

/* 文字选中与键盘焦点:金 */
::selection { background: rgba(232, 176, 75, .85); color: #16130b; }
:focus-visible { outline: 2px solid rgba(232, 176, 75, .55); outline-offset: 2px; }

/* 全局滚动条:暗色细圆角,hover 透金 */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(216,166,74,.4); }
*::-webkit-scrollbar-track { background: transparent; }

/* 顶栏:底边从灰发丝换成金发丝渐变(中亮两端隐),玻璃更沉 */
.gtb {
    background: rgba(11, 13, 17, .82);
    border-bottom: none;
    box-shadow: 0 1px 0 0 rgba(255,255,255,.04);
}
.gtb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hairline-gold) 18%, var(--hairline-gold) 82%, transparent);
    pointer-events: none;
}
.gtb { position: sticky; }              /* ::after 需要定位上下文 */
.gtb-cap { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.035); }
.gtb-cap:hover { border-color: var(--hairline-gold); }
.gtb-cap b, .gtb-cap .n { color: var(--champagne); font-variant-numeric: tabular-nums; }

/* 窄栏:选中项左侧琥珀 notch + 图标微光;logo 内高光 */
.srail-it { position: relative; }
.srail-it.on::before {
    content: "";
    position: absolute;
    left: -1px; top: 18%; bottom: 18%;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
}
.srail-it.on i { text-shadow: 0 0 14px rgba(232, 176, 75, .45); }
.srail-logo {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px rgba(200, 134, 26, .35);
}

/* hero:标题字距收紧一档 + 下方金短杠(渐隐两端);sub 分层 */
.aigc-hero h1 { letter-spacing: .06em; }
.aigc-hero h1::after {
    content: "";
    display: block;
    width: 34px; height: 2px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.aigc-hero .sub .md { color: var(--champagne); opacity: .8; }
.aigc-type-tabs .att.on { box-shadow: inset 0 0 0 1px rgba(232,176,75,.3), 0 6px 18px -8px rgba(232,176,75,.35); }

/* 面板精度:创作台/能力卡/弹层统一「内高光 + 深投影 + 发丝边」 */
#page-aigc .aigc-prompt-panel,
.aigc-model-info,
.srail-fly,
.gtb-menu {
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 54px -20px rgba(0,0,0,.65);
}

/* 主行动按钮(全站 .btn-primary / 发送圆钮):渐变 + 顶部内高光 + hover 上浮 */
.btn-primary, .aigc-send-btn {
    background: linear-gradient(180deg, #e5ab41, #c8861a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 6px 16px -6px rgba(200,134,26,.5);
    border: none;
    transition: transform .14s, box-shadow .14s, filter .14s;
}
.btn-primary:hover, .aigc-send-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 10px 22px -8px rgba(200,134,26,.6);
}
@media (prefers-reduced-motion: reduce) {
    .btn-primary, .aigc-send-btn { transition: none; }
    .btn-primary:hover, .aigc-send-btn:hover { transform: none; }
}

/* 剧本页(小说/评测)双 tab 壳:限宽内容随页面自然铺开,hero 上边距与创作页一致 */
#page-novel > .page-header, #page-scriptreview > .page-header { display: none; }
.script-hero { margin-top: 16px; }
#novelBody, #scriptreviewBody { margin-top: 6px; }

/* ========== 工具箱落地页(卡片网格,对标 OranTV 结构 · 放映室配色) ========== */
#page-toolbox > .page-header { display: none; }
.tbx-search {
    position: relative;
    max-width: 560px;
    margin: 4px auto 6px;
}
.tbx-search i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: var(--text-hint);
}
.tbx-search input {
    width: 100%;
    height: 44px;
    padding: 0 18px 0 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color .15s, background .15s;
}
.tbx-search input:focus { outline: none; border-color: var(--hairline-gold); background: rgba(255,255,255,.06); }
.tbx-search input::placeholder { color: var(--text-hint); }
.tbx-count {
    max-width: 1180px; margin: 14px auto 10px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
    color: var(--text-hint);
}
.tbx-grid {
    max-width: 1180px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.tbx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px 20px 16px;
    border-radius: 16px;
    background: var(--bg-white);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 26px -14px rgba(0,0,0,.5);
    cursor: pointer;
    transition: transform .16s, border-color .16s, box-shadow .16s;
}
.tbx-card:hover, .tbx-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--hairline-gold);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 38px -16px rgba(0,0,0,.65);
}
.tbx-ic {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    margin-bottom: 6px;
}
.tbx-ic.t1 { background: rgba(232,176,75,.15); color: #e8b04b; }
.tbx-ic.t2 { background: rgba(77,191,168,.14); color: #4dbfa8; }
.tbx-ic.t3 { background: rgba(155,125,190,.16); color: #b79ad6; }
.tbx-ic.t4 { background: rgba(96,140,200,.16); color: #7fa7dd; }
.tbx-ic.t5 { background: rgba(224,123,99,.15); color: #e08d78; }
.tbx-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: .14em;
    color: var(--champagne); opacity: .75;
}
.tbx-name { font-size: 15.5px; font-weight: 700; color: var(--strong); }
.tbx-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; min-height: 2.6em; }
.tbx-open {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    transition: .15s;
}
.tbx-card:hover .tbx-open { color: var(--accent); border-color: var(--hairline-gold); }
.tbx-open i { font-size: 10px; transition: transform .15s; }
.tbx-card:hover .tbx-open i { transform: translateX(3px); }
.tbx-empty {
    grid-column: 1 / -1;
    text-align: center; padding: 48px 0;
    color: var(--text-hint); font-size: 13.5px;
}
@media (prefers-reduced-motion: reduce) {
    .tbx-card, .tbx-open i { transition: none; }
    .tbx-card:hover { transform: none; }
}
