body {
    background-color: #0a0a0a !important;
    color: #e0e0e0 !important;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 背景图片 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('3.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.6;  /* 调整透明度使背景不那么突兀 */
    z-index: -1;
    pointer-events: none;
}

/* 添加暗色叠加层，使内容更易读 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);  /* 深色遮罩 */
    z-index: -1;
    pointer-events: none;
}

.status-card {
    background: #fff;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 110px;
    overflow: hidden !important;
    position: relative;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: none;
}

.col-md-3:nth-child(1) .status-card:hover::before {
    animation: borderFlow 1.5s forwards;
    --border-color: #4CAF50;
}

.col-md-3:nth-child(2) .status-card:hover::before {
    animation: borderFlow 1.5s forwards;
    --border-color: #FF5722;
}

.col-md-3:nth-child(3) .status-card:hover::before {
    animation: borderFlow 1.5s forwards;
    --border-color: #2196F3;
}

.col-md-3:nth-child(4) .status-card:hover::before {
    animation: borderFlow 1.5s forwards;
    --border-color: #9C27B0;
}

@keyframes borderFlow {
    0% {
        border-color: transparent;
    }
    25% {
        border-top-color: var(--border-color);
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    50% {
        border-top-color: var(--border-color);
        border-right-color: var(--border-color);
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    75% {
        border-top-color: var(--border-color);
        border-right-color: var(--border-color);
        border-bottom-color: var(--border-color);
        border-left-color: transparent;
    }
    100% {
        border-color: var(--border-color);
    }
}

.status-card:hover {
    box-shadow: 0 4px 16px rgba(33,150,243,0.15);
}

.status-card.offline-servers,
.status-card.online-servers {
    border: 1px solid transparent !important;
    background: #fff;
}

.status-card .card-body {
    padding: 0.875rem 1rem;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

.status-card .card-title {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0;
}

.status-card .card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2196F3;
    margin-top: 0.5rem;
}

.traffic-stats {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    overflow: hidden !important;
}

.traffic-stats .d-flex {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 6px;
    width: 100%;
    overflow: visible !important;
}

.traffic-stats .d-flex:last-child {
    margin-bottom: 0;
}

.traffic-stats small {
    color: #666;
    min-width: 55px;
    flex: none;
}

.traffic-value {
    font-weight: 500;
    color: #2196F3;
    margin-left: 8px;
    flex: none;
}

.status-card i {
    font-size: 1.25rem;
    opacity: 0.8;
}

.status-card small.text-success,
.status-card small.text-danger {
    font-size: 0.75rem;
    margin-left: 8px;
}

.server-card {
    background: #2a2a2a;
    border-radius: 15px;
    border: none;
    box-shadow: 5px 5px 15px #151515,
                -5px -5px 15px #353535;
    transition: all 0.3s ease;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px #151515,
                -8px -8px 20px #353535;
}

.card {
    background-color: #2a2a2a !important;
    color: #e0e0e0;
    border: none !important;
}

.card-title {
    color: #8e9aaf;
    font-size: 1rem;
    font-weight: 500;
}

.card-value {
    color: #4d9eff;
    font-size: 2.5rem;
    font-weight: 600;
}

.traffic-stat {
    padding: 10px;
    border-radius: 10px;
    background: #232323;
    margin-bottom: 10px;
}

.stat-label {
    color: #8e9aaf;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
}

.metric-card {
    text-align: center;
    padding: 15px;
    background: #232323;
    border-radius: 10px;
    margin-bottom: 15px;
}

.progress-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.progress-ring__circle-bg {
    stroke: #3a3a3a;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.3s ease;
}

.progress-ring text {
    fill: #e0e0e0;
    font-size: 14px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.offline-servers .card-value {
    color: #ff4d4d;
    animation: pulse 2s infinite;
}

.online-servers .card-value {
    color: #4dff77;
}

@media (max-width: 768px) {
    .card-value {
        font-size: 2rem;
    }
    
    .traffic-stat h4 {
        font-size: 1.1rem;
    }
} 

.dashboard-title {
    position: relative;
    padding-bottom: 20px;
}

.dashboard-title h1 {
    color: #4d9eff;
    font-size: 2.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.title-underline {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, #4d9eff, #4dff77);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .dashboard-title h1 {
        font-size: 2rem;
    }
    
    .title-underline {
        width: 150px;
    }
} 

.footer {
    margin-top: auto; /* 确保 footer 在 flex 容器的底部 */
    padding: 20px 0;
    border-top: 1px solid #353535;
}

.footer-content {
    color: #8e9aaf;
}

.footer-link {
    color: #4d9eff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    background: #2a2a2a;
}

.footer-link:hover {
    color: #4dff77;
    background: #353535;
    text-decoration: none;
}

.footer-link i {
    font-size: 0.9em;
} 

.server-metrics {
    gap: 1rem;
}

.metric-card {
    background: #232323;
    border-radius: 15px;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.metric-card h6 {
    color: #8e9aaf;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.metric-info {
    text-align: center;
    margin-top: 0.5rem;
    color: #6c757d;
}

.system-info {
    display: flex;
    flex-direction: column;
}

.system-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.system-details p {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: normal;
}

@media (max-width: 992px) {
    .metric-card {
        margin-bottom: 0.5rem;
    }
    
    .progress-ring-container {
        width: 50px;
        height: 50px;
    }
} 

.progress-ring-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.metric-details {
    flex-grow: 1;
}

.metric-details h6 {
    color: #8e9aaf;
    font-size: 0.9rem;
    margin: 0;
}

.system-info-bar {
    padding: 0.5rem;
    background: #232323;
    border-radius: 8px;
    text-align: right;
}

.server-info-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    gap: 1rem;
    padding: 0.75rem;
    background: #232323;
    border-radius: 15px;
    min-width: 1000px;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-header {
    color: #8e9aaf;
    font-size: 12px;
    margin-bottom: 8px;
    text-align: center;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    width: 100%;
    position: relative;
}

.info-content {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4px;
    width: 100%;
}

.progress-wrapper {
    width: 100%;
    text-align: center;
}

.progress-value {
    font-size: 0.9rem;
    color: #e0e0e0;
}

.progress {
    width: 100%;
    height: 3px !important;
    margin-top: 8px !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}



.progress-bar.bg-success {
    background-color: #4dff77 !important;
}

.progress-bar.bg-warning {
    background-color: #ffd700 !important;
}

.progress-bar.bg-danger {
    background-color: #ff4d4d !important;
}

.progress-bar {
    min-width: 0.01%;
}

@media (max-width: 992px) {
    .server-info-grid {
        grid-template-columns: 60px repeat(6, 1fr);
    }
}

@media (max-width: 576px) {
    .server-info-grid {
        grid-width: 60px repeat(6, 1fr);
    }
}

.progress-ring text {
    font-size: 6px;
}

.d-flex.align-items-center.gap-2 {
    gap: 0.5rem !important;
} 

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 auto;
}

.status-indicator.online {
    background-color: #4dff77;
    box-shadow: 0 0 10px #4dff77;
    animation: pulse-green 2s infinite;
}

.status-indicator.offline {
    background-color: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(77, 255, 119, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(77, 255, 119, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(77, 255, 119, 0);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
} 

.tooltip {
    --bs-tooltip-bg: #1a1a1a;
    --bs-tooltip-color: #e0e0e0;
} 

.card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    padding-bottom: 0px;
    padding-top: 0px;
}

.card-body::-webkit-scrollbar {
    height: 6px;
}

.card-body::-webkit-scrollbar-track {
    background: #232323;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb {
    background: #454545;
    border-radius: 3px;
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: #555555;
} 

@media (max-width: 768px) {
    .card-body {
        padding: 0.75rem;
    }

    .server-info-grid {
        gap: 0.5rem;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .info-header {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .info-content {
        padding: 0.25rem;
    }

    .progress-wrapper {
        gap: 0.15rem;
    }

    .server-info {
        min-width: 1100px;
    }

    .server-card::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(42, 42, 42, 0.8));
        pointer-events: none;
    }
} 

.idc-link {
    background: linear-gradient(90deg, #FFD700, #FFEA00); /* 金色渐变 */
    -webkit-background-clip: text; /* 仅对文本应用背景 */
    -webkit-text-fill-color: transparent; /* 使文本填充透明 */
    font-weight: bold; /* 加粗文本 */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7), 0 0 10px rgba(255, 215, 0, 0.5); /* 添加光晕效果 */
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.idc-link:hover {
    opacity: 0.8;
    text-decoration: none;
} 

.network-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-speed {
    font-weight: 500;
    color: #2196F3;
}

.total-traffic {
    font-size: 0.85em;
    color: #666;
} 

.status-card.online-servers {
    background: rgba(236, 253, 245, 0.95);
    border-color: rgba(167, 243, 208, 0.3);
}

.status-card.offline-servers {
    background: rgba(254, 242, 242, 0.95);
    border-color: rgba(252, 165, 165, 0.3);
}

.status-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                 linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* 添加激活状态的样式 */
.status-card.active-card::before {
    animation: none !important; /* 停止悬浮动画 */
    border-color: var(--border-color) !important; /* 保持边框颜色 */
}

.status-card.active-card {
    box-shadow: 0 4px 16px rgba(33,150,243,0.15);
}

/* 修改原有的悬浮样式，避免与激活状态冲突 */
.status-card:not(.active-card):hover::before {
    animation: borderFlow 1.5s forwards;
}

/* 添加进度条相关样式 */
.progress {
    background-color: rgba(0,0,0,0.05);
    border-radius: 2px;
    height: 3px !important;
    margin: 2px 0;
}



.server-stats {
    margin-top: 10px;
}

.server-stats small {
    font-size: 0.75rem;
}

/* 确保进度条容器有足够的间距 */
.server-stats .progress {
    height: 2px !important;
    margin: 4px 0;
}

/* 进度条颜色过渡效果 */
.server-stats .progress-bar {
    transition: width 0.3s ease;
}

.server-stats .progress-bar.bg-success {
    background-color: #4caf50;
}

.server-stats .progress-bar.bg-danger {
    background-color: #f44336;
}

.server-info {
    width: 100%;
    min-width: 1200px;
    /* padding: 8px 0; */
}

.info-header {
    font-size: 12px;
    margin-bottom: 4px;
}

.info-content {
    font-size: 14px;
}

/* 进度条样式 */
.progress {
    background-color: #f5f5f5;
    height: 2px !important;
    margin: 4px 0;
    border-radius: 2px;
}


.progress-bar.bg-success {
    background-color: #4caf50 !important;
}

.progress-bar.bg-danger {
    background-color: #f44336 !important;
}

/* 状态点样式 */
.status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff4d4f;
    position: relative;
    margin: 0 auto;
}

.status-dot.online {
    background-color: #52c41a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(82, 196, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(82, 196, 26, 0);
    }
}

/* 进度条悬浮效果 */
.progress-bar {
    transition: all 0.3s ease;
}

.progress:hover .progress-bar.bg-success {
    background-color: #66ff88 !important;
    box-shadow: 0 0 10px rgba(77, 255, 119, 0.5);
}

.progress:hover .progress-bar.bg-warning {
    background-color: #ffe033 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress:hover .progress-bar.bg-danger {
    background-color: #ff6666 !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
} 

/* 深色主题卡片 */
.card, .server-card {
    background-color: rgba(13, 13, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.server-info {
    background: rgba(15, 15, 18, 0.95);
    border-radius: 12px;
}

/* 标题样式 */
.dashboard-title h1 {
    color: #4d9eff;
    text-shadow: 0 0 10px rgba(77, 158, 255, 0.5);
}

.title-underline {
    background: linear-gradient(90deg, #4d9eff, #4dff77);
    box-shadow: 0 0 10px rgba(77, 158, 255, 0.3);
}

/* 进度条样式 */
.progress {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 状态点发光效果增强 */
.status-dot.online {
    background-color: #4dff77;
    box-shadow: 0 0 15px rgba(77, 255, 119, 0.5);
}

/* 滚动条样式 */
.card-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.card-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 卡片悬浮效果 */
.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* 文字颜色调整 */
.info-header {
    color: #8e9aaf;
}

.info-content {
    color: #e0e0e0;
}

/* Footer样式 */
.footer {
    background: rgba(13, 13, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    background: rgba(255, 255, 255, 0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .server-card::after {
        background: linear-gradient(to right, transparent, rgba(13, 13, 15, 0.95));
    }
} 

/* 状态点样式 */
.status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff4d4f;
    position: relative;
    margin: 0 auto;
}

.status-dot.online {
    background-color: #52c41a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(82, 196, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(82, 196, 26, 0);
    }
}

/* 进度条悬浮效果 */
.progress-bar {
    transition: all 0.3s ease;
}

.progress:hover .progress-bar.bg-success {
    background-color: #66ff88 !important;
    box-shadow: 0 0 10px rgba(77, 255, 119, 0.5);
}

.progress:hover .progress-bar.bg-warning {
    background-color: #ffe033 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress:hover .progress-bar.bg-danger {
    background-color: #ff6666 !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
} 

/* 内存和硬盘列的特殊处理 */
.col-1 .progress {
    margin-top: 2px !important;
}

/* 确保所有列对齐 */
.row.g-3 {
    align-items: center;
}

/* 优化移动端显示 */
@media (max-width: 768px) {
    .server-info {
        min-width: 1100px; /* 适当减小最小宽度 */
    }
} 

/* 调整进度条上方的数值显示 */
.info-content .small {
    margin-bottom: 4px; /* 统一的下边距 */
}

/* 进度条容器样式 */
.progress-container {
    width: 100%;
    margin-top: 4px; /* 统一的上边距 */
}

/* 调整列布局 */
.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
    padding: 0.5rem;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding: 0.5rem;
}

/* 确保所有列对齐 */
.row.g-3 {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
}

.progress-custom {
    margin-top: 0px !important; /* 使用 !important 确保优先级 */
}

