html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.QAwrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.QAwrapper .banner {
    width: 100%;
    height: 400px;
    background-image: url(../../images/FAQBanner.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.QAwrapper .banner img {
    max-width: 100%;
}
h1 {
    font-size: 25px;
    text-align: center;
    color: #FFF;
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #606060;
    padding-bottom: 20px;
    column-gap: 10px;
}
.tab {
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
    margin: 5px 0;
    cursor: pointer;
}
.tab.active {
    border-bottom: 2px solid #ffc107;
    font-weight: bold;
}
.tab-content {
    width: 95%;
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}
.tab-content.active {
    display: block;
}
.tab-content .faq-content {
    margin: 0 auto 40px auto;
}
.faq-item {
    border: 1px solid #555;
    background: #34363d;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq-question {
    font-size: 1.1rem;
    padding: 15px;
    margin: 0;
    cursor: pointer;
    font-weight: bold;
}
.faq-question i {
    margin-right: 5px;
    color: #caa74e;
}
.faq-label {
    color: #caa74e;
    font-weight: 500;
    font-size: 18px;
}
.faq-answer {
    display: none;
    font-size: 1rem;
    padding: 15px;
    border-top: 1px solid #686868;
}
.faq-answer .SubContent {
    list-style: none;
    line-height: 2em;
    margin: 0;
}
.faq-search {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px;
}
.QAContent {
    flex: 1;
    width: 95%;
    padding: 40px 0;
    margin: 0 auto;
}
footer {
    text-align: center;
    padding: 10px 0;
}

.tutorial {
    margin: 20px 0;
}
.tutorial > ol {
    padding: 5px 20px;
}
.tutorial > ol > li {
    margin-bottom: 40px;
}
.tutorial > ol > li > h3 {
    font-size: 18px;
    font-weight: bold;
    color: #fa9817;
}
.tutorial > ol > li > ul {
    padding: 0 0 0 20px;
    font-size: 16px;
    font-weight: normal;
    line-height: 2em;
    list-style: decimal;
}
.gallery {
    display: flex;
    flex-wrap: wrap; /* 允許換行 */
    gap: 10px; /* 縮圖之間的間距 */
    justify-content: flex-start; /* 水平置中 */
    margin: 20px 0; /* 上下間距 */
}
.gallery a {
    flex: 1 1 calc(33.33% - 10px); /* 每行顯示 4 個縮圖，間距已計算 */
    max-width: calc(33.33% - 10px); /* 確保每個縮圖的最大寬度 */
    box-sizing: border-box; /* 包含內邊距和邊框 */
}
.gallery img {
    width: 100%; /* 縮圖寬度填滿父容器 */
    height: auto; /* 保持圖片比例 */
    border-radius: 5px; /* 可選：讓圖片有圓角 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 可選：添加陰影 */
}
@media screen and (max-width: 991px) {
    .QAwrapper .banner {
        height: 200px;
        background-position: 60% 50%;
    }
    .gallery a {
        flex: 1 1 calc(50% - 10px); /* 每行顯示 2 個縮圖 */
        max-width: calc(50% - 10px); /* 確保每個縮圖的最大寬度 */
    }
}
@media screen and (max-width: 767px) {
    .gallery a {
        flex: 1 1 calc(100% - 10px); /* 每行顯示 2 個縮圖 */
        max-width: calc(100% - 10px); /* 確保每個縮圖的最大寬度 */
    }
}

.none-type{
    list-style: none;
}