/* ============================================================
   影迷求片站 / 样式表
   ============================================================ */
:root {
    --bg: #0a0c11;
    --bg-soft: #0e1117;
    --panel: #12161f;
    --panel-2: #161b26;
    --line: #232a38;
    --line-soft: #1b2130;
    --text: #e9edf6;
    --text-dim: #9aa6bd;
    --text-mute: #6b778e;
    --accent: #ff7a29;
    --accent-2: #ffb03a;
    --accent-soft: rgba(255, 122, 41, .14);
    --green: #3ddc97;
    --blue: #4aa8ff;
    --red: #ff5f6d;
    --amber: #ffc247;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --sidebar-w: 236px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--text-dim); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.warn-text { color: var(--amber); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------- 布局 */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, #0d1017 0%, #0a0c11 100%);
    border-right: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    padding: 18px 14px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-logo {
    width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a0d04;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(255, 122, 41, .28);
}
.brand-logo.big { width: 52px; height: 52px; border-radius: 15px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 14.5px; letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-text small { color: var(--text-mute); font-size: 11.5px; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 11px; border-radius: 10px;
    color: var(--text-dim); font-size: 13.5px;
    transition: background .16s, color .16s;
}
.nav-item:hover { background: #151a24; color: var(--text); }
.nav-item.is-active {
    background: linear-gradient(90deg, var(--accent-soft), rgba(255, 122, 41, .04));
    color: #ffd9bd;
    box-shadow: inset 2px 0 0 var(--accent);
}
.nav-item svg { flex: 0 0 auto; opacity: .9; }
.nav-sep {
    margin: 14px 0 6px; padding: 0 11px;
    font-size: 11px; letter-spacing: 1.5px; color: var(--text-mute);
    text-transform: uppercase;
}

.sidebar-foot { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 4px 4px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: #1e2534; color: #ffd3b0; font-weight: 600; font-size: 13px;
    flex: 0 0 auto;
}
.me-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.me-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-info small { color: var(--text-mute); font-size: 11px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 58px; flex: 0 0 58px;
    display: flex; align-items: center; gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(10, 12, 17, .82);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 30;
}
.topbar-title { font-size: 13.5px; color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }

.content { padding: 22px; max-width: 1240px; width: 100%; margin: 0 auto; flex: 1; }

/* ---------------------------------------------------------- 通用控件 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px; border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13.5px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: transform .12s, background .16s, border-color .16s, opacity .16s;
    background: #1b2230; color: var(--text);
    white-space: nowrap;
}
.btn:hover { background: #222b3c; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #20100a; font-weight: 600;
    box-shadow: 0 8px 20px rgba(255, 122, 41, .24);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff8b42, #ffbc55); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn-ghost:hover { background: #161c27; color: var(--text); border-color: #2d3648; }
.btn-danger { background: rgba(255, 95, 109, .12); color: #ff9aa3; border-color: rgba(255, 95, 109, .3); }
.btn-danger:hover { background: rgba(255, 95, 109, .2); color: #ffb7bd; }
/* 删除：平时低调，悬停才显红，避免和「撤销」抢视线 */
.btn-del { background: transparent; border-color: var(--line); color: #97a0b2; }
.btn-del:hover { background: rgba(255, 95, 109, .13); color: #ff9aa3; border-color: rgba(255, 95, 109, .32); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.icon-btn {
    width: 34px; height: 34px; border-radius: 9px;
    display: inline-grid; place-items: center;
    background: transparent; border: 1px solid transparent;
    color: var(--text-dim); cursor: pointer; position: relative;
    transition: background .16s, color .16s;
}
.icon-btn:hover { background: #171d29; color: var(--text); }
.bell .dot {
    position: absolute; top: 7px; right: 7px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 2px var(--bg);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; color: var(--text-dim); }
.field input, .field textarea, .field select, .filter-bar input, .filter-bar select, .searchbar input, .searchbar select {
    width: 100%;
    background: #0d1118; color: var(--text);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px; font-size: 13.5px; font-family: inherit;
    transition: border-color .16s, background .16s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus,
.filter-bar input:focus, .searchbar input:focus { border-color: var(--accent); background: #10151e; outline: none; }
.field input::placeholder, .searchbar input::placeholder, .filter-bar input::placeholder { color: #55617a; }

.check { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 14px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }

.form-stack { display: flex; flex-direction: column; }

/* ---------------------------------------------------------- 卡片 */
.card {
    background: linear-gradient(180deg, var(--panel) 0%, #10141c 100%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}
.card-title { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; letter-spacing: .2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.page-head h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: .3px; }
.page-head p { margin: 0; font-size: 13px; }

/* ---------------------------------------------------------- 首页 Hero */
.notice-bar {
    display: flex; align-items: center; gap: 9px;
    background: rgba(74, 168, 255, .1);
    border: 1px solid rgba(74, 168, 255, .22);
    color: #a9d3ff;
    border-radius: var(--radius-sm);
    padding: 10px 14px; margin-bottom: 16px; font-size: 13px;
}
.hero {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.hero-copy h1 {
    margin: 0 0 6px; font-size: 26px; line-height: 1.25; letter-spacing: .3px;
    background: linear-gradient(100deg, #fff 10%, #ffcfae 60%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { margin: 0; color: var(--text-dim); font-size: 13.5px; }
.hero-stats { display: flex; gap: 10px; }
.stat {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm); padding: 9px 16px; text-align: center; min-width: 78px;
}
.stat b { display: block; font-size: 18px; line-height: 1.2; }
.stat span { font-size: 11.5px; color: var(--text-mute); }

/* 搜索条 */
.searchbar {
    display: flex; gap: 10px; align-items: center;
    background: linear-gradient(180deg, #141a25, #10151e);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px;
    box-shadow: var(--shadow);
}
.sb-input { position: relative; flex: 1; display: flex; align-items: center; }
.sb-input svg { position: absolute; left: 13px; color: var(--text-mute); pointer-events: none; }
.sb-input input {
    width: 100%; background: transparent; border: none;
    padding: 10px 12px 10px 40px; font-size: 14.5px; color: var(--text);
}
.sb-input input:focus { outline: none; }
.searchbar select {
    width: auto; min-width: 110px; background: #0d1118;
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px;
    color: var(--text-dim); font-size: 13px; font-family: inherit;
}
.sb-year { width: 84px !important; text-align: center; }
.searchbar .btn-primary { padding: 10px 22px; }

.adv-toggle-row { margin: 12px 0 0; }
.link-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: none; border: none; color: var(--text-dim);
    font-size: 12.5px; font-family: inherit; cursor: pointer; padding: 4px 2px;
}
.link-btn:hover { color: var(--text); }
.link-btn .chev { transition: transform .2s; }
.link-btn.open .chev { transform: rotate(180deg); }

.adv-panel {
    margin-top: 10px; padding: 16px;
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.adv-field { display: flex; flex-direction: column; gap: 7px; }
.adv-field > label { font-size: 12.5px; color: var(--text-dim); }
.adv-field input {
    background: #0d1118; border: 1px solid var(--line); border-radius: 9px;
    padding: 9px 11px; color: var(--text); font-size: 13px; font-family: inherit;
}
.adv-field input:focus { border-color: var(--accent); outline: none; }
.adv-hint { margin: 12px 0 0; font-size: 12px; color: var(--text-mute); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 20px;
    background: #10151e; border: 1px solid var(--line);
    color: var(--text-dim); font-size: 12.5px; cursor: pointer;
    font-family: inherit; transition: all .15s;
}
.chip:hover { border-color: #37425a; color: var(--text); }
.chip.on, .chip.is-active {
    background: var(--accent-soft); border-color: rgba(255, 122, 41, .5); color: #ffcdaa;
}
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------------------------------------------------------- 结果网格 */
.result-head { margin: 22px 0 12px; font-size: 13px; color: var(--text-mute); min-height: 20px; }
.poster-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.p-card {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.p-card:hover { transform: translateY(-3px); border-color: #333c50; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.p-poster {
    position: relative; aspect-ratio: 2 / 3; background: #171d29;
    display: grid; place-items: center; overflow: hidden;
}
.p-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-poster .ph {
    position: absolute; color: #2f3a4e; font-size: 40px; font-weight: 700; z-index: 0;
}
.p-poster img { position: relative; z-index: 1; }
.p-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: rgba(6, 8, 12, .78); backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #cfd7e6; font-size: 11px; padding: 2px 7px; border-radius: 6px;
}
.p-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.p-title {
    font-size: 13.5px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-sub { font-size: 11.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; align-items: center; }
.p-foot .btn { flex: 1; }
.season-sel {
    background: #0d1118; border: 1px solid var(--line); border-radius: 8px;
    color: var(--text-dim); font-size: 12px; padding: 6px 4px; font-family: inherit;
    max-width: 84px;
}

.skeleton { background: linear-gradient(90deg, #141a25 25%, #1a2130 37%, #141a25 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 12px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.empty-state {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 64px 20px; color: var(--text-mute); text-align: center;
}
.empty-state svg { color: #2a3446; }
.empty-state p { margin: 0; font-size: 14px; color: var(--text-dim); }
.empty-state small { font-size: 12.5px; }
.empty-state a { color: var(--accent); }

/* ---------------------------------------------------------- 求片列表 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm); padding: 13px 16px;
}
.stat-card b { display: block; font-size: 22px; line-height: 1.2; }
.stat-card span { font-size: 12px; color: var(--text-mute); }

.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-item {
    display: flex; gap: 14px; align-items: center;
    background: var(--panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 12px 14px;
}
.req-item:hover { border-color: #2c3547; }
.req-poster {
    width: 46px; height: 66px; flex: 0 0 46px;
    border-radius: 7px; overflow: hidden; background: #171d29;
    display: grid; place-items: center; position: relative;
}
.req-poster img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.req-poster .ph { position: absolute; color: #39445a; font-size: 18px; font-weight: 700; }
.req-main { flex: 1; min-width: 0; }
.req-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.req-title-row h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.req-meta { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.req-detail { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.req-detail .kv { font-size: 12px; color: var(--text-dim); display: inline-flex; gap: 6px; }
.req-detail .kv i { font-style: normal; color: var(--text-mute); }
.req-detail .kv.warn { color: var(--amber); }
.req-actions { display: flex; gap: 7px; flex: 0 0 auto; }

.badge {
    display: inline-flex; align-items: center;
    padding: 2.5px 9px; border-radius: 20px;
    font-size: 11.5px; font-weight: 500; white-space: nowrap;
    border: 1px solid transparent;
}
.st-pending { background: rgba(255, 194, 71, .12); color: #ffcf72; border-color: rgba(255, 194, 71, .25); }
.st-approved { background: rgba(74, 168, 255, .12); color: #8ac6ff; border-color: rgba(74, 168, 255, .25); }
.st-fulfilled { background: rgba(61, 220, 151, .12); color: #6ee8b4; border-color: rgba(61, 220, 151, .25); }
.st-no_resource { background: rgba(154, 166, 189, .12); color: #b3c0d6; border-color: rgba(154, 166, 189, .25); }
.st-failed { background: rgba(255, 95, 109, .12); color: #ff98a1; border-color: rgba(255, 95, 109, .25); }
.st-rejected { background: rgba(255, 95, 109, .12); color: #ff98a1; border-color: rgba(255, 95, 109, .25); }
.st-canceled { background: rgba(107, 119, 142, .14); color: #93a0b8; border-color: rgba(107, 119, 142, .3); }
.st-unknown { background: rgba(107, 119, 142, .14); color: #93a0b8; border-color: rgba(107, 119, 142, .3); }
.tag {
    display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 5px;
    background: var(--accent-soft); color: #ffc9a3; margin-left: 4px;
}
.foot-note { margin: 18px 0 0; font-size: 12px; color: var(--text-mute); }

/* ---------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; margin: -4px; padding: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
    text-align: left; font-weight: 500; font-size: 12px; color: var(--text-mute);
    padding: 8px 10px; border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover { background: #131924; }
.table tbody tr:last-child td { border-bottom: none; }
.cell-title { font-weight: 500; }
.inline-form { display: inline; }

/* 已删除（软删除）行：整行减淡 + 标签 */
.table tbody tr.row-hidden td { opacity: .55; }
.table tbody tr.row-hidden:hover td { opacity: 1; }
.tag-del {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px;
    font-size: 11px; font-weight: 500; vertical-align: 1px;
    background: rgba(255, 95, 109, .14); color: #ff9aa3;
}

.filter-bar { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.filter-bar input { width: auto; flex: 1; min-width: 160px; }
.filter-bar select { width: auto; min-width: 160px; }
.filter-bar .check-inline {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    font-size: 13px; color: var(--text-dim); cursor: pointer; user-select: none;
}
.filter-bar .check-inline input {
    width: 15px; height: 15px; min-width: 0; flex: 0 0 auto; margin: 0;
    accent-color: var(--accent);
}

/* ---------------------------------------------------------- 表单闪存 */
.flash-wrap { padding: 14px 22px 0; }
.flash {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 10px;
    border: 1px solid transparent;
}
.flash-success { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .25); color: #8bf0c4; }
.flash-error { background: rgba(255, 95, 109, .1); border-color: rgba(255, 95, 109, .25); color: #ffa8b0; }
.flash-info { background: rgba(74, 168, 255, .1); border-color: rgba(74, 168, 255, .25); color: #a9d3ff; }
.flash-x { background: none; border: none; color: inherit; font-size: 16px; cursor: pointer; opacity: .6; }
.flash-x:hover { opacity: 1; }

/* ---------------------------------------------------------- 模态 / 抽屉 */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 6, 10, .72); backdrop-filter: blur(3px); }
.modal-card {
    position: relative; width: 100%; max-width: 460px;
    background: var(--panel-2); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow);
    animation: pop .18s ease;
    max-height: 88vh; display: flex; flex-direction: column;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head, .modal-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; gap: 10px;
}
.modal-head { border-bottom: 1px solid var(--line-soft); }
.modal-foot { border-top: 1px solid var(--line-soft); justify-content: flex-end; }
.modal-body { padding: 18px; overflow-y: auto; }

.mv-row { display: flex; gap: 13px; margin-bottom: 16px; }
.mv-poster {
    width: 82px; height: 118px; border-radius: 9px; overflow: hidden;
    background: #171d29; flex: 0 0 82px; display: grid; place-items: center;
    position: relative;
}
.mv-poster img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.mv-poster .ph { position: absolute; color: #39445a; font-size: 26px; font-weight: 700; }
.mv-info h4 { margin: 0 0 4px; font-size: 15px; }
.mv-info p { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.mv-info .ov { margin-top: 8px; font-size: 12px; color: var(--text-mute); max-height: 68px; overflow: hidden; }

.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 95; }
.drawer-mask { position: absolute; inset: 0; background: rgba(4, 6, 10, .6); }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw;
    background: var(--panel); border-left: 1px solid var(--line);
    display: flex; flex-direction: column;
    animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 16px; border-bottom: 1px solid var(--line-soft);
}
.drawer-body { padding: 14px 16px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.drawer-foot { padding: 11px 16px; border-top: 1px solid var(--line-soft); font-size: 11.5px; }
.msg-item {
    background: #0f141d; border: 1px solid var(--line-soft);
    border-radius: 10px; padding: 10px 12px; font-size: 13px;
}
.msg-item time { display: block; font-size: 11px; color: var(--text-mute); margin-top: 4px; }

.toast-wrap {
    position: fixed; right: 18px; bottom: 18px; z-index: 120;
    display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
    background: #1b2230; border: 1px solid var(--line);
    color: var(--text); font-size: 13px;
    padding: 11px 15px; border-radius: 10px;
    box-shadow: var(--shadow); max-width: 340px;
    animation: toastIn .2s ease;
}
.toast.ok { border-color: rgba(61, 220, 151, .35); }
.toast.warn { border-color: rgba(255, 190, 61, .4); }
.toast.err { border-color: rgba(255, 95, 109, .35); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

.info-list { display: flex; flex-direction: column; gap: 11px; }
.info-list > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.info-list i { font-style: normal; color: var(--text-mute); flex: 0 0 auto; }
.info-list b { font-weight: 500; text-align: right; word-break: break-all; }
.tips { margin: 0 0 10px; padding-left: 18px; color: var(--text-dim); font-size: 13px; }
.tips li { margin-bottom: 6px; }

/* ---------------------------------------------------------- 登录页 */
.auth-body { display: grid; place-items: center; min-height: 100vh; overflow: hidden; }
.auth-bg { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #131a26 0%, #0a0c11 55%, #07080c 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-1 { width: 460px; height: 460px; background: rgba(255, 122, 41, .32); top: -120px; left: -80px; }
.orb-2 { width: 380px; height: 380px; background: rgba(74, 168, 255, .22); bottom: -140px; right: -60px; }
.grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
}
.auth-wrap { position: relative; z-index: 2; width: 100%; max-width: 400px; padding: 24px; }
.auth-card {
    background: rgba(18, 22, 31, .82);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    padding: 28px 26px 22px;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand h1 { margin: 14px 0 5px; font-size: 20px; letter-spacing: .5px; }
.auth-brand p { margin: 0; font-size: 13px; color: var(--text-dim); }
.auth-brand .brand-logo { margin: 0 auto; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { margin-top: 6px; padding: 11px; }
.auth-tip { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--text-mute); }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 960px) {
    .two-col { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 22px; }
}

@media (max-width: 760px) {
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, .6);
    }
    .sidebar.open { transform: none; }
    .nav-mask {
        position: fixed; inset: 0; z-index: 35;
        background: rgba(4, 6, 10, .6);
        backdrop-filter: blur(1px);
    }
    .menu-btn { display: inline-grid; }
    .content { padding: 16px 14px 32px; }
    .topbar { padding: 0 14px; height: 54px; flex-basis: 54px; }
    .searchbar { flex-wrap: wrap; }
    .sb-input { flex: 1 1 100%; }
    .searchbar select { flex: 1 1 auto; min-width: 0; }
    .sb-year { flex: 0 0 84px; }
    .searchbar .btn-primary { flex: 0 0 auto; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { width: 100%; }
    .stat { flex: 1; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
    .req-item { flex-wrap: wrap; }
    .req-actions { width: 100%; justify-content: flex-end; }
    .table th:nth-child(6), .table td:nth-child(6) { display: none; }
    .drawer-panel { width: 100%; max-width: none; }
    .flash-wrap { padding: 12px 14px 0; }
}

@media (max-width: 380px) {
    .poster-grid { grid-template-columns: repeat(2, 1fr); }
}
