/* ============================================================
   Aero Workbench · 维修工作台样式
   设计语言与 work.html 一致：深蓝侧栏 + 浅灰内容区 + 科技蓝高亮
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* v1.9.167：点击标题 / 表格等非输入区域时不再显示文本光标（I 形竖线）
   body 全局隐藏插入光标；输入框 / 文本域 / 富文本编辑器内恢复正常光标 */
body { caret-color: transparent; }
input, textarea, [contenteditable="true"], [contenteditable=""] { caret-color: auto; user-select: text; }
.nav-sub-item, .nav-overview, .sb-collapse, .sb-toggle, .am-chip, button, .btn { user-select: none; }
/* 设计令牌在 tokens.css 中定义；此处仅保留侧栏专属色与映射别名 */
:root {
    --nav-bg: #c5e0f7;
    --nav-bg-hover: #b0d4f0;
    --nav-bg-active: #9cc8e8;
    --nav-text: #2a4a6e;
    --nav-text-active: #1a4a7e;
    /* —— 以下为历史别名，统一映射到 tokens.css —— */
    --accent: var(--brand-400);
    --content-bg: var(--bg);
    --card-bg: var(--card);
    --text-dark: var(--text-1);
    --text-muted: var(--text-3);
    --label: #24527f;          /* v1.9.176：标签/小标题（淡蓝，替代灰色） */
    --label-soft: #4a6f96;     /* v1.9.176：次级标签 */
    --label-strong: #1a4a7d;   /* v1.9.176：区块标题 */
    --head: #16385c;           /* v1.9.176：大标题 */
    --border: var(--line);
}
body {
    overflow-x: hidden;
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    display: flex;
    background: var(--content-bg);
    color: var(--text-dark);
}

/* ============ 左侧导航 ============ */
.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100%;
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-header {
    padding: 22px 20px 18px;
    border-bottom: none;
    background: var(--nav-bg);
    text-align: center;
}
.sidebar-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.sidebar-header .logo {
    width: 26px; height: 26px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.sidebar-header .sub {
    font-size: 10px;
    color: #5a7a9e;
    margin-top: 6px;
    letter-spacing: 1px;
    text-align: center;
    padding-left: 0;
}

.nav-scroll { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-scroll::-webkit-scrollbar { width: 5px; }
.nav-scroll::-webkit-scrollbar-thumb { background: var(--nav-bg-active); border-radius: 3px; }

.nav-category { margin: 2px 0; }
.nav-cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: var(--nav-text);
    letter-spacing: 0.5px;
    user-select: none;
}
.nav-cat-title:hover { background: var(--nav-bg-hover); color: var(--nav-text-active); }
.nav-cat-title .left { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.nav-cat-title .icon { font-size: 17px; opacity: 0.9; width: 20px; display: inline-flex; align-items: center; justify-content: center; }
.nav-cat-title .arrow { font-size: 12px; transition: transform 0.2s; }
.nav-category.open > .nav-cat-title .arrow { transform: rotate(90deg); }
.nav-category.open > .nav-cat-title { color: var(--nav-text-active); background: var(--nav-bg-hover); }
.nav-category.open > .nav-cat-title::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px; height: 18px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}
.nav-category > .nav-cat-title { position: relative; }

.nav-sub { display: none; background: rgba(255,255,255,0.4); }
.nav-category.open > .nav-sub { display: block; }
.nav-sub-item {
    padding: 10px 20px 10px 50px;
    font-size: 14px;
    color: var(--nav-text);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}
.nav-sub-item:hover { color: var(--nav-text-active); background: var(--nav-bg-hover); }
.nav-sub-item.has-child::after {
    content: "▸";
    position: absolute;
    right: 16px;
    font-size: 9px;
    color: var(--nav-text);
}
.nav-sub-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-300));
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(74, 144, 217, .22);
}
.nav-sub-item.active::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #ffffff;
}
.nav-sub-item.planned { opacity: 0.55; }
.nav-sub-item.planned:hover { color: var(--nav-text); background: transparent; }
/* v1.9.228：未授权栏目 —— 入口保留但置灰锁定，点击提示申请权限 */
.nav-sub-item.nav-locked { opacity: 0.62; }
.nav-sub-item.nav-locked:hover { opacity: 0.9; color: var(--nav-text-active); background: var(--nav-bg-hover); }
.nav-sub-item.nav-locked .nicon { filter: grayscale(1); }
.nav-lock-ico { margin-left: auto; font-size: 11px; opacity: .85; }

/* v2.0.0：左侧导航 ↔ 顶部标签 同步 —— 当前栏目所在分类的标题左侧竖条加亮，
   与「已展开」的淡色背景区分开：滚动后仍能一眼看到「我现在在这个分类里」 */
.nav-category.nav-cur-cat > .nav-cat-title {
    color: var(--nav-text-active);
    background: var(--nav-bg-hover);
}
.nav-category.nav-cur-cat > .nav-cat-title::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px; height: 18px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 6px rgba(74, 144, 217, .55);
}

.nav-sub-sub { display: none; background: rgba(255,255,255,0.45); }
.nav-sub-item.open + .nav-sub-sub { display: block; }
.nav-sub-sub .nav-sub-item { padding-left: 68px; font-size: 12px; }

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(63,95,128,0.14);
    font-size: 11px;
    color: var(--nav-text);
}
.sidebar-footer a { color: var(--brand-500); text-decoration: none; }

/* ============ 右侧内容 ============ */
.main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 0;
}
.topbar {
    height: 56px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .page-name { font-size: 18px; font-weight: bold; color: var(--text-dark); }
.topbar .page-name .en { font-size: 11px; color: var(--text-muted); margin-left: 8px; font-weight: normal; }

/* v1.9.250：顶栏面包屑导航（三横按钮右侧，随栏目联动）
   v1.9.252：视觉重构 —— 层级文字弱化退到背景，当前页放大加粗成为顶栏主标题；
             手机端与桌面端字号趋近一致（17 / 18px），不再一端过大一端过小 */
.topbar .page-name.wb-crumb {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 15px;              /* 层级文字基准（次要，退到背景） */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    -webkit-font-smoothing: antialiased;
}
/* 根节点：最浅色、可点击回概览 */
.wb-crumb .crumb-link {
    color: var(--text-3);
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color .15s;
}
.wb-crumb .crumb-link:hover { color: var(--brand-600); }
/* 分隔符：更淡、略小，不抢视觉 */
.wb-crumb .crumb-sep {
    color: #c4d0de;
    margin: 0 10px;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 400;
}
/* 所属分类：次要色 */
.wb-crumb .crumb-mid {
    color: var(--text-2);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 当前页：放大 + 加粗 + 深色，是顶栏的视觉主体 */
.wb-crumb .crumb-cur {
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* v1.9.252：手机端不显示层级，只留当前页标题。
   18px 与桌面 17px 基本一致；line-height 32px 与 ☰ 按钮等高、垂直居中 */
@media (max-width: 640px) {
    .topbar .page-name.wb-crumb .crumb-link,
    .topbar .page-name.wb-crumb .crumb-sep,
    .topbar .page-name.wb-crumb .crumb-mid { display: none; }
    .topbar .page-name.wb-crumb,
    .topbar .page-name.wb-crumb .crumb-cur {
        font-size: 18px;
        font-weight: 700;
        line-height: 32px;
        letter-spacing: .3px;
    }
}
.topbar .user {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar .user-info { display: flex; align-items: center; gap: 2px; }
.topbar .user-group { color: var(--text-muted); }
.topbar .avatar {
    width: 28px; height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.top-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-decoration: none;
    transition: background 0.15s;
}
.top-btn:hover { background: var(--brand-500); }
.logout-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

.content { padding: 24px 28px 40px; }

/* 统计卡片（基础样式，模块页复用） */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(30,95,168,0.12); }

/* ============================================================
   v1.9.193 · 首页概览统计卡片（与索赔台账模块同款「框」）
   桌面 4 列 → ≤1120 两列 → ≤640 手机一排两个
   ============================================================ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.kpi-card {
    --c: #1e5fa8;
    --c-soft: rgba(30, 95, 168, .12);
    position: relative;
    display: block;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid #e4ecf6;
    border-left: 4px solid var(--c);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 95, 168, .12);
}
.kpi-card:active { transform: translateY(0); }
.kpi-card.green  { --c: #10b981; --c-soft: rgba(16, 185, 129, .12); }
.kpi-card.orange { --c: #f59e0b; --c-soft: rgba(245, 158, 11, .14); }
.kpi-card.red    { --c: #ef4444; --c-soft: rgba(239, 68, 68, .12); }
.kpi-card.purple { --c: #7c3aed; --c-soft: rgba(124, 58, 237, .12); }

.kpi-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #24527f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kpi-ico {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: var(--c-soft);
    font-size: 13px; line-height: 1;
}
.kpi-val {
    margin-top: 8px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--c);
    font-variant-numeric: tabular-nums;
}
.kpi-pct {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #8d99ab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 区块标题 */
.section-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 22px 0 14px;
}

/* 模块入口 */
.modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.module {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    position: relative;
}
.module:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30,44,61,0.1);
    border-color: var(--accent);
}
.module.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* v1.9.228：未授权栏目卡片 —— 置灰锁定，点击弹申请权限 */
.module.mod-locked { opacity: .62; }
.module.mod-locked:hover { opacity: .85; border-color: var(--border); box-shadow: 0 4px 12px rgba(30,44,61,.08); }
.module.mod-locked .m-icon { filter: grayscale(1); }
.m-lock { position: absolute; top: 10px; right: 12px; font-size: 12px; opacity: .9; }
.module .m-head { display: flex; align-items: center; gap: 12px; }
.module .m-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand-100);
    color: var(--brand-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}
.module .m-title { font-size: 14px; font-weight: bold; color: var(--text-dark); }
.module .m-en { font-size: 11px; color: var(--accent); margin-top: 2px; }
.module .m-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.module.planned { cursor: default; opacity: 0.72; }
.module.planned:hover { transform: none; box-shadow: 0 1px 3px rgba(30,44,61,0.04); border-color: var(--border); }
.module.planned::after {
    content: "规划中";
    position: absolute;
    top: 10px; right: 10px;
    font-size: 10px;
    color: var(--text-muted);
    background: var(--line-soft);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: var(--radius);
}

/* 两栏布局 */
.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }

/* ===== v1.9.144：核心模块分区标题 / 常用星标 / 常用栏目 ===== */
.module-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 -2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 0.4px;
}
.module-group:first-child { margin-top: 0; }
.module-group .mg-ic { font-size: 14px; line-height: 1; opacity: 0.9; }
.module-group::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

.module .fav-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: #c3cedd;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.15s;
    z-index: 2;
}
.module:hover .fav-btn { opacity: 1; }
.module .fav-btn:hover { color: #e8912d; background: rgba(232, 145, 45, 0.1); transform: scale(1.12); }
.module .fav-btn.on { opacity: 1; color: #e8912d; }

.fav-tip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-3);
    margin: -2px 0 16px;
}
.fav-tip .star { color: #e8912d; }

#fav-grid { margin-bottom: 18px; }
#fav-grid .module { border-color: rgba(232, 145, 45, 0.28); background: linear-gradient(180deg, #fffdf8, var(--card-bg)); }
#fav-grid .module:hover { border-color: #e8912d; box-shadow: 0 6px 16px rgba(232, 145, 45, 0.14); }


/* 最近更新 */
.recent {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    min-height: 120px;
}
.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
    gap: 10px;
}
.recent-item:last-child { border-bottom: none; }
.recent-item .r-title { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .r-title a { color: inherit; text-decoration: none; }
.recent-item .r-title a:hover { color: var(--accent); }
.recent-item .r-cat {
    display: inline-block;
    background: var(--brand-100);
    color: var(--brand-400);
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 4px;
    margin-right: 10px;
    white-space: nowrap;
}
.recent-item .r-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    white-space: nowrap;
}
.r-status.s0 { background: var(--line-soft); color: var(--text-3); }
.r-status.s1 { background: var(--brand-100); color: #2d6db5; }
.r-status.s2 { background: var(--ok-bg); color: var(--ok); }
.r-status.s3 { background: var(--warn-bg); color: #c07a1f; }
.recent-item .r-date { color: #aaa; font-size: 12px; white-space: nowrap; }
.recent-empty { padding: 26px 20px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ============ 右侧今日待办面板 ============ */
.today-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}
.tp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tp-title { font-size: 14px; font-weight: bold; color: var(--text-dark); }
.tp-title em { font-size: 10px; color: var(--accent); font-style: normal; margin-left: 6px; font-weight: normal; }
.tp-more { font-size: 11px; color: var(--accent); text-decoration: none; }
.tp-more:hover { text-decoration: underline; }

.tp-add { display: flex; gap: 8px; margin-bottom: 14px; }
.tp-add input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.tp-add input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,144,217,0.12); }
.tp-add button {
    width: 40px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
}
.tp-add button:hover { background: var(--brand-500); }

.tp-section { margin-top: 10px; }
.tp-section:first-of-type { margin-top: 0; }
.tp-sec-title {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line-soft);
}
.tp-list { max-height: 210px; overflow-y: auto; }
.tp-list::-webkit-scrollbar { width: 4px; }
.tp-list::-webkit-scrollbar-thumb { background: #d5dde6; border-radius: 2px; }

.tp-due-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 12.5px;
}
.tp-due-item:last-child { border-bottom: none; }
.tp-due-item .d-title { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-due-item .d-badge { flex-shrink: 0; }
.due-badge {
    display: inline-block;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--line-soft);
    color: var(--text-3);
}
.due-badge.over { background: var(--danger-bg); color: var(--danger); }
.pri {
    display: inline-block;
    width: 17px; height: 17px;
    line-height: 17px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 6px;
}
.pri.p1 { background: var(--danger-bg); color: var(--danger); }
.pri.p2 { background: var(--warn-bg); color: var(--warn); }
.pri.p3 { background: var(--ok-bg); color: var(--ok); }

.tp-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 2px;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 13px;
}
.tp-quick-item:last-child { border-bottom: none; }
.tp-quick-item .q-check {
    width: 16px; height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 1.5px solid #b9c6d4;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    transition: all 0.15s;
    background: #fff;
}
.tp-quick-item .q-check:hover { border-color: var(--accent); }
.tp-quick-item.done .q-check { background: var(--ok); border-color: var(--ok); }
.tp-quick-item.done .q-text { color: var(--text-3); text-decoration: line-through; }
.tp-quick-item .q-text { flex: 1; color: #333; line-height: 1.5; word-break: break-word; }
.tp-quick-item .q-when { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.tp-quick-item.done .q-when { color: var(--ok); }
.tp-empty { padding: 14px 4px; color: var(--text-3); font-size: 12px; text-align: center; }

/* ============ 登录页 ============ */
.login-page {
    position: fixed;
    inset: 0;
    background: var(--grad-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 34px 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.4);
    text-align: center;
}
.login-logo { margin-bottom: 10px; }
.login-icon {
    width: 52px; height: 52px;
    background: var(--accent);
    color: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(74,144,217,.35);
}
.login-title { font-size: 20px; color: var(--brand-900); margin-bottom: 4px; }
.login-sub { font-size: 12px; color: #7a8699; margin-bottom: 24px; }
.login-card form { text-align: left; }
.login-card label { display: block; font-size: 12.5px; color: var(--text-2); margin: 14px 0 6px; }
.login-card input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,144,217,.14); }
.btn-login {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-login:hover { background: var(--brand-500); }
.btn-login:disabled { background: #a9c4e2; cursor: not-allowed; }

/* v1.7：访客版顶栏「登 录」按钮 */
.btn-login-top {
    padding: 6px 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-login-top:hover { background: var(--accent); color: #fff; }
.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #f5c6c6;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    margin-top: 14px;
}
.login-foot { font-size: 11.5px; color: #9aa7b5; margin-top: 20px; line-height: 1.7; }
.login-foot a { color: var(--accent); text-decoration: none; }

/* ============ Toast ============ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: rgba(30,44,61,0.95);
    color: #fff;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 999;
    animation: toast-in 0.25s ease;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============ 待办 iframe 内嵌 ============ */
.frame-wrap {
    height: calc(100vh - 120px);
    min-height: 480px;
    /* 与待办页面同色，iframe 加载瞬间不再闪白 */
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
/* v1.9.244：多标签 iframe（每个栏目标签一个） */
.wb-mod-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: var(--bg);
    color-scheme: light;
}
.nav-sub-item.wb-new { color: #ffb84d; }

/* ============ 响应式 ============ */
@media (max-width: 1280px) {
    .modules { grid-template-columns: repeat(3, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .tp-list { max-height: none; }
}
/* 1120 以下四列会挤，退成两列 */
@media (max-width: 1120px) {
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
/* v1.9.193：手机端一排两个，保留框、左侧色条、图标与占比，尺寸压到索赔台账同档 */
@media (max-width: 640px) {
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
    .kpi-card { padding: 12px 14px; border-radius: 10px; border-left-width: 3px; }
    .kpi-label { font-size: 12.5px; gap: 6px; }
    .kpi-ico { width: 21px; height: 21px; border-radius: 6px; font-size: 12px; }
    .kpi-val { margin-top: 5px; font-size: 22px; letter-spacing: -.5px; }
    .kpi-pct { margin-top: 4px; font-size: 11.5px; }
    .section-title { margin: 16px 0 10px; }
}

@media (max-width: 820px) {
    /* v1.5.1: removed .sidebar{display:none}, drawer takeover by 860px breakpoint */
    .modules { grid-template-columns: 1fr; }
    .content { padding: 16px; }
    .topbar { padding: 0 14px; }
    .topbar .user-info { display: none; }
    /* v1.9.44：工作台动态手机端自适应，内容自动换行 */
    .recent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 14px;
    }
    .recent-item .r-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.5;
        width: 100%;
    }
    .recent-item .r-cat {
        margin-right: 6px;
        font-size: 10.5px;
    }
    .recent-item .r-status,
    .recent-item .r-date {
        font-size: 11px;
    }
}

/* ============================================================
   v1.4 · 关键修复：hidden 属性兜底
   （.kpi-row/.modules 等元素有 display:grid 等作者样式，
     优先级高于浏览器默认 [hidden]，会导致「隐藏」失效——
     必须用 !important 强制覆盖）
   ============================================================ */
[hidden] { display: none !important; }

/* ============================================================
   v1.4 · iframe 全屏模式（点击待办导航后右侧只显示待办）
   ============================================================ */
.main.frame-mode .content {
    padding: 0;
}
.main.frame-mode .frame-wrap {
    height: calc(100vh - 56px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* ============================================================
   v1.4 · 工作台管理弹窗
   ============================================================ */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 34, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.admin-modal {
    width: 100%;
    max-width: 980px;
    height: min(680px, 90vh);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(15,40,70,.35), 0 2px 8px rgba(15,40,70,.12);
    border: 1px solid rgba(74,144,217,.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.am-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    background: var(--grad-head);
    color: #fff;
    box-shadow: 0 2px 10px rgba(22,56,92,.25);
}
.am-title { font-size: 15px; font-weight: 800; color: var(--head); }
.am-close {
    width: 30px; height: 30px;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
}
.am-close:hover { background: rgba(255,255,255,.24); }
.am-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 16px 10px;
    background: linear-gradient(180deg, #f6f9fc, #f0f4f9);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.am-tab {
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 15px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    border-radius: var(--radius);
    font-family: inherit;
    transition: all .15s;
}
.am-tab:hover { background: #e3edf7; color: #14365c; }
.am-tab.active {
    background: #fff;
    color: var(--brand-700);
    font-weight: 700;
    border-color: #d3e3f3;
    box-shadow: 0 2px 8px rgba(44,93,149,.14);
}
.am-body {
    overflow-x: hidden;
    flex: 1;
    overflow: auto;
    padding: 16px 18px;
}
.am-loading { color: var(--text-3); font-size: 13px; padding: 20px; text-align: center; }

/* 管理弹窗表格 */
.am-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.am-table th {
    text-align: left;
    padding: 9px 10px;
    background: #eaf2fb;
    color: var(--label);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.am-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}
.am-table tr:hover td { background: #f8fafc; }
.am-table .am-empty { text-align: center; color: var(--text-3); padding: 22px; }
.am-btn {
    border: 1px solid #d3dce6;
    background: #fff;
    color: var(--text-1);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
    margin-right: 6px;
}
.am-btn:hover { border-color: var(--accent); color: var(--accent); }
.am-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.am-btn.primary { background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); border-color: transparent; color: #fff; box-shadow: 0 2px 6px rgba(47,110,176,.25); }
.am-btn.primary:hover { background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); }
.am-btn:disabled { opacity: .55; cursor: not-allowed; }
.am-input, .am-select {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    background: #fff;
}
.am-input:focus, .am-select:focus { border-color: var(--accent); }
.am-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.am-note { font-size: 12px; color: var(--text-3); }
.am-sec-title { font-size: 13.5px; font-weight: 800; color: var(--label-strong); margin: 14px 0 8px; }
.am-radio-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; color: var(--text-1); }
.am-radio-row input { accent-color: var(--accent); }
.am-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef3f9;
    border: 1px solid #dbe5f0;
    color: #2c3e50;
    font-size: 12.5px;
    border-radius: var(--radius);
    padding: 4px 12px;
    margin: 3px 6px 3px 0;
    cursor: pointer;
    user-select: none;
}
.am-chip.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.am-chip input { display: none; }
.am-mini { font-size: 12px; color: var(--text-3); }
.am-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; }
.am-badge.on { background: #e6f6ec; color: var(--ok); }
.am-badge.off { background: var(--danger-bg); color: var(--danger); }
.am-badge.super { background: #f3e9fd; color: #7a3ec8; }
.am-form-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.am-sel-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }

/* ============================================================
   v1.5 · AeroWorks 品牌 / 概览置顶 / 导航折叠 / 访客模式 / 管理弹窗增强
   ============================================================ */

/* ---------- 品牌 Logo（v1.7：使用 AERO.XIN 用户图片） ---------- */
.wb-logo-svg { display: block; flex-shrink: 0; }
.sb-logo {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(22,56,92,.18);
    background: #fff;
    flex-shrink: 0;
}
.login-logo { display: flex; justify-content: center; }
.login-logo-img {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 26px rgba(74,144,217,.32);
    object-fit: cover;
    background: #fff;
    display: block;
}
.about-logo {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 22px rgba(74,144,217,.35);
    object-fit: cover;
    background: #fff;
}

/* ---------- 侧栏头部（Logo + 品牌名 + 折叠按钮） ---------- */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
}
.sb-brand { min-width: 0; }
.sb-brand h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--brand-900) 20%, var(--brand-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.sb-brand .sub {
    font-size: 10px;
    color: var(--nav-text);
    letter-spacing: 2.5px;
    margin-top: 2px;
    text-transform: uppercase;
}
.sb-collapse {
    margin-left: auto;
    width: 26px; height: 26px;
    border: none;
    background: rgba(63,95,128,.12);
    color: var(--nav-text);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}
.sb-collapse:hover { background: rgba(63,95,128,.22); color: var(--nav-text-active); }

/* ---------- 概览（顶级大项） ---------- */
.nav-overview {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 6px 12px 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    background: linear-gradient(135deg, rgba(74,144,217,.28), rgba(74,144,217,.10));
    border: 1px solid rgba(127,176,224,.28);
    transition: background .15s, border-color .15s;
    user-select: none;
}
.nav-overview:hover { background: linear-gradient(135deg, rgba(74,144,217,.42), rgba(74,144,217,.16)); border-color: rgba(127,176,224,.5); }
.nav-overview.active {
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    border-color: var(--brand-400);
    box-shadow: 0 4px 14px rgba(74,144,217,.35);
}
.nav-overview .ov-icon { font-size: 20px; line-height: 1; }
.nav-overview .ov-name { font-size: 17px; font-weight: 700; color: var(--nav-text-active); letter-spacing: .5px; }
.nav-overview.active .ov-name { color: #fff; }
.nav-overview .ov-en { font-size: 10px; color: var(--nav-text); letter-spacing: 1px; margin-top: 1px; }
.nav-overview.active .ov-en { color: #d6e7f8; }

/* ---------- 顶栏折叠按钮 ---------- */
.sb-toggle {
    width: 32px; height: 32px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    font-size: 15px;
    cursor: pointer;
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sb-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 折叠状态（桌面：隐藏侧栏） ---------- */
.sidebar.hidden { display: none; }

/* ---------- 移动端抽屉 ---------- */
.sb-mask {
    position: fixed;
    inset: 0;
    background: rgba(15,23,32,.55);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
}
.sb-mask.show { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        z-index: 50;
        width: 260px;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 6px 0 24px rgba(0,0,0,.3);
    }
    .sidebar.open { transform: translateX(0); }
}

/* ---------- 登录页：AeroWorks 品牌 + 访客模式 ---------- */
.login-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--brand-900), var(--brand-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--brand-900);
}
.btn-guest {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed #9db9d8;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-500);
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-guest:hover { background: #e9f3ff; border-color: var(--accent); }
.guest-wrap { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--content-bg); }
.guest-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #1e2c3d;
    color: #c8d5e2;
    font-size: 13px;
}
.guest-bar span { opacity: .92; }
.guest-back {
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.guest-back:hover { background: rgba(255,255,255,.12); }
.guest-wrap iframe { flex: 1; width: 100%; border: none; }

/* ---------- 管理弹窗增强（栏目筛选 / 排序 / 授权标记） ---------- */
.am-note-line { margin: 4px 0 10px; }
.am-ok { color: var(--ok); font-weight: 700; }
.am-muted { color: #c0c9d3; }
.am-move { margin-left: 8px; white-space: nowrap; }
.am-btn.sm { padding: 3px 9px; font-size: 12px; }
.am-module .am-sec-title { display: flex; align-items: center; gap: 4px; }
.am-module .am-sec-title .am-move { margin-left: auto; }

/* ---------- v1.8：栏目所属区 / 编辑删除 / 区域管理 / 卡片可点击 ---------- */
.card.card-link { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.card.card-link:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(30,44,61,.10); }
.card.card-link:active { transform: translateY(0); }
.am-mod-opts { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; flex-wrap: wrap; }
.am-mod-opts .am-sec-sel { width: 130px; padding: 3px 6px; font-size: 12.5px; }
.am-edit-mod { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; flex-wrap: wrap; }
.am-edit-mod .am-input { padding: 4px 8px; font-size: 12.5px; }
.am-sec-admin {
    margin: 10px 0 4px;
    padding: 10px 12px;
    background: #f7fafd;
    border: 1px dashed #c9ddf2;
    border-radius: var(--radius-sm);
}
.am-sec-admin .am-form-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.am-sec-list { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.am-sec-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.am-sec-row .am-btn { padding: 2px 8px; font-size: 12px; }




/* ============================================================
   v1.6 · 栏目管理增强 / 帮助·关于弹窗 / 浅蓝导航适配细节
   ============================================================ */
.am-sec-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 11.5px;
    font-weight: 600;
    vertical-align: 2px;
}
.am-sec-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.am-add-mod {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px dashed var(--brand-200);
    border-radius: var(--radius);
    background: var(--brand-50);
}
.am-narrow { max-width: 640px; height: auto; min-height: 320px; }
.about-brand { text-align: center; margin: 6px 0 10px; }
.about-brand .wb-logo-svg { width: 64px; height: 64px; margin: 0 auto; box-shadow: 0 10px 22px rgba(74,144,217,.35); border-radius: 16px; }

/* 浅蓝导航：has-child 箭头 / 子菜单 hover 文字 */
.nav-sub-item.has-child::after { color: var(--nav-text); }
.nav-sub-item.planned:hover { color: var(--nav-text); background: transparent; }
.sidebar { box-shadow: 1px 0 10px rgba(30,60,100,.08); }
.nav-cat-title { color: var(--nav-text); }
.nav-category.open > .nav-cat-title { color: var(--nav-text-active); }

/* ============================================================
   v1.7 · 访问权限 / 任务预警 / 概览只读 / 品牌图片
   ============================================================ */
.nav-badge {
    display: inline-block;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: var(--radius-sm);
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    vertical-align: 1px;
    animation: nav-badge-pop .25s ease;
}
@keyframes nav-badge-pop {
    0% { transform: scale(.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* 概览只读：任务行可点击（进入待办处理） */
.recent-item[data-goto-task], .tp-due-item[data-goto-task], .tp-quick-item[data-goto-scope], .warn-item {
    cursor: pointer;
    transition: background .15s;
}
.recent-item[data-goto-task]:hover { background: #f2f7fd; }
.tp-due-item[data-goto-task]:hover { background: #f6fafd; }
.r-link { color: var(--brand-700); }
/* 预警弹窗列表 */
.warn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.warn-item:hover { border-color: var(--brand-200); background: var(--brand-50); }


/* ================= v1.9：栏目授权树形布局 + 分页器 ================= */
.am-tree { margin-top: 8px; }
.am-sec-group { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; overflow: hidden; }
.am-sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #eef5fd; cursor: pointer; user-select: none; }
.am-sec-head:hover { background: #e6f0fb; }
.am-sec-tri { width: 16px; color: #5b8dc9; font-size: 12px; }
.am-sec-icon { font-size: 16px; }
.am-sec-name { font-weight: 600; color: var(--brand-700); font-size: 14px; }
.am-sec-count { font-size: 11px; color: var(--text-3); background: var(--line); border-radius: 9px; padding: 1px 8px; }
.am-sec-ops { margin-left: auto; display: flex; gap: 6px; }
.am-sec-body {
    overflow-x: hidden; padding: 10px 14px 12px; }
.am-sec-empty { color: #9db3cf; font-size: 13px; padding: 8px 2px; }
.am-module { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; margin-bottom: 8px; }
.am-row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.am-mod-icon { font-size: 16px; }
.am-mod-name { font-weight: 700; color: var(--head); font-size: 14px; }
.am-mod-desc { color: var(--text-3); font-size: 12px; flex: 1; min-width: 120px; }
.am-mod-move { margin-left: auto; display: flex; gap: 4px; }
.am-row2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #edf2f8; }
.am-mod-divider { width: 1px; height: 18px; background: var(--line); }

/* 首页动态列表分页器 */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef2f8; }
.pager-info { font-size: 12px; color: #6b83a3; }
.pager .am-btn[disabled] { opacity: .45; cursor: not-allowed; }


/* ================= v1.9.1：图标选择器 / 权限卡片 / 设置卡片 ================= */
.icon-pick { position: relative; display: inline-block; }
.icon-preview {
    width: 40px; height: 36px; border: 1px solid var(--brand-200); border-radius: 8px;
    background: var(--brand-50); font-size: 18px; cursor: pointer; line-height: 1;
}
.icon-preview:hover { border-color: #7fb0e3; background: #eaf4ff; }
.icon-grid {
    position: absolute; z-index: 30; top: 42px; left: 0; width: 280px;
    background: #fff; border: 1px solid var(--brand-200); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(40,80,130,.15); padding: 8px;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.icon-cell {
    height: 36px; border: none; border-radius: 6px; background: transparent;
    font-size: 17px; cursor: pointer; line-height: 1;
}
.icon-cell:hover { background: #e6f1fd; }

/* 访问权限卡片 */
.perm-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0; }
@media (min-width: 720px) { .perm-grid { grid-template-columns: repeat(3, 1fr); } }
.perm-card {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px;
    border: 1.5px solid #e0e9f3; border-radius: 12px; cursor: pointer; background: #fff;
    transition: all .15s;
}
.perm-card:hover { border-color: #9cc4ea; }
.perm-card.on { border-color: var(--brand-400); background: #f0f7ff; }
.perm-card input { margin-top: 4px; }
.perm-icon { font-size: 22px; }
.perm-body {
    overflow-x: hidden; display: flex; flex-direction: column; gap: 3px; }
.perm-t { font-weight: 600; color: var(--brand-700); font-size: 14px; }
.perm-d { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* 工作台设置卡片 */
.set-card {
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    padding: 14px 16px; margin-bottom: 12px;
}
.set-row { display: flex; align-items: center; gap: 10px; }
.set-icon { font-size: 18px; }
.set-name { font-weight: 600; color: var(--brand-700); font-size: 14px; flex: 1; }
.set-val { font-size: 12px; color: var(--text-3); }
.set-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 8px 0 4px; }
.set-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.set-switch input { opacity: 0; width: 0; height: 0; }
.set-slider {
    position: absolute; inset: 0; background: #cdd9e8; border-radius: 22px;
    cursor: pointer; transition: .2s;
}
.set-slider::before {
    content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
    background: #fff; border-radius: 50%; transition: .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.set-switch input:checked + .set-slider { background: var(--brand-400); }
.set-switch input:checked + .set-slider::before { transform: translateX(18px); }

/* ============================================================
   v1.9.208 · 栏目设置（设置 → 栏目设置）
     - am-xl：该页签要放栏目自己的设置页，弹窗放大
     - mset-frame：内嵌栏目后台设置页
   ============================================================ */
.admin-modal.am-xl {
    max-width: 1180px;
    height: min(860px, 94vh);
}
.mset-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #f6f9fc, #f0f4f9);
    border: 1px solid var(--border);
    border-radius: 10px;
    flex-wrap: wrap;
}
.mset-bar .am-select { min-width: 220px; }
.mset-bar .am-note { flex: 1; min-width: 180px; }
.mset-native .set-card { padding: 16px 18px; }
/* v1.9.210：设置面板改为右侧内联显示，内嵌的栏目后台页按视口高度自适应 */
.mset-frame {
    width: 100%;
    height: calc(100vh - 210px);
    min-height: 420px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f7f9fc;
    display: block;
}
#atab-mset[hidden] { display: none !important; }
.mset-home .set-card { padding: 16px 18px; }
@media (max-width: 760px) {
    .admin-modal.am-xl { max-width: 100%; height: 96vh; }
    .mset-bar .am-select { min-width: 0; width: 100%; }
    .mset-frame { height: calc(100vh - 235px); min-height: 320px; }
}

/* v1.9.9：分页器移到标题右侧 */
.tp-sec-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-sec-pager { display: inline-flex; align-items: center; gap: 6px; }
.tp-sec-pager .am-btn.sm { padding: 2px 8px; font-size: 11px; }
.tp-sec-pager .pager-info { font-size: 11px; color: var(--text-3); }

/* v1.9.11：子项图标固定宽度对齐 */
.nav-sub-item .nicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 17px;
    flex-shrink: 0;
    line-height: 1;
}
.nav-sub-item {
    padding: 9px 20px 9px 50px;
    font-size: 13px;
    color: var(--nav-text);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* ============================================================
   v1.9.66 · 内联样式收编（原 HTML/JS 内联样式迁移为类）
   ============================================================ */
/* 侧栏品牌区（原 index.php 内联） */
.sidebar-header[data-wb] { cursor: pointer; }
.sidebar-header .sb-brand { text-align: center; width: 100%; }
.sb-brand h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--brand-900);
}
/* 登录页返回首页按钮 */
.btn-home {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1.5px solid var(--brand-200);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--tr-fast);
}
.btn-home:hover { border-color: var(--brand-400); color: var(--brand-700); }
/* 顶栏刷新按钮 */
.btn-refresh-frame {
    margin-left: 10px;
    background: var(--brand-100);
    color: var(--brand-600);
    border: 1px solid var(--brand-200);
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--tr-fast);
}
.btn-refresh-frame:hover { background: var(--brand-200); }
/* 可点击卡片（首页索赔统计等 data-wb 卡片） */
.card[data-wb] { cursor: pointer; }
/* 首页动态：件号索赔 TOP10 榜单（原整块内联） */
.r-head {
    padding: 13px 20px;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 600;
    color: var(--brand-900);
}
.top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
}
.top-row:hover { background: var(--brand-50); }
.top-rank {
    width: 22px; height: 22px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--brand-100);
    color: var(--text-3);
}
.top-rank.r1 { background: var(--gold);   color: var(--gold-text); }
.top-rank.r2 { background: var(--silver); color: var(--silver-text); }
.top-rank.r3 { background: var(--bronze); color: var(--bronze-text); }
.top-info { flex: 1; min-width: 0; }
.top-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-bar-bg {
    height: 3px;
    background: var(--brand-100);
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}
.top-bar-fill { height: 100%; background: var(--brand-500); border-radius: 4px; }
.top-stats { text-align: right; flex-shrink: 0; }
.top-num  { font-size: 14px; font-weight: 700; color: var(--brand-900); }
.top-pct  { font-size: 10.5px; color: var(--text-3); }
/* 弹窗底部操作条 */
.am-foot {
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.am-foot .am-btn.primary { padding: 8px 32px; border-radius: var(--radius-sm); font-size: 14px; }

/* ============================================================
   v1.9.210 · 设置面板（右侧内容区 · 左侧纵向二级菜单）
     与「索赔台账」等栏目同一显示模式：不再弹窗，
     直接在 .content 里铺满，与 iframe 栏目天然互斥。
   ============================================================ */
.main.set-mode .content { padding: 0; }
.main.set-mode #dash-cards,
.main.set-mode .kpi-row,
.main.set-mode .section-title { display: none; }
.set-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    min-height: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 34px rgba(15, 40, 70, .10);
    overflow: hidden;
}
.set-panel[hidden] { display: none !important; }
.set-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--grad-head);
    color: #fff;
}
.set-title { font-size: 14.5px; font-weight: 800; letter-spacing: .2px; }
.set-close {
    margin-left: auto;
    width: 30px; height: 30px;
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.set-close:hover { background: rgba(255, 255, 255, .28); }
.set-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 178px 1fr;
    overflow: hidden;
}
.set-nav {
    overflow: auto;
    padding: 12px 10px;
    background: linear-gradient(180deg, #f7fafd, #eff4fa);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.set-nav .am-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    font-size: 13px;
    color: var(--text-2);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
    background: transparent;
}
.set-nav .am-tab:hover { background: #e3edf7; color: #14365c; }
.set-nav .am-tab.active {
    background: #fff;
    color: var(--brand-700);
    font-weight: 700;
    border-color: #d3e3f3;
    box-shadow: 0 2px 8px rgba(44, 93, 149, .14);
}
.set-nav .am-tab.sub { padding-left: 28px; font-size: 12.5px; }
.set-nav .sn-ico { width: 18px; text-align: center; font-size: 13px; }
.set-nav .sn-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-main { overflow: auto; padding: 16px 18px 30px; }

/* ---------- 组织架构 ---------- */
.org-wrap { display: flex; flex-direction: column; gap: 14px; }
.org-intro {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-3);
    background: linear-gradient(180deg, #f7fafd, #f1f6fb);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
}
.org-intro b { color: var(--brand-700); }
.am-tag {
    display: inline-block;
    font-size: 11.5px;
    line-height: 1.7;
    padding: 0 8px;
    margin: 1px 3px 1px 0;
    background: #eef4fb;
    color: var(--brand-700);
    border: 1px solid #d6e5f5;
    border-radius: 999px;
    white-space: nowrap;
}
.am-ops { white-space: nowrap; }
.am-sel-sm { padding: 3px 6px; font-size: 12px; max-width: 150px; }
.am-chipgrp {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #e6ecf3;
    flex-wrap: wrap;
}
.am-chipgrp:last-child { border-bottom: 0; }
.am-chiplabel {
    flex: 0 0 auto;
    min-width: 86px;
    font-size: 12px;
    font-weight: 800;
    color: var(--label-strong);
    padding-top: 4px;
}

/* ---------- 统一分页（每页 20 条） ---------- */
.wb-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.wb-pager .pager-info { font-size: 12px; color: var(--text-3); }
.wb-pager .am-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 导入导出中心 ---------- */
.xp-tip {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-3);
    background: linear-gradient(180deg, #f7fafd, #f1f6fb);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.export-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}
.export-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 13px 14px;
    box-shadow: 0 2px 8px rgba(15, 40, 70, .05);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: box-shadow .16s, border-color .16s, transform .16s;
}
.export-card:hover {
    border-color: #c6dcf2;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 40, 70, .10);
}
.ex-head { display: flex; align-items: center; gap: 8px; }
.ex-ico { font-size: 17px; }
.ex-name { font-size: 13.5px; font-weight: 800; color: var(--label-strong); }
.ex-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; min-height: 38px; }
.ex-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xp-block {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 40, 70, .05);
}
.xp-t { font-size: 13.5px; font-weight: 800; color: var(--label-strong); }
.xp-d { font-size: 12px; color: var(--text-3); margin: 4px 0 9px; line-height: 1.6; }

/* ---------- 栏目授权：部门 / 小组 / 成员 三段多选 ---------- */
.acc-panel {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafcfe;
}
.acc-panel.acc-disabled { opacity: .42; pointer-events: none; }
.am-acc-block { padding: 8px 0; border-bottom: 1px dashed #e6ecf3; }
.am-acc-block:last-of-type { border-bottom: 0; }
.am-acc-t { font-size: 12px; font-weight: 800; color: var(--label-strong); margin-bottom: 6px; }
.am-acc-sec { display: flex; flex-wrap: wrap; gap: 5px; }
.am-acc-all { padding-top: 10px; }
.am-acc-note { display: block; margin-top: 8px; line-height: 1.65; }
.am-acc-sum { font-size: 12px; color: var(--text-3); }

/* ---------- 移动端：纵向菜单转顶部横向滚动标签 ---------- */
@media (max-width: 860px) {
    .set-panel { height: calc(100vh - 52px); border-radius: 0; border-left: 0; border-right: 0; }
    .set-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .set-nav {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        gap: 6px;
        padding: 8px 10px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .set-nav .am-tab { width: auto; flex: 0 0 auto; padding: 7px 13px; white-space: nowrap; }
    .set-nav .am-tab.sub { padding-left: 13px; }
    .set-main { padding: 12px 12px 26px; }
}

/* ============================================================
   v2.0.211 · 全局统一
   ============================================================ */

/* ---------- ① 弹窗统一：确认类弹窗尺寸、关闭按钮、底部按钮全局一致 ---------- */
.admin-modal.am-confirm {
    width: 560px;
    max-width: 94vw;
    height: auto;
    min-height: auto;
}
/* 全站弹窗的 × 统一加大，点起来不再费劲 */
.am-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    flex: 0 0 auto;
}
/* 确认弹窗正文与底部按钮：与其他弹窗一致的大按钮 */
.am-confirm .am-body { padding: 24px 26px 10px; font-size: 14px; }
.am-confirm .am-note { font-size: 13.5px; margin-bottom: 8px; }
.am-confirm .am-foot { padding: 14px 22px 20px; gap: 12px; justify-content: flex-end; display: flex; }
.am-confirm .am-foot .am-btn {
    margin-right: 0;
    padding: 9px 30px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}
.am-confirm .am-foot .am-btn.primary { padding: 9px 30px; }

/* ---------- ② 设置内部横向子页签（组织架构 / 授权与权限 / 系统 / 栏目设置通用） ---------- */
.subtabs {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    border-bottom: 2px solid #dce6f1;
    margin: 0 0 16px;
    padding: 0 4px;
}
.subtabs .subtab {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-2);
    padding: 9px 18px;
    margin-bottom: -2px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all .13s;
    white-space: nowrap;
}
.subtabs .subtab .st-ico { margin-right: 5px; }
.subtabs .subtab:hover { background: #eef4fb; color: var(--brand-700); }
.subtabs .subtab.active {
    background: #fff;
    color: var(--brand-700);
    font-weight: 700;
    border-color: #dce6f1;
    border-top: 2px solid var(--brand-500);
    box-shadow: 0 -3px 8px rgba(44, 93, 149, .06);
}
.subtabs + .org-intro { margin-bottom: 14px; }

/* ---------- ③ 栏目授权：手风琴（一个栏目一行，点击展开授权设置） ---------- */
.am-modacc {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow .15s;
}
.am-modacc.open { box-shadow: 0 4px 16px rgba(30, 70, 120, .10); border-color: #c8dcf0; }
.am-modrow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    min-width: 0;
}
.am-modrow:hover { background: #f6f9fd; }
.am-modacc.open .am-modrow { background: linear-gradient(180deg, #f4f8fc, #eef4fa); }
.am-modrow .am-tri {
    flex: 0 0 auto;
    width: 16px;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
    transition: transform .15s;
}
.am-modrow .am-mod-icon { flex: 0 0 auto; font-size: 16px; }
.am-modrow .am-mod-name { font-weight: 700; font-size: 13.5px; color: var(--text-1); white-space: nowrap; }
.am-modrow .am-mod-desc {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-3);
}
.am-modrow .am-mod-sum { flex: 0 0 auto; }
.am-modrow .am-mod-move { flex: 0 0 auto; display: flex; gap: 4px; }
.am-modbody { border-top: 1px solid var(--line-soft); padding: 14px 16px 16px; background: #fbfdff; }
.am-modbody[hidden] { display: none; }
.am-mod-set { display: flex; flex-direction: column; gap: 12px; }
.am-mod-l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.am-mod-l1 .am-mod-divider { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

/* ---------- ④ 帮助 / 关于：右侧内容面板 ---------- */
.set-panel > iframe {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #fff;
}
.about-wrap {
    flex: 1 1 auto;
    overflow: auto;
    padding: 34px 40px 40px;
    max-width: 760px;
}
.about-brand { margin-bottom: 18px; }
.about-panel-brand .about-logo, .about-brand .about-logo { height: 52px; width: auto; box-shadow: 0 8px 18px rgba(74,144,217,.28); }.about-name { font-size: 24px; font-weight: 800; color: #12212f; letter-spacing: .5px; }
.about-name span { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 8px; }
.about-tag { font-size: 13.5px; color: var(--brand-700); font-weight: 700; margin: 6px 0 14px; letter-spacing: 1px; }
.about-note { font-size: 13.5px; line-height: 1.9; color: var(--text-2); margin-bottom: 22px; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}
.about-cell {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fbfdff, #f5f9fd);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.about-cell b { font-size: 13px; color: var(--text-1); }
.about-cell span { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.about-foot { font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 14px; }

/* ---------- ⑤ 博客连接弹窗内嵌 iframe ---------- */
.sso-body { padding: 0 !important; overflow: hidden; display: flex; }
.sso-body iframe { flex: 1 1 auto; width: 100%; height: 540px; border: 0; background: #fff; }
.admin-modal.am-narrow .sso-body iframe { height: 540px; }

@media (max-width: 860px) {
    .am-modrow { flex-wrap: wrap; }
    .am-modrow .am-mod-desc { flex-basis: 100%; order: 5; }
    .about-wrap { padding: 22px 18px 30px; }
}

/* ============================================================
   v2.0.212 全局统一（需求文档 20 条）
   ============================================================ */

/* ---------- 11. 常用栏目：简约方格（图标上 / 名称下）
   v1.9.215：去掉 1:1 大方格 —— 卡片改为固定舒适宽度（96~132px）自适应排列，
   数量多少都不会被撑大，小而整齐。 ---------- */
#fav-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 132px)); gap: 10px; }
#fav-grid .module.mod-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    text-align: center;
}
#fav-grid .mod-compact .m-icon-lg {
    font-size: 26px;
    line-height: 1;
    transition: transform .15s;
}
#fav-grid .mod-compact:hover .m-icon-lg { transform: translateY(-2px) scale(1.08); }
#fav-grid .mod-compact .m-title-c {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 560px)  {
    #fav-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 110px)); gap: 8px; }
    #fav-grid .module.mod-compact { padding: 10px 4px; }
    #fav-grid .mod-compact .m-icon-lg { font-size: 24px; }
    #fav-grid .mod-compact .m-title-c { font-size: 11.5px; }
}

/* ---------- 10. 顶栏全局搜索 ---------- */
/* v2.0.213：简约样式 —— 无边框无底色，与顶栏文字浑然一体 */
.btn-search-top {
    width: 32px; height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2, #5b6b80);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    transition: .15s;
}
.btn-search-top:hover { background: rgba(30, 128, 224, .08); color: var(--brand-700, #2f6fb3); }
/* v1.9.253：全局搜索 —— 独立栏目式内容面板（占满内容区），结果逐条卡片显示 */
#search-panel .gs-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f7f9fc;
}
.gs-searchbar {
    flex: 0 0 auto;
    position: relative;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.gs-searchbar .am-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 14.5px;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
    color: var(--text-dark);
}
.gs-searchbar .am-input:focus { outline: none; border-color: var(--brand-600); background: #fff; }
.gs-clear {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border: 0; border-radius: 50%;
    background: #e7edf4; color: #5a6b7d;
    cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
}
.gs-clear[hidden] { display: none; }
.gs-results {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px 16px 24px;
}
.gs-empty { padding: 48px 16px; text-align: center; color: #94a3b8; font-size: 13.5px; }
.gs-count { padding: 4px 6px 12px; font-size: 12.5px; color: var(--text-3); }
.gs-count b { color: var(--brand-600); font-size: 14px; }
.gs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gs-item:hover {
    border-color: var(--brand-600);
    box-shadow: 0 4px 14px rgba(30, 95, 168, .10);
    transform: translateY(-1px);
}
.gs-mod-tag {
    flex: 0 0 auto;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-700, #2f6fb3);
    background: #eef4fb;
    border-radius: 6px;
    white-space: nowrap;
}
.gs-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gs-item .gs-t {
    font-size: 14px; font-weight: 600; color: var(--text-1);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-item .gs-s {
    font-size: 12px; color: var(--text-3, #8a97a6);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gs-arrow { flex: 0 0 auto; color: #b8c6d6; font-size: 20px; line-height: 1; }
.gs-item:hover .gs-arrow { color: var(--brand-600); }

/* ---------- 32. v2.0.213 关于面板：内容整体居中 ---------- */
#about-panel .about-wrap {
    margin: 0 auto;
    text-align: center;
    max-width: 720px;
    padding: 34px 24px 40px;
}
#about-panel .about-brand { display: flex; justify-content: center; }
#about-panel .about-name { display: flex; align-items: baseline; justify-content: center; }
#about-panel .about-note { text-align: center; }
#about-panel .about-grid { text-align: left; }
#about-panel .about-foot { text-align: center; }

/* ---------- 31. v2.0.212 全局统一 · 手机端适配 ---------- */
@media (max-width: 640px) {
    /* 全局搜索面板：手机端收紧内边距，摘要允许换行，关闭悬浮位移 */
    .btn-search-top { margin-right: 8px; }
    .gs-searchbar { padding: 12px 14px; }
    .gs-results { padding: 10px 12px 20px; }
    .gs-item { flex-wrap: wrap; gap: 6px 9px; padding: 10px 11px; }
    .gs-item .gs-s { white-space: normal; }
    .gs-item:hover { transform: none; }
    /* 常用栏目：小方格在窄屏下的内边距收紧（v1.9.215 已改为自适应小卡） */
    #fav-grid { gap: 8px; }
    #fav-grid .module.mod-compact { padding: 10px 4px; }
    #fav-grid .m-icon-lg { font-size: 24px; }
    #fav-grid .m-title-c { font-size: 11.5px; }
    /* 组织架构 4 个页签在窄屏下横向滚动，不换行挤压 */
    .subtabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .subtabs::-webkit-scrollbar { display: none; }
    .subtab { white-space: nowrap; }
}

/* ============================================================
   v1.9.246 · 多标签页（可关闭标签）
   每个栏目一个独立 iframe，切 tab 只做显示/隐藏，栏目内部状态保留
   ============================================================ */
.wb-tabbar {
    position: sticky;
    top: 56px;
    z-index: 9;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}
.wb-tabbar .wtabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 20px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}
.wb-tabbar .wtabs::-webkit-scrollbar { height: 4px; }
.wb-tabbar .wtabs::-webkit-scrollbar-thumb { background: #dbe3ec; border-radius: 4px; }

.wtab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    max-width: 200px;
    height: 28px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--border);
    border-radius: 4px;                 /* 小倒角：简约、不抢内容 */
    background: var(--card);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.wtab:hover { border-color: #b9c6d6; background: var(--brand-50); }
.wtab .wtab-txt { overflow: hidden; text-overflow: ellipsis; }
.wtab.active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    font-weight: 600;
}
.wtab.is-home { padding-right: 10px; }
.wtab .wtab-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 3px;                 /* 小圆角方块，与标签倒角一致 */
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    flex: 0 0 auto;
    transition: background .15s, color .15s;
}
.wtab .wtab-x:hover { background: rgba(15, 23, 42, .1); color: #475569; }
.wtab.active .wtab-x { color: rgba(255, 255, 255, .85); }
.wtab.active .wtab-x:hover { background: rgba(255, 255, 255, .22); color: #fff; }

/* frame-mode 下 iframe 高度扣掉 顶栏(56) + 标签栏(约70) */
.main.frame-mode .frame-wrap { height: calc(100vh - 100px); }

/* 手机端：面包屑与标签栏收紧 */
@media (max-width: 640px) {
    .wb-tabbar .wtabs { padding: 6px 12px 8px; gap: 5px; }
    .wtab { max-width: 150px; height: 28px; font-size: 12.5px; }
    .main.frame-mode .frame-wrap { height: calc(100vh - 92px); }
}
