* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: 16px;
    line-height: 1.6;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00d4ff;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #00d4ff;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #7b2cbf;
    animation-delay: 0.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #f72585;
    animation-delay: 0.4s;
}

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

.loading-content h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

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

#menu-box {
    position: fixed;
    width: 100%;
    height: 80px;
    background: rgba(15, 12, 41, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#menu-box.scrolled {
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.menu {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h2 {
    color: #fff;
    font-size: 28px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.logo h2:hover {
    color: #00d4ff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 44, 191, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.nav-links a:hover::before {
    opacity: 1;
}

#menu-box.scrolled .logo h2 {
    color: #fff;
}

#menu-box.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.status-box {
    margin: 120px auto 80px;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.status-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff 0%, #7b2cbf 50%, #f72585 100%);
}

.status-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.status-title:nth-child(2) {
    margin-top: 40px;
}

#server-status {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.chart-container {
    position: relative;
    height: 350px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.status-table th, .status-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
}

.status-table th {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-weight: 600;
}

#footer {
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(30px);
    color: #e0e0e0;
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #7b2cbf 50%, #f72585 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 50px;
    padding: 0 25px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #fff;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #7b2cbf 100%);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.footer-links a:hover {
    color: #00d4ff;
    transform: translateX(10px);
}

.footer-links a i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: #00d4ff;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: #00d4ff;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    color: #7b2cbf;
}

#musicControl {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#musicControl:hover {
    transform: scale(1.1);
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4);
}

#musicControl:active {
    transform: scale(0.95);
}

#musicIcon {
    width: 32px;
    height: 32px;
    opacity: 0.9;
    display: block;
}

@media (max-width: 900px) {
    .status-box {
        margin: 100px 20px 60px;
        padding: 30px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu {
        justify-content: center;
    }
    
    .footer-section {
        min-width: 100%;
        padding: 0 15px;
    }
    
    .status-box {
        margin: 100px 15px 60px;
        padding: 25px 20px;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 280px;
    }
    
    #menu-box {
        height: 70px;
    }
    
    .menu {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .status-box {
        margin: 100px 10px 60px;
        padding: 20px 15px;
    }
    
    .status-title {
        font-size: 1.3rem;
    }
    
    .chart-container {
        height: 250px;
        padding: 15px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .logo h2 {
        font-size: 22px;
    }
}
