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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: url('../images/bileiwaf_bg.png') no-repeat center center fixed;
            background-size: cover;
            color: #e0e0e0;
            min-height: 100vh;
            display: flex;
        }

        .login-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(26, 26, 46, 0.7);
            min-height: 100vh;
        }

        .login-box {
            background: rgba(42, 63, 95, 0.8);
            border: 1px solid #3a5f8f;
            border-radius: 15px;
            padding: 40px;
            width: 100%;
            max-width: 400px;
            backdrop-filter: blur(10px);
        }

        .login-box h1 {
            color: #00d4ff;
            text-align: center;
            margin-bottom: 30px;
            font-size: 2em;
        }

        .login-box .form-group {
            margin-bottom: 20px;
        }

        .login-box label {
            display: block;
            color: #8892b0;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .login-box input {
            width: 100%;
            padding: 12px;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid #3a5f8f;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 1em;
        }

        .login-box input:focus {
            outline: none;
            border-color: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        }

        .login-box .btn {
            width: 100%;
            background: linear-gradient(135deg, #00d4ff, #0099cc);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            margin-top: 20px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .login-box .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
        }

        .login-error {
            background: rgba(255, 23, 68, 0.2);
            border: 1px solid #ff1744;
            padding: 12px;
            border-radius: 8px;
            color: #ff1744;
            margin-bottom: 20px;
            text-align: center;
            display: none;
        }

        .sidebar {
            width: 250px;
            background: rgba(30, 41, 59, 0.9);
            border-right: 1px solid #3a5f8f;
            padding: 20px;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
        }

        .sidebar h1 {
            font-size: 1.5em;
            color: #00d4ff;
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #3a5f8f;
        }
        
        .sidebar h1::before {
            content: "🛡️ ";
        }

        .nav-menu {
            list-style: none;
        }

        .nav-menu li {
            margin-bottom: 10px;
        }

        .nav-menu li a {
            display: block;
            padding: 12px 15px;
            color: #e0e0e0;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-menu li a:hover {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
        }

        .nav-menu li a.active {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.3));
            color: #00d4ff;
            border-left: 3px solid #00d4ff;
        }

        .user-info {
            margin-top: auto;
            padding-top: 20px;
            border-top: 1px solid #3a5f8f;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 20px;
        }

        .user-info .username {
            color: #00d4ff;
            font-weight: bold;
        }

        .user-info .logout-btn {
            background: none;
            border: 1px solid #ff1744;
            color: #ff1744;
            padding: 6px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.85em;
            transition: all 0.2s;
        }

        .user-info .logout-btn:hover {
            background: rgba(255, 23, 68, 0.2);
        }

        .main-content {
            margin-left: 250px;
            flex: 1;
            padding: 30px;
            min-height: 100vh;
            width: 100%;
            overflow-x: hidden;
        }

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

        .header h2 {
            font-size: 2em;
            color: #00d4ff;
        }

        .header-right {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .status-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #00c853;
            animation: pulse 2s infinite;
        }

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

        .status-text {
            color: #00c853;
            font-weight: bold;
        }

        .btn {
            background: linear-gradient(135deg, #00d4ff, #0099cc);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-size: 0.9em;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
        }

        .btn-danger {
            background: linear-gradient(135deg, #ff1744, #c41038);
        }

        .btn-success {
            background: linear-gradient(135deg, #00c853, #00a843);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #3a5f8f;
        }

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

        .card {
            background: rgba(42, 63, 95, 0.5);
            border: 1px solid #3a5f8f;
            border-radius: 15px;
            padding: 25px;
            backdrop-filter: blur(10px);
            transition: transform 0.3s, box-shadow 0.3s;
            min-width: 0;
            word-wrap: break-word;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
        }

        .card h3 {
            color: #00d4ff;
            font-size: 1.2em;
            margin-bottom: 15px;
            border-bottom: 1px solid #3a5f8f;
            padding-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .card h3 span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .metric-value {
            font-size: 2.5em;
            font-weight: bold;
            color: #00e676;
            margin: 10px 0;
        }

        .metric-label {
            color: #8892b0;
            font-size: 0.9em;
        }

        .uptime-value {
            font-size: 1.5em;
            color: #ffd700;
            margin: 10px 0;
        }

        .table-container {
            background: rgba(42, 63, 95, 0.5);
            border: 1px solid #3a5f8f;
            border-radius: 15px;
            overflow: hidden;
        }

        .table-header {
            background: rgba(0, 212, 255, 0.1);
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #3a5f8f;
        }

        .table-header h3 {
            color: #00d4ff;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #3a5f8f;
        }

        th {
            background: rgba(0, 212, 255, 0.05);
            color: #8892b0;
            font-weight: 600;
            font-size: 0.9em;
        }

        td {
            color: #e0e0e0;
        }

        tr:hover {
            background: rgba(0, 212, 255, 0.05);
        }

        .badge {
            background: #00c853;
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8em;
            font-weight: bold;
        }

        .badge-warning {
            background: #ffab00;
        }

        .badge-danger {
            background: #ff1744;
        }

        .badge-info {
            background: #00d4ff;
            color: #1a1a2e;
        }

        .badge-blocked {
            background: #ff1744;
        }

        .badge-allowed {
            background: #00c853;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: #1a1a2e;
            border: 1px solid #3a5f8f;
            border-radius: 15px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal h3 {
            color: #00d4ff;
            margin-bottom: 20px;
            font-size: 1.5em;
        }

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

        .form-group label {
            display: block;
            color: #8892b0;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 12px;
            background: rgba(42, 63, 95, 0.5);
            border: 1px solid #3a5f8f;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 1em;
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
        }

        .modal-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            margin-top: 30px;
        }

        .module-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .module-item {
            background: rgba(0, 212, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid #3a5f8f;
            transition: all 0.3s;
        }

        .module-item:hover {
            background: rgba(0, 212, 255, 0.15);
            transform: translateY(-3px);
        }

        .module-item h4 {
            color: #00d4ff;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .module-item p {
            font-size: 0.9em;
            color: #8892b0;
            margin-bottom: 10px;
        }

        .toggle-switch {
            position: relative;
            width: 60px;
            height: 34px;
            display: inline-block;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #3a5f8f;
            transition: 0.3s;
            border-radius: 34px;
        }

        .toggle-slider::before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background: #00d4ff;
        }

        input:focus + .toggle-slider {
            box-shadow: 0 0 1px #00d4ff;
        }

        input:checked + .toggle-slider::before {
            transform: translateX(26px);
        }

        .filter-bar {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .filter-bar input, .filter-bar select {
            padding: 10px 15px;
            background: rgba(42, 63, 95, 0.5);
            border: 1px solid #3a5f8f;
            border-radius: 8px;
            color: #e0e0e0;
        }

        .search-box {
            flex: 1;
            min-width: 200px;
        }

        .empty-state {
            text-align: center;
            padding: 50px;
            color: #8892b0;
        }

        .empty-state svg {
            width: 100px;
            height: 100px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .progress-bar {
            height: 8px;
            background: rgba(42, 63, 95, 0.5);
            border-radius: 4px;
            overflow: hidden;
            margin: 10px 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00d4ff, #00e676);
            border-radius: 4px;
            transition: width 0.3s;
        }

        .chart-container {
            height: 200px;
            position: relative;
        }

        .chart-bars {
            display: flex;
            align-items: flex-end;
            height: 100%;
            gap: 10px;
            padding: 10px 0;
        }

        .chart-bar {
            flex: 1;
            background: linear-gradient(180deg, #00d4ff, #0099cc);
            border-radius: 4px 4px 0 0;
            min-height: 5px;
            transition: height 0.5s;
            position: relative;
        }

        .chart-bar:hover::after {
            content: attr(data-value);
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            background: #1a1a2e;
            border: 1px solid #3a5f8f;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8em;
            white-space: nowrap;
        }

        .tab-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid #3a5f8f;
        }

        .tab {
            padding: 10px 20px;
            border: none;
            background: none;
            color: #8892b0;
            cursor: pointer;
            border-radius: 5px 5px 0 0;
            transition: all 0.3s;
            font-size: 1em;
        }

        .tab.active {
            color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
            border-bottom: 2px solid #00d4ff;
        }

        .tab-content {
            display: none;
        }

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

        .loading {
            text-align: center;
            padding: 40px;
        }

        .spinner {
            border: 3px solid #3a5f8f;
            border-top: 3px solid #00d4ff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-box {
            background: rgba(255, 23, 68, 0.2);
            border: 1px solid #ff1744;
            padding: 15px;
            border-radius: 8px;
            color: #ff1744;
            margin-bottom: 20px;
        }

        .success-box {
            background: rgba(0, 200, 83, 0.2);
            border: 1px solid #00c853;
            padding: 15px;
            border-radius: 8px;
            color: #00c853;
            margin-bottom: 20px;
        }

        .action-buttons {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            padding: 6px 12px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            font-size: 0.85em;
            transition: all 0.2s;
        }

        .action-btn-edit {
            background: #00d4ff;
            color: #1a1a2e;
        }

        .action-btn-delete {
            background: #ff1744;
            color: white;
        }

        .action-btn-unblock {
            background: #00c853;
            color: white;
        }

        .action-btn-edit:hover, .action-btn-delete:hover, .action-btn-unblock:hover {
            opacity: 0.8;
        }

        @media (max-width: 1400px) {
            .grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            }
        }

        @media (max-width: 1200px) {
            .grid {
                grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
                gap: 18px;
            }
        }

        @media (max-width: 992px) {
            .grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                height: auto;
                position: relative;
            }
            .main-content {
                margin-left: 0;
                padding: 20px;
            }
            .grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .card {
                padding: 20px;
            }
            .table-container {
                overflow-x: auto;
            }
        }
/* 仪表盘样式 */
.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.monitor-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00e676, #00d4ff);
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.monitor-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shield-icon {
    font-size: 2.5em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.monitor-title h1 {
    color: #00d4ff;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.monitor-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pulse {
    width: 15px;
    height: 15px;
    background: #00e676;
    border-radius: 50%;
    animation: status-blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #00e676;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-text {
    color: #00e676;
    font-weight: 600;
    font-size: 1.1em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    width: 100%;
}

.left-panel, .center-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-card, .network-card, .modules-card, .gauge-card, .security-card, .system-card {
    background: rgba(42, 63, 95, 0.6);
    border: 1px solid #3a5f8f;
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #3a5f8f;
}

.card-icon {
    font-size: 1.4em;
}

.card-header h3 {
    color: #00d4ff;
    font-size: 1.2em;
    margin: 0;
}

/* 实时流量图表 */
.line-chart-container {
    position: relative;
    height: 180px;
}

.mini-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding: 10px 0;
}

.mini-bar {
    width: 12%;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 5px;
}

.chart-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #8892b0;
    font-size: 0.9em;
}

#current-traffic {
    color: #00d4ff;
    font-weight: bold;
}

/* 攻击拦截统计 */
.bar-chart-container {
    height: 200px;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    padding: 10px 0;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14%;
    min-height: 20px;
    background: linear-gradient(180deg, #ff1744, #c41038);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    position: relative;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    font-size: 0.8em;
    color: #8892b0;
}

.bar-value {
    position: absolute;
    top: -25px;
    font-size: 0.9em;
    font-weight: bold;
    color: #ff1744;
}

/* 指标卡片 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.metric-card {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

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

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #00d4ff;
}

.metric-number.warning {
    color: #ffab00;
}

.metric-number.danger {
    color: #ff1744;
}

.metric-name {
    font-size: 0.9em;
    color: #8892b0;
    margin-top: 2px;
}

/* 网络可视化 */
.network-card {
    flex: 1;
    min-height: 300px;
}

.network-visualization {
    position: relative;
    height: calc(100% - 60px);
}

.network-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-node {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 153, 204, 0.2));
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: node-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.8); }
}

.node-icon {
    font-size: 2.5em;
}

.node-label {
    font-size: 0.85em;
    color: #00d4ff;
    font-weight: bold;
    margin-top: 5px;
}

.network-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.site-node {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid #00e676;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.site-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.site-node.disabled {
    background: rgba(136, 146, 176, 0.2);
    border-color: #8892b0;
}

.site-icon {
    font-size: 1.5em;
}

.site-label {
    font-size: 0.7em;
    color: #8892b0;
    margin-top: 3px;
    text-align: center;
}

/* 模块卡片 */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.module-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #3a5f8f;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.module-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.module-icon {
    font-size: 1.8em;
}

.module-name {
    font-size: 0.95em;
    color: #e0e0e0;
    font-weight: 500;
}

.module-status {
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(136, 146, 176, 0.3);
    color: #8892b0;
}

.module-status.active {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
}

.module-status.inactive {
    background: rgba(255, 171, 0, 0.2);
    color: #ffab00;
}

/* 仪表盘 */
.gauge-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.gauge {
    width: 180px;
    height: 90px;
    position: relative;
    overflow: hidden;
}

.gauge-arc {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    border-radius: 100% 100% 0 0;
    background: conic-gradient(from 180deg, #00e676 0deg, #ffab00 60deg, #ff1744 120deg);
    transform-origin: bottom center;
    transform: rotate(180deg);
    opacity: 0.3;
}

.gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 60px 60px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gauge-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #00e676;
}

.gauge-label {
    font-size: 0.75em;
    color: #8892b0;
}

.gauge-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 4px;
    height: 70px;
    background: #00d4ff;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
    transition: transform 0.5s ease;
}

/* 安全等级 */
.security-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-label {
    width: 100px;
    font-size: 0.9em;
    color: #8892b0;
}

.security-bar {
    flex: 1;
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.security-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.security-fill.high {
    width: 95%;
    background: #00e676;
}

.security-fill.medium {
    width: 70%;
    background: #ffab00;
}

.security-fill.low {
    width: 40%;
    background: #ff1744;
}

.security-value {
    width: 35px;
    font-size: 0.85em;
    font-weight: bold;
    text-align: right;
}

/* 系统资源 */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.system-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.system-label {
    font-size: 0.9em;
    color: #8892b0;
}

.system-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #00d4ff;
}

.system-bar {
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.system-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00e676);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 响应式仪表盘 */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .right-panel {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .gauge-card, .security-card, .system-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .monitor-header {
        flex-direction: column;
        gap: 15px;
    }
    .monitor-title h1 {
        font-size: 1.4em;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .right-panel {
        flex-direction: column;
    }
}
