/* ============================================================
   Aero Workbench · 维修工作台样式
   设计语言与 work.html 一致：深蓝侧栏 + 浅灰内容区 + 科技蓝高亮
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --nav-bg: #1e2c3d;
    --nav-bg-hover: #27394d;
    --nav-bg-active: #304863;
    --nav-text: #aebdcc;
    --nav-text-active: #ffffff;
    --accent: #4a90d9;
    --accent-soft: #7fb0e0;
    --content-bg: #eef1f5;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #8a97a5;
    --border: #e3e8ee;
}
body {
    font-family: "WenQuanYi Micro Hei", "Microsoft YaHei", -apple-system, sans-serif;
    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: 1px solid rgba(255,255,255,0.06);
}
.sidebar-header h1 {
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-header .logo {
    width: 26px; height: 26px;
    background: var(--accent);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.sidebar-header .sub {
    font-size: 10px;
    color: var(--nav-text);
    margin-top: 6px;
    letter-spacing: 1px;
    padding-left: 34px;
}

.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: 11px 20px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: bold;
    color: var(--nav-text);
    letter-spacing: 0.5px;
    user-select: none;
}
.nav-cat-title:hover { background: var(--nav-bg-hover); color: #fff; }
.nav-cat-title .left { display: flex; align-items: center; gap: 10px; }
.nav-cat-title .icon { font-size: 15px; opacity: 0.9; }
.nav-cat-title .arrow { font-size: 10px; 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); }
.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(0,0,0,0.15); }
.nav-category.open > .nav-sub { display: block; }
.nav-sub-item {
    padding: 9px 20px 9px 50px;
    font-size: 12.5px;
    color: var(--nav-text);
    cursor: pointer;
    position: relative;
}
.nav-sub-item:hover { color: #fff; 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: #fff;
    background: var(--nav-bg-active);
    font-weight: bold;
}
.nav-sub-item.active::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
}
.nav-sub-item.planned { opacity: 0.55; }
.nav-sub-item.planned:hover { color: var(--nav-text); background: transparent; }

.nav-sub-sub { display: none; background: rgba(0,0,0,0.12); }
.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(255,255,255,0.06);
    font-size: 11px;
    color: var(--nav-text);
}
.sidebar-footer a { color: var(--accent-soft); text-decoration: none; }

/* ============ 右侧内容 ============ */
.main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 0;
}
.topbar {
    height: 56px;
    background: #fff;
    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: 15px; font-weight: bold; color: var(--text-dark); }
.topbar .page-name .en { font-size: 11px; color: var(--text-muted); margin-left: 8px; font-weight: normal; }
.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: 6px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.15s;
}
.top-btn:hover { background: #3a7cc4; }
.logout-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.logout-btn:hover { border-color: #d9534f; color: #d9534f; }

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

/* 统计卡片 */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(30,44,61,0.04);
    position: relative;
    overflow: hidden;
}
.card .top { display: flex; align-items: center; justify-content: space-between; }
.card .num { font-size: 28px; font-weight: bold; color: var(--text-dark); margin-top: 8px; }
.card .label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card .cicon {
    width: 38px; height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.cicon.blue { background: #e8f1fc; color: #4a90d9; }
.cicon.green { background: #e7f6ef; color: #27ae60; }
.cicon.orange { background: #fdf0e6; color: #e67e22; }
.cicon.purple { background: #f1ecf9; color: #8e5cd9; }

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

/* 模块入口 */
.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.module {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: 0 1px 3px rgba(30,44,61,0.04);
    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); }
.module .m-head { display: flex; align-items: center; gap: 12px; }
.module .m-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: #e8f1fc;
    color: #4a90d9;
    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: #f0f3f7;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 10px;
}

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

/* 最近更新 */
.recent {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 0;
    min-height: 120px;
}
.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f2f5f8;
    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: #e8f1fc;
    color: #4a90d9;
    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: #eef1f5; color: #7a8a9a; }
.r-status.s1 { background: #e8f1fc; color: #2d6db5; }
.r-status.s2 { background: #e7f6ef; color: #27ae60; }
.r-status.s3 { background: #fdf0e6; color: #c07a1f; }
.recent-item .r-date { color: #aaa; font-size: 12px; white-space: nowrap; }
.recent-empty { padding: 26px 20px; text-align: center; color: #b3bec9; font-size: 13px; }

/* ============ 右侧今日待办面板 ============ */
.today-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(30,44,61,0.04);
}
.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: 8px;
    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: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
}
.tp-add button:hover { background: #3a7cc4; }

.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 #f2f5f8;
}
.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 #f0f3f7;
    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: #eef1f5;
    color: #7a8a9a;
}
.due-badge.over { background: #fdecec; color: #d9534f; }
.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: #fdecec; color: #d9534f; }
.pri.p2 { background: #fdf0e6; color: #e67e22; }
.pri.p3 { background: #e7f6ef; color: #27ae60; }

.tp-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 2px;
    border-bottom: 1px dashed #f0f3f7;
    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: #27ae60; border-color: #27ae60; }
.tp-quick-item.done .q-text { color: #b3bec9; 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: #b3bec9; white-space: nowrap; }
.tp-quick-item.done .q-when { color: #27ae60; }
.tp-empty { padding: 14px 4px; color: #b3bec9; font-size: 12px; text-align: center; }

/* ============ 登录页 ============ */
.login-page {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #16283b 0%, #1e2c3d 55%, #24374d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    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: #16385c; 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: #5b6672; margin: 14px 0 6px; }
.login-card input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dbe2ec;
    border-radius: 9px;
    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: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-login:hover { background: #3a7cc4; }
.btn-login:disabled { background: #a9c4e2; cursor: not-allowed; }
.login-error {
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    padding: 9px 12px;
    border-radius: 8px;
    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: 8px;
    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;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(30,44,61,.08);
}
#wb-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}
.nav-sub-item.wb-new { color: #ffb84d; }

/* ============ 响应式 ============ */
@media (max-width: 1280px) {
    .modules { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; }
    .tp-list { max-height: none; }
}
@media (max-width: 820px) {
    .sidebar { display: none; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .modules { grid-template-columns: 1fr; }
    .content { padding: 16px; }
    .topbar { padding: 0 14px; }
    .topbar .user-info { display: none; }
}

/* ============================================================
   v1.4 · 关键修复：hidden 属性兜底
   （.cards/.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: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.am-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--nav-bg);
    color: #fff;
}
.am-title { font-size: 15px; font-weight: 600; }
.am-close {
    width: 30px; height: 30px;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 18px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1;
}
.am-close:hover { background: rgba(255,255,255,.24); }
.am-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 14px 0;
    background: #f4f6f9;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.am-tab {
    border: 0;
    background: transparent;
    padding: 9px 14px;
    font-size: 13px;
    color: #5b6672;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-family: inherit;
}
.am-tab:hover { background: #e9eef4; }
.am-tab.active {
    background: #fff;
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 -1px 0 var(--border), 0 1px 0 #fff;
}
.am-body {
    flex: 1;
    overflow: auto;
    padding: 16px 18px;
}
.am-loading { color: #8a97a5; 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: #f2f5f9;
    color: #5b6672;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.am-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
}
.am-table tr:hover td { background: #f8fafc; }
.am-table .am-empty { text-align: center; color: #8a97a5; padding: 22px; }
.am-btn {
    border: 1px solid #d3dce6;
    background: #fff;
    color: #3d4957;
    padding: 5px 12px;
    border-radius: 7px;
    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: #d9534f; color: #d9534f; }
.am-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.am-btn.primary:hover { background: #3a7cc4; }
.am-btn:disabled { opacity: .55; cursor: not-allowed; }
.am-input, .am-select {
    border: 1px solid #dbe2ec;
    border-radius: 7px;
    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: #8a97a5; }
.am-sec-title { font-size: 13px; font-weight: 600; color: #3d4957; margin: 14px 0 8px; }
.am-radio-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; color: #3d4957; }
.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: 14px;
    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: #8a97a5; }
.am-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; }
.am-badge.on { background: #e6f6ec; color: #1e8e4e; }
.am-badge.off { background: #fdecec; color: #c0392b; }
.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 ---------- */
.wb-logo-svg { display: block; flex-shrink: 0; }
.sb-logo .wb-logo-svg { width: 32px; height: 32px; }
.login-logo .wb-logo-svg {
    width: 58px; height: 58px;
    box-shadow: 0 10px 22px rgba(74,144,217,.38);
    border-radius: 14px;
}

/* ---------- 侧栏头部（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, #ffffff 20%, #9ccbf5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    white-space: nowrap;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}
.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(255,255,255,.07);
    color: var(--nav-text);
    border-radius: 7px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}
.sb-collapse:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- 概览（顶级大项） ---------- */
.nav-overview {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 6px 12px 10px;
    padding: 12px 14px;
    border-radius: 10px;
    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, #4a90d9, #3571b0);
    border-color: #4a90d9;
    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: 13.5px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.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 #dbe2ec;
    background: #fff;
    color: var(--text-dark);
    border-radius: 8px;
    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, #16385c, #2d6fb0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #16385c;
}
.btn-guest {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed #9db9d8;
    border-radius: 9px;
    background: #f4f9ff;
    color: #3d6ea8;
    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: 7px;
    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: #1e8e4e; 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; }


