/* =========================================================
   よくある質問ページ
   中文注释：本文件只负责FAQ页面，不会影响其他页面的布局。
   ========================================================= */

.faq-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 7% 1%, rgba(255, 183, 3, .11), transparent 23%),
        linear-gradient(180deg, #fffaf1 0, #f8fafc 35%, #fff 100%);
}

.faq-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 92px;
    border-bottom: 1px solid rgba(15, 23, 42, .05);
}

.faq-hero h1 {
    margin: 16px 0 15px;
    color: #0f172a;
    font-size: clamp(2.45rem, 5vw, 4.15rem);
    font-weight: 900;
    letter-spacing: -.045em;
}

.faq-hero-lead {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 1.06rem;
    line-height: 1.9;
}

.faq-hero-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.faq-hero-orb-one {
    top: -140px;
    right: 4%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 183, 3, .34), transparent 68%);
}

.faq-hero-orb-two {
    bottom: -155px;
    left: 2%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, .18), transparent 68%);
}

.faq-hero-support {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 27px;
    background: rgba(255, 255, 255, .77);
    box-shadow: 0 25px 70px rgba(15, 23, 42, .09);
    backdrop-filter: blur(18px);
}

.faq-hero-support-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    color: #fff;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 15px 34px rgba(251, 133, 0, .27);
    font-size: 1.35rem;
}

.faq-hero-support strong,
.faq-hero-support p {
    display: block;
}

.faq-hero-support strong {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 1.04rem;
    font-weight: 900;
}

.faq-hero-support p {
    margin: 0 0 9px;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.7;
}

.faq-hero-support a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c2410c;
    font-size: .8rem;
    font-weight: 900;
    text-decoration: none;
}

.faq-hero-support a:hover {
    color: #9a3412;
    gap: 9px;
}

/* 中文注释：搜索框上浮到Hero底部，形成页面视觉中心。 */
.faq-search-section {
    position: relative;
    z-index: 3;
    margin-top: -38px;
}

.faq-search-card {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin: 0 auto;
    padding: 16px 18px 16px 24px;
    border-radius: 25px;
    background: rgba(255, 255, 255, .97);
}

.faq-search-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.faq-search-field > i {
    flex: 0 0 auto;
    color: #f97316;
    font-size: 1.3rem;
}

.faq-search-field input {
    min-width: 0;
    width: 100%;
    padding: 11px 0;
    border: 0;
    outline: 0;
    color: #0f172a;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
}

.faq-search-field input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.faq-search-clear {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: #f1f5f9;
}

.faq-search-clear:hover {
    color: #c2410c;
    background: #fff7ed;
}

.faq-search-result {
    min-width: 172px;
    padding: 10px 15px;
    border-left: 1px solid var(--line);
    color: #64748b;
    font-size: .76rem;
    text-align: center;
}

.faq-search-result strong {
    margin-right: 3px;
    color: #ea580c;
    font-size: 1.25rem;
    font-weight: 900;
}

.faq-category-section {
    padding: 28px 0 8px;
}

.faq-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.faq-category-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
    font: inherit;
    font-size: .79rem;
    font-weight: 800;
    transition: .18s ease;
}

.faq-category-button i {
    color: #f97316;
}

.faq-category-button:hover {
    color: #9a3412;
    border-color: rgba(251, 133, 0, .33);
    background: #fff7ed;
    transform: translateY(-1px);
}

.faq-category-button.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 12px 28px rgba(251, 133, 0, .25);
}

.faq-category-button.is-active i {
    color: #fff;
}

.faq-content-section {
    padding: 58px 0 94px;
}

.faq-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
}

.faq-kicker,
.faq-side-kicker {
    color: #ea580c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.faq-list-heading h2,
.faq-popular-card h2,
.faq-contact-card h2 {
    margin: 5px 0 0;
    color: #0f172a;
    font-weight: 900;
}

.faq-list-heading h2 {
    font-size: 1.75rem;
}

.faq-keyboard-hint {
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: .74rem;
    font-weight: 700;
}

.faq-keyboard-hint kbd {
    min-width: 28px;
    padding: 4px 7px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-bottom-width: 3px;
    border-radius: 8px;
    color: #64748b;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
}

.faq-accordion {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    scroll-margin-top: 112px;
}

.faq-item:hover {
    border-color: rgba(251, 133, 0, .25);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.faq-item-heading {
    margin: 0;
}

.faq-question-button {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 21px;
    border: 0;
    color: #0f172a;
    background: transparent;
    text-align: left;
}

.faq-question-button:focus-visible {
    outline: 3px solid rgba(251, 133, 0, .2);
    outline-offset: -3px;
}

.faq-question-mark,
.faq-answer-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 900;
}

.faq-question-mark {
    color: #fff;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 10px 22px rgba(251, 133, 0, .22);
}

.faq-question-content {
    min-width: 0;
}

.faq-question-content small,
.faq-question-content strong {
    display: block;
}

.faq-question-content small {
    margin-bottom: 4px;
    color: #ea580c;
    font-size: .67rem;
    font-weight: 900;
}

.faq-question-content strong {
    color: #0f172a;
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.55;
}

.faq-toggle-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
    transition: .2s ease;
}

.faq-question-button:not(.collapsed) .faq-toggle-icon {
    color: #fff;
    background: #f97316;
    transform: rotate(45deg);
}

.faq-answer-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 21px;
    padding: 20px 0 23px;
    border-top: 1px dashed rgba(15, 23, 42, .1);
}

.faq-answer-mark {
    color: #c2410c;
    background: #fff7ed;
}

.faq-answer-body p {
    margin: 0;
    padding-top: 7px;
    color: #475569;
    font-size: .91rem;
    line-height: 1.85;
}

.faq-side-stack {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.faq-popular-card,
.faq-contact-card {
    padding: 27px;
}

.faq-popular-card h2,
.faq-contact-card h2 {
    font-size: 1.28rem;
}

.faq-popular-links {
    display: grid;
    gap: 8px;
    margin-top: 19px;
}

.faq-popular-links a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 15px;
    color: #334155;
    background: #f8fafc;
    text-decoration: none;
    transition: .18s ease;
}

.faq-popular-links a:hover {
    color: #9a3412;
    border-color: rgba(251, 133, 0, .25);
    background: #fff7ed;
    transform: translateX(2px);
}

.faq-popular-links a > span {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ea580c;
    background: #fff7ed;
}

.faq-popular-links strong {
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.55;
}

.faq-popular-links > a > i {
    color: #cbd5e1;
    font-size: .77rem;
}

.faq-contact-card {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 183, 3, .2), transparent 32%),
        rgba(255, 255, 255, .95);
}

.faq-contact-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 15px 33px rgba(251, 133, 0, .25);
    font-size: 1.35rem;
}

.faq-contact-card p {
    margin: 12px 0 19px;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.75;
}

.faq-contact-card small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 700;
}

.faq-empty-state {
    padding: 55px 25px;
    text-align: center;
}

.faq-empty-state > span {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 22px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 1.6rem;
}

.faq-empty-state h2 {
    font-size: 1.25rem;
    font-weight: 900;
}

.faq-empty-state p {
    margin: 8px 0 20px;
    color: #64748b;
}

@media (max-width: 991px) {
    .faq-side-stack {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .faq-hero {
        padding: 62px 0 78px;
    }

    .faq-hero h1 {
        font-size: 2.45rem;
    }

    .faq-search-section {
        margin-top: -31px;
    }

    .faq-search-card {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 14px 16px;
        border-radius: 21px;
    }

    .faq-search-result {
        min-width: 0;
        padding: 8px 0 1px;
        border-top: 1px solid var(--line);
        border-left: 0;
        text-align: left;
    }

    .faq-category-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 3px 2px 9px;
        scrollbar-width: none;
    }

    .faq-category-list::-webkit-scrollbar {
        display: none;
    }

    .faq-category-button {
        flex: 0 0 auto;
    }

    .faq-content-section {
        padding: 42px 0 68px;
    }

    .faq-question-button {
        gap: 12px;
        padding: 17px 16px;
    }

    .faq-question-mark,
    .faq-answer-mark {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
        border-radius: 12px;
    }

    .faq-toggle-icon {
        width: 31px;
        height: 31px;
    }

    .faq-answer-body {
        margin: 0 16px;
        padding: 17px 0 20px;
    }

    .faq-side-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .faq-question-button {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .faq-toggle-icon {
        grid-column: 2;
        justify-self: end;
        margin-top: -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-category-button,
    .faq-item,
    .faq-toggle-icon,
    .faq-popular-links a {
        transition: none;
    }
}
