/* =========================================================
   人大建议办理平台 · 中国红主题
   ========================================================= */
:root {
    --cn-red: #c8102e;
    --cn-red-600: #b30d28;
    --cn-red-700: #970b21;
    --cn-red-800: #7c081b;
    --cn-red-050: #fdf2f4;
    --cn-red-100: #fbe3e7;
    --cn-gold: #d4a73c;
    --cn-gold-soft: #f6e6bd;
    --ink: #24262b;
    --ink-soft: #5c626d;
    --line: #e8eaee;
    --bg: #f4f5f8;
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(31, 35, 48, .05);
    --shadow: 0 8px 26px rgba(31, 35, 48, .08);
    --sidebar-w: 258px;
}

html, body { min-height: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: #1f2229; }

/* ---------- 主题色覆盖 ---------- */
.btn-primary {
    --bs-btn-bg: var(--cn-red);
    --bs-btn-border-color: var(--cn-red);
    --bs-btn-hover-bg: var(--cn-red-700);
    --bs-btn-hover-border-color: var(--cn-red-700);
    --bs-btn-active-bg: var(--cn-red-800);
    --bs-btn-active-border-color: var(--cn-red-800);
    --bs-btn-disabled-bg: #d98f9c;
    --bs-btn-disabled-border-color: #d98f9c;
    --bs-btn-focus-shadow-rgb: 200, 16, 46;
    box-shadow: 0 4px 12px rgba(200, 16, 46, .18);
}
.btn-outline-primary {
    --bs-btn-color: var(--cn-red);
    --bs-btn-border-color: #e7b3bd;
    --bs-btn-hover-bg: var(--cn-red);
    --bs-btn-hover-border-color: var(--cn-red);
    --bs-btn-active-bg: var(--cn-red-700);
    --bs-btn-active-border-color: var(--cn-red-700);
    --bs-btn-focus-shadow-rgb: 200, 16, 46;
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #fff5f6; --bs-btn-hover-border-color: #f0c9d0; }
.text-primary { color: var(--cn-red) !important; }
.bg-primary { background-color: var(--cn-red) !important; }
.link-primary { color: var(--cn-red) !important; }
a:hover { color: var(--cn-red-700); }
.form-control:focus, .form-select:focus {
    border-color: #e2919e;
    box-shadow: 0 0 0 .2rem rgba(200, 16, 46, .12);
}
.form-check-input:checked { background-color: var(--cn-red); border-color: var(--cn-red); }
.form-check-input:focus { border-color: #e2919e; box-shadow: 0 0 0 .2rem rgba(200, 16, 46, .12); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--cn-red); }
.page-link { color: var(--cn-red); }
.page-item.active .page-link { background-color: var(--cn-red); border-color: var(--cn-red); }
.dropdown-item:active { background-color: var(--cn-red); }
.progress { --bs-progress-bar-bg: var(--cn-red); background-color: #eef0f4; border-radius: 20px; }
.badge { font-weight: 600; letter-spacing: .02em; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 30px; font-size: 12.5px;
    background: var(--cn-red-050); color: var(--cn-red-700); border: 1px solid #f3d3d9;
    white-space: nowrap;
}
.chip-session { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.chip i { font-size: 13px; }
.text-red { color: var(--cn-red) !important; }
.bg-red-soft { background: var(--cn-red-050) !important; }

/* ---------- 侧边栏 ---------- */
.app-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
    background:
        radial-gradient(1200px 380px at -10% -10%, rgba(255, 214, 140, .16), transparent 60%),
        radial-gradient(600px 400px at 110% 110%, rgba(0, 0, 0, .28), transparent 60%),
        linear-gradient(165deg, #8c0a1e 0%, #b80e29 48%, #9b0b22 100%);
    color: #fff; display: flex; flex-direction: column; z-index: 1040;
    box-shadow: 4px 0 24px rgba(80, 6, 18, .18);
    overflow-y: auto;
}
.app-sidebar::-webkit-scrollbar { width: 5px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 4px; }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: 1.15rem 1.2rem .95rem; }
.brand-emblem { display: inline-flex; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .2)); }
.brand-text strong { display: block; font-size: 16px; letter-spacing: .03em; color: #fff; }
.brand-text small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .65); margin-top: 2px; }
.sidebar-session {
    margin: 0 1rem .6rem; padding: .6rem .7rem;
    display: flex; gap: .55rem; align-items: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px; backdrop-filter: blur(4px);
}
.sidebar-session > i { font-size: 1.1rem; color: var(--cn-gold-soft); }
.sess-name { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #fff; }
.sess-meta { font-size: 11px; color: rgba(255, 255, 255, .62); }
.sidebar-nav { padding: .2rem .75rem 1rem; flex: 1; }
.nav-group-title {
    font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .45);
    padding: .9rem .55rem .35rem; text-transform: uppercase;
}
.nav-item {
    position: relative; display: flex; align-items: center; gap: .65rem;
    padding: .58rem .75rem; margin-bottom: 2px; border-radius: 10px;
    color: rgba(255, 255, 255, .82); font-size: 14px; transition: all .18s ease;
}
.nav-item i { font-size: 1.02rem; width: 20px; text-align: center; color: rgba(255, 255, 255, .72); }
.nav-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-item:hover i { color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .17); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.nav-item.active::before {
    content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--cn-gold);
}
.nav-item.active i { color: var(--cn-gold-soft); }
.nav-badge {
    margin-left: auto; background: var(--cn-gold); color: #5a3d00;
    font-size: 10.5px; font-weight: 700; padding: .1rem .4rem; border-radius: 20px; min-width: 20px; text-align: center;
}
.sidebar-foot {
    padding: .85rem 1.3rem 1.1rem; font-size: 11px; color: rgba(255, 255, 255, .48);
    border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: .4rem;
}
.sidebar-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fe29b; box-shadow: 0 0 0 3px rgba(111, 226, 155, .18); }
.sidebar-backdrop { display: none; }

/* ---------- 主区域 ---------- */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar {
    position: sticky; top: 0; z-index: 1020; height: 68px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 0 1.5rem;
    display: flex; align-items: center; gap: .9rem;
}
.topbar-title h1 { font-size: 19px; margin: 0; letter-spacing: .01em; }
.topbar-title p { margin: 2px 0 0; font-size: 12px; color: var(--ink-soft); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.topbar-icon {
    position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--ink-soft); background: #f6f7fa; border: 1px solid var(--line); font-size: 1.05rem;
}
.topbar-icon:hover { background: var(--cn-red-050); color: var(--cn-red); border-color: #f1ccd3; }
.icon-dot {
    position: absolute; top: -5px; right: -5px; background: var(--cn-red); color: #fff;
    font-size: 9.5px; line-height: 1; padding: 3px 5px; border-radius: 20px; border: 2px solid #fff; font-style: normal;
}
.user-trigger {
    display: flex; align-items: center; gap: .55rem; background: transparent; border: 0;
    padding: .25rem .45rem; border-radius: 12px;
}
.user-trigger:hover { background: #f7f8fb; }
.user-meta { flex-direction: column; align-items: flex-start; line-height: 1.15; }
.user-meta strong { font-size: 13px; font-weight: 600; }
.user-meta small { font-size: 10.5px; color: #8a909c; }
.app-avatar { object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .12); }
.avatar-fallback {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: linear-gradient(135deg, var(--cn-red), #e2536a); color: #fff; font-weight: 700;
}
.app-content { padding: 1.35rem 1.5rem 2rem; flex: 1; }
.app-footer {
    padding: .85rem 1.5rem; border-top: 1px solid var(--line); background: #fff;
    font-size: 12px; color: #8a909c; display: flex; justify-content: space-between; gap: 1rem;
}

/* ---------- 卡片 ---------- */
.card {
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-header {
    background: #fff; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: .9rem 1.15rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.card-header .card-title { font-size: 15px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-header .card-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, var(--cn-red), #e2536a);
}
.card-body { padding: 1.15rem; }
.card-tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.soft-card { background: #fff; }
.section-note { color: var(--ink-soft); font-size: 12.5px; }
.divider-soft { height: 1px; background: var(--line); margin: .75rem 0; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.05rem 1.1rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat-card::after {
    content: ""; position: absolute; right: -28px; bottom: -38px; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 16, 46, .07), transparent 70%);
}
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .stat-label { color: var(--ink-soft); font-size: 12.5px; font-weight: 500; }
.stat-ico {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; background: var(--cn-red-050); color: var(--cn-red);
}
.stat-ico.gold { background: #fdf6e3; color: #b8860b; }
.stat-ico.green { background: #eaf7ef; color: #1f9d55; }
.stat-ico.blue { background: #eef4ff; color: #2b6be4; }
.stat-card .stat-value { font-size: 30px; font-weight: 800; line-height: 1.15; margin-top: .55rem; letter-spacing: -.02em; }
.stat-card .stat-value small { font-size: 13px; font-weight: 500; color: #8a909c; margin-left: 3px; }
.stat-card .stat-foot { font-size: 11.5px; color: #8a909c; margin-top: .2rem; }
.stat-card.accent { background: linear-gradient(150deg, #a50c24, #c8102e 60%, #d93750); color: #fff; border: 0; }
.stat-card.accent .stat-label, .stat-card.accent .stat-foot { color: rgba(255, 255, 255, .75); }
.stat-card.accent .stat-value { color: #fff; }
.stat-card.accent .stat-ico { background: rgba(255, 255, 255, .16); color: #ffe1a8; }
.stat-card.accent::after { background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }

/* ---------- 表格 ---------- */
.table { --bs-table-border-color: #eef0f4; vertical-align: middle; margin-bottom: 0; }
.table > thead th {
    background: #fbf3f5; color: #7c2434; font-size: 12.5px; font-weight: 700;
    border-bottom: 1px solid #f2dde2; white-space: nowrap; padding: .7rem .85rem;
}
.table > tbody > tr > td { padding: .72rem .85rem; font-size: 13.5px; }
.table-hover > tbody > tr:hover > * { background: #fffafb; }
.table-sug-title { font-weight: 600; color: #23252b; display: block; max-width: 430px; }
.table-sug-title:hover { color: var(--cn-red); }
.cell-sub { font-size: 11.5px; color: #8a909c; margin-top: 2px; }
.cell-nowrap { white-space: nowrap; }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.empty-state { padding: 3.2rem 1rem; text-align: center; color: #9aa0ac; }
.empty-state i { font-size: 2.4rem; color: #d8dbe2; display: block; margin-bottom: .6rem; }

/* ---------- 状态标签 ---------- */
.status-pill {
    display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem;
    border-radius: 30px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-secondary { background: #f1f2f5; color: #6b7280; }
.pill-info { background: #e9f5fb; color: #0f7ba5; }
.pill-warning { background: #fff6e5; color: #b57400; }
.pill-primary { background: #fdeef0; color: var(--cn-red); }
.pill-success { background: #eaf7ef; color: #1f9d55; }
.pill-danger { background: #fdeceb; color: #ce3b32; }
.eval-pill { display: inline-flex; align-items: center; gap: .25rem; font-size: 11.5px; font-weight: 700; padding: .18rem .55rem; border-radius: 7px; }
.eval-A { background: #eaf7ef; color: #1f8f4e; }
.eval-B { background: #eef4ff; color: #2b6be4; }
.eval-C { background: #fff6e5; color: #b57400; }
.eval-D { background: #fdeceb; color: #ce3b32; }
.eval-N { background: #f1f2f5; color: #8a909c; }
.deadline-chip { font-size: 11.5px; color: #8a909c; }
.deadline-chip.overdue { color: #ce3b32; font-weight: 600; }

/* ---------- 列表筛选 ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow-sm); }
.filter-bar .form-control, .filter-bar .form-select { font-size: 13px; }
.tab-bar { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.tab-link {
    display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 10px;
    font-size: 13.5px; color: var(--ink-soft); border: 1px solid transparent; background: #fff;
}
.tab-link:hover { color: var(--cn-red); background: #fff7f8; }
.tab-link.active { background: var(--cn-red); color: #fff; box-shadow: 0 5px 14px rgba(200, 16, 46, .22); }
.tab-link .count { font-size: 11px; background: rgba(0, 0, 0, .08); padding: .05rem .4rem; border-radius: 20px; }
.tab-link.active .count { background: rgba(255, 255, 255, .24); }

/* ---------- 详情页 ---------- */
.detail-title { font-size: 21px; line-height: 1.45; margin: .2rem 0 .55rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: #7b8290; font-size: 12.5px; }
.detail-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.rich-content { font-size: 14.5px; line-height: 1.95; color: #33363d; word-break: break-word; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.rich-content table { width: 100%; border-collapse: collapse; }
.rich-content table td, .rich-content table th { border: 1px solid #e2e5ea; padding: .4rem .6rem; }
.unit-block { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .85rem; overflow: hidden; }
.unit-block-head { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; background: #fbfcfd; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.unit-block-head .unit-name { font-weight: 700; font-size: 14px; }
.unit-block-body { padding: .85rem .95rem; }
.unit-report { background: #fcfcfd; border: 1px dashed #e3e6eb; border-radius: 10px; padding: .7rem .8rem; margin-top: .5rem; }
.unit-report .rp-label { font-size: 11.5px; color: #8a909c; margin-bottom: .25rem; }
.unit-report .rich-content { font-size: 13.5px; line-height: 1.85; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 1.25rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #eceef2; }
.tl-item { position: relative; padding: 0 0 1rem .2rem; }
.tl-item::before {
    content: ""; position: absolute; left: -1.25rem; top: 5px; width: 10px; height: 10px; border-radius: 50%;
    background: #fff; border: 2px solid #cfd3da;
}
.tl-item.done::before { background: var(--cn-red); border-color: var(--cn-red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.tl-item .tl-time { font-size: 11.5px; color: #949aa6; }
.tl-item .tl-title { font-size: 13.5px; font-weight: 600; margin: .1rem 0 .15rem; }
.tl-item .tl-desc { font-size: 12.5px; color: #6f7581; word-break: break-word; }
.stage-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .3rem 0 .6rem; }
.stage-step { position: relative; padding-top: .9rem; font-size: 11.5px; color: #8a909c; text-align: center; }
.stage-step::before { content: ""; position: absolute; top: .35rem; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: #dfe3e9; }
.stage-step.done::before { background: #1f9d55; }
.stage-step.active::before { background: var(--cn-red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .13); }
.stage-step.done, .stage-step.active { color: #3d424c; font-weight: 600; }
.stage-bar { height: 4px; border-radius: 10px; background: #eceef2; overflow: hidden; display: flex; }
.stage-bar span { display: block; height: 100%; }
.stage-bar .bar-done { background: #1f9d55; }
.stage-bar .bar-half { background: var(--cn-red); }

/* ---------- 进度条组 ---------- */
.mini-progress { height: 7px; border-radius: 20px; background: #eff1f5; overflow: hidden; min-width: 80px; }
.mini-progress > span { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #d1183a, #c8102e); }
.mini-progress.green > span { background: linear-gradient(90deg, #27ae60, #1f8f4e); }
.rate-label { font-size: 11.5px; color: #7b8290; }

/* ---------- 登录 / 访客页 ---------- */
.guest-body {
    min-height: 100vh; margin: 0;
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(255, 205, 120, .18), transparent 55%),
        radial-gradient(900px 700px at 100% 100%, rgba(0, 0, 0, .35), transparent 60%),
        linear-gradient(150deg, #6f0717 0%, #a80c24 45%, #7c081b 100%);
    color: #fff; display: flex; flex-direction: column;
}
.guest-topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 2rem; gap: 1rem; }
.guest-brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.guest-brand strong { display: block; font-size: 16px; color: #fff; }
.guest-brand small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.guest-brand:hover { color: #fff; }
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 1.5rem 3rem; }
.login-panel {
    width: min(1020px, 100%); background: #fff; color: var(--ink); border-radius: 22px;
    box-shadow: 0 30px 80px rgba(30, 0, 8, .35); overflow: hidden;
    display: grid; grid-template-columns: 1.08fr .92fr;
}
.login-hero {
    position: relative; padding: 2.7rem 2.5rem; color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255, 205, 120, .22), transparent 60%),
        linear-gradient(155deg, #9e0b22, #c8102e 52%, #8f0a1f 100%);
    display: flex; flex-direction: column;
}
.login-hero::after {
    content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(160deg, transparent 30%, #000 90%);
    -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000 90%);
}
.login-hero .hero-badge { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-size: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: .3rem .7rem; border-radius: 30px; position: relative; z-index: 1; }
.login-hero h2 { color: #fff; font-size: 29px; letter-spacing: .04em; margin: 1.25rem 0 .9rem; line-height: 1.35; position: relative; z-index: 1; }
.login-hero h2 em { font-style: normal; color: #ffdf9e; }
.login-hero p { color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.9; max-width: 24em; position: relative; z-index: 1; }
.hero-steps { margin-top: auto; display: grid; gap: .65rem; position: relative; z-index: 1; }
.hero-step { display: flex; gap: .7rem; align-items: flex-start; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; padding: .6rem .75rem; }
.hero-step .step-no { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: rgba(255, 223, 158, .92); color: #7c081b; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hero-step strong { display: block; font-size: 12.5px; color: #fff; }
.hero-step small { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
.login-panel-right { padding: 2.6rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.login-panel-right h3 { font-size: 22px; margin-bottom: .35rem; }
.login-sub { color: #8a909c; font-size: 13px; margin-bottom: 1.5rem; }
.qr-frame {
    width: 218px; height: 218px; margin: .2rem auto 1.2rem; border-radius: 18px;
    border: 1px solid #eef0f4; background: linear-gradient(180deg, #fff, #fcfcfd);
    box-shadow: inset 0 0 0 8px #fff, 0 10px 30px rgba(31, 35, 48, .07);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
    position: relative; overflow: hidden;
}
.qr-frame::after {
    content: ""; position: absolute; left: 10%; right: 10%; height: 2px; top: 20%;
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, .5), transparent);
    animation: scanline 3.2s ease-in-out infinite;
}
@keyframes scanline { 0%, 100% { top: 16%; opacity: .2; } 50% { top: 82%; opacity: .85; } }
.qr-frame i { font-size: 5.6rem; color: #23252b; line-height: 1; }
.qr-frame span { font-size: 11.5px; color: #8a909c; }
.btn-wechat {
    background: #07c160; border-color: #07c160; color: #fff; font-weight: 600;
    padding: .7rem 1rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: .5rem;
    box-shadow: 0 8px 20px rgba(7, 193, 96, .24);
}
.btn-wechat:hover { background: #06ad56; border-color: #06ad56; color: #fff; }
.login-hint { text-align: center; font-size: 11.5px; color: #9aa0ac; margin-top: .9rem; line-height: 1.8; }
.dev-box { margin-top: 1.2rem; border: 1px dashed #e3e6eb; border-radius: 12px; padding: .75rem .85rem; background: #fcfcfd; }
.dev-box .dev-title { font-size: 11.5px; color: #8a909c; display: flex; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.guest-simple { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem 3rem; }
.guest-card { width: min(520px, 100%); background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px rgba(30, 0, 8, .35); padding: 2.2rem 2rem; text-align: center; }
.guest-card .big-icon { width: 66px; height: 66px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.guest-card h1 { font-size: 21px; margin-bottom: .5rem; }
.guest-card p { color: #6f7581; font-size: 13.5px; line-height: 1.85; }
.openid-box { background: #f7f8fa; border: 1px solid var(--line); border-radius: 9px; padding: .5rem .65rem; font-family: Consolas, monospace; font-size: 12px; word-break: break-all; color: #4a4f59; }

/* ---------- 会议动态 ---------- */
.meeting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.meeting-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .2s; }
.meeting-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.meeting-cover { height: 118px; background: linear-gradient(140deg, #9e0b22, #c8102e 55%, #7c081b); position: relative; padding: 1rem 1.1rem; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.meeting-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 18px 18px; opacity: .25; }
.meeting-cover .mt-date { font-size: 11.5px; color: rgba(255, 255, 255, .8); position: relative; }
.meeting-cover .mt-tag { position: absolute; top: .7rem; left: 1rem; font-size: 10.5px; background: rgba(255, 223, 158, .95); color: #6d1b02; padding: .12rem .5rem; border-radius: 20px; font-weight: 700; }
.meeting-body { padding: .85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.meeting-body h3 { font-size: 15px; margin-bottom: .4rem; line-height: 1.55; }
.meeting-body p { color: #7b8290; font-size: 12.5px; line-height: 1.7; flex: 1; }
.meeting-meta { display: flex; gap: .9rem; color: #9aa0ac; font-size: 11.5px; margin-top: .5rem; }

/* ---------- 通知 ---------- */
.notice-item { display: flex; gap: .8rem; padding: .9rem 1.05rem; border-bottom: 1px solid #f0f2f5; align-items: flex-start; }
.notice-item:last-child { border-bottom: 0; }
.notice-item.unread { background: #fffafb; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cn-red); margin-top: .45rem; flex: 0 0 8px; }
.notice-dot.read { background: #dfe3e9; }
.notice-title { font-weight: 600; font-size: 14px; color: #292c33; }
.notice-desc { color: #7b8290; font-size: 12.5px; margin-top: .2rem; line-height: 1.7; }
.notice-meta { color: #a0a6b1; font-size: 11.5px; white-space: nowrap; }
.notice-type { font-size: 10.5px; padding: .1rem .45rem; border-radius: 20px; background: #fdf2f4; color: var(--cn-red); margin-right: .3rem; }

/* ---------- 帮助中心 ---------- */
.help-hero { background: linear-gradient(140deg, #960a20, #c8102e 55%, #85081c); color: #fff; border-radius: var(--radius); padding: 1.8rem 1.9rem; position: relative; overflow: hidden; }
.help-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.help-hero h2 { color: #fff; font-size: 23px; margin-bottom: .5rem; }
.help-hero p { color: rgba(255, 255, 255, .78); font-size: 13px; margin: 0; }
.accordion-button { font-weight: 600; font-size: 14px; }
.accordion-button:not(.collapsed) { background: var(--cn-red-050); color: var(--cn-red-700); box-shadow: inset 0 -1px 0 #f3d3d9; }
.accordion-button:focus { box-shadow: none; border-color: #f3d3d9; }
.faq-body { font-size: 13.5px; line-height: 1.95; color: #4d525d; }
.faq-body ol, .faq-body ul { padding-left: 1.2rem; }

/* ---------- 设置页 ---------- */
.settings-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; color: var(--ink); box-shadow: var(--shadow-sm); height: 100%; transition: .2s; }
.settings-card:hover { border-color: #f0c4cc; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.settings-card .sc-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--cn-red-050); color: var(--cn-red); margin-bottom: .8rem; }
.settings-card h3 { font-size: 15px; margin-bottom: .3rem; }
.settings-card p { color: #8a909c; font-size: 12.5px; line-height: 1.7; margin: 0; }
.settings-list .list-group-item { border-color: #f0f2f5; }
.settings-nav { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---------- KindEditor ---------- */
.ke-container { border-radius: 10px !important; border-color: var(--line) !important; }
.ke-toolbar { background: #fbfcfd !important; border-radius: 10px 10px 0 0 !important; }
.ke-statusbar { border-radius: 0 0 10px 10px !important; }

/* ---------- 其他 ---------- */
.form-label { font-size: 12.5px; font-weight: 600; color: #4c515b; margin-bottom: .35rem; }
.form-control, .form-select { border-color: #e2e5ea; border-radius: 9px; font-size: 13.5px; padding: .5rem .7rem; }
.form-control::placeholder { color: #b3b8c2; }
.form-text { font-size: 11.5px; color: #9aa0ac; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.modal-header { border-bottom-color: #f0f2f5; padding: 1rem 1.2rem; }
.modal-title { font-size: 15.5px; font-weight: 700; }
.modal-body { padding: 1.15rem 1.2rem; }
.modal-footer { border-top-color: #f0f2f5; padding: .8rem 1.2rem; }
.alert { border-radius: 12px; font-size: 13px; }
.alert-danger { background: #fdf1f2; border-color: #f6d4d8; color: #9c1c2b; }
.section-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 .75rem; }
.section-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--cn-red); }
.summary-panel { background: linear-gradient(135deg, #fff8f9, #fff); border: 1px solid #f3d9de; border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.summary-panel .summary-label { display: inline-flex; align-items: center; gap: .4rem; font-size: 12px; color: var(--cn-red); font-weight: 700; margin-bottom: .45rem; }
.summary-panel p { margin: 0; font-size: 13.5px; line-height: 2; color: #4c515b; }
.summary-panel strong { color: var(--cn-red-700); }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 220px; }
.kpi-inline { display: flex; flex-wrap: wrap; gap: .4rem .7rem; }
.data-empty { color: #9aa0ac; font-size: 12.5px; text-align: center; padding: 2rem 0; }
.file-row { display: flex; align-items: center; gap: .5rem; font-size: 12.5px; padding: .35rem 0; }
.file-row i { font-size: 1rem; }
.file-row .file-size { color: #a0a6b1; font-size: 11px; }
.badge-soft { background: #f5f6f9; color: #5c626d; font-weight: 500; }
.hover-lift { transition: .2s; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.table-actions { white-space: nowrap; }
.table-actions .btn { --bs-btn-padding-y: .18rem; --bs-btn-padding-x: .45rem; --bs-btn-font-size: 11.5px; }

@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .meeting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 17, 22, .45); z-index: 1035; }
    .app-main { margin-left: 0; }
    .app-content { padding: 1rem; }
    .app-topbar { padding: 0 1rem; }
    .login-panel { grid-template-columns: 1fr; }
    .login-hero { padding: 2rem 1.7rem; }
    .login-hero .hero-steps { margin-top: 1.4rem; }
    .login-panel-right { padding: 2rem 1.7rem; }
}
@media (max-width: 767.98px) {
    .stat-grid { grid-template-columns: 1fr; }
    .meeting-grid { grid-template-columns: 1fr; }
    .topbar-title h1 { font-size: 16px; }
    .topbar-title p { display: none; }
    .app-footer { flex-direction: column; gap: .25rem; }
    .login-hero { display: none; }
    .guest-topbar { padding: .9rem 1.1rem; }
    .guest-brand small { display: none; }
    .detail-title { font-size: 18px; }
    .table-sug-title { max-width: 260px; }
}
@media print {
    .app-sidebar, .app-topbar, .app-footer, .no-print { display: none !important; }
    .app-main { margin-left: 0; }
    .app-content { padding: 0; }
    body { background: #fff; }
}
