/* ============================================================
   漠禾 OA · 主题样式
   主题色由系统设置「主题颜色」切换（data-theme 属性控制）
   - red    经典红（默认，红黑电影感）
   - blue   科技蓝
   - orange 活力橙
   ============================================================ */
:root {
    --brand: #c8102e;
    --brand-dark: #9a0b23;
    --brand-deep: #6d0718;
    --brand-soft: #fdecef;
    --brand-light: #e23a55;
    --brand-dark2: #8f0b20;
    --brand-rgb: 200, 16, 46;
    --brand-accent: #ff5c68;
    --brand-hover: #faf6f7;
    --brand-tint: #10060a;
    --ink: #1c1c22;
    --muted: #6b7280;
    --bg: #f4f5f7;
    --line: #e8e9ee;
    --sidebar-bg: #15151a;
    --sidebar-text: #9b9ba6;
    --radius: 10px;
}

/* 科技蓝 */
body[data-theme="blue"] {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-deep: #1e3a8a;
    --brand-soft: #eaf2ff;
    --brand-light: #3b82f6;
    --brand-dark2: #1e40af;
    --brand-rgb: 37, 99, 235;
    --brand-accent: #6cb2ff;
    --brand-hover: #f3f7ff;
    --brand-tint: #060b18;
}

/* 活力橙 */
body[data-theme="orange"] {
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-deep: #9a3412;
    --brand-soft: #fff3e8;
    --brand-light: #fb923c;
    --brand-dark2: #c2410c;
    --brand-rgb: 249, 115, 22;
    --brand-accent: #ffb25e;
    --brand-hover: #fff8f1;
    --brand-tint: #140b05;
}

* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }

/* ---------------- 登录页（红黑电影感，随主题变色） ---------------- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0c10;
    position: relative;
    overflow: hidden;
}
.login-bg {
    position: fixed; inset: 0;
    background:
        radial-gradient(600px 400px at 15% 20%, rgba(var(--brand-rgb), .25), transparent 60%),
        radial-gradient(700px 500px at 85% 80%, rgba(var(--brand-rgb), .18), transparent 60%),
        linear-gradient(160deg, #14141a 0%, #0c0c10 55%, var(--brand-tint) 100%);
}
.login-wrap { position: relative; z-index: 2; width: 100%; max-width: 400px; padding: 20px; }
.login-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(var(--brand-rgb), .35);
    border-radius: 16px;
    padding: 34px 32px 26px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(var(--brand-rgb), .15), inset 0 0 30px rgba(var(--brand-rgb), .04);
}
.login-brand { text-align: center; margin-bottom: 14px; }
.brand-logo.lg {
    width: 64px; height: 64px; font-size: 34px; line-height: 64px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark2));
    box-shadow: 0 6px 22px rgba(var(--brand-rgb), .5);
}
.login-title { color: #fff; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; }
.login-sub { color: rgba(255,255,255,.5); text-align: center; font-size: 12px; letter-spacing: 1px; margin-bottom: 24px; }
.login-body .form-control {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    color: #fff; border-radius: 8px;
    caret-color: var(--brand-accent);   /* 输入光标：细主题色，避免默认粗大白色光标 */
    font-size: 15px;                    /* 稳定字号，避免浏览器自动放大 */
}
.login-body .form-control:focus { background: rgba(255,255,255,.09); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .2); }
.login-body .form-floating > label { color: rgba(255,255,255,.55); }
.login-body .form-floating > .form-control:focus ~ label,
.login-body .form-floating > .form-control:not(:placeholder-shown) ~ label { color: rgba(255,255,255,.8); }
/* 修复：Bootstrap 浮动标签上浮后默认带白色底衬（--bs-body-bg），在深色登录页上会呈现白色色块 */
.login-body .form-floating > .form-control:focus ~ label::after,
.login-body .form-floating > .form-control:not(:placeholder-shown) ~ label::after { background-color: transparent; }
/* 修复：浏览器自动填充时输入框被强制白底，覆盖为深色保持统一 */
.login-body .form-control:-webkit-autofill,
.login-body .form-control:-webkit-autofill:hover,
.login-body .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #1a1a20 inset;
    box-shadow: 0 0 0 1000px #1a1a20 inset;
    caret-color: var(--brand-accent);
    transition: background-color 9999s ease-in-out 0s;
}
.login-copy { color: rgba(255,255,255,.3); text-align: center; font-size: 12px; margin-top: 18px; }

/* ---------------- 布局骨架 ---------------- */
.app-body { background: var(--bg); }
.brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand-logo {
    width: 40px; height: 40px; border-radius: 10px; flex: none;
    background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark2));
    color: #fff; font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), .4);
}
.brand-name { color: #fff; font-weight: 700; letter-spacing: 1px; font-size: 17px; line-height: 1.2; }
.brand-sub { color: rgba(255,255,255,.4); font-size: 11px; }

.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 218px; z-index: 1040;
    background: var(--sidebar-bg); display: flex; flex-direction: column;
    transition: transform .25s ease;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.nav-group { color: rgba(255,255,255,.32); font-size: 11px; letter-spacing: 2px; padding: 14px 10px 6px; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--sidebar-text); padding: 9px 12px; margin: 2px 0;
    border-radius: 8px; text-decoration: none; font-size: 14px;
    transition: all .15s;
}
.nav-item i { font-size: 16px; width: 20px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active {
    color: #fff; font-weight: 600;
    background: linear-gradient(90deg, rgba(var(--brand-rgb), .95), rgba(var(--brand-rgb), .55));
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), .35);
}
/* 折叠父子菜单 */
.nav-parent .nav-toggle { cursor: pointer; }
.nav-arrow { margin-left: auto; font-size: 12px; transition: transform .2s; }
.nav-parent.open > .nav-toggle .nav-arrow { transform: rotate(180deg); }
.nav-sub { display: none; padding-left: 12px; }
.nav-parent.open > .nav-sub { display: block; }
.nav-sub-group {
    color: rgba(255,255,255,.32); font-size: 11px; letter-spacing: 1px;
    padding: 10px 10px 4px;
}
.nav-sub .nav-leaf { padding: 7px 12px; font-size: 13px; }
.nav-sub .nav-leaf i { font-size: 14px; width: 18px; }
.sidebar-foot { padding: 14px 16px; color: rgba(255,255,255,.25); font-size: 11px; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar-mask { display: none; }
.sidebar-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1030; }

.main { margin-left: 218px; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    height: 58px; background: #fff; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px; padding: 0 20px;
    position: sticky; top: 0; z-index: 1020;
}
.topbar-title { font-weight: 600; font-size: 16px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bell { position: relative; color: var(--ink); font-size: 20px; text-decoration: none; }
.bell-dot {
    position: absolute; top: -6px; right: -8px;
    background: var(--brand); color: #fff; font-size: 10px; line-height: 1;
    padding: 3px 5px; border-radius: 10px; min-width: 16px; text-align: center;
    display: none; font-style: normal;
}
.bell-dot.show { display: inline-block; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }
.user-chip { display: flex; align-items: center; gap: 8px; border: none; background: transparent; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, var(--brand-light), var(--brand-dark2)); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.avatar-sm { width: 30px; height: 30px; border-radius: 50%; flex: none; background: linear-gradient(135deg,var(--brand-light),var(--brand-dark2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.avatar-xl { width: 56px; height: 56px; border-radius: 50%; flex: none; background: linear-gradient(135deg,var(--brand-light),var(--brand-dark2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }

.content { flex: 1; padding: 0; }
.content .container-fluid { max-width: 1440px; margin: 0 auto; }

/* ---------------- 通用组件 ---------------- */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
    border: none; color: #fff; font-weight: 600;
}
.btn-brand:hover { color: #fff; filter: brightness(1.08); }
.btn-outline-red { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline-red:hover { background: var(--brand); color: #fff; }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

.card.oa-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.oa-card-head { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.oa-table { font-size: 13.5px; }
.oa-table thead th { background: #fafafb; color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.oa-table tbody tr:hover { background: var(--brand-hover); }
.oa-table td, .oa-table th { vertical-align: middle; }

.bg-danger-soft  { background: var(--brand-soft); }
.bg-warning-soft { background: #fff7e6; }
.bg-success-soft { background: #e8f7ee; }
.bg-secondary-soft { background: #f0f1f3; }
.text-warning { color: #e6a23c !important; }

.mini-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ms-num { font-size: 22px; font-weight: 700; color: var(--ink); }
.ms-label { font-size: 12px; color: var(--muted); }

/* ---------------- 付款队列（v2.7） ---------------- */
/* 概览小卡片：去掉内边距由 card-body 承担，仅补 hover 与左侧色条 */
.card.oa-card.stat-mini { border-left: 3px solid var(--line); }
.card.oa-card.stat-mini:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
/* 加急单据整行浅红底，凸显需要立刻处理的付款 */
.oa-table tbody tr.table-danger-row { background: rgba(220, 53, 69, .06); }
.oa-table tbody tr.table-danger-row:hover { background: rgba(220, 53, 69, .11); }

.nav-pills .nav-link { color: var(--muted); font-size: 14px; border-radius: 8px; }
.nav-pills .nav-link.active { background: var(--brand); color: #fff; }

.empty-state { text-align: center; color: #adb3bd; padding: 36px 0; font-size: 13px; }
.empty-state i { font-size: 34px; display: block; margin-bottom: 8px; }

.dot-red { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.dot-gray { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d4d7dd; }

.check-zone { background: var(--brand-hover); border: 1px dashed rgba(var(--brand-rgb), .35); }
.task-link { color: var(--ink); text-decoration: none; }
.task-link:hover { color: var(--brand); }

/* ---------------- 考勤日历 ---------------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal-cell {
    border: 1px solid var(--line); border-radius: 8px; min-height: 64px;
    padding: 6px; background: #fff; display: flex; flex-direction: column; gap: 4px;
}
.cal-cell.blank { background: transparent; border-color: transparent; }
.cal-cell.today { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .15); }
.cal-day { font-size: 13px; font-weight: 600; }
.cal-status { font-size: 11px; padding: 2px 6px; border-radius: 6px; align-self: flex-start; }
.cal-cell.st-normal .cal-status { background: #e8f7ee; color: #1a9e4b; }
.cal-cell.st-late .cal-status, .cal-cell.st-early .cal-status { background: #fff7e6; color: #d08a00; }
.cal-cell.st-absent .cal-status { background: var(--brand-soft); color: var(--brand); }

/* ---------------- 数据大屏（红黑电影感，随主题变色） ---------------- */
.dashboard-page { background: #0e0e12; }
.dashboard-page .sidebar { background: #131318; }
.dashboard-page .topbar { background: #141419; border-color: rgba(255,255,255,.07); }
.dashboard-page .topbar-title { color: #e9e9ef; }
.dashboard-page .bell { color: #e9e9ef; }

.dash-cards { }
.dash-card {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(var(--brand-rgb), .28);
    border-radius: 12px; padding: 16px 18px; height: 100%;
    display: flex; gap: 14px; align-items: flex-start;
    box-shadow: 0 0 24px rgba(var(--brand-rgb), .06);
}
.dash-ico {
    width: 42px; height: 42px; border-radius: 10px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.dash-ico.red   { background: rgba(var(--brand-rgb), .18); color: var(--brand-accent); box-shadow: 0 0 16px rgba(var(--brand-rgb), .35); }
.dash-ico.amber { background: rgba(230,162,60,.15); color: #ffc25e; }
.dash-ico.green { background: rgba(46,180,110,.15); color: #4ade80; }
.dash-ico.blue  { background: rgba(59,130,246,.15); color: #6cb2ff; }
.dash-num { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.25; }
.dash-num small { font-size: 12px; font-weight: 400; color: #9a9aa6; }
.dash-sub { color: #8c8c98; font-size: 12px; margin-top: 3px; }

.dash-quick {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px; padding: 10px 14px;
}
.quick-label { color: var(--brand-accent); font-size: 12px; font-weight: 600; margin-right: 4px; letter-spacing: 1px; }

.chart-card { }
.dash-card-title {
    color: #e9e9ef; font-weight: 600; font-size: 14px;
    padding-bottom: 10px; margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: 6px;
}
.dash-card-title i { color: var(--brand); }
.dash-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.dash-row:last-child { border-bottom: none; }
.row-title { color: #e4e4ec; font-size: 13.5px; }
.row-sub { color: #82828e; font-size: 12px; }
.flex-1 { flex: 1; min-width: 0; }
.dash-empty { color: #66666f; text-align: center; padding: 22px 0; font-size: 13px; }
.warn-pill {
    background: rgba(230,162,60,.15); color: #ffc25e; border-radius: 8px;
    padding: 3px 10px; font-size: 12px; font-weight: 700; flex: none;
}
.warn-pill.urgent { background: rgba(var(--brand-rgb), .2); color: var(--brand-accent); animation: pulse 1.4s infinite; }

/* 列表型大屏卡片（竖排） */
.dash-card.dash-col { display: block; }
.dash-card.dash-col .dash-card-title { margin-bottom: 10px; }
.days-left { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.days-left.red    { background: rgba(var(--brand-rgb), .2);  color: var(--brand-accent); }
.days-left.orange { background: rgba(230,162,60,.15); color: #ffc25e; }
.days-left.green  { background: rgba(46,180,110,.15); color: #4ade80; }
.tag-finish { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px; background: rgba(46,180,110,.15); color: #4ade80; font-weight: 700; margin-left: 6px; }
.phase-tag { font-size: 11px; color: #9a9aa6; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.dash-section {
    display: flex; align-items: center; gap: 8px;
    color: #e9e9ef; font-size: 15px; font-weight: 700; letter-spacing: 1px;
    margin: 4px 0 12px;
}
.dash-section i { color: var(--brand); }
.dash-section .dash-section-sub { color: #8c8c98; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.dash-link { color: var(--brand-accent); text-decoration: none; }
.dash-link:hover { color: var(--brand-accent); opacity: .85; }

/* ---------------- 三大业务实时看板（v3.2） ---------------- */
.dash-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin: 2px 0 12px;
}
.dash-topbar-title {
    color: #e9e9ef; font-size: 14px; font-weight: 700; letter-spacing: 2px;
}
.dash-topbar-title i { color: var(--brand); }
.dash-clock {
    color: #8c8c98; font-size: 12px; font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}

.biz-board {
    display: grid; gap: 14px; margin-bottom: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1199.98px) { .biz-board { grid-template-columns: 1fr; } }

.biz-col {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    border: 1px solid rgba(var(--brand-rgb), .26);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 0 28px rgba(var(--brand-rgb), .07);
    display: flex; flex-direction: column;
}
.biz-head {
    display: flex; align-items: center; gap: 9px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(90deg, rgba(var(--brand-rgb), .14), transparent);
}
.biz-ico {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    background: rgba(var(--brand-rgb), .2); color: var(--brand-accent);
}
.biz-col.media .biz-ico { background: rgba(230,162,60,.16); color: #ffc25e; }
.biz-col.ticket .biz-ico { background: rgba(46,180,110,.16); color: #4ade80; }
.biz-name { color: #e9e9ef; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.biz-num {
    margin-left: auto; color: #fff; font-size: 20px; font-weight: 700;
    font-variant-numeric: tabular-nums; line-height: 1;
}
.biz-num i { font-size: 11px; font-weight: 400; color: #8c8c98; font-style: normal; margin-left: 3px; }

.biz-body { padding: 12px 16px; height: 330px; display: flex; flex-direction: column; overflow: hidden; }
/* 三大业务板：内容溢出时无缝循环滚动（视口固定高度，超出必滚） */
.biz-scroll { flex: 1; min-height: 0; overflow: hidden; }
.biz-scroll-inner { display: flex; flex-direction: column; }
.biz-scroll.is-scrollable .biz-scroll-inner {
    animation: bizScroll var(--bs-dur, 20s) linear infinite;
}
.biz-scroll:hover .biz-scroll-inner { animation-play-state: paused; }
@keyframes bizScroll {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}
@media (max-width: 1199.98px) {
    .biz-body { height: auto; }
    .biz-scroll { max-height: none; }
    .biz-scroll.is-scrollable .biz-scroll-inner { animation: none; }
}
.biz-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px; border-top: 1px solid rgba(255,255,255,.06);
    color: #7e7e8a; font-size: 11.5px;
}
.biz-foot b { color: #e4e4ec; }
.biz-foot a { color: var(--brand-accent); text-decoration: none; font-size: 11.5px; }
.biz-foot a:hover { opacity: .82; }
.biz-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; height: 150px; color: #5d5d66; font-size: 12.5px;
}
.biz-empty i { font-size: 26px; opacity: .5; }

/* 倒计时徽章：大数字 + 单位 */
.cd-box {
    display: inline-flex; align-items: baseline; gap: 2px;
    padding: 2px 8px; border-radius: 8px; white-space: nowrap;
    font-variant-numeric: tabular-nums; line-height: 1.35;
    background: rgba(255,255,255,.05); color: #9a9aa6;
}
.cd-box b { font-size: 17px; font-weight: 700; }
.cd-box i { font-size: 10.5px; font-style: normal; opacity: .8; }
.cd-box .cd-pre { font-size: 10px; margin-right: 3px; opacity: .85; }
.cd-box.over   { background: rgba(var(--brand-rgb), .2); color: var(--brand-accent); }
.cd-box.urgent { background: rgba(var(--brand-rgb), .16); color: var(--brand-accent); }
.cd-box.soon   { background: rgba(230,162,60,.15); color: #ffc25e; }
.cd-box.normal { background: rgba(255,255,255,.05); color: #b8b8c2; }
.cd-box.ok     { background: rgba(46,180,110,.15); color: #4ade80; padding: 2px 6px; }
.cd-box.none   { color: #5d5d66; }
.cd-box.over { animation: pulse 1.6s infinite; }

/* ① 宣传片 */
.film-item {
    display: block; text-decoration: none; padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.film-item:last-child { border-bottom: none; }
.film-item:hover { background: rgba(255,255,255,.025); border-radius: 8px; }
.film-top { display: flex; align-items: center; gap: 10px; }
.film-name {
    flex: 1; min-width: 0; color: #e4e4ec; font-size: 13.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.film-mid {
    display: flex; align-items: center; gap: 8px; margin: 6px 0 5px;
}
.phase-dots { display: inline-flex; gap: 4px; align-items: center; }
.phase-dot {
    width: 9px; height: 9px; border-radius: 50%; display: inline-block;
    background: #3a3a44; border: 1px solid rgba(255,255,255,.12);
}
.phase-dot.done  { background: #4ade80; border-color: #4ade80; }
.phase-dot.doing { background: var(--brand-accent); border-color: var(--brand-accent); animation: pulse 1.5s infinite; }
.phase-dot.late  { background: rgba(var(--brand-rgb), .55); border-color: var(--brand-accent); }
.dot-none { color: #5d5d66; font-size: 11px; }
.film-pct {
    margin-left: auto; color: #8c8c98; font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.film-bar {
    height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden;
}
.film-bar div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-accent)); }

/* ② 新媒体 */
.media-zones { display: flex; gap: 6px; margin-bottom: 10px; flex: none; }
.mz {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 5px 4px; border-radius: 8px; font-size: 11px; color: #8c8c98;
    background: rgba(255,255,255,.04);
}
.mz b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mz.done  { color: #4ade80; background: rgba(46,180,110,.1); }
.mz.doing { color: var(--brand-accent); background: rgba(var(--brand-rgb), .12); }
.mz.next  { color: #6cb2ff; background: rgba(59,130,246,.1); }
.mz i { font-size: 11px; }

.mz-title {
    font-size: 10.5px; color: #6e6e79; letter-spacing: 1px;
    margin: 8px 0 4px; padding-left: 2px;
}
.mz-title:first-of-type { margin-top: 2px; }
.media-item {
    display: flex; align-items: center; gap: 7px; padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.media-item:last-child { border-bottom: none; }
.mi-cust {
    flex: none; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: #8c8c98; font-size: 11px;
}
.mi-title {
    flex: 1; min-width: 0; color: #e4e4ec; font-size: 12.5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mi-ch {
    flex: none; font-size: 10px; color: var(--brand-accent);
    background: rgba(var(--brand-rgb), .13); border-radius: 5px; padding: 1px 5px;
}

/* ③ 电商运营（演出票务 + 啄家家，v3.9 推进看板） */
.biz-col.ticket .biz-num { color: #4ade80; }
.biz-body.ecm-body { padding: 10px 14px; gap: 9px; }
.ec-card {
    border-radius: 10px; padding: 8px 11px 9px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
}
.ec-tk  { flex: 0 0 170px; }
.ec-zjj { flex: 1 1 auto; min-height: 0; }
.ec-hd  { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ec-tt  { display: inline-flex; align-items: center; gap: 5px; color: #e4e4ec; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.ec-tt i { color: #4ade80; }
.ec-zjj .ec-tt i { color: #ffc25e; }
.ec-stat { margin-left: auto; color: #8c8c98; font-size: 10.5px; white-space: nowrap; }
.ec-stat b { color: #e4e4ec; font-variant-numeric: tabular-nums; }
.ec-set { flex: none; margin-left: 4px; color: var(--brand-accent); text-decoration: none; font-size: 15px; line-height: 1; }
.ec-set:hover { opacity: .85; color: var(--brand-accent); }
.ec-cd-row { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; }
.ec-cd-lab { font-size: 11px; color: #8c8c98; white-space: nowrap; }
.ec-cd {
    margin-left: auto; font-size: 28px; font-weight: 800; line-height: 1.15; color: #fff;
    font-variant-numeric: tabular-nums; letter-spacing: .5px; white-space: nowrap;
    text-shadow: 0 0 14px rgba(var(--brand-rgb), .55);
}
.ec-cd.over { color: #ffb84d; text-shadow: 0 0 14px rgba(230,162,60,.5); }
.ec-bar { height: 6px; margin-top: 7px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.ec-bar-in { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1f8a55, #4ade80); transition: width .5s ease; }
.ec-bar.zjj .ec-bar-in { background: linear-gradient(90deg, #b07a22, #ffc25e); }
.ec-bar-in.full { background: linear-gradient(90deg, #c0392b, #ff5f56); }
.ec-meta { margin-top: 6px; font-size: 11px; color: #7e7e8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-meta b { color: #e4e4ec; font-variant-numeric: tabular-nums; }
.ec-name { color: #cfcfd8; }
.ec-full { color: #ffb84d; font-size: 10px; font-weight: 700; }
.ec-empty { display: flex; align-items: center; gap: 7px; margin: 10px 0 2px; font-size: 12px; color: #9a9aa6; }
.ec-empty i { font-size: 16px; color: #5d5d66; }
.ec-empty.warn { color: #ffb84d; }
.ec-empty.warn i { color: #ffc25e; }
.ec-ms { display: flex; align-items: center; gap: 5px; margin-top: 7px; }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #3a3a44; border: 1px solid rgba(255,255,255,.15); flex: none; }
.ms-dot.done { background: #4ade80; border-color: #4ade80; }
.ms-dot.cur  { background: #ffc25e; border-color: #ffc25e; box-shadow: 0 0 7px rgba(255,194,94,.75); animation: pulse 1.5s infinite; }
.ec-ms-lab { font-size: 10.5px; color: #8c8c98; margin-left: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-note { margin-top: 5px; font-size: 10.5px; color: #6e6e79; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) {
    .ec-tk { flex: 0 0 auto; }
    .ec-card { margin-bottom: 4px; }
}

/* ---------------- 我的任务（重点区，v3.2.1） ---------------- */
.my-task-panel {
    background: linear-gradient(180deg, rgba(var(--brand-rgb), .09), rgba(255,255,255,.02));
    border: 1px solid rgba(var(--brand-rgb), .32);
    border-radius: 14px; overflow: hidden; margin-bottom: 18px;
    box-shadow: 0 0 32px rgba(var(--brand-rgb), .1);
}
.mtp-head {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(90deg, rgba(var(--brand-rgb), .2), transparent 70%);
}
.mtp-title {
    color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1.5px;
    display: inline-flex; align-items: center; gap: 7px;
}
.mtp-title i { color: var(--brand-accent); font-size: 17px; }
.mtp-stats { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; flex-wrap: wrap; }
.mtp-stat {
    display: inline-flex; align-items: baseline; gap: 3px;
    padding: 3px 10px; border-radius: 8px; font-size: 11px; color: #9a9aa6;
    background: rgba(255,255,255,.05); font-variant-numeric: tabular-nums;
}
.mtp-stat b { color: #fff; font-size: 15px; font-weight: 700; }
.mtp-stat.today { background: rgba(230,162,60,.14); color: #ffc25e; }
.mtp-stat.today b { color: #ffc25e; }
.mtp-stat.over  { background: rgba(var(--brand-rgb), .2); color: var(--brand-accent); }
.mtp-stat.over b { color: var(--brand-accent); }
.mtp-stat.over:not(.zero) { animation: pulse 1.6s infinite; }
.mtp-stat.zero { background: rgba(255,255,255,.04); color: #6e6e79; }
.mtp-stat.zero b { color: #8c8c98; }
.mtp-more {
    margin-left: auto; color: var(--brand-accent); text-decoration: none;
    font-size: 11.5px; white-space: nowrap;
}
.mtp-more:hover { opacity: .82; color: var(--brand-accent); }

.mtp-body {
    display: grid; gap: 10px; padding: 14px 18px;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.mtp-empty {
    grid-column: 1 / -1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    padding: 26px 0; color: #5d5d66; font-size: 12.5px;
}
.mtp-empty i { font-size: 26px; opacity: .5; }

.mt-card {
    display: flex; flex-direction: column; gap: 6px; text-decoration: none;
    padding: 11px 13px; border-radius: 11px; min-height: 96px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    border-left: 3px solid rgba(255,255,255,.16);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.mt-card:hover {
    transform: translateY(-2px); background: rgba(255,255,255,.075);
    border-color: rgba(var(--brand-rgb), .35);
}
.mt-card.soon { border-left-color: #e6a23c; background: rgba(230,162,60,.07); }
.mt-card.over {
    border-left-color: var(--brand-accent);
    background: rgba(var(--brand-rgb), .12);
    border-color: rgba(var(--brand-rgb), .34);
}
.mt-card.over .mt-title { color: #fff; }

.mt-top { display: flex; align-items: center; gap: 6px; }
.mt-spacer { flex: 1; }
.mt-status {
    font-size: 10.5px; padding: 1px 7px; border-radius: 6px;
    background: rgba(255,255,255,.07); color: #9a9aa6; white-space: nowrap;
}
.mt-status.doing { background: rgba(59,130,246,.18); color: #6cb2ff; }
.mt-pri {
    font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px;
    background: rgba(var(--brand-rgb), .22); color: var(--brand-accent);
}
.mt-title {
    color: #e4e4ec; font-size: 13.5px; font-weight: 600; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.mt-meta {
    display: flex; align-items: center; gap: 7px; margin-top: auto;
    font-size: 11px; color: #7e7e8a; min-width: 0;
}
.mt-proj {
    display: inline-flex; align-items: center; gap: 3px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: #9a9aa6;
}
.mt-proj i { font-size: 10px; }
.mt-phase {
    flex: none; font-size: 10px; padding: 1px 6px; border-radius: 5px;
    background: rgba(255,255,255,.06); color: #8c8c98;
}
.mt-time {
    margin-left: auto; flex: none; color: #6e6e79;
    font-variant-numeric: tabular-nums;
}

/* 正在进行项目：宽屏两列 */
.proj-list { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
@media (min-width: 1400px) { .proj-list { grid-template-columns: 1fr 1fr; } }

/* ---------------- 车辆卡片 ---------------- */
.vehicle-card { transition: transform .15s; }
.vehicle-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.v-icon {
    width: 44px; height: 44px; border-radius: 10px; flex: none;
    background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar-open .sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.5); }
    .sidebar-open .sidebar-mask { display: block; }
    .main { margin-left: 0; }
}

/* ---------------- 协同工具 · 资料库 ---------------- */
.collab-thumb {
    height: 130px; border-radius: 8px; overflow: hidden;
    background: #f6f6f8; border: 1px solid rgba(0,0,0,.06);
    display: flex; align-items: center; justify-content: center;
}
.collab-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.collab-content {
    white-space: pre-wrap; word-break: break-word;
    font-family: inherit; font-size: 13.5px; line-height: 1.8; color: #333;
    background: #fafafa; border: 1px solid rgba(0,0,0,.06);
    border-radius: 8px; padding: 14px 16px; max-height: 46vh; overflow: auto;
}

/* ---------------- 系统设置 · 主题颜色选择 ---------------- */
.theme-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 2px solid var(--line); border-radius: 10px; padding: 14px 8px;
    cursor: pointer; text-align: center; transition: all .15s; height: 100%;
}
.theme-card:hover { border-color: #cbd0d8; }
.theme-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.theme-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch { width: 46px; height: 46px; border-radius: 10px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.theme-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.theme-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
