/* 小楼台 v2 样式 — 轻松暖橙主题 */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --primary:#E9833F; --primary-dark:#D96F2B; --primary-light:#FDF0E2;
  --bg:#FAF7F1; --card:#FFFFFF; --border:#F0E9DD;
  --text:#3D362E; --muted:#9A8F80; --danger:#D9534F; --success:#5BA85C;
  --warn:#DB9A2F; --radius:12px;
  --shadow:0 4px 18px rgba(160,120,70,.08);
}
body { font-family:"PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); font-size:14px; }
button { font-family:inherit; cursor:pointer; }
input,select,textarea { font-family:inherit; font-size:14px; padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--text); width:100%; transition:border-color .15s, box-shadow .15s; }
input:focus,select:focus,textarea:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(233,131,63,.12); }

/* 登录 */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg,#FFF4E6 0%,#FAF7F1 55%,#F2F7F0 100%); position:relative; overflow:hidden; }
.login-wrap::before, .login-wrap::after { content:""; position:absolute; border-radius:50%; filter:blur(70px); opacity:.55; }
.login-wrap::before { width:340px; height:340px; background:#FFD9AE; top:-90px; right:-60px; }
.login-wrap::after { width:300px; height:300px; background:#CBE5C9; bottom:-100px; left:-70px; }
.login-card { position:relative; z-index:1; background:rgba(255,255,255,.9); backdrop-filter:blur(8px); border:1px solid #FFF; border-radius:22px; padding:42px 38px; width:370px; max-width:92vw; box-shadow:0 16px 48px rgba(180,130,70,.14); text-align:center; }
.login-logo { font-size:36px; font-weight:700; letter-spacing:6px; background:linear-gradient(120deg,#E9833F,#D96F2B); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.login-sub { color:var(--muted); margin:8px 0 30px; font-size:13px; letter-spacing:2.5px; }
.login-form input { margin-bottom:14px; padding:11px 14px; border-radius:12px; }
.login-form .btn { padding:12px; border-radius:12px; font-size:15px; }
.login-err { color:var(--danger); font-size:12px; min-height:18px; margin-top:8px; }

/* 按钮 */
.btn { border:none; border-radius:10px; padding:9px 18px; font-size:14px; background:#F4EFE7; color:var(--text); transition:.15s; }
.btn:hover { filter:brightness(.96); }
.btn.primary { background:linear-gradient(135deg,#F5A05C,#E9833F); color:#fff; box-shadow:0 3px 10px rgba(233,131,63,.28); }
.btn.ghost { background:transparent; border:1px solid var(--border); color:var(--muted); }
.btn.danger { background:#FDEEEC; color:var(--danger); }
.btn.success { background:linear-gradient(135deg,#6FBB70,#5BA85C); color:#fff; }
.btn.warn { background:linear-gradient(135deg,#E7AC4C,#DB9A2F); color:#fff; }
.btn.sm { padding:5px 12px; font-size:12px; border-radius:8px; }
.btn.block { width:100%; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

/* 布局 */
.app { display:flex; min-height:100vh; }
.sidebar { width:232px; background:#FFFDF9; border-right:1px solid var(--border); color:#6E6357; display:flex; flex-direction:column; position:fixed; top:0; bottom:0; left:0; z-index:60; }
.brand { display:flex; align-items:center; gap:10px; padding:20px 18px 16px; }
.brand .logo-mark { width:36px; height:36px; border-radius:11px; background:linear-gradient(135deg,#F5A05C,#E9833F); color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; flex-shrink:0; box-shadow:0 4px 10px rgba(233,131,63,.3); }
.brand .logo-text { font-size:18px; font-weight:700; letter-spacing:3px; color:#4E3826; line-height:1.15; }
.brand .logo-text span { display:block; font-size:10px; font-weight:400; letter-spacing:1px; color:#B3A694; margin-top:1px; }
#sideNav { flex:1; overflow-y:auto; padding:2px 12px 12px; scrollbar-width:thin; scrollbar-color:rgba(0,0,0,.12) transparent; }
#sideNav::-webkit-scrollbar { width:4px; }
#sideNav::-webkit-scrollbar-thumb { background:rgba(0,0,0,.12); border-radius:2px; }
.nav-group { margin-bottom:3px; }
.nav-group-h { display:flex; justify-content:flex-start; align-items:center; font-size:12.5px; font-weight:700; color:#4E3826; padding:12px 8px 7px; letter-spacing:2.5px; cursor:pointer; user-select:none; }
.nav-group-h::before { content:""; width:3px; height:12px; border-radius:2px; background:linear-gradient(180deg,#F5A05C,#E9833F); margin-right:7px; flex-shrink:0; }
.nav-group:first-child .nav-group-h { padding-top:4px; }
.nav-group-h:hover { color:var(--primary-dark); }
.nav-group-h .arrow { font-size:9px; transition:.2s; opacity:.7; margin-left:auto; }
.nav-group.closed .arrow { transform:rotate(-90deg); }
.nav-group.closed .nav-sub { display:none; }
.nav-sub { padding-left:5px; }
.nav-item { display:flex; align-items:center; width:100%; text-align:left; background:transparent; border:none; color:#6E6357; padding:9px 10px; border-radius:9px; font-size:13px; font-weight:400; margin-bottom:1px; letter-spacing:.5px; transition:.15s; }
.nav-item::before { content:""; width:4px; height:4px; border-radius:50%; background:#D8CCBB; margin-right:9px; flex-shrink:0; transition:.15s; }
.nav-item:hover { background:#FBF3E8; color:var(--primary-dark); }
.nav-item:hover::before { background:var(--primary); }
.nav-item.active { background:linear-gradient(135deg,#F5A05C,#E9833F); color:#fff; font-weight:500; box-shadow:0 3px 10px rgba(233,131,63,.32); }
.nav-item.active::before { background:#fff; width:5px; height:5px; }
.side-footer { padding:13px 16px; border-top:1px solid var(--border); font-size:12px; color:#9A8F80; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.main { flex:1; margin-left:232px; display:flex; flex-direction:column; min-width:0; }
.menu-btn { display:none; width:36px; height:36px; border:1px solid var(--border); border-radius:10px; background:#fff; font-size:17px; color:#6E6357; align-items:center; justify-content:center; flex-shrink:0; }
.topbar { background:rgba(255,255,255,.92); backdrop-filter:blur(6px); border-bottom:1px solid var(--border); padding:14px 24px; display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; top:0; z-index:10; }
.topbar h1 { font-size:18px; font-weight:600; color:#4E3826; }
.topbar-extra { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.content { padding:24px; flex:1; }
.side-mask { position:fixed; inset:0; background:rgba(70,52,32,.35); z-index:55; opacity:0; pointer-events:none; transition:.2s; }

/* 公海客户工具栏：转公海工具靠左、搜索靠右 */
.pool-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:18px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:12px 16px; box-shadow:var(--shadow); }
.pool-toolbar .pt-left { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
.pool-toolbar .pt-label { display:flex; flex-direction:column; line-height:1.3; margin-right:4px; }
.pool-toolbar .pt-label b { font-size:13.5px; color:#4E3826; }
.pool-toolbar .pt-label small { font-size:11.5px; color:var(--muted); }
.pool-toolbar select { width:250px; max-width:70vw; }
.pool-toolbar .pt-search { width:250px; max-width:100%; }

/* 卡片/统计 */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:20px; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow); }
.stat-card .num { font-size:24px; font-weight:700; margin-top:6px; color:#4E3826; }
.stat-card .num small { font-size:12px; font-weight:400; color:var(--muted); margin-left:2px; }
.stat-card .label { color:var(--muted); font-size:12.5px; }
.stat-card.accent { background:linear-gradient(135deg,#FDF0E2,#FCE3C8); border-color:#F7D9B4; }

/* 表格 */
.panel { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:18px; box-shadow:var(--shadow); }
.panel-head { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; border-bottom:1px solid var(--border); }
.panel-head h3 { font-size:15px; color:#4E3826; }
.panel-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.panel-tools input { width:180px; }
.panel-tools select { max-width:120px; } /* 筛选下拉不被最长选项撑宽 */
.table-scroll { overflow-x:auto; }
/* 角色权限矩阵 */
.rp-matrix th, .rp-matrix td { text-align:center; padding:8px 10px; }
.rp-matrix thead tr:first-child th { font-size:13px; }
.rp-matrix .rp-sub { font-size:11px; color:var(--muted); font-weight:400; }
.rp-matrix .rp-cell input[type=checkbox] { width:16px; height:16px; cursor:pointer; accent-color:var(--primary); }
.rp-matrix tbody tr:hover { background:#FBF3E8; }
/* 订餐记录客户姓名链接 */
.cust-link { color:var(--primary-dark); font-weight:600; cursor:pointer; text-decoration:none; border-bottom:1px dashed var(--primary); }
.cust-link:hover { color:var(--primary); background:rgba(233,131,63,.08); }
table { width:100%; border-collapse:collapse; font-size:13.5px; }
th { text-align:left; padding:11px 14px; background:#FCFAF5; color:var(--muted); font-weight:500; font-size:12.5px; white-space:nowrap; border-bottom:1px solid var(--border); }
td { padding:11px 14px; border-bottom:1px solid #F5F1E9; vertical-align:middle; }
tr:hover td { background:#FDF9F1; }
.empty { text-align:center; color:var(--muted); padding:40px 0; }

/* 徽标 */
.tag { display:inline-block; font-size:11.5px; padding:2.5px 10px; border-radius:20px; background:#F4EFE7; color:var(--muted); white-space:nowrap; }
.tag.g { background:#E9F5E4; color:#3E7D42; }
.tag.r { background:#FDEEEC; color:#C74A45; }
.tag.y { background:#FCF2DC; color:#B77B1B; }
.tag.b { background:#E8F2FB; color:#2C6BA8; }
.tag.p { background:#FDF0E2; color:#C96A2B; }

/* 模态框 */
.modal-mask { position:fixed; inset:0; background:rgba(60,45,30,.4); display:flex; align-items:center; justify-content:center; z-index:100; padding:20px; backdrop-filter:blur(2px); }
.modal { background:#fff; border-radius:16px; width:640px; max-width:96vw; max-height:88vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(60,45,30,.22); }
.modal.wide { width:860px; }
.modal-head { padding:16px 22px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.modal-head h3 { font-size:16px; color:#4E3826; }
.modal-close { background:none; border:none; font-size:20px; color:var(--muted); line-height:1; }
.modal-body { padding:20px 22px; overflow-y:auto; }
.modal-foot { padding:14px 22px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
/* 操作较多的底栏：操作按钮靠左、关闭靠右，自动换行 */
.modal-foot.spread { justify-content:flex-start; }
.modal-foot.spread .btn.ghost { margin-left:auto; }

/* 表单 */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 16px; }
.form-item label { display:block; font-size:12.5px; color:var(--muted); margin-bottom:5px; }
.form-item.full { grid-column:1 / -1; }
.form-item .req { color:var(--danger); margin-left:2px; }

/* 订餐看板 */
.board-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.room-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; box-shadow:var(--shadow); transition:.15s; }
.room-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(160,120,70,.13); }
.room-card .rc-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.room-card .rc-name { font-weight:600; font-size:15px; color:#4E3826; }
.room-card .rc-info { font-size:12.5px; color:var(--muted); margin-top:4px; }
.room-card.busy { border-left:4px solid var(--warn); }
.room-card.dining { border-left:4px solid var(--danger); }
.room-card.free { border-left:4px solid var(--success); }
.room-card .rc-actions { margin-top:10px; display:flex; gap:6px; flex-wrap:wrap; }

/* 报表条形图 */
.chart-row { display:flex; align-items:center; gap:10px; margin-bottom:7px; font-size:12.5px; }
.chart-row .cl { width:90px; text-align:right; color:var(--muted); flex-shrink:0; }
.chart-row .cb { height:16px; background:linear-gradient(90deg,#F5A05C,#E9833F); border-radius:8px; min-width:2px; }
.chart-row .cv { color:var(--text); white-space:nowrap; }

/* 消息 */
.msg-item { display:flex; gap:12px; padding:13px 18px; border-bottom:1px solid #F5F1E9; align-items:flex-start; }
.msg-item .mi-body { flex:1; }
.msg-item .mi-title { font-weight:500; }
.msg-item .mi-content { color:var(--muted); font-size:12.5px; margin-top:3px; }
.msg-item .mi-date { font-size:11.5px; color:var(--muted); white-space:nowrap; }

/* SOP */
.sop-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:18px 20px; margin-bottom:14px; box-shadow:var(--shadow); }
.sop-card h4 { font-size:15px; margin-bottom:10px; display:flex; align-items:center; gap:8px; color:#4E3826; }
.sop-content { white-space:pre-wrap; color:#5A5248; line-height:1.8; font-size:13.5px; }

/* Toast */
.toast { position:fixed; top:24px; left:50%; transform:translateX(-50%) translateY(-80px); background:#4E3826; color:#fff; padding:12px 24px; border-radius:12px; font-size:13.5px; z-index:200; transition:.25s; box-shadow:0 8px 24px rgba(0,0,0,.22); max-width:88vw; text-align:center; }
.toast.show { transform:translateX(-50%) translateY(0); }
.toast.err { background:var(--danger); }

/* 制度管理 */
.policy-layout { display:flex; gap:18px; align-items:flex-start; }
.policy-cats { width:160px; flex-shrink:0; padding-bottom:8px; }
.policy-cats .nav-item { color:var(--text); }
.policy-cats .nav-item::before { display:none; }
.policy-cats .nav-item.active { background:linear-gradient(135deg,#F5A05C,#E9833F); color:#fff; }
.policy-content { line-height:1.9; font-size:14px; }
.policy-content h2 { font-size:16px; margin:16px 0 8px; }
.policy-content h3 { font-size:14.5px; margin:12px 0 6px; }
.policy-content p { margin:6px 0; }
.policy-content table, .rich-editor table { border-collapse:collapse; margin:10px 0; }
.policy-content td, .policy-content th, .rich-editor td, .rich-editor th { border:1px solid var(--border); padding:6px 12px; }
.policy-content th, .rich-editor th { background:#FCFAF5; }
.policy-content img, .rich-editor img { max-width:100%; }

/* ===== 制度正文统一样式（Word 导入 / 智能排版 / 阅读页共用）=====
   正文 HTML 内不写死字号行距，规范调整只改这里，历史文档自动跟变 */
.policy-doc { font-size:14.5px; line-height:1.9; color:#2C2C2A; word-break:break-word; }
.policy-doc h1 { text-align:center; font-size:19px; font-weight:600; letter-spacing:1px; margin:6px 0 6px; text-indent:0; }
.policy-doc .doc-meta { text-align:center; font-size:12.5px; color:var(--muted); margin-bottom:18px; }
.policy-doc h2 { font-size:16.5px; font-weight:600; margin:22px 0 8px; text-indent:0; }
.policy-doc h3 { font-size:15px; font-weight:600; margin:14px 0 6px; text-indent:0; color:#4E3826; }
.policy-doc h4 { font-size:14.5px; font-weight:600; margin:12px 0 4px; text-indent:0; }
.policy-doc p { margin:6px 0; text-indent:2em; }
.policy-doc p.num { text-indent:0; padding-left:2em; }
.policy-doc p.noindent { text-indent:0; }
.policy-doc p.right, .policy-doc .sign { text-align:right; text-indent:0; }
.policy-doc .sign { margin-top:26px; line-height:2.1; }
.policy-doc ul, .policy-doc ol { margin:6px 0 6px 2em; padding-left:1.2em; }
.policy-doc li { margin:3px 0; }
.policy-doc strong { font-weight:600; }
.policy-doc table { border-collapse:collapse; margin:12px 0; width:100%; }
.policy-doc td, .policy-doc th { border:1px solid var(--border); padding:7px 12px; font-size:13.5px; vertical-align:top; }
.policy-doc th { background:#FCFAF5; font-weight:600; }
.policy-doc img { max-width:100%; height:auto; display:block; margin:10px auto; }

/* ===== Word 导入向导 ===== */
.wi-drop { border:2px dashed #E0CDB4; border-radius:14px; padding:38px 20px; text-align:center; cursor:pointer; background:#FDFBF7; transition:all .18s; }
.wi-drop:hover, .wi-drop.over { border-color:var(--primary); background:#FBF0E4; }
.wi-loading { text-align:center; padding:50px 20px; }
.wi-spin { width:34px; height:34px; margin:0 auto; border:3px solid #EFE3D3; border-top-color:var(--primary); border-radius:50%; animation:wiSpin .8s linear infinite; }
@keyframes wiSpin { to { transform:rotate(360deg); } }
.wi-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.wi-seg { display:flex; gap:6px; }
.wi-meta { font-size:12px; color:var(--muted); }
.wi-stats { font-size:12.5px; color:var(--muted); margin-bottom:10px; }
.wi-cmp { border:1px solid var(--border); border-radius:12px; background:#fff; padding:20px 26px; max-height:400px; overflow-y:auto; }
.wi-doc { font-size:14px; }
.wi-note { font-size:12.5px; line-height:1.8; border-radius:9px; padding:9px 13px; margin-bottom:10px; background:#EAF1FB; color:#2A5488; }
.wi-note.warn { background:#FDF3E3; color:#8A5A12; }

.rich-toolbar { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.rich-editor { border:1px solid var(--border); border-radius:10px; min-height:280px; max-height:420px; padding:12px 14px; overflow-y:auto; background:#fff; line-height:1.8; font-size:14px; }
.rich-editor:focus { outline:none; border-color:var(--primary); }
.rich-editor:empty::before { content:"请输入制度正文，支持标题、表格、图片排版…"; color:var(--muted); }
.role-checks { display:flex; flex-wrap:wrap; gap:8px; }
.role-checks label { display:flex; align-items:center; gap:5px; font-size:13px; background:#FBF6EE; padding:5px 14px; border-radius:20px; cursor:pointer; }
.role-checks input { width:auto; margin:0; }

/* 沽清管理 */
.soldout-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:12px 14px; transition:.15s; }
.soldout-card.is-sold { background:#FFF7F5; border-color:#F3CFCB; opacity:.85; }

/* 订单详情 / 加退菜 */
.od-meta { display:flex; flex-wrap:wrap; gap:8px 18px; background:#FCFAF5; border:1px solid var(--border); border-radius:10px; padding:12px 16px; font-size:13px; color:var(--muted); align-items:center; }
.od-meta b { color:var(--text); }
.od-picker { margin:10px 0 4px; background:#FEFCF8; border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.od-picker table { font-size:13px; }

/* 菜品图片上传 */
.img-up { display:flex; align-items:center; gap:14px; }
.img-prev { width:86px; height:86px; object-fit:cover; border-radius:10px; border:1px solid var(--border); background:#FCFAF5; }
/* 门店图片预览：完整显示不裁切（宽图适配） */
.img-prev.lg { width:230px; height:140px; object-fit:contain; background:#FCFAF5; cursor:zoom-in; box-shadow:var(--shadow); }
.img-btns { display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.img-hint { font-size:11.5px; color:var(--muted); line-height:1.5; }
/* 门店图片要求说明 */
.img-req-list { display:flex; flex-direction:column; gap:6px; background:#FBF6EE; border:1px dashed #E7D9C2; border-radius:10px; padding:12px 16px; }
.img-req-list span { font-size:12.5px; color:#6E6357; line-height:1.6; }
.img-req-list b { color:#C96A2B; }

/* 预订通知卡片预览 */
.nt-card { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow:0 4px 14px rgba(160,120,70,.1); max-width:340px; }
.nt-cover { width:100%; height:130px; object-fit:cover; display:block; }
.nt-cover-ph { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#FFE7CC,#FBD3A8); color:#C96A2B; font-size:14px; }
.nt-body { padding:14px 16px; }
.nt-title { font-size:15.5px; font-weight:700; color:#4E3826; margin-bottom:8px; }
.nt-row { font-size:13px; color:#6E6357; line-height:1.7; }
.nt-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#C96A2B; background:#FDF0E2; border-radius:14px; padding:4px 12px; margin:8px 6px 0 0; }

/* 后厨催菜高亮 */
.sop-card.kds-urge { border-color:#F0C4BE; border-left:4px solid var(--danger); background:#FFFBFA; animation:urgePulse 1.6s ease-in-out infinite; }
@keyframes urgePulse { 0%,100% { box-shadow:0 0 0 0 rgba(217,83,79,0); } 50% { box-shadow:0 0 0 4px rgba(217,83,79,.14); } }

/* 数据大屏（投屏场景：深墨蓝 × 香槟金，玻璃质感） */
.bigscreen { position:relative; overflow:hidden; border-radius:16px; padding:26px 30px; color:#EAE4D6; min-height:calc(100vh - 140px); display:flex; flex-direction:column; background:radial-gradient(1100px 560px at 85% -10%, #17334F 0%, transparent 55%), radial-gradient(900px 520px at -10% 110%, #1D2A46 0%, transparent 52%), linear-gradient(160deg,#111C2E 0%,#0B1220 100%); border:1px solid rgba(210,178,115,.18); box-shadow:0 20px 60px rgba(10,16,28,.5); }
.bigscreen::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(232,194,122,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(232,194,122,.04) 1px, transparent 1px); background-size:46px 46px; pointer-events:none; }
.bigscreen > * { position:relative; z-index:1; }
.bs-head { display:flex; justify-content:space-between; align-items:center; font-size:22px; font-weight:700; letter-spacing:5px; color:#F3E9D2; padding-bottom:18px; border-bottom:1px solid rgba(210,178,115,.22); }
.bs-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:22px; }
.bs-tile { background:rgba(255,255,255,.045); border:1px solid rgba(210,178,115,.16); border-radius:14px; padding:22px 24px; transition:.2s; }
.bs-tile:hover { border-color:rgba(210,178,115,.4); }
.bs-tile.hot { background:linear-gradient(150deg, rgba(232,194,122,.16), rgba(232,194,122,.04)); border-color:rgba(232,194,122,.45); }
.bs-label { font-size:13px; opacity:.6; letter-spacing:1.5px; }
.bs-num { font-size:34px; font-weight:700; margin-top:10px; background:linear-gradient(120deg,#F7E7C3,#E8C27A 55%,#C9A05C); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.bs-num small { font-size:14px; font-weight:400; opacity:.55; margin-left:4px; -webkit-text-fill-color:rgba(234,228,214,.55); }
.bs-bottom { display:grid; grid-template-columns:1.4fr 1fr; gap:16px; margin-top:16px; flex:1; }
.bs-panel { background:rgba(255,255,255,.04); border:1px solid rgba(210,178,115,.14); border-radius:14px; padding:18px 22px; }
.bs-room { display:inline-flex; flex-direction:column; align-items:center; padding:10px 16px; border-radius:10px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); font-size:15px; }
.bs-room small { font-size:11px; opacity:.6; margin-top:3px; }
.bs-room.ok { background:rgba(72,140,86,.3); border-color:rgba(120,200,135,.35); }
.bs-room.busy { background:rgba(170,60,54,.32); border-color:rgba(230,120,110,.35); }
.bs-room.wait { background:rgba(176,132,42,.3); border-color:rgba(232,194,122,.4); }
.bs-rank { width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#F7E7C3,#D3A85E); color:#3A2E16; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }

/* ---------- 响应式：手机端抽屉导航 ---------- */
@media (max-width: 860px) {
  .policy-layout { flex-direction:column; }
  .policy-cats { width:100%; }
  .rpt-grid { grid-template-columns: 1fr !important; }

  /* 侧栏变为抽屉 */
  .sidebar { width:250px; transform:translateX(-105%); transition:transform .25s ease; box-shadow:8px 0 32px rgba(60,45,30,.18); }
  body.nav-open .sidebar { transform:none; }
  body.nav-open .side-mask { opacity:1; pointer-events:auto; }
  .main { margin-left:0; }
  .menu-btn { display:inline-flex; }

  /* 顶栏与内容 */
  .topbar { padding:12px 14px; }
  .topbar h1 { font-size:16.5px; }
  .content { padding:14px 12px 90px; }

  /* 栅格压缩 */
  .stat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .pool-toolbar { flex-direction:column; align-items:stretch; padding:12px; }
  .pool-toolbar .pt-search { width:100%; }
  .pool-toolbar select { flex:1; width:auto; max-width:none; }
  .stat-card { padding:13px 14px; }
  .stat-card .num { font-size:20px; }
  .board-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
  .form-grid { grid-template-columns:1fr; }
  .panel-tools input { width:130px; }
  .panel-tools select { max-width:105px; }

  /* 大屏 */
  .bs-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .bs-bottom { grid-template-columns:1fr; }
  .bs-num { font-size:26px; }

  /* 模态框贴底成抽屉 */
  .modal-mask { align-items:flex-end; padding:0; }
  .modal { width:100%; max-width:100vw; max-height:90vh; border-radius:18px 18px 0 0; }

  /* 触控友好 */
  input,select,textarea { padding:11px 12px; font-size:15px; }
  .btn { padding:11px 16px; }
  .btn.sm { padding:7px 12px; font-size:12.5px; }
  .nav-item { padding:11px 10px; font-size:14px; }
  .nav-group-h { padding:12px 8px 8px; }
  .side-footer { padding:14px 16px; }
  td,th { padding:10px 10px; }
  .toast { top:auto; bottom:24px; transform:translateX(-50%) translateY(120px); }
  .toast.show { transform:translateX(-50%) translateY(0); }
}

/* ============ 培训学习中心 ============ */
.lc-warn { background:#FFF6E5; border:1px solid #F0D9A8; border-radius:10px; padding:10px 14px; font-size:13px; margin-top:12px; }
.lc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; padding:4px 0 8px; }
.lc-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; cursor:pointer; transition:transform .15s, box-shadow .15s; display:flex; flex-direction:column; }
.lc-card:hover { transform:translateY(-2px); box-shadow:0 10px 26px rgba(160,120,70,.16); }
.lc-cover { position:relative; height:118px; background:linear-gradient(135deg,#FDF0E2,#F6E7D6); }
.lc-cover img { width:100%; height:100%; object-fit:cover; }
.lc-cover-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#C99A6B; font-size:20px; font-weight:700; letter-spacing:3px; }
.lc-badges { position:absolute; top:8px; left:8px; display:flex; flex-wrap:wrap; gap:4px; max-width:78%; }
.lc-ringwrap { position:absolute; right:8px; bottom:-14px; background:#fff; border-radius:50%; padding:2px; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.lc-ring { border-radius:50%; display:flex; align-items:center; justify-content:center; }
.lc-ring span { width:72%; height:72%; background:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:var(--text); }
.lc-body { padding:14px 14px 16px; flex:1; display:flex; flex-direction:column; }
.lc-body h4 { margin:0 0 8px; font-size:15px; line-height:1.4; }
.lc-meta { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12px; color:var(--muted); margin-bottom:8px; }
.lc-intro { font-size:12.5px; color:var(--muted); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lc-learn { display:flex; gap:16px; align-items:flex-start; }
.lc-toc { width:270px; flex-shrink:0; }
.lc-toc-item { display:flex; align-items:center; gap:8px; padding:9px 14px; cursor:pointer; border-left:3px solid transparent; font-size:13px; }
.lc-toc-item:hover { background:var(--primary-light); }
.lc-toc-item.active { background:var(--primary-light); border-left-color:var(--primary); font-weight:600; }
.lc-toc-idx { width:22px; height:22px; border-radius:50%; background:#F0E9DD; color:var(--muted); font-size:11.5px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.lc-toc-idx.done { background:var(--success); color:#fff; }
.lc-toc-title { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lc-due { font-size:12px; padding:8px 10px; border-radius:8px; background:#F6F1E9; color:var(--muted); text-align:center; }
.lc-due.warn { background:#FFF6E5; color:var(--danger); font-weight:600; }
.lc-due.ok { background:#EAF6EA; color:var(--success); }
.lc-learn-foot { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:12px 18px; border-top:1px solid var(--border); background:#FCFAF6; border-radius:0 0 var(--radius) var(--radius); }
.lc-attach { background:#FBF3E8; border:1px dashed var(--border); border-radius:10px; padding:14px 16px; font-size:14px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tm-tabs { display:flex; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
@media (max-width: 860px) {
  .lc-learn { flex-direction:column; }
  .lc-toc { width:100%; }
  .lc-grid { grid-template-columns:1fr; }
}
