:root { color-scheme: light; --bg:#f6f8fb; --panel:#fff; --text:#111827; --muted:#6b7280; --line:#e5e7eb; --brand:#2563eb; --brand-soft:#eff6ff; --accent:#0f766e; --danger:#dc2626; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin:0; min-width:1180px; background:var(--bg); color:var(--text); overflow:hidden; }
button,input { font: inherit; }
button { cursor:pointer; }
.login-page { min-height:100vh; display:grid; place-items:center; background:radial-gradient(circle at 10% 10%, rgba(37,99,235,.14), transparent 32%), radial-gradient(circle at 90% 10%, rgba(15,118,110,.14), transparent 32%), var(--bg); }
.login-card,.panel,.page-header { background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:0 14px 34px rgba(17,24,39,.06); }
.login-card { width:430px; padding:30px; }
.brand-row { display:flex; gap:13px; align-items:center; margin-bottom:24px; }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; color:#fff; font-weight:900; background:linear-gradient(135deg,var(--brand),var(--accent)); }
.login-card h1 { margin:0 0 6px; font-size:24px; }
.login-card p,.page-header p,.muted { color:var(--muted); }
.session-ended-overlay { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:24px; background:rgba(15,23,42,.58); backdrop-filter:blur(5px); }
.session-ended-dialog { width:440px; max-width:calc(100vw - 48px); padding:30px; text-align:center; background:#fff; border:1px solid rgba(255,255,255,.7); border-radius:20px; box-shadow:0 28px 70px rgba(15,23,42,.28); }
.session-ended-icon { width:54px; height:54px; display:grid; place-items:center; margin:0 auto 16px; border-radius:18px; color:#b45309; background:#fef3c7; font-size:28px; font-weight:900; }
.session-ended-dialog .eyebrow { margin-bottom:8px; }
.session-ended-dialog h2 { margin:0 0 10px; font-size:24px; }
.session-ended-dialog > p:not(.eyebrow) { margin:0; color:#475569; line-height:1.7; }
.session-ended-dialog .session-ended-hint { margin-top:8px; color:var(--muted); font-size:13px; }
.session-ended-dialog .primary { width:100%; margin-top:22px; }
.system-toast-stack { position:fixed; top:82px; right:24px; z-index:1100; display:grid; gap:10px; width:min(380px,calc(100vw - 48px)); pointer-events:none; }
.system-toast { pointer-events:auto; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 12px; align-items:start; padding:14px 14px 14px 16px; border:1px solid #bfdbfe; border-left:4px solid var(--brand); border-radius:14px; background:#fff; box-shadow:0 16px 42px rgba(15,23,42,.14); animation:toast-in .18s ease-out; }
.system-toast.warning { border-color:#fde68a; border-left-color:#f59e0b; }
.system-toast.danger { border-color:#fecaca; border-left-color:var(--danger); }
.system-toast.success { border-color:#bbf7d0; border-left-color:#16a34a; }
.system-toast strong { color:#111827; font-size:14px; }
.system-toast span { grid-column:1 / 2; color:#475569; line-height:1.5; word-break:break-word; }
.system-toast button { grid-column:2; grid-row:1 / span 2; border:0; background:transparent; color:#94a3b8; font-size:20px; line-height:1; padding:0 2px; }
.system-toast.leaving { opacity:0; transform:translateX(12px); transition:opacity .18s ease, transform .18s ease; }
.system-dialog-overlay { position:fixed; inset:0; z-index:1090; display:grid; place-items:center; padding:24px; background:rgba(15,23,42,.56); backdrop-filter:blur(4px); }
.system-dialog { width:min(480px,calc(100vw - 48px)); display:grid; grid-template-columns:54px minmax(0,1fr); gap:16px; padding:24px; background:#fff; border:1px solid rgba(255,255,255,.72); border-radius:20px; box-shadow:0 28px 76px rgba(15,23,42,.28); animation:dialog-in .16s ease-out; }
.system-dialog-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; color:#1d4ed8; background:#dbeafe; font-size:24px; font-weight:900; }
.system-dialog.warning .system-dialog-icon { color:#b45309; background:#fef3c7; }
.system-dialog.danger .system-dialog-icon { color:#b91c1c; background:#fee2e2; }
.system-dialog-body { min-width:0; }
.system-dialog h2 { margin:0 0 8px; font-size:20px; }
.system-dialog-message { margin:0; color:#475569; line-height:1.7; white-space:pre-line; word-break:break-word; }
.system-dialog-field { display:grid; gap:8px; margin-top:14px; color:#374151; font-size:13px; font-weight:800; }
.system-dialog-field input, .system-dialog-field select { width:100%; height:42px; border:1px solid var(--line); border-radius:11px; padding:0 12px; outline:none; background:#fff; }
.system-dialog-field input:focus, .system-dialog-field select:focus { border-color:#93c5fd; box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.system-dialog-error { margin:6px 0 0; color:var(--danger); font-size:12px; }
.system-dialog-actions { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:10px; padding-top:4px; }
.ai-points-dialog { width:min(760px,calc(100vw - 40px)); max-height:calc(100vh - 40px); overflow:auto; }
.ai-points-form { min-width:0; display:grid; gap:16px; }
.ai-points-form .eyebrow { margin:0 0 4px; }
.ai-points-form h2 { margin:0 0 8px; }
.ai-points-original { margin-top:16px; padding:14px; border:1px solid #bfdbfe; border-radius:14px; background:#eff6ff; color:#1e3a8a; }
.ai-points-original-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:10px; }
.ai-points-original-grid span { display:grid; gap:4px; color:#475569; font-size:12px; }
.ai-points-original-grid b { color:#1d4ed8; font-size:21px; }
.ai-points-input-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ai-points-input-grid .system-dialog-field { margin-top:0; }
.ai-points-form textarea { width:100%; min-height:76px; border:1px solid var(--line); border-radius:11px; padding:10px 12px; resize:vertical; outline:none; }
.ai-points-form textarea:focus { border-color:#93c5fd; box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.ai-points-remark { margin-top:0; }
.ai-points-dialog-icon { color:#1d4ed8; background:#dbeafe; }
.ai-points-breakdown { color:var(--muted); white-space:nowrap; }
.operation-log-header { align-items:center; }
.operation-log-filter-grid { display:grid; grid-template-columns:repeat(3,minmax(180px,1fr)); gap:14px; }
.operation-log-filter-grid label { display:grid; gap:7px; color:#374151; font-size:12px; font-weight:800; }
.operation-log-filter-grid .inline-input,.operation-log-filter-grid .inline-select { min-width:0; width:100%; }
.operation-log-actions { margin-top:16px; margin-bottom:0; flex-wrap:wrap; }
.operation-log-table-wrap { overflow-x:auto; }
.operation-log-table { min-width:1050px; }
.operation-log-time { white-space:nowrap; }
.operation-log-detail { min-width:220px; max-width:360px; }
.operation-log-detail summary { color:var(--brand); cursor:pointer; font-weight:800; }
.operation-log-detail pre { max-height:180px; margin:8px 0 0; padding:10px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:#f8fafc; color:#334155; font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space:pre-wrap; word-break:break-word; }
@keyframes toast-in { from { opacity:0; transform:translateX(12px); } to { opacity:1; transform:translateX(0); } }
@keyframes dialog-in { from { opacity:0; transform:translateY(8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.field { display:grid; gap:7px; margin:14px 0; }
.field input { height:40px; border:1px solid var(--line); border-radius:10px; padding:0 12px; }
.field.compact { margin:0; }
.primary { border:0; border-radius:10px; background:var(--brand); color:#fff; padding:10px 16px; font-weight:700; }
.ghost { border:1px solid var(--line); border-radius:10px; background:#fff; color:#374151; padding:8px 12px; font-weight:700; }
.ghost:hover { color:var(--brand); border-color:#bfdbfe; background:var(--brand-soft); }
.danger { border:0; background:transparent; color:var(--danger); }
.layout { height:100vh; min-height:100vh; display:flex; flex-direction:column; overflow:hidden; }
.topbar { height:64px; display:flex; align-items:center; gap:26px; padding:0 24px; background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.brand { min-width:280px; display:flex; align-items:center; gap:12px; }
.brand strong { display:block; }
.brand small { color:var(--muted); }
.topnav { flex:1; display:flex; gap:8px; }
.topnav a { color:#374151; text-decoration:none; padding:9px 16px; border-radius:999px; font-weight:700; }
.topnav a.active,.topnav a:hover { color:var(--brand); background:var(--brand-soft); }
.userbar { display:flex; align-items:center; gap:12px; }
.body { display:flex; flex:1; min-height:0; overflow:hidden; }
.sidebar { width:240px; flex:0 0 240px; background:#fff; border-right:1px solid var(--line); padding:18px 14px; position:sticky; top:64px; height:calc(100vh - 64px); overflow-y:auto; }
.sidebar-title { padding:0 10px 12px; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.08em; }
.side-link { display:flex; justify-content:space-between; padding:11px 12px; margin-bottom:6px; border-radius:10px; color:#374151; text-decoration:none; }
.side-link small { color:var(--muted); }
.side-link.active,.side-link:hover { color:var(--brand); background:var(--brand-soft); }
.main { flex:1; min-width:0; height:calc(100vh - 64px); padding:26px; display:grid; gap:18px; align-content:start; overflow-y:auto; overscroll-behavior:contain; }
.page-header { padding:22px 24px; display:flex; justify-content:space-between; align-items:flex-start; }
.page-header h1 { margin:4px 0 8px; font-size:24px; }
.eyebrow { color:var(--brand) !important; font-size:12px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; margin:0; }
.panel { padding:22px 24px; }
.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.metric { padding:16px 18px; display:flex; align-items:center; gap:14px; min-height:74px; }
.metric strong { display:block; color:var(--brand); font-size:28px; min-width:68px; margin-bottom:0; }
.tag { display:inline-flex; align-items:center; border-radius:999px; padding:4px 10px; background:#fef3c7; color:#92400e; font-size:12px; font-weight:800; }
.toolbar { display:flex; gap:10px; align-items:center; margin-bottom:16px; }
.bcjh-order-actions,.bcjh-order-toolbar,.ai-order-actions,.ai-order-toolbar { flex-wrap:wrap; }
.bcjh-order-actions,.ai-order-actions { padding-bottom:12px; border-bottom:1px solid var(--line); }
.bcjh-order-actions strong,.ai-order-actions strong { margin-right:4px; }
.shipment-toolbar { justify-content:space-between; align-items:flex-start; }
.shipment-toolbar h2 { margin:0 0 5px; }
.shipment-toolbar p { margin:0; }
.shipment-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:12px; }
.shipment-filter-actions { flex-wrap:wrap; }
.shipment-table-wrap { overflow-x:auto; }
.shipment-table { min-width:1120px; }
.shipment-address { min-width:220px; max-width:320px; line-height:1.6; }
.shipment-dialog { width:min(760px,calc(100vw - 40px)); max-height:calc(100vh - 40px); padding:0; border:0; border-radius:18px; background:#fff; color:var(--text); box-shadow:0 30px 90px rgba(15,23,42,.3); overflow:auto; }
.shipment-dialog::backdrop { background:rgba(15,23,42,.58); backdrop-filter:blur(4px); }
.shipment-dialog-form { display:grid; gap:18px; padding:24px; }
.shipment-dialog-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; padding-bottom:16px; border-bottom:1px solid var(--line); }
.shipment-dialog-head h2 { margin:5px 0 0; }
.shipment-order-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:14px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.shipment-order-preview > div { display:grid; gap:4px; }
.shipment-order-preview .wide { grid-column:1 / -1; }
.shipment-order-preview span { color:var(--muted); font-size:12px; }
.shipment-order-preview strong { line-height:1.55; word-break:break-word; }
.shipment-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.shipment-edit-grid .field { margin:0; }
.shipment-dialog-actions { display:flex; justify-content:space-between; gap:14px; align-items:center; padding-top:4px; }
.shipment-dialog-actions .muted { flex:1; }
.operation-log-table td { vertical-align:top; }
.compact-filter { display:flex; gap:7px; align-items:center; color:var(--muted); font-size:12px; font-weight:800; white-space:nowrap; }
.inline-input.date-input { min-width:148px; width:148px; }
button:disabled { opacity:.55; cursor:not-allowed; }
.inline-input,.inline-select { height:40px; min-width:180px; border:1px solid var(--line); border-radius:10px; padding:0 12px; background:#fff; }
.inline-input { min-width:320px; }
.inline-select.full { width:100%; }
.inline-textarea,.code-area { width:100%; min-height:140px; border:1px solid var(--line); border-radius:10px; padding:12px; background:#fff; resize:vertical; }
.code-area { margin-top:14px; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#047857; background:#f8fffb; }
.security-toolbar { justify-content:space-between; }
.security-toolbar > div:first-child h2 { margin:0 0 5px; }
.security-toolbar > div:first-child p { margin:0; }
.security-toolbar > div:last-child { display:flex; gap:12px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.security-log-grid { display:grid; grid-template-columns:repeat(2,minmax(420px,1fr)); gap:16px; }
.security-log-grid.single { grid-template-columns:minmax(0,1fr); }
.log-viewer { min-height:360px; display:flex; flex-direction:column; }
.log-viewer-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:10px; }
.log-viewer-head h2 { margin:0 0 4px; }
.log-viewer-head p { margin:0; color:var(--muted); font-size:13px; }
.log-path { margin:0; padding:8px 10px; border:1px dashed #cbd5e1; border-radius:10px; background:#f8fafc; color:#475569; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:12px; word-break:break-all; }
.log-code { flex:1; min-height:260px; max-height:420px; overflow:auto; resize:vertical; white-space:pre-wrap; word-break:break-word; }
.runtime-log-panel { height:calc(100vh - 116px); min-height:560px; display:flex; flex-direction:column; overflow:hidden; }
.runtime-log-toolbar { justify-content:space-between; align-items:flex-start; flex:0 0 auto; margin-bottom:14px; }
.runtime-log-toolbar h2,.runtime-log-viewer-head h2 { margin:0 0 5px; }
.runtime-log-toolbar p { margin:0; color:var(--muted); }
.runtime-log-header-actions { display:flex; gap:10px; align-items:center; flex:0 0 auto; }
.runtime-log-policy { display:inline-flex; gap:7px; align-items:center; color:#0f766e; background:#ecfdf5; border:1px solid #a7f3d0; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:900; white-space:nowrap; }
.runtime-log-policy i { width:7px; height:7px; border-radius:50%; background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.14); }
.runtime-log-layout { display:grid; grid-template-columns:286px minmax(0,1fr); gap:14px; flex:1; min-height:0; overflow:hidden; }
.runtime-container-panel,.runtime-log-viewer { border:1px solid var(--line); border-radius:14px; background:#fbfdff; padding:12px; min-height:0; }
.runtime-container-panel { display:flex; flex-direction:column; }
.runtime-container-title { display:flex; justify-content:space-between; gap:8px; align-items:center; margin-bottom:12px; }
.runtime-container-list { display:grid; gap:9px; overflow:auto; align-content:start; }
.runtime-container-item { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 8px; text-align:left; border:1px solid var(--line); border-radius:11px; padding:10px; background:#fff; color:var(--text); }
.runtime-container-item:hover,.runtime-container-item.active { border-color:#93c5fd; background:var(--brand-soft); box-shadow:0 8px 20px rgba(37,99,235,.08); }
.runtime-container-main { min-width:0; display:grid; gap:4px; }
.runtime-container-main strong,.runtime-container-main small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.runtime-container-item > small { grid-column:1 / -1; color:var(--muted); }
.runtime-container-state { align-self:start; border-radius:999px; padding:3px 8px; font-size:11px; font-weight:900; }
.runtime-container-state.ok { color:#166534; background:#dcfce7; }
.runtime-container-state.off { color:#991b1b; background:#fee2e2; }
.runtime-container-empty { padding:12px; border:1px dashed var(--line); border-radius:10px; line-height:1.7; }
.runtime-log-viewer { display:flex; flex-direction:column; background:#fff; overflow:hidden; }
.runtime-log-viewer-head { flex:0 0 auto; }
.runtime-log-identity { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; min-width:0; }
.runtime-log-identity > div { min-width:0; }
.runtime-log-identity p { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.runtime-log-controls { display:flex; justify-content:space-between; gap:12px; align-items:center; margin:10px -12px 0; padding:9px 12px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#f8fafc; flex:0 0 auto; }
.runtime-log-actions { display:flex; gap:10px; align-items:center; }
.runtime-log-actions label { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; font-weight:800; }
.runtime-log-actions .inline-select { min-width:142px; }
.runtime-log-actions button { flex:0 0 auto; white-space:nowrap; }
.runtime-log-code { flex:1; min-height:0; max-height:none; margin-top:10px; overflow:auto; resize:none; white-space:pre; word-break:normal; color:#d1fae5; background:#07120f; border-color:#1f3d34; line-height:1.65; font-size:12px; }
.data-table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.data-table th,.data-table td { padding:12px 14px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.data-table th { color:#374151; background:#f9fafb; font-size:13px; }
.data-table tr:last-child td { border-bottom:0; }
.data-table td:last-child { min-width:260px; display:flex; gap:8px; flex-wrap:wrap; }
.pagination-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fbfdff; color:#374151; flex-wrap:wrap; }
.pagination-summary { color:var(--muted); font-size:13px; font-weight:700; }
.pagination-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pagination-controls button { min-width:62px; }
.pagination-controls button:disabled { opacity:.45; cursor:not-allowed; }
.pagination-controls input { width:64px; height:36px; border:1px solid var(--line); border-radius:9px; text-align:center; }
.pagination-controls select { height:36px; border:1px solid var(--line); border-radius:9px; background:#fff; padding:0 8px; }
.admin-form { display:grid; gap:18px; }
.form-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.grant-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.grant-block { border:1px solid var(--line); border-radius:14px; padding:14px; background:#fbfdff; }
.grant-block strong { display:block; margin-bottom:10px; }
.grant-block p { margin:8px 0; }
.check-grid { display:grid; gap:7px; margin-top:10px; }
.check { display:flex; align-items:center; gap:8px; color:#374151; }
.check small { color:var(--muted); margin-left:auto; font-size:11px; }
.module-check { font-weight:800; color:var(--brand); }
.chip { display:inline-flex; margin:2px 4px 2px 0; border-radius:999px; padding:3px 8px; background:var(--brand-soft); color:var(--brand); font-size:12px; font-weight:800; }
.status { display:inline-flex; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:900; }
.status.ok { background:#dcfce7; color:#166534; }
.status.off { background:#fee2e2; color:#991b1b; }
.chart-placeholder { min-height:260px; display:grid; place-items:center; border:1px dashed #bfdbfe; border-radius:14px; background:#f8fbff; color:var(--muted); font-weight:800; }
.slice-list { display:flex; gap:8px; flex-wrap:wrap; align-items:center; min-height:42px; }
.analytics-visual { padding:22px 24px; }
.analytics-visual-toolbar { display:flex; justify-content:space-between; gap:18px; align-items:center; margin-bottom:20px; }
.analytics-title-line { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.analytics-visual-toolbar strong { display:block; font-size:20px; margin-bottom:4px; }
.analytics-visual-toolbar span { color:var(--muted); font-size:13px; }
.analytics-range-control { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.analytics-range-control label { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; font-weight:800; }
.analytics-range-control input { height:40px; border:1px solid var(--line); border-radius:10px; padding:0 12px; background:#fff; color:#374151; }
.analytics-chart-grid { display:grid; grid-template-columns:minmax(420px,.92fr) minmax(560px,1.08fr); gap:18px; align-items:stretch; }
.chart-card { border:1px solid var(--line); border-radius:18px; padding:20px; background:linear-gradient(180deg,#fff,#fbfdff); box-shadow:0 10px 26px rgba(17,24,39,.04); min-height:410px; }
.traffic-site-overview-panel { margin:18px 0; padding:18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,#fff,#fbfdff); }
.traffic-site-overviews { display:grid; grid-template-columns:repeat(3,minmax(260px,1fr)); gap:14px; }
.traffic-site-card { border:1px solid var(--line); border-radius:16px; padding:16px; background:#fff; box-shadow:0 8px 20px rgba(17,24,39,.04); }
.traffic-site-card-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; margin-bottom:12px; }
.traffic-site-card-head strong { color:#111827; font-size:16px; }
.traffic-site-card-head span { color:var(--muted); font-size:12px; font-weight:700; }
.traffic-site-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.traffic-site-metrics div { border:1px solid #eef2f7; border-radius:12px; padding:10px; background:#fbfdff; }
.traffic-site-metrics strong { display:block; color:var(--brand); font-size:20px; }
.traffic-site-metrics span { color:var(--muted); font-size:12px; font-weight:700; }
.analytics-pie-stack { display:grid; gap:18px; align-content:start; }
.chart-card-section + .chart-card-section { border-top:1px solid var(--line); padding-top:16px; }
.chart-card-title { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:12px; }
.chart-card-title.compact { margin-bottom:8px; }
.chart-card-title h2 { margin:0 0 6px; font-size:20px; }
.chart-card-title.compact h2 { font-size:18px; }
.chart-card-title p { margin:0; color:var(--muted); font-size:13px; }
.line-chart,.donut-chart { min-height:320px; }
.donut-chart.compact { min-height:210px; }
.chart-legend { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin:4px 0 8px; color:#374151; font-weight:700; }
.chart-legend span { display:inline-flex; align-items:center; gap:6px; font-size:13px; }
.chart-legend i,.legend-dot { width:12px; height:12px; display:inline-block; border-radius:999px; }
.trend-svg { width:100%; height:318px; overflow:visible; }
.axis-line { stroke:#cbd5e1; stroke-width:1.2; }
.chart-grid-line { stroke:#e5e7eb; stroke-width:1; }
.axis-label { fill:#475569; font-size:12px; }
.axis-line.money-axis { stroke:#a5f3fc; }
.axis-label.money-axis { fill:#0e7490; stroke:none; }
.donut-layout { display:grid; grid-template-columns:190px minmax(220px,1fr); gap:18px; align-items:center; }
.credit-chart-slot .donut-layout { grid-template-columns:150px minmax(200px,1fr); gap:14px; }
.donut-svg { width:184px; height:184px; overflow:visible; }
.credit-chart-slot .donut-svg { width:150px; height:150px; }
.donut-total-label { fill:#6b7280; font-size:12px; font-weight:800; }
.donut-total-value { fill:#111827; font-size:18px; font-weight:900; }
.donut-table { width:100%; border-collapse:collapse; }
.donut-table th,.donut-table td { padding:10px 8px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
.credit-chart-slot .donut-table th,.credit-chart-slot .donut-table td { padding:7px 6px; }
.donut-table th { color:#6b7280; font-size:12px; }
.donut-table td:first-child { display:flex; gap:8px; align-items:center; white-space:normal; color:#111827; font-weight:800; }
code { color:#1d4ed8; background:#eff6ff; border-radius:6px; padding:2px 5px; }
.official-content-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.official-preview-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.official-content-section {
  border: 1px solid #dce5f0;
  border-radius: 14px;
  margin: 18px 0;
  padding: 18px;
}

.official-content-section legend {
  color: #18324f;
  font-size: 16px;
  font-weight: 700;
  padding: 0 8px;
}

.official-content-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.official-content-field {
  min-width: 0;
}

.official-content-textarea {
  min-height: 112px;
}

.official-content-upload {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.official-content-upload input[type="file"] {
  max-width: 320px;
}

.official-advanced-content > summary {
  color: #18324f;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .official-content-heading {
    display: block;
  }

  .official-preview-link {
    display: inline-block;
    margin-top: 12px;
  }

  .official-content-grid {
    grid-template-columns: 1fr;
  }
}

.official-collection {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.official-collection-heading,
.official-collection-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.official-collection-heading > div {
  display: grid;
  gap: 4px;
}

.official-collection-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.official-collection-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.official-collection-item .official-content-grid {
  margin-top: 12px;
}

.official-collection-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
}

.compact-button {
  padding: 7px 10px;
}

.competition-operation-section,
.competition-operation-placeholder {
  scroll-margin-top: 24px;
}

.official-resource-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.official-resource-upload-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.official-resource-upload-card h3,
.official-resource-upload-card p {
  margin: 0;
}

.official-resource-upload-card button {
  justify-self: start;
}

.official-resource-image-selection {
  display: grid;
  gap: 8px;
  min-height: 42px;
}

.official-resource-image-selection > p {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.official-resource-selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.official-resource-selected-file span {
  display: grid;
  min-width: 0;
}

.official-resource-selected-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-resource-selected-file small {
  color: var(--muted);
}

.official-course-upload-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 8px;
}

.official-course-upload-grid button {
  margin-bottom: 1px;
}

.official-course-media-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 18px;
}

.official-course-media-preview article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.official-course-media-preview article > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.official-course-media-preview video,
.official-course-media-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #0b1220;
  object-fit: contain;
}

.official-course-media-preview img {
  object-fit: cover;
}

.official-course-media-preview [hidden] {
  display: none;
}

@media (max-width: 900px) {
  .official-collection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .official-course-upload-grid {
    grid-template-columns: 1fr;
  }

  .official-course-media-preview {
    grid-template-columns: 1fr;
  }

  .official-resource-upload-grid {
    grid-template-columns: 1fr;
  }
}

.ai-competition-submission-panel {
  min-width: 0;
}

.ai-competition-submission-toolbar {
  align-items: flex-start;
  justify-content: space-between;
}

.ai-competition-submission-toolbar h2,
.ai-competition-submission-toolbar p {
  margin: 0;
}

.ai-competition-submission-toolbar p {
  margin-top: 6px;
}

.ai-competition-submission-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ai-competition-submission-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ai-competition-submission-filters input,
.ai-competition-submission-filters select {
  width: 100%;
}

.ai-competition-submission-actions {
  margin: 14px 0;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 150px;
}

.ai-competition-submission-table-wrap {
  overflow-x: auto;
}

.ai-competition-list-cover {
  width: 72px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.ai-competition-detail-page {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.ai-competition-detail-page-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.ai-competition-detail-page-head h1,
.ai-competition-detail-page-head p {
  margin: 0;
}

.ai-competition-back-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.ai-competition-detail-body {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.ai-competition-detail-hero,
.ai-competition-detail-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.ai-competition-detail-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ai-competition-detail-hero img,
.ai-competition-cover-placeholder {
  width: 160px;
  height: 126px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.ai-competition-cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.ai-competition-detail-hero h3 {
  margin: 10px 0;
  font-size: 24px;
}

.ai-competition-detail-section h3 {
  margin: 0 0 14px;
}

.ai-competition-detail-section h4 {
  margin: 16px 0 8px;
}

.ai-competition-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-competition-detail-grid > div,
.ai-competition-submit-time {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.ai-competition-detail-grid span,
.ai-competition-detail-text span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ai-competition-detail-grid code,
.ai-competition-resource-list code {
  overflow-wrap: anywhere;
}

.ai-competition-detail-text {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
}

.ai-competition-detail-text p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.ai-competition-model-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.ai-competition-model-download {
  min-width: 180px;
}

.ai-competition-submit-time .ai-competition-resubmission {
  justify-self: start;
  margin-top: 4px;
}

.ai-competition-resubmission {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.ai-competition-resource-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-competition-resource-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.ai-competition-profile-json summary {
  cursor: pointer;
  font-weight: 800;
}

.ai-competition-profile-json pre {
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-review-page-header { align-items: center; }
.ai-review-page-header h1 { margin-bottom: 6px; }
.ai-review-settings-panel { display: grid; gap: 18px; }
.ai-review-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; }
.ai-review-settings-grid label,
.ai-review-filter-row label { display: grid; gap: 7px; color: #374151; font-size: 12px; font-weight: 800; }
.ai-review-status-row { display: flex; align-items: center; gap: 12px; min-height: 34px; color: #475569; }
.ai-review-status-row strong { min-width: 76px; text-align: center; }
.ai-review-settings-actions { margin: 0; }
.ai-expert-review-panel { display: grid; gap: 18px; }
.ai-expert-review-toolbar { align-items: flex-end; justify-content: space-between; margin: 0; }
.ai-review-filter-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ai-review-filter-row label { min-width: 220px; }
.ai-review-table-wrap { overflow-x: auto; }
.ai-expert-review-table { min-width: 640px; }
.ai-review-detail { border-top: 1px solid var(--line); padding-top: 22px; }
.ai-review-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ai-review-detail-head h2 { margin: 0 0 6px; }
.ai-review-average { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.ai-review-detail-content { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(380px, 1.1fr); gap: 22px; margin-top: 18px; }
.ai-review-work-info { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 16px; align-items: start; min-width: 0; }
.ai-review-detail-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #f8fafc; display: grid; place-items: center; text-align: center; }
.ai-review-work-copy { min-width: 0; color: #475569; line-height: 1.65; }
.ai-review-work-copy p { margin: 0 0 10px; overflow-wrap: anywhere; }
.ai-review-work-copy strong { color: #111827; }
.ai-review-design-spec { display: grid; gap: 8px; margin: 0 0 12px; }
.ai-review-design-spec div { display: grid; grid-template-columns: minmax(90px, .35fr) 1fr; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #f1f5f9; }
.ai-review-design-spec dt { color: #64748b; font-weight: 800; }
.ai-review-design-spec dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .ai-review-settings-grid { grid-template-columns: 1fr; }
  .ai-review-detail-content { grid-template-columns: 1fr; }
  .ai-review-work-info { grid-template-columns: minmax(180px, 260px) 1fr; }
}

@media (max-width: 640px) {
  .ai-review-work-info { grid-template-columns: 1fr; }
  .ai-review-filter-row label { min-width: 100%; }
  .ai-review-detail-head { flex-direction: column; }
}

@media (max-width: 1000px) {
  .ai-competition-submission-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ai-competition-submission-filters,
  .ai-competition-detail-grid,
  .ai-competition-detail-hero {
    grid-template-columns: 1fr;
  }

  .ai-competition-detail-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-competition-detail-hero img,
  .ai-competition-cover-placeholder {
    width: 100%;
    height: 220px;
  }

  .ai-competition-resource-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}
.ai-expert-work-page { color: #243047; background: #fff; padding: 24px; border-radius: 16px; }
body.expert-review-document { min-width: 0; background: #fff; overflow: auto; }
.ai-expert-document-main { max-width: 1440px; margin: 0 auto; padding: 24px; }
.ai-expert-document-main .ai-expert-model { height: clamp(360px, 38vw, 560px); }
@media (max-width: 640px) { .ai-expert-document-main { padding: 0; } .ai-expert-document-main .ai-expert-model { height: 420px; } }
.ai-expert-back { display: inline-flex; color: #56657c; text-decoration: none; margin-bottom: 24px; }
.ai-expert-work-head { padding-bottom: 24px; border-bottom: 1px solid #e7ebf1; margin-bottom: 24px; }
.ai-expert-work-head h1 { font-size: 30px; line-height: 1.3; margin: 8px 0 16px; overflow-wrap: anywhere; }
.ai-expert-work-head .eyebrow span { margin-left: 12px; }
.ai-expert-work-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.ai-expert-work-page .panel { background: #fff; border: 1px solid #e4e9f0; box-shadow: none; padding: 20px; min-width: 0; }
.ai-expert-work-page h2 { font-size: 17px; margin: 0 0 16px; }
.ai-expert-work-page button { font: inherit; }
.ai-expert-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ai-expert-section-head h2 { margin: 0; }
.ai-expert-model { height: clamp(420px, 45vw, 680px); position: relative; background: #f7f9fb; border: 1px solid #edf0f5; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ai-expert-model > .unified-model-viewer { width: 100%; height: 100%; }
.ai-expert-model-foot { margin-top: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 12px; }
.ai-expert-work-main { display: grid; gap: 20px; min-width: 0; }
.ai-expert-preview-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.ai-expert-preview-gallery figure { margin: 0; min-width: 0; }
.ai-expert-preview-gallery img { width: 100%; height: clamp(140px, 16vw, 200px); display: block; object-fit: contain; border: 1px solid #e7ebf1; border-radius: 8px; background: #f8fafc; }
.ai-expert-preview-gallery figcaption { margin-top: 6px; font-size: 12px; color: #718096; overflow-wrap: anywhere; }
.ai-expert-preview-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: zoom-in; }
.ai-expert-preview-open:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
body.ai-expert-image-open { overflow: hidden; }
.ai-expert-image-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; color: #fff; }
.ai-expert-image-dialog[open] { display: flex; align-items: center; justify-content: center; }
.ai-expert-image-dialog::backdrop { background: rgba(15, 23, 42, .92); }
.ai-expert-image-frame { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; width: min(1200px, 100%); height: 100%; }
.ai-expert-image-frame header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ai-expert-image-frame h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.ai-expert-image-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; color: #0f172a; font-size: 32px; line-height: 1; }
.ai-expert-image-close:hover { background: #e2e8f0; }
.ai-expert-image-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.ai-expert-image-content { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.ai-expert-image-content img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.ai-expert-work-sections { display: grid; gap: 20px; }
.ai-expert-work-sections:empty { display: none; }
.ai-expert-copy, .ai-expert-work-page .ai-review-design-spec dd { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.ai-expert-documents { display: grid; gap: 12px; }
.ai-expert-documents > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.ai-expert-documents > div:last-child { border-bottom: 0; }
.ai-expert-documents span { overflow-wrap: anywhere; }
.ai-expert-documents button { flex-shrink: 0; }
.public-vote-scores-panel { margin-top: 24px; }
.public-score-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.public-score-summary > div { padding: 18px; border: 1px solid #dce8eb; background: #f5fafb; border-radius: 12px; }
.public-score-summary span { display: block; color: #526477; font-size: 13px; }
.public-score-summary strong { display: block; margin-top: 8px; color: #0c6171; font-size: 25px; font-variant-numeric: tabular-nums; }
.public-score-formula { line-height: 1.8; }
.public-score-table { min-width: 1160px; }
.public-score-table td { vertical-align: top; max-width: 280px; overflow-wrap: anywhere; }
.public-score-table td:last-child { display: table-cell; min-width: 130px; }
.public-score-table .public-score-value { font-weight: 700; font-size: 19px; color: #0c6171; font-variant-numeric: tabular-nums; }
.public-score-table small { display: block; max-width: 220px; white-space: pre-wrap; }
@media (max-width: 960px) { .public-score-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .public-score-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .ai-expert-model { height: 520px; } }
@media (max-width: 640px) { .ai-expert-work-page { padding: 16px; } .ai-expert-model { height: 420px; } .ai-expert-work-head h1 { font-size: 24px; } }
/* 壁材京华 灵气（小程序积分）调整弹窗 */
.bcjh-aura-dialog { width:min(560px,calc(100vw - 40px)); max-height:calc(100vh - 40px); overflow:auto; }
.bcjh-aura-dialog-icon { color:#0f766e; background:#ccfbf1; }
.bcjh-aura-form { min-width:0; display:grid; gap:16px; }
.bcjh-aura-form .eyebrow { margin:0 0 4px; }
.bcjh-aura-form h2 { margin:0 0 8px; }
.bcjh-aura-current { display:flex; align-items:baseline; gap:10px; margin-top:14px; padding:12px 14px; border:1px solid #99f6e4; border-radius:12px; background:#f0fdfa; color:#115e59; font-size:13px; }
.bcjh-aura-current b { color:#0f766e; font-size:22px; }
.bcjh-aura-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.bcjh-aura-grid .system-dialog-field { margin-top:14px; }
.bcjh-aura-form textarea { width:100%; min-height:70px; border:1px solid var(--line); border-radius:11px; padding:10px 12px; resize:vertical; outline:none; font:inherit; }
.bcjh-aura-form textarea:focus { border-color:#93c5fd; box-shadow:0 0 0 3px rgba(37,99,235,.14); }
.bcjh-aura-preview { margin:12px 0 0; color:#0f766e; font-size:13px; font-weight:700; }
.bcjh-aura-preview.warn { color:#b45309; }
