/* CSS重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-login, .btn-download, .btn-pricing {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a56d4, #2f0b8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(58, 12, 163, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #4361ee;
    border: 2px solid #4361ee;
}

.btn-secondary:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.btn-login {
    background: transparent;
    color: #333;
    padding: 10px 20px;
}

.btn-login:hover {
    color: #4361ee;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-download {
    background: #f8f9fa;
    color: #333;
    border-radius: 30px;
    padding: 10px 24px;
}

.btn-download:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    background: #f8f9fa;
    color: #333;
    margin-top: 20px;
    padding: 14px;
}

.btn-pricing:hover {
    background: #e9ecef;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    color: #4361ee;
    margin-right: 10px;
    font-size: 28px;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #4361ee;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 英雄区域 */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/hero-bg.jpg') no-repeat center/cover;
    border-radius: 0 0 0 100px;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #222;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #4361ee;
}

.stat-text {
    font-size: 14px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 功能区域 */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #222;
}

.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
}

.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* 下载区域 */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.download-card:hover {
    transform: translateY(-10px);
}

.download-icon {
    font-size: 48px;
    color: #4361ee;
    margin-bottom: 20px;
}

.download-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.download-description {
    color: #777;
    margin-bottom: 20px;
}

.download-qr {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.qr-code {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qr-text {
    color: #777;
    font-size: 16px;
}

/* 套餐区域 */
.pricing {
    padding: 100px 0;
    background: white;
}

.pricing-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.switch-label {
    font-weight: 600;
    color: #777;
}

.switch-label.active {
    color: #4361ee;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4361ee;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-name {
    font-size: 24px;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.period {
    font-size: 18px;
    color: #777;
}

.pricing-card.popular .period,
.pricing-card.popular .currency {
    color: rgba(255, 255, 255, 0.8);
}

.plan-description {
    color: #777;
}

.pricing-card.popular .plan-description {
    color: rgba(255, 255, 255, 0.8);
}

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

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-features i {
    margin-right: 10px;
    font-size: 18px;
}

.plan-features i.fa-check {
    color: #4cd964;
}

.pricing-card.popular .plan-features i.fa-check {
    color: white;
}

.plan-features i.fa-times {
    color: #ff6b6b;
}

/* 常见问题 */
.faq {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s;
    color: #4361ee;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 30px 30px;
    max-height: 300px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    padding: 80px 0 30px;
    background: #222;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col:first-child {
    grid-column: span 1;
}

.footer-description {
    margin: 20px 0;
    color: #aaa;
    line-height: 1.6;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #4361ee;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
}

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

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

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

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #aaa;
}

.footer-links-bottom {
    display: flex;
    gap: 30px;
}

.footer-links-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-bottom a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero:before {
        display: none;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .features-grid,
    .download-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 30px;
    }
}