/* 华夫饼手册 - 公共样式（5页共用） */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    display: flex;
    min-height: 100vh;
    overscroll-behavior-y: contain;
}
.sidebar { width: 200px; background: var(--white); border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; }
.logo { padding: 0 16px 16px; font-size: 18px; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.nav-item { padding: 10px 16px; color: var(--gray); cursor: pointer; transition: all 0.2s; }
.nav-item:hover, .nav-item.active { background: var(--light); color: var(--primary); }
.nav-item.disabled { opacity:0.4; pointer-events:none; cursor:default; }
.nav-divider { border:none; border-top:1px solid var(--border); margin:8px 16px; }
.main { flex: 1; padding: 24px; overflow-x: auto; min-width: 0; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.header h1 { font-size: 24px; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.header .date { color: var(--gray); font-size: 13px; font-weight: 400; }
.update-btn { padding: 8px 16px; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; transition: background 0.2s; }
.update-btn:hover { background: var(--primary-light); }
.update-btn:disabled { background: var(--gray); cursor: not-allowed; }
.chart-card { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 24px; animation: cardFadeIn 0.4s ease both; }
.chart-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.chart-container { height: 350px; position:relative; }
.toast-container { position:fixed; top:20px; right:20px; z-index:9999; }
.toast { padding:12px 20px; border-radius:8px; color:#fff; font-size:14px; margin-bottom:8px; box-shadow:0 4px 12px rgba(0,0,0,0.15); animation:toastIn .3s ease; max-width:400px; }
.toast.error { background:#ef4444; }
.toast.success { background:#10b981; }
.toast.warning { background:#f59e0b; }
@keyframes toastIn { from{opacity:0;transform:translateX(100px)} to{opacity:1;transform:translateX(0)} }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sk-overlay { position:absolute; inset:0; background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size:200% 100%; animation:sk-shimmer 1.5s ease-in-out infinite; border-radius:12px; z-index:1; }
@keyframes sk-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.progress-bar { position:fixed; top:0; left:0; right:0; z-index:9999; height:3px; background:var(--border); overflow:hidden; display:none; }
.progress-bar.active { display:block; }
.progress-bar-inner { height:100%; width:40%; background:linear-gradient(90deg,var(--primary),#818cf8); border-radius:2px; animation:pb-indeterminate 1.5s ease-in-out infinite; }
@keyframes pb-indeterminate { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }
/* 数据健康条 */
.data-health { font-size: 12px; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.data-health.ok { background: #d1fae5; color: #059669; }
.data-health.stale { background: #fef9c3; color: #ca8a04; }
.data-health.warn { background: #ffedd5; color: #ea580c; }
