/* 全局样式 */
:root {
    --primary-color: #8E54E9; /* 霓虹紫 */
    --secondary-color: #4776E6; /* 科技蓝 */
    --gradient-main: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --gradient-hover: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(142, 84, 233, 0.15);
    --shadow-lg: 0 20px 50px rgba(142, 84, 233, 0.3);
}

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

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 - 玻璃拟物态 */
.navbar {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: padding 0.3s ease;
}

.navbar.scrolled .container {
    padding: 10px 20px;
}

.logo h1 {
    font-size: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* 英雄区域 (渐变与光效) */
.hero {
    background: var(--gradient-main);
    color: var(--white);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(142,84,233,0.3) 0%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    animation: pulse 6s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content h2 {
    font-size: 52px;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* 流光按钮 - Primary */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 35px;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    vertical-align: middle;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(142,84,233,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: -1;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    color: var(--secondary-color);
}

/* 次要按钮 */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--white);
    padding: 12px 35px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    vertical-align: middle;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 插图浮动特效 */
.hero-image {
    flex: 1;
    text-align: center;
    perspective: 1000px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg) !important;
    animation: float 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float {
    0% { transform: translateY(0px) rotateX(0) rotateY(0); }
    50% { transform: translateY(-20px) rotateX(2deg) rotateY(-2deg); }
    100% { transform: translateY(0px) rotateX(0) rotateY(0); }
}

/* 核心功能 */
.features {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 70px;
    color: var(--text-dark);
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 20px auto 0;
    border-radius: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 45px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(71,118,230,0.03) 0%, rgba(142,84,233,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-md);
    border-color: rgba(142, 84, 233, 0.15);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.25);
    transform: rotate(-5deg);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 30px rgba(142, 84, 233, 0.4);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 服务介绍 */
.services {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--primary-color);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 下载区域 */
.download {
    padding: 120px 0;
    background: var(--gradient-main);
    color: var(--white);
    text-align: center;
    position: relative;
}

.download::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.download .section-title {
    color: var(--white);
}

.download .section-title::after {
    background-color: var(--white);
}

.download-description {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.btn-download {
    display: flex;
    align-items: center;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-download i {
    font-size: 28px;
    margin-right: 12px;
}

.btn-download:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    color: var(--secondary-color);
}

.download-note {
    font-size: 15px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* 联系我们 */
.contact {
    padding: 120px 0;
    background-color: var(--white);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 24px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact-item span {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(142,84,233,0.1);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form button {
    align-self: flex-start;
    cursor: pointer;
    border: none;
    padding: 16px 45px;
}

/* 页脚 */
.footer {
    background-color: #0f0a1a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    flex: 1.5;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 26px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #888;
    margin-top: 15px;
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    flex: 1;
    min-width: 150px;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #222;
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-icons a:hover {
    background: var(--gradient-main);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(142,84,233,0.4);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-content h2 {
        font-size: 40px;
    }

    .btn-primary {
        margin-right: 0;
        margin-bottom: 15px;
        display: block;
    }
    
    .btn-secondary {
        display: block;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-download {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}