* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0a0a14;
    color: #e0e0ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 轻量背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(77, 93, 251, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(8, 198, 249, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, #4d5dfb, #08c6f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4d5dfb, #08c6f9, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.subtitle {
    color: #a0a0ff;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.nav-card {
    background: rgba(16, 18, 33, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(77, 93, 251, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4d5dfb, transparent);
    transition: left 0.5s ease;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: #4d5dfb;
    box-shadow: 0 10px 30px rgba(77, 93, 251, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(77, 93, 251, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border: 1px solid rgba(77, 93, 251, 0.3);
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.3rem;
    color: #4d5dfb;
    transition: all 0.3s ease;
}

.nav-card:hover .card-icon {
    background: rgba(77, 93, 251, 0.2);
    transform: scale(1.1);
}

.nav-card:hover .card-icon i {
    color: #08c6f9;
}

.card-title {
    font-size: 1.3rem;
    color: #e0e0ff;
}

.card-description {
    color: #a0a0ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    padding: 2% 45%;
    background: linear-gradient(135deg, #4d5dfb, #08c6f9);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.card-link:hover::before {
    left: 100%;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 93, 251, 0.4);
}

/* 测速结果显示样式 */
.speed-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16, 18, 33, 0.6);
    border-radius: 8px;
    border-left: 3px solid #4d5dfb;
}

.speed-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4d5dfb;
    margin-bottom: 0.5rem;
}

.speed-status {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.status-excellent {
    color: #00ff9d;
}

.status-good {
    color: #4dffea;
}

.status-average {
    color: #ffcc00;
}

.status-poor {
    color: #ff6b6b;
}

.speed-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.speed-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
}

.speed-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff9d, #4dffea, #ffcc00, #ff6b6b);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.speed-number {
    font-size: 0.9rem;
    color: #a0a0ff;
    min-width: 60px;
    text-align: right;
}

.last-update {
    font-size: 0.8rem;
    color: #7070a0;
    margin-top: 0.5rem;
}

.counter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.counter-card {
    background: rgba(16, 18, 33, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(77, 93, 251, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4d5dfb, #08c6f9);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.counter-card:hover::before {
    transform: scaleY(1);
}

.counter-card:hover {
    transform: translateY(-3px);
    border-color: #4d5dfb;
    box-shadow: 0 8px 25px rgba(77, 93, 251, 0.15);
}

.counter-icon {
    width: 60px;
    height: 60px;
    background: rgba(77, 93, 251, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(77, 93, 251, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.counter-icon i {
    font-size: 1.5rem;
    color: #4d5dfb;
    transition: all 0.3s ease;
}

.counter-card:hover .counter-icon {
    background: rgba(77, 93, 251, 0.2);
    transform: rotate(5deg);
}

.counter-card:hover .counter-icon i {
    color: #08c6f9;
}

.counter-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #e0e0ff;
}

.counter-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4d5dfb, #08c6f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.counter-number.updating {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.counter-description {
    font-size: 0.8rem;
    color: #a0a0ff;
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(16, 18, 33, 0.9);
    border: 2px solid rgba(77, 93, 251, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, #4d5dfb, #08c6f9, #4d5dfb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 0.1;
}

.social-icon i {
    font-size: 1.3rem;
    color: #a0a0ff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(77, 93, 251, 0.3);
}

.social-icon.qq:hover {
    border-color: #12b7f5;
    box-shadow: 0 10px 25px rgba(18, 183, 245, 0.3);
}

.social-icon.qq:hover i {
    color: #12b7f5;
}

.social-icon.bilibili:hover {
    border-color: #fb7299;
    box-shadow: 0 10px 25px rgba(251, 114, 153, 0.3);
}

.social-icon.bilibili:hover i {
    color: #fb7299;
}

.social-icon.douyin:hover {
    border-color: #69c9d0;
    box-shadow: 0 10px 25px rgba(105, 201, 208, 0.3);
}

.social-icon.douyin:hover i {
    color: #69c9d0;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
    color: #7070a0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(77, 93, 251, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .nav-grid, .counter-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-card, .counter-card {
        padding: 1rem;
    }
    
    .card-link {
        display: block;
        text-align: center;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon i {
        font-size: 1.2rem;
    }
}