
body{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    background-color: #f8f8f8;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
}
a{
    color: #000000;
    text-decoration: none;
}

/* 第一區-導覽列start */
.header{
    width: 100%;
    padding: 20px 0px;
    background-color: #ea5a26;
}
.headerFlex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.headerLogo{
    width: 20%;
    padding: 0px 50px !important;
}
@media(max-width:800px){
  .headerLogo{
    padding: 0px 10px !important;
}  
}
.headerMenu{
    width: 80%;
    text-align: right;
    padding: 0px 40px;
}
.headerMenu a{
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 15px;
}

.headerMenu a:hover{
    color: #56489c;
    font-weight: bold;
    border-bottom: 1px solid #56489c;
}

@media(max-width:800px){
    .headerMenu{
    padding: 0px 10px;
}
    .headerMenu a{
    font-size: 1rem;
}
}
@media(max-width:600px){
   .header{
    display: none;
   }
}


/* 手機版 Header */
.headerMobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background: #ea5a26;
    position: relative;
}
.headerLogo {
    padding: 0px;
}
.headerLogo img {
    height: 40px;
}

/* 漢堡按鈕 */
.mobileMenu {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 2000; /* 保證在最上層 */
}

.mobileLine {
    border-bottom: 2px solid black;
    margin-top: 6px;
    transition: 0.4s;
}

/* 三條線 */
.mobileLine {
    width: 30px;
    height: 2px;
    background-color: black;
    margin: 4px 0;
    transition: 0.4s;
}

/* 點擊後 → X */
.mobileMenu.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobileMenu.active .line2 {
    opacity: 0;
}

.mobileMenu.active .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* 手機選單 */
.mob-headerMenu {
    width: 100%;
    display: none;
    flex-direction: column;
    background: #f5f5f5;
    position: absolute;
    top: 64px;
    right: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0.95;
    z-index: 1001;
}

.mob-headerMenu a {
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.mob-headerMenu a:hover {
    font-weight: bold;
    background: #eee;
}

/* RWD：只有 600px 以下才啟用 */
@media (min-width: 601px) {
    .headerMobile, .mobileMenu, .mob-headerMenu {
    display: none !important;
    }
}
/* 第一區-END */

/* 第二區和第五區 */
/* 大標題 */
.QATitle{
    width: 100%;
    color: #ea5a26;
    text-align: center;
    padding: 10px 0px;
    margin: auto;
}
.QATitle-Mob{
    display: none;
    width: 100%;
    color: #ea5a26;
    text-align: center;
    padding: 10px 0px;
    margin: auto;
}

@media(max-width:768px){
    .QATitle{
    display: none;
}
.QATitle-Mob{
    display: block;
       
}
.QATitle-Mob h1{
    font-size: 1.3rem;
}
}

/* 第三區 */
/* ---分類選單--- */
    .Classification {
        width: 70%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 20px auto;
    }  


    .Classification div {
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    }

    .Classification div:hover {
    background: #007bff;
    color: #fff;
    }

    .Classification div.active {
    background: #007bff;
    color: #fff;
    }

    .Classification a {
        text-decoration: none;
    }

    /* 第六區 */
    /* ---分類內容--- */
    .QAContaint{
        margin: 50px auto 170px auto;
    }
    @media(max-width:768px){
          .QAContaint{
        margin: 20px auto;
    }
    }
    .tab-content {
        display: none;
        width: 70%;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #ffffff;
        margin: auto;
    }

    .tab-content h2{
        width: 100%;
        text-align: center;
        color: #007bff;
    }

    .tab-content p{
        text-align: center;
    }

    .tab-content.active {
        display: block;
    }

    @media(max-width:768px){
        .tab-content {
        width: 90%;
        }
    }


    /* ---漢堡選單--- */
    .hamburger {
      display: none;
      width: 30px;
      height: 25px;
      flex-direction: column;
      justify-content: space-between;
      padding: 10px;
      cursor: pointer;
    }

    .hamburger span {
      display: block;
      height: 4px;
      background: #333;
      border-radius: 2px;
      transition: 0.3s;
    }

    /* 漢堡變 X */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: rotate(-50deg) translate(10px, -10px);
    }

    /* ---RWD--- */
    @media (max-width: 768px) {
      .Classification {
        display: none;        
        width: 100%;
        flex-direction: column;
        gap: 0;
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
      }
      .Classification.show {
        display: flex;
      }

      .Classification div {
        width: 768px;
        max-width: 100%;        
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
      }

      .hamburger {
        display: flex;
        margin-bottom: 10px;
      }
    }

      /* FAQ 外框 */
    .faq {
      border-bottom: 1px solid #ddd;
      padding: 10px 0;
    }

    /* 問題 (Q) */
    .faq-question {
      font-weight: bold;
      cursor: pointer;
      position: relative;
      padding: 10px;
      
      background-color: #ddd;
    }

    /* Q 後面的小符號 */
    .faq-question::after {
      content: "+";
      position: absolute;
      right: 0;
      font-weight: bold;
      padding: 5.5px 10px;
      transition: transform 0.3s;
    }

    /* 展開時符號改成 - */
    .faq-question.active::after {
      content: "-";
    }

    /* 答案 (A) */
    .faq-answer {
      display: none;
      margin-top: 8px;
      color: #333;
      line-height: 1.6;
      padding: 10px;
    }

    .faq-answer.show {
      display: block;
      animation: fadeIn 0.3s;
    }

    /* 動畫 */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* RWD 自動適應，不用特別處理 */
    @media (max-width: 768px) {      
      .faq-question {
        font-size: 1rem;
      }
      .faq-answer {
        font-size: 0.95rem;
      }
    }