/* 定义主题色变量 —— rgba(28,184,157,1) */
:root {
    --primary: rgba(28, 184, 157, 1);
    --primary-light: rgba(28, 184, 157, 0.1);
    --primary-soft: rgba(138, 205, 255, 0.2);
    --primary-dim: rgba(28, 184, 157, 0.7);
}

/* 卡片容器 — 干净、现代、微阴影 */
.faq-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 35px -8px rgba(0, 20, 30, 0.15), 0 5px 12px rgba(0, 0, 0, 0.05);
    padding: 32px 30px 28px 30px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(2px);
}

/* 头部区域 */
.faq-header {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-header h2 {
    font-size: 1.9rem;
    font-weight: 620;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #1a2e3f 0%, #0f2a38 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faq-header h2 i {
    color: var(--primary);
    font-size: 2rem;
    background: var(--primary-light);
    padding: 8px;
    border-radius: 50%;
    -webkit-text-fill-color: var(--primary);  /* 覆盖渐变，让图标保持主题色 */
    background-clip: unset;
}

/* 装饰下划线 (主题色) */
.header-underline {
    height: 4px;
    width: 70px;
    background: var(--primary);
    border-radius: 4px;
    margin-top: 8px;
    transition: width 0.3s ease;
}

.faq-header:hover .header-underline {
    width: 110px;
}

.question-count {
    font-size: 0.9rem;
    color: #5f6c7a;
    background: #f0f4f8;
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 450;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-count i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* 问答列表 */
.qa-list {
    display: flex;
    flex-direction: column;
}

/* 每个问答项 */
.qa-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, border-color 0.2s;
    border-radius: 12px;         /* 让悬浮背景更柔和 */
    margin: 0 -6px;               /* 抵消内边距视觉 */
    padding-left: 6px;
    padding-right: 6px;
}

.qa-item:first-child {
    padding-top: 4px;             /* 保持与顶部间距舒适 */
}

.qa-item:last-child {
    border-bottom: none;
    /*padding-bottom: 4px;*/
}

/* 悬浮效果 —— 极浅主题色背景 */
.qa-item:hover {
    background-color: var(--primary-soft);
    border-bottom-color: rgba(28, 184, 157, 0.2);
}

/* 问题和答案公用行 flex 布局 */
.qa-question, .qa-answer {
    display: flex;
    gap: 14px;
    align-items: flex-start;      /* 多行文本时图标顶端对齐 */
}

.qa-question {
    margin-bottom: 10px;
    font-weight: 550;
}

.qa-answer {
    margin-left: 0;                /* 与问题对齐 */
}

/* 图标样式 — 全部基于主题色演绎 */
.qa-question i {
    color: var(--primary);
    font-size: 1.4rem;
    width: 1.8rem;                /* 固定宽度与fa-fw协同，但保证自定义宽度 */
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 3px rgba(28,184,157,0.2));
    transition: transform 0.15s;
}

.qa-answer i {
    color: var(--primary-dim);    /* 稍柔和的主题色，区分问答 */
    font-size: 1.3rem;
    width: 1.8rem;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.qa-item:hover i {
    transform: scale(1.03);
}

/* 文字区域 */
.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1b2b3f;
    line-height: 1.4;
    flex: 1;
    /*border-bottom: 1px solid rgba(28,184,157,0.80);*/
}

.answer-text {
    font-size: 1rem;
    color: #3e4e5d;
    line-height: 1.6;
    flex: 1;
    background: #f8fafd;
    padding: 12px 16px;
    border-radius: 14px;
    margin-top: -2px;              /* 细微提升与图标的视觉对齐 */
    border: 1px solid rgba(0,0,0,0.02);
}

/* 为了让答案更柔和，设置一个极小内边距 */
.qa-answer .answer-text {
    background: #f9fcff;
    border: 1px solid rgba(28, 184, 157, 0.1);
}

/* 点缀：答案区域微弱的主题色左边条 */
.qa-answer .answer-text {
    border-left: 3px solid var(--primary-color);
    border-radius: 14px 8px 8px 14px;
}

/* 更精致的小交互 */
.qa-question .question-text {
    transition: color 0.15s;
}

.qa-item:hover .question-text {
    color: #0f2a38;
}

/* 底部额外链接 (可选) — 保持模块呼吸感 */
.faq-footer {
    margin-top: 28px;
    text-align: right;
    border-top: 1px dashed rgba(28, 184, 157, 0.3);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s, color 0.1s;
    background: rgba(28,184,157,0.04);
    padding: 8px 18px;
    border-radius: 60px;
    border: 1px solid rgba(28,184,157,0.2);
    font-size: 0.95rem;
}

.faq-footer a i {
    font-size: 0.9rem;
}

.faq-footer a:hover {
    gap: 12px;
    background: rgba(28,184,157,0.1);
    border-color: var(--primary);
}

.footer-note {
    font-size: 0.9rem;
    color: #6f7d8c;
}

/* 响应式 */
@media (max-width: 550px) {
    .faq-card {
        padding: 22px 18px;
    }
    .faq-header h2 {
        font-size: 1.6rem;
    }
    .qa-question {
        gap: 10px;
    }
    .qa-answer {
        gap: 10px;
    }
    .qa-question i {
        font-size: 1.2rem;
        width: 1.5rem;
    }
    .qa-answer i {
        font-size: 1.1rem;
        width: 1.5rem;
    }
    .answer-text {
        padding: 10px 12px;
    }
}

@media (max-width: 380px) {
    .faq-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 模拟卡片内部精致点缀 —— 可选的额外细节 */
.faq-card {
    position: relative;
}
.faq-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(28,184,157,0.03), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 确保卡片内容在伪元素上方 */
.faq-header, .qa-list, .faq-footer {
    position: relative;
    z-index: 2;
}