/* 环境状态监控 — 深色主题，匹配手册 screenshot */
.environment-module {
    padding: 20px;
    background: #0b1320;
    color: #e0e0e0;
    min-height: 100%;
}

.environment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(79,195,247,0.15);
}

.environment-title {
    font-size: 20px;
    font-weight: 700;
    color: #4fc3f7;
    letter-spacing: 1px;
}

.environment-status {
    display: flex;
    gap: 12px;
}

.env-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}
.env-badge::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.env-badge.normal { background: rgba(82,196,26,0.15); color: #52c41a; }
.env-badge.normal::before { background: #52c41a; box-shadow: 0 0 6px #52c41a; }
.env-badge.warning { background: rgba(250,173,20,0.15); color: #faad14; }
.env-badge.warning::before { background: #faad14; box-shadow: 0 0 6px #faad14; }
.env-badge.danger { background: rgba(245,34,45,0.15); color: #f5222d; }
.env-badge.danger::before { background: #f5222d; box-shadow: 0 0 6px #f5222d; }

/* Charts row */
.env-charts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.env-chart-card {
    background: linear-gradient(180deg, #132241 0%, #0f1c3c 100%);
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: 6px;
    padding: 16px;
    transition: all .25s;
}
.env-chart-card:hover {
    border-color: rgba(79,195,247,0.25);
    box-shadow: 0 4px 16px rgba(79,195,247,0.08);
}

.env-chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.5px;
}

.env-chart-box {
    height: 300px;
    width: 100%;
}

/* Table panel */
.env-table-panel {
    background: #132241;
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.env-table-head {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(79,195,247,0.1);
    font-size: 15px;
    font-weight: 600;
    color: #4fc3f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #162a4a;
}

.env-table-scroll {
    overflow-x: auto;
}

.env-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.env-table th, .env-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(79,195,247,0.08);
    white-space: nowrap;
}

.env-table th {
    background: rgba(15,28,60,0.9);
    color: #4fc3f7;
    font-weight: 600;
}

.env-table td {
    color: #c8dae6;
    background: rgba(15,28,60,0.4);
}

.env-table tr:nth-child(even) td { background: rgba(15,28,60,0.6); }
.env-table tr:hover td { background: rgba(79,195,247,0.08); }

.env-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.env-status-dot::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
}
.env-status-dot.normal { background: rgba(82,196,26,0.15); color: #52c41a; }
.env-status-dot.normal::before { background: #52c41a; }
.env-status-dot.warning { background: rgba(250,173,20,0.15); color: #faad14; }
.env-status-dot.warning::before { background: #faad14; }
.env-status-dot.danger { background: rgba(245,34,45,0.15); color: #f5222d; }
.env-status-dot.danger::before { background: #f5222d; }

@media (max-width: 1400px) {
    .env-charts-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .env-charts-row { grid-template-columns: 1fr; }
    .environment-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .env-table th, .env-table td { padding: 8px 6px; font-size: 12px; }
}
