/* faq.css - 常见问题页专属样式 */
:root {
    --primary: #4f46e5;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-sub: #64748b;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* 顶部渐变背景 */
.header-bg {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding-bottom: 40px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

/* FAQ 列表容器 */
.faq-container {
    max-width: 768px;
    margin: -30px auto 80px; /* 向上浮动，压住Header */
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

/* 问题卡片 */
.faq-item {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* 问题标题栏 */
.faq-question {
    padding: 18px 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.faq-question i {
    color: #cbd5e1;
    transition: transform 0.3s ease;
}

/* 激活状态 */
.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* 答案区域 (默认隐藏) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
    border-top: 1px dashed #f1f5f9;
    padding-top: 15px;
}

/* 底部导航高亮修正 */
.nav-active {
    color: var(--primary) !important;
}