/* ============================================================
   帮助中心 / 常见问题样式 faq.css
   ============================================================ */

:root {
    --primary: #F5222D;
    --primary-light: #ff4d4f;
    --primary-gradient: linear-gradient(135deg, #F5222D 0%, #ff7875 100%);
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
}

body {
    background: #f5f5f7;
    min-height: 100vh;
}

/* ===== 主内容区 ===== */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===== FAQ 内容 ===== */
.faq-main {
    padding: 60px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 手风琴 */
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #fafbfc;
    transition: all 0.3s ease;
    overflow: hidden;
}
.faq-item:hover {
    border-color: #fecaca;
}
.faq-item[open] {
    background: #fff;
    border-color: #fecaca;
    box-shadow: 0 8px 24px -12px rgba(245, 34, 45, 0.2);
}
.faq-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
    user-select: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary:hover {
    color: var(--primary);
}
.faq-item summary::before {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245,34,45,0.1) 0%, rgba(255,120,117,0.1) 100%);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.faq-item[open] summary::before {
    content: '−';
    background: var(--primary-gradient);
    color: #fff;
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 24px 24px 64px;
    color: #555;
    font-size: 14px;
    line-height: 1.9;
}
.faq-answer p {
    margin: 0 0 12px;
}
.faq-answer p:last-child {
    margin-bottom: 0;
}
.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.faq-answer a:hover {
    text-decoration: underline;
}

/* ===== 底部联系提示 ===== */
.faq-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 15px;
}
.faq-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.faq-footer a:hover {
    text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .faq-main {
        padding: 40px 5%;
    }
    .faq-card {
        padding: 24px;
    }
    .faq-item summary {
        padding: 16px 16px;
        font-size: 14px;
    }
    .faq-answer {
        padding: 0 16px 20px 16px;
        font-size: 13px;
    }
    .faq-item summary::before {
        width: 24px;
        height: 24px;
    }
}
