@import url('https://fonts.googleapis.com/earlyaccess/notosanstc.css');
@import url('https://fonts.googleapis.com/css?family=Baloo');
@import url('https://fonts.googleapis.com/css?family=Fredoka+One');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700|Mukta+Vaani:700|Staatliches');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&family=UoqMunThenKhung&family=Yusei+Magic&family=Zen+Kurenaido&display=swap');  
*, *::after, *::before { -webkit-box-sizing: border-box; box-sizing: border-box; }
::selection { background-color: #ffebdc;}
body {
    background: #fff url(../images/bg.png)repeat;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 400;
    overflow-x: hidden;
    font-family: "Arial","Noto Sans TC" , sans-serif;

}

table {border-collapse: collapse;border-spacing: 0;margin: auto;}
h1,h2,h3,h4,h5,h6,p,ul,ol {margin: 0;padding: 0;}
  @media (max-width:55em) {.br_d {display: none;}}
  @media (max-width:68em) {.br_p {display: none;}}
  @media (min-width:55em) {.br_s {display: none;}}
  @media (min-width: 768px) and (max-width: 991px) {.hidden-sm {display: none;}}
  @media (min-width: 992px) and (max-width: 1199px) {.hidden-md {display: none;}}
  @media (min-width: 1200px) {.hidden-lg {display: none !important;}}

  article {padding:12vh 5vw;letter-spacing: 0.5px;  color: #615e5f;}
  article h2 { font-family: "UoqMunThenKhung", serif; text-align: center;font-weight: 200;}
  @media screen and (max-width:38em) {article {padding: 5vh 5vw;} }
    @media screen and (max-width:40em) {article {font-size: 0.95em;} }
/* 
  article h2 {
    font-size:1.8em;
    font-weight:200;
    line-height: 1.35;

  }
  article h2 span {
    font-size: 155%;
  }
  article h2 span::before{
        content: '／';
        font-size: 15px;
        padding:0 1vw;
    }

  article h3 {
    color: #19643b;
  }
  article h2 .splogo {
    width:100px;
  }
  @media screen and (max-width:40em) {
    article {
        font-size: 0.92em;
    }
    article h2 {
        font-size:1.68em;
        font-weight:300;
    
      }
      article h2 span {
        color: #0b7142;
        display: block;
        font-weight:600;
        font-size: 135%;
      } 
      article h2 span::after{
        content: '／';
        font-size: 15px;
        padding:0 1vw;
       
    }

} */
header {
  background-image: url(../images/bg_top.png);
  background-position: bottom left 8vw;
  background-repeat: no-repeat;
  background-size: 28%;
  padding: 5rem 5vw 12rem; /* 改用 rem 確保縮放穩定 */
  position: relative;
  z-index: 1;
}

header .title {
  width: 68%;
  height: auto;
  padding: 0 8vw 5vh 0;
  margin: auto;
  margin-right: 0;
  text-align: center;
}
header img {
  width: 90%;
  height: auto;
}
header nav {
  margin-top: 6vh;
}
header nav a {
  background-color: #06c;
  color: #fff;
  padding: 5vh 1vw;
  margin: 0 0.5vw;
  border-radius: 50%;
}
header h1 {
  font-family: "UoqMunThenKhung", serif;
  font-size: clamp(3.8rem, 8vw, 6em);
  line-height: 1.1;
  font-weight: 200;
  color:#ff9d6e ;
  word-break: keep-all;

}
header h1 strong {
  font-size:1.68em;
  color: #88271a;
  display: block

}
header h3 {
    margin-top: 2vh;
    font-size: 1.68em;
    line-height: 1.3;
}
header ul {
  padding:0 0;
  margin: 0 0;
  list-style: none;
  margin-top: 2vh;
  position: fixed;
  right: 0;
  top: 10vh;
  z-index: 99;
}
header ul li{
  background-color:#fff;
  color:  #ffb2ad;
  border: solid #ffe6e4 2px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  text-align: center;
  line-height: 1.35;
  font-size: 1.15em;
  font-weight:400;
  padding-top: 12px;
  margin:0.5vw;
}
header ul a, header ul a:hover {
  color: #ffb2ad;
}
@media (max-width: 68em) {
  header {
    background-size: 28%;
    background-position: bottom left 5%;
    padding: 5rem 5vw 10rem;
  }
  
  header .title {
    width: 100%; 
    padding: 0 0 0 2rem;
    margin: auto;
  }

  header h1 {
    font-size: clamp(4.5rem, 5vw, 4.5rem);
  }

  header ul {
    top: 5vh; /* 縮放時稍微往上移，留出空間 */
  }

  header ul li {
    width: 68px;
    height: 68px;
    font-size: 1rem;
    padding-top: 10px;
  }
}

@media (max-width:40em) {
  header {
    background-image: url(../images/bg_top.png);
    background-position: bottom right 8vw;
    background-repeat: no-repeat;
    background-size: 58%;
     padding:3vh 0vw 2vh;
  }
  header h1 {font-size: 3.5em;}
  header h1 strong {
  font-size:1.68em;
  color: #88271a;
}
header h3 {
        font-size: 1.25em;
        writing-mode: vertical-rl;
        text-orientation: upright;
        -moz-transform: rotate(2deg);
        -webkit-transform: rotate(2deg);
        -o-transform: rotate(2deg);
        -ms-transform: rotate(2deg);
        transform: rotate(2deg);
        padding-left: 18vw;
        font-style: normal;
    }
    header h3 span {
        display: block;
        font-size: 150%;
    }
    header h3 span::after {
        content: '／';
        padding: 1vw;
    }
    header h3 span::before {
        content: '＼';
        padding: 1vw;
    }

  header .title {
    width: 100%;
    height: auto;
    padding: 10vh 0vw 5vh;
    margin: auto;
    text-align: center;

  }

  header img {
    width: 100%;
    height: auto;
  }

  header ul {
    width: 100%;
    margin-top:0vh;
    right: 0;
    top: auto;
    bottom: 6.5vh;
    background-color: #ffe07b;
    z-index: 1002;
  }
  header ul li{
    width: 22%;
    height:auto;
    border-radius:0%;
    border:solid 0px;
    border-right: solid 1px rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0);
    display: inline-block;
    text-align: center;
    line-height: 1.35;
    font-size:16px;
    padding:8px 0px;
    margin:0vw;
  }
  header ul li:nth-last-child(1){
    border-right: solid 0px #fff;
  }
  header ul a, header ul a:hover {
    color: #008280;
  }
}


#exam {
  position: relative;
  background-color: rgb(255, 228, 226, 0.75);
  margin-top: -10vh;
  padding: 10vh 5vw;
  font-family: "Mukta Vaani", "Noto Sans TC", "Arial", sans-serif;
}

#exam i {
  font-size: 2em;
  padding-bottom: 5px;
}

#exam button,
#exam button:hover {
  background-color: rgba(0, 0, 0, 0);
  border: #ddd solid 0px;
  color: #fff;
  padding: 8px 10px;
  border-radius: 15px;
  font-size: 1.15em;
}
#exam ol {
    padding: 0 0 0 22px;
    margin-bottom: 2vh;
}
.exam-content {
  width: 66%;
  background-color: #fff;
  border-radius: 3em;
  padding: 8vh 3vw;
  display: inline-block;

}
.exam {
  border-radius: 2em;
  width: 100%;
  margin: auto;
  text-align: left;
  vertical-align: top;

}

.exam td,
.exam th {
  padding: 5vh 2vw;
  border-right: dashed 2px #dae0ff;
  border-bottom: dashed 2px #dae0ff;
}
.exam th {
  font-size: 108%;
  width: 18%;
  text-align: center;
}
.exam caption {
  /* background:url(https://www.easywin.com.tw/ad/111/0214/../images/top_bg.png) #eee; */
  border-radius: 1em 1em 0 0;
  font-weight: 400;
  font-size: 125%;
  color: #738aff;
  text-align: center;
  padding: 2vh 0;
}
.exam td:nth-last-child(1) {
  border-right: solid 0px #dae0ff;
}

.exam tr:nth-last-child(1) td,
.exam tr:nth-last-child(1) th {
  border-bottom: solid 0px #dae0ff;
}

.exam td h3 {
  margin: 2vh 0 5vh;
  text-align: center;
}

.exam td h3 span {
  background-color: #fff9bd;
  padding: 2vh 1vw;
  border-radius: 2em;
}

.exam td span {
  color: #738aff;
}

.exam th span {
  font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
  font-weight: 800;
  font-size: 180%;
  color: #738aff;
  line-height: 1.5;
}

.exam-a {
  position: absolute;
  top: -6vh;
  right: 5vw;
  border-radius: 3em;
  width: 35%;
  margin: auto;
  padding: 2vh 1vw;
  text-align: left;
  vertical-align: top;
  display: inline-block;
  background-color: #738aff;
  color: #fff;
}

.exam-a caption {
  color: #fff;
  border-bottom: dashed 1px #fff;
}

.exam_box {
  width: 100%;
  margin: 2vh auto;
  border: solid 1px #ffc3bf;

}

.exam_box th,
.exam_box td {
  padding: 6px 6px;
}

.exam_box td,.exam_box th {
  border-right: solid 1px #ffc3bf;
  border-bottom: solid 1px #ffc3bf;

}

.exam_box tr:nth-child(2n) {
  background-color: #fff8f2;
}

.exam_box td:nth-child(1) ,.exam_box td:nth-child(2) {
  width: 28%;
    text-align: center;
}


.exam_box td:nth-last-child(1) {
  border-right: solid 1px #ffc3bf;

}

.exam_box tr:nth-last-child(1) td {
  border-bottom: solid 1px #ffc3bf;
}
.test_time span::before {
    content: '/';
    padding: 1px;
}
.test_time {
  width: 100%;
  margin: 2vh auto;
    border: solid 1px;
  border: solid 1px;

}

.test_time th,
.test_time td {
  padding: 6px 6px;
}

.test_time td {
  border-right: solid 1px;
  border-bottom: solid 1px;

}

.test_time td:first-child {
  width: 15%;
}
.test_time td:nth-child(2) {
  width: 32%;
}
.test_time td:nth-child(1),.test_time td:nth-child(2) {
  text-align: center;
}

.test_time td:nth-last-child(1) {
  border-right: solid 1px;

}

.test_time tr:nth-last-child(1) td {
  border-bottom: solid 1px;
}
@media (max-width:68em) {
  #exam {
    margin-top: -10vh;
    padding: 10vh 3vw;

  }

  #exam h2 {
    text-align: center;
  }

  #exam img {
    width: 50%;
    height: auto;
    position: fixed;
    right: 10vw;
  }

  .exam-content {
    width: 100%;
  }

  .exam-a {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: auto;
    padding: 2vh 5vw;
    margin-bottom: 5vh;
  }

  .exam {
    width: 100%;
    font-size: 16px;
  }

  .exam td {
    padding: 3vh 2vw;

  }

  .exam th {
    font-size: 120%;
    text-align: center;
    vertical-align: middle;
  }

  .exam th img {
    position: relative;
    width: 18vw;
    top: 2vh;
    right: -1vw;
  }
  .test_time span::before {
    content: '';
}
.test_time span {
    display: block;
}
.exam_box {
  font-size: 95%;
}
}

section {
  padding: 8vh 5vw;
}
section h2  {
  text-align: center;
}
article #work h1,
article #dietitian h1,
article #work h2,
article #dietitian h2 {
  background: url(../images/h2-2.png) no-repeat;
  background-position: center bottom;
  background-size: 15vw;
  padding-bottom: 5vh;
  margin-bottom: 3vh;
  /* border-bottom: double saddlebrown 5px; */
  /* margin-bottom: 5vh; */
  text-align: center;

}

article h1 span {
  border-bottom: dotted #ffd3d1 5px;
  /* border-top: double #ffd3d1 5px; */
  padding-bottom: 2vh;
  padding-top: 2vh;



}

#job {
  background-color: #fff;
  border: double 8px #ffc7d2;
  border-radius: 3em;
  display: -webkit-flex;
  display: flex;
    padding: 8vh 2vw;
  /* flex-wrap: wrap; */
}

.job {
  background: rgba(255, 240, 240, 0.8) url(../images/bg_job.png) repeat;

}

#work,
#dietitian {
  width: 40%;
  margin: 0;
  vertical-align: top;
  padding: 0vh 3vw;

}

#dietitian {
    width: 60%;
  text-align: left;
}

#dietitian table {
  width: 100%;
  margin: auto;
  margin-top: 2vh;
  border: solid 1px #ffd3d3;
  background-color: #fff;
  table-layout: fixed;

}
#dietitian table th { text-align: center;}

#dietitian table td {
  border-right: solid 1px #ffd3d3;
  /* border-bottom: solid 1px #ffd3d3; */
  padding:1vh 0.5vw;
}

#dietitian table th {
  background-color: #ffd3d3;
  border-right: solid 1px #fff;
  border-bottom: solid 1px #fff;
  padding:1vh 0.5vw;
  font-weight: 500;
}
#dietitian object {
    font-style: italic;
    font-size: 95%;
    color: #ff9d6e;
}
 #dietitian table td:nth-child(2), #dietitian table td:first-child {
    text-align: center;
 }
 #dietitian table tr:nth-child(2n) {
  background-color:#fff8f2;
} 
#dietitian table tr:nth-last-child(1) {
  border-bottom: solid 0px #fff;
}

#dietitian table td:nth-last-child(1) {
  border-right: solid 0px #dae0ff;
}

#work {
  border-radius: 3em;
  /* background-color: #ffefee; */
}

#work p span{
    color: #98a9fe;
}
#work ul {
  margin: 0 ;
  padding: 2vh 0 0;
  list-style: none;
}
#work ul li {
    padding:0.5vh 0;
}

#work ul li mark {
  color:#ff9d6e;
  font-weight: 500;
  background-color: #ffffff00;
}
@media (max-width:55em) {
 #job {flex-wrap: wrap;}
 .job {padding: 3vh 1vw;}

  article #work h1,
  article #dietitian h1,
  article #work h2,
  article #dietitian h2 {
    background: url(../images/h2-2.png) no-repeat;
    background-position: center bottom;
    background-size: 55vw;
    padding-bottom: 5vh;
    margin-bottom: 3vh;
    /* border-bottom: double saddlebrown 5px; */
    /* margin-bottom: 5vh; */
    text-align: center;

  }
  
  #work,
  #dietitian {
    width: 100%;
    margin: auto;
     padding:3vh 1vw;
  }
  
  #work {
    border-bottom: dotted 3px #ffdee5;
    border-radius: 0;
  }
  #work ul {
    padding-left: 1.2em;
  }
   #dietitian table {
    font-size: 90%;
    margin-bottom: 2vh;
   }
}

#accept table {
  width: 100%;
  background-color: #fff;
  margin: auto;
  border-spacing: 0;
  table-layout: fixed;
  border: #ffd3d3 solid 2px;
  font-family: "Mukta Vaani", "Noto Sans TC", "Arial", sans-serif;


}

#accept th,
#accept td {
  border: 1px solid #ffd3d3;
  padding: 0.5vh 1vw;
  border-top-width: 0;
  border-left-width: 0;
  text-align: center;
}

#accept thead th {
  position: sticky;
  padding: 1vh 1vw;
  top: 45px;
  background: #ffd3d3;
  font-weight: 500;
}

#accept tbody th {
  color: #5b6cff;
  width: 12%;
  text-align: center;


}

#accept th:last-child,
#accept td:last-child {
  border-right-width: 0;

}

#accept td:last-child {
  font-weight: 600;
  font-size: 120%;
  color: #5b6cff;

}

#accept tr:nth-child(2n) td {
  background-color: #f5f5f5;
}

#accept td:nth-last-child(6),
#accept td:nth-child(1) {
  width: 12%;

}

@media (max-width:55em) {
  #accept {
    padding: 6vh 0vw;
  }

  #accept h2 {
    text-align: center;
  }

  #accept table {
    width: 100%;
    margin: auto;
    table-layout: auto;
    letter-spacing: 0;
    font-size: 16px;
  }

  #accept th,
  #accept td {
    padding: 1.5vh 0.2vw;

  }

  #accept th {
    position: sticky;
    top: 0px;
    color: #fff;
    text-align: center;
  }

  #accept td:last-child {
    font-weight: 600;
    font-size: 16px;
  }
}

#faq {
    text-align:center ;
    position: relative;
    padding:5vh 12vw;
}

#faq section {
  position: relative;
}
#faq details {
  background: url(https://www.easywin.com.tw/ad/113/0308/..images/bg_3.png)  #fffce9 repeat;
    background-size: 1%;
    border-bottom: #86d135 3px dashed;
    border-left: #86d135 12px solid;
    padding: 3vh 8vw;
    margin: auto;
    text-align: left;
}

#faq summary {
    position: relative;
    
}
#faq details summary::marker {
    font-size: 0;
}
#faq details summary::after {
    content:"+ more";
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    position: absolute;
    right: -2vw;
   
    color: #86d135;
}
#faq details[open] summary::after {
    content:"-close";
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    position: absolute;
    right: -2vw;

}
#faq details[open] {
  border:dashed 5px #86d135;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.68);
  background-size: 100%;
  margin: 3vh 0;
  padding-bottom: 5vh;
}
#faq details[open] summary {
  margin-bottom:1vh;
  border-radius: 0.5em 0.5em 0 0;
  border-bottom: solid 1px #d6f7b4;
  padding-bottom: 1vh;
  color:  #0c6252;
  font-weight: 600;
}
#faq details p span {
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    font-size: 1.5em;
    line-height: 1.35;
    color: #ffb5a2;
    display: block;

}
#faq details p span::after {
    content: ':';
    padding: 0 1vw;
}
#faq details p small {
    font-size: 15px;
}
#faq summary h5 span {
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    position: absolute;
    background-color: #0c6252;
    border-radius: 50%;
    font-size: 1.5em;
    color: #fff;
    padding: 0 12px;
    left: -3.8vw;
    top:2vh;
}
#faq h6{
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    position: absolute;
    top:-6vh;
    left:5vw;
    font-size:6em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0.15em 0px #0c6252, 0.01em -0.03em 0 #0c6252, 0.08em 0.005em 0 #0c6252, 0em 0.08em 0 #0c6252, 0.05em 0.08em 0 #0c6252, 0px -0.05em 0 #0c6252, -0.06em -0.05em 0 #0c6252, -0.08em 0.08em 0 #0c6252, -0.09em 0 0 #0c6252;
    -moz-transform:rotate(-2deg);
    -webkit-transform:rotate(-2deg);
    -o-transform:rotate(-2deg);
    -ms-transform:rotate(-2deg);
   transform:rotate(-2deg);
  }
  #faq h6 span {
    font-size: 0.35em;
    text-shadow:
    0 0.15em 0px #0c6252, 
    0.01em -0.03em 0 #0c6252, 
    0.08em 0.005em 0 #0c6252, 
    0em 0.08em 0 #0c6252, 
    0.05em 0.08em 0 #0c6252, 
    0px -0.05em 0 #0c6252,
     -0.06em -0.05em 0 #0c6252,
     -0.08em 0.08em 0 #0c6252,
     -0.09em 0 0 #0c6252;
}
#faq mark {
    background-color: #d6f7b4;
}
#faq p ins {
    color: #5f9f1e;
    font-weight: 600;
}
#faq em {
    font-size: 90%;
    line-height: 1.35;
    color: #999;
}
#faq ol{
    padding: 0 0 0 21px;
}

#talk {
    margin: 3vh 0;
    padding: 5vh 5vw;
}
#talk ul {
    display: flex;
    display: -webkit-flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding-bottom:15vh;
    background: url(https://www.easywin.com.tw/AD/114/0206/img/talk.png)no-repeat bottom left;
    background-size:22%;
    color: #0c6252;
}
#talk ul li:nth-child(2) {
    width: 62%;
}
#talk ul li:first-child {
    width: 22%;
    
}
#talk h3 {
    font-size: 1.85em;
    line-height: 1.5;
}
#talk .countySelect, #talk .storeSelect {
    font-size:1.1em;
    color: #666;

}
@media screen and (max-width:65em) {
    #faq {
        padding:5vh 8vw;
    }

    #faq details {
      background: url(https://www.easywin.com.tw/ad/113/0308/..images/bg_3.png)  #fffce9 repeat;
        background-size: 2%;
        padding: 3vh 6vw;
    }

    #faq details p span {
        font-size: 1.35em;
        line-height: 1.35;
        color: #ffb5a2;
        display: block;
    
    }
    #faq summary h5 span {
        font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
        position: absolute;
        background-color: #0c6252;
        border-radius: 50%;
        font-size: 1.5em;
        color: #fff;
        padding: 0 10px;
        left: -3.8vw;
        top:-1vh;
    }
    #faq h6{
        font-size:4.5em;
        text-shadow: 0 0.15em 0px #0c6252, 0.01em -0.03em 0 #0c6252, 0.08em 0.005em 0 #0c6252, 0em 0.08em 0 #0c6252, 0.05em 0.08em 0 #0c6252, 0px -0.05em 0 #0c6252, -0.06em -0.05em 0 #0c6252, -0.08em 0.08em 0 #0c6252, -0.09em 0 0 #0c6252;
        -moz-transform:rotate(-2deg);
        -webkit-transform:rotate(-2deg);
        -o-transform:rotate(-2deg);
        -ms-transform:rotate(-2deg);
       transform:rotate(-2deg);
      }
      #faq h6 span {
        font-size: 0.4em;
        text-shadow:
        0 0.15em 0px #0c6252, 
        0.01em -0.03em 0 #0c6252, 
        0.08em 0.005em 0 #0c6252, 
        0em 0.08em 0 #0c6252, 
        0.05em 0.08em 0 #0c6252, 
        0px -0.05em 0 #0c6252,
         -0.06em -0.05em 0 #0c6252,
         -0.08em 0.08em 0 #0c6252,
         -0.09em 0 0 #0c6252;
    }

    #talk ul {
        padding-bottom:18vh;
        background: url(https://www.easywin.com.tw/AD/114/0206/img/talk.png)no-repeat bottom left -3vw;
        background-size:35%;
    }
    #talk ul li:nth-child(2) {
        width: 68%;
    }
    #talk h3 {
        font-size: 2em;
        line-height: 1.5;
    }

}
@media screen and (max-width:40em) {
    #talk ul {
        padding-bottom:6vh;
        background: url(https://www.easywin.com.tw/AD/114/0206/img/talk.png)no-repeat bottom left -5vw;
        background-size:45%;
    }
    #talk ul li:nth-child(2) {
        width: 66%;
    }
    #talk h3 {
        font-size: 1.25em;
        line-height: 1.5;
    }
    #talk h2 {
        font-size:1.35em;
    }
}


#socail_icon {
    padding: 0;
  }
  #socail_icon_box a {
    background-color: #1f8bd9;
  }
  #socail_icon a::before {
    content:none;
      font-family: 'Font Awesome 5 Free';
      font-weight: 900;
      padding-right: 0;
  }
  @media screen and (max-width: 575px) {
    #socail_icon_box {height: 8vh;}
    #socail_icon_box a.bg_line {padding: 0.5em 0.1em 0.4em;}
    #socail_icon {margin-top: 0; background-color: rgba(54, 50, 0, 0)}
    #socail_icon_box a.w100 img {
        pointer-events: none;
        display: block ;
        position: absolute; 
        z-index: 10; 
        width: 40px; 
        height: 40px; 
        top: 18px!important;
        left: 10%!important;
    }
    #socail_icon_box a.bg_line {
        padding: 0.2em 0.15em 0.2em !important;
    }
    #socail_icon_box {
         height: 6.5vh !important;
    }
}
@media screen and (max-width: 40em) {
    #socail_icon_box a.keep-switch-line.w100 {
        width: 100% !important;
    }
    #socail_icon_box {
        background-color: rgba(54, 50, 44, 0.8);
        border-radius: 0;
        position: fixed !important;
        width: 100%;
        left: 0 !important;
        top: auto!important;
        bottom: 0 !important;
        z-index: 101;
    }
    .text_br_off {
    display: none!important;
}
}


.logock{
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: solid 1px #ffffffe7;
    color: #099587;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 1.5em;
    position: fixed;
    top: 0;
    left: 0;
    padding:3px 0 1px 2vw;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
    z-index: 99;
}

/* down */ 

#ans_down{
  color:#333;
  text-align: center;
  padding: 2vh 10vw;
  margin: 0 auto;
}
#ans_down {
  background-color: rgba(255,255,255,0.3);

}

@media screen and (max-width:720px){
#ans_down h2{
  font-size: 1.5em;
}
}


@media (max-width: 50em){
#ans_down{
  padding: 5vh 5vw;
}
}

.down{
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  color: #333;
  font-size: 1.2em;
  line-height: 1.5;
  text-align: center;
  /*padding: 3px;*/
  border-radius: 3px;
  border-collapse: inherit;
  table-layout: fixed;
  background-color: #fff;
  border:1px solid rgba(255,175,122,0.5);
}
.down th {
    padding:8px 2px;
    text-align: center;
    border-left: 1px solid #fff;
    background-color: #ff355e;color: #fff;
     /*background-color: #4b7ae5;*/
     /*background-color: #fcaa2f;*/
}
.down td{
  padding:8px 3px;
  border-left:1px solid rgba(255,175,122,0.5);
  border-bottom:1px solid rgba(255,175,122,0.5);
}

.down td:nth-child(1):hover{
  background-color: rgba(255, 230, 230,0.3);
  color: #0033cc;
  cursor: pointer;
}
.down td:nth-child(1) {
  text-align: left;
  width: 65%;
}

.number{
  font-size: 12px;
  background-color:#ffab91;
  color: #fff;
  border-radius: 50%;
  padding:2px 6px;
  font-family: "Courier New";
  margin: 0px 10px;
}
.pdf{
  color: #ffab91;
  float: right;
  left: auto;
  padding-right:20px;
  font-size:36px;
  /*line-height:1;*/
}
.pdf_d{
  color: #ccc;
  float: right;
  left: auto;
  padding-right:20px;
  font-size:36px;
  cursor: no-drop;
  /*line-height:1;*/
}
.ans{
  color:#ffab91;
  font-size:36px;
}

.ans_d{
  color:#eee;
  font-size:36px;
  cursor: no-drop;
}
@media (max-width: 50em){

.down{
  width: 100%;
   font-size:1em;
}
.down td:nth-child(1) {
  width: 55%;
}
}
@media screen and (max-width:900px){
.number{
  padding:2px 5px;
  margin: 0px 3px;
}
.pdf{
  padding-right:5px;
  font-size:26px;
  /*line-height:1;*/
}
.ans_d,.pdf_d{
  color:#eee;
  font-size:26px;
}
.ans{
  font-size:26px;
}
}
.custom-select {
  padding: 0;
  border: 1px solid #27e6cc;
  width: 180px;
  margin: 5px auto 25px;
  overflow: hidden;
  font-size: 1.2em;
  /*background: transparent url(../img/top.png) no-repeat 94% 50%;*/
}

.custom-select select {
  padding: 10px 10px;
  cursor: pointer;
  width: 100%;
  color: #81c8ff;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent: 0.01px;
    text-overflow: '';
}

.custom-select select:focus {
  outline: none;
}
select  {
font-size: 0.7em;
}
@media screen and (max-width: 765px) {
  .custom-select {
  width: 120px!important;
  margin: 5px auto 25px;
  overflow: hidden;
  font-size: 1.1em;
  /*background: transparent url(../img/top.png) no-repeat 94% 50%;*/
}

}
#sale {
  margin:auto;
  margin-bottom: 3vh;
  text-align: center;
  color:#881818;
  z-index: 10;
  position: relative;
}
#sale h3{
   font-size: 1.3em;
   line-height: 1.5;
   color:#873c26;
    font-weight: 500;
}
#sale h3 span {
  color: #ff5b29;
}
#sale p span{
   font-size: 1.6em;
   text-decoration: underline;
   color: #ff4242;
   margin-bottom: 0px;
}
#sale p{
   margin-bottom: 3vh;
}
#sale ol img {
  width:12vw;
  height: auto; 
  position: relative;
  top: 2vh;
}
#sale h4{
  margin-top: 5vh;
}
#sale ol {
  text-align: center;
  margin: 0 0;
  padding: 0 0;
  display: flex;
  display: -webkit-flex;
  justify-content: space-around;
  align-items: stretch;
  flex-wrap: wrap;
}
#sale ol li {
     width:25.5vw;
  margin:2vh 1vw;
  padding: 5vh 0.3vw 0vh 0.3vw;
  border-radius: 3em;
  border: solid 1px #ffd3d3;
  background-color: #fff;
  text-align: center;
}

#sale a:hover,#sale a{
    font-size: 1.2em;
  padding: 2vh 1.5vw;
  background-color: #0ed515;
  color: #fff;
  border-radius: 3em;
}
#sale a:hover{
  opacity: 0.6;
}
@media screen and (max-width: 65em) {
  #sale ol li{
  width:80vw;
  display: block;
  margin:auto;
  margin-top: 2vh;
  padding: 5vh 0.5vw 0vh 0.5vw;
  border-radius: 3em;
}
#sale ol img {
  width:32vw;
  height: auto; 
  position: relative;
  top: -2vh;
}

#sale a:hover,#sale a{
    font-size: 1.2em;
  padding: 2vh 3vw;
  background-color: #0ed515;
  color: #fff;
  border-radius: 3em;
}
}

  #student h2, #teacher h2 {
    font-size:1.8em;
    font-weight:200;
    line-height: 1.35;
    margin-bottom: 3vh;

  }
  #student h2 span {
    font-size: 155%;
  }
  #student h2 span::before{
        content: '／';
        font-size: 15px;
        padding:0 1vw;
    }

  #student h2 .splogo {
    width:100px;
  }
  @media screen and (max-width:40em) {
    #student {
        font-size: 0.92em;
    }
    #student h2 {
        font-size:1.68em;
        font-weight:300;
    
      }
      #student h2 span, #teacher h2 span{
        display: block;
        font-weight:200;
        font-size: 135%;
      } 
      #student h2 span::after{
        content: '／';
        font-size: 15px;
        padding:0 1vw;
       
    }

} 



#student {
  text-align: center;
   padding: 0vh 5vw;
}
#student>section {
  padding: 5vh 0vw;
  text-align: left;
  position: relative;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:center; 
}
#student>section ul {
  background: url(https://www.easywin.com.tw/ad/113/0308/img/bg_3.png)  #fff repeat;
  background-size: 2%;
  border:#f3c49a dashed 1px;
  width: 48%;
  padding: 5vh 0vw;
  margin: 3vh 0.5vw 0 0;
  border-radius: 2em;
  transform:  rotate(-2deg);
  list-style-type: none;
   position: relative;
   color: #464646;
}
#student>section ul:first-child {
  transform:  rotate(1deg);
  margin-top: -8vh;
}
#student>section ul:nth-child(2n) {
  transform:  rotate(2deg);
  margin-top: -8vh;
}
#student>section ul:nth-child(4) {
  transform:  rotate(3deg);
  margin-top: 2vh;
}
#student>section ul img {
  width: 9%;
  margin-right: 2vw;
  border-radius: 50%;
  background-color: #ffeeee;
  margin-top:2vh;
}

#student h5 {
  color:  #7e65e0;
  font-family: "Noto Sans TC" , sans-serif;
  font-weight: 400;
  font-size: 1.25em;
  line-height: 1.25;
  margin-bottom: 3vh;
  text-align: right;
}
#student strong {
  color: #7e65e0;
  font-size: 108%;
  font-weight: 400;

}
#student h6 {
  position: absolute;
  top: -2vh;
  transform:  rotate(-2deg);

}
#student h6 span {
  background:#7e65e0e1 ;
  font-size: 1.8em;
  padding: 1vh 1vw;
  color: #fff;
}

#student ul li {
  padding: 2vh 2vw;

}
#student ul li:first-child {
  color:#7e65e0;
  border-bottom: #f3c49a dashed 1px;
 
}
#student ul li::first-letter {
    font-size: 200%;
    color:  #7e65e0;
    line-height: 1.5;
  }
#student mark {
  background-color: #fff3af;
}
@media screen and (max-width:75em) {
  #student>section {
    padding: 5vh 0vw;
    text-align: left;
    position: relative;
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items:center; 
      font-size: 1em;
  }
  #student>section ul {
    background: url(https://www.easywin.com.tw/ad/113/0308/img/bg_3.png)  #fff repeat;
    background-size: 2%;
    border:#f3c49a dashed 2px;
    width: 100%;
    padding: 0vh 2vw 3vh;
    margin: 2vh 0vw 0 0;
    border-radius: 1em;
    transform:  rotate(0deg);
    list-style-type: none;
     position: relative;
  }
  #student>section ul:first-child {
    transform:  rotate(0deg);
    margin-top: 0vh;
  }
  #student>section ul:nth-child(2n) {
    transform:  rotate(0deg);
    margin-top: 3vh;
  }
  #student>section ul:nth-child(4) {
    transform:  rotate(0deg);
    margin-top: 3vh;
  }
  #student>section ul img {
    width: 12%;
    margin-right: 2vw;
    border-radius: 50%;
    background-color: #ffeeee;
    margin-top:2vh;
  }
  
  #student h5 {
    color:  #7e65e0;
    font-family: "Noto Sans TC" , sans-serif;
    font-weight: 400;
    font-size: 1em;
    line-height: 1.25;
    text-align:left;
    margin-bottom: 3vh;
  }
  #student strong {
    color: #7e65e0;
    font-size: 108%;
    font-weight: 400;
  
  }
  #student h6 {
    right: 12vw;
    top: -1vh;
    transform:  rotate(2deg);
  
  }
  #student h6 span {
    background:#7e65e0e1 ;
    font-size: 1.6em;
    padding: 1vh 3vw;
    color: #fff;
  }
  
  #student ul li:first-child {
    border-bottom: #f3c49a dashed 0px;
  }
  #student ul li::first-letter {
      font-size: 200%;
      color:  #7e65e0;
      line-height: 1.5;
    }
}

.money {
    text-align: center;
    margin-top: 5vh;
}

.money a, .money a:hover {
    font-size: 1.5em;
  padding: 2vh 1.5vw;
  background-color: #0ed515;
  color: #fff;
  border-radius: 3em;
  font-weight: 600;
}
.money a:hover{
  opacity: 0.6;
}
.money fa-hand-pointer {
    font-size: 0.68em;
}
@media screen and (max-width: 65em) {

.money a:hover,.money a{
    font-size: 1.2em;
  padding: 2vh 3vw;
  background-color: #0ed515;
  color: #fff;
  border-radius: 3em;
}
}

    .sticky-mobile-btn {
        position: fixed;
        bottom: 15vh; 
        right: 10px;
        z-index: 9999;
        display: block;
    }

    .sticky-mobile-btn a {
        background-color:#ffd0e8;
        border: solid 2px #530c0c;
        color:#530c0c;
        padding: 20px 10px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 16px;
        line-height: 1.35;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        gap: 8px;
        animation: pulse-animation 2s infinite;
    }

    /* 加入 LINE 圖示的大小控制 */
    .sticky-mobile-btn i {
        font-size: 20px;
    }

/* 呼吸動畫定義 */
@keyframes pulse-animation {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 185, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 185, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 185, 0, 0); }
}

/* 在桌機版時隱藏這個專用按鈕 */
/* @media screen and (min-width: 769px) {
    .sticky-mobile-btn {
        display: none;
    }
} */
@media screen and (max-width: 768px) {
    .sticky-mobile-btn {
        position: fixed;
        bottom: 15vh;
        right: 20px;
        z-index: 9999;
        
        /* --- 新增：預設狀態 --- */
        opacity: 0;           /* 透明 */
        visibility: hidden;    /* 隱藏 */
        transform: translateY(20px); /* 往下位移 20px */
        transition: all 0.5s ease;   /* 動畫時間 0.5 秒 */
    }

    /* --- 新增：當有 'show' 這個類別時的狀態 --- */
    .sticky-mobile-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0); /* 回到原位 */
    }
}

#ans_down{
  color:#333;
  text-align: center;
  padding: 8vh 10vw;
  margin: 0 auto;
}
#ans_down {
  background-color: rgba(255,255,255,0.3);

}

@media screen and (max-width:720px){
#ans_down h2{
  font-size: 1.5em;
}
}


@media (max-width: 50em){
#ans_down{
  padding: 5vh 5vw;
}
}

.down{
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  color: #333;
  font-size: 1.2em;
  line-height: 1.5;
  text-align: center;
  /*padding: 3px;*/
  border-radius: 3px;
  border-collapse: inherit;
  table-layout: fixed;
  background-color: #fff;
  border:1px solid rgba(255,175,122,0.5);
}
.down th {
    padding:8px 2px;
    text-align: center;
    border-left: 1px solid #fff;
    background-color: #ff355e;color: #fff;
     /*background-color: #4b7ae5;*/
     /*background-color: #fcaa2f;*/
}
.down td{
  padding:8px 3px;
  border-left:1px solid rgba(255,175,122,0.5);
  border-bottom:1px solid rgba(255,175,122,0.5);
}

.down td:nth-child(1):hover{
  background-color: rgba(255, 230, 230,0.3);
  color: #0033cc;
  cursor: pointer;
}
.down td:nth-child(1) {
  text-align: left;
  width: 65%;
}

.number{
  font-size: 12px;
  background-color:#ffab91;
  color: #fff;
  border-radius: 50%;
  padding:2px 6px;
  font-family: "Courier New";
  margin: 0px 10px;
}
.pdf{
  color: #ffab91;
  float: right;
  left: auto;
  padding-right:20px;
  font-size:36px;
  /*line-height:1;*/
}
.pdf_d{
  color: #ccc;
  float: right;
  left: auto;
  padding-right:20px;
  font-size:36px;
  cursor: no-drop;
  /*line-height:1;*/
}
.ans{
  color:#ffab91;
  font-size:36px;
}

.ans_d{
  color:#eee;
  font-size:36px;
  cursor: no-drop;
}
@media (max-width: 50em){

.down{
  width: 100%;
   font-size:1em;
}
.down td:nth-child(1) {
  width: 55%;
}
}
@media screen and (max-width:900px){
.number{
  padding:2px 5px;
  margin: 0px 3px;
}
.pdf{
  padding-right:5px;
  font-size:26px;
  /*line-height:1;*/
}
.ans_d,.pdf_d{
  color:#eee;
  font-size:26px;
}
.ans{
  font-size:26px;
}
}
.custom-select {
  padding: 0;
  border: 1px solid #27e6cc;
  width: 180px;
  margin: 5px auto 25px;
  overflow: hidden;
  font-size: 1.2em;
  /*background: transparent url(../img/top.png) no-repeat 94% 50%;*/
}

.custom-select select {
  padding: 10px 10px;
  cursor: pointer;
  width: 100%;
  color: #81c8ff;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-indent: 0.01px;
    text-overflow: '';
}

.custom-select select:focus {
  outline: none;
}
select  {
font-size: 0.7em;
}
@media screen and (max-width: 765px) {
  .custom-select {
  width: 120px!important;
  margin: 5px auto 25px;
  overflow: hidden;
  font-size: 1.1em;
  /*background: transparent url(../img/top.png) no-repeat 94% 50%;*/
}

}
#foodnews {
  --exam-dark: #511717;
  --exam-light: #edf9f7;
  --exam-accent: #f2a65a;
  --exam-line: #ffd7b4;
  overflow: hidden;
  background:rgba(255, 216, 192, 0.5);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  text-align: center;
}
#foodnews article {
  padding: 2vh 1vw;
  text-align: left;
}
#foodnews h2 {  margin-bottom: 3vh;}
#foodnews h2 span {
  padding: 7px 16px;
  color: #fff;
  background: #ff9d6e;
  border-radius: 999px;
}
/* 輪播控制列 */
.exam-slider__toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1320px, 100%);
  margin: 0 auto 24px;
}

.exam-slider__status {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--exam-muted);
}

.exam-slider__status strong {
  line-height: 1;
}
.exam-slider__buttons {
  display: flex;
  gap: 10px;
}

.exam-slider__button {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: var(--exam-dark);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.exam-slider__button:hover {
  background: var(--exam-main);
  transform: translateY(-2px);
}

.exam-slider__button:focus-visible,
.exam-slider__track:focus-visible {
  outline: 3px solid rgba(242, 166, 90, .75);
  outline-offset: 4px;
}
.exam-slider__button:disabled {
  cursor: default;
  opacity: .28;
  transform: none;
}
/* 輪播視窗 */
.exam-slider__viewport {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding-left: max(20px, calc((100vw - 1320px) / 2));
}

.foodnews__list.exam-slider__track {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 22px;
  overflow-x: auto;
  align-items: stretch;
  padding: 4px max(20px, calc((100vw - 1320px) / 2)) 34px 0;
  scroll-behavior: smooth;
  scroll-padding-left: 20px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.foodnews__list.exam-slider__track::-webkit-scrollbar {
  display: none;
}

/* 每張完整資訊卡 */
.foodnews article.exam-topic {
  padding: 0;
  color: var(--exam-text);
  letter-spacing: normal;
}

.exam-slider__slide {
  display: flex;
  width: clamp(680px, 88vw, 1180px);
  min-width: clamp(680px, 88vw, 1180px);
  flex: 0 0 clamp(680px, 88vw, 1180px);
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--exam-line);
  border-radius: 22px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}



.exam-topic__head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 20px 26px;
}

.exam-topic__number {
  display: grid;
  width: 60px;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: 
linear-gradient(135deg, #ffd585, #f88a23);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(22, 123, 125, .2);
  font-size: 21px;
  font-weight: 900;
}

.exam-topic__title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.exam-topic__title strong {
  color: var(--exam-dark);
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.35;
}

.exam-topic__title small {
  overflow: hidden;
  color: var(--exam-muted);
  font-size: 15px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-topic__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  flex: 1;
  padding: 0 26px 28px;
}

.exam-topic__block,
.exam-topic__evidence {
  padding: 22px;
  border-radius: 16px;
}

.exam-topic__block {
  background: #fffef7;
  border: 1px solid rgb(255, 231, 213);
}

.exam-topic__block--question {
  background: #fff9f2;
  border-color: #f4dfc9;
}

.exam-topic__evidence {
  grid-column: 1 / -1;
  background: var(--exam-light);
  border: 1px solid rgba(22, 123, 125, .16);
}

.exam-topic__content h3 {
  margin: 0 0 10px;
  color:#edbb86;
}

.exam-topic__block--question h3 {
  color: #b86a24;
}

@media (max-width: 980px) {
  .exam-slider__slide {
    width: 88vw;
    min-width: 88vw;
    flex-basis: 88vw;
  }

  .exam-slider__toolbar {
    width: 100%;
  }

  .exam-slider__viewport {
    padding-left: 16px;
  }

  .foodnews__list.exam-slider__track {
    padding-right: 16px;
  }

  .exam-topic__content {
    grid-template-columns: 1fr;
    padding-left: 92px;
  }

  .exam-topic__evidence {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .exam-topic__head {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    min-height: 100px;
    padding: 18px 20px;
  }

  .exam-topic__number {
    width: 54px;
    border-radius: 16px;
  }

  .exam-topic__content {
    padding: 0 20px 24px 92px;
  }
}

@media (max-width: 68em) {
  .foodnews {
    padding-inline: 14px;
  }

  .exam-slider__toolbar {
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  .exam-slider__buttons {
    display: none;
  }

  .exam-slider__viewport {
    padding-left: 14px;
  }

  .foodnews__list.exam-slider__track {
    gap: 12px;
    padding-right: 14px;
    padding-bottom: 20px;
  }

  .exam-slider__slide {
    width: 92vw;
    min-width: 92vw;
    flex-basis: 92vw;
    border-radius: 18px;
  }

  .exam-slider__hint {
    display: block;
  }

  .exam-topic__head {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 11px;
    min-height: 88px;
    padding: 15px 14px;
  }

  .exam-topic__number {
    width: 44px;
    border-radius: 13px;
    font-size: 16px;
  }

  .exam-topic__title strong {
    font-size: 18px;
  }

  .exam-topic__title small {
    font-size: 13px;
    white-space: normal;
  }

  .exam-topic__content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 14px 16px;
  }

  .exam-topic__block,
  .exam-topic__evidence {
    padding: 17px;
    border-radius: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .foodnews__list.exam-slider__track {
    scroll-behavior: auto;
  }

  .exam-slider__button,
  .exam-slider__slide {
    transition: none;
  }
}
  @media (max-width: 640px) {
    #foodnews {
      padding-inline: 14px;
    }
  }

  #foodnews ul,
  #foodnews ol,
  #foodnews .exam-topic__steps {
    margin: 0;
    padding: 0;
  }

  #foodnews ul {
    padding-left: 1.25em;
  }

  #foodnews ul li + li {
    margin-top: 8px;
  }

  #foodnews ol,
  #foodnews .exam-topic__steps {
    list-style: none;
  }

  #foodnews ol {
    counter-reset: food-rank;
  }

  #foodnews ol li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #ead5bf;
    counter-increment: food-rank;
  }

  #foodnews ol li::before {
    content: counter(food-rank);
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    background: #f2a65a;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
  }

  #foodnews ol span {
    color: #7b5b3f;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }




  @media (max-width: 640px) {
    #foodnews ul,
    #foodnews ol {
      font-size: 15px;
    }

    #foodnews ol li {
      grid-template-columns: 26px minmax(0, 1fr);
    }

    #foodnews ol span {
      grid-column: 2;
      white-space: normal;
    }

  }

  
/* 老師 */
#teacher h2 img{width:300px;}
#teacher {
    background-color: transparent; 
    padding-bottom: 8vh;
    text-align: center;
}

.teacher-slider-container {
    position: relative;
    margin: 0 auto;
}

.teacher-viewport {
    overflow: hidden;
    padding: 20px 10px;
    -webkit-overflow-scrolling: touch; /* 在手機版支援原生滑動 */
}

.teacher-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* --- 卡片設計 --- */
.teacher-card-slide {
    flex: 0 0 33.333%; /* 預設桌機顯示 3 張 */
    min-width: 33.333%;
    padding: 0 8px;
    box-sizing: border-box;
}

.teacher-card-inner {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(90, 75, 153, 0.08);
    border: 1px solid #f0eaff;
    overflow: visible; /* 讓頭像可以突出 */
    position: relative;
    height: 90%;
    display: flex;
    flex-direction: column;
    padding: 0 25px 30px;
    margin-top: 60px; /* 為突出頭像預留空間 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-card-slide:hover .teacher-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(90, 75, 153, 0.15);
}

#teacher figure {
    width: 200px;
    height: 200px;
    margin: -60px auto 15px; /* 往上移出一半 */
    border-radius: 50%;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

#teacher figure img {
    width: 85%;
    height: auto;
    object-fit: cover;
    object-position: bottom;
    /* 避免圖片下方被切切得太生硬，稍微往下沉 */
    transform: translateY(30px);
}

.teacher-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

#teacher h3 {
    font-size: 1.5em;
    color: #6859a5;
    margin-bottom: 5px;
    font-weight: 400;
    text-align: center;
}

#teacher h3 strong {
    font-size: 1.2em;
}

.teacher-tag {
    display: inline-block;
    background: #ffe3ce;
    color: #703308;
    font-size: 0.6em;
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 5px;
    font-weight: 600;
}

#teacher h4  {
    color: #6859a5;
    font-size: 1.1em;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ffd8e0;
    padding-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

#teacher ul {
    list-style: none ;
    padding: 0 ;
    margin:0;
    flex: 0.8; /* 推開底部按鈕 */
}

#teacher ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom:5px;
}

#teacher ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #86d135;
    font-weight: bold;
}

.teacher-action {
    text-align: center;
    min-height: 0px; /* 保留高度即使沒有按鈕 */
}

.btn-listen {
    display: inline-block;
    background: linear-gradient(to right, #ff4e50 0%, #f9d423 100%);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: filter 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(255, 78, 80, 0.3);
}

.btn-listen:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.btn-listen i {
    margin-right: 5px;
    font-size: 1.1em;
    color: #fff;
    padding: 0;
}

/* --- 輪播控制組件 --- */
.teacher-nav-btn {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e0d8f5;
    border-radius: 50%;
    color: #5a4b99;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.teacher-nav-btn:hover {
    background: #5a4b99;
    color: #fff;
    border-color: #5a4b99;
}

.teacher-nav-btn.prev-btn { left: -20px; }
.teacher-nav-btn.next-btn { right: -20px; }

.teacher-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.teacher-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dcd3f5;
    cursor: pointer;
    transition: all 0.3s;
}

.teacher-dot.active {
    background: #5a4b99;
    width: 25px;
    border-radius: 5px;
}

/* --- 響應式設定 --- */
@media (max-width: 1024px) {
    .teacher-card-slide {
        flex: 0 0 50%; /* 平板顯示 2 張 */
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .teacher-card-slide {
        flex: 0 0 85%; /* 手機顯示單張並露出邊緣 */
        min-width: 85%;
        padding: 0 10px;
    }
    
    .teacher-nav-btn {
        display: none; /* 手機隱藏左右箭頭，靠滑動 */
    }
    
    .teacher-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 30px; /* 為陰影留空間 */
    }
    
    .teacher-track {
        transition: none; 
    }
    
    .teacher-card-slide {
        scroll-snap-align: center;
    }
}