/* ============ 全局样式 ============ */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A24;
    --secondary: #F7931E;
    --accent: #1E90FF;
    --success: #27AE60;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border: #E0E0E0;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============ 导航栏 ============ */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============ 英雄区域 ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: white;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 200px;
    right: 10%;
    animation: float 30s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.device-mockup {
    width: 100%;
    max-width: 350px;
    animation: bounce-device 3s infinite ease-in-out;
}

.device-mockup svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes bounce-device {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--text-dark);
    animation: float-card 3s infinite ease-in-out;
}

.card-1 {
    top: 20%;
    left: -80px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -80px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 20%;
    left: -80px;
    animation-delay: 1s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============ 功能特性 ============ */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.features h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
}

/* ============ 服务器分布 ============ */
.servers {
    padding: 100px 0;
    background: white;
}

.servers h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.server-region {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.server-region:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.region-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.server-region h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.server-region p {
    opacity: 0.9;
    margin-bottom: 10px;
}

.speed {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ============ 下载区域 ============ */
.download {
    padding: 100px 0;
    background: var(--bg-light);
}

.download h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.download-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 25px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.version {
    font-size: 12px;
    color: var(--text-light);
}

/* ============ 价格方案 ============ */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-price {
    margin-bottom: 30px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.period {
    color: var(--text-light);
    font-size: 14px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* ============ FAQ ============ */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    cursor: pointer;
    user-select: none;
}

.faq-item summary h4 {
    font-size: 16px;
    margin: 0;
}

.toggle {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] .toggle {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 20px;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.8;
}

/* ============ 用户评价 ============ */
.testimonials {
    padding: 100px 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.author {
    display: flex;
    flex-direction: column;
}

.name {
    font-weight: 600;
    color: var(--text-dark);
}

.role {
    font-size: 12px;
    color: var(--text-light);
}

/* ============ 联系我们 ============ */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-light);
}

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

.social-links a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============ 页脚 ============ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h5 {
    margin-bottom: 20px;
    font-size: 16px;
}

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

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

.footer-bottom a {
    color: var(--primary);
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease 0.1s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease forwards;
}

.slide-in-delay-1 {
    animation: slideIn 0.8s ease 0.1s forwards;
    opacity: 0;
}

.slide-in-delay-2 {
    animation: slideIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.slide-in-delay-3 {
    animation: slideIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.slide-in-delay-4 {
    animation: slideIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.slide-in-delay-5 {
    animation: slideIn 0.8s ease 0.5s forwards;
    opacity: 0;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

.bounce-in-delay-1 {
    animation: bounceIn 0.6s ease 0.1s forwards;
    opacity: 0;
}

.bounce-in-delay-2 {
    animation: bounceIn 0.6s ease 0.2s forwards;
    opacity: 0;
}

.bounce-in-delay-3 {
    animation: bounceIn 0.6s ease 0.3s forwards;
    opacity: 0;
}

.bounce-in-delay-4 {
    animation: bounceIn 0.6s ease 0.4s forwards;
    opacity: 0;
}

.bounce-in-delay-5 {
    animation: bounceIn 0.6s ease 0.5s forwards;
    opacity: 0;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        gap: 10px;
        box-shadow: var(--shadow);
    }

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

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .hero-image {
        order: -1;
    }

    .floating-cards {
        display: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .features h2,
    .servers h2,
    .download h2,
    .pricing h2,
    .faq h2,
    .testimonials h2,
    .contact h2 {
        font-size: 32px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

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

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 20px;
    }

    .features-grid,
    .servers-grid,
    .download-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
