/* ========================================
   名称：主页样式表
   版本：1.0
   说明：主页样式表首页设计与布局
   时间：2026-01-14
   ======================================== */

/* ========== 1. 全局变量 ========== */
:root {
    /* 主色调 */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --secondary-blue: #0ea5e9;
    
    /* 渐变色 */
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-hero: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

/* 暗黑模式变量 */
[data-bs-theme="dark"] {
    --bs-body-bg: #0f172a;
    --bs-body-color: #e2e8f0;
    --bs-secondary-color: #94a3b8;
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
}

/* 暗黑模式下的浅色背景区域 */
[data-bs-theme="dark"] .bg-light {
    background-color: #1e293b !important;
}

/* ========== 2. 基础样式 ========== */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* 容器最大宽度限制 */
.container {
    max-width: 1200px !important;
}

/* ========== 3. 导航栏 ========== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.9) !important;
}

/* 品牌Logo */
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* 导航链接 */
.nav-link {
    font-weight: 500;
    color: var(--bs-body-color) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

/* 主题切换按钮 */
.theme-toggle {
    border: none;
    background: none;
    font-size: 1.25rem;
    color: var(--bs-body-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== 4. Hero区域 ========== */
.hero-section {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Hero背景装饰 */
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

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

/* Hero标题 */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero描述文字 */
.hero-description {
    font-size: 1.25rem;
    color: var(--bs-secondary-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

[data-bs-theme="dark"] .hero-description {
    color: #cbd5e1;
}

/* 特性徽章 */
.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .stats-badge {
    background: rgba(30, 41, 59, 0.8);
}

.stats-badge i {
    color: var(--primary-blue);
}

/* Hero插图容器 */
.hero-illustration {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    z-index: 0;
}

[data-bs-theme="dark"] .hero-illustration::before {
    background: rgba(30, 41, 59, 0.4);
}

/* Hero图片 */
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 
        0 10px 25px rgba(37, 99, 235, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 5. 按钮样式 ========== */
/* 主要按钮 */
.btn-primary-blue {
    background: var(--gradient-blue);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

/* 边框按钮 */
.btn-outline-blue {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    background: transparent;
    transition: all 0.3s ease;
}

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

/* 白色按钮 (CTA区域使用) */
.btn-white {
    background: white;
    color: var(--primary-blue);
    padding: 1rem 3rem;
    font-weight: 700;
    border-radius: 2rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--primary-blue);
}

/* ========== 6. 特性卡片 ========== */
.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

[data-bs-theme="dark"] .feature-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-blue);
}

/* 特性图标 */
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-blue);
}

/* 特性标题 */
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--bs-body-color);
}

/* 特性描述 */
.feature-description {
    color: var(--bs-secondary-color);
    line-height: 1.6;
}

[data-bs-theme="dark"] .feature-description {
    color: #94a3b8;
}

/* ========== 7. 价格卡片 ========== */
.pricing-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

[data-bs-theme="dark"] .pricing-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

[data-bs-theme="dark"] .pricing-card:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* 推荐卡片 */
.pricing-card.featured {
    border-color: var(--primary-blue);
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

[data-bs-theme="dark"] .pricing-card.featured {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* 推荐徽章 */
.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-blue);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
}

/* 价格标题 */
.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

/* 价格数字 */
.pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.pricing-price small {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--bs-secondary-color);
}

/* 价格特性列表 */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bs-body-color);
}

.pricing-features i {
    color: #10b981;
    font-size: 1.25rem;
}

/* ========== 8. 评价卡片 ========== */
.review-card {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bs-body-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

[data-bs-theme="dark"] .review-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 星级评分 */
.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* 评价文字 */
.review-text {
    font-style: italic;
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 评价作者信息 */
.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.review-name {
    font-weight: 600;
    color: var(--bs-body-color);
}

.review-role {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .review-role {
    color: #94a3b8;
}

/* ========== 9. FAQ折叠面板 ========== */
.accordion {
    --bs-accordion-bg: var(--bs-body-bg);
    --bs-accordion-border-color: rgba(0, 0, 0, 0.125);
}

[data-bs-theme="dark"] .accordion {
    --bs-accordion-bg: #1e293b;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.15);
    --bs-accordion-btn-color: #e2e8f0;
    --bs-accordion-active-color: #3b82f6;
    --bs-accordion-active-bg: rgba(59, 130, 246, 0.15);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .accordion-body {
    color: #94a3b8;
    background-color: #1e293b;
}

/* ========== 10. CTA行动号召区域 ========== */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-blue);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ========== 11. 页脚 ========== */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 60px 0 30px;
}

[data-bs-theme="dark"] footer {
    background: #0f172a;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

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

/* ========== 12. 通用区域样式 ========== */
/* 区域内边距 */
.section-padding {
    padding: 80px 0;
}

/* 区域标题 */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

/* 标题下划线 */
.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-blue);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* 区域副标题 */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .section-subtitle {
    color: #94a3b8;
}

/* ========== 13. 响应式设计 ========== */
@media (max-width: 768px) {
    /* Hero区域移动端适配 */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    /* 价格卡片移动端适配 */
    .pricing-price {
        font-size: 2.5rem;
    }

    /* 区域标题移动端适配 */
    .section-title h2 {
        font-size: 2rem;
    }

    /* CTA区域移动端适配 */
    .cta-section h2 {
        font-size: 1.875rem;
    }
}
