/* ============================================================
   faq.css — 常见问题展示页（faq.html）专属样式
   ============================================================ */

/* ---- section-1 页首 ---- */
.section-1 {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 5rem 0 3rem;
}

.section-1 .content-txt {
    text-align: left;
    margin-left: 0;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #999;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--moki-accent);
}

.breadcrumb a[aria-current="page"] {
    color: var(--moki-accent);
}

.breadcrumb > .iconfont {
    font-size: 0.7rem;
    color: #555;
}

/* 页首文案 */
.section-1 .content-txt .highlight.des {
    max-width: 40rem;
    margin: 1.5rem 0 0;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
}

/* ---- section-2 常见问题主体 ---- */
.section-2 {
    padding: 2rem 0 4rem;
}

.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}

/* 侧边分类导航 */
.faq-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.faq-sidebar-title {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.faq-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.faq-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    border-left: 2px solid transparent;
    color: #aaa;
    font-size: 0.92rem;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.faq-cat-link:hover {
    color: var(--moki-accent);
    background-color: rgba(123, 187, 189, 0.05);
}

.faq-cat-link.active {
    color: var(--moki-accent);
    border-left-color: var(--moki-accent);
    background-color: rgba(123, 187, 189, 0.08);
}

.faq-cat-link .iconfont {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-cat-link:hover .iconfont,
.faq-cat-link.active .iconfont {
    opacity: 1;
    transform: translateX(0);
}

/* 移动端分类胶囊（横向滚动） */
.faq-cat-chips {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.6rem;
    margin: 1.5rem 0 0;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.faq-cat-chips::-webkit-scrollbar {
    display: none;
}

.faq-cat-chips .faq-cat-link {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* 分类区块 */
.faq-category {
    scroll-margin-top: 110px;
}

.faq-category + .faq-category {
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-category-header {
    margin-bottom: 1.5rem;
}

.faq-category-header h2 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.faq-category-header .title-en {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: var(--moki-accent);
}

/* 问答条目 */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item + .faq-item {
    margin-top: 0.9rem;
}

.faq-item.open {
    border-color: rgba(115, 223, 221, 0.45);
    box-shadow: 0 6px 24px rgba(123, 187, 189, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #fff;
    font-size: 0.98rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--moki-accent);
}

.faq-q-mark,
.faq-a-mark {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-montserrat);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
}

.faq-q-mark {
    color: var(--moki-accent);
    border: 1px solid rgba(115, 223, 221, 0.4);
    background: rgba(115, 223, 221, 0.08);
}

.faq-q-text {
    flex: 1;
    line-height: 1.5;
}

.faq-q-icon {
    flex: 0 0 auto;
    font-size: 0.9rem;
    color: #888;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-q-icon {
    transform: rotate(180deg);
    color: var(--moki-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1.4rem 1.3rem;
}

.faq-a-mark {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.faq-answer-content {
    flex: 1;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.9;
}

.faq-answer-content p {
    margin-bottom: 0.5rem;
}

.faq-answer-content strong {
    color: var(--moki-accent);
    font-weight: 500;
}

.faq-answer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-answer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.15rem 0;
}

.faq-answer-list li::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--moki-accent);
    margin-top: 0.7em;
}

/* ---- section-3 联系 CTA ---- */
.section-3 {
    padding: 3rem 0 5rem;
}

.cta-box {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 3.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.cta-box h2 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cta-box .title-en {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: var(--moki-accent);
}

.cta-box .highlight.des {
    max-width: 34rem;
    margin: 1.25rem auto 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #bbb;
}

.cta-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-btns .title-btn {
    padding: 0.7rem 2.2rem;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btns .title-btn:hover {
    background-color: var(--moki-accent);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    color: #ddd;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--moki-accent);
    color: var(--moki-accent);
    background-color: rgba(115, 223, 221, 0.06);
}

.btn-ghost .iconfont {
    font-size: 0.8rem;
}

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板横屏 / 小桌面 */
@media screen and (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-sidebar {
        display: none;
    }

    .faq-cat-chips {
        display: flex;
    }
}

/* 平板竖屏 / 大屏手机 */
@media screen and (max-width: 768px) {
    .section-1 {
        min-height: 40vh;
        padding: 4rem 0 2rem;
    }

    .faq-question {
        font-size: 0.92rem;
        padding: 1rem 1.15rem;
    }

    .faq-answer-content {
        font-size: 0.88rem;
    }

    .faq-category-header h2 {
        font-size: 1.3rem;
    }
}

/* 手机横屏 / 中屏手机 */
@media screen and (max-width: 640px) {
    .section-1 {
        min-height: 35vh;
        padding: 3rem 0 1.5rem;
    }

    .breadcrumb {
        margin-bottom: 1.5rem;
    }

    .faq-question {
        gap: 0.8rem;
    }

    .faq-q-mark,
    .faq-a-mark {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.8rem;
    }

    .faq-answer-inner {
        padding: 0 1.15rem 1.1rem;
    }

    .cta-box {
        padding: 2.5rem 1.25rem;
    }
}

/* 小屏手机 */
@media screen and (max-width: 440px) {
    .section-1 {
        min-height: 30vh;
        padding: 2.5rem 0 1rem;
    }

    .section-1 .content-txt .highlight.des {
        font-size: 0.9rem;
    }

    .faq-q-text {
        font-size: 0.9rem;
    }

    .faq-answer-content {
        font-size: 0.85rem;
    }

    .cta-btns .title-btn,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}
