/* ================================================================
   FootHealth — 足部健康检测分析平台
   设计系统: Light SaaS Medical Dashboard
   ================================================================ */

/* ==================== CSS 变量 ==================== */
:root {
    /* 品牌色 */
    --orange:       #f97316;
    --orange-light: #fff7ed;
    --orange-dark:  #ea580c;
    --orange-ghost: rgba(249, 115, 22, 0.08);

    /* 语义色 */
    --green:  #10b981;
    --red:    #ef4444;
    --blue:   #3b82f6;
    --purple: #8b5cf6;
    --yellow: #f59e0b;

    /* 背景 */
    --bg-root:     #f5f6fa;
    --bg-surface:  #ffffff;
    --bg-sidebar:  #ffffff;
    --bg-hover:    #f8f9fb;
    --bg-active:   #f0f1f5;

    /* 文字 */
    --text-primary:   #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted:     #9ca3af;
    --text-inverse:   #ffffff;

    /* 边框 & 阴影 */
    --border:      #e5e7eb;
    --border-light:#f3f4f6;
    --shadow-sm:   0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg:   0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl:   0 16px 48px rgba(0,0,0,0.10);

    /* 圆角 */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   20px;
    --radius-full: 9999px;

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* 字体 */
    --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-mono: "Cascadia Code", "Fira Code", "JetBrains Mono", "Consolas", monospace;

    /* 过渡 */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms var(--ease);
}

/* ==================== 全局重置 ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg-root);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== 三栏布局 ==================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ==================== 左侧导航栏 (240px) ==================== */
.sidebar-left {
    width: 240px;
    min-width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-md);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

/* 品牌 */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-xs) var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-lg);
}
.brand-logo { flex-shrink: 0; }
.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.brand-accent { color: var(--orange); }

/* 导航 */
.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
    font-family: var(--font);
    width: 100%;
    text-align: left;
}
.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.nav-item.active {
    background: var(--orange-ghost);
    color: var(--orange);
    font-weight: 600;
}
.nav-item.active svg { stroke: var(--orange); }

/* 用户卡片 */
.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-md) var(--space-sm);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.user-avatar {
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-logout {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.btn-logout:hover { background: #fef2f2; border-color: #fecaca; color: var(--red); }

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
    min-width: 0;
}

/* 面板切换 */
.panel { display: none; }
.panel.active { display: block; }
.panel-header-bar {
    margin-bottom: var(--space-lg);
}
.panel-header-bar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.panel-header-bar p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ==================== 欢迎卡片 ==================== */
.welcome-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-light);
}
.welcome-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.welcome-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.welcome-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.status-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.live-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.live-dot.red   { background: var(--red);   box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.live-dot.gray  { background: #d1d5db; }
.status-label { margin-right: 12px; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn.has-notif::after {
    content: '';
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    position: absolute;
    top: 10px; right: 10px;
    border: 2px solid white;
}

/* ==================== 统计卡片行 ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 20px var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon.bg-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.stat-icon.bg-green  { background: linear-gradient(135deg, #10b981, #34d399); }
.stat-icon.bg-blue   { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.stat-icon.bg-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.stat-body { flex: 1; min-width: 0; }
.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.stat-body .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.stat-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    flex-shrink: 0;
}
.stat-badge.up   { background: #ecfdf5; color: #059669; }
.stat-badge.down { background: #fef3c7; color: #d97706; }

/* ==================== 2列网格 ==================== */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}
.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}
.card-badge.live  { background: #fef2f2; color: var(--red); }
.card-badge.idle  { background: #f3f4f6; color: var(--text-muted); }
.card-badge.done  { background: #ecfdf5; color: #059669; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); }

.dash-card { height: fit-content; }

/* ==================== 图表容器 ==================== */
.chart-wrap {
    position: relative;
    width: 100%;
    height: 220px;
}
.chart-wrap canvas { width: 100% !important; }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 2px 8px rgba(249,115,22,0.25);
}
.btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 16px rgba(249,115,22,0.35);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: var(--space-md); }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-group select, .form-group textarea, .form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-surface);
    transition: border var(--transition);
    outline: none;
}
.form-group select:focus, .form-group textarea:focus, .form-group input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-ghost);
}
.form-group textarea { resize: vertical; }

/* 症状复选框 */
.checkboxes { display: flex; flex-wrap: wrap; gap: 6px; }
.sym-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
    background: var(--bg-surface);
    color: var(--text-secondary);
}
.sym-check:hover { border-color: var(--orange); background: var(--orange-light); color: var(--orange); }
.sym-check:has(input:checked) {
    border-color: var(--orange);
    background: var(--orange-light);
    color: var(--orange);
    font-weight: 600;
}
.sym-check input[type="checkbox"] { accent-color: var(--orange); width: 14px; height: 14px; }

/* ==================== 搜索框 ==================== */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    font-family: var(--font);
    color: var(--text-primary);
    width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }

/* ==================== 右侧栏卡片 ==================== */
.side-card { margin-bottom: var(--space-md); }

.system-card .card-header { margin-bottom: var(--space-sm); }
.status-list { display: flex; flex-direction: column; gap: 8px; }
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.status-dot-sm {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot-sm.green { background: var(--green); }
.status-dot-sm.red   { background: var(--red); }
.status-dot-sm.gray  { background: #d1d5db; }
.status-text { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }

/* 信息横幅 */
.info-banner {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
    padding: 24px;
}
.info-banner-bg {
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.info-banner-content { position: relative; z-index: 1; }
.info-banner-content h3 { font-size: 1.1rem; font-weight: 700; }
.info-banner-content p { font-size: 0.82rem; opacity: 0.9; margin: 6px 0 10px; line-height: 1.5; }
.info-tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

/* 步骤列表 */
.step-list { display: flex; flex-direction: column; gap: 2px; }
.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.step-item:hover { background: var(--bg-hover); }
.step-check {
    width: 30px; height: 30px;
    border-radius: var(--radius-full);
    background: var(--bg-active);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--transition);
}
.step-item.done .step-check {
    background: #ecfdf5;
    color: var(--green);
}
.step-item.active .step-check {
    background: var(--orange-light);
    color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-ghost);
}
.step-info { flex: 1; }
.step-title { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.step-desc  { display: block; font-size: 0.75rem; color: var(--text-muted); }

/* ==================== 链接文字 ==================== */
.link-text {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity var(--transition);
}
.link-text:hover { opacity: 0.8; }

/* ==================== 压力迷你方格 ==================== */
.pressure-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}
.pressure-mini-cell {
    background: var(--bg-root);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.pressure-mini-cell.active {
    border-color: var(--orange);
    background: var(--orange-light);
    box-shadow: 0 0 0 2px var(--orange-ghost);
}
.pressure-mini-cell .pml { font-size: 0.65rem; color: var(--text-muted); }
.pressure-mini-cell .pmv { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-top: 1px; }

/* ==================== 18通道压力网格 ==================== */
.pressure-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.pressure-cell {
    background: var(--bg-root);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.pressure-cell.active {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: var(--orange);
}
.pressure-cell .cell-label { font-size: 0.65rem; color: var(--text-muted); display: block; }
.pressure-cell .cell-value { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-top: 2px; display: block; }

/* ==================== 3D 容器 ==================== */
#three-container {
    width: 100%;
    height: 380px;
    background: #f0f1f5;
    border-radius: var(--radius-md);
    cursor: grab;
    overflow: hidden;
    position: relative;
}
#three-container:active { cursor: grabbing; }
#three-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

/* ==================== 加载 & 占位 ==================== */
.loading { text-align: center; padding: 40px 20px; }
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading p { color: var(--text-secondary); font-size: 0.9rem; }

.result-placeholder { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty-icon-large { font-size: 3rem; margin-bottom: 12px; opacity: 0.6; }
.result-placeholder p { font-weight: 600; margin-bottom: 4px; }
.result-placeholder span { font-size: 0.82rem; color: var(--text-muted); }

.empty-state { text-align: center; padding: 24px; }
.empty-icon { font-size: 2.5rem; margin-bottom: 8px; opacity: 0.5; }
.empty-state p { font-weight: 600; color: var(--text-secondary); }
.empty-state span { font-size: 0.78rem; color: var(--text-muted); }

/* ==================== 快捷操作 ==================== */
.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.qa-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition);
}
.qa-btn:hover { border-color: var(--orange); background: var(--orange-ghost); }
.qa-icon { font-size: 1.3rem; }

/* ==================== 最近记录列表 ==================== */
.recent-list { min-height: 100px; }
.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.record-item:last-child { border-bottom: none; }
.record-info .record-title { font-weight: 600; font-size: 0.9rem; }
.record-info .record-meta { font-size: 0.75rem; color: var(--text-muted); }
.record-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.record-status.ok   { background: #ecfdf5; color: #059669; }
.record-status.warn { background: #fef3c7; color: #d97706; }
.record-status.bad  { background: #fef2f2; color: #dc2626; }

/* ==================== 皮肤结果 ==================== */
.skin-result-card-inner {
    background: var(--bg-root);
    border-radius: var(--radius-md);
    padding: 20px;
}
.skin-result-card-inner .diagnosis {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.skin-result-card-inner .diagnosis.warn { color: var(--orange); }
.skin-result-card-inner .diagnosis.ok   { color: var(--green); }
.skin-result-card-inner .diagnosis.bad  { color: var(--red); }
.skin-result-card-inner .meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.skin-result-card-inner .desc { line-height: 1.7; margin-bottom: 8px; font-size: 0.9rem; }
.skin-result-card-inner .suggestion { line-height: 1.7; color: var(--orange); font-size: 0.9rem; font-weight: 500; }

/* ==================== 报告摘要 ==================== */
.report-summary { margin-bottom: var(--space-md); }
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.summary-item {
    background: var(--bg-root);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}
.summary-label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.summary-value { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }

/* ==================== 报告内容 ==================== */
.report-content {
    background: #fafbfc;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: var(--space-md);
    line-height: 1.9;
    font-size: 0.93rem;
    border: 1px solid var(--border-light);
}
.report-content h2 { color: var(--text-primary); font-size: 1.2rem; margin: 20px 0 10px; }
.report-content h2:first-child { margin-top: 0; }
.report-content h3 { color: var(--orange); font-size: 1.05rem; margin: 16px 0 8px; }
.report-content ul, .report-content ol { padding-left: 24px; }
.report-content li { margin-bottom: 6px; }
.report-content p { margin-bottom: 8px; }
.report-content strong { color: var(--text-primary); }

/* ==================== 提示文字 ==================== */
.hint { color: var(--text-muted); font-size: 0.8rem; }

/* ==================== 响应式 ==================== */
@media (max-width: 1400px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .sidebar-right { width: 280px; min-width: 280px; }
}
@media (max-width: 1200px) {
    .app-layout { flex-direction: column; }
    .sidebar-left {
        width: 100%; min-width: 100%; height: auto; position: static;
        flex-direction: row; flex-wrap: wrap; gap: var(--space-md);
        padding: var(--space-md); align-items: center;
    }
    .sidebar-left .brand { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .sidebar-left .nav-menu { flex-direction: row; flex: none; }
    .sidebar-left .user-card { border-top: none; margin-top: 0; margin-left: auto; }
    .sidebar-right { width: 100%; min-width: 100%; }
    .dashboard-grid-2col { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar-left { flex-direction: column; align-items: stretch; }
    .sidebar-left .nav-menu { flex-direction: column; }
    .sidebar-left .user-card { margin-left: 0; }
    .stats-row { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: 1fr; }
    .welcome-card { flex-direction: column; gap: var(--space-md); }
}

/* ==================== 右侧边栏 ==================== */
.sidebar-right {
    width: 320px;
    min-width: 320px;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-light);
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

/* ==================== 压力进度条 ==================== */
.progress-bar-wrap {
    margin-top: 12px;
    background: var(--bg-root);
    border-radius: var(--radius-full);
    height: 6px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #fb923c);
    border-radius: var(--radius-full);
    transition: width 0.3s;
    width: 0%;
}
