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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    font-size: 2em;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.metric-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.metric-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.metric-trend {
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.trend-up {
    color: #27ae60;
}

.trend-down {
    color: #e74c3c;
}

.stats-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.3em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #7f8c8d;
}

footer {
    text-align: center;
    padding: 25px;
    color: #7f8c8d;
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.module-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.module-btn {
    background: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

.module-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.module-btn.active {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.module-content {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.module-content.active {
    display: block;
}

.module-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.tab-btn:hover {
    background: #ecf0f1;
    color: #2c3e50;
    transform: translateY(-2px);
}

.tab-btn.active {
    color: white;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.content-header h3 {
    font-size: 1.5em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    background: #ecf0f1;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.action-btn:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
}

.btn-sm {
    background: #3498db;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 0.8em;
    transition: all 0.3s ease;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-sm:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-sm.btn-warning {
    background: #f39c12;
}

.btn-sm.btn-warning:hover {
    background: #e67e22;
}

.btn-sm.btn-success {
    background: #27ae60;
}

.btn-sm.btn-success:hover {
    background: #229954;
}

.btn-primary {
    background: #3498db;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 0.9em;
    width: 250px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 1.5em;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-value {
        font-size: 2em;
    }

    .search-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .module-nav {
        flex-direction: column;
    }

    .module-tabs {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: none;
        padding-bottom: 0;
    }

    .tab-btn {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.blink {
    animation: blink 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse {
    animation: pulse 1.5s infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.status-normal {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-warning {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-alarm {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-processing {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-completed {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}