/* 服务器状态页面样式 */

:root {
    --primary-dark: #0a192f;
    --primary-black: #020c1b;
    --primary-blue: #1e40af;
    --accent-blue: #3b82f6;
    
    /* 修改这里：将文字颜色改为白色 */
    --text-white: #ffffff;        /* 主白色文字 */
    --text-light: #f0f0f0;        /* 次要文字（稍浅的白） */
    
    --shadow-color: rgba(255, 255, 255, 0.1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}
/* 页面基础 */
.full-height {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 英雄区域 */
.server-hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 80vh;
}

.server-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.95), rgba(2, 12, 27, 0.95)),
                url('../images/server-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.server-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease forwards;
}

/* 标题 */
.server-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.2s;
}

.server-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
}

/* 主卡片 */
.server-card {
    background: rgba(30, 64, 175, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    animation: scaleIn 0.8s ease forwards 0.6s;
    transform-origin: center;
    opacity: 0;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 服务器头部 */
.server-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.server-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.server-main-info {
    text-align: left;
}

.server-name {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.server-address-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.server-address-display i {
    color: var(--accent-blue);
}

.server-address-display code {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--text-white);
}

/* 状态指示灯 */
.status-indicator-container {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.status-light {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.light-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    filter: blur(20px);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.light-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

/* 状态颜色 */
.status-light.checking .light-glow,
.status-light.checking .light-core {
    color: #fbbf24; /* 黄色 - 检测中 */
    animation: pulse 2s infinite;
}

.status-light.online .light-glow,
.status-light.online .light-core {
    color: #10b981; /* 绿色 - 在线 */
    animation: pulse 2s infinite;
}

.status-light.offline .light-glow,
.status-light.offline .light-core {
    color: #ef4444; /* 红色 - 离线 */
}

.status-light.error .light-glow,
.status-light.error .light-core {
    color: #8b5cf6; /* 紫色 - 错误 */
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-text-large {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-white);
    transition: all 0.5s ease;
}

/* 核心状态网格 */
.core-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.core-status-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.core-status-item.online {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.core-status-item.offline {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.core-status-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.core-status-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.core-status-item.online .core-status-icon {
    color: #10b981;
}

.core-status-item.offline .core-status-icon {
    color: #ef4444;
}

.core-status-content {
    text-align: left;
}

.core-status-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.core-status-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.core-status-value.online {
    color: #10b981;
}

.core-status-value.offline {
    color: #ef4444;
}

/* 服务器详情 */
.server-details-minimal {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label i {
    color: var(--accent-blue);
    width: 20px;
}

.detail-value {
    color: var(--text-white);
    font-weight: 500;
    font-family: monospace;
    font-size: 1.1rem;
}

/* 操作按钮 */
.action-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2.5rem 0;
}

.action-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.check-now {
    background: linear-gradient(45deg, var(--accent-blue), #1d4ed8);
    color: white;
}

.check-now:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.check-now:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.copy-address {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-blue);
}

.copy-address:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.copy-address.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

/* 自动刷新 */
.auto-refresh-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.refresh-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.refresh-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.refresh-toggle label {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.next-check {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: monospace;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .server-title {
        font-size: 2.5rem;
    }
    
    .server-subtitle {
        font-size: 1.2rem;
    }
    
    .server-card {
        padding: 1.5rem;
    }
    
    .server-header {
        flex-direction: column;
        text-align: center;
    }
    
    .server-main-info {
        text-align: center;
    }
    
    .core-status-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-container {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .auto-refresh-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .server-title {
        font-size: 2rem;
    }
    
    .server-subtitle {
        font-size: 1rem;
    }
    
    .server-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .status-light {
        width: 80px;
        height: 80px;
    }
    
    .light-core {
        width: 40px;
        height: 40px;
    }
    
    .status-text-large {
        font-size: 1.4rem;
    }
}
/* 页脚样式 */
.footer {
    background: linear-gradient(180deg, #0a192f, #020c1b);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    animation: fadeInUp 1s ease forwards 0.3s;
    opacity: 0;
}

.footer-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, transparent);
}

.footer-email {
    color: #f0f0f0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.footer-email:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.footer-email i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.social-links {
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #f0f0f0;
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.social-link:hover i {
    color: #60a5fa;
}

.social-link span {
    font-size: 1rem;
    font-weight: 500;
}

/* B站图标特殊颜色 */
.social-link .fa-bilibili {
    color: #fb7299;
}

/* 抖音图标特殊颜色 */
.social-link .fa-tiktok {
    color: #000000;
    background: linear-gradient(45deg, #25f4ee, #fe2c55);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 快手图标特殊颜色 */
.social-link .fa-kickstarter {
    color: #ffb400;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
    animation: fadeInUp 1s ease forwards 0.9s;
    opacity: 0;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-email {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .social-link {
        padding: 0.8rem;
    }
    
    .social-link span {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-email {
        font-size: 0.95rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-link {
        padding: 0.75rem;
    }
    
    .social-link i {
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚特定动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.footer-email i,
.social-link i {
    animation: float 3s ease-in-out infinite;
}

/* 延迟动画 */
.footer-info {
    animation-delay: 0.2s;
}

.social-links {
    animation-delay: 0.4s;
}

.footer-bottom {
    animation-delay: 0.6s;
}