* {
    margin: 0;
}


:root {
    --tab-width: 150px;
}

.contents {
    margin-top: 60px;
    width: 100%;
    color: #30302F;
}

.content_wrap {
    background-color: #F8F8F8;
    margin: 0;
    width: 100%;
    height: auto;
    padding-bottom: 4%;
    padding-top: 4%;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: row;
}

.banner_container {
    width: 100%;
    height: auto;
    margin: 0px auto;
    overflow: hidden;
    /* position: relative; */
    justify-content: center;
    align-items: center;
    /* 垂直置中 */
}

.gocayin-faq-bannerimg {
    background-blend-mode: multiply;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    max-width: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
    background-image:
        url("../../images/gocayin/gocayin-faq_header_bg.webp");
    background-color: rgba(196, 196, 196, 0.7);
}

.gocayin-f53 img {
    max-height: 36px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.6));

}

.gocayin-f53 {
    font-size: 3em;
    line-height: 1.35em;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 6rem 0 0.5rem 0;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    align-items: center;
}

.gocayin-FAQ_header {
    width: 100%;
    z-index: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

.gocayin-faq-f35 {
    font-size: 35px;
    color: #595959;

}

.gocayin-faq-header_subtitle {
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

/* 舊的 faq-whiteSelector 和 faq-submenuArrow 樣式已移除 */
/* 現在使用 cayinProduct.css 中的統一響應式設計 */

.header_subtitle {
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: #fabe00;
}

.search-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    pointer-events: none;
}

#searchInput {
    max-width: 1200px;
    width: 40vw;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

#searchInput:focus {
    outline: none;
    border-color: #FABE00;
    border-width: 0.1rem;
}

.search-results {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 60rem;
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.faq-category {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    width: 80%;
    max-width: 1200px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #595959;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #FABE00;
}

.question-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #595959;
    line-height: 1.5;
    padding-right: 1rem;
    flex: 1;
}

.chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: #595959;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.chevron.expanded {
    transform: rotate(90deg);
}

.faq-answer {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
}

.faq-answer.expanded {
    max-height: 24rem;
    opacity: 1;
}

.answer-content {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
}

.answer-text {
    padding: 1rem 0 0 1rem;
    border-left: 4px solid rgba(246, 218, 59, 0.2);
    color: #6b7280;
    line-height: 1.5;
}

.answer-text a {
    color: #e6a800;
    text-decoration: underline;
    font-weight: 500;
}

.answer-text a:hover {
    color: #FABE00;
    text-decoration: none;
}

.answer-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.answer-text li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

/* 第二層列表項目 */
.answer-text ul ul {
    margin: 0.25rem 0;
    padding-left: 1.2rem;
}

.answer-text ul ul li {
    margin-bottom: 0.25rem;
    list-style-type: circle;
}

/* 第三層列表項目 */
.answer-text ul ul ul li {
    list-style-type: square;
    font-size: 0.95em;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results p {
    font-size: 1.125rem;
    color: #6b7280;
}

.page-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    text-align: center;
}

.footer-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.footer-content p {
    color: #6b7280;
    line-height: 1.5;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .gocayin-FAQ_header {
        padding: 1rem;
    }

    .gocayin-f53 {
        display: flex;
        flex-direction: column;
        /* 改為垂直排列 */
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        text-align: center;
        font-size: 2.5em;
        /* 較小的字體尺寸 */
        padding: 4rem 0 0.5rem 0;
        /* 較小的 padding */
    }


    #searchInput {
        width: 80vw;
    }

    .faq-category {
        padding: 1rem;
        max-width: 80vw;
    }

    .question-text {
        font-size: 1rem;
    }
}