/* FAQ模块样式 - 基于example2.html的设计，所有颜色使用#1b5e20 */

/* FAQ容器 */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 标题区域 - 纯文字设计 */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.faq-badge {
    display: inline-block;
    color: #1b5e20;
    padding: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 24px;
    position: relative;
    text-transform: uppercase;
}

/* FAQ标签装饰点 */
.faq-badge::before,
.faq-badge::after {
    content: '•';
    color: #1b5e20;
    margin: 0 12px;
    font-size: 10px;
    vertical-align: middle;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.faq-title {
    color: #1b5e20;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* 标题强调词 */
.faq-title strong {
    font-weight: 700;
    background: linear-gradient(135deg, #1b5e20 0%, #1b5e20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-subtitle {
    color: #1b5e20;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.8;
}

.faq-subtitle a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #1b5e20;
    transition: all 0.3s ease;
}

.faq-subtitle a:hover {
    color: #1b5e20;
    border-bottom-style: solid;
    opacity: 1;
}

/* 卡片网格 */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    position: relative;
}

/* 卡片样式 - 完全无背景 */
.faq-card {
    padding: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateX(8px);
}

/* 左侧边线 */
.faq-card::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
    #1b5e20 0%,
    rgba(27, 94, 32, 0.11) 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.faq-card:hover::before {
    width: 4px;
    left: -22px;
    background: linear-gradient(180deg,
    #1b5e20 0%,
    #1b5e20 100%);
}

/* 序号设计 - 内联式 */
.faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #1b5e20;
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

/* 序号圆圈 */
.faq-number::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #1b5e20;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.faq-card:hover .faq-number::before {
    transform: scale(1.3);
    opacity: 0.5;
    border-width: 1px;
}

/* 问题样式 */
.faq-question {
    color: #1b5e20;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    transition: color 0.3s ease;
}

.faq-card:hover .faq-question {
    color: #1b5e20;
}

.faq-question-text {
    flex: 1;
}

/* 答案样式 */
.faq-answer {
    color: #1b5e20;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 40px;
    position: relative;
    max-height: 100px;
    overflow: hidden;
    opacity: 0.8;
}

/* 答案渐隐效果 */
.faq-answer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 20px;
    background: linear-gradient(90deg,
    transparent,
    #e8f5e9 20%);
    color: #1b5e20;
}

/* 引号装饰 */
.faq-answer::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: -5px;
    font-size: 24px;
    color: #1b5e20;
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* 底部装饰线 */
.faq-card-divider {
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg,
    transparent,
    rgba(27, 94, 32, 0.1) 20%,
    rgba(27, 94, 32, 0.1) 80%,
    transparent);
}

/* 交互指示器 */
.faq-indicator {
    position: absolute;
    right: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-card:hover .faq-indicator {
    opacity: 0.4;
}

.faq-indicator::before,
.faq-indicator::after {
    content: '';
    position: absolute;
    background: #1b5e20;
    transition: all 0.3s ease;
}

.faq-indicator::before {
    top: 50%;
    left: 2px;
    right: 2px;
    height: 2px;
    transform: translateY(-50%);
}

.faq-indicator::after {
    left: 50%;
    top: 2px;
    bottom: 2px;
    width: 2px;
    transform: translateX(-50%);
}

/* 悬浮提示 */
.faq-card[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 11px;
    color: #1b5e20;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.faq-card:hover[data-tip]::after {
    opacity: 1;
    top: -35px;
}

/* 装饰性元素 */
.faq-pattern {
    position: fixed;
    pointer-events: none;
    opacity: 0.03;
    color: #1b5e20;
    font-size: 300px;
    font-weight: 100;
    z-index: -1;
}

.faq-pattern-1 {
    top: 10%;
    left: -5%;
    transform: rotate(-15deg);
}

.faq-pattern-2 {
    bottom: 10%;
    right: -5%;
    transform: rotate(15deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq-title {
        font-size: 32px !important;
        font-weight: 400 !important;
    }

    .faq-subtitle {
        font-size: 18px !important;
    }

    .faq-question {
        font-size: 18px !important;
        font-weight: 500 !important;
    }

    .faq-answer {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .faq-card::before {
        left: -12px;
    }

    .faq-card:hover {
        transform: translateX(4px);
    }

    .faq-answer {
        padding-left: 32px;
    }

    .faq-pattern {
        display: none;
    }
}

/* 入场动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-card {
    animation: fadeIn 0.8s ease-out backwards;
}

.faq-card:nth-child(1) { animation-delay: 0.1s; }
.faq-card:nth-child(2) { animation-delay: 0.15s; }
.faq-card:nth-child(3) { animation-delay: 0.2s; }
.faq-card:nth-child(4) { animation-delay: 0.25s; }
.faq-card:nth-child(5) { animation-delay: 0.3s; }
.faq-card:nth-child(6) { animation-delay: 0.35s; }

/* 焦点样式 */
.faq-card:focus-within {
    outline: 2px dashed #1b5e20;
    outline-offset: 8px;
    border-radius: 4px;
}