/* faq.css - Clash 故障排查中心专属样式 (紫色基调) */

.faq-hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 20px 40px;
}

.faq-hero .badge {
    display: inline-block;
    background-color: #f5f3ff;
    color: #7c3aed;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #ddd6fe;
    margin-bottom: 22px;
}

.faq-hero h1 {
    font-size: 2.5rem;
    color: #0f0a2e;
    line-height: 1.35;
    margin-bottom: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.faq-hero .hero-desc {
    font-size: 1.06rem;
    color: #475569;
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: justify;
    text-indent: 2em;
    line-height: 1.75;
}

.faq-hero-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    max-width: 500px;
    width: 100%;
    border: 2px solid #ddd6fe;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(124,58,237,0.08);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    outline: none;
    color: #1e1b4b;
}

.search-box button {
    background: #7c3aed;
    border: none;
    color: #fff;
    padding: 0 22px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #6d28d9;
}

/* 分类卡片 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.category-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 8px 18px rgba(124,58,237,0.08);
    transform: translateY(-2px);
}

.cat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.category-card h3 {
    font-size: 1rem;
    color: #0f0a2e;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: #64748b;
    text-indent: 0;
    margin: 0;
}

/* 排查向导 */
.wizard {
    background: #faf9ff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    margin: 28px 0;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-question {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.wiz-num {
    width: 32px;
    height: 32px;
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.wizard-question p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f0a2e;
    text-indent: 0;
    margin: 0;
}

.wizard-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 46px;
}

.wiz-option {
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #4c1d95;
    cursor: pointer;
    transition: all 0.2s;
}

.wiz-option:hover {
    background: #ede9fe;
    border-color: #7c3aed;
    color: #4c1d95;
}

.wizard-result {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #ddd6fe;
}

.wizard-result h4 {
    font-size: 1.2rem;
    color: #0f0a2e;
    margin-bottom: 12px;
}

#resultContent p {
    font-size: 0.95rem;
    color: #334155;
    text-indent: 0;
    margin-bottom: 8px;
}

.reset-wizard {
    margin-top: 14px;
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 8px 18px;
    cursor: pointer;
    color: #475569;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.reset-wizard:hover {
    background: #f1f5f9;
}

/* 错误代码表 */
.error-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.error-table thead {
    background: #f5f3ff;
}

.error-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #0f0a2e;
    white-space: nowrap;
}

.error-table td {
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    color: #334155;
}

.error-table tbody tr:hover {
    background: #faf9ff;
}

/* 平台问题卡片 */
.platform-issues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.platform-issue {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.platform-issue:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.platform-issue h4 {
    font-size: 1.1rem;
    color: #0f0a2e;
    margin-bottom: 12px;
}

.platform-issue ul {
    list-style: none;
}

.platform-issue li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 10px;
}

.platform-issue li strong {
    color: #1e1b4b;
}

/* 手风琴 FAQ */
.faq-accordion {
    margin: 28px 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #faf9ff;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f0a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f5f3ff;
}

.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    color: #7c3aed;
    font-weight: 400;
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: #334155;
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    text-indent: 0;
    margin-bottom: 8px;
}

/* 支持链接 */
.support-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.support-card {
    background: #faf9ff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.support-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.support-card span {
    font-size: 2rem;
    margin-bottom: 8px;
}

.support-card strong {
    font-size: 1rem;
    color: #0f0a2e;
    margin-bottom: 4px;
}

.support-card small {
    font-size: 0.8rem;
    color: #64748b;
}

/* 响应式 */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 1.8rem;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .wizard-options {
        margin-left: 0;
    }
    .platform-issues {
        grid-template-columns: 1fr;
    }
}