/* 全局样式 */
:root {
    --primary-color: #4a6cf7;
    --primary-dark: #324bc7;
    --secondary-color: #6c5ce7;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9fafe;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(74, 108, 247, 0.15);
    --transition: all 0.3s ease;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: var(--nav-height);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 按钮样式 */
.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
    filter: brightness(1.1);
}

.secondary-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 15px;
}

.secondary-btn:hover {
    background: var(--bg-light);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

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

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

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

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

.nav-cta {
    padding: 8px 24px;
    font-size: 0.9rem;
}

/* 移动端菜单开关 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 80px;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
    background: linear-gradient(to bottom, #f0f4ff, #fff);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column-reverse;
}

.hero-content {
    text-align: center;
    margin-top: 40px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 100%;
    max-width: 500px;
}

.responsive-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* 通用 Section 样式 */
.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.text-left {
    text-align: left;
}

/* 网格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 卡片样式 */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* 核心优势卡片 */
.advantage-card {
    text-align: center;
}

.advantage-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.advantage-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 服务流程 */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(74, 108, 247, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* 价格卡片 */
.pricing-card {
    text-align: center;
    position: relative;
    border: 1px solid #eee;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
    z-index: 2;
}

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

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-header .unit {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    margin-bottom: 30px;
    text-align: left;
    padding-left: 10px;
}

.pricing-features li {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.full-width {
    width: 100%;
}

/* 详情特性 (Feature Details) */
.feature-details {
    padding: 40px 0;
}

.feature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.feature-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-card-visual {
    background: linear-gradient(135deg, #f0f4ff, #e5eaff);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-size: 5rem;
    box-shadow: var(--shadow);
}

/* 对比表格 (Comparison) */
.comparison-section {
    background: var(--bg-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table th.highlight {
    background: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
}

.comparison-table td.check {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

.comparison-table td.cross {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 关于我们 */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

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

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* 评价卡片 */
.review-card {
    text-align: left;
}

.stars {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer .name {
    font-weight: 600;
}

.reviewer .role {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 常见问题 (FAQ) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    border-top: 1px solid #eee;
}

.faq-answer p {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 底部 CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.cta-container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.large-btn {
    padding: 15px 50px;
    font-size: 1.2rem;
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.large-btn:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 底部 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    color: #a0a0b0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0a0b0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #a0a0b0;
}

.social-links span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #71718a;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #71718a;
    margin-left: 10px;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* =========================================
   媒体查询 - 响应式设计
   ========================================= */

/* 平板 (>= 768px) */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .hero-container {
        flex-direction: row;
        text-align: left;
    }

    .hero-content {
        width: 50%;
        text-align: left;
        padding-right: 30px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        margin-left: 0;
    }

    .hero-image {
        width: 45%;
    }

    .hero-buttons {
        justify-content: flex-start;
        display: flex;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-block {
        flex-direction: row;
        gap: 60px;
    }
    
    .feature-block.reverse {
        flex-direction: row-reverse;
    }

    .feature-content {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
    
    .nav-cta {
        display: inline-block;
    }
}

/* 桌面端 (>= 1200px) */
@media (min-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1.1);
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* 移动端特定调整 (<= 767px) */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        text-align: center;
        gap: 20px;
    }

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

    .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-section {
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .secondary-btn {
        margin-left: 0;
    }
    
    .pricing-card.popular {
        transform: scale(1);
        border: 2px solid var(--primary-color);
    }
    
    /* 移动端调整新版块 */
    .feature-block {
        text-align: center;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 10px;
    }
}
