﻿/* ==========================================================================
   FAQ 页面样式（EN / CN 共用）
   仅被 faq.aspx / cn/faq.aspx 引用，避免影响其它页面。
   ========================================================================== */

.faq-page {
    --faq-gold: #c8a15a;
    --faq-gold-dark: #a8813d;
    --faq-ink: #1d1d1d;
    --faq-gray: #6b6b6b;
    --faq-line: #e6e2da;
    --faq-bg: #fbfaf8;
}

/* ---------- Hero ---------- */
.faq-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: #2a2a2a url("/uploadfile/faq/faq-hero.jpg") center center / cover no-repeat;
    padding: 90px 20px 70px;
}

.faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 100%);
}

.faq-hero__inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}

.faq-hero h1 {
    margin: 0 0 14px;
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.faq-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,.88);
    text-wrap: balance; /* 避免最后一行只剩 "Questions." 这类孤字 */
}

.faq-hero p + p {
    margin-top: 8px;
}

.faq-hero__btn {
    display: inline-block;
    margin-top: 26px;
    padding: 14px 34px;
    border: 1px solid var(--faq-gold);
    background: var(--faq-gold);
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.faq-hero__btn:hover,
.faq-hero__btn:focus {
    background: transparent;
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ---------- 搜索条（不吸顶） ---------- */
.faq-searchbar {
    position: relative;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--faq-line);
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

.faq-searchbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-searchbar__input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--faq-ink);
    background: var(--faq-bg);
    border: 1px solid var(--faq-line);
    border-radius: 2px;
    outline: none;
    transition: border-color .2s ease;
}

.faq-searchbar__input:focus {
    border-color: var(--faq-gold);
}

.faq-searchbar__btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--faq-line);
    background: #fff;
    color: var(--faq-gray);
    font-size: 20px;
    line-height: 1;
    border-radius: 2px;
    cursor: pointer;
    display: none;
}

.faq-searchbar__btn.is-visible {
    display: block;
}

.faq-searchbar__hint {
    font-size: 13px;
    color: var(--faq-gray);
    white-space: nowrap;
}

/* ---------- 布局 ---------- */
.faq-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 20px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.faq-side {
    position: static;
}

.faq-side__title {
    margin: 0 0 18px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a9a9a;
    font-weight: 600;
}

.faq-side__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--faq-line);
}

.faq-side__list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0 11px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}

.faq-side__list a:hover {
    color: var(--faq-gold-dark);
}

.faq-side__list a.is-active {
    color: var(--faq-gold-dark);
    border-left-color: var(--faq-gold);
    font-weight: 600;
}

/* ---------- 分组 ---------- */
.faq-group {
    display: none;
    margin: 0;
}

.faq-group.is-active {
    display: block;
}

/* 搜索时：所有有命中的分类一起展示（不受 Tab 限制） */
.faq-page.is-searching .faq-group {
    display: block;
    margin-bottom: 44px;
}

.faq-group__head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--faq-line);
}

.faq-group__head h2 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.3;
    color: var(--faq-ink);
    font-weight: 500;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
}

.faq-group__head p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--faq-gray);
}

/* ---------- 问答 ---------- */
.faq-item {
    border-bottom: 1px solid var(--faq-line);
}

.faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 0;
    cursor: pointer;
    list-style: none;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__no {
    flex: 0 0 32px;
    color: #b9ab92;
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: .5px;
}

.faq-item__text {
    flex: 1;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--faq-ink);
    font-weight: 500;
}

.faq-item summary:hover .faq-item__text {
    color: var(--faq-gold-dark);
}

.faq-item__icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #8c8c8c;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease;
}

.faq-item__icon::before {
    width: 12px;
    height: 1.5px;
}

.faq-item__icon::after {
    width: 1.5px;
    height: 12px;
}

.faq-item[open] .faq-item__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__a {
    padding: 0 32px 22px 46px;
    font-size: 14.5px;
    line-height: 1.85;
    color: #555;
}

/* ---------- 图片答案 ---------- */
.faq-a-imgs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.faq-a-imgs.count-1 {
    grid-template-columns: minmax(0, 1fr);
}

.faq-a-imgs.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-a-imgs a {
    display: block;
    border: 1px solid var(--faq-line);
    background: #fff;
    overflow: hidden;
}

.faq-a-imgs img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- 空分类 / 搜索无结果 ---------- */
.faq-empty {
    padding: 10px 0 26px;
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.8;
}

.faq-noresult {
    display: none;
    padding: 60px 0 80px;
    text-align: center;
    color: var(--faq-gray);
    font-size: 15px;
}

.faq-noresult.is-visible {
    display: block;
}

.faq-group[hidden],
.faq-item[hidden] {
    display: none !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
    .faq-hero {
        min-height: 260px;
        padding: 70px 18px 54px;
    }

    .faq-hero h1 {
        font-size: 32px;
    }

    .faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 30px 18px 10px;
    }

    .faq-side {
        position: static;
        margin: 0 -18px;
        padding: 0 18px 12px;
        background: #fff;
        border-bottom: 1px solid var(--faq-line);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .faq-side__title {
        display: none;
    }

    .faq-side__list {
        display: flex;
        gap: 8px;
        border-left: 0;
        white-space: nowrap;
    }

    .faq-side__list li {
        flex: 0 0 auto;
    }

    .faq-side__list a {
        margin: 0;
        padding: 8px 14px;
        border: 1px solid var(--faq-line);
        border-radius: 999px;
        font-size: 13px;
    }

    .faq-side__list a.is-active {
        border-color: var(--faq-gold);
        background: #fdf8ee;
    }

    .faq-group__head h2 {
        font-size: 22px;
    }

    .faq-item__a {
        padding: 0 0 20px 0;
    }

    .faq-a-imgs,
    .faq-a-imgs.count-2,
    .faq-a-imgs.count-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- 底部询价表单 ---------- */
html {
    scroll-behavior: smooth;
}

.faq-quote {
    scroll-margin-top: 90px;
    background: #f2f0ec;
    border-top: 1px solid #e5e1d9;
    padding: 64px 20px 72px;
}

.faq-quote__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.faq-quote h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 400;
    color: #2f2b26;
    font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
}

.faq-quote__intro {
    margin: 0 0 30px;
    font-size: 14px;
    color: #6f6a63;
}

.faq-quote__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 44px;
}

.faq-field--full {
    grid-column: 1 / -1;
}

.faq-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #3f3b35;
}

.faq-field .req {
    color: #c0392b;
}

/* 电话：区号与号码直接手填 */
.faq-phone {
    display: flex;
}

.faq-phone .faq-input {
    flex: 1 1 auto;
    min-width: 0;
}

.faq-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dcd8d0;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.faq-input:focus {
    outline: none;
    border-color: #9c7b3f;
}

.faq-input--area {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

.faq-quote__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.faq-quote__btn {
    display: inline-block;
    height: 48px;
    padding: 0 34px;
    border: 1px solid #9c7b3f;
    background: #9c7b3f;
    color: #fff;
    font-size: 14px;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.faq-quote__btn:hover {
    background: transparent;
    color: #9c7b3f;
}

.faq-quote__note {
    font-size: 12px;
    color: #8a857d;
}

/* 验证码行 */
.faq-code {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-code .faq-input {
    flex: 0 1 240px;
    max-width: 240px;
}

.faq-code__img {
    height: 46px;
    width: auto;
    border: 1px solid #dcd8d0;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 767px) {
    .faq-quote {
        padding: 44px 16px 52px;
    }

    .faq-quote__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-quote h2 {
        font-size: 26px;
    }
}
