/* ============================================================
   easyliq-faq.css - easyLiQ FAQ 页面
   ============================================================ */

.faq-page {
    padding: 56px 20px 80px;
    color: #111;
    line-height: 1.75;
    font-size: 17px;
}

.faq-page__inner {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .faq-page__inner {
        max-width: 1200px;
    }
}

.faq-page__hero {
    text-align: center;
    margin-bottom: 48px;
}

.faq-page__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.faq-page__subtitle {
    margin: 0;
    color: rgba(0, 0, 0, 0.55);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    max-width: 640px;
    margin-inline: auto;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-category__title {
    margin: 0 0 20px;
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #FF481F;
    width: fit-content;
}

/* FAQ Accordion List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.faq-item[open] {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: #111;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
    content: "−";
    background: var(--color-primary, #ff481f);
    color: #fff;
}

.faq-item__answer {
    padding: 0 24px 20px;
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-item__answer p {
    margin: 0 0 14px;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

.faq-item__answer ul,
.faq-item__answer ol {
    margin: 0 0 14px;
    padding-left: 1.25rem;
}

.faq-item__answer li {
    margin-bottom: 6px;
}

.faq-item__answer li:last-child {
    margin-bottom: 0;
}

.faq-item__answer a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.faq-item__answer a:hover {
    color: var(--color-primary, #ff481f);
}

.faq-muted {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
}

.faq-checklist {
    list-style: none;
    padding-left: 0;
}

.faq-checklist li {
    position: relative;
    padding-left: 1.5rem;
}

.faq-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary, #ff481f);
    font-weight: 700;
}

.faq-flavor-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 24px;
    list-style: none;
    padding-left: 0;
}

.faq-flavor-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 4px;
}

.faq-flavor-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary, #ff481f);
}

@media (min-width: 768px) {
    .faq-flavor-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tables */
.faq-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.faq-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.faq-table th,
.faq-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e7e7e7;
    vertical-align: top;
}

.faq-table th {
    background: #f7f7f7;
    font-weight: 700;
    white-space: nowrap;
}

.faq-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Warning / Notice blocks */
.faq-warning {
    margin: 16px 0;
    padding: 16px 20px;
    background: #fff8f0;
    border-left: 4px solid var(--color-primary, #ff481f);
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
}

.faq-warning p {
    margin: 0;
}

/* Contact CTA */
.faq-contact {
    background: #f7f7f7;
    color: #111;
    border: 1px solid #e7e7e7;
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    margin-top: 48px;
}

.faq-contact__title {
    margin: 0 0 12px;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.faq-contact__desc {
    margin: 0 0 28px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 1rem;
}

.faq-contact__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.faq-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-contact__link:hover {
    background: var(--color-primary, #ff481f);
    border-color: var(--color-primary, #ff481f);
    color: #fff;
}

/* ========== 响应式 ========== */

@media (max-width: 768px) {
    .faq-page {
        padding: 40px 16px 64px;
        font-size: 16px;
    }

    .faq-categories {
        gap: 36px;
    }

    .faq-category__title {
        margin-bottom: 16px;
    }

    .faq-item__question {
        padding: 16px 18px;
        font-size: 0.9375rem;
    }

    .faq-item__answer {
        padding: 0 18px 16px;
        font-size: 0.875rem;
    }

    .faq-flavor-list {
        grid-template-columns: 1fr;
    }

    .faq-contact {
        padding: 32px 24px;
        border-radius: 16px;
        margin-top: 36px;
    }

    .faq-contact__links {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-contact__link {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .faq-page {
        font-size: 15px;
    }

    .faq-item__question {
        font-size: 0.875rem;
    }

    .faq-item__answer {
        font-size: 0.8125rem;
    }

    .faq-table {
        min-width: 360px;
        font-size: 0.875rem;
    }

    .faq-table th,
    .faq-table td {
        padding: 10px 12px;
    }
}
