* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00f7ff;
    --secondary-color: #3a3aff;
    --glow-effect: 0 0 15px rgba(58, 58, 255, 0.5);
}

body {
    background: #0a0a1a;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, rgba(16, 16, 64, 0.95) 0%, rgba(8, 8, 32, 0.95) 100%);
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: var(--glow-effect);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 180px;
    height: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 25%,
            rgba(0, 247, 255, 0.1) 50%,
            transparent 75%);
    animation: logoGlow 4s infinite linear;
}

@keyframes logoGlow {
    100% {
        transform: rotate(360deg);
    }
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.nav a:hover::before {
    width: 100%;
}


.footer {
    background: linear-gradient(160deg, #00001a 0%, #0a0a2a 100%);
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, 
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    position: relative;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 247, 255, 0.1);
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #ddd;
    transition: all 0.3s;
}

.contact-item:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-right: 12px;
    flex-shrink: 0;
}

.footer-links {
    display: grid;
    gap: 15px;
}

.footer-link {
    color: #ddd;
    text-decoration: none;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s;
}

.footer-link::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 25px;
}

.footer-link:hover::before {
    opacity: 1;
    left: -5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    color: #888;
    font-size: 0.9em;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legal-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-link:hover {
    color: var(--primary-color);
}

.divider {
    color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-link {
        padding-left: 0;
        text-align: center;
    }
    
    .footer-link::before {
        display: none;
    }
}