/* 全局重置 & 基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f7fc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #1e293b;
    background: radial-gradient(115.05% 125.23% at 10% 20%, #698eff4d 0%, #92adff00 40%), radial-gradient(122.21% 133.03% at 90% 10%, #ffde7b4d 0%, #ffe6af00 40%), radial-gradient(67.9% 73.91% at 50% 50%, #ffddb333 0%, #ffddb300 60%), radial-gradient(108.64% 118.25% at 80% 80%, #c8b4ff59 0%, #c8b4ff00 50%), radial-gradient(116.2% 126.48% at 20% 90%, #3ebcff40 0%, #7fe6ff0d 35.58%);
}

.dashboard {
    max-width: 1400px;
    width: 100%;
    /* background: #ffffff; */
    border-radius: 28px;
    padding: 40px 44px 32px;
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02); */
    /* border: 1px solid #e9edf4; */
}

/* ===== 顶部标题区 ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-bottom: 28px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-left .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3090fe1a;
    padding: 4px 16px 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #1176EA;
    letter-spacing: 0.4px;
    width: fit-content;
}

.header-left .badge i {
    font-size: 13px;
    color: #3b82f6;
}

.header-left h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1D2A48;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-top: 2px;
}

.header-left .subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #64748b;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.header-right .info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-right .info-chip i {
    color: #3b82f6;
    font-size: 14px;
}

.header-right .info-chip strong {
    font-weight: 600;
    color: #1e293b;
}

.header-right .admin-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right .admin-chip i {
    color: #3b82f6;
}

/* ===== 环境信息条 ===== */
.env-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* gap: 12px 30px; */
    background: #f8fafc;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 32px;
    border: 1.09px solid #c2c6d34d;
    box-shadow: 0 4.38px 21.88px -2.19px #00000026;

}

.env-bar .env-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    flex: 1;
    margin-right: 14px;
    width: 100%;
}
.env-bar .env-item:last-child {
    margin-right: 0;
}
.env-bar .env-item .env-item-content {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: #dae2ff4d;
}
.env-item-sub-view {
    display: flex;
    flex-direction: column;
    padding-left: 25px;
}

.env-bar .env-item i {
    color: #3090FE;
    font-size: 30px;
    width: 20px;
    text-align: center;
}

.env-bar .env-item .label {
    color: #64748b;
    font-size: 10px;
    font-weight: 400;
}

.env-bar .env-item .value {
    font-weight: 500;
    color: #1e293b;
}

.env-bar .env-item .value.highlight {
    background: #eef4ff;
    /* padding: 2px 12px; */
    border-radius: 30px;
    color: #1d4ed8;
    font-weight: 500;
}

.env-bar .divider {
    width: 1px;
    height: 28px;
    background: #dce1e9;
}

/* ===== 分类区块 ===== */
.category-section {
    margin-bottom: 36px;
}

.category-section:last-of-type {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.category-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #131B2E;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.category-header img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.category-header .line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.category-header .badge-count {
    font-size: 13px;
    background: #eef4ff;
    color: #3090FE;
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 500;
}

/* ===== 服务卡片网格 ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.cards-grid-ui {
    background: #ffffffb3;
    border-radius: 24px;
    padding: 24px;
}


.card {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 26px 24px 24px;
    border: 1px solid #e9edf4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.card:hover {
    border-color: #b9d0f0;
    box-shadow: 0 8px 24px rgba(0, 50, 120, 0.06);
    transform: translateY(-2px);
}

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

.card .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    /* background: #eff6ff; */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2563eb;
    flex-shrink: 0;
}

.card .card-icon img {
    width: 40px;
    height: 40px;
}
.card .card-icon .img-staging {
    width: 36px;
    height: 40px;
}
.card .card-icon .img-prod {
    width: 40px;
    height: 37px;
}

.card .status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 40px;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid transparent;
}

.status-badge .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.online {
    color: #0A7E3D;
    /* background: #e6f7ed; */
    background: #0a7e3d1a;
    border-color: #b7e0cb;
}
.status-badge.online .dot {
    background: #0A7E3D;
}

.status-badge.maintenance {
    color: #9b6d0b;
    background: #fef9e6;
    border-color: #f5e2a0;
}
.status-badge.maintenance .dot {
    background: #9b6d0b;
}

.status-badge.offline {
    color: #b91c1c;
    background: #fde8e8;
    border-color: #f5c2c2;
}
.status-badge.offline .dot {
    background: #b91c1c;
}
.card .card-icon-title {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D2A48;
    margin: 0 0 5px 6px;
}

.card .card-desc {
    font-size: 14px;
    color: #57637F;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.card .card-tags span {
    font-size: 10px;
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 30px;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.card .card-actions {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80%;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: #f1f5f9;
    color: #1e293b;
    /* border: 1px solid #e2e8f0; */
    font-family: inherit;
}

.card .round-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.card .btn i {
    font-size: 14px;
}

.card .btn-primary {
    background: #3090fe33;
    color: #157FF8;
    /* border: 1px solid #3090fe33; */
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.card .btn-primary:hover {
    background: #3090fe;
    border-color: #3090fe;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.card .btn-orange {
    background: #fca4381a;
    color: #FCA438;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.card .btn-orange:hover { 
    background: #FCA438;
    border-color: #FCA438;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.card .btn-purple {
    background: #a678ff1a;
    color: #A678FF;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.card .btn-purple:hover { 
    background: #A678FF;
    border-color: #A678FF;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.card .btn-danger {
    background: #eb45401a;
    color: #EB4540;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.card .btn-danger:hover { 
    background: #EB4540;
    border-color: #EB4540;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.card .btn-green {
    background: #C9EEF4;
    color: #18D0DD;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.card .btn-green:hover { 
    background: #18D0DD;
    border-color: #18D0DD0;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.color-danger {
    color: #EB4540;
}
.color-orange {
    color: #FCA438;
}
.color-purple {
    color: #A678FF;
}
.color-primary {
    color: #3090FE;
}
.color-green {
    color: #18D0DD;
}


.card .btn-outline {
    background: transparent;
    border: 1px solid #dce1e9;
}

.card .btn-outline:hover {
    background: #f1f5f9;
    border-color: #b0c4de;
}

.card .btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.card .btn-disabled {
    opacity: 0.6;
    background: #e9edf4;
    border-color: #dce1e9;
    color: #94a3b8;
    cursor: not-allowed;
    /* pointer-events: none; */
}

/* ===== 底部 ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 30px;
    padding-top: 20px;
    border-top: 1px solid #e9edf4;
    margin-top: 32px;
}

.footer .copyright {
    font-size: 13px;
    color: #434654;
}

.footer .copyright i {
    margin: 0 4px;
    font-size: 12px;
}

.footer .support {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.footer .support a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dashed #b9d0f0;
}

.footer .support a:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

.footer .support i {
    color: #3b82f6;
}



.btn-link {
    color: #3090FE;
    text-decoration: none;
    cursor: pointer;
}
.btn-link i {
    color: #3090FE;
    margin-left: 4px;
    font-size: 14px;
}

.btn-link-ui {
    text-decoration: none;
}

.cards-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #00000022;
    min-height: 40px;
    
}
.list-item i {
    color: #737783;
    font-size: 12px;
}
.list-item-link {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    color: #191C1E;
}
.list-item-link:hover { 
    color: #3090FE;
}
.list-item-link i {
    color: #FCA438;
    font-size: 16px;
    transform: rotate(90deg);
    margin-right: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .dashboard {
        padding: 30px 28px 24px;
    }
    .header-left h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    .header-right {
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-right .info-chip,
    .header-right .admin-chip {
        font-size: 12px;
        padding: 4px 12px;
    }
    .header-left h1 {
        font-size: 24px;
    }
    .env-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px 0;
        padding: 16px 20px;
    }
    .env-bar .divider {
        display: none;
    }
    .cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .card {
        padding: 20px 18px 20px;
    }
    .category-header h2 {
        font-size: 18px;
    }
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 16px 12px 14px;
        border-radius: 16px;
    }
    .header-left h1 {
        font-size: 20px;
    }
    .header-left .subtitle {
        font-size: 14px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .card .card-title {
        font-size: 17px;
    }
    .cards-flex {
        flex-direction: column;
        margin-bottom: 36px;
    }
}
