
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; background:#f5f7fa; color:#1a1a1a; min-height:100vh; padding-bottom:70px; }

:root {
  --primary:#2563eb; --primary-light:#3b82f6; --primary-soft:#eff6ff;
  --accent:#f59e0b; --success:#10b981; --danger:#ef4444; --warn:#f59e0b;
  --bg:#f5f7fa; --card:#fff; --border:#e5e7eb; --text:#1a1a1a; --muted:#6b7280; --light:#9ca3af;
}

a { color:var(--primary); text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; outline:none; background:none; }
input, select, textarea { font-family:inherit; font-size:14px; }

/* ========== 顶部栏 ========== */
.topbar { background:#fff; color:var(--text); padding:0 16px; height:52px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:100; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.topbar .logo { font-size:17px; font-weight:700; color:var(--primary); display:flex; align-items:center; gap:6px; }
.topbar .logo .icon { width:28px; height:28px; background:linear-gradient(135deg,var(--primary),var(--primary-light)); border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; }
.topbar .actions { display:flex; gap:8px; align-items:center; }
.topbar .actions button { background:var(--primary-soft); color:var(--primary); padding:6px 12px; border-radius:20px; font-size:12px; font-weight:500; }
.topbar .actions button:active { transform:scale(.95); }
/* 设置下拉菜单（统一退出入口） */
.set-wrap { position:relative; }
.set-menu { display:none; position:absolute; right:0; top:calc(100% + 8px); background:#fff; border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.14); padding:6px; min-width:150px; z-index:200; }
.set-menu.show { display:block; }
.set-menu button { display:flex; align-items:center; gap:8px; width:100%; background:none; color:var(--text); padding:10px 12px; border-radius:8px; font-size:13px; text-align:left; white-space:nowrap; }
.set-menu button:hover { background:var(--primary-soft); }
.set-menu button:active { transform:none; }
.set-menu .sm-danger { color:#d9480f; }
.set-menu .sm-danger:hover { background:rgba(217,72,15,.08); }
.set-menu .sm-sep { height:1px; background:#f0f0f0; margin:4px 8px; }
#loginTag { font-size:12px; color:var(--success); background:#ecfdf5; padding:4px 10px; border-radius:12px; font-weight:500; }

/* ========== 全站门禁锁屏 ========== */
#gateLock { display:none; position:fixed; top:0; left:0; right:0; bottom:0; z-index:99999; background:var(--bg); align-items:center; justify-content:center; padding:24px; }
html.gate-locked body { background:var(--bg); }
.gate-card { width:100%; max-width:360px; background:#fff; border:1px solid var(--border); border-radius:20px; padding:32px 26px; text-align:center; box-shadow:0 12px 40px rgba(38,34,28,.08); }
.gate-logo { width:64px; height:64px; border-radius:50%; background:var(--primary-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; margin:0 auto 14px; }
.gate-card h2 { font-size:19px; color:var(--text); margin-bottom:6px; }
.gate-sub { font-size:13px; color:var(--muted); margin-bottom:20px; }
.gate-card input { width:100%; box-sizing:border-box; padding:13px 14px; border:1px solid var(--border); border-radius:12px; margin-bottom:10px; font-size:15px; background:#f9fafb; text-align:center; letter-spacing:1px; }
.gate-card input:focus { outline:none; border-color:var(--primary); background:#fff; }
.gate-err { min-height:18px; font-size:12.5px; color:var(--danger); margin-bottom:6px; line-height:1.5; }
.gate-btn { width:100%; padding:14px; border:none; border-radius:12px; background:var(--primary); color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
.gate-btn:active { opacity:.85; }
.gate-hint { font-size:11.5px; color:var(--muted); margin-top:14px; line-height:1.7; }

/* ========== 主容器 ========== */
.main { max-width:480px; margin:0 auto; padding:16px; }

/* ========== 个人信息头部卡片 ========== */
.user-header { background:linear-gradient(135deg,#2563eb,#3b82f6); border-radius:16px; padding:20px; margin-bottom:16px; color:#fff; position:relative; overflow:hidden; }
.user-header::before { content:''; position:absolute; top:-30px; right:-30px; width:120px; height:120px; background:rgba(255,255,255,.08); border-radius:50%; }
.user-header .uh-top { display:flex; justify-content:space-between; align-items:flex-start; }
.user-header .uh-greeting { font-size:13px; opacity:.85; }
.user-header .uh-name { font-size:22px; font-weight:700; margin-top:2px; }
.user-header .uh-info { font-size:13px; opacity:.8; margin-top:4px; }
.user-header .uh-actions { display:flex; align-items:center; gap:10px; }
.user-header .uh-actions .uh-avatar { width:40px; height:40px; background:rgba(255,255,255,.2); border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid rgba(255,255,255,.3); color:#fff; }
.user-header .uh-actions .uh-avatar svg { width:22px; height:22px; }
.user-header .uh-icon-btn { width:36px; height:36px; background:rgba(255,255,255,.15); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; cursor:pointer; position:relative; border:none; }
.user-header .uh-icon-btn svg { width:18px; height:18px; }
.user-header .uh-icon-btn .badge { position:absolute; top:-2px; right:-2px; background:var(--danger); color:#fff; font-size:10px; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:600; }

/* 未登录状态 */
.user-header.guest { background:linear-gradient(135deg,#64748b,#94a3b8); }
.user-header.guest .uh-actions .uh-avatar { font-size:18px; }

/* 登录后隐藏查询框 */
.query-card.logged-in { display:none; }

/* ========== 添加到手机桌面（引导弹窗样式） ========== */
/* 引导弹窗内的步骤列表 */
.ah-step { counter-reset:ah; margin:2px 0 12px; padding:0; list-style:none; }
.ah-step li { position:relative; padding:0 0 12px 30px; font-size:13.5px; color:var(--text); line-height:1.62; }
.ah-step li:before { counter-increment:ah; content:counter(ah); position:absolute; left:0; top:0;
  width:20px; height:20px; border-radius:50%; background:#e8f0ff; color:#2563eb; font-size:12px;
  font-weight:700; display:flex; align-items:center; justify-content:center; }
.ah-step li:last-child { padding-bottom:0; }
.ah-tip { margin:0 0 10px; padding:9px 11px; background:#fff8e6; border:1px solid #ffe6ad;
  border-radius:10px; font-size:12.5px; color:#8a5a00; line-height:1.6; }
.ah-sub { margin:0 0 8px; font-size:12.5px; color:var(--muted); line-height:1.6; }

/* ========== 功能入口网格 ========== */
.func-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:16px; }
.func-item { background:var(--card); border-radius:14px; padding:16px 8px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.04); transition:.2s; cursor:pointer; border:1px solid transparent; }
.func-item:active { transform:scale(.97); }
.func-item .fi-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; font-size:20px; }
.func-item .fi-icon.blue { background:#eff6ff; }
.func-item .fi-icon.green { background:#ecfdf5; }
.func-item .fi-icon.orange { background:#fffbeb; }
.func-item .fi-icon.purple { background:#f5f3ff; }
.func-item .fi-icon.red { background:#fef2f2; }
.func-item .fi-icon.cyan { background:#ecfeff; }
.func-item .fi-label { font-size:13px; font-weight:600; color:var(--text); }
.func-item .fi-desc { font-size:11px; color:var(--muted); margin-top:2px; }

/* ========== 区域标题 ========== */
.section-title { display:flex; justify-content:space-between; align-items:center; margin:20px 0 12px; }
.section-title h3 { font-size:16px; font-weight:700; color:var(--text); }
.section-title .more { font-size:13px; color:var(--primary); font-weight:500; display:flex; align-items:center; gap:2px; }

/* ========== 最新动态列表 ========== */
.news-list { display:flex; flex-direction:column; gap:8px; -webkit-overflow-scrolling:touch; }
.news-item { background:var(--card); border-radius:12px; padding:10px 14px; box-shadow:0 1px 3px rgba(0,0,0,.04); display:flex; gap:10px; align-items:flex-start; cursor:pointer; transition:.2s; border:1px solid transparent; }
.news-item:active { transform:scale(.99); }
.news-item .ni-icon { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; color:var(--text); background:#fff; border:1px solid #ece7dd; box-shadow:0 1px 2px rgba(0,0,0,.03); }
.news-item .ni-icon.notice { background:#fff; color:#d97706; }
.news-item .ni-icon.news { background:#fff; color:#2563eb; }
.news-item .ni-icon.activity { background:#fff; color:#059669; }
.news-item .ni-icon .icon-svg svg { width:20px; height:20px; }
.news-item .ni-icon img { width:22px; height:22px; object-fit:cover; border-radius:4px; }
.news-item .ni-info { flex:1; min-width:0; }
.news-item .ni-title { font-size:14px; font-weight:600; color:var(--text); line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news-item .ni-desc { font-size:12px; color:var(--muted); margin-top:2px; line-height:1.45; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; }
/* 2026-11-13 结构改版：分类做小胶囊靠左、日期+部门靠右，不再塞「点击直接打开…」提示行 */
.news-item .ni-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:5px; font-size:11px; color:var(--light); min-height:19px; }
.news-item .ni-tag { display:inline-block; padding:1px 7px; border-radius:5px; font-size:10.5px; font-weight:600; background:#fdf7e6; color:#8a6b15; border:1px solid #f0e3bd; flex:0 0 auto; max-width:52%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news-item .ni-tag.notice { background:#fffbeb; color:#d97706; border-color:#f6e3ba; }
.news-item .ni-tag.news { background:#eff6ff; color:#2563eb; border-color:#d7e6fd; }
.news-item .ni-tag.activity { background:#ecfdf5; color:#059669; border-color:#ccf0df; }
.news-item .ni-sub { flex:1 1 auto; min-width:0; margin-left:auto; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--light); }

/* ========== 快捷入口 ========== */
.quick-list { display:flex; flex-direction:column; gap:8px; }
.quick-item { background:var(--card); border-radius:12px; padding:14px 16px; display:flex; align-items:center; gap:12px; cursor:pointer; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.quick-item:active { transform:scale(.99); }
.quick-item .qi-icon { width:36px; height:36px; border-radius:10px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--primary); }
.quick-item .qi-text { flex:1; font-size:14px; font-weight:500; color:var(--text); }
.quick-item .qi-arrow { color:var(--light); font-size:14px; }

/* ========== 公告卡片 ========== */
.notice-card { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:16px; }
.notice-card .nc-header { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.notice-card .nc-header h4 { font-size:15px; font-weight:700; color:var(--text); }
.notice-card .nc-body { font-size:13px; line-height:1.8; color:#444; white-space:pre-wrap; }
.notice-card .nc-author { margin-top:10px; font-size:12px; color:var(--light); text-align:right; }
/* 公告静态下发（notices.json） */
.notice-card .nc-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 8px; }
.notice-card .nc-badge { font-size:11px; font-weight:600; color:#2563eb; background:#eff6ff; border:1px solid #dbeafe; border-radius:4px; padding:1px 6px; }
.notice-card .nc-date { font-size:11.5px; color:var(--light); }
.notice-more { display:none; margin:-10px 0 16px; }
.notice-more.show { display:block; }
.notice-more > details > summary { font-size:12.5px; color:var(--muted); cursor:pointer; padding:4px 2px; list-style:none; }
.notice-more > details > summary::-webkit-details-marker { display:none; }
.notice-more > details > summary::before { content:'▸ '; }
.notice-more > details[open] > summary::before { content:'▾ '; }
.notice-more .nm-list { background:var(--card); border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.04); padding:2px 14px; margin-top:4px; }
.notice-more .nm-item { border-bottom:1px solid var(--border); padding:8px 0; }
.notice-more .nm-item:last-child { border-bottom:none; }
.notice-more .nm-item > summary { font-size:13px; color:var(--text); font-weight:500; padding:2px 0; cursor:pointer; list-style:none; }
.notice-more .nm-item > summary::-webkit-details-marker { display:none; }
.notice-more .nm-body { font-size:12.5px; line-height:1.8; color:#444; white-space:pre-wrap; padding:6px 0 2px; }
.notice-more .nm-author { font-size:11.5px; color:var(--light); text-align:right; }

/* 附件下载（公告卡片 / 历史通知 / 公司动态） */
.nc-files, .nm-files, .sn-files, .pub-files { display:flex; flex-direction:column; gap:6px; margin-top:10px; }
/* 页面发布内容卡片（宿舍 / 班车 / 个人信息页顶部） */
.pub-card { display:none; margin:0 14px 12px; background:var(--card); border-radius:14px;
  box-shadow:0 1px 3px rgba(0,0,0,.04); padding:14px 16px; }
.pub-card.show { display:block; }
.pub-card .pc-h { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.pub-card .pc-t { font-size:15px; font-weight:700; color:var(--text); }
.pub-card .pc-date { font-size:11.5px; color:var(--muted); }
.pub-card .pc-body { font-size:13.5px; line-height:1.8; color:#444; white-space:pre-wrap; }
.nf-item { display:flex; align-items:center; gap:7px; padding:8px 10px; background:#f7faff;
  border:1px solid #dbeafe; border-radius:9px; text-decoration:none; font-size:13px; color:#1d4ed8; }
.nf-item:active { background:#eff6ff; }
.nf-item .nf-ic { flex:0 0 auto; font-size:13px; }
.nf-item .nf-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nf-item .nf-size { flex:0 0 auto; font-size:11px; color:var(--light); }
.nf-item .nf-go { flex:0 0 auto; font-size:11.5px; color:#2563eb; background:#fff;
  border:1px solid #dbeafe; border-radius:5px; padding:1px 6px; }
/* 正文里的网址：自动变成可点链接 */
.sn-body a.body-link, .nc-body a.body-link, .nm-body a.body-link, .pub-card .pc-body a.body-link {
  color:#2563eb; text-decoration:underline; word-break:break-all; }
/* 公司动态：静态公告列表 */
.sn-list { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.sn-card { background:var(--card); border-radius:12px; box-shadow:0 1px 3px rgba(0,0,0,.04); padding:12px 14px; }
.sn-card > summary, .sn-card .sn-row { list-style:none; cursor:pointer; display:flex; align-items:flex-start; gap:8px; }
.sn-card > summary::-webkit-details-marker { display:none; }
/* 只有一个附件的条目：整张卡片就是链接，点一下直接打开（2026-11-13 用户要求：不展开、不弹窗、列表里不再显示附件行） */
.sn-card.sn-link { display:block; text-decoration:none; color:inherit; transition:.16s;
  -webkit-tap-highlight-color:transparent; }
.sn-card.sn-link:active { transform:scale(.995); background:#fdfaf3; }
.sn-card.sn-link .sn-arrow { font-size:16px; line-height:1.1; margin-top:1px; }
.sn-head { flex:1; min-width:0; }
.sn-title { font-size:14.5px; font-weight:600; color:var(--text); line-height:1.55; }
.sn-badge { display:inline-block; margin-left:6px; font-size:10.5px; font-weight:600; color:#2563eb;
  background:#eff6ff; border:1px solid #dbeafe; border-radius:4px; padding:0 5px; vertical-align:1px; }
/* 2026-11-13 结构统一：分类胶囊靠左、日期+部门靠右（与首页「最新动态」一致） */
.sn-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11.5px; color:var(--light); margin-top:4px; }
.sn-sub { flex:1 1 auto; min-width:0; margin-left:auto; text-align:right; color:var(--light);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sn-arrow { flex:0 0 auto; color:var(--light); font-size:12px; margin-top:2px; }
.sn-card[open] .sn-arrow { transform:rotate(180deg); }
/* 公司动态：分类标签 + 每条自定义图标 */
.sn-card > summary .sn-ic, .sn-card .sn-row .sn-ic { flex:0 0 auto; width:36px; height:36px; border-radius:9px; background:#fff;
  border:1px solid #ece7dd; box-shadow:0 1px 2px rgba(0,0,0,.03);
  display:flex; align-items:center; justify-content:center; font-size:17px; line-height:1; }
/* 列表图标跟分类标签用同一个图标，尺寸放大到 20px 适配 36px 圆角块 */
.sn-ic .nf-cat-ic { width:20px; height:20px; display:flex; align-items:center; justify-content:center;
  font-size:17px; line-height:1; }
.sn-ic .nf-cat-ic svg { width:20px; height:20px; display:block; }
.sn-ic .nf-cat-ic img { width:22px; height:22px; object-fit:contain; display:block; border-radius:4px; }
.news-item .ni-icon .nf-cat-ic { display:flex; align-items:center; justify-content:center; font-size:16px; }
.news-item .ni-icon .nf-cat-ic svg { width:20px; height:20px; display:block; }
.news-item .ni-icon .nf-cat-ic img { width:22px; height:22px; object-fit:contain; display:block; border-radius:4px; }
.sn-cat, .nc-cat { display:inline-block; font-size:10.5px; font-weight:600; color:#1d4ed8; background:#eff6ff;
  border:1px solid #dbeafe; border-radius:4px; padding:0 5px; vertical-align:1px; }
.sn-cat { margin-right:5px; }
.sn-empty { font-size:13px; color:var(--muted); text-align:center; padding:22px 0;
  background:var(--card); border-radius:12px; }
.sn-body { margin-top:9px; font-size:13px; line-height:1.85; color:#444; white-space:pre-wrap; }
/* 首页方块点开后的弹层（2026-11-13） */
.sn-detail-m { font-size:12px; color:var(--muted); margin-bottom:10px; }
.sn-detail-empty { font-size:13px; color:var(--muted); padding:14px 2px; }
.news-item.sn-mini { cursor:pointer; }
/* 首页「最新动态」里只有一个附件的条目：整块就是链接，点了直接打开，不弹层 */
.news-item.sn-mini.sn-link { text-decoration:none; color:inherit; -webkit-tap-highlight-color:transparent; }
.news-item.sn-mini.sn-link:active { transform:scale(.995); background:#fdfaf3; }

/* ========== 查询框 ========== */
.query-card { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:16px; }
.query-card h3 { font-size:15px; font-weight:700; margin-bottom:12px; color:var(--text); }
.query-row { display:flex; gap:8px; margin-bottom:10px; }
.query-row input { flex:1; padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:14px; background:#f9fafb; }
.query-row input:focus { border-color:var(--primary); background:#fff; outline:none; }
.query-btns { display:flex; gap:8px; }
.query-btns .btn { flex:1; padding:10px; border-radius:10px; font-size:14px; font-weight:600; text-align:center; }
.query-result { margin-top:12px; padding:12px; background:var(--primary-soft); border-radius:10px; display:none; }
.query-result.show { display:block; }
.query-result .qr-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.query-result .qr-item { font-size:13px; color:#444; }
.query-result .qr-item strong { color:var(--primary); }

/* ========== 页面头部 ========== */
.page-header { display:flex; align-items:center; gap:12px; margin-bottom:10px; padding-top:2px; }
.page-header .back-btn { width:36px; height:36px; background:var(--card); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.06); }
.page-header h2 { font-size:18px; font-weight:700; color:var(--text); }

/* ========== 班车路线 ========== */
.bus-tabs { --n:3; display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.bus-tab-row { display:flex; justify-content:center; gap:7px; }
.bus-tab { display:flex; align-items:center; justify-content:center; flex:0 0 calc((100% - (var(--n) - 1) * 7px) / var(--n)); box-sizing:border-box; min-height:38px; padding:6px 5px; border-radius:19px; font-size:13px; line-height:1.3; font-weight:500; color:var(--muted); background:var(--card); white-space:normal; overflow-wrap:anywhere; text-wrap:balance; text-align:center; border:1px solid var(--border); cursor:pointer; transition:.2s; }
.bus-tab.xlong { font-size:12px; }
@media (max-width:352px) { .bus-tab { font-size:12px; padding:6px 3px; } .bus-tab.xlong { font-size:11px; } }
.bus-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.bus-timeline { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.bus-timeline .bt-stop { display:flex; gap:12px; position:relative; padding-bottom:16px; }
.bus-timeline .bt-stop:last-child { padding-bottom:0; }
.bus-timeline .bt-stop .bt-dot { width:12px; height:12px; border-radius:50%; background:var(--primary); border:3px solid #dbeafe; flex-shrink:0; margin-top:4px; }
.bus-timeline .bt-stop .bt-line { position:absolute; left:5px; top:20px; bottom:0; width:2px; background:#e5e7eb; }
.bus-timeline .bt-stop:last-child .bt-line { display:none; }
.bus-timeline .bt-stop .bt-info { flex:1; }
.bus-timeline .bt-stop .bt-name { font-size:14px; font-weight:600; color:var(--text); }
.bus-timeline .bt-stop .bt-time { font-size:12px; color:var(--muted); margin-top:2px; }
.bus-timeline .bt-stop .bt-tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; background:#dbeafe; color:var(--primary); margin-top:4px; }


.bus-hint { margin-top:12px; padding:12px; background:#fffbeb; border-radius:10px; font-size:12px; color:#92400e; line-height:1.6; }
.bus-hint li { margin-left:16px; margin-bottom:4px; }

/* ========== 新闻详情页 ========== */
.news-detail { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.news-detail .nd-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:8px; }
.news-detail .nd-meta { font-size:12px; color:var(--muted); margin-bottom:12px; }
.news-detail .nd-content { font-size:14px; line-height:1.8; color:#444; white-space:pre-wrap; }
.news-detail .nd-actions { display:flex; gap:8px; margin-top:16px; }

/* ========== 个人信息页 ========== */
.profile-card { background:var(--card); border-radius:16px; padding:24px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:16px; }
.profile-card .pc-avatar { width:72px; height:72px; background:linear-gradient(135deg,var(--primary),var(--primary-light)); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 12px; color:#fff; font-size:28px; }
.profile-card .pc-name { font-size:20px; font-weight:700; color:var(--text); }
.profile-card .pc-meta { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 18px; margin-top:12px; font-size:12px; color:var(--light); }
.profile-card .pc-meta span { white-space:nowrap; }

.info-section { background:var(--card); border-radius:12px; padding:16px; margin-bottom:12px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.info-section h4 { font-size:14px; font-weight:700; margin-bottom:12px; color:var(--text); display:flex; align-items:center; gap:6px; }
.info-section h4 .icon-svg { color:var(--primary); }
.info-section h4 .icon-svg svg { width:16px; height:16px; stroke-width:1.9; }
.info-item .ii-icon .icon-svg svg { width:20px; height:20px; stroke-width:1.9; }
.info-item { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f3f4f6; }
.info-item:last-child { border-bottom:none; }
.info-item .ii-icon { width:36px; height:36px; border-radius:10px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; font-size:16px; color:var(--primary); }
.info-item .ii-content { flex:1; }
.info-item .ii-label { font-size:11px; color:var(--light); }
.info-item .ii-value { font-size:14px; font-weight:500; color:var(--text); margin-top:1px; }
.info-item .ii-value .ii-empty { color:var(--muted); font-weight:400; }
.info-item .ii-value .ii-empty::after { content:'（名单里还没录入）'; font-size:11.5px; margin-left:4px; opacity:.75; }
.info-item .ii-value .ii-empty.nohint::after { content:''; }
/* 基本信息：左右两列并排（窄屏 <340px 自动回落单列） */
.info-section .ia-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 8px; }
.info-item.ia-cell { align-items:flex-start; padding:10px 0 4px; border-bottom:none; gap:10px; min-width:0; }
.info-item.ia-cell .ii-icon { flex:0 0 32px; width:32px; height:32px; border-radius:9px; }
.info-item.ia-cell .ii-icon .icon-svg svg { width:17px; height:17px; }
.info-item.ia-cell .ii-content { min-width:0; }
.info-item.ia-cell .ii-value { white-space:normal; overflow-wrap:anywhere; }
/* 并排后格子变窄：备忘录那句「共 N 条 · 待办 M 条」缩 1px 才放得下，箭头改挂右上角不占宽度 */
.info-item.ia-cell.memo-entry { position:relative; padding-right:13px; }
.info-item.ia-cell.memo-entry .ii-value { font-size:13px; }
.info-item.ia-cell.memo-entry .ii-arrow { position:absolute; top:11px; right:0; font-size:16px; }
@media (max-width:339px) { .info-section .ia-grid { grid-template-columns:1fr; } }
/* 消息（通知公告）：个人信息页那一格 + 消息列表弹窗（2026-11-17） */
.info-item.ia-cell.msg-entry { position:relative; padding-right:13px; cursor:pointer; }
.info-item.ia-cell.msg-entry .ii-value { font-size:13px; }
.info-item.ia-cell.msg-entry .ii-arrow { position:absolute; top:11px; right:0; font-size:16px; }
.info-item.ia-cell.msg-entry .ii-value.unread { color:#b45309; font-weight:600; }
.msg-item { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:11px 12px; margin-bottom:9px; }
.msg-item.unread { border-color:#f3d9a4; background:#fffdf6; }
.msg-item .mi-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; cursor:pointer; }
.msg-item .mi-title { font-size:14px; font-weight:700; color:var(--text); line-height:1.5; min-width:0; }
.msg-item .mi-date { font-size:11.5px; color:var(--light); white-space:nowrap; padding-top:2px; }
.msg-item .mi-tags { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:5px; }
.msg-item .mi-new { font-size:10.5px; font-weight:600; color:#b45309; background:#fef3c7; border-radius:4px; padding:1px 6px; }
.msg-item .mi-pin { font-size:10.5px; font-weight:600; color:var(--primary); background:#eff6ff; border-radius:4px; padding:1px 6px; }
.msg-item .mi-cat { font-size:10.5px; color:var(--muted); background:#f3f4f6; border-radius:4px; padding:1px 6px; }
.msg-item .mi-more { font-size:12px; color:var(--primary); margin-left:auto; }
.msg-item .mi-body { display:none; font-size:13px; line-height:1.85; color:#444; white-space:pre-wrap;
  margin-top:8px; padding-top:8px; border-top:1px dashed var(--border); overflow-wrap:anywhere; }
.msg-item.open .mi-body { display:block; }
.msg-item .mi-author { font-size:11.5px; color:var(--light); text-align:right; margin-top:6px; }
/* 合同签订：两个日期并排一格，下面一句续签提醒（窄屏自动换回上下排） */
.info-section .ct-row { display:flex; flex-wrap:wrap; gap:0 8px; }
.info-item.ct-cell { flex:1 1 150px; min-width:0; align-items:flex-start; padding:10px 0 4px; border-bottom:none; gap:10px; }
.info-item.ct-cell .ii-icon { flex:0 0 32px; width:32px; height:32px; border-radius:9px; }
.info-item.ct-cell .ii-icon .icon-svg svg { width:17px; height:17px; }
.info-item.ct-cell .ii-content { min-width:0; }
.info-item.ct-cell .ii-value { white-space:normal; overflow-wrap:anywhere; }
.info-section .ct-tip { margin:8px 0 0; padding-top:9px; border-top:1px dashed #ece7dd; font-size:11.5px; line-height:1.65; color:var(--muted); }
/* 合同剩余天数提醒：只在快到期/已到期时才出现 */
.ct-note { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px; font-size:11px; font-weight:500; background:#fdf7e6; color:#8a6b15; border:1px solid #f0e3bd; vertical-align:1px; }
.ct-note.ct-over { background:#fef2f2; color:#b91c1c; border-color:#fecaca; }

/* ===== 备忘录（只存本机，跟打卡记录同一套思路，不进发布器） ===== */
.page-header .memo-head-btn { margin-left:auto; flex:0 0 auto; display:inline-flex; align-items:center; gap:5px; padding:6px 12px; border-radius:18px; font-size:12.5px; font-weight:600; color:var(--primary); background:var(--primary-soft); border:1px solid #dbeafe; }
.page-header .memo-head-btn:active { background:#dbeafe; }
.page-header .memo-head-btn .icon-svg { display:flex; }
.page-header .memo-head-btn .icon-svg svg { width:15px; height:15px; stroke-width:1.9; }
.page-header .memo-head-btn .memo-badge { min-width:16px; height:16px; padding:0 4px; border-radius:9px; background:#ef4444; color:#fff; font-size:10px; line-height:16px; font-weight:700; text-align:center; }
.info-item.memo-entry { cursor:pointer; }
.info-item.memo-entry .ii-arrow { flex:0 0 auto; color:var(--light); font-size:18px; line-height:1; }
.memo-stat { display:flex; gap:16px; font-size:12.5px; color:var(--muted); margin-bottom:10px; }
.memo-stat b { color:var(--text); font-size:14px; font-weight:700; margin:0 1px; }
.memo-edit { background:#f8fafc; border:1px solid #e9eef4; border-radius:10px; padding:9px 10px; align-items:flex-start; }
.memo-edit .memo-main { cursor:default; }
.memo-edit-line { display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-bottom:6px; }
.memo-edit-line .memo-dash { flex:0 0 auto; font-size:12px; color:var(--light); }
.memo-i-date, .memo-i-time { box-sizing:border-box; height:30px; padding:0 7px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text); font-size:12.5px; font-family:inherit; -webkit-appearance:none; appearance:none; }
.memo-i-date { flex:1 1 96px; min-width:90px; max-width:120px; }
.memo-i-time { flex:0 1 58px; min-width:54px; }
/* 2026-11-13 用户要求「输入的时候可以换行」：内容框由 input 改 textarea，跟着内容自动长高，不用拖角标 */
.memo-i-text { box-sizing:border-box; display:block; width:100%; min-height:30px; max-height:168px; padding:6px 7px; border:1px solid var(--border); border-radius:8px; background:#fff; color:var(--text); font-size:12.5px; line-height:1.5; font-family:inherit; -webkit-appearance:none; appearance:none; resize:none; overflow-y:auto; white-space:pre-wrap; word-break:break-word; }
.memo-edit-line2 { display:flex; align-items:flex-end; gap:6px; }
.memo-edit-line2 .memo-i-text { flex:1 1 auto; min-width:0; width:auto; }
.memo-edit-line2 .memo-edit-btns { padding-bottom:1px; }
.memo-i-text::placeholder { color:var(--light); }
.memo-edit-btns { flex:0 0 auto; display:flex; align-items:center; gap:4px; }
.memo-ok, .memo-x { width:26px; height:26px; box-sizing:border-box; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0; }
.memo-ok { background:var(--primary); color:#fff; }
.memo-x { background:#f1f5f9; color:#94a3b8; }
.memo-ok svg, .memo-x svg { width:13px; height:13px; display:block; }
.memo-tabs { display:flex; gap:7px; margin-bottom:8px; }
.memo-tab { flex:0 0 auto; padding:6px 14px; border-radius:16px; font-size:12.5px; color:var(--muted); background:#f9fafb; border:1px solid var(--border); }
.memo-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.memo-item { display:flex; align-items:flex-start; gap:10px; padding:11px 0; border-bottom:1px solid #f3f4f6; }
.memo-item:last-child { border-bottom:none; }
.memo-star { flex:0 0 auto; padding:1px; color:#cbd5e1; display:flex; margin-top:1px; cursor:pointer; background:none; border:none; }
.memo-star svg { width:19px; height:19px; display:block; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.memo-star.on { color:#f5b301; }
.memo-star.on svg { fill:currentColor; }
.memo-item.done .memo-star { color:#f5b301; }
.memo-main { flex:1 1 auto; min-width:0; cursor:pointer; }
.memo-line1 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11.5px; color:var(--muted); margin-bottom:3px; }
.memo-line1 .memo-d { color:var(--primary); font-weight:600; }
.memo-line1 .memo-t { font-variant-numeric:tabular-nums; font-weight:700; color:var(--text); font-size:12px; }
.memo-text { font-size:13.5px; line-height:1.55; color:var(--text); word-break:break-word; white-space:pre-wrap; }
.memo-item.done .memo-text { color:var(--muted); }   /* 2026-11-13 按用户要求：点亮星星后不加删除线 */
.memo-del { flex:0 0 auto; padding:2px; color:#cbd5e1; }
.memo-del svg { width:15px; height:15px; display:block; }
.memo-empty { text-align:center; color:var(--muted); font-size:12.5px; line-height:1.8; padding:20px 8px; }
.memo-foot { font-size:11.5px; color:var(--light); margin-top:14px; text-align:center; line-height:1.6; }
/* 备份工具条（导出 / 恢复，2026-11-13）：做法照打卡记录的备份 */
.memo-tools { display:flex; gap:8px; justify-content:center; margin-top:12px; }
.memo-tool { display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:16px; font-size:12.5px; color:var(--muted); background:#f9fafb; border:1px solid var(--border); }
.memo-tool:active { background:#eef2f7; }
.memo-tool svg { width:13px; height:13px; stroke-width:2; }
.memo-imp-box { width:100%; box-sizing:border-box; min-height:132px; max-height:300px; padding:10px; border:1px solid var(--border); border-radius:10px; font-size:12px; line-height:1.6; font-family:ui-monospace,Menlo,Consolas,monospace; color:var(--text); background:#fbfbfa; resize:vertical; }
.memo-imp-sum { font-size:12.5px; line-height:1.95; color:var(--text); background:#f9fafb; border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.memo-imp-modes { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.memo-imp-modes label { display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border:1px solid var(--border); border-radius:10px; font-size:13px; line-height:1.55; color:var(--text); background:#fff; }
.memo-imp-modes label.on { border-color:var(--primary); background:var(--primary-soft); }
.memo-imp-modes label em { display:block; font-style:normal; font-size:11.5px; color:var(--muted); margin-top:3px; }
.memo-imp-modes input { margin-top:2px; flex:0 0 auto; }
/* 内嵌在个人信息页里的备忘录卡片（2026-11-13 改：不弹层，直接嵌在页面里，列表形式） */
.memo-inline { display:none; padding:14px 16px 10px; }
.memo-inline.show { display:block; }
.memo-add-btn { display:inline-flex; align-items:center; gap:4px; padding:5px 11px; border-radius:16px; font-size:12.5px; font-weight:600; color:var(--primary); background:var(--primary-soft); border:1px solid #dbeafe; }
.memo-add-btn:active { background:#dbeafe; }
.memo-add-btn svg { width:13px; height:13px; stroke-width:2.4; }
.memo-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.memo-head .memo-stat { flex:1 1 auto; min-width:0; margin-bottom:0; gap:12px; }
.memo-head .memo-acts { margin-left:auto; flex:0 0 auto; display:flex; align-items:center; gap:6px; }
.memo-tabs { margin-bottom:10px; }
.page-header .memo-head-btn.on { background:var(--primary); color:#fff; border-color:var(--primary); }
.page-header .memo-head-btn.on .memo-badge { background:#fff; color:var(--primary); }

.duty-list { display:flex; flex-direction:column; gap:8px; }
.duty-item { display:flex; align-items:flex-start; gap:9px; padding:9px 0; }
.duty-item .di-check { width:5px; height:5px; border-radius:50%; background:var(--primary); opacity:.38; flex-shrink:0; margin-top:7.5px; }
.duty-item .di-text { font-size:13px; color:#444; line-height:1.6; }

/* 折叠面板 */
.accordion { border:1px solid var(--border); border-radius:10px; overflow:hidden; margin-bottom:8px; }
.accordion-header { padding:14px 16px; background:#f9fafb; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-size:14px; font-weight:600; color:var(--text); }
.accordion-header .acc-arrow { transition:.2s; }
.accordion.open .accordion-header .acc-arrow { transform:rotate(180deg); }
.accordion-body { padding:14px 16px; font-size:13px; line-height:1.8; color:#444; display:none; border-top:1px solid var(--border); }
.accordion.open .accordion-body { display:block; }

/* ========== 宿舍信息 ========== */
.dorm-tabs { display:flex; gap:8px; margin-bottom:16px; }
.dorm-tab { flex:1; padding:10px; border-radius:10px; font-size:13px; font-weight:500; color:var(--muted); background:var(--card); text-align:center; border:1px solid var(--border); }
.dorm-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }

.dorm-card { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:12px; }
.dorm-card .dc-header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.dorm-card .dc-icon { width:48px; height:48px; background:#ecfdf5; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.dorm-card .dc-title { font-size:16px; font-weight:700; color:var(--text); }
.dorm-card .dc-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.dorm-card .dc-section { margin-top:12px; }
.dorm-card .dc-section h5 { font-size:12px; color:var(--muted); margin-bottom:8px; font-weight:500; }
.dorm-card .dc-tags { display:flex; gap:6px; flex-wrap:wrap; }
.dorm-card .dc-tag { padding:4px 10px; border-radius:6px; font-size:12px; background:#f3f4f6; color:#374151; }
.dorm-card .dc-mates { display:flex; gap:8px; flex-wrap:wrap; }
.dorm-card .dc-mate { display:flex; align-items:center; gap:6px; padding:6px 12px; background:#f3f4f6; border-radius:20px; font-size:13px; }

.dorm-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.dorm-stat { background:var(--card); border-radius:12px; padding:16px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.dorm-stat .ds-num { font-size:24px; font-weight:700; color:var(--primary); }
.dorm-stat .ds-label { font-size:12px; color:var(--muted); margin-top:4px; }

/* ========== 表单 ========== */
.form-card { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.form-card h3 { font-size:15px; font-weight:700; margin-bottom:16px; color:var(--text); }
.form-row { margin-bottom:14px; }
.form-row label { display:block; font-size:13px; color:var(--muted); margin-bottom:6px; font-weight:500; }
.form-row input, .form-row select, .form-row textarea { width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:10px; font-size:14px; background:#f9fafb; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color:var(--primary); background:#fff; outline:none; }
.form-row textarea { resize:vertical; min-height:100px; }
.form-actions { display:flex; gap:10px; margin-top:20px; }
.form-actions .btn { flex:1; padding:12px; border-radius:10px; font-size:14px; font-weight:600; text-align:center; }

/* ========== 底部Tab导航 ========== */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid #e5e7eb; display:flex; justify-content:space-around; padding:6px 0 8px; z-index:200; }
.bottom-nav .bn-item { display:flex; flex-direction:column; align-items:center; gap:2px; padding:4px 8px; color:var(--muted); font-size:10px; cursor:pointer; transition:.2s; border:none; background:none; }
.bottom-nav .bn-item .bn-icon { font-size:20px; }
.bottom-nav .bn-item.active { color:var(--primary); }
.bottom-nav .bn-item:active { transform:scale(.9); }

/* ========== 按钮 ========== */
.btn { padding:10px 20px; border-radius:10px; font-size:14px; font-weight:600; transition:.2s; display:inline-flex; align-items:center; justify-content:center; gap:4px; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:active { background:#1d4ed8; }
.btn-accent { background:var(--accent); color:#fff; }
.btn-success { background:var(--success); color:#fff; }
.btn-danger { background:var(--danger); color:#fff; }
.btn-outline { background:transparent; border:1px solid var(--border); color:var(--text); }
.btn-sm { padding:6px 12px; font-size:12px; border-radius:8px; }

/* ========== 空状态 ========== */
.empty-state { text-align:center; padding:40px 20px; color:var(--muted); }
.empty-state .es-icon { font-size:48px; margin-bottom:12px; }
/* 空态大图标统一用线条 SVG（原来是 🌱🔔📰 这类 emoji，2026-11-16 换掉） */
.empty-state .es-icon .icon-svg { color:#c3b7a0; }
.empty-state .es-icon .icon-svg svg { width:46px; height:46px; stroke-width:1.3; }
.empty-state p { font-size:14px; }

/* ========== 模态框 ========== */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:500; justify-content:center; align-items:flex-end; backdrop-filter:blur(4px); }
.modal-overlay.show { display:flex; }
.modal { background:#fff; border-radius:20px 20px 0 0; padding:24px; max-width:480px; width:100%; max-height:85vh; overflow:auto; animation:slideUp .3s ease; }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
.modal h3 { color:var(--text); margin-bottom:16px; font-size:16px; font-weight:700; }
.modal .modal-actions { margin-top:20px; display:flex; gap:10px; justify-content:flex-end; }
.modal a.btn-primary { display:inline-flex; padding:10px 20px; border-radius:10px; background:var(--primary); color:#fff; font-weight:600; align-items:center; gap:4px; }
.modal a.btn-primary:hover { background:#1d4ed8; text-decoration:none; }

/* ========== Toast ========== */
.toast { position:fixed; bottom:80px; left:50%; transform:translateX(-50%) translateY(80px); background:#1f2937; color:#fff; padding:12px 24px; border-radius:12px; font-size:14px; z-index:999; opacity:0; transition:.3s; font-weight:500; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.success { background:var(--success); }
.toast.error { background:var(--danger); }
.toast.warn { background:var(--warn); color:#1f2937; }

/* ========== 页面切换 ========== */
.page { display:none; animation:fadeIn .3s ease; }
/* 信息门户与 .main 容器保持一致的居中窄栏布局 */
#page-portal { max-width:480px; margin:0 auto; }
@media(min-width:768px){ #page-portal { max-width:600px; } }
.page.active { display:block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ========== 新闻打开框 ========== */
.news-open-box { text-align:center; padding:8px 0; }
.news-open-box .nob-title { font-size:18px; font-weight:700; color:var(--text); margin-bottom:10px; line-height:1.4; }
.news-open-box .nob-notice { background:#fffbeb; border:1px solid #fde68a; border-radius:12px; padding:16px; margin-bottom:14px; color:#92400e; font-size:13px; line-height:1.7; }
.news-open-box .nob-url { font-size:12px; color:var(--muted); word-break:break-all; margin-bottom:16px; padding:10px; background:#f3f4f6; border-radius:8px; cursor:pointer; }
.news-open-box .nob-url:hover { background:#e5e7eb; }
.news-open-box .nob-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.news-open-box .nob-hint { margin:10px 0 4px; font-size:13px; color:var(--muted); font-weight:600; min-height:20px; }
.modal.modal-wide { max-width:none; width:100%; max-height:92vh; }
@media (min-width: 900px) { .modal-overlay { align-items:center; } .modal.modal-wide { width:900px; border-radius:20px; max-height:90vh; } }
.nob-frame { margin:10px 0 4px; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; background:#fff; }
.nob-frame iframe.nob-iframe { width:100%; height:76vh; border:none; display:block; background:#fff; }
.nob-reader { margin:10px 0 4px; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; background:#fff; max-height:78vh; overflow:auto; display:none; -webkit-overflow-scrolling:touch; }
.nob-reader-content { padding:16px; font-size:15px; line-height:1.85; color:#333; }
/* Word 在线阅读排版（mammoth 输出） */
.word-reader h1, .word-reader h2, .word-reader h3 { margin:18px 0 8px; line-height:1.4; color:#111827; }
.word-reader h1 { font-size:20px; } .word-reader h2 { font-size:17px; } .word-reader h3 { font-size:15px; }
.word-reader p, .word-reader div, .word-reader li { margin:8px 0; text-align:left !important; }
.word-reader h1, .word-reader h2, .word-reader h3 { text-align:center; }
.word-reader img { max-width:100%; height:auto; border-radius:6px; margin:8px 0; }
.word-reader table { border-collapse:collapse; width:100%; margin:10px 0; font-size:13px; }
.word-reader table td, .word-reader table th { border:1px solid #d1d5db; padding:6px 8px; vertical-align:top; }
.word-reader ul, .word-reader ol { padding-left:22px; margin:8px 0; }
.word-reader blockquote { margin:10px 0; padding:6px 12px; border-left:3px solid var(--primary,#2563eb); background:#f8fafc; color:#475569; }
.word-reader a { color:var(--primary,#2563eb); word-break:break-all; }
.nob-reader-content h1 { font-size:20px; margin:0 0 12px; }
.nob-reader-content h2 { font-size:18px; margin:16px 0 8px; }
.nob-reader-content h3 { font-size:16px; margin:14px 0 6px; }
.nob-reader-content img { max-width:100%; border-radius:8px; display:block; margin:12px auto; }
.nob-reader-content a { color:#2563eb; text-decoration:underline; word-break:break-all; }
.nob-reader-content ul { margin:10px 0; padding-left:20px; }
.nob-reader-content li { margin:4px 0; }
.nob-reader-content p { margin:0 0 12px; }
.nob-bar { display:flex; align-items:center; gap:8px; padding:8px 10px; background:#f8fafc; border-bottom:1px solid #e5e7eb; font-size:12px; color:var(--muted); text-align:left; }
.nob-bar .nob-dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.nob-bar .nob-dot.r { background:#f87171; }
.nob-bar .nob-dot.y { background:#fbbf24; }
.nob-bar .nob-dot.g { background:#34d399; }

/* ========== 记录表格 ========== */
.record-table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; font-size:13px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.record-table th { background:var(--primary); color:#fff; padding:12px; text-align:left; }
.record-table td { padding:10px 12px; border-bottom:1px solid #f0f0f0; }
.record-table tr:hover td { background:#f8fbfe; }
.tag { display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:500; }
.tag-done { background:#ecfdf5; color:#059669; }
.tag-pending { background:#fffbeb; color:#d97706; }
.tag-urgent { background:#fef2f2; color:#dc2626; }

/* ========== 响应式 ========== */
@media(min-width:768px){
  .main { max-width:600px; }
  .func-grid { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:380px){
  .func-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
  .func-item { padding:12px 4px; }
  .func-item .fi-icon { width:44px; height:44px; font-size:22px; }
  .fi-emoji { font-size:22px; }
}


/* ========== 员工搜索栏 ========== */
.staff-search-bar { display:flex; gap:8px; margin-bottom:12px; }
.staff-search-bar input { flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:10px; font-size:14px; background:#f9fafb; }
.staff-search-bar input:focus { border-color:var(--primary); background:#fff; outline:none; }
.staff-search-bar button { padding:10px 16px; border-radius:10px; font-size:13px; font-weight:600; background:var(--primary); color:#fff; }
.staff-search-bar button:last-child { background:var(--border); color:var(--text); }

/* ========== 班车区域 ========== */
.bus-area-label { font-size:14px; font-weight:600; color:var(--text); margin-bottom:10px; }
.bus-routes { display:grid; grid-template-columns:repeat(auto-fill,minmax(146px,1fr)); gap:8px; margin-bottom:14px; }
.bus-route { min-width:0; width:100%; box-sizing:border-box; padding:10px 12px; border-radius:12px; background:var(--card); border:2px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; text-align:center; cursor:pointer; transition:.2s; }
.bus-route.active { border-color:var(--primary); background:var(--primary-soft); }
.bus-route .br-name { font-size:14px; font-weight:600; color:var(--text); max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bus-route.active .br-name { color:var(--primary); }
.bus-route .br-meta { font-size:11px; color:var(--muted); line-height:1.35; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bus-route .br-meta2 { font-size:11px; color:var(--muted); line-height:1.35; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bus-route .br-meta3 { font-size:10.5px; color:var(--light); line-height:1.3; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bus-info-card { background:var(--card); border-radius:12px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:14px; }
.bus-info-card .bic-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid #f3f4f6; }
.bus-info-card .bic-row:last-child { border-bottom:none; }
.bus-info-card .bic-label { font-size:13px; color:var(--muted); }
.bus-info-card .bic-row b { font-size:14px; color:var(--text); }
/* 车辆清单：一辆一行，单车与多车同一套版式（多车才显示序号） */
.bus-info-card .bic-head { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:0 0 8px; }
.bus-info-card .bic-label { display:inline-flex; align-items:center; gap:6px; }
.bus-info-card .bic-label .icon-svg svg { width:15px; height:15px; stroke-width:1.8; }
.bus-info-card .bic-count { flex:0 0 auto; font-size:12px; font-weight:600; color:var(--primary); background:var(--primary-soft); border-radius:20px; padding:2px 10px; }
.bus-info-card .bic-cars { display:block; }
.bus-info-card .bic-car { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #f3f4f6; }
.bus-info-card .bic-car .bc-no { flex:0 0 20px; height:20px; border-radius:6px; background:#f3f4f6; color:var(--muted); font-size:11px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.bus-info-card .bic-car .bc-driver { flex:1; min-width:0; font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bus-info-card .bic-car .bc-plate { flex:0 0 auto; font-size:13px; color:var(--muted); white-space:nowrap; }
/* .bc-time 仅在卡内发车时间不统一时出现（同时间不重复显示） */
.bus-info-card .bic-car .bc-time { flex:0 0 auto; min-width:38px; text-align:right; font-size:12px; font-weight:600; color:var(--primary); white-space:nowrap; font-variant-numeric:tabular-nums; }
/* 站点时间轴顶部说明（估算/双时间提示） */
.bt-note { font-size:12px; color:var(--muted); line-height:1.6; margin-bottom:8px; }

/* ========== 岗位职责模块 ========== */
.duty-card { background:var(--card); border-radius:14px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.duty-card h3 { font-size:17px; font-weight:700; color:var(--text); margin-bottom:16px; }
.duty-overview { margin-bottom:20px; }
.duty-overview h4 { font-size:14px; font-weight:600; color:var(--text); margin-bottom:10px; }
.duty-list { list-style:none; }
.duty-list li { display:flex; align-items:flex-start; gap:10px; padding:8px 0; }
.duty-list-icon { width:20px; height:20px; background:var(--primary-soft); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--primary); flex-shrink:0; margin-top:2px; font-weight:700; }
.duty-modules-title { font-size:15px; font-weight:600; color:var(--text); margin-bottom:12px; padding-top:12px; border-top:1px solid var(--border); }
.duty-module { border:1px solid var(--border); border-radius:10px; overflow:hidden; margin-bottom:10px; }
.duty-module-header { padding:14px 16px; background:#f8fafc; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-size:14px; font-weight:600; color:var(--text); }
.duty-module-header .dm-arrow { transition:.2s; font-size:12px; color:var(--muted); }
.duty-module.open .duty-module-header .dm-arrow { transform:rotate(180deg); }
.duty-module-body { padding:14px 16px; display:none; border-top:1px solid var(--border); }
.duty-module.open .duty-module-body { display:block; }
.duty-steps { display:flex; flex-direction:column; gap:10px; }
.duty-step { display:flex; align-items:flex-start; gap:10px; }
.duty-step-num { width:24px; height:24px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.duty-step-text { font-size:14px; color:#444; line-height:1.6; padding-top:2px; }

/* ========== 新闻分类筛选 ========== */
.news-filter-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-bottom:12px; }
.news-filter-tabs::-webkit-scrollbar { display:none; }
.news-filter-tab { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 8px; border-radius:18px; font-size:13px; line-height:1.35; font-weight:500; color:var(--muted); background:var(--card); white-space:nowrap; border:1px solid var(--border); cursor:pointer; transition:.2s; min-width:0; }
.news-filter-tab .nf-cat-ic { width:15px; height:15px; flex:0 0 auto; display:block; }
.news-filter-tab .nf-cat-ic svg { width:15px; height:15px; display:block; }
.news-filter-tab .nf-cat-ic img { width:15px; height:15px; display:block; object-fit:contain; border-radius:3px; }
.news-filter-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.page-header #nfAllBtn { margin-left:auto; flex:0 0 auto; padding:6px 15px; }
/* 动态页的分类也可能有子分类：方块尺寸/圆角直接复用人才培养页那套（.talent-subs/.talent-sub），
   只把选中色换成这一页的蓝，跟分类行、条目标签保持同一色系 */
#newsSubBox { margin:-4px 0 12px; }
#newsSubBox .talent-sub.active { background:#eff6ff; border-color:var(--primary); color:#1d4ed8; }
#newsSubBox .talent-sub.active .ts-c { color:#1d4ed8; opacity:.9; }
/* 人才培养页的「全部」也放标题栏（跟公司动态一致），分类行只放真正的分类 */
.page-header #talentAllBtn { margin-left:auto; flex:0 0 auto; padding:6px 15px; }
.page-header #talentAllBtn.active { background:linear-gradient(135deg,#e0c274 0%,#c9a227 100%);
  color:#43320a; border-color:#c9a227; box-shadow:0 1px 4px rgba(180,140,30,.28); }
@media (max-width:352px) { .news-filter-tab { font-size:12px; padding:7px 5px; gap:4px; } }
.news-item .ni-icon.publicity { background:#fff; }
.news-item .ni-icon.industry { background:#fff; }
.news-item .ni-tag.publicity { background:#f5f3ff; color:#7c3aed; }
.news-item .ni-tag.industry { background:#ecfeff; color:#0891b2; }

/* ========== 列管理按钮 ========== */
.btn-secondary { background:#6b7280; color:#fff; }



/* ========== 打卡记录 ========== */
.checkin-card { background:var(--card); border-radius:16px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:14px; }
.checkin-card .ci-date { font-size:18px; font-weight:700; color:var(--text); margin-bottom:12px; }
.checkin-card .ci-status { display:inline-block; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:500; margin-bottom:12px; }
.checkin-card .ci-status.work { background:#ecfdf5; color:#059669; }
.checkin-card .ci-status.rest { background:#f3f4f6; color:#6b7280; }
.checkin-card .ci-status.late { background:#fef2f2; color:#dc2626; }
.checkin-card .ci-times { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.checkin-card .ci-time { text-align:center; padding:14px; background:#f9fafb; border-radius:12px; }
.checkin-card .ci-time .ci-label { font-size:12px; color:var(--muted); margin-bottom:4px; }
.checkin-card .ci-time .ci-val { font-size:22px; font-weight:700; color:var(--text); }
.checkin-card .ci-time .ci-val.empty { color:var(--light); font-size:16px; }
.checkin-card .ci-time .ci-count { display:inline-block; margin-left:6px; font-size:11px; font-weight:600; color:var(--primary); background:#eff6ff; border-radius:10px; padding:2px 7px; vertical-align:middle; }
.ci-log-title { font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:600; }
.ci-log { display:inline-flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.ci-log-item { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:10px; font-size:12px; font-weight:600; background:#f9fafb; border:1px solid #e5e7eb; color:var(--text); }
.ci-log-item .cil-num { font-size:10px; font-weight:600; color:var(--primary); background:#eff6ff; border-radius:8px; padding:2px 6px; }
.ci-log-item .cil-time { font-variant-numeric:tabular-nums; }
.checkin-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-bottom:16px; }
.checkin-calendar .cc-day { min-height:66px; padding:5px 4px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; background:var(--card); border-radius:12px; font-size:12px; cursor:pointer; border:2px solid transparent; position:relative; overflow:hidden; }
.checkin-calendar .cc-day .cc-d { font-size:13px; font-weight:600; line-height:1; }
.checkin-calendar .cc-day .cc-s { font-size:9px; margin-top:1px; }
.checkin-calendar .cc-day .cc-t { font-size:9px; line-height:1.5; margin-top:3px; color:#059669; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
.checkin-calendar .cc-day.late .cc-t { color:#ef4444; }
.checkin-calendar .cc-day.rest .cc-t { color:#6b7280; }
.checkin-calendar .cc-day .cc-badge { position:absolute; top:4px; right:4px; font-size:8px; background:var(--primary); color:#fff; border-radius:6px; padding:1px 4px; font-weight:600; }
.checkin-calendar .cc-day.work { border-color:#10b981; }
.checkin-calendar .cc-day.rest { border-color:#9ca3af; background:#f3f4f6; }
.checkin-calendar .cc-day.late { border-color:#ef4444; }
.checkin-calendar .cc-day.today { background:var(--primary-soft); border-color:var(--primary); }
.checkin-calendar .cc-weekday { text-align:center; font-size:11px; color:var(--muted); padding:4px; }

/* ========== 招聘信息 ========== */
.job-card { background:var(--card); border-radius:14px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:12px; border-left:4px solid var(--primary); }
.job-card .jc-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:6px; }
.job-card .jc-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.job-card .jc-tag { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:500; background:#eff6ff; color:var(--primary); }
.job-card .jc-tag.salary { background:#fffbeb; color:#d97706; }
.job-card .jc-tag.deadline { background:#f3f4f6; color:#6b7280; }
.job-card .jc-require { font-size:13px; color:#444; line-height:1.6; }
.job-card .jc-actions { margin-top:12px; display:flex; gap:8px; }
.job-status-open { background:#ecfdf5; color:#059669; }
.job-status-closed { background:#f3f4f6; color:#9ca3af; }

/* ========== 招聘信息 / 人才培养（同一页两段） ========== */
.jt-tabs { display:flex; gap:8px; margin:2px 0 14px; }
.jt-tab { flex:1 1 0; min-width:0; padding:10px 6px; border-radius:12px; font-size:14px; font-weight:600;
  color:var(--muted); background:var(--card); border:1px solid var(--border); cursor:pointer;
  transition:.2s; font-family:inherit; }
.jt-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 2px 8px rgba(37,99,235,.18); }
/* 知识类型：等宽宫格（参照班车/公司活动：每行固定列数、等宽居中、自动换行不横滑） */
.talent-cats { --n:3; display:flex; flex-direction:column; gap:7px; padding:0; margin:2px 0 12px; }
.talent-cat-row { display:flex; justify-content:center; gap:7px; }
.talent-cat { display:flex; align-items:center; justify-content:center;
  flex:0 0 calc((100% - (var(--n) - 1) * 7px) / var(--n)); box-sizing:border-box;
  min-height:38px; padding:7px 5px; border-radius:19px; font-size:13px; line-height:1.3;
  font-weight:500; color:var(--muted); background:var(--card); border:1px solid var(--border);
  cursor:pointer; transition:.2s; font-family:inherit; text-align:center;
  white-space:normal; overflow-wrap:anywhere; text-wrap:balance; }
.talent-cat.long { font-size:12px; }
/* 知识类型标签里的图标（跟公司动态那排分类标签一致，2026-11-16）
   13px + 4px 间距 + 左右 5px 内边距：390 宽下 4 个一排实测需要 81px、每格有 84px，刚好不折字 */
.talent-cat { gap:4px; }
.talent-cat .nf-cat-ic { width:13px; height:13px; flex:0 0 auto; display:block; line-height:0; }
.talent-cat .nf-cat-ic svg { width:13px; height:13px; display:block; }
.talent-cat .nf-cat-ic img { width:13px; height:13px; display:block; object-fit:contain; border-radius:3px; }
.talent-cat span { min-width:0; }
.talent-cat.active { background:linear-gradient(135deg,#e0c274 0%,#c9a227 100%);
  color:#43320a; border-color:#c9a227; font-weight:600; }
@media (max-width:352px) { .talent-cat { font-size:12px; padding:7px 4px; } .talent-cat.long { font-size:11px; } }
/* 子分类：小方块（一行 3 个、整体居中、自动换行不横滑） */
.talent-sub-box { margin:2px 0 10px; }
.talent-sub-head { font-size:12px; color:var(--muted); margin:0 2px 8px; }
.talent-subs { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.talent-sub { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  flex:0 0 calc((100% - 20px) / 3); box-sizing:border-box;
  aspect-ratio:1 / 1; padding:10px 8px; overflow:hidden; background:var(--card);
  border:1px solid #e2dbcf; border-radius:14px;
  font-size:13px; font-weight:600; color:var(--text); text-align:center; cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,.04); transition:background .15s,border-color .15s; }
@media (max-width:352px) { .talent-subs { gap:8px; } .talent-sub { flex-basis:calc((100% - 16px) / 3); padding:8px 5px; font-size:12px; } }
.talent-sub:active { transform:scale(.97); }
.talent-sub.active { background:#fdf7e6; border-color:#c9a227; color:#8a6b15; }
.talent-sub .ts-n { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden; line-height:1.35; word-break:break-word; }
.talent-sub .ts-c { font-size:11px; font-weight:500; color:var(--muted); }
.talent-sub.active .ts-c { color:#8a6b15; opacity:.9; }
/* 方块里的分类图标（2026-11-16）：分类没配图标就不出这一行，保持原来的纯文字方块 */
.talent-sub .ts-ic { display:block; width:30px; height:30px; line-height:0; }
.talent-sub .ts-ic svg, .talent-sub .ts-ic img { width:100%; height:100%; display:block; object-fit:contain; }
.talent-sub:has(.ts-ic) { gap:3px; padding:8px 6px; }
.talent-sub:has(.ts-ic) .ts-n { -webkit-line-clamp:2; }
@media (max-width:352px) { .talent-sub .ts-ic { width:26px; height:26px; } }
/* 人才培养资料卡：结构与「公司动态」列表卡完全一致（左侧 36px 图标块 + 标题 + 分类/日期 + 右侧箭头），
   只在页面上保留金色分类标签和点按反馈（2026-11-16 用户要求「结构与公司动态对齐」） */
.talent-card { margin-bottom:10px; cursor:pointer; transition:transform .18s,background .18s;
  -webkit-tap-highlight-color:transparent; }
.talent-card:last-child { margin-bottom:0; }
.talent-card:active { transform:scale(.995); background:#fdfaf3; }
.talent-card .sn-title { font-size:14.5px; font-weight:700; }
.talent-card .sn-cat.tc-cat { color:#8a6b15; background:#fdf7e6; border-color:#f0e3bd; }
.talent-body { font-size:15px; line-height:1.85; color:var(--text); white-space:pre-wrap; word-break:break-word; padding:2px 0 6px; }
/* 人才培养专题独立页：标题下的面包屑（上级分类 · 共 N 项） */
#page-tsub .page-header h2 { display:flex; align-items:center; gap:6px; min-width:0; }
#page-tsub .page-header h2 #tsubTitle { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tsub-crumb { font-size:12px; color:var(--muted); margin:0 2px 10px; line-height:1.5; }
.tsub-crumb b { font-weight:600; color:#8a6b15; }

/* ========== 宿舍信息增强 ========== */
.dorm-room-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.dorm-room-header .drh-icon { width:56px; height:56px; background:linear-gradient(135deg,#10b981,#34d399); border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:26px; color:#fff; }
.dorm-room-header .drh-info { flex:1; }
.dorm-room-header .drh-title { font-size:18px; font-weight:700; color:var(--text); }
.dorm-room-header .drh-sub { font-size:13px; color:var(--muted); margin-top:2px; }
.dorm-facility-tag { display:inline-flex; align-items:center; gap:4px; padding:6px 12px; border-radius:8px; font-size:12px; background:#f3f4f6; color:#374151; }
.dorm-facility-tag .df-icon { font-size:14px; }
.dorm-mate-card { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#f9fafb; border-radius:10px; margin-bottom:8px; }
.dorm-mate-card .dmc-avatar { width:36px; height:36px; background:var(--primary-soft); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--primary); font-weight:600; }
.dorm-mate-card .dmc-info { flex:1; }
.dorm-mate-card .dmc-name { font-size:14px; font-weight:500; color:var(--text); }
.dorm-mate-card .dmc-dept { font-size:12px; color:var(--muted); }
.dorm-building-card { background:var(--card); border-radius:14px; padding:16px; margin-bottom:12px; display:flex; align-items:center; gap:14px; box-shadow:0 1px 3px rgba(0,0,0,.04); cursor:pointer; transition:.2s; }
.dorm-building-card:active { transform:scale(.98); }
.dorm-building-card .dbc-icon { width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.dorm-building-card .dbc-info { flex:1; }
.dorm-building-card .dbc-name { font-size:15px; font-weight:600; color:var(--text); }
.dorm-building-card .dbc-detail { font-size:12px; color:var(--muted); margin-top:2px; }
.dorm-building-card .dbc-arrow { color:var(--light); font-size:18px; }
.dorm-rule-item { padding:14px 0; border-bottom:1px solid #f3f4f6; }
.dorm-rule-item:last-child { border-bottom:none; }
.dorm-rule-item .dri-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.dorm-rule-item .dri-desc { font-size:13px; color:#444; line-height:1.6; padding-left:22px; }

/* ========== 班车停靠时间 ========== */
.bus-stop-detail { background:var(--card); border-radius:14px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:14px; }
.bus-stop-detail .bsd-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.bus-stop-detail .bsd-title { font-size:15px; font-weight:700; color:var(--text); }
.bus-stop-detail .bsd-plate { padding:4px 10px; border-radius:20px; font-size:12px; background:var(--primary-soft); color:var(--primary); font-weight:500; }
.bus-stop-timeline { display:flex; flex-direction:column; gap:0; }
.bus-stop-item { display:flex; gap:12px; position:relative; padding-bottom:20px; }
.bus-stop-item:last-child { padding-bottom:0; }
.bus-stop-item .bsi-dot { width:14px; height:14px; border-radius:50%; background:var(--primary); border:3px solid #dbeafe; flex-shrink:0; margin-top:2px; }
.bus-stop-item .bsi-line { position:absolute; left:6px; top:18px; bottom:0; width:2px; background:#e5e7eb; }
.bus-stop-item:last-child .bsi-line { display:none; }
.bus-stop-item .bsi-info { flex:1; }
.bus-stop-item .bsi-name { font-size:14px; font-weight:600; color:var(--text); }
.bus-stop-item .bsi-time { font-size:13px; color:var(--primary); font-weight:600; margin-top:2px; }

/* ========== 登录统计 ========== */
.stat-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:16px; }
.stat-card { background:var(--card); border-radius:14px; padding:16px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.stat-card .sc-num { font-size:28px; font-weight:700; color:var(--primary); }
.stat-card .sc-label { font-size:12px; color:var(--muted); margin-top:4px; }
.stat-chart { background:var(--card); border-radius:14px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:14px; }
.stat-chart h4 { font-size:14px; font-weight:600; margin-bottom:12px; }
.stat-bar { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.stat-bar .sb-label { width:60px; font-size:12px; color:var(--muted); text-align:right; }
.stat-bar .sb-track { flex:1; height:20px; background:#f3f4f6; border-radius:10px; overflow:hidden; }
.stat-bar .sb-fill { height:100%; background:var(--primary); border-radius:10px; transition:.3s; }
.stat-bar .sb-val { width:40px; font-size:12px; color:var(--text); font-weight:500; }

/* ========== 圆润图标 ========== */
.func-item .fi-icon { border-radius:16px; }
.topbar .logo .icon { border-radius:10px; }
.user-header .uh-avatar { border-radius:50%; }
.news-item .ni-icon { border-radius:12px; }
.quick-item .qi-icon { border-radius:12px; }
.info-item .ii-icon { border-radius:12px; }
.profile-card .pc-avatar { border-radius:50%; }
.dorm-room-header .drh-icon { border-radius:18px; }
.dorm-mate-card .dmc-avatar { border-radius:50%; }
.dorm-building-card .dbc-icon { border-radius:16px; }

/* ========== 线形图标 ========== */
.icon-svg { display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; line-height:1; }
.icon-svg svg { width:1em; height:1em; display:block; }
.fi-icon .icon-svg svg { width:22px; height:22px; }
/* 功能入口自定义上传图片图标 */
.fi-icon .fi-img { width:60%; height:60%; max-width:30px; max-height:30px; object-fit:contain; border-radius:6px; }
.func-item.func-featured .fi-icon .fi-img { max-width:36px; max-height:36px; }
.bn-icon .icon-svg svg { width:22px; height:22px; }
.page-header h2 .icon-svg svg { width:26px; height:26px; margin-right:6px; }

/* ========== 色彩明晰 ========== */
.func-item .fi-icon.blue { background:linear-gradient(135deg,#dbeafe,#eff6ff); color:#2563eb; }
.func-item .fi-icon.green { background:linear-gradient(135deg,#d1fae5,#ecfdf5); color:#059669; }
.func-item .fi-icon.orange { background:linear-gradient(135deg,#fef3c7,#fffbeb); color:#d97706; }
.func-item .fi-icon.purple { background:linear-gradient(135deg,#ede9fe,#f5f3ff); color:#7c3aed; }
.func-item .fi-icon.red { background:linear-gradient(135deg,#fee2e2,#fef2f2); color:#dc2626; }
.func-item .fi-icon.cyan { background:linear-gradient(135deg,#cffafe,#ecfeff); color:#0891b2; }

/* ========== 首页功能入口 emoji 图标 ========== */
.fi-emoji { font-size:26px; line-height:1; display:inline-block; filter:drop-shadow(0 2px 3px rgba(0,0,0,.12)); transition:transform .25s cubic-bezier(.34,1.56,.64,1); }
.func-item .fi-icon { width:52px; height:52px; border-radius:16px; font-size:26px; box-shadow:0 2px 8px rgba(0,0,0,.06); transition:transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
.func-item:hover .fi-icon { transform:translateY(-4px) scale(1.12); box-shadow:0 8px 18px rgba(0,0,0,.14); }
.func-item:hover .fi-emoji { transform:scale(1.15); }
.func-item:active .fi-icon { transform:scale(.92); }
.func-item { transition:transform .2s; }
.func-item:hover { transform:translateY(-2px); }
/* ---- 信息门户大卡片（白名单用户专享，横跨整行凸显重要性） ---- */
.func-item.func-featured { grid-column:1 / -1; display:flex; align-items:center; gap:14px; text-align:left; padding:14px 18px; background:linear-gradient(135deg,#fffbeb,#fef3c7 55%,#fde68a); border:1px solid #fcd34d; border-radius:16px; box-shadow:0 4px 14px rgba(217,119,6,.12); }
.func-item.func-featured:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(217,119,6,.2); }
.func-item.func-featured .fi-icon { width:56px; height:56px; border-radius:16px; margin:0; flex-shrink:0; background:linear-gradient(135deg,#fef3c7,#fde68a); font-size:30px; }
.func-item.func-featured .ff-body { flex:1; min-width:0; }
.func-item.func-featured .fi-label { font-size:15px; font-weight:700; }
.func-item.func-featured .fi-desc { font-size:12px; margin-top:3px; color:#92400e; }
.func-item.func-featured .ff-tag { flex-shrink:0; font-size:11px; font-weight:600; color:#92400e; background:rgba(255,255,255,.75); border:1px solid #fcd34d; border-radius:999px; padding:3px 9px; }
.func-item.func-featured .ff-arrow { flex-shrink:0; font-size:22px; font-weight:700; color:#b45309; line-height:1; }
@media(max-width:380px){
  .func-item .fi-icon { width:42px; height:42px; border-radius:13px; }
  .fi-emoji { font-size:21px; }
}

/* ========== 打卡按钮 ========== */
.checkin-btn-group { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.checkin-btn { padding:16px; border-radius:14px; text-align:center; font-size:14px; font-weight:600; transition:.2s; }
.checkin-btn:active { transform:scale(.97); }
.checkin-btn.in { background:linear-gradient(135deg,#2563eb,#3b82f6); color:#fff; }
.checkin-btn.out { background:linear-gradient(135deg,#10b981,#34d399); color:#fff; }
.checkin-btn.rest { background:linear-gradient(135deg,#6b7280,#9ca3af); color:#fff; }

/* ========== 宿舍申请表单 ========== */
.dorm-change-form { background:var(--card); border-radius:14px; padding:16px; box-shadow:0 1px 3px rgba(0,0,0,.04); margin-bottom:14px; }
.dorm-change-form h4 { font-size:15px; font-weight:700; margin-bottom:14px; }



/* ========== 打卡表盘 ========== */
.ci-dial-wrap { display:flex; flex-direction:column; align-items:center; padding:16px 0 6px; }
.ci-dial-box { position:relative; width:230px; height:230px; cursor:pointer; transition:.2s; filter:drop-shadow(0 6px 18px rgba(37,99,235,.20)); }
.ci-dial-box:active { transform:scale(.95); }
.ci-pulse { position:absolute; inset:-8px; border-radius:50%; border:2px solid var(--primary); opacity:0; animation:ciPulse 2.4s ease-out infinite; pointer-events:none; }
@keyframes ciPulse { 0%{transform:scale(.93);opacity:.45;} 70%{transform:scale(1.07);opacity:0;} 100%{opacity:0;} }
.ci-digital { font-size:36px; font-weight:700; color:var(--text); letter-spacing:1px; margin-top:8px; font-variant-numeric:tabular-nums; }
.ci-date { font-size:13px; color:var(--muted); margin-bottom:10px; }
.ci-hint { font-size:14px; font-weight:600; color:var(--primary); margin-bottom:4px; }
.ci-hint.done { color:#059669; }
.ci-month-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ci-month-nav button { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:6px 14px; font-size:14px; color:var(--text); }
.ci-month-nav .cm-title { font-size:15px; font-weight:600; color:var(--text); }
.ci-legend { display:flex; gap:12px; justify-content:center; font-size:11px; color:var(--muted); margin:8px 0 4px; }
.ci-legend span { display:inline-flex; align-items:center; gap:4px; }
.ci-legend i { width:10px; height:10px; border-radius:3px; display:inline-block; }
/* 招聘/宿舍补充 */
.job-apply-btn { width:100%; }
.dorm-rule-sec { margin-bottom:14px; }
.dorm-rule-sec h5 { font-size:14px; font-weight:700; color:var(--text); margin-bottom:4px; }
.dorm-rule-sec p { font-size:13px; color:var(--muted); line-height:1.7; }
.dorm-apply-row td { font-size:12px; }

/* 通用占位文案（门户等页面在用） */
.ps-placeholder { font-size:13px; color:var(--muted); }
/* 信息门户：板块卡片网格 + 分类 tab + 资料列表 + 论坛 */
.portal-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; padding:0 14px 14px; }
/* 首页门户板块卡片与员工「功能入口」卡片同尺寸 */
#homePortalGrid { padding:0 0 14px; }
#homePortalGrid .portal-card { display:flex; flex-direction:column; justify-content:center; min-height:128px; }
@media(max-width:380px){
  #homePortalGrid { gap:8px; }
  #homePortalGrid .portal-card { padding:12px 4px; min-height:116px; }
}
/* 板块卡片与首页功能入口同款：方形小卡、图标居上居中 */
.portal-card { background:var(--card); border:1px solid transparent; border-radius:14px; padding:16px 8px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.04); transition:.2s; cursor:pointer; display:block; }
.portal-card:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.12); }
.portal-card .pc-icon { width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; font-size:26px; line-height:1; box-shadow:0 2px 8px rgba(0,0,0,.06); transition:transform .25s cubic-bezier(.34,1.56,.64,1); background:linear-gradient(135deg,#fef3c7,#fffbeb); }
.pc-icon img { width:32px; height:32px; object-fit:contain; }
.psh-icon img { width:40px; height:40px; object-fit:contain; vertical-align:middle; }
.portal-card:hover .pc-icon { transform:translateY(-4px) scale(1.12); }
.portal-card:nth-child(6n+1) .pc-icon { background:linear-gradient(135deg,#dbeafe,#eff6ff); }
.portal-card:nth-child(6n+2) .pc-icon { background:linear-gradient(135deg,#d1fae5,#ecfdf5); }
.portal-card:nth-child(6n+3) .pc-icon { background:linear-gradient(135deg,#fef3c7,#fffbeb); }
.portal-card:nth-child(6n+4) .pc-icon { background:linear-gradient(135deg,#ede9fe,#f5f3ff); }
.portal-card:nth-child(6n+5) .pc-icon { background:linear-gradient(135deg,#cffafe,#ecfeff); }
.portal-card:nth-child(6n+6) .pc-icon { background:linear-gradient(135deg,#fee2e2,#fef2f2); }
.portal-card .pc-name { font-size:13px; font-weight:600; color:var(--text); }
.portal-card .pc-desc { font-size:11px; color:var(--muted); line-height:1.4; margin-top:3px; }
.portal-card .pc-meta { font-size:11px; color:var(--primary); margin-top:5px; }
.portal-card:active { transform:scale(.97); }
.portal-cat-tabs { display:flex; gap:6px; padding:0 14px 10px; overflow-x:auto; white-space:nowrap; }
.portal-cat-tabs button { padding:6px 12px; border-radius:16px; font-size:12px; color:var(--muted); background:var(--card); border:1px solid var(--border); cursor:pointer; }
.portal-cat-tabs button.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.portal-resource { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px; margin-bottom:10px; display:flex; gap:10px; align-items:flex-start; }
.portal-resource .pr-icon { font-size:24px; flex-shrink:0; color:var(--primary); }
.portal-resource .pr-body { flex:1; min-width:0; }
.portal-resource .pr-title { font-size:14px; font-weight:600; color:var(--text); margin-bottom:4px; word-break:break-all; }
.portal-resource .pr-meta { font-size:11px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }
.portal-resource .pr-actions { margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }
.portal-resource .pr-actions a, .portal-resource .pr-actions button { font-size:12px; padding:4px 10px; border-radius:6px; text-decoration:none; }
.portal-resource .pr-pin { background:#fef3c7; color:#92400e; padding:1px 6px; border-radius:4px; font-size:10px; }
.portal-recent { margin:8px 14px 16px; background:var(--card); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
/* 首页滑页内的最新动态与卡片网格左右对齐（.main 已有 16px 内边距） */
#homePortalRecent .portal-recent { margin-left:0; margin-right:0; }
.portal-recent h4 { font-size:13px; font-weight:600; margin-bottom:8px; color:var(--text); }
.portal-recent-item { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px dashed var(--border); font-size:12px; cursor:pointer; }
.portal-recent-item:last-child { border-bottom:none; }
.portal-recent-item .pri-icon { font-size:14px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; overflow:hidden; }
.portal-recent-item .pri-icon img { width:18px; height:18px; object-fit:contain; }
.portal-recent-item .pri-title { flex:1; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.portal-recent-item .pri-meta { font-size:10px; color:var(--muted); }
/* ===== 首页双页翻页（信息门户 / 员工助手） ===== */
.home-pager { display:flex; gap:8px; padding:2px 0 10px; }
.hp-tab { flex:1; border:none; background:var(--card); border-radius:10px; padding:9px 0; font-size:13px; font-weight:600; color:var(--muted); box-shadow:0 1px 4px rgba(15,23,42,.06); cursor:pointer; transition:all .2s; }
.hp-tab.active { background:var(--primary); color:#fff; }
.home-carousel { overflow:hidden; }
/* 门户身份提示条 */
.portal-fixbar { margin:10px 16px 0; padding:10px 12px; background:#fff7ed; border:1px solid #fdba74; color:#9a3412; border-radius:10px; font-size:12.5px; line-height:1.6; cursor:pointer; }
.portal-fixbar b { color:#c2410c; }
.home-track { display:flex; transition:transform .3s ease; will-change:transform; }
.home-slide { min-width:100%; }
.hp-dots { display:flex; justify-content:center; gap:6px; padding:12px 0 2px; }
.hp-dot { width:7px; height:7px; border-radius:50%; background:#cbd5e1; border:none; padding:0; cursor:pointer; transition:all .2s; }
.hp-dot.active { background:var(--primary); width:18px; border-radius:4px; }
.portal-section-head { padding:8px 14px 14px; }
.portal-section-head .psh-icon { font-size:36px; }
.portal-section-head .psh-name { font-size:18px; font-weight:700; color:var(--text); margin:6px 0 4px; }
.portal-section-head .psh-desc { font-size:12px; color:var(--muted); line-height:1.5; }
.portal-post { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px; margin:0 14px 10px; }
.portal-post .pp-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:6px; }
.portal-post .pp-meta { font-size:11px; color:var(--muted); margin-bottom:6px; }
.portal-post .pp-content { font-size:13px; color:var(--text); line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.portal-post .pp-comments { margin-top:10px; padding-top:8px; border-top:1px dashed var(--border); }
.portal-post .pp-cm { padding:6px 0; border-bottom:1px dashed var(--border); font-size:12px; }
.portal-post .pp-cm:last-child { border-bottom:none; }
.portal-post .pp-cm-author { color:var(--primary); font-weight:600; margin-right:6px; }
.portal-post .pp-cm-time { color:var(--muted); font-size:10px; margin-left:6px; }
.portal-post .pp-cm-input { display:flex; gap:6px; margin-top:8px; }
.portal-post .pp-cm-input input { flex:1; padding:6px 10px; border:1px solid var(--border); border-radius:6px; font-size:12px; }
.portal-post .pp-cm-input button { padding:6px 12px; background:var(--primary); color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; }
/* 后台信息门户管理 */
.portal-admin-tab { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.portal-admin-tab button { padding:6px 14px; border-radius:8px; border:1px solid var(--border); background:var(--bg); color:var(--text); font-size:13px; cursor:pointer; }
.portal-admin-tab button.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.portal-row { display:flex; gap:10px; align-items:center; padding:8px 10px; background:var(--card); border:1px solid var(--border); border-radius:8px; margin-bottom:6px; }
.portal-row .pr-name { flex:1; font-size:13px; }
.portal-row .pr-actions button { font-size:11px; padding:3px 8px; margin-left:4px; border-radius:6px; border:1px solid var(--border); background:var(--bg); color:var(--text); cursor:pointer; }
.portal-row .pr-actions .danger { color:#dc2626; border-color:#fecaca; background:#fef2f2; }
.portal-row .pr-actions .primary { color:var(--primary); border-color:var(--primary); background:rgba(64,124,255,.06); }
.portal-acl-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:6px; }
.portal-acl-item { padding:8px 10px; background:var(--card); border:1px solid var(--border); border-radius:8px; cursor:pointer; font-size:12px; display:flex; align-items:center; gap:6px; }
.portal-acl-item.checked { background:rgba(64,124,255,.06); border-color:var(--primary); }
.portal-acl-item input { margin:0; }
.portal-form-row { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.portal-form-row label { font-size:12px; color:var(--muted); }
.portal-form-row input, .portal-form-row select, .portal-form-row textarea { padding:8px 10px; border:1px solid var(--border); border-radius:8px; font-size:13px; background:var(--bg); color:var(--text); }
.portal-form-row textarea { min-height:60px; resize:vertical; }
