* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

.system-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    position: relative;
}

header {
    background-color: var(--light-card, #ffffff);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow, 0 2px 6px rgba(0,0,0,0.1));
    text-align: center;
    border: 1px solid var(--light-border, #c7d2fe);
    position: relative;
    overflow: hidden;
}

h1 {
    color: var(--primary-color, #5b8cff);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.date-display {
    font-size: 1rem;
    color: var(--accent-color, #7e6cff);
    margin-bottom: 15px;
    font-weight: 500;
}

.current-period {
    background-color: var(--accent-color, #7e6cff);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stat-box {
    background-color: var(--primary-color, #5b8cff);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    min-width: 120px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.stat-box:hover {
    background-color: var(--primary-dark, #3a6bd9);
}

.stat-box.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.main-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.left-panel {
    flex: 3;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-panel {
    flex: 7;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: var(--light-card, #ffffff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow, 0 2px 6px rgba(0,0,0,0.1));
    border: 1px solid var(--light-border, #c7d2fe);
}

.panel-title {
    font-size: 1.2rem;
    color: var(--primary-color, #5b8cff);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color, #6cceff);
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #4b5563;
}

select, button, input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid var(--light-border, #c7d2fe);
    font-size: 1rem;
}

select, input {
    background-color: #f8fafc;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color, #5b8cff);
}

button {
    background-color: var(--primary-color, #5b8cff);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--primary-dark, #3a6bd9);
}

.success-message {
    background-color: rgba(74, 222, 128, 0.1);
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    display: none;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.error-message-panel {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    display: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--primary-color, #5b8cff);
    font-size: 1rem;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 14px;
    color: #6b7280;
    border-top: 1px solid var(--light-border, #c7d2fe);
    background: #f8fafc;
    border-radius: 10px;
    margin-top: 15px;
}

.page-footer a {
    color: var(--primary-color, #5b8cff);
    text-decoration: none;
    font-weight: 500;
}

.page-footer a:hover {
    color: var(--accent-color, #7e6cff);
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        min-width: 100%;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .stats {
        gap: 8px;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 10px 12px;
    }
    
    .panel {
        padding: 15px 12px;
    }
}

@media (max-width: 480px) {
    .system-container {
        padding: 10px 8px;
        gap: 10px;
    }
    
    header {
        padding: 15px 12px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-box {
        width: 100%;
        max-width: 180px;
    }
}