/* ===== FAQ Page Styles ===== */

.faq-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 40px;
}


/* --- FAQ List (item container) --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- FAQ Item (card) --- */
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* --- Question Button --- */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: "Microsoft YaHei", "PingFang SC", "sans-serif";
    font-size: 1.7rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.faq-question:hover {
    background: #fdfaf0;
}
.faq-question:focus-visible {
    outline: 2px solid #cc9e00;
    outline-offset: -2px;
    border-radius: 12px;
}
.faq-item.is-open .faq-question {
    color: #cc9e00;
}

/* --- Icon (question mark SVG) --- */
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #cc9e00;
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-icon svg {
    display: block;
}

/* --- Question text --- */
.faq-question-text {
    flex: 1;
}

/* --- Chevron indicator --- */
.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, color 0.3s;
}
.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: #cc9e00;
}

/* --- Answer (collapsible) --- */
.faq-answer {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease;
}
.faq-answer-inner {
    overflow: hidden;
}

/* JS 激活后默认折叠 */
.has-js .faq-answer {
    grid-template-rows: 0fr;
}
.has-js .faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

/* --- Answer inner padding --- */
.faq-answer-inner {
    padding: 0 24px 0 60px;
}
.faq-item.is-open .faq-answer-inner {
    padding: 0 24px 20px 60px;
}

/* Answer content typography */
.faq-answer-inner p {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #555;
}
.faq-answer-inner p:last-child {
    margin-bottom: 0;
}
.faq-answer-inner ul,
.faq-answer-inner ol {
    margin: 0 0 12px;
    padding-left: 24px;
}
.faq-answer-inner ul:last-child,
.faq-answer-inner ol:last-child {
    margin-bottom: 0;
}
.faq-answer-inner li {
    margin-bottom: 6px;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #555;
}
.faq-answer-inner strong {
    color: #333;
    font-weight: 600;
}
.faq-answer-inner a {
    color: #cc9e00;
    text-decoration: none;
}
.faq-answer-inner a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .faq-page {
        padding: 0 0 30px;
    }
    .faq-list {
        gap: 8px;
    }
    .faq-item {
        border-radius: 8px;
    }
    .faq-question {
        padding: 14px 16px;
        font-size: 1.5rem;
        gap: 10px;
    }
    .faq-answer-inner {
        padding: 0 16px 0 46px;
    }
    .faq-item.is-open .faq-answer-inner {
        padding: 0 16px 16px 46px;
    }
    .faq-icon {
        width: 20px;
        height: 20px;
    }
    .faq-chevron {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .faq-page {
        padding: 0 0 20px;
    }
    .faq-list {
        gap: 6px;
    }
    .faq-item {
        border-radius: 6px;
    }
    .faq-question {
        font-size: 1.4rem;
        padding: 12px 12px;
        gap: 8px;
    }
    .faq-answer-inner {
        padding: 0 12px 0 40px;
    }
    .faq-item.is-open .faq-answer-inner {
        padding: 0 12px 12px 40px;
    }
    .faq-answer-inner p,
    .faq-answer-inner li {
        font-size: 1.35rem;
    }
    .faq-icon {
        width: 18px;
        height: 18px;
    }
    .faq-chevron {
        width: 14px;
        height: 14px;
    }
}
