/* 请复制上一条回复中完整的 CSS 代码到此文件 */
/* 确保 Font Awesome 的引入链接在 <head> 中，并且所有图标类名都已替换为 fas/fab 等 */
/* 通用样式 */
:root {
    --primary-color: #6a67ff; /* 略带活力的蓝紫色 */
    --secondary-color: #4a47ed; /* 较深的蓝紫色 */
    --accent-color: #00bcd4; /* 青色，用于强调 */
    --text-color: #333;
    --light-text-color: #666;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50; /* 深灰色，可选用于 footer */
    --border-color: #eee;
    --card-bg: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', 'Montserrat', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* 防止水平滚动条 */
}

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

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3.2em; text-align: center; color: #fff; }
h2 { font-size: 2.5em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap; /* 防止按钮文字换行 */
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(106, 103, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 71, 237, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 20px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-tertiary {
    background-color: #e0e0e0;
    color: var(--text-color);
    border: 1px solid #ddd;
    margin-top: 20px;
    width: 100%;
}

.btn-tertiary:hover {
    background-color: #d0d0d0;
    transform: translateY(-1px);
}

/* 箭头图标 */
.icon-arrow-right::before {
    content: "→"; /* 或者使用 Font Awesome 的  */
    margin-left: 8px;
    font-weight: 700;
    vertical-align: middle;
}

/* Section 通用间距 */
.section-padded {
    padding: 80px 0;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* 增加一些视觉元素，模拟 AI 科技感 */
    /* 例如，背景粒子或渐变动画 */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(-30deg);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮组居中 */
.hero .btn-primary, .hero .btn-secondary {
    margin: 0 10px; /* 调整间距 */
}


/* 为什么选择 AI SaaS 专属方案 Section */
.feature-grid-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-grid-two-col .feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-grid-two-col .feature-item:hover {
    transform: translateY(-5px);
}

.feature-grid-two-col .feature-item h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.feature-grid-two-col .feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

/* Font Awesome Icons (示例，请自行引入 Font Awesome 库) */
/* 实际使用时，需要在 <head> 中引入 Font Awesome CSS */
/* 例如: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> */
/* 以下为占位符图标，实际应使用 Font Awesome class */
.icon-speed::before { content: "⚡"; /* 或者 Font Awesome: \f0e7 (bolt) */ }
.icon-focus::before { content: "🎯"; /* 或者 Font Awesome: \f140 (bullseye) */ }
.icon-global::before { content: "🌐"; /* 或者 Font Awesome: \f0ac (globe) */ }
.icon-security::before { content: "🔒"; /* 或者 Font Awesome: \f023 (lock) */ }
.icon-integrations::before { content: "🔗"; /* 或者 Font Awesome: \f0c1 (link) */ }
.icon-api-friendly::before { content: "🔌"; /* 或者 Font Awesome: \f126 (terminal) */ }
.icon-fraud-protection::before { content: "🛡️"; /* 或者 Font Awesome: \f504 (shield-alt) */ }
.icon-analytics-reports::before { content: "📈"; /* 或者 Font Awesome: \f200 (chart-line) */ }
.icon-scaling::before { content: "🚀"; /* 或者 Font Awesome: \f135 (rocket) */ }
.icon-developer-support::before { content: "👨‍💻"; /* 或者 Font Awesome: \f108 (laptop-code) */ }
.icon-check::before { content: "✅"; /* 或者 Font Awesome: \f00c (check) */ color: #28a745; margin-right: 8px;}
.icon-x::before { content: "❌"; /* 或者 Font Awesome: \f00d (times) */ color: #dc3545; margin-right: 8px;}
.icon-plus::before { content: "+"; /* 或者 Font Awesome: \f067 (plus) */ font-size: 0.8em; margin-left: auto;} /* For accordion */


/* Features Section (我们能为 AI SaaS 做什么) */
.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.feature-card i {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.6em;
}

.feature-card p {
    color: var(--light-text-color);
}

/* Pricing Section */
.pricing-section .pricing-intro {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 60px;
    color: var(--light-text-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* 确保卡片高度一致 */
}

.price-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.price-card h3 {
    font-size: 1.8em;
    margin-top: 0;
    color: var(--primary-color);
}

.price-card .price-tag {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--text-color);
    margin: 20px 0;
}

.price-card .price-tag span {
    font-size: 0.4em;
    font-weight: 400;
    color: var(--light-text-color);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    flex-grow: 1; /* 让列表占据可用空间 */
}

.price-card ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card ul li strong {
    color: var(--text-color);
}

.price-card .btn {
    margin-top: auto; /* 将按钮推到底部 */
}

.price-card.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(106, 103, 255, 0.2);
    transform: translateY(-5px); /* 略微提升 */
}

.price-card.recommended .btn-primary {
    background-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(106, 103, 255, 0.4);
}
.price-card.recommended .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(74, 71, 237, 0.5);
}

.tag-recommended {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.85em;
    padding: 5px 15px;
    border-radius: 20px;
    margin-top: -15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.pricing-note {
    text-align: center;
    font-size: 0.95em;
    color: var(--light-text-color);
    margin-top: 50px;
}

/* How It Works Section */
.how-it-works-section .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.how-it-works-section .step-item {
    text-align: center;
    padding: 25px;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: relative;
}

.how-it-works-section .step-item span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(106, 103, 255, 0.2);
    border: 3px solid #fff;
    position: relative;
    z-index: 1;
}

.how-it-works-section .step-item h3 {
    font-size: 1.5em;
    margin-top: 0;
}

.how-it-works-section .call-to-action {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-style: italic;
    color: var(--light-text-color);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-size: 4em;
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.1;
    line-height: 1;
    z-index: 0;
}

.testimonial-card p {
    margin-bottom: 10px;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--text-color);
    font-style: normal;
    text-align: right;
    margin-top: 20px;
}

/* FAQ Section (Accordion) */
.faq-section {
    padding-bottom: 80px; /* 增加底部间距，因为手风琴会展开 */
}

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

.accordion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background-color: var(--card-bg);
    border: none;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.accordion-header .icon-plus {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon-plus {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--bg-light);
}

.accordion-content p {
    padding-bottom: 20px; /* 确保内容底部有间距 */
    margin-top: 0;
    color: var(--light-text-color);
}

/* Call to Action Bottom */
.hero-small {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--accent-color), #00a8b9);
    color: #fff;
    text-align: center;
}

.hero-small h2 {
    font-size: 2.8em;
    color: #fff;
}

.hero-small p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #f0f0f0;
    padding: 60px 0 20px;
    font-size: 0.95em;
}

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

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

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

.footer-col ul li a {
    color: #f0f0f0;
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-col p {
    color: #ccc;
}

.footer-col a {
    color: var(--accent-color);
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.8em;
    color: #fff;
    opacity: 0.7;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

.footer-bottom p {
    margin: 5px 0;
}

/* Modal Styles for Policies */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh; /* Limit height for scroll */
    overflow-y: auto; /* Enable scroll for content */
}

.modal-content h2 {
    text-align: left;
    margin-top: 0;
    color: var(--primary-color);
}

.modal-content h3 {
    margin-top: 30px;
    color: var(--text-color);
}

.modal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.modal-content ul li {
    margin-bottom: 8px;
}


.close-button {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 3em; }
    .hero .subtitle { font-size: 1.2em; }
    .section-padded { padding: 60px 0; }
    .pricing-grid, .feature-grid-two-col, .feature-card-grid, .steps-grid, .testimonial-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .btn-secondary { margin-left: 0; margin-top: 20px; }
    .hero .btn-primary, .hero .btn-secondary {
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-grid .price-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-col { text-align: center; }
    .footer-col ul { display: inline-block; text-align: left; } /* 确保列表在小屏幕上仍然易读 */
    .social-icons { text-align: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    .hero h1 { font-size: 2.5em; }
    .hero .subtitle { font-size: 1.1em; }
    .section-padded { padding: 40px 0; }
    .btn { padding: 12px 25px; font-size: 1em; }
    .price-card .price-tag { font-size: 3em; }
    .accordion-header { padding: 15px 20px; font-size: 1.1em; }
    .accordion-content p { padding-bottom: 15px; }
    .modal-content { padding: 25px; }
    .close-button { font-size: 30px; top: 10px; right: 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    .hero h1 { font-size: 2em; }
    .hero .subtitle { font-size: 1em; }
    .btn { padding: 10px 20px; font-size: 0.95em; }
    .feature-grid-two-col .feature-item,
    .feature-card,
    .price-card,
    .step-item,
    .testimonial-card {
        padding: 25px;
    }
    .pricing-grid .price-card { width: 100%; }
    .modal-content { padding: 15px; }
}
/* 语言切换器样式 */
.language-switcher {
    position: absolute; /* 或 fixed */
    top: 20px;
    right: 20px;
    z-index: 999;
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 103, 255, 0.2);
}

/* 模态框标题和内容样式，确保在不同语言下字体大小和间距合适 */
.modal-content h2 {
    text-align: left; /* Modals should typically have left-aligned titles */
    margin-top: 0;
    color: var(--primary-color);
}
.modal-content h3 {
    margin-top: 30px;
    color: var(--text-color);
}
.modal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--light-text-color);
}
.modal-content ul li {
    margin-bottom: 8px;
}
.modal-content p {
    color: var(--light-text-color);
    margin-bottom: 15px;
}