/* 海鸥办公 PHP 版 — 全局样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #0369a1; --primary-dark: #075985; --primary-light: #e0f2fe;
  --border: #e2e8f0; --text: #1e293b; --muted: #64748b; --bg: #f1f5f9;
  --danger: #dc2626; --danger-bg: #fee2e2; --success: #16a34a; --success-bg: #f0fdf4;
}
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; }
.boot-loading { display: flex; align-items: center; justify-content: center; height: 100vh; color: var(--muted); font-size: 16px; letter-spacing: 2px; }
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #38bdf8 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 40px 44px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; border: 3px solid var(--primary-light); }
.login-card h1 { text-align: center; font-size: 24px; color: var(--primary-dark); letter-spacing: 6px; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.login-err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }
.login-tip { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }

/* ---------- 主框架 ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 216px; background: #0c4a6e; color: #e0f2fe; display: flex; flex-direction: column; flex-shrink: 0; transition: width .2s; }
.sidebar.collapsed { width: 0; overflow: hidden; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.side-head .t { font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 16px; cursor: pointer; font-size: 14px; color: #bae6fd; user-select: none; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.nav-item .arrow { margin-left: auto; font-size: 10px; opacity: .7; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.nav-item.open .arrow { transform: rotate(90deg); }
.nav-sub { padding-left: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .38s cubic-bezier(.4,0,.2,1), opacity .3s ease; }
.nav-sub.open { max-height: 480px; opacity: 1; }
.nav-sub .nav-item { font-size: 13px; padding: 7px 16px 7px 28px; color: #93c5fd; }
.side-foot { padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.12); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 52px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 18px; gap: 12px; flex-shrink: 0; }
.topbar .crumb { font-size: 15px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 13px; }
.content { flex: 1; overflow-y: auto; padding: 18px; }

/* ---------- 通用组件 ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.page-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.page-desc { color: var(--muted); font-size: 12px; margin: -8px 0 14px; }
.btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; background: var(--primary); color: #fff; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.outline { background: #fff; border-color: #cbd5e1; color: var(--text); }
.btn.outline:hover { background: #f8fafc; border-color: var(--primary); color: var(--primary); }
.btn.ghost { background: transparent; color: var(--primary); padding: 4px 8px; }
.btn.ghost:hover { background: var(--primary-light); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.text-danger { background: transparent; color: var(--danger); padding: 4px 8px; }
.btn.text-danger:hover { background: var(--danger-bg); }
.btn.block { width: 100%; justify-content: center; }
.btn.big { padding: 11px 18px; font-size: 15px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 10px; font-size: 13px; font-family: inherit;
  background: #fff; color: var(--text); outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,105,161,.12); }
textarea { resize: vertical; line-height: 1.7; }
label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
label.f > input, label.f > textarea, label.f > select { margin-top: 5px; font-weight: 400; }
.f-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.f-row .opt { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; cursor: pointer; }
.f-row .opt input { width: auto; }
.f-row input.inline, .f-row select.inline { width: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .search { width: 320px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.8; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--muted); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mb12 { margin-bottom: 12px; }
.flex { display: flex; gap: 8px; align-items: center; } .flex.wrap { flex-wrap: wrap; } .flex .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* 表格 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
/* 顶部横向滚动条（与 .tbl-wrap 联动） */
.ts-top { overflow-x: auto; overflow-y: hidden; height: 14px; margin-bottom: 3px; border-radius: 6px; }
.ts-top-inner { height: 1px; }
.ts-top::-webkit-scrollbar { height: 8px; }
.ts-top::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.ts-top::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.tbl .sel-col { width: 34px; text-align: center; }
.tbl .sel-col input { cursor: pointer; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: left; white-space: nowrap; font-weight: 600; position: sticky; top: 0; }
.tbl td { border-bottom: 1px solid #f1f5f9; padding: 7px 12px; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.tbl tr:hover td { background: #f8fafc; }
.tbl td.warn, .tbl td.warn a { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.tbl .ops { white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* 徽标/标签 */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: var(--primary-light); color: var(--primary-dark); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.green { background: var(--success-bg); color: var(--success); }
.badge.gray { background: #f1f5f9; color: var(--muted); }

/* 提醒条 */
.alert { display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; line-height: 1.7; }
.alert.red { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.alert.yellow { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.alert.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 12px; width: 640px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: 900px; }
.modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 18px; border: none; background: none; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* 工作台 */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: box-shadow .15s; }
.dash-card:hover { box-shadow: 0 4px 14px rgba(3,105,161,.12); }
.dash-card .num { font-size: 26px; font-weight: 700; color: var(--primary-dark); }
.dash-card .lbl { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* 标签页 */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs .tab { padding: 6px 14px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 13px; }
.tabs .tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* 便签墙 */
.note-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.note-card { border-radius: 10px; padding: 14px; min-height: 120px; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; position: relative; }
.note-card .t { font-weight: 700; margin-bottom: 6px; }
.note-card .c { font-size: 13px; white-space: pre-wrap; line-height: 1.6; }
.note-card .time { position: absolute; bottom: 8px; right: 12px; font-size: 11px; opacity: .65; }

/* 邮件 */
.mail-item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; background: #fff; display: flex; align-items: flex-start; }
.mail-item.unread { border-left: 4px solid var(--primary); font-weight: 600; }
.mail-item .sub { font-size: 14px; }
.mail-item .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* 滚动条式应收 */
.marquee { overflow: hidden; white-space: nowrap; border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px; padding: 9px 0; margin-bottom: 12px; }
.marquee .inner { display: inline-block; padding-left: 100%; animation: mq 22s linear infinite; color: #b45309; font-size: 13px; }
@keyframes mq { to { transform: translateX(-100%); } }

/* 创作助手 */
.step-done { border-left: 4px solid var(--success); }
.result-box { border: 1px solid #86efac; background: var(--success-bg); border-radius: 10px; padding: 18px; }
.result-box h4 { color: #166534; margin-bottom: 10px; }
audio.full { width: 100%; margin-top: 8px; }
.idea-item { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin-bottom: 7px; cursor: pointer; font-size: 13px; line-height: 1.6; }
.idea-item:hover { background: var(--primary-light); }
.idea-item.picked { border-color: var(--primary); background: var(--primary-light); }
.idea-item input { margin-top: 3px; }

/* 学习中心树 */
.tree-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 13px; background: #fff; }
.tree-row:hover { background: #f8fafc; }
.tree-row.sel { background: var(--primary-light); }
.tree-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-row .sz { color: var(--muted); font-size: 12px; }

/* 公章 */
.seal-img { width: 120px; height: 120px; object-fit: contain; }
.contract-preview { background: #fffef7; border: 1px solid #e7e5e4; border-radius: 8px; padding: 28px 34px; line-height: 2; white-space: pre-wrap; font-family: FangSong, 仿宋, serif; font-size: 15px; position: relative; }
.seal-overlay { position: absolute; width: 130px; height: 130px; opacity: .92; pointer-events: none; }

/* 侧栏设置 */
.navset-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.navset-row .nm { width: 110px; }
.navset-row input[type=text] { width: 160px; }

/* 预算表格编辑器 */
.grid-editor td, .grid-editor th { border: 1px solid var(--border); padding: 0; }
.grid-editor input { border: none; border-radius: 0; padding: 6px 8px; font-size: 12px; min-width: 90px; }
.grid-editor input:focus { box-shadow: inset 0 0 0 2px var(--primary); }

footer.foot { text-align: center; color: #94a3b8; font-size: 12px; padding: 18px 0 8px; }

/* AI 完成特效：海鸥飞过 + 字幕 */
.ai-fx { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.ai-fx-bird { position: absolute; top: 12%; left: -120px; font-size: 56px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); animation: aiFly 2.6s ease-in-out forwards; }
@keyframes aiFly {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(28vw, -6vh) rotate(-6deg); }
  50% { transform: translate(52vw, 2vh) rotate(4deg); }
  75% { transform: translate(78vw, -4vh) rotate(-4deg); }
  100% { transform: translate(112vw, 0) rotate(0deg); }
}
.ai-fx-sub { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); background: rgba(15,23,42,.88); color: #fff; font-size: 18px; padding: 12px 28px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: aiSub 2.8s ease forwards; white-space: nowrap; }
@keyframes aiSub {
  0% { opacity: 0; transform: translateX(-50%) translateY(16px); }
  12% { opacity: 1; transform: translateX(-50%) translateY(0); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ---------- 移动端适配（≤768px） ---------- */
.burger { display: none; font-size: 17px; padding: 5px 11px; }
.side-mask { display: none; }
.side-close { display: none; margin-left: auto; border: none; background: rgba(255,255,255,.14); color: #e0f2fe;
  width: 28px; height: 28px; border-radius: 50%; font-size: 13px; cursor: pointer; flex-shrink: 0; }
@media (max-width: 768px) {
  /* 侧栏变抽屉：默认收起，点 ☰ 滑出，点 ✕ 或遮罩收起 */
  .burger { display: inline-flex; }
  .side-close { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 200; width: min(216px, 62vw);
    transform: translateX(-105%); transition: transform .32s cubic-bezier(.4,0,.2,1); box-shadow: 6px 0 28px rgba(0,0,0,.35); }
  .sidebar.mobile-open { transform: translateX(0); }
  .side-mask { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 190;
    opacity: 0; pointer-events: none; transition: opacity .3s; }
  .side-mask.show { opacity: 1; pointer-events: auto; }
  /* 框架 */
  .topbar { padding: 0 10px; gap: 8px; height: 48px; }
  .topbar .crumb { font-size: 14px; }
  .topbar .who { font-size: 12px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .content { padding: 12px; }
  /* 登录页 */
  .login-card { width: min(380px, 92vw); padding: 30px 24px; }
  /* 弹窗近全屏 */
  .modal-mask { padding: 10px; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; }
  .modal-body { padding: 14px; }
  /* 工作台卡片 */
  .dash-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
  .dash-card { padding: 12px; }
  .dash-card .num { font-size: 22px; }
  /* 便签墙 */
  .note-wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  /* 工具栏与表单 */
  .toolbar .search { width: 100%; }
  .page-title { font-size: 16px; }
  .card { padding: 14px; }
  /* 合同预览与公章 */
  .contract-preview { padding: 16px 14px; font-size: 13px; line-height: 1.9; }
  .seal-overlay { width: 96px; height: 96px; }
  /* 侧栏设置 */
  .navset-row .nm { width: 88px; flex-shrink: 0; }
  .navset-row input[type=text] { width: 110px; }
  /* AI 完成字幕 */
  .ai-fx-sub { font-size: 15px; padding: 10px 18px; max-width: 86vw; white-space: normal; text-align: center; }
  .ai-fx-bird { font-size: 42px; }
  /* 邮件 */
  .mail-item { padding: 9px 10px; }
  /* 数据表卡片化：每行变一张卡片，字段名在左、值在右，无需左右滑动 */
  .ts-top { display: none !important; }
  .tbl-wrap { border: none; background: transparent; overflow: visible; border-radius: 0; }
  table.tbl:not(.grid-editor), table.tbl:not(.grid-editor) tbody,
  table.tbl:not(.grid-editor) tr, table.tbl:not(.grid-editor) td { display: block; width: 100%; }
  table.tbl:not(.grid-editor) thead { display: none; }
  table.tbl:not(.grid-editor) tbody tr { background: #fff; border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 10px; padding: 4px 0; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .tbl:not(.grid-editor) td { border: none; padding: 6px 14px; white-space: normal; max-width: none; overflow: visible; text-overflow: clip;
    display: flex; gap: 10px; align-items: baseline; line-height: 1.6; }
  .tbl:not(.grid-editor) td::before { content: attr(data-l); flex-shrink: 0; min-width: 76px;
    color: var(--muted); font-size: 12px; font-weight: 600; }
  .tbl:not(.grid-editor) td:empty { display: none; }
  .tbl:not(.grid-editor) td.sel-col { border-bottom: 1px dashed var(--border); margin-bottom: 2px; }
  .tbl:not(.grid-editor) td.sel-col input { width: 18px; height: 18px; }
  .tbl:not(.grid-editor) td.ops { border-top: 1px dashed var(--border); margin-top: 2px; padding-top: 8px; }
  .tbl:not(.grid-editor) td.warn { border-radius: 6px; margin: 0 10px; padding: 6px 8px; }
  .tbl:not(.grid-editor) tr:hover td { background: transparent; }
}


/* ================= v1.7.0 视觉升级：淡雅蓝色调 + 玻璃质感 + 过渡动画 ================= */
body {
  background: linear-gradient(160deg, #eef6fd 0%, #e2eef9 38%, #dbeaf7 68%, #d3e6f6 100%);
  background-attachment: fixed;
}
/* 玻璃拟态卡片 */
.card, .dash-card, .mail-item, .tbl-wrap, .modal, .login-card {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(30, 90, 150, .08), 0 1px 3px rgba(30, 90, 150, .05);
}
.topbar {
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 2px 12px rgba(30, 90, 150, .06);
}
/* 侧栏淡蓝深渐变 */
.sidebar { background: linear-gradient(180deg, #0b3a5e 0%, #0c4a6e 45%, #10608c 100%); }
/* 表格融入玻璃底 */
.tbl th { background: rgba(240, 247, 253, .85); }
.tbl tr:hover td { background: rgba(224, 242, 254, .4); }
.tbl td { border-bottom-color: rgba(226, 232, 240, .7); }
/* 输入框半透玻璃底 */
input[type=text], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  background: rgba(255, 255, 255, .82);
}
/* 按钮细腻过渡 */
.btn { transition: all .18s ease; box-shadow: 0 2px 6px rgba(3, 105, 161, .18); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(3, 105, 161, .26); }
.btn:active { transform: translateY(0); }
.btn.outline { background: rgba(255, 255, 255, .78); box-shadow: none; }
.btn.ghost, .btn.text-danger { box-shadow: none; }
.btn.light { background: rgba(255, 255, 255, .85); color: var(--primary-dark); border: 1px solid rgba(186, 230, 253, .8); box-shadow: none; }
.btn.light:hover { background: #fff; color: var(--primary); }
/* 页面切换渐入上浮动画 */
.content > * { animation: pageIn .32s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* 卡片悬停上浮 */
.dash-card { transition: transform .18s ease, box-shadow .18s ease; }
.dash-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(3, 105, 161, .16); }
.card { transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 8px 26px rgba(30, 90, 150, .12), 0 1px 3px rgba(30, 90, 150, .06); }
.mail-item { transition: transform .15s ease, box-shadow .15s ease; }
.mail-item:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(3, 105, 161, .12); }
/* 弹窗弹出动画 + 遮罩淡入 */
.modal-mask { animation: maskIn .2s ease both; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal { animation: popIn .24s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
/* 标签页过渡 */
.tabs .tab { transition: all .18s ease; background: rgba(255, 255, 255, .72); }
.tabs .tab:hover { border-color: var(--primary); color: var(--primary); }
.tabs .tab.active { box-shadow: 0 3px 10px rgba(3, 105, 161, .25); }
/* 便签、点子项过渡 */
.note-card { transition: transform .18s ease, box-shadow .18s ease; }
.note-card:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 10px 22px rgba(0, 0, 0, .14); }
.idea-item { transition: all .15s ease; background: rgba(255, 255, 255, .6); }
.tree-row { background: transparent; transition: background .15s ease; }
/* ---------- 工作台公告栏 ---------- */
.notice-banner {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 14px 18px;
  border-radius: 14px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0284c7 0%, #0ea5e9 55%, #38bdf8 100%);
  box-shadow: 0 8px 24px rgba(2, 132, 199, .35);
  animation: noticeGlow 3s ease-in-out infinite;
}
@keyframes noticeGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(2, 132, 199, .35); }
  50% { box-shadow: 0 8px 32px rgba(14, 165, 233, .5); }
}
.notice-banner .notice-ico { font-size: 26px; animation: noticeRing 2.4s ease-in-out infinite; }
@keyframes noticeRing { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(14deg); } 16% { transform: rotate(-12deg); } 24% { transform: rotate(8deg); } 32% { transform: rotate(0); } }
.notice-banner .grow { flex: 1; min-width: 0; }
.notice-banner b { font-size: 15px; }
.notice-banner .notice-time { font-size: 12px; opacity: .85; }
.notice-banner .notice-body { margin-top: 4px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; opacity: .96; }
.notice-banner .hint { color: rgba(255, 255, 255, .8); }
.notice-ops { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.notice-history { margin: -8px 0 14px; padding: 4px 14px; border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .6); border-top: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.notice-h-item { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12px;
  color: var(--muted); cursor: pointer; border-bottom: 1px dashed rgba(203, 213, 225, .6); }
.notice-h-item:last-child { border-bottom: none; }
.notice-h-item:hover .notice-h-title { color: var(--primary); }

/* ---------- 待办提醒（用户间交互事项：工作台横幅 / 登录弹层共用） ---------- */
.notif-card { margin-bottom: 14px; border-radius: 14px; overflow: hidden;
  border: 1.5px solid #fda4af; background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
  box-shadow: 0 6px 20px rgba(244, 63, 94, .18); animation: notifPulse 3s ease-in-out infinite; }
@keyframes notifPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(244, 63, 94, .18); }
  50% { box-shadow: 0 6px 28px rgba(244, 63, 94, .34); }
}
.notif-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: linear-gradient(120deg, #f43f5e 0%, #fb923c 100%); color: #fff; font-weight: 600; font-size: 14px; }
.notif-head .notif-count { background: rgba(255, 255, 255, .92); color: #e11d48; border-radius: 999px;
  padding: 0 9px; font-size: 12px; font-weight: 700; line-height: 20px; }
.notif-head .grow { flex: 1; }
.notif-head .btn.light.sm { flex-shrink: 0; }
.notif-list { max-height: 320px; overflow: auto; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid rgba(251, 113, 133, .16); font-size: 13px; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255, 255, 255, .6); }
.notif-item .notif-ico { font-size: 20px; flex-shrink: 0; }
.notif-item .notif-main { flex: 1; min-width: 0; }
.notif-item .notif-title { font-weight: 600; color: #9f1239; }
.notif-item .notif-desc { color: #78716c; font-size: 12px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-item .notif-time { color: #a8a29e; font-size: 11px; flex-shrink: 0; }
.notif-item .notif-ops { display: flex; gap: 6px; flex-shrink: 0; }
.notif-item .notif-ops .btn.sm { white-space: nowrap; }
/* 登录弹层里的列表复用同款行样式，但去除卡片外壳动画 */
.modal .notif-list { max-height: 46vh; border: 1px solid #fecdd3; border-radius: 10px; overflow: auto; }
@media (max-width: 640px) {
  .notif-item { flex-wrap: wrap; }
  .notif-item .notif-ops { width: 100%; justify-content: flex-end; }
}
.notice-h-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-h-time { flex-shrink: 0; }
/* ---------- 人员多选框（内部邮件群发/抄送） ---------- */
.pick-box { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 150px; overflow-y: auto;
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .82); margin-top: 5px; }
.pick-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 400; cursor: pointer;
  padding: 2px 6px; border-radius: 6px; transition: background .15s; }
.pick-item:hover { background: var(--primary-light); }
.pick-item input { width: auto; cursor: pointer; }
/* ---------- 移动端补充（保持卡片化表格优先） ---------- */
@media (max-width: 768px) {
  .tbl-wrap { background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  table.tbl:not(.grid-editor) tbody tr { background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .notice-banner { padding: 12px 14px; }
  .notice-ops { width: 100%; }
  .notice-banner { flex-wrap: wrap; }
}


/* ================= v1.7.1 侧栏淡雅玻璃风 + 更柔和的展开动画 ================= */
.sidebar {
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  color: #3d5a73;
  border-right: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 4px 0 24px rgba(30, 90, 150, .07);
}
.side-head { border-bottom: 1px solid rgba(148, 180, 210, .28); }
.side-head .t { color: var(--primary-dark); }
.side-head img { border: 2px solid rgba(186, 230, 253, .9); box-shadow: 0 2px 8px rgba(3, 105, 161, .15); }
.side-nav::-webkit-scrollbar-thumb { background: rgba(100, 140, 180, .3); }
.side-foot { border-top: 1px solid rgba(148, 180, 210, .28); }
.nav-item {
  color: #41607c; margin: 2px 8px; padding: 8px 12px; border-radius: 10px;
  transition: background .22s ease, color .22s ease, transform .18s ease;
}
.nav-item:hover { background: rgba(224, 242, 254, .75); color: var(--primary-dark); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(120deg, rgba(125, 211, 252, .5), rgba(14, 165, 233, .22));
  color: #075985; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .55), 0 2px 8px rgba(14, 165, 233, .15);
}
.nav-item .arrow { opacity: .55; transition: transform .5s cubic-bezier(.25, .8, .25, 1); }
.nav-sub {
  transition: max-height .62s cubic-bezier(.25, .8, .25, 1), opacity .5s ease;
}
.nav-sub .nav-item { color: #5d7f9b; margin: 1px 8px 1px 16px; padding: 6px 12px 6px 20px; }
.nav-sub .nav-item:hover { background: rgba(224, 242, 254, .6); color: var(--primary-dark); }
.nav-sub .nav-item.active { background: rgba(14, 165, 233, .16); color: #0369a1; box-shadow: none; }
/* 移动端抽屉关闭按钮适配浅色侧栏 */
.side-close { background: rgba(3, 105, 161, .1); color: var(--primary-dark); }

/* 登录页同步淡蓝风格 */
.login-wrap { background: linear-gradient(140deg, #dceefc 0%, #bcdcfb 45%, #9fcef4 100%); }
.login-card { box-shadow: 0 24px 60px rgba(30, 90, 150, .22); }
