:root {
    --bg: #ffffff;
    --fg: #0f172a;
    --muted: #94a3b8;
    --accent: #0ea5e9;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移除所有背景装饰 */
.background-blobs {
    display: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 40px;
    margin: 0 auto;
    position: relative;
}

.header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.brand h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #1e293b;
}

.dot { color: var(--accent); }

.current-date {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

/* 移除卡片背景和阴影，仅保留布局 */
.card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.chart-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.save-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.save-btn:hover {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.1);
}

.save-btn i {
    width: 20px !important;
    height: 20px !important;
}

.canvas-wrapper {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    position: relative;
}

.indicators-group {
    position: absolute;
    top: 50px;
    right: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    pointer-events: none;
    z-index: 10;
}

.chart-month-pill, .chart-total-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 0;
    background: transparent !important;
    border: none;
}

.chart-month-pill .label, .chart-total-pill .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-month-pill .val-group, .chart-total-pill .val-group {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.chart-month-pill .val {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.chart-month-pill .unit {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.5;
}

.chart-total-pill .val {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.chart-total-pill .unit {
    font-size: 14px;
    font-weight: 800;
    opacity: 0.4;
}

.animate-up {
    opacity: 0;
    transform: translateY(15px);
    animation: slideUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.error-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff1f2;
    color: #f43f5e;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ffe4e6;
}

@media (max-width: 768px) {
    .canvas-wrapper { height: 400px; }
    .header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .chart-total-pill { top: 0; right: 0; }
}
