.page-template-page-faq,
.page-template-page-faq .site-main,
.page-template-page-faq #main,
.page-template-page-faq .entry-content,
.page-template-page-faq article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-template-page-faq {
    --content-vertical-spacing: 0px;
}

.page-template-page-faq .hero-section,
.page-template-page-faq .page-title,
.page-template-page-faq .ct-sidebar {
    display: none !important;
}

.page-template-page-faq .site-main .ct-container,
.page-template-page-faq .site-main .ct-container-full,
.page-template-page-faq .site-main [class*="ct-container"],
.page-template-page-faq #main .ct-container,
.page-template-page-faq #main .ct-container-full,
.page-template-page-faq #main [class*="ct-container"] {
    max-width: none;
    width: 100%;
    padding-inline: 0;
}

.faq-page {
    --faq-accent: #F07122;
    --faq-bg: #F4F2EF;
    --faq-ink: #17140F;
    --faq-muted: #6E665E;
    --faq-line: #E2DCD4;
    --faq-chip: #D8D1C8;
    background: var(--faq-bg);
    color: var(--faq-ink);
    min-height: 70vh;
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.faq-page a {
    color: #E35205;
    text-decoration: none;
}

.faq-page a:hover {
    color: #B33D00;
    text-decoration: underline;
}

.faq-hero {
    position: relative;
    overflow: hidden;
    background: #17140F;
    color: #fff;
    padding: 56px 24px 64px;
}

.faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(115deg, rgba(240, 113, 34, 0.14) 0 2px, transparent 2px 13px);
    pointer-events: none;
}

.faq-hero.has-image {
    background-image: var(--faq-hero-image);
    background-size: cover;
    background-position: center;
}

.faq-hero.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 20, 15, 0.62);
}

.faq-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-hero__eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.26em;
    color: var(--faq-accent);
    margin-bottom: 14px;
}

.faq-hero__title {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    color: #fff;
}

.faq-hero__desc {
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
    max-width: 40em;
    color: rgba(255, 255, 255, 0.72);
}

.faq-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 96px;
}

.faq-toolbar {
    background: #fff;
    border: 1px solid var(--faq-line);
    border-radius: 4px;
    margin-top: -28px;
    padding: 22px;
    box-shadow: 0 18px 40px -28px rgba(23, 20, 15, 0.45);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-page:not(.has-hero) .faq-toolbar {
    margin-top: 28px;
}

.faq-search {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--faq-chip);
    border-radius: 3px;
    padding: 0 16px;
    background: #FBFAF8;
}

.faq-search__icon {
    font-size: 17px;
    color: #9A938C;
}

.faq-search__input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    padding: 15px 0;
    font-size: 15px;
    color: var(--faq-ink);
    font-family: inherit;
    box-shadow: none;
}

.faq-search__input::placeholder {
    color: #9A938C;
}

.faq-search__clear {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--faq-muted);
    padding: 6px;
    font-family: inherit;
}

.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-chip {
    border: 1px solid var(--faq-chip);
    background: #fff;
    color: #4A433C;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 140ms ease;
}

.faq-chip.is-active {
    border-color: var(--faq-accent);
    background: var(--faq-accent);
    color: #fff;
}

.faq-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 18px;
}

.faq-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #8A8178;
}

.faq-collapse {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--faq-muted);
    font-family: inherit;
    padding: 0;
}

.faq-empty {
    background: #fff;
    border: 1px dashed var(--faq-chip);
    border-radius: 4px;
    padding: 56px 28px;
    text-align: center;
}

.faq-empty__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-empty__body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--faq-muted);
}

.faq-groups {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-group.is-hidden {
    display: none;
}

.faq-group__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.faq-group__name {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.005em;
}

.faq-group__rule {
    flex: 1;
    height: 1px;
    background: var(--faq-line);
}

.faq-group__en {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--faq-accent);
}

.faq-list {
    background: #fff;
    border: 1px solid var(--faq-line);
    border-radius: 4px;
    overflow: hidden;
}

.faq-item + .faq-item {
    border-top: 1px solid #EDE8E1;
}

.faq-item.is-hidden {
    display: none;
}

.faq-item__q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: var(--faq-ink);
    text-align: left;
    transition: background 140ms ease;
}

.faq-page.is-compact .faq-item__q {
    padding: 16px 26px;
}

.faq-item__q:hover {
    background: #FBF7F3;
}

.faq-item__q span:first-child {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    flex: 1;
}

.faq-item__icon {
    flex: 0 0 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    background: #F1ECE5;
    color: var(--faq-muted);
}

.faq-item.is-open .faq-item__icon {
    background: var(--faq-accent);
    color: #fff;
}

.faq-item__a {
    padding: 0 26px 26px;
    font-size: 15px;
    line-height: 1.95;
    color: #4A433C;
    max-width: 62em;
}

.faq-item__a p {
    margin: 0 0 0.8em;
}

.faq-item__a p:last-child {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .faq-hero {
        padding: 36px 20px 48px;
    }

    .faq-hero__title {
        font-size: 34px;
    }

    .faq-main {
        padding: 0 16px 64px;
    }

    .faq-toolbar {
        padding: 16px;
    }

    .faq-item__q {
        padding: 18px 18px;
    }

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