:root {
  --bg: #070b16;
  --bg-2: #0c1322;
  --panel: rgba(20, 30, 52, 0.72);
  --panel-solid: #141e34;
  --border: rgba(120, 140, 190, 0.16);
  --border-strong: rgba(120, 140, 190, 0.32);
  --text: #eaf0fb;
  --text-dim: #8a98b5;
  --text-faint: #5d6b88;
  --primary: #5b8cff;
  --primary-2: #9a6bff;
  --accent: #2fe0c0;
  --danger: #ff5b6e;
  --warn: #ffb547;
  --ok: #2fd07a;
  --grad: linear-gradient(135deg, #5b8cff 0%, #9a6bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,140,255,0.18), rgba(154,107,255,0.14));
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* ============================================================
 * 配色方案（运营部门）：html[data-theme="x"] 切换
 * 默认 = aurora（蓝紫极光，当前）
 * ============================================================ */

/* 方案A：Aurora 极光蓝紫（默认，科技增长感） */
html[data-theme="aurora"] {
  --bg: #070b16; --bg-2: #0c1322;
  --panel: rgba(20, 30, 52, 0.72); --border: rgba(120,140,190,0.16); --border-strong: rgba(120,140,190,0.32);
  --text: #eaf0fb; --text-dim: #8a98b5; --text-faint: #5d6b88;
  --primary: #5b8cff; --primary-2: #9a6bff; --accent: #2fe0c0;
  --grad: linear-gradient(135deg, #5b8cff 0%, #9a6bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,140,255,0.18), rgba(154,107,255,0.14));
}

/* 方案B：Sunset 暖橙运营（活力/团建/增长燃感） */
html[data-theme="sunset"] {
  --bg: #0a0a0a; --bg-2: #131313;
  --panel: rgba(28, 28, 28, 0.78); --border: rgba(255,140,60,0.18); --border-strong: rgba(255,140,60,0.38);
  --text: #fff6ef; --text-dim: #d8a888; --text-faint: #a87a5c;
  --primary: #ff7a18; --primary-2: #ff4d2e; --accent: #ffb347;
  --grad: linear-gradient(135deg, #ff7a18 0%, #ff4d2e 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,122,24,0.18), rgba(255,77,46,0.14));
}

/* 方案C：Mint 青绿数据（清爽/数据/专业冷静） */
html[data-theme="mint"] {
  --bg: #f3ede1; --bg-2: #e9e1d2;
  --panel: rgba(255, 253, 248, 0.86); --border: rgba(15,120,110,0.16); --border-strong: rgba(15,120,110,0.34);
  --text: #1d2b28; --text-dim: #4d645e; --text-faint: #7c908a;
  --primary: #0fa3a3; --primary-2: #1ec8c8; --accent: #0d7d6b;
  --grad: linear-gradient(135deg, #0fa3a3 0%, #1ec8c8 100%);
  --grad-soft: linear-gradient(135deg, rgba(15,163,163,0.14), rgba(30,200,200,0.10));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }

/* ============ 分享码门 ============ */
.gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.gate-bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(800px 480px at 18% 12%, rgba(91,140,255,0.22), transparent 60%),
    radial-gradient(680px 480px at 86% 88%, rgba(154,107,255,0.20), transparent 60%),
    radial-gradient(500px 400px at 70% 20%, rgba(47,224,192,0.10), transparent 55%),
    var(--bg);
}
.gate-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120,140,190,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120,140,190,0.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.gate-card {
  position: relative; z-index: 1; width: 390px; max-width: 90vw;
  background: var(--panel); backdrop-filter: blur(20px); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 44px 34px; text-align: center; box-shadow: var(--shadow);
  animation: pop .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.gate-logo { font-size: 44px; margin-bottom: 10px; filter: drop-shadow(0 6px 16px rgba(91,140,255,.4)); }
.gate-title { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.gate-sub { color: var(--text-dim); font-size: 13px; margin: 8px 0 26px; }
.gate-form { display: flex; gap: 10px; }
.gate-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text); border-radius: 12px; padding: 13px 16px; font-size: 15px; letter-spacing: 2px; outline: none; transition: .2s;
}
.gate-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.gate-btn {
  background: var(--grad); color: #fff; border: none; border-radius: 12px; padding: 0 24px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: .2s; box-shadow: 0 8px 20px rgba(91,140,255,.35);
}
.gate-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gate-error { color: var(--danger); font-size: 13px; margin-top: 14px; min-height: 18px; }
.gate-hint { color: var(--text-faint); font-size: 12px; margin-top: 6px; }

/* ============ 布局 ============ */
.app { display: flex; height: 100vh; }

.sidebar {
  width: 248px; flex-shrink: 0; position: relative;
  background: var(--bg-2);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(91,140,255,.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.brand-sub { color: var(--text-faint); font-size: 11px; }

.nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; background: transparent; border: 1px solid transparent;
  color: var(--text-dim); padding: 13px 14px; border-radius: 12px; font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left; transition: .18s; width: 100%; position: relative;
}
.nav-item span:first-child { font-size: 18px; }
.nav-item:hover { background: rgba(91,140,255,0.08); color: var(--text); }
.nav-item.active {
  background: var(--grad-soft); color: #fff; border-color: rgba(91,140,255,0.4);
  box-shadow: inset 0 0 0 1px rgba(91,140,255,0.15);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--grad);
}
.nav-badge {
  margin-left: auto; background: var(--danger); color: #fff; font-size: 11px;
  padding: 1px 8px; border-radius: 10px; font-weight: 800; box-shadow: 0 0 0 3px rgba(255,91,110,0.18);
}

.sidebar-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 2px; border-top: 1px solid var(--border); }
.sf-user { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; }
.sf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,208,122,0.18); }
.logout-btn { background: transparent; border: 1px solid var(--border-strong); color: var(--text-dim); border-radius: 9px; padding: 6px 13px; cursor: pointer; font-size: 12px; transition: .18s; }
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

/* 配色切换器 */
.theme-switch { display: block; padding: 14px 10px 6px; border-top: 1px solid var(--border); margin-top: 8px; }
.ts-label { font-size: 12px; color: var(--text-faint); display: block; margin-bottom: 8px; }
.ts-dots { display: flex; flex-direction: column; gap: 6px; }
.ts-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 13px; padding: 8px 10px; border-radius: 10px;
  transition: .18s; font-family: inherit;
}
.ts-btn:hover { border-color: var(--border-strong); color: var(--text); transform: translateX(2px); }
.ts-btn.active { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 12%, var(--panel)); }
.ts-dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.ts-aurora .ts-dot { background: linear-gradient(135deg, #5b8cff, #9a6bff); }
.ts-sunset .ts-dot { background: linear-gradient(135deg, #ff8a4c, #ff5e7a); }
.ts-mint   .ts-dot { background: linear-gradient(135deg, #21d4a8, #2fb8ff); }
.open-browser { display: block; margin: 2px 10px 4px; font-size: 11px; color: var(--text-faint); text-decoration: none; text-align: center; padding: 6px; border: 1px dashed var(--border); border-radius: 8px; transition: .18s; }
.open-browser:hover { color: var(--accent); border-color: var(--border-strong); }

/* ============ 主区 ============ */
.main { flex: 1; overflow-y: auto; padding: 0 36px 48px; position: relative; }
.main::before {
  content: ""; position: fixed; top: -120px; right: -80px; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(154,107,255,0.16), transparent 70%);
}
.main::after {
  content: ""; position: fixed; bottom: -140px; left: 220px; width: 380px; height: 380px; pointer-events: none;
  background: radial-gradient(circle, rgba(91,140,255,0.13), transparent 70%);
}

/* ---------- 工作台主区 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.main::before, .main::after { display: none; }

/* 顶栏（固定条，始终显示当前模块名 + 独立打开） */
.topbar {
  height: 60px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.topbar h2 { font-size: 16px; font-weight: 800; }
.topbar-sub { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); display: inline-block; }
.live-text { font-size: 12px; color: var(--text-dim); }
.open-btn {
  font-size: 12px; color: var(--text-dim); text-decoration: none; border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 7px 13px; transition: .16s;
}
.open-btn:hover { color: #fff; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }

/* 视图容器 */
#views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.view.hidden { display: none; }
.view iframe { width: 100%; height: 100%; border: none; background: #fff; flex: 1; }

/* 文化墙原生模块滚动容器 */
.culture-scroll { overflow-y: auto; padding: 28px 30px; background: var(--bg); }
html[data-theme="mint"] .culture-scroll { background: #f3ede1; }

/* nav 图标 */
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; flex: 0 0 auto; }

/* 浅色（米）主题下，门禁/表单/弹窗边框转深以保证可读 */
html[data-theme="mint"] .gate-input, html[data-theme="mint"] .fin { border-color: var(--border-strong); }
html[data-theme="mint"] .sidebar { background: color-mix(in srgb, var(--bg-2) 70%, #fff); }
html[data-theme="mint"] .modal { background: #fffdf8; }

/* ---------- Topbar（新版固定条样式见上方 185 行附近） ---------- */
.topbar-right { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,208,122,0.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ============ 通用卡片 ============ */
.grid { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.panel {
  background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: .2s;
}
.panel:hover { border-color: var(--border-strong); }
.panel h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.kpi { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.kpi-sub { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

/* ============ 项目看板 ============ */
.proj-card { display: flex; flex-direction: column; gap: 10px; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.proj-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
.proj-desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.tag-进行中 { background: rgba(91,140,255,0.2); color: #9ab4ff; }
.tag-已上线 { background: rgba(47,208,122,0.2); color: #6ee7a8; }
.tag-规划中 { background: rgba(138,152,181,0.18); color: #aab6cf; }
.tag-已延期 { background: rgba(255,91,110,0.2); color: #ff97a4; }
.tag-高 { background: rgba(255,91,110,0.16); color: #ff97a4; }
.tag-中 { background: rgba(255,181,71,0.16); color: #ffce8a; }
.tag-低 { background: rgba(138,152,181,0.16); color: #aab6cf; }
.progress { height: 8px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.proj-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }

/* ============ 内容分发 ============ */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-dim); font-weight: 600; font-size: 12px; }
.table tbody tr { transition: .15s; }
.table tbody tr:hover { background: rgba(91,140,255,0.06); }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.pill-已发布 { background: rgba(47,208,122,0.16); color: #6ee7a8; }
.pill-草稿 { background: rgba(138,152,181,0.16); color: #aab6cf; }
.mini-bar { height: 6px; background: var(--bg-2); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.mini-bar > i { display: block; height: 100%; background: var(--accent); }

/* ============ 异常管理器 ============ */
.alert-card { border-left: 3px solid var(--border); }
.alert-card.严重 { border-left-color: var(--danger); }
.alert-card.警告 { border-left-color: var(--warn); }
.alert-card.正常 { border-left-color: var(--ok); }
.alert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.alert-metric { font-size: 15px; font-weight: 700; }
.alert-val { font-weight: 800; }
.alert-val.严重 { color: var(--danger); }
.alert-val.警告 { color: var(--warn); }
.alert-val.正常 { color: var(--ok); }
.alert-desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; margin: 6px 0; }
.alert-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.alert-actions { margin-top: 10px; display: flex; gap: 8px; }
.btn-sm { border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: .15s; }
.btn-sm:hover { border-color: var(--primary); }
.btn-sm.done { background: rgba(47,208,122,0.16); border-color: var(--ok); color: #6ee7a8; }

/* ============ 内嵌模块 ============ */
.embed-wrap { height: calc(100vh - 200px); min-height: 480px; }
.embed-frame { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.embed-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.embed-name { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.embed-open { font-size: 13px; color: var(--accent); text-decoration: none; border: 1px solid var(--border-strong); border-radius: 8px; padding: 5px 12px; transition: all .15s; }
.embed-open:hover { background: var(--bg-2); border-color: var(--accent); }
.embed-placeholder {
  height: calc(100vh - 200px); min-height: 420px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius); background: var(--panel); padding: 30px;
}
.ph-icon { font-size: 46px; margin-bottom: 14px; opacity: .8; }
.ph-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.ph-desc { color: var(--text-dim); font-size: 13px; margin-bottom: 16px; }
.ph-tip { font-size: 12.5px; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; line-height: 1.6; }
.ph-tip code { color: var(--accent); background: rgba(47,224,192,0.1); padding: 1px 6px; border-radius: 5px; }

/* ============ 文化墙 ============ */
.slogan-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.slogan {
  background: var(--grad-soft); border: 1px solid rgba(91,140,255,0.3); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; font-weight: 700; flex: 1; min-width: 200px; text-align: center;
}
.member-card { text-align: center; }
.member-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(91,140,255,.35);
}
.member-name { font-weight: 700; font-size: 15px; }
.member-role { color: var(--text-dim); font-size: 12px; margin: 3px 0 8px; }
.member-tag { font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.member-quote { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; font-style: italic; }
.activity-card .act-date { color: var(--primary); font-size: 12px; font-weight: 600; }
.activity-card .act-title { font-weight: 700; margin: 4px 0 6px; }
.activity-card .act-desc { color: var(--text-dim); font-size: 12.5px; }

/* 团建回忆图片墙 */
.photo-wall { display: flex; flex-direction: column; gap: 22px; }
.photo-group { background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.photo-group-head { grid-column: 1 / -1; font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.photo-group-date { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.photo-group { display: grid; grid-template-columns: 1fr; gap: 14px; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; }
.photo-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: .3s; }
.photo-item:hover img { transform: scale(1.05); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72)); }
.photo-empty { color: var(--text-dim); font-size: 13px; background: var(--panel); border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 24px; text-align: center; }
.photo-empty code { color: var(--accent); background: rgba(47,224,192,0.1); padding: 1px 6px; border-radius: 5px; }
@media (min-width: 861px) { .photo-group { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,7,14,0.92); display: flex; align-items: center; justify-content: center; padding: 40px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .lb-cap { position: absolute; bottom: 30px; color: #fff; font-size: 14px; }
.lightbox .lb-close { position: absolute; top: 24px; right: 30px; font-size: 30px; color: #fff; cursor: pointer; opacity: .8; }

.section-label { font-size: 13px; color: var(--text-dim); margin: 6px 0 12px; font-weight: 600; letter-spacing: .5px; }

/* 文化墙操作条 + 上传弹窗 */
.culture-bar { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; flex-wrap: wrap; }
.btn-new { background: var(--grad); color: #fff; border: none; border-radius: 11px; padding: 11px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .2s; box-shadow: 0 8px 20px rgba(91,140,255,.3); }
.btn-new:hover { filter: brightness(1.08); transform: translateY(-1px); }
.culture-tip { color: var(--text-faint); font-size: 12.5px; }
.modal-mask { position: fixed; inset: 0; z-index: 300; background: rgba(4,7,14,0.78); display: none; align-items: center; justify-content: center; padding: 24px; animation: fade .25s; }
.modal { width: 480px; max-width: 94vw; background: var(--panel-solid, #141e34); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--border); }
.modal-x { cursor: pointer; font-size: 24px; color: var(--text-dim); line-height: 1; }
.modal-x:hover { color: var(--danger); }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.fin { background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text); border-radius: 10px; padding: 11px 14px; font-size: 14px; outline: none; transition: .2s; font-family: inherit; }
.fin:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,140,255,0.15); }
.tb-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tb-thumb { width: 64px; text-align: center; }
.tb-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.tb-thumb span { display: block; font-size: 9px; color: var(--text-faint); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }
.tb-msg { color: var(--warn); font-size: 12.5px; margin-right: auto; }
.modal-foot .gate-btn { padding: 0 18px; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .sidebar { width: 64px; padding: 16px 8px; }
  .brand-text, .nav-item span:last-child, .nav-badge, .sidebar-foot span, .sf-user span:last-child { display: none; }
  .nav-item { justify-content: center; }
  .main { padding: 0 16px 32px; }
  .hero-title { font-size: 30px; }
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
}
