body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

/* 渐进渐出动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.stat-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.25s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.35s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.chart-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.progress-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-content {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    height: 400px;
    flex-wrap: wrap;
}

.chart-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 300px;
}

.chart-info {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.info-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.info-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.info-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-placeholder {
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
    padding: 40px 0;
    font-style: italic;
}

.info-item {
    margin-bottom: 0;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: calc(50% - 6px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.info-description {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    line-height: 1.3;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.info-box {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

.info-box h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.info-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--button-bg);
    color: var(--button-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.back-button:hover {
    background: var(--button-bg-hover);
    transform: translateX(-2px);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-tertiary);
    font-size: 14px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .chart-container {
        padding: 20px;
    }

    .chart-wrapper {
        height: 380px;
        min-width: 100%;
    }

    .chart-info {
        min-width: 100%;
        height: auto;
    }

    .chart-content {
        flex-direction: column;
        height: auto;
    }

    .chart-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .progress-percentage {
        font-size: 2rem;
    }

    .chart-legend {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .legend-item {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .chart-header h2 {
        font-size: 1.125rem;
    }

    .info-label {
        font-size: 0.6875rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .info-description {
        font-size: 0.625rem;
    }

    .info-item {
        padding: 10px;
        width: calc(50% - 6px);
    }

    .legend-item {
        font-size: 0.8125rem;
        gap: 6px;
    }

    .legend-color {
        width: 12px;
        height: 12px;
    }

    .chart-wrapper {
        height: 340px;
    }
}

.tooltip {
    position: fixed;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    max-width: 450px;
    width: auto;
    min-width: 250px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    overflow: visible;
}

.tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
}

.tooltip-item {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    word-wrap: break-word;
}

.tooltip-item:last-child {
    margin-bottom: 0;
}

.tooltip-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    font-weight: 500;
    word-wrap: break-word;
}

.tooltip-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    word-wrap: break-word;
}

.tooltip-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .tooltip {
        max-width: 90vw;
        padding: 16px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .tooltip-title {
        font-size: 1rem;
    }

    .tooltip-value {
        font-size: 0.9rem;
    }

    .tooltip-item {
        padding: 10px;
    }
}