:root {
    --primary: #4f46e5; --primary-light: #818cf8; --primary-dark: #3730a3;
    --secondary: #06b6d4; --accent: #f59e0b; --success: #10b981;
    --warning: #f59e0b; --danger: #ef4444; --info: #3b82f6;
    --bg: #f1f5f9; --bg-card: #ffffff; --bg-sidebar: #1e293b;
    --text: #1e293b; --text-muted: #64748b; --text-light: #94a3b8;
    --border: #e2e8f0; --shadow-sm: 0 2px 8px rgba(0,0,0,0.04); --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 28px rgba(0,0,0,0.10);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px; --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }

/* ==================== 加载动画 ==================== */
.loading-screen { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-spinner { position: relative; width: 80px; height: 80px; }
.spinner-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; animation: spin 1.2s linear infinite; }
.spinner-ring:nth-child(2) { animation-delay: 0.2s; inset: 8px; }
.spinner-ring:nth-child(3) { animation-delay: 0.4s; inset: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #fff; font-size: 1.1rem; margin-top: 30px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ==================== 顶部栏 ==================== */
.top-bar { position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 1000; background: var(--bg-card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.logo i { font-size: 1.3rem; }
.top-center { display: flex; align-items: center; gap: 16px; }
.weather-widget { display: flex; align-items: center; gap: 8px; padding: 6px 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; color: #fff; transition: var(--transition); cursor: pointer; }
.weather-widget:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(102,126,234,0.4); }
.weather-icon-area { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.15); border-radius: 8px; }
.weather-icon { font-size: 1rem; }
.weather-detail { display: flex; flex-direction: column; line-height: 1.2; }
.weather-temp { font-weight: 700; font-size: 0.95rem; }
.weather-desc { font-size: 0.65rem; opacity: 0.85; }
.date-time { text-align: center; padding: 4px 14px; background: var(--bg); border-radius: 8px; }
.current-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.current-time { font-size: 1.15rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.top-right { display: flex; align-items: center; gap: 16px; }
.user-profile { display: flex; align-items: center; gap: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }

/* 同步状态指示器 */
.sync-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; transition: background 0.3s; cursor: default; }
.sync-status.sync-idle { background: #94a3b8; }
.sync-status.sync-syncing { background: #f59e0b; animation: sync-pulse 0.8s ease-in-out infinite; }
.sync-status.sync-synced { background: #10b981; }
.sync-status.sync-error { background: #ef4444; }
@keyframes sync-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ==================== 侧边栏 ==================== */
.sidebar { position: fixed; left: 0; top: 60px; bottom: 0; width: 220px; z-index: 900; background: var(--bg-sidebar); display: flex; flex-direction: column; padding-top: 8px; }
.nav-menu { flex: 1; padding: 0 10px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 2px 0; border-radius: 8px; color: var(--text-light); text-decoration: none; font-size: 0.85rem; transition: var(--transition); cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(3px); }
.nav-item.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
.nav-item i { font-size: 0.95rem; width: 20px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.progress-ring { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.progress-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 5; }
.progress-fill { fill: none; stroke: var(--success); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.5s ease; }
.progress-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.progress-text span { font-size: 1rem; font-weight: 700; }
.progress-text small { font-size: 0.58rem; opacity: 0.7; }

/* ==================== 主内容区 ==================== */
.main-content { margin-left: 220px; margin-top: 60px; padding: 24px 28px; min-height: calc(100vh - 60px); }
.section { display: none; animation: fadeIn 0.4s ease; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.section-header h2 i { color: var(--primary); }
.section-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* ==================== 卡片 ==================== */
.card { background: var(--bg-card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border); }
.card:hover { box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-header h3 { font-size: 0.95rem; display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.card-header h3 i { color: var(--primary); }

/* ==================== 仪表盘网格 ==================== */
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-span-2 { grid-column: span 2; }
.grid-span-4 { grid-column: span 4; }

/* 统一指标卡片 */
.metric-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 170px;
    justify-content: space-between;
}
.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.metric-header i {
    color: var(--primary);
    font-size: 0.9rem;
}
.metric-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.metric-body.ring-layout {
    justify-content: center;
}
.metric-body.number-layout {
    justify-content: center;
}
.metric-ring-wrap {
    width: 72px;
    height: 72px;
    position: relative;
    flex-shrink: 0;
}
.metric-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.metric-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.metric-number .unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}
.metric-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.m-stat {
    text-align: center;
    padding: 6px 4px;
    background: rgba(99,102,241,0.05);
    border-radius: 8px;
    border: 1px solid rgba(99,102,241,0.08);
}
.m-stat .m-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}
.m-stat .m-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.todo-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.todo-badge.orange { background: var(--warning); }

/* SVG环形图 */
.ind-track { fill: none; stroke: #e2e8f0; stroke-width: 7; }
.ind-fill { fill: none; stroke: #4f46e5; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 2s ease; }
.ind-fill.profit-fill { stroke: #10b981; }

/* 小表格 */
.mini-table-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.mini-table th, .mini-table td {
    padding: 5px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.mini-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.7rem;
}
.mini-table td {
    color: var(--text);
    font-weight: 600;
}
.mini-table tr:last-child td {
    border-bottom: none;
}
.mini-table .total-row {
    background: rgba(99,102,241,0.04);
    font-weight: 700;
}

/* 早晚报微缩 */
.mini-report {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
}
.mini-report-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mini-report-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mini-report-item.travel {
    border-left-color: var(--success);
}
.mini-report-item .mr-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 700;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}
.mini-report-item.travel .mr-tag {
    background: #d1fae5;
    color: #047857;
}
.mini-report-item .mr-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 紧急提醒 ==================== */
.urgent-alerts { margin-bottom: 16px; background: linear-gradient(135deg, #fff5f5, #fff1f2); border: 1.5px solid #fecaca; border-radius: var(--radius); padding: 14px 18px; animation: alertPulse 2s ease-in-out infinite; }
@keyframes alertPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.2); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.urgent-alert-header { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #b91c1c; margin-bottom: 8px; }
.urgent-alert-header i { font-size: 1.1rem; }
.urgent-count { background: var(--danger); color: #fff; font-size: 0.68rem; padding: 2px 9px; border-radius: 16px; }
.urgent-alert-list { display: flex; flex-wrap: wrap; gap: 6px; }
.urgent-alert-item { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid #fecaca; border-radius: 8px; font-size: 0.8rem; color: var(--text); cursor: pointer; transition: var(--transition); }
.urgent-alert-item:hover { background: #fff5f5; transform: translateY(-2px); box-shadow: 0 2px 6px rgba(239,68,68,0.12); }
.urgent-alert-item .ua-tag { padding: 1px 7px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; }
.urgent-alert-item .ua-tag.urgent { background: #fee2e2; color: #b91c1c; }
.urgent-alert-item .ua-tag.warn { background: #fef3c7; color: #92400e; }
.urgent-alert-item .ua-plan { font-size: 0.68rem; color: var(--danger); font-weight: 600; }

/* ==================== 年度目标占比条 ==================== */
.target-bars { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.target-bar-item { display: flex; flex-direction: column; gap: 5px; }
.target-bar-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.target-bar-header .tb-name { font-weight: 600; display: flex; align-items: center; gap: 5px; }
.target-bar-header .tb-value { font-weight: 700; color: var(--text-muted); }
.target-bar-track { height: 20px; background: var(--bg); border-radius: 10px; overflow: hidden; position: relative; }
.target-bar-fill { height: 100%; border-radius: 10px; transition: width 1.5s ease; position: relative; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; }
.target-bar-fill .tb-data { font-size: 0.65rem; font-weight: 700; color: #fff; }
.target-bar-fill.revenue-fill { background: linear-gradient(135deg, #667eea, #764ba2); }
.target-bar-fill.profit-fill { background: linear-gradient(135deg, #f093fb, #f5576c); }
.target-bar-fill.supply-fill { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.target-bar-fill.quality-fill { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.target-bar-fill.safety-fill { background: linear-gradient(135deg, #a78bfa, #818cf8); }

/* ==================== 图表容器 ==================== */
.chart-container { position: relative; width: 100%; height: 280px; }
.chart-toggle { display: flex; gap: 4px; background: var(--bg); border-radius: 7px; padding: 3px; }
.toggle-btn { padding: 5px 12px; border: none; border-radius: 5px; background: transparent; color: var(--text-muted); font-size: 0.78rem; cursor: pointer; transition: var(--transition); }
.toggle-btn.active { background: var(--primary); color: #fff; }
.toggle-btn:hover:not(.active) { background: var(--border); }
.view-more { color: var(--primary); text-decoration: none; font-size: 0.82rem; display: flex; align-items: center; gap: 4px; transition: var(--transition); cursor: pointer; }
.view-more:hover { gap: 6px; }

/* 通用 chart 2:1 行布局 */
.chart-row-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }

/* 专项工作快速预览 */
.project-preview-list { display: flex; flex-direction: column; gap: 6px; }
.project-preview-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg); border-radius: 9px; transition: var(--transition); }
.project-preview-item:hover { background: var(--border); }
.project-preview-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.project-preview-status.done { background: var(--success); }
.project-preview-status.progress { background: var(--warning); }
.project-preview-status.pending { background: var(--text-light); }
.project-preview-info { flex: 1; min-width: 0; }
.project-preview-title { font-size: 0.83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-preview-line { font-size: 0.7rem; color: var(--text-muted); }
.project-preview-progress { width: 60px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.project-preview-progress .bar { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* ==================== 产线总览 ==================== */
.product-summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.product-summary-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden; }
.product-summary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-summary-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; }
.product-summary-card.机票::before { background: var(--primary); }
.product-summary-card.门票::before { background: var(--success); }
.product-summary-card.酒店::before { background: var(--warning); }
.product-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.product-card-title { font-size: 1.05rem; font-weight: 700; }
.product-card-status { padding: 3px 10px; border-radius: 16px; font-size: 0.7rem; font-weight: 600; }
.product-card-status.active { background: #d1fae5; color: var(--success); }
.product-card-status.partial { background: #fef3c7; color: var(--warning); }
.product-card-status.planning { background: #e0e7ff; color: var(--primary); }
.product-card-owner { font-size: 0.73rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; padding: 2px 8px; background: #e0e7ff; border-radius: 5px; display: inline-block; }
.product-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-metric { text-align: center; }
.product-metric .metric-label { font-size: 0.7rem; color: var(--text-muted); display: block; }
.product-metric .metric-value { font-size: 1.2rem; font-weight: 800; color: var(--text); display: block; }
.product-metric .metric-rate { font-size: 0.7rem; margin-top: 2px; }
.product-metric .metric-rate.up { color: var(--danger); }
.product-metric .metric-rate.down { color: var(--success); }
.table-scroll { overflow-x: auto; }

/* ==================== KPI考核 ==================== */
.kpi-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 2px; }
.kpi-tab { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: var(--transition); white-space: nowrap; font-size: 0.88rem; color: var(--text-muted); }
.kpi-tab:hover { border-color: var(--primary-light); }
.kpi-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: var(--primary); color: #fff; box-shadow: 0 3px 12px rgba(79,70,229,0.25); }
.kpi-tab .weight { font-size: 0.7rem; padding: 1px 7px; background: rgba(0,0,0,0.06); border-radius: 5px; }
.kpi-tab.active .weight { background: rgba(255,255,255,0.2); }
.kpi-panel { display: none; animation: fadeIn 0.4s ease; }
.kpi-panel.active { display: block; }

.kpi-header { display: flex; gap: 14px; margin-bottom: 20px; }
.kpi-header > div { flex: 1; min-width: 120px; background: var(--bg-card); padding: 18px; border-radius: 12px; box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition); }
.kpi-header > div:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-header .target-label, .kpi-header .current-label, .kpi-header .rate-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.kpi-header .target-value, .kpi-header .current-value, .kpi-header .rate-value { font-size: 1.35rem; font-weight: 800; }
.kpi-header .rate-value.green { color: var(--success); }
.kpi-header .rate-value.orange { color: var(--warning); }

/* 数据表 */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th, .data-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg); font-weight: 600; color: var(--text-muted); position: sticky; top: 0; font-size: 0.76rem; }
.data-table td { color: var(--text); }
.data-table tr:hover td { background: #f8fafc; }
.data-table .month-cell { font-weight: 600; }
.data-table .value-cell { font-family: 'SF Mono', 'Consolas', monospace; font-size: 0.79rem; }
.data-table .rate-cell { font-weight: 700; }
.data-table .rate-cell.good { color: #ef4444; }
.data-table .rate-cell.bad { color: #10b981; }
.data-table .rate-cell.neutral { color: #94a3b8; }
.data-table .rate-cell.warning { color: #f59e0b; }
.data-table .metric-label-td { font-weight: 600; color: var(--primary); white-space: nowrap; }

/* 供应链时间线 */
.supply-timeline { position: relative; padding-left: 26px; }
.supply-timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary)); }
.timeline-item { position: relative; padding: 14px 18px; margin-bottom: 12px; background: var(--bg-card); border-radius: 10px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.timeline-item:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.timeline-item::before { content: ''; position: absolute; left: -22px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg-card); }
.timeline-item.done::before { background: var(--success); }
.timeline-item.in-progress::before { background: var(--warning); }
.timeline-month { font-size: 0.7rem; color: var(--primary); font-weight: 700; margin-bottom: 3px; }
.timeline-title { font-weight: 600; margin-bottom: 3px; }
.timeline-desc { font-size: 0.81rem; color: var(--text-muted); line-height: 1.6; }
.timeline-status { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.timeline-status.done { background: #d1fae5; color: var(--success); }
.timeline-status.in-progress { background: #fef3c7; color: var(--warning); }
.timeline-status.pending { background: var(--bg); color: var(--text-muted); }

/* ==================== 专项工作 ==================== */
.project-kpi-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.project-kpi-card { background: var(--bg-card); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); border-left: 3px solid var(--primary); }
.project-kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-kpi-card h4 { font-size: 0.84rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.project-kpi-card .kpi-score { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 5px; }
.project-kpi-card .kpi-progress { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.project-kpi-card .kpi-progress .bar { height: 100%; border-radius: 3px; transition: width 1.5s ease; }
.project-kpi-card .kpi-subitems { font-size: 0.7rem; color: var(--text-muted); line-height: 1.5; }

.project-filters { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: var(--text-muted); font-size: 0.81rem; cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(79,70,229,0.2); }

.project-stats-row { display: flex; gap: 12px; margin-bottom: 20px; }
.mini-stat { flex: 1; text-align: center; padding: 14px; background: var(--bg-card); border-radius: 10px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.mini-stat:hover { transform: translateY(-2px); }
.mini-stat-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.mini-stat-label { font-size: 0.74rem; color: var(--text-muted); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.project-card { background: var(--bg-card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: var(--transition); border-left: 3px solid var(--primary); position: relative; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.project-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.project-card-line { font-size: 0.7rem; padding: 3px 9px; border-radius: 5px; font-weight: 600; }
.project-card-line.国内机票 { background: #dbeafe; color: #1d4ed8; }
.project-card-line.国内酒店 { background: #fce7f3; color: #be185d; }
.project-card-line.国际机票 { background: #d1fae5; color: #047857; }
.project-card-line.保险 { background: #fef3c7; color: #b45309; }
.project-card-line.租车 { background: #ede9fe; color: #6d28d9; }
.project-card-line.贵宾厅 { background: #ffe4e6; color: #be123c; }
.project-card-line.网约车 { background: #e0f2fe; color: #0369a1; }
.project-card-status { padding: 3px 10px; border-radius: 16px; font-size: 0.69rem; font-weight: 600; }
.project-card-status.已完成, .project-card-status.已签约, .project-card-status.已上线 { background: #d1fae5; color: var(--success); }
.project-card-status.签约中, .project-card-status.进行中 { background: #fef3c7; color: #d97706; }
.project-card-status.待签约, .project-card-status.待启动, .project-card-status.不对外合作 { background: #f3f4f6; color: var(--text-muted); }
.project-card-kpi-tag { font-size: 0.63rem; padding: 1px 7px; border-radius: 4px; background: #ede9fe; color: #6d28d9; margin-left: 6px; white-space: nowrap; }
.project-card-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.project-card-target { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.project-card-progress { margin-bottom: 8px; }
.project-card-progress .progress-bar { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.project-card-progress .progress-bar .fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.project-card-progress .progress-text { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }
.project-card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }
.project-card-remark { font-size: 0.71rem; color: var(--text-light); padding: 6px 10px; background: var(--bg); border-radius: 7px; margin-top: 6px; }

/* ==================== 工作管理 ==================== */
.manage-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; }
.manage-form-card, .manage-list-card { background: var(--bg-card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.manage-form .form-group { margin-bottom: 12px; }
.manage-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.manage-form input, .manage-form select, .manage-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.86rem; font-family: inherit; transition: var(--transition); background: var(--bg); }
.manage-form input:focus, .manage-form select:focus, .manage-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.manage-form textarea { resize: vertical; }
.form-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 18px; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 3px 12px rgba(79,70,229,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(79,70,229,0.35); }
.btn-secondary { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #dc2626); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); }
.btn-link { background: none; border: none; color: var(--primary); font-size: 0.78rem; cursor: pointer; text-decoration: underline; }
.btn-sm { padding: 5px 10px; font-size: 0.76rem; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.78rem; }
.search-box input { padding: 7px 10px 7px 30px; border: 1px solid var(--border); border-radius: 7px; font-size: 0.81rem; width: 180px; background: var(--bg); }
.manage-list { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; }
.manage-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg); border-radius: 8px; transition: var(--transition); }
.manage-item:hover { background: var(--border); }
.manage-item-info { flex: 1; min-width: 0; }
.manage-item-title { font-size: 0.86rem; font-weight: 600; }
.manage-item-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.manage-item-actions { display: flex; gap: 5px; flex-shrink: 0; }
.manage-item-actions .btn { padding: 5px 8px; }

/* ==================== 每日待办 ==================== */
.todos-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.todos-layout .card:nth-child(3) { grid-column: span 2; }
.todo-input-area, .focus-input-area { display: flex; gap: 6px; margin-bottom: 12px; }
.todo-input-area input, .focus-input-area input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.86rem; background: var(--bg); }
.todo-input-area input:focus, .focus-input-area input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.todo-list, .focus-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.todo-item, .focus-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: 8px; transition: var(--transition); }
.todo-item:hover, .focus-item:hover { background: var(--border); }
.todo-item.completed .todo-text { text-decoration: line-through; color: var(--text-light); }
.todo-checkbox { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); flex-shrink: 0; }
.todo-checkbox:hover { border-color: var(--primary); }
.todo-checkbox.checked { background: var(--success); border-color: var(--success); }
.todo-checkbox.checked::after { content: '✓'; color: #fff; font-size: 0.65rem; font-weight: 700; }
.todo-text { flex: 1; font-size: 0.86rem; }
.todo-delete, .focus-delete { color: var(--danger); cursor: pointer; padding: 3px; opacity: 0; transition: var(--transition); }
.todo-item:hover .todo-delete, .focus-item:hover .focus-delete { opacity: 1; }
.todo-stats { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
.date-badge, .month-badge { padding: 3px 10px; background: var(--primary); color: #fff; border-radius: 16px; font-size: 0.7rem; font-weight: 600; }

/* 日历 */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calendar-header { text-align: center; font-size: 0.7rem; color: var(--text-muted); padding: 6px 0; font-weight: 600; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.78rem; cursor: pointer; transition: var(--transition); }
.calendar-day:hover { background: var(--border); }
.calendar-day.today { background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(79,70,229,0.25); }
.calendar-day.other-month { color: var(--text-light); }

/* ==================== 早晚报 ==================== */
.report-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.report-tab { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: var(--transition); font-size: 0.9rem; color: var(--text-muted); }
.report-tab:hover { border-color: var(--primary-light); }
.report-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: var(--primary); color: #fff; box-shadow: 0 3px 12px rgba(79,70,229,0.25); }
.report-panel { display: none; animation: fadeIn 0.4s ease; }
.report-panel.active { display: block; }
.report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.report-title { display: flex; align-items: center; gap: 14px; }
.report-title i { font-size: 2rem; color: var(--warning); }
.report-title h3 { font-size: 1.15rem; }
.report-title span { color: var(--text-muted); font-size: 0.8rem; }
.news-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-category { background: var(--bg-card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.news-category h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 0.95rem; }
.news-category h4 i { color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-item { display: flex; gap: 10px; padding: 10px; background: var(--bg); border-radius: 8px; transition: var(--transition); cursor: pointer; position: relative; }
.news-item:hover { background: var(--border); transform: translateX(3px); }
.news-item::after { content: '点击查看详情 →'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.63rem; color: var(--primary); opacity: 0; transition: var(--transition); }
.news-item:hover::after { opacity: 1; }
.news-index { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.news-item:nth-child(2) .news-index { background: var(--info); }
.news-item:nth-child(3) .news-index { background: var(--success); }
.news-item:nth-child(4) .news-index { background: var(--warning); }
.news-item:nth-child(5) .news-index { background: var(--danger); }
.news-content { flex: 1; min-width: 0; }
.news-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.news-source { font-size: 0.7rem; color: var(--text-muted); }

/* 新闻详情弹窗 */
.news-detail-modal { width: 540px; max-width: 95%; }
.news-detail-tag { display: inline-block; padding: 3px 10px; border-radius: 16px; font-size: 0.7rem; font-weight: 600; }
.news-detail-tag.ai { background: #ede9fe; color: #6d28d9; }
.news-detail-tag.travel { background: #d1fae5; color: #047857; }
.news-detail-source { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.news-detail-content { font-size: 0.88rem; line-height: 1.8; color: var(--text); }
.news-detail-content p { margin-bottom: 10px; }

/* ==================== 股票行情 ==================== */
.stock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stock-card { background: var(--bg-card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.stock-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stock-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.stock-logo { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; flex-shrink: 0; margin-right: 8px; }
.stock-logo.xiecheng { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.stock-logo.zhongmian { background: linear-gradient(135deg, #be185d, #ec4899); }
.stock-logo.tongcheng { background: linear-gradient(135deg, #047857, #10b981); }
.stock-logo.gold { background: linear-gradient(135deg, #b45309, #f59e0b); }
.stock-name-row { display: flex; align-items: center; gap: 8px; }
.stock-name { font-weight: 700; font-size: 0.95rem; }
.stock-code { font-size: 0.69rem; color: var(--text-muted); }
.stock-price { font-size: 1.6rem; font-weight: 800; margin-bottom: 3px; }
.stock-price .unit { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.stock-change { display: flex; align-items: center; gap: 3px; font-size: 0.85rem; font-weight: 600; }
.stock-change.up { color: #ef4444; }
.stock-change.down { color: #10b981; }
.stock-detail-row { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.72rem; }
.stock-detail-item { text-align: center; }
.stock-detail-item .s-label { color: var(--text-muted); display: block; margin-bottom: 2px; }
.stock-detail-item .s-value { font-weight: 600; color: var(--text); }
.stock-news-card { background: var(--bg-card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stock-news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stock-news-item { padding: 12px; background: var(--bg); border-radius: 8px; transition: var(--transition); cursor: pointer; border-left: 3px solid var(--primary); }
.stock-news-item:hover { background: var(--border); transform: translateX(3px); }
.stock-news-item .sn-tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 0.63rem; font-weight: 600; margin-bottom: 6px; }
.stock-news-item .sn-tag.携程 { background: #dbeafe; color: #1d4ed8; }
.stock-news-item .sn-tag.中免 { background: #fce7f3; color: #be185d; }
.stock-news-item .sn-tag.同程 { background: #d1fae5; color: #047857; }
.stock-news-item .sn-tag.黄金 { background: #fef3c7; color: #b45309; }
.stock-news-item .sn-title { font-size: 0.83rem; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.stock-news-item .sn-time { font-size: 0.68rem; color: var(--text-muted); }
.stock-update-time { font-size: 0.69rem; color: var(--text-muted); text-align: right; margin-top: 5px; }

/* ==================== Toast & Modal ==================== */
.toast-container { position: fixed; top: 72px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 8px; background: var(--bg-card); box-shadow: var(--shadow-hover); display: flex; align-items: center; gap: 8px; font-size: 0.85rem; animation: toastIn 0.3s ease; min-width: 250px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes toastIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.fade-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut { to { transform: translateX(100px); opacity: 0; } }

.modal-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius); padding: 22px; width: 380px; max-width: 90%; box-shadow: var(--shadow-hover); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.modal-header i { color: var(--warning); font-size: 1.1rem; }
.modal-header h3 { font-size: 1.05rem; }
.modal-body { color: var(--text-muted); margin-bottom: 18px; font-size: 0.86rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; }

/* ==================== 移动端导航 & 可折叠任务模块 ==================== */
.mobile-menu-btn { display: none; }
.mobile-nav { display: none; }

.task-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.task-module { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.task-module-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; transition: var(--transition); background: var(--bg-card); border-bottom: 1px solid var(--border); }
.task-module-header:hover { background: #f8fafc; }
.task-module-title { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.task-module-title i { color: var(--primary); font-size: 0.9rem; }
.task-module-stats { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-left: auto; margin-right: 10px; }
.task-module-toggle { font-size: 0.75rem; color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.task-module[data-collapsed="true"] .task-module-toggle { transform: rotate(-90deg); }
.task-module-body { padding: 10px 14px; max-height: 300px; overflow-y: auto; transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease; }
.task-module[data-collapsed="true"] .task-module-body { max-height: 0; padding: 0 14px; overflow: hidden; opacity: 0; }
.task-module-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.task-module-item:last-child { border-bottom: none; }
.task-module-item.completed .task-text { text-decoration: line-through; color: var(--text-light); }
.task-module-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.8rem; }
.task-urgency-tag { padding: 1px 7px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.task-urgency-tag.urgent { background: #fee2e2; color: #b91c1c; }
.task-urgency-tag.warn { background: #fef3c7; color: #92400e; }
.task-plan { font-size: 0.68rem; color: var(--danger); font-weight: 600; margin-left: 4px; }

.focus-item.completed span { text-decoration: line-through; color: var(--text-light); }

/* ==================== 响应式 ==================== */
@media (max-width: 1280px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-span-4, .grid-span-2 { grid-column: span 2; }
    .chart-row-2-1 { grid-template-columns: 1fr; }
    .product-summary-row, .stock-grid { grid-template-columns: repeat(2, 1fr); }
    .project-kpi-map { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--bg); cursor: pointer; color: var(--text); font-size: 1rem; margin-right: 8px; }
    .mobile-nav { display: flex; justify-content: space-around; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,0.08); padding: 6px 0 10px; border-top: 1px solid var(--border); }
    .mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.6rem; color: var(--text-muted); cursor: pointer; text-decoration: none; padding: 0 4px; }
    .mobile-nav-item i { font-size: 1.1rem; }
    .mobile-nav-item.active { color: var(--primary); }
    .main-content { margin-left: 0; padding-bottom: 70px; }
    .task-modules { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .dashboard-grid, .product-summary-row, .stock-grid { grid-template-columns: 1fr; }
    .grid-span-4, .grid-span-2 { grid-column: span 1; }
    .todos-layout, .manage-layout, .news-categories, .stock-news-list, .form-row { grid-template-columns: 1fr; }
    .todos-layout .card:nth-child(3) { grid-column: span 1; }
    .kpi-header { flex-wrap: wrap; }
    .kpi-header > div { flex: 0 0 calc(50% - 7px); }
    .top-center { display: none; }
    .project-kpi-map { grid-template-columns: 1fr; }
    .chart-row-2-1 { grid-template-columns: 1fr; }
}

/* ==================== 手机端专属优化（仅 ≤767px，不动桌面端） ==================== */
@media (max-width: 767px) {
    /* 内容区内边距 */
    .main-content { padding: 14px 10px 80px 10px; }

    /* 顶部栏 */
    .top-bar { padding: 0 10px; height: 52px; }
    .logo span { font-size: 0.85rem; }
    .top-right .user-profile span { display: none; }
    .avatar { width: 30px; height: 30px; font-size: 0.75rem; }

    /* 页面标题 */
    .section-header { margin-bottom: 12px; }
    .section-header h2 { font-size: 1.1rem; }
    .section-subtitle { font-size: 0.75rem; }

    /* 卡片 */
    .card { padding: 12px 10px; border-radius: 10px; }
    .card-header { margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
    .card-header h3 { font-size: 0.85rem; }

    /* 仪表盘网格 — 手机端 2列 */
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* 指标卡片 — 手机端统一规格：2列2行 */
    .metric-card {
        height: auto;
        min-height: 135px;
        padding: 10px 8px;
        flex-direction: column;
        justify-content: space-between;
    }
    .metric-card:nth-child(7) { grid-column: span 2; min-height: 110px; }
    .metric-header { font-size: 0.72rem; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .metric-header i { font-size: 0.72rem; flex-shrink: 0; }
    .metric-body.ring-layout { padding: 4px 0; }
    .metric-ring-wrap { width: 55px; height: 55px; }
    .metric-ring-text { font-size: 0.72rem; }
    .metric-body.number-layout { padding: 6px 0; }
    .metric-number { font-size: 1.3rem; }
    .metric-number .unit { font-size: 0.6rem; }
    /* 统计4项：2x2 统一网格 */
    .metric-footer { grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: 4px; }
    .m-stat { padding: 4px 2px; border-radius: 6px; }
    .m-stat .m-label { font-size: 0.58rem; }
    .m-stat .m-value { font-size: 0.68rem; }

    /* 可折叠任务模块 — 手机优化 */
    .task-modules { gap: 8px; }
    .task-module-header { padding: 10px 12px; }
    .task-module-title { font-size: 0.82rem; gap: 6px; }
    .task-module-stats { font-size: 0.68rem; margin-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
    .task-module-body { padding: 6px 10px; max-height: 250px; }
    .task-module-item { padding: 8px 0; gap: 6px; font-size: 0.78rem; }

    /* 图表容器 — 手机端 */
    .chart-container { height: 220px; }
    .card.grid-span-4 .chart-container,
    .card.grid-span-2 .chart-container { height: 240px; }

    /* grid-span 卡片在手机端占满2列 */
    .grid-span-2, .grid-span-4 { grid-column: span 2; }

    /* 小表格 */
    .mini-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .mini-table th, .mini-table td { padding: 4px 6px; font-size: 0.7rem; white-space: nowrap; }

    /* 早晚报微缩 */
    .mini-report { gap: 6px; }
    .mini-report-item { padding: 8px 10px; border-radius: 8px; border-left-width: 3px; }
    .mini-report-item .mr-tag { font-size: 0.6rem; padding: 2px 6px; }
    .mini-report-item .mr-title { font-size: 0.78rem; line-height: 1.3; }

    /* 专项工作快速预览 */
    .project-preview-item { padding: 8px 10px; gap: 6px; }
    .project-preview-title { font-size: 0.78rem; }
    .project-preview-line { font-size: 0.67rem; }
    .project-preview-progress { width: 40px; }

    /* 年度目标占比条 */
    .target-bars { gap: 10px; }
    .target-bar-header { font-size: 0.75rem; }
    .target-bar-track { height: 16px; border-radius: 8px; }
    .target-bar-fill .tb-data { font-size: 0.6rem; }

    /* 产线总览 */
    .product-summary-card { padding: 14px; }
    .product-card-title { font-size: 0.95rem; }
    .product-card-metrics { gap: 8px; }
    .product-metric .metric-value { font-size: 1.05rem; }
    .product-metric .metric-label { font-size: 0.65rem; }

    /* KPI 考核 — 手机端 */
    .kpi-tab { padding: 7px 10px; font-size: 0.74rem; gap: 3px; }
    .kpi-tab .weight { font-size: 0.62rem; }
    .kpi-header { gap: 6px; display: grid; grid-template-columns: repeat(2, 1fr); }
    .kpi-header > div { padding: 10px 6px; min-width: 0; }
    .kpi-header .target-value, .kpi-header .current-value, .kpi-header .rate-value { font-size: 1rem; }
    .kpi-header .target-label, .kpi-header .current-label, .kpi-header .rate-label { font-size: 0.65rem; }
    .chart-row-2-1 { grid-template-columns: 1fr; gap: 10px; }
    /* 数据表格 — 手机端 */
    .data-table { font-size: 0.68rem; }
    .data-table th, .data-table td { padding: 5px 6px; white-space: nowrap; }
    .data-table th { font-size: 0.62rem; }
    .data-table .month-cell { font-size: 0.68rem; font-weight: 600; min-width: 50px; }
    .data-table .value-cell { font-size: 0.66rem; }
    .data-table .rate-cell { font-size: 0.66rem; font-weight: 700; }
    .data-table small { font-size: 0.6rem; white-space: nowrap; }
    .data-table .metric-label-td { font-size: 0.68rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
    .table-scroll { -webkit-overflow-scrolling: touch; }

    /* 专项工作 */
    .project-stats-row { gap: 6px; }
    .mini-stat { padding: 10px 6px; border-radius: 8px; }
    .mini-stat-value { font-size: 1.2rem; }
    .mini-stat-label { font-size: 0.68rem; }
    .project-grid { grid-template-columns: 1fr; gap: 10px; }
    .project-card { padding: 14px; }
    .project-card-title { font-size: 0.84rem; }
    .project-card-target, .project-card-desc { font-size: 0.74rem; }
    .project-card-remark { font-size: 0.67rem; }
    .filter-btn { padding: 5px 10px; font-size: 0.74rem; }
    .project-kpi-card { padding: 12px; }
    .project-kpi-card h4 { font-size: 0.78rem; }

    /* 工作管理 */
    .manage-form .form-group { margin-bottom: 8px; }
    .manage-form input, .manage-form select, .manage-form textarea { padding: 7px 10px; font-size: 0.8rem; }
    .manage-form label { font-size: 0.74rem; }
    .btn { padding: 7px 14px; font-size: 0.78rem; border-radius: 7px; }
    .manage-list { max-height: 300px; }
    .manage-item { padding: 8px 10px; }
    .manage-item-title { font-size: 0.8rem; }
    .manage-item-meta { font-size: 0.66rem; }
    .search-box input { width: 140px; font-size: 0.76rem; }

    /* 每日待办页 */
    .todos-layout { gap: 12px; }
    .todo-input-area input, .focus-input-area input { padding: 8px 10px; font-size: 0.8rem; }
    .todo-list, .focus-list { max-height: 200px; }
    .todo-item, .focus-item { padding: 8px 10px; }
    .todo-text { font-size: 0.8rem; }
    .todo-checkbox { width: 16px; height: 16px; border-radius: 4px; }
    .date-badge, .month-badge { font-size: 0.65rem; padding: 2px 8px; }
    .calendar-day { font-size: 0.72rem; border-radius: 5px; }
    .calendar-header { font-size: 0.65rem; }

    /* 早晚报 */
    .report-tab { padding: 8px 14px; font-size: 0.82rem; }
    .news-category { padding: 12px; }
    .news-category h4 { font-size: 0.85rem; margin-bottom: 10px; }
    .news-item { padding: 8px; gap: 8px; }
    .news-title { font-size: 0.78rem; }
    .news-source { font-size: 0.66rem; }
    .news-index { width: 20px; height: 20px; font-size: 0.65rem; }
    .report-title i { font-size: 1.4rem; }
    .report-title h3 { font-size: 1rem; }
    .news-detail-modal { width: 95%; }

    /* 股票行情 */
    .stock-card { padding: 14px; }
    .stock-logo { width: 30px; height: 30px; border-radius: 7px; font-size: 0.85rem; }
    .stock-name { font-size: 0.85rem; }
    .stock-price { font-size: 1.3rem; }
    .stock-change { font-size: 0.78rem; }
    .stock-detail-row { font-size: 0.67rem; margin-top: 8px; padding-top: 8px; }
    .stock-news-item { padding: 10px; }
    .stock-news-item .sn-title { font-size: 0.76rem; }

    /* 弹窗 */
    .modal { width: 90%; padding: 16px; }
    .modal-header h3 { font-size: 0.95rem; }

    /* Toast */
    .toast-container { top: 58px; right: 8px; left: 8px; }
    .toast { font-size: 0.78rem; padding: 10px 14px; min-width: auto; }

    /* 登录框 */
    .auth-box { width: 300px; padding: 32px 24px 28px; border-radius: 16px; }
    .auth-icon { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 14px; margin-bottom: 14px; }
    .auth-title { font-size: 1.1rem; }
    .auth-subtitle { font-size: 0.78rem; margin-bottom: 22px; }
    .auth-input { padding: 11px 14px; font-size: 0.9rem; border-radius: 8px; }
    .auth-btn { padding: 11px; font-size: 0.9rem; border-radius: 8px; }

    /* 加载页 */
    .loading-text { font-size: 0.95rem; }
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ==================== 登录验证 ==================== */
.auth-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.auth-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.auth-box {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    padding: 44px 40px 36px; width: 360px; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.auth-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
}
.auth-title { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.auth-subtitle { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 28px; }
.auth-input {
    width: 100%; padding: 13px 16px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06); color: #fff;
    font-size: 1rem; outline: none; transition: border-color 0.2s;
}
.auth-input::placeholder { color: rgba(255,255,255,0.35); }
.auth-input:focus { border-color: var(--primary-light); }
.auth-btn {
    width: 100%; padding: 13px; margin-top: 16px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.auth-btn:active { transform: translateY(0); }
.auth-error {
    color: #f87171; font-size: 0.82rem; margin-top: 12px;
    opacity: 0; transition: opacity 0.2s;
}
.auth-error.show { opacity: 1; }
