/* 全局样式 */
:root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --accent-color: #7367f0;
    --text-color: #ffffff;
    --light-text: #a8b8d0;
    --background: #0a0b14;
    --section-bg: #12141f;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1f35 0%, #2d3149 100%);
    --box-shadow: 0 8px 32px 0 rgba(0, 242, 254, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-glow: 0 0 10px rgba(0, 242, 254, 0.5), 0 0 20px rgba(0, 242, 254, 0.3), 0 0 30px rgba(0, 242, 254, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--background);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(115, 103, 240, 0.1) 0px, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏样式 */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 11, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    text-shadow: var(--neon-glow);
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-color);
}

.logo-img {
    width: 40px;
    height: 40px;
    animation: logoSpin 20s linear infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: transparent;
}

.nav-links a:hover {
    color: var(--text-color);
    background: rgba(0, 242, 254, 0.1);
    box-shadow: var(--neon-glow);
}

.lang-switch button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 0.25rem;
}

.lang-switch button:hover {
    background: rgba(0, 242, 254, 0.1);
    color: var(--text-color);
    box-shadow: var(--neon-glow);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: var(--primary-color);
    color: white;
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem;
    background: var(--section-bg);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(0,242,254,0.1)" stroke-width="1"/></svg>') repeat;
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 242, 254, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(115, 103, 240, 0.15) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
    opacity: 0.8;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-animation {
    width: 50%;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    animation: slideUp 1s ease-out;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: slideUp 1s ease-out 0.4s backwards;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: var(--neon-glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    background: rgba(0, 242, 254, 0.2);
    box-shadow: var(--neon-glow);
}

/* 关于我们区域 */
.about {
    padding: 6rem 0;
    background: var(--section-bg);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    transform: translateY(0);

    &:hover {
        transform: translateY(-10px);
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient-primary);
        opacity: 0;
        transition: var(--transition);
        z-index: 0;
    }

    &:hover::before {
        opacity: 0.05;
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 服务区域 */
.services {
    padding: 6rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(18, 20, 31, 0.5);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    &:hover {
        transform: translateY(-10px);
        border-color: var(--primary-color);
        box-shadow: var(--neon-glow);
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(0, 242, 254, 0.2), transparent);
        transform: translateX(-100%);
        transition: 0.6s;
    }

    &:hover::after {
        transform: translateX(100%);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.service-card:hover h3,
.service-card:hover p {
    color: white;
}

/* WhatsApp按钮 */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    box-shadow: var(--neon-glow);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.whatsapp-button i {
    font-size: 2rem;
}

/* 页脚样式 */
.footer {
    background: var(--gradient-dark);
    padding: 6rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
        background-size: 60px 60px;
        opacity: 0.5;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    opacity: 0.9;
    transition: var(--transition);

    &:hover {
        opacity: 1;
        transform: scale(1.05);
    }
}

.footer-logo .logo-img {
    width: 30px;
    height: 30px;
}

.contact-info {
    text-align: right;
    animation: fadeIn 1s ease-out;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);

    &:hover {
        color: white;
        transform: translateX(-5px);
    }
}

.contact-info .address-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 10px;
}

.contact-info .address-line {
    display: block;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.9;
}

.contact-info .icon {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 动画效果 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem;
        min-height: 90vh;
    }

    .hero-content {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-animation {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        animation: float 6s ease-in-out infinite;
    }

    .features, .service-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }
}

/* 滚动平滑 */
html {
    scroll-behavior: smooth;
}