/* =========================================================
   智能投标工作平台 · 毛玻璃视觉系统
   微软雅黑 / 明暗双主题 / 纯前端 / 动态光晕背景
   ========================================================= */
:root {
  --bg: #eef2fb;
  --bg-2: #e7f0ff;
  --bg-3: #eafaf3;
  --text: #1b2433;
  --text-2: #45506a;
  --muted: #7c87a1;
  --primary: #2f6bff;
  --primary-2: #1b4ff0;
  --primary-3: #5b8cff;
  --accent: #00c2a8;
  --accent-2: #7c5cff;
  --ok: #15a75a;
  --warn: #e08a00;
  --bad: #e23d3d;

  /* 毛玻璃令牌 */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-border-soft: rgba(120, 140, 190, 0.22);
  --glass-shadow: 0 10px 34px rgba(36, 52, 110, 0.14);
  --glass-shadow-sm: 0 6px 18px rgba(36, 52, 110, 0.10);
  --blur: blur(20px) saturate(165%);
  --hair: linear-gradient(90deg, transparent, var(--primary-3), transparent);
  --radius: 16px;
  --radius-sm: 11px;
  --ring: 0 0 0 4px rgba(47, 107, 255, 0.16);
}
html[data-theme="dark"] {
  --bg: #0a0f18;
  --bg-2: #0d1422;
  --bg-3: #0b131d;
  --text: #e8edf6;
  --text-2: #a9b4c8;
  --muted: #6f7c93;
  --primary: #5b8cff;
  --primary-2: #3f72ff;
  --primary-3: #82a8ff;
  --accent: #21d6b8;
  --accent-2: #9a7cff;
  --ok: #2fd07a;
  --warn: #ffb02e;
  --bad: #ff6b6b;

  --glass-bg: rgba(20, 27, 40, 0.55);
  --glass-bg-strong: rgba(24, 32, 48, 0.78);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.50);
  --glass-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.42);
  --hair: linear-gradient(90deg, transparent, var(--primary-3), transparent);
  --ring: 0 0 0 4px rgba(91, 140, 255, 0.22);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, "PingFang SC", sans-serif;
  color: var(--text); font-size: 14px; line-height: 1.65;
  background: linear-gradient(135deg, var(--bg), var(--bg-2) 45%, var(--bg-3));
  overflow: hidden;
}
::selection { background: rgba(47, 107, 255, 0.22); }

/* ---------- 动态背景光晕 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: float 18s ease-in-out infinite; }
.o1 { width: 460px; height: 460px; background: radial-gradient(circle at 30% 30%, #5b8cff, transparent 70%); top: -120px; left: -80px; }
.o2 { width: 520px; height: 520px; background: radial-gradient(circle at 30% 30%, #00c2a8, transparent 70%); bottom: -160px; right: -120px; animation-delay: -4s; }
.o3 { width: 380px; height: 380px; background: radial-gradient(circle at 30% 30%, #7c5cff, transparent 70%); top: 40%; left: 55%; animation-delay: -8s; }
.o4 { width: 300px; height: 300px; background: radial-gradient(circle at 30% 30%, #ffb02e, transparent 70%); top: 60%; left: 10%; opacity: 0.35; animation-delay: -12s; }
html[data-theme="dark"] .orb { opacity: 0.40; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(120,140,190,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120,140,190,0.06) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%); }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,25px) scale(0.96); } }

/* ---------- 布局 ---------- */
#app { position: relative; z-index: 1; display: flex; height: 100vh; overflow: hidden; }

/* 侧边栏（毛玻璃） */
.sidebar {
  width: 236px; flex: 0 0 236px; margin: 14px 0 14px 14px;
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--glass-shadow); display: flex; flex-direction: column; overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border-bottom: 1px solid var(--glass-border-soft); }
.brand-text { min-width: 0; flex: 1; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-3) 55%, var(--accent));
  color: #fff; font-weight: 800; font-size: 21px; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(47,107,255,0.4);
}
.brand-title { font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.brand-sub { font-size: 11px; color: var(--muted); }
.brand-owner { font-size: 10px; color: var(--primary); opacity: .8; margin-top: 5px; letter-spacing: .5px; }

/* ---------- 首页封面 Hero ---------- */
.cover {
  position: relative; overflow: hidden; margin-bottom: 18px; padding: 34px 34px 30px;
  border-radius: var(--radius); border: 1px solid var(--glass-border);
  background: linear-gradient(120deg, rgba(47,107,255,0.20), rgba(0,194,168,0.14) 55%, rgba(124,92,255,0.16));
  box-shadow: var(--glass-shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.cover::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair); opacity: .7; }
.cover-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -90px; top: -150px;
  background: radial-gradient(circle, rgba(91,140,255,0.45), transparent 70%); filter: blur(20px); pointer-events: none; }
.cover-brand { position: relative; z-index: 1; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary); padding: 5px 13px; border-radius: 20px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); }
.cover-title { position: relative; z-index: 1; margin: 16px 0 6px; font-size: 32px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(100deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cover-sub { position: relative; z-index: 1; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.cover-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.cover-tag { font-size: 11.5px; padding: 4px 13px; border-radius: 20px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); color: var(--text-2); font-weight: 600; }
.cover-cta { position: relative; z-index: 1; }

/* ---------- 防盗复制 / 拖拽（内容区禁选禁拷，登录/授权输入框放行） ---------- */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
img, video { -webkit-user-drag: none; user-drag: none; }

/* 版权提示（禁右键跟随显示） */
#copyright-tip {
  position: fixed; z-index: 99999; transform: translate(-50%, -130%);
  background: rgba(20,27,40,0.94); color: #fff; padding: 8px 17px; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
#copyright-tip.show { opacity: 1; transform: translate(-50%, -145%); }
.nav { padding: 16px 12px 12px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
/* 侧边栏分组标签（工作空间 / 智能工具链；"系统"分组仅保留分隔横线、无文字） */
.nav-group {
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px; color: var(--muted);
  padding: 12px 13px 3px; opacity: .85; user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-group::after { content: ""; flex: 1; height: 1px; background: var(--glass-border-soft); }
.nav-group:first-child { padding-top: 2px; }
.nav-item {
  width: 100%; text-align: left; background: none; border: 1px solid transparent; color: var(--text-2);
  padding: 11px 13px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 11px; font-family: inherit; transition: all .18s ease;
}
.nav-item:hover { background: var(--glass-bg-strong); color: var(--text); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(100deg, rgba(47,107,255,0.18), rgba(0,194,168,0.10));
  border-color: rgba(47,107,255,0.35); color: var(--primary); box-shadow: var(--ring);
}
/* 系统设置下沉到导航区底部（与上方工具链自然分隔） */
.nav-item.nav-bottom { margin-top: auto; border-top: 1px solid var(--glass-border-soft); border-radius: 0 0 12px 12px; padding-top: 13px; }
.nav-ico { width: 20px; text-align: center; font-size: 15px; opacity: .9; }
.sidebar-foot { padding: 12px 16px 14px; border-top: 1px solid var(--glass-border-soft); }
.sidebar-foot .hint { font-size: 10.5px; color: var(--muted); text-align: center; letter-spacing: .8px; line-height: 1.5; }
.btn-ghost.danger:hover, .btn-ghost.tb-danger:hover { border-color: var(--bad); color: var(--bad); background: rgba(226,61,61,0.08); }

/* 顶栏操作按钮（新建投标项目 / 切换主题 / 退出登录 并列） */
.tb-btn { padding: 8px 14px; border-radius: 11px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-ico { font-size: 14px; opacity: .85; }

/* 主区 */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 14px 14px 14px 0; }
.topbar {
  height: 62px; flex: 0 0 62px; margin-bottom: 14px;
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--glass-shadow-sm);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.topbar-title { font-size: 18px; font-weight: 800; letter-spacing: .4px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.ai-status { font-size: 12px; color: var(--text-2); padding: 5px 12px; border-radius: 20px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); }
.view { flex: 1; overflow-y: auto; padding-right: 6px; }

/* 滚动条 */
.view::-webkit-scrollbar, .nav::-webkit-scrollbar { width: 9px; }
.view::-webkit-scrollbar-thumb, .nav::-webkit-scrollbar-thumb { background: var(--glass-border-soft); border-radius: 10px; }
.view::-webkit-scrollbar-thumb:hover { background: rgba(47,107,255,0.4); }

/* ---------- 通用控件（玻璃） ---------- */
button { font-family: inherit; }
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-3)); color: #fff; border: none;
  padding: 10px 18px; border-radius: 12px; font-size: 13px; cursor: pointer; font-weight: 700;
  box-shadow: 0 6px 16px rgba(47,107,255,0.32); transition: all .18s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47,107,255,0.42); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); color: var(--text-2);
  padding: 8px 15px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .18s ease;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--glass-bg); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 9px; }
.btn-danger { background: var(--glass-bg-strong); border: 1px solid rgba(226,61,61,0.4); color: var(--bad); font-weight: 600; }
.btn-danger:hover { background: var(--bad); color: #fff; }
input, textarea, select {
  font-family: inherit; font-size: 13px; color: var(--text);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft);
  border-radius: 11px; padding: 10px 12px; width: 100%; transition: all .18s ease;
}
textarea { resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); background: var(--glass-bg); }
label { font-size: 12px; color: var(--text-2); display: block; margin: 12px 0 5px; font-weight: 600; }

/* ---------- 毛玻璃卡片 ---------- */
.card {
  position: relative; background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--glass-shadow); margin-bottom: 18px; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair); opacity: .6; }
.card.flush { padding: 0; overflow: hidden; }
.section-title { font-size: 15.5px; font-weight: 800; margin: 0 0 4px; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(var(--primary), var(--accent)); display: inline-block; }
.section-sub { font-size: 12px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }

/* 栅格 */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }

/* ---------- 工作台模块卡 ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod-card {
  position: relative; background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 18px; cursor: pointer;
  box-shadow: var(--glass-shadow-sm); transition: all .2s ease; overflow: hidden;
}
.mod-card:hover { transform: translateY(-3px); border-color: rgba(47,107,255,0.45); box-shadow: var(--glass-shadow); }
.mod-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 6px 16px rgba(47,107,255,0.32); margin-bottom: 12px;
}
.mod-card:nth-child(2) .mod-ico { background: linear-gradient(135deg, var(--accent-2), var(--primary-3)); }
.mod-card:nth-child(3) .mod-ico { background: linear-gradient(135deg, #ff8a5c, var(--warn)); }
.mod-card:nth-child(4) .mod-ico { background: linear-gradient(135deg, var(--ok), var(--accent)); }
.mod-card:nth-child(5) .mod-ico { background: linear-gradient(135deg, var(--primary-2), var(--accent-2)); }
.mod-card:nth-child(6) .mod-ico { background: linear-gradient(135deg, #ff6b9d, var(--accent-2)); }
.mod-title { font-weight: 800; font-size: 14.5px; margin-bottom: 5px; }
.mod-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ---------- 统计卡 ---------- */
.stat {
  background: var(--glass-bg); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--glass-shadow-sm); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(47,107,255,0.18), transparent 70%); }
.stat .num { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.stat .lab { font-size: 12.5px; color: var(--text-2); margin-top: 4px; font-weight: 600; }

/* 列表 / 表格 */
.list { display: flex; flex-direction: column; gap: 11px; }
.item {
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); border-radius: 12px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: all .18s ease;
}
.item:hover { border-color: var(--primary); transform: translateX(2px); }
.tag { font-size: 11px; padding: 3px 11px; border-radius: 20px; background: rgba(47,107,255,0.12); color: var(--primary); font-weight: 600; }
.tag.gray { background: var(--glass-bg-strong); color: var(--muted); }
.tag.ok { background: rgba(21,167,90,0.14); color: var(--ok); }
.tag.warn { background: rgba(224,138,0,0.14); color: var(--warn); }
.tag.bad { background: rgba(226,61,61,0.14); color: var(--bad); }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border-radius: 12px; overflow: hidden; }
table.tbl th, table.tbl td { border-bottom: 1px solid var(--glass-border-soft); padding: 10px 12px; text-align: left; }
table.tbl th { background: var(--glass-bg-strong); font-weight: 700; color: var(--text-2); }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl td input { border: none; background: transparent; padding: 4px; }
table.tbl tbody tr:hover { background: var(--glass-bg); }

/* 步骤条 */
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.step {
  flex: 1; min-width: 118px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft);
  border-radius: 11px; padding: 10px 12px; font-size: 12px; color: var(--text-2); position: relative; transition: all .18s ease;
}
.step.done { border-color: rgba(21,167,90,0.5); color: var(--ok); background: rgba(21,167,90,0.08); }
.step.active { border-color: var(--primary); background: rgba(47,107,255,0.1); color: var(--primary); font-weight: 700; }
.step .snum { font-weight: 800; margin-right: 6px; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(47,107,255,0.15); font-size: 11px; }

/* 编辑器输出 */
.editor-out {
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); border-radius: 12px;
  padding: 18px; white-space: pre-wrap; font-size: 13px; line-height: 1.9; min-height: 200px; max-height: 580px; overflow-y: auto; color: var(--text);
}
.toolbar { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0; align-items: center; }

/* 进度 / 相似度条 */
.bar { height: 11px; background: var(--glass-bg-strong); border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border-soft); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .4s ease; }
.bar.ok > i { background: linear-gradient(90deg, var(--ok), var(--accent)); }
.bar.warn > i { background: linear-gradient(90deg, var(--warn), #ffce6b); }
.bar.bad > i { background: linear-gradient(90deg, var(--bad), #ff9a9a); }

/* 提示 */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(20,27,40,0.92); color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: all .28s; z-index: 999; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.12);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 杂项 */
.hidden { display: none !important; }
.kbd { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); border-radius: 5px; padding: 1px 7px; font-size: 11px; }
.pill { display: inline-flex; align-items: center; gap: 6px; }
.checkrow { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--glass-border-soft); }
.checkrow:last-child { border-bottom: none; }
.checkrow .ctext { flex: 1; }
.thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--glass-border-soft); box-shadow: var(--glass-shadow-sm); }
.empty { text-align: center; color: var(--muted); padding: 44px 0; font-size: 13px; }
hr.sep { border: none; border-top: 1px solid var(--glass-border-soft); margin: 18px 0; }
.divider-hair { height: 1px; background: var(--hair); opacity: .5; margin: 18px 0; border: none; }

/* 报价模块专属 */
.quote-hero {
  background: linear-gradient(120deg, rgba(47,107,255,0.14), rgba(0,194,168,0.10));
  border: 1px solid rgba(47,107,255,0.25); border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.quote-hero .big { font-size: 34px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.quote-hero .big small { font-size: 14px; color: var(--text-2); font-weight: 600; }
.cost-card { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); border-radius: 12px; padding: 14px 16px; }
.breakdown { list-style: none; padding: 0; margin: 0; }
.breakdown li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--glass-border-soft); font-size: 13px; }
.breakdown li:last-child { border-bottom: none; font-weight: 700; }

/* 图库 */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.img-tile { background: var(--glass-bg-strong); border: 1px solid var(--glass-border-soft); border-radius: 14px; padding: 10px; box-shadow: var(--glass-shadow-sm); transition: all .2s ease; }
.img-tile:hover { transform: translateY(-3px); border-color: rgba(47,107,255,0.4); }
.img-tile img { width: 100%; height: 110px; object-fit: cover; border-radius: 9px; }
.img-desc { font-size: 11.5px; color: var(--text-2); margin-top: 8px; line-height: 1.5; max-height: 72px; overflow: hidden; }
.img-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.img-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 20px; background: rgba(47,107,255,0.12); color: var(--primary); }
.vis-badge { position: absolute; top: 6px; right: 6px; background: var(--accent); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 20px; }

/* 响应式 */
@media (max-width: 1100px) {
  .grid-3, .grid-4, .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .grid-4, .module-grid { grid-template-columns: 1fr; }
}

/* ---------- 弹窗（毛玻璃） ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(10, 15, 24, 0.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  width: 460px; max-width: 92vw; background: var(--glass-bg-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--glass-shadow); padding: 26px;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* 图库联动 chips */
.img-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.img-chip { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: rgba(0,194,168,0.14); color: var(--accent); border: 1px solid rgba(0,194,168,0.30); cursor: default; }
.dark-badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 20px; background: rgba(124,92,255,0.16); color: var(--accent-2); margin-left: 8px; }

/* ---------- 附件查看器（预览 / 打印 / 自动识别再编辑） ---------- */
.att-overlay { z-index: 1200; }
.att-box { width: min(880px, 94vw); max-height: 92vh; overflow: auto; background: var(--glass-bg-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--glass-shadow); padding: 18px 20px; animation: modalIn .22s ease; user-select: text; }
.att-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.att-x { border: none; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.att-x:hover { color: #e5484d; }
.att-row { margin: 6px 0; }
.att-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.att-row input { width: 100%; padding: 7px 10px; border: 1px solid var(--glass-border); border-radius: 6px; font-size: 14px; background: var(--bg-soft); color: var(--text); }
.att-meta { font-size: 12px; color: var(--accent); margin: 6px 0; line-height: 1.5; }
.att-label { font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.att-preview { text-align: center; }
.att-preview img { max-width: 100%; max-height: 46vh; border: 1px solid var(--glass-border); border-radius: 6px; display: inline-block; }
.att-text { width: 100%; min-height: 300px; border: 1px solid var(--glass-border); border-radius: 6px; padding: 11px; font-size: 13px; line-height: 1.75;
  font-family: 'Microsoft YaHei', sans-serif; resize: vertical; background: var(--bg-soft); color: var(--text); }
.att-actions { margin-top: 14px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.att-readonly-note { font-size: 12px; color: #b8860b; background: rgba(184,134,11,0.10); border: 1px solid rgba(184,134,11,0.30); border-radius: 6px; padding: 7px 10px; margin: 8px 0; line-height: 1.5; }
.att-text[readonly], .att-row input[disabled] { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }
.item-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.img-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.kb-lock-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(184,134,11,0.16); color: #b8860b; border: 1px solid rgba(184,134,11,0.34); margin-left: 6px; vertical-align: middle; }
