/* =========================================
   Affiliate营销圈知识星球推广页样式
   ========================================= */

/* 
 * CSS变量定义
 * 这些变量定义了整个页面的颜色方案和设计规范
 * 使用CSS变量可以方便地统一管理和修改样式
 */
:root {
    --primary: #059669;
    /* 主色调：绿色 */
    --primary-hover: #047857;
    /* 主色调悬停状态：深绿色 */
    --primary-light: #ecfdf5;
    /* 主色调浅色背景 */
    --accent: #f59e0b;
    /* 强调色：橙色 */
    --accent-light: #fffbeb;
    /* 强调色浅色背景 */
    --text-dark: #0f172a;
    /* 深色文字 */
    --text-body: #334155;
    /* 正文文字颜色 */
    --text-muted: #64748b;
    /* 次要文字颜色 */
    --bg-white: #ffffff;
    /* 白色背景 */
    --bg-alt: #f8fafc;
    /* 交替背景色 */
    --border: #e2e8f0;
    /* 边框颜色 */

    /* 阴影效果定义 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 圆角大小定义 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ========== 基础样式 Base Styles ========== */
/* 
 * 主容器样式
 * 设置整个页面的字体、颜色和基本布局
 */
.zsxq-main {
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-white);
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    /* 字体平滑渲染 */
}

/* 
 * 内容容器
 * 限制最大宽度并居中显示，保证内容在大屏幕上不会过宽
 */
.zsxq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 排版样式 Typography ========== */
/* 
 * 标题样式统一设置
 * 所有标题使用深色、粗体，并优化行高和字间距
 */
.zsxq-main h1,
.zsxq-main h2,
.zsxq-main h3,
.zsxq-main h4 {
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* 轻微负值让标题更紧凑 */
}

/* 区块标题样式 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* 区块副标题样式 */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ========== 区块样式 Sections ========== */
/* 
 * 所有区块的基础样式
 * 设置统一的上下内边距
 */
.zsxq-section {
    padding: 80px 0;
}

/* 
 * 交替背景色
 * 偶数区块使用浅色背景，增加视觉层次
 */
.zsxq-section:nth-child(even) {
    background: var(--bg-alt);
}

/* ========== 英雄区 Hero Section ========== */
/* 
 * 页面顶部的英雄区
 * 这是用户看到的第一个区块，需要特别吸引眼球
 */
.zsxq-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-white) 100%);
}

/* 英雄区标签 */
.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    /* 完全圆角 */
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

/* 英雄区主标题 */
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.15;
}

/* 英雄区副标题 */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    max-width: 700px;
    margin: 0 auto 32px;
    font-weight: 400;
}

/* 英雄区徽章容器 */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* 单个徽章样式 */
.badge {
    background: var(--bg-white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* 英雄区按钮组 */
.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== 按钮样式 Buttons ========== */
/* 
 * CTA按钮基础样式
 * 所有行动号召按钮的通用样式
 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    /* 平滑过渡效果 */
}

/* 主要按钮样式 */
.cta-button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

/* 主要按钮悬停效果 */
.cta-button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    /* 向上移动2px */
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* 次要按钮样式 */
.cta-button.secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

/* 次要按钮悬停效果 */
.cta-button.secondary:hover {
    border-color: var(--text-dark);
}

/* ========== 价值区 Value Section ========== */
/* 
 * 展示社群价值的网格布局
 * 使用4列网格展示4个核心价值点
 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2列布局 */
    gap: 24px;
    margin-top: 48px;
}

/* 单个价值项 */
.value-item {
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* 价值项悬停效果 */
.value-item:hover {
    transform: translateY(-4px);
    /* 向上浮动 */
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* 价值图标 */
.value-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

/* 价值项标题 */
.value-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* 价值项描述 */
.value-item p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ========== 交付内容区 Delivery Section ========== */
/* 
 * 交付内容列表
 * 展示社群提供的具体内容和服务
 */
.delivery-list {
    max-width: 800px;
    margin: 0 auto;
}

/* 单个交付项 */
.delivery-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* 交付项悬停效果 */
.delivery-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* 交付项编号 */
.delivery-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
}

/* 交付内容文字 */
.delivery-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.delivery-content p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========== 适合人群区 Audience Section ========== */
/* 
 * 展示目标用户群体
 * 使用4列网格布局
 */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* 单个人群项 */
.audience-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* 人群项悬停效果 */
.audience-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* 人群图标 */
.audience-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

/* 人群项标题 */
.audience-item h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

/* 人群项描述 */
.audience-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== 见证区 Testimonials Section ========== */
/* 
 * 用户评价展示
 * 3列网格布局
 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* 单个评价卡片 */
.testimonial-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* 评价内容 */
.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 24px;
    font-style: italic;
    /* 斜体强调这是引用 */
}

/* 评价作者信息 */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 作者头像 */
.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    /* 圆形头像 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 作者信息文字 */
.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========== 价格区 Pricing Section ========== */
/* 
 * 价格方案展示
 * 使用flex布局并排显示两个价格卡片
 */
.pricing-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

/* 单个价格卡片 */
.pricing-card {
    flex: 1;
    max-width: 400px;
    min-width: 320px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
}

/* 价格卡片悬停效果 */
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 特色价格卡片（推荐方案） */
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* 卡片徽章 */
.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* 热门徽章 */
.card-badge.popular {
    background: var(--primary);
}

/* 卡片标题 */
.card-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 24px;
    margin-top: 8px;
}

/* 价格显示区域 */
.card-price {
    text-align: center;
    margin-bottom: 32px;
}

/* 折扣显示 */
.price-discount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

/* 价格金额 */
.price-amount {
    display: block;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

/* 价格描述 */
.price-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 功能列表 */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.card-features li {
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
}

.card-features li:last-child {
    border-bottom: none;
}

/* 卡片按钮 */
.card-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-button.primary {
    background: var(--primary);
    color: white;
}

.card-button.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.card-button.secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

*/ .faq-list {
    max-width: 800px;
    margin: 48px auto 0;
}

/* 单个FAQ项 */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* FAQ项悬停效果 */
.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* FAQ问题 */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    /* 防止文字被选中 */
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* FAQ图标 */
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* FAQ答案 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* 展开状态 */
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    /* 旋转成X形状 */
    color: var(--primary);
}

.faq-answer p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========== 最终CTA区 Final CTA Section ========== */
/* 
 * 页面底部的最终行动号召
 * 这是转化的最后一个机会
 */
.final-cta-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
}

.final-cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* 亮点数据展示 */
.cta-highlights {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CTA操作区域 */
.cta-action {
    margin-bottom: 32px;
}

.cta-instruction {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* 二维码容器 */
.qrcode-container {
    display: inline-block;
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cta-qrcode {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.qrcode-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* CTA权益列表 */
.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-benefits p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* ========== 响应式设计 Responsive Design ========== */
/* 
 * 平板设备适配（768px以下）
 */
@media (max-width: 768px) {

    /* 调整标题大小 */
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 网格布局改为单列 */
    .value-grid,
    .audience-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 价格卡片堆叠 */
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    /* 调整内边距 */
    .zsxq-section {
        padding: 60px 0;
    }

    .zsxq-hero {
        padding: 80px 0 60px;
    }

    /* 调整容器内边距 */
    .zsxq-container {
        padding: 0 16px;
    }

    /* 调整交付项布局 */
    .delivery-item {
        flex-direction: column;
        padding: 24px;
    }

    /* 调整最终CTA */
    .final-cta-card {
        padding: 48px 24px;
    }

    .cta-highlights {
        gap: 24px;
    }
}

/* 
 * 手机设备适配（480px以下）
 */
@media (max-width: 480px) {

    /* 进一步缩小标题 */
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* 调整按钮大小 */
}

/* 展开状态 */
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    /* 旋转成X形状 */
    color: var(--primary);
}

.faq-answer p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.7;
}

/* ========== 最终CTA区 Final CTA Section ========== */
/* 
 * 页面底部的最终行动号召
 * 这是转化的最后一个机会
 */
.final-cta-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
}

.final-cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* 亮点数据展示 */
.cta-highlights {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CTA操作区域 */
.cta-action {
    margin-bottom: 32px;
}

.cta-instruction {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* 二维码容器 */
.qrcode-container {
    display: inline-block;
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.cta-qrcode {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.qrcode-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* CTA权益列表 */
.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-benefits p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* ========== 响应式设计 Responsive Design ========== */
/* 
 * 平板设备适配（768px以下）
 */
@media (max-width: 768px) {

    /* 调整标题大小 */
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 网格布局改为单列 */
    .value-grid,
    .audience-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 价格卡片堆叠 */
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    /* 调整内边距 */
    .zsxq-section {
        padding: 60px 0;
    }

    .zsxq-hero {
        padding: 80px 0 60px;
    }

    /* 调整容器内边距 */
    .zsxq-container {
        padding: 0 16px;
    }

    /* 调整交付项布局 */
    .delivery-item {
        flex-direction: column;
        padding: 24px;
    }

    /* 调整最终CTA */
    .final-cta-card {
        padding: 48px 24px;
    }

    .cta-highlights {
        gap: 24px;
    }
}

/* 
 * 手机设备适配（480px以下）
 */
@media (max-width: 480px) {

    /* 进一步缩小标题 */
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* 调整按钮大小 */
    .cta-button {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }

    /* 调整二维码大小 */
    .cta-qrcode {
        width: 160px;
        height: 160px;
    }
}

/* ========== 知识星球二维码和按钮样式 ========== */
/* 卡片注释 */
.card-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* 知识星球二维码区域 */
.card-qrcode-section {
    text-align: center;
    margin: 32px 0 24px 0;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.card-qrcode {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    margin: 0 auto 12px auto;
    box-shadow: var(--shadow-md);
}

.qrcode-hint {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* 按钮包装器 - 确保按钮居中 */
.card-button-wrapper {
    text-align: center;
    margin-bottom: 16px;
}

.card-button-wrapper .card-button {
    display: inline-block;
    max-width: 100%;
}

/* 响应式调整二维码大小 */
@media (max-width: 480px) {
    .card-qrcode {
        width: 160px;
        height: 160px;
    }
}