@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
@import url(https://fonts.googleapis.com/earlyaccess/cwtexyen.css);
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Baloo');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;700&display=swap');
*, *::after, *::before { -webkit-box-sizing: border-box; box-sizing: border-box; }
html {scroll-behavior: smooth;}
::selection{background: #fff6ea;}
:root {
  --bg-color: #1a1a1a;   
  --text-main: #1a1a1a;      
  --text-light: #ff8425;     
  --accent-green:#812a11;   
  --btn-bg: #1a1a1a;
  --btn-text: #ffffff;
}
body {  
  margin: 0 0; 
  font-size: 1em;
  line-height: 1.8;
  letter-spacing: 0.5px;
  font-weight: 300;
  overflow-x: hidden;
  font-family: "Arial","Noto Sans TC" , sans-serif;
  background-color: #fff;
    background-image: linear-gradient(0deg, #e2e9ff 1px, transparent 1px), linear-gradient(90deg, #e2e9ff 1px, transparent 1px);
    background-size: 100% 1.5rem, 1.5rem 100%;
    background-position: center;
    background-repeat: repeat;
}
#gotop {
width:3.8em;
height:3.8em;
text-align: center;
border:1px solid #ddd;
position: fixed;
right: 10px;
bottom: 10vh;
border-radius:50%;
padding:6px 0px;
font-size:0.9em;
background: rgba(0,0,0,0.7);
border: 1px;
color: white;
cursor: pointer;
z-index: 300;
}
@media screen and (max-width:46em){
  #gotop {
  font-size:13px;
  padding-top: 5px;
  bottom:65px;
  }
  body { font-weight: 300;}
}
table {border-collapse: collapse;border-spacing: 0;}
h1,h2,h3,h4,h5,h6,p,ul,ol {margin: 0; padding: 0;}
@media (max-width:55em) { .br_s {display: none;}}
@media (min-width:55em) {.br_d {display: none;}}
.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;
}
#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:75em) {article {padding: 5vh 8vw; }}
@media screen and (max-width:38em) {article {padding: 5vh 5vw;}}
@media screen and (max-width:40em) {article {font-size: 0.95em; }}
article h2 img {width: 200px;}
article h2 .splogo {width: 120px;}
article {
    font-size: 1.1em;
    padding:8vh 8vw;
    color: #333;
    text-align: center;
    margin: auto;
    z-index:99;
    letter-spacing: 0.5px;
    position: relative;
}
article h2 {
   font-family: "Noto Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
    font-size: 1.8em;
    font-weight: 300;
    color:#97c5ff;
    line-height: 1.3;
    margin: 3vh 0;
}
article h2 br {
    display: none;
}
article h2 span  {
  font-size: 155%;
  display: block;
  font-weight: 600;
}

article h3 {
    color: #3c8fff;
    line-height: 1.2;
    font-weight: 300;
    font-size: 2em;
}
article h3 span {
    font-size:68%;
}
@media screen and (max-width: 40em) {
article {
    font-size: 1.1em;
    padding:8vh 5vw;
    color: #333;
    text-align: center;
}
article h2 {
  font-size: 1.6em;
}
article h2 span {
    font-size: 1.25em;
    font-weight: 800;
    color: #2a91ff;
}

article h2 span::before {
    content: '＼';
    padding-left: 20px;
    font-size: 50%;
}
article h2 span::after {
    content: '／';
    padding-right: 20px;
    font-size: 50%;
}
article h2 br {
  display: block;
}
article h2 img {
  width: 150px;
}
}

/* ===== 雜誌風首頁大圖輪播 ===== */
.mag-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  font-family: "Noto Serif TC", "Noto Sans TC", "Microsoft JhengHei", serif;
}
.mag-header {
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  padding: 34px 8vw;
  display: flex;
  align-items: center;
  gap: 48px;
  box-sizing: border-box;
  transition:
    height 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.mag-logo {
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1;
  font-weight: 700;
  color: #4791f6;
  text-decoration: none;
  letter-spacing: -0.06em;
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
  transition:
    font-size 0.35s ease,
    letter-spacing 0.35s ease,
    color 0.35s ease;
    text-shadow:  0 4px 18px rgba(255, 255, 255, 0.8);
}
/* 往下滑後：固定置頂，高度 45px */
.mag-header.is-scrolled {
  position: fixed;
  height: 45px;
  padding: 0 6vw;
  background: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* 往下滑後：Logo 縮小 */
.mag-header.is-scrolled .mag-logo {
  font-size: 24px;
  letter-spacing: 0.04em;
}
/* 往下滑後：桌機選單也縮小一點 */
.mag-header.is-scrolled ~ .mag-nav {
  position: fixed;
  top: 0;
  right: 6vw;
  bottom: auto;
  height: 45px;
  display: flex;
  align-items: center;
  z-index: 1002;
}
.mag-header.is-scrolled ~ .mag-nav a {
  font-size: 14px;
  text-shadow: none;
}
.mag-nav {
  position: absolute;
  z-index: 1000;
  top: 34px;
  right: 8vw;
  height: clamp(52px, 8vw, 108px);
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 0;
}

.mag-nav a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.mag-nav a:hover { color:#2a91ff;}
@media (max-width: 68em) {
  .mag-header {padding: 28px 6vw; }
  .mag-nav {gap: 18px;}
}

/* 手機 */
@media (max-width: 40em) {
.mag-header { padding: 22px 6vw;gap: 20px;}
.mag-logo {font-size: 56px;}
.mag-header.is-scrolled {height: 45px; padding: 0 5vw;}
.mag-header.is-scrolled .mag-logo {font-size: 21px;letter-spacing: 0.05em;}
.mag-nav,.mag-header.is-scrolled ~ .mag-nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom:6.5vh;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
    display: flex !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    box-sizing: border-box;
    
  }
  .mag-nav a,.mag-header.is-scrolled ~ .mag-nav a {
    width: 20%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-shadow: none;
    border-right: 1px dotted rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
  }
  .mag-nav a:last-child {border-right: 0;}
}
.mag-search {
  display: flex;
  align-items: center;
  width: 230px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}
.mag-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 8px 4px;
  font-size: 15px;
}

.mag-search input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.mag-search button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}



/* 輪播 */
.mag-slider,
.mag-slide {
  width: 100%;
  height: 100%;
}
.mag-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.mag-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-01 {background-image: url("img/bg.jpg");}
.hero-02 {background-image: url("img/bg-2.jpg");}
.hero-03 {background-image: url("img/bg-3.jpg");}

/* .mag-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.28) 38%,
      rgba(0, 0, 0, 0.1) 70%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(0, 0, 0, 0.5) 100%
    );
} */
.mag-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
/* 文字區 */
@property --circleDeg {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
#top h1,
#top h2 {
  margin: 0;
  font-size: clamp(36px, 4.1vw, 68px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
  color: #fff;
}
#top p {
  margin: 18px 0 ;
  font-size: 1.5em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}
#top  p span {
  background: rgba(26, 26, 26, 0.926);
  padding: 3px ;
}
#top .mag-content {
  position: absolute;
  z-index: 2;
  left: 5vw;
  bottom: 9vh;
}
.mag-tag {
  position: absolute;
  top:2vh;
  left:1vw;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:#ff7f5f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.35;
  font-size: 18px;
  margin-bottom: 26px;
}
#top .hero-01 .mag-tag {
  background:#ffcabd;
  color: #683613;
}
.mag-tag b {
  font-size: 22px;
  font-weight: 500;
}
.mag-category {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.86);
}

.mag-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  height: 46px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: 0.25s ease;
}
.mag-btn:hover {
  background: #fff;
  color: #111;
}
/* 左右箭頭 */
.mag-arrow {
  position: absolute;
  z-index: 12;
  bottom: 8vh;
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 64px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: 0.25s ease;
}
.mag-arrow:hover {
  color: #d9b557;
  transform: translateY(-2px);
}
.mag-prev {right: 150px;}
.mag-next {right: 85px;}
/* 點點 */
.mag-dots {
  position: absolute;
  z-index: 12;
  left: 8vw;
  bottom: 36px;
  display: flex;
  gap: 10px;
}
.mag-dots button {
  width: 32px;
  height: 3px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.mag-dots button.is-active { background: #d9b557;}

/* 平板 */
@media (max-width: 68em) {
  .mag-search {width: 180px;}
  .mag-content {left: 6vw;width: 80vw;}
}
/* 手機 */
@media (max-width: 40em) {
  #top h1,#top h2 {
    line-height: 1.35;
  }
  #top p {
  font-size: 1.2em;
}

  .mag-hero {
    height: 86vh;
    min-height: 560px;
  }

  .mag-content {
    left: 6vw;
    right: 6vw;
    bottom: 90px;
    width: auto;
  }
  .mag-tag {
    width: 88px;
    height: 88px;
    font-size: 15px;
    margin-bottom: 18px;
  }
  .mag-category {display: none;}
  .mag-search {display: none;}
  .mag-tag b {font-size: 18px;}
  .mag-desc { font-size: 16px;}
  .mag-btn {height: 42px;min-width: 132px;}
  .mag-arrow {bottom: 28px;font-size: 46px;}
  .mag-prev {right: 82px;}
  .mag-next {right: 28px;}
  .mag-dots {left: 6vw;bottom: 42px;}
    
}

main {
  position: relative;
     z-index: 5;
}
#exam  {
  background:#dcecff url(img/top_bg.png) bottom center repeat-x;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom:22vh ;
}
#exam img {
  margin: auto;
  width: 68%;
  border-radius: 2em ;
  border: solid 1px #a8a8a8;
}
#exam::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: #e5e5e5;
}
#exam .exam-content {
  width: 100%;
  margin: auto;
  margin-top: 5vh;
  padding: 8vh 5vw;
  border-radius: 3em;
  background-color: #fff;
  border: solid 1px rgba(255, 225, 225,0.8);
  
}
#exam table {
    width: 100%;
}
#exam table th {
    width: 25%;
    vertical-align: top;
    
}
#exam table td {
    border-bottom: solid 1px  rgba(255, 225, 225, 0.8);
    text-align: left;
    padding:3vh 1vw ;
}
#exam table mark {
    background-color:rgba(255, 225, 225, 0.0);
    padding: 3px;
    font-weight: 600;
}
#exam table p  {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background-color:#f6f6f6;
    padding-top: 23px;
    text-align: center;
    font-size: 1.25em;
    line-height: 1.35;
    margin: auto;
}
#exam caption,#exam td strong  {
    font-weight:400;
    font-size: 1.1em;
    color: #3c8fff;
}
#exam caption span  {
  background-color:  #3c8fff;
  border-radius: 1em;
  padding: 1vh 1vw;
  color: #fff;
}
#exam ul {list-style: disc;}
#exam details {margin: 3vh 0;}
#exam summary {margin-bottom: 2vh;}
#exam details[open] {
  color: #2a91ff;
 font-weight: 400;
}
#exam details[open] mark {
  background-color: #ffe93f73;
   color: #2a91ff;
   font-weight: 500;
}
#exam summary span{
  background: #2a91ff url(img/bg-px.png) center;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 1.5vh 1vw;
}
#exam details a,#exam details a:hover {
  color: #ff4542;
}
#exam .exam-intro h2 {
  margin: 0 0 1vh;
  color: #fff;
  font-weight: 700;
}
#exam .exam-intro ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}
#exam .exam-intro ul li {
  background: #fff;
  border-radius: 1em;
  padding: 3vh 1vw 15vh;
  border: 1px solid #ececec;
  background:url(img/e3.png) no-repeat center bottom -2vh;
  background-size:28%;
}
#exam .exam-intro ul li:nth-child(2){ background:url(img/e2.png) no-repeat center bottom -2vh;background-size:28%;}
#exam .exam-intro ul li:nth-child(3){ background:url(img/e1.png) no-repeat center bottom -2vh;background-size:28%;}

#exam ul strong{
 display:block;
  color: #2e2d2e;
  font-weight: 800;
  font-size:125%;
  margin-bottom: 6px;
}
#exam ul p{ margin:0; color:#333; line-height:1.6; }
@media (max-width:68em){
  #exam .exam-intro ul {grid-template-columns: repeat(1, minmax(0,1fr));}
  #exam .exam-intro ul li p { text-align: left;}
  #exam .exam-intro ul li{
    padding: 3vh 5vw 5vh 25vw;
    background:#fff url(img/e3.png) no-repeat left 3vw bottom -2vh; 
    background-size:20%;
}
#exam .exam-intro ul li:nth-child(2){  background: #fff url(img/e2.png) no-repeat left 3vw bottom -2vh; background-size:20%;}
#exam .exam-intro ul li:nth-child(3){  background: #fff url(img/e1.png) no-repeat left 3vw bottom -2vh; background-size:20%;}
}
@media (max-width:40em){
  #exam table th {width: 20%;} 
  #exam .exam-intro ul { grid-template-columns: 1fr; }
  #exam .exam-intro ul li,
  #exam .exam-intro ul li:nth-child(2), 
  #exam .exam-intro ul li:nth-child(3){
        border-left: 5px solid #ff9e00;
        background-color: #fff;
        border-radius: 0;
        box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  }
  #exam .exam-intro ul li{
   padding: 3vh 5vw 5vh 32vw;
   background:#fff url(img/e3.png) no-repeat left 1vw bottom -2vh; 
  background-size:30%;
}
#exam .exam-intro ul li:nth-child(2){  
  background: #fff  url(img/e2.png) no-repeat left 1vw bottom -2vh;
   background-size:30%;
  }
#exam .exam-intro ul li:nth-child(3){  
  background: #fff  url(img/e1.png) no-repeat left 1vw bottom -2vh; 
  background-size:30%;
}

    #exam table td {
        padding:2vh 1vw ;
        position: relative;
        font-size: 95%;
    }
    #exam table p  {
        position: absolute;
        left: 1vw;
        width: 75px;
        height: 75px;
        border-radius: 50%;
        padding-top:12px;
        text-align: center;
        font-size: 1.1em;
        background-color:#ffe9e8;
    }

  }
#faq {
    text-align:center ;
    position: relative;
    font-weight: 400;
    padding-bottom: 20vh;
    z-index: 99;
    background:#e4f0ff url(img/top_bg.png) bottom -3vh center repeat-x;
}

#faq section {
  position: relative;
  padding-right: 80px;
  cursor: pointer;   
}
#faq details {
  background: #fff;
    background-size: 1%;
    border-bottom:#3c76ff 1px dashed;
    border-left:#3c8fff 12px solid;
    padding: 4vh 8vw;
    margin: auto;
    text-align: left;
}

#faq summary {
    position: relative;
    padding-right: 80px; 
    padding-left: 55px; 
    cursor: pointer;
    line-height: 1.5;
}

#faq details summary::before {
    content: "Q";
    position: absolute;
    left: 0;        
    top: 50%;      
    transform: translateY(-50%);
    background-color: #ddd;
    color: #fff;
    width: 40px;  
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    font-size: 1.3em;
    font-weight: bold;
}

#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: 0;
    top: 50%; 
    font-size: 150%;
    transform: translateY(-50%); 
    color:#ff9e00;

}
#faq details[open] summary::after {
   content:"- close"; 
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    position: absolute;
    right: 0; 
    top: 50%; 
    transform: translateY(-50%); 

}
#faq details[open] {
  border:dashed 1px #c7dfff;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.8);
  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 #c7dfff;
  padding-bottom: 1vh;
  color: #3c8fff;
  font-weight: 600;
}
#faq details[open] summary::before{
background-color: #3c8fff;
}
#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 h4 {
    font-size: 1.5em;
    margin-top:5vh;
}
#faq h5 {
  font-size: 1.25em;
  margin: 5vh 0 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 #3c8fff, 0.01em -0.03em 0 #3c8fff, 0.08em 0.005em 0 #3c8fff, 0em 0.08em 0 #3c8fff, 0.05em 0.08em 0 #3c8fff, 0px -0.05em 0 #3c8fff, -0.06em -0.05em 0 #3c8fff, -0.08em 0.08em 0 #3c8fff, -0.09em 0 0 #3c8fff;
    -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 #3c8fff, 
    0.01em -0.03em 0 #3c8fff, 
    0.08em 0.005em 0 #3c8fff, 
    0em 0.08em 0 #3c8fff, 
    0.05em 0.08em 0 #3c8fff, 
    0px -0.05em 0 #3c8fff,
     -0.06em -0.05em 0 #3c8fff,
     -0.08em 0.08em 0 #3c8fff,
     -0.09em 0 0 #3c8fff;
}
#faq mark {
    background-color: #d6f7b4;
}
#faq p ins {
    color:#3c8fff;
    font-weight: 600;
}
#faq em {
    font-size: 90%;
    line-height: 1.35;
    color: #999;
}
#faq ol{padding: 0 0 0 21px;}

@media screen and (max-width:65em) {
    #faq {
        padding:5vh 2vw;
    }
    #faq details {
      background: url(https://www.easywin.com.tw/ad/113/0308/img/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 h6{
        font-size:3.5em;
        text-shadow: 0 0.15em 0px #3c8fff, 0.01em -0.03em 0 #3c8fff, 0.08em 0.005em 0 #3c8fff, 0em 0.08em 0 #3c8fff, 0.05em 0.08em 0 #3c8fff, 0px -0.05em 0 #3c8fff, -0.06em -0.05em 0 #3c8fff, -0.08em 0.08em 0 #3c8fff, -0.09em 0 0 #3c8fff;
        -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 #3c8fff, 
        0.01em -0.03em 0 #3c8fff, 
        0.08em 0.005em 0 #3c8fff, 
        0em 0.08em 0 #3c8fff, 
        0.05em 0.08em 0 #3c8fff, 
        0px -0.05em 0 #3c8fff,
         -0.06em -0.05em 0 #3c8fff,
         -0.08em 0.08em 0 #3c8fff,
         -0.09em 0 0 #3c8fff;
    }
    #faq summary {padding-right: 60px;   }
    #faq details summary::after,
    #faq details[open] summary::after {
        font-size: 15px; 
    }

}
#double {
  background: #c7dfff url(img/top_bg.png) top -3vh center repeat-x;
  position: relative;
  text-align: center;
  padding-top: 16vh;
}
#double h2 {
  color: #333;
}
#double p {margin: 2vh 0;}
#double .one{
  display: flex;
  display: -webkit-flex;
  list-style: none;
  justify-content: center;
  align-items: stretch;
  margin-top: 2vh;
  padding-bottom: 5vh;
  line-height: 1.5;
}
#double .one li {
  position: relative;
  margin: 1vh 1vw;
  width:12%;
}
#double ol strong {
  color:#6c6ed9;
  display: block;
  font-weight: 600;
}
#double ol time {
  font-family: "Mukta", "Noto Sans TC", "Arial", sans-serif;
  font-size: 1.15em;
  line-height: 3;
  padding: 0.5vh 1vw ;
  background: #6c6ed9;
  border-radius: 1em;
   color: #fff;
}
#double .one ul li:last-child {width: 100%;}

@media (max-width:55em) {
#double ol strong {font-size: 100%;}
#double ul li strong {font-size: 1.1em;}
#double {overflow-x: auto;}
/* #double table {min-width: 600px; white-space: nowrap;} */
}
@media (max-width:40em) {
#double {padding: 8vh 3vw;}  
#double ul li  {width: 100%;}
#double .one{
  flex-wrap: wrap;
  margin-top: 2vh;
  padding-bottom: 2vh;
}
#double .one li {
  width: 28%;
  height: auto;
  margin-bottom: 3vh;
  font-size: 80%;
}
}
#double table {
    width: 100%;
    margin:2vh auto 3vh;
    text-align: center;
    font-family: "Mukta", "Noto Sans TC", "Arial", sans-serif;
    background-color: #fff;
    table-layout: fixed;
    border:solid 2px #9091e9;
} 
#double table caption {
      color: #15399e;
      font-size: 2em;
}
#double table thead {
    background-color:#fff1cc;
    color: #333;
}

#double table td,#double table th {
    padding: 0.6vh 0.5vw;
    /* font-size: 1.15em; */
     border-bottom: solid 1px #333;
    border-right: solid 1px #333;
    color: #333;
}
#double table thead td,
#double table thead th {
    font-weight: 500;
    border-bottom: solid 1px #333;
    border-right: solid 1px #333;
    
}
#double table thead td{
    background-color:#ecf0ff;
    color: #333;
}
#double table th:first-child, #double table th:nth-child(2) { 
    width: 22%;
    font-weight: 500;
}
#double table tbody th:first-child {color: #6c6ed9;}
#double table thead th {position: relative;}
#double table small{
    display: block;
    color: #6c6ed9;
    font-weight: 600;
}
#double table thead th h4 {
    position: relative;
    font-weight: 900;
    font-size:1.5em;
    line-height: 1.35;
    color:#333;

}
@media screen and (max-width:55em) {
    #double table td,#course table th {
        padding: 1vh 0.5vw;
        font-size: 0.9em;
    }
#double table thead th h4 {
    font-size:1.35em;
    line-height: 1.35;
}
#double table th:first-child { 
    width: 38%;
    font-weight: 500;
    font-size: 90%;
}
}

#course {
    text-align: center;
    position: relative;
    z-index: 9;
    padding:15vh 5vw;
    background-color: #fafdff;
}

#course .two {
  width: 95%;
  list-style: none;
  text-align: left;
  margin: auto;
  margin-top: 8vh;
  display: grid;
  grid-template-columns:repeat(4,1fr);
  gap:2vw;
 justify-content: space-between;
  align-items: stretch;

}
#course .two p {
  z-index: 2;
  position: relative;
}
#course .two p span {
  font-weight: 500;
}
#course .two li {
  position: relative;
  border-left: solid 1px #ffdfc8;
  padding-left: 2vw;
    
}
#course .two li img {
  --rot: 0deg;
  --delay: 0s;
  position: absolute;
  width: 135%;
  border-radius: 1%;
  display: block;
  background: #eee url(img/top_bg3.png);
  border: solid 5px #fff;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(0) rotate(var(--rot));
  animation: coursePhotoFloat 4.8s ease-in-out infinite;
  animation-delay: var(--delay);

  transition:
    transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease,
    filter 0.4s ease;
}

/* 每張圖保留原本角度與位置 */
#course .two li:nth-child(5) img {
  --rot: -3deg;
  --delay: 0s;
  top: 15vh;
  left: -8vw;
}

#course .two li:nth-child(6) img {
  --rot: 2deg;
  --delay: 0.35s;
  top: 18vh;
  left: -6vw;
}

#course .two li:nth-child(7) img {
  --rot: -1deg;
  --delay: 0.7s;
  top: 14vh;
  left: -4vw;
  z-index: 8;
}

#course .two li:nth-child(8) img {
  --rot: 2deg;
  --delay: 1.05s;
  top: 17vh;
  left: 0vw;
}
#course .two li:nth-child(n+5) img {
  opacity: 0;
  transform: translateY(40px) rotate(var(--rot)) scale(0.96);
}

/* 滑到畫面後才出現 */
#course .two li:nth-child(n+5) img.is-visible {
  animation:
    coursePhotoIn 0.8s ease forwards,
    coursePhotoFloat 4.8s ease-in-out infinite;
  animation-delay: var(--delay), calc(var(--delay) + 0.8s);
}

/* 進場動畫 */
@keyframes coursePhotoIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(var(--rot)) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot)) scale(1);
  }
}

/* 漂浮動畫 */
@keyframes coursePhotoFloat {
  0%, 100% {
    transform: translateY(0) rotate(var(--rot));
  }

  50% {
    transform: translateY(-14px) rotate(calc(var(--rot) + 0.6deg));
  }
}

#course .two strong {
  background-color: #ff9e00;
  border-radius: 1em;
  padding: 0.5vh 1vw;
  margin-right: 1vw;
  font-size: 1.2em;
  color: #fff; 
    text-align: center;
}
#course .two span {
  color: #ff9e00;
}

#course table {
    width: 80%;
    margin:3vh auto 5vh;
    text-align: center;
    font-family: "Mukta", "Noto Sans TC", "Arial", sans-serif;
    table-layout: fixed;
} 
#course table caption {
      /* color: #6c6ed9; */
      color: #97c5ff;
      font-size: 2em;
      font-weight: 600;
}
#course table td,#course table th {
    padding: 0.5vh 0.2vw;
    position: relative;
    font-size: 1.1em;
}
#course table tr { border-bottom: solid 1px #ddd;}
#course table td:last-child{
    font-size: 2em;
    font-weight: 800;
    color:#97c5ff;
}
#course table td:first-child{width: 55%;}
#course table td:last-child span {font-size: 60%;}
#course h6 {
   position: absolute;
   top: 1vh;
   left: 0;
  font-size: 0.8em;
  background: #97c5ff;
  border-radius: 1em;
  padding:6px 0;
  font-weight: 600;
   color: #fff;
   width: 32px;
   height: 32px;
}
@media (max-width:68em) {
 #course .two {
  width: 100%;
  grid-template-columns:repeat(2,1fr);
  gap:2vw;
  text-align: center;
}

#course .two li img,
#course .two li:nth-child(5) img,
#course .two li:nth-child(6) img,
#course .two li:nth-child(7) img,
#course .two li:nth-child(8) img {
  position: relative;
  width:85%;
  border-radius:0%;
  top: auto;
  left:auto;
 margin: auto;
  margin: 3vh auto;
}
}
@media (max-width:55em) {
   #course .two li {
    padding-bottom: 3vh;
    
}
 #course .two li:nth-child(2n-1) {
  border-left: solid 0px #ffdfc8;
    
}
 #course .two {
  width: 100%;
  grid-template-columns:repeat(2,1fr);
  gap:2vw;
  text-align: center;
}

#course .two strong {
  padding: 0.3vh 1vw;
  font-size: 1.1em;
  display: block;
}
#course table {width:100%;margin: auto;margin-bottom: 3vh;} 
#course table caption {font-size: 1.8em; padding-bottom: 3vh;
}
#course table td,#course table th {
    padding: 0.5vh 2vw;
    font-size: 1em;
    line-height: 1.35;
}

#course table td:last-child{font-size: 1.68em;}
#course h6 {
   position: absolute;
   top: 1vh;
   left: 0;
   font-size: 1em;
   padding:2px 0;
   width: 28px;
   height: 28px;
}
}
#teacher {
  position: relative;
  background: #fff;
}
.teacher-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
  margin: 0 auto;
}

.teacher-card {
  background: #fff;
  border: 6px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}
.teacher-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #ddd;
}
.teacher-photo img, .teacher-photo iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.06);
}

.teacher-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}
#teacher figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}

#teacher figcaption span{
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #5d95f8;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#teacher figcaption strong {
  display: block;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.teacher-info {
  padding: 5vh 3vw;
}
#teacher h3 {
  margin: 0 0 6px;
  font-size: 1.8em;
  line-height: 1.2;
  font-weight:500;
}
#teacher h3 small {font-size:16px;font-weight: 300;padding-left: 0.5vw;}
#teacher p {text-align: left;}
#teacher p span {
  margin: 0 0 12px;
  color: #5d95f8;
  font-size: 1.1em;
  font-weight: 700;
  display: block;
  text-align: center;
}
@media (max-width: 68em) {
  .teacher-wrap {
    padding: 3vh 3vw;
     grid-template-columns: 1fr;
     
  }
}
@media (max-width: 40em) {
  .teacher-wrap {
    padding: 3vh 5vw;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .teacher-info {padding:5vh 5vw;}
}

#leam {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  align-items: start;
  margin-top: 68vh;
}
#leam > :last-child {
  grid-column: 1 / -1;
}
#leam > div {
  min-width: 0;
}

.learn-feature-list {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
}

.learn-feature-list li {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.learn-feature-list img {
  width: 100%;
  display: block;
}

.learn-feature-list p {
  padding: 16px;
  text-align: left;
}

.learn-feature-list strong {
  display: block;
  color: #3c8fff;
}

@media (max-width: 68em) {
  #leam {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 8vh;
  }

  #leam > .learn-feature-list {
    grid-column: auto;
  }
}
/* AI輪播外層主容器 */
#ai {
  background-color: #ffffff;
            border-radius: 5px;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
            width: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

       #ai .carousel-viewport {
        position: relative;
        width: 100%;
        height:98vh;
        overflow: hidden;
      }

      #ai .slide-image-container {
        width: 100%;
        height: 92vh;
        overflow: hidden;
        background: #f8fafc;
      }

      #ai .slide-image-container img {
        width: 100%;
        height: 100%; 
        object-fit: cover; 
        object-position: center;
        display: block;
      }

        .ai-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
            display: flex;
            flex-direction: column;
            transform: scale(0.98);
        }
        .ai-slide.active {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
            z-index: 10;
        }
        #ai .slide-content {
            padding: 30px 40px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background-color:#fff3df;
            color: #fff;
        }
        #ai h3 {
            font-size: 22px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: #f97316;
            
        }

        #ai h3 i {
            color: #ffaea1;
        }

        #ai p {
            font-size: 16px;
            line-height: 1.6;
            color: #64748b;
        }

         #ai .carousel-controls {
            position: absolute;
            top: 180px; /* 垂直置中於圖片區域 */
            left: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 20;
            pointer-events: none; /* 讓點擊穿透到圖片，除了按鈕本身 */
        }
        #ai .ai-nav-btn {
          background-color: rgba(255, 255, 255, 0.9);
          color: #1e293b;
          border: none;
          width: 44px;
          height: 44px;
          border-radius: 50%;
          font-size: 18px;
          cursor: pointer;
          pointer-events: auto;
          box-shadow: 0 4px 6px rgba(0,0,0,0.1);
          transition: all 0.2s ease;
          display: flex;
          justify-content: center;
          align-items: center;
        }

        #ai .ai-nav-btn:hover {
          background-color: #f97316;
          color: white;
          transform: scale(1.1);
        }

         #ai .dots-container {
            display: flex;
            justify-content: center;
            gap: 10px;
            padding: 15px 0;
            background-color: #ffffff;
        }

        #ai .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #cbd5e1;
            cursor: pointer;
            transition: all 0.3s ease;
        }

         #ai .dot.active {
            background-color: #f97316;
            width: 24px;
            border-radius: 5px;
        }

        /* 頂部進度條 (視覺提示自動輪播) */
        .ai-bar-container {
            width: 100%;
            height: 5px;
            background-color: #f1f5f9;
        }
        .ai-bar {
            height: 100%;
            width: 0%;
            background-color: #f97316;
            transition: width 0.1s linear;
        }

        #leam .cta-section {
            padding: 25px 40px 40px;
            display: flex;
            justify-content: center;
            gap: 20px;
            border-top: 1px dashed #e2e8f0;
        }

        #leam .btn {
            padding: 14px 32px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            text-align: center;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #leam .btn-primary {
            background-color: #f97316;
            color: white;
            box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
        }

        #leam .btn-primary:hover {
            opacity: 0.8;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
        }

        #leam .btn-secondary {
            background-color: white;
            color: #1e293b;
            border: 2px solid #e2e8f0;
        }

        #leam .btn-secondary:hover {
            border-color: #1e293b;
            transform: translateY(-2px);
        }

        /* RWD 響應式設計 */
       @media (max-width: 55em) {
        #leam {
          grid-template-columns: 1fr;
          gap: 28px;
        }

        #ai .carousel-viewport {height: auto;  min-height: 560px; }
        .ai-slide {position: relative; }
        .ai-slide:not(.active) { position: absolute;}

        @media (max-width: 55em) {
          #ai .slide-image-container {
        height: auto;
        aspect-ratio: 4 / 3; 
        padding: 10px; }
      }
        #ai h3 {font-size: 20px; }

        #ai p {
          font-size: 15px;
        }

        #ai .slide-content {
          padding: 25px 20px;
        }

        #ai .cta-section {
          flex-direction: column;
          padding: 20px;
          gap: 15px;
        }

        #ai .carousel-controls {
          top: 110px;
          padding: 0 10px;
        }
      }


#license {
    text-align: center;
}
#license section {
      display: grid;
    gap: 3vh 2vw;
    grid-template-columns: 1fr 2fr;
    align-items: self-start;
}
#license table {
    width: 100%;
    margin:5vh auto 5vh;
    text-align: center;
    font-family: "Mukta", "Noto Sans TC", "Arial", sans-serif;
    background-color: #fff;
    table-layout: fixed;
    border: solid 1px #ffc033;
} 
#license table caption {
      color: #5e380d;
    
}
#license table thead {
    background-color:#f7931e;
}

#license table td,#license table th {
    padding: 0.6vh 0.5vw;
        color: #535353;
    /* font-size: 1.15em; */
     border-bottom: solid 1px  #ffdc91;
    border-right: solid 1px   #ffdc91;
}
#license table thead td,
#license table thead th {
    color: #fff;
    font-weight: 500;
    border-bottom: solid 1px;
    border-right: solid 1px;
    
}
#license table thead td{
    background-color:#efefef;
    color: #814c10;
}
#license table th:first-child { 
    width: 28%;
    font-weight: 500;

   
}
#license table tbody tr:nth-child(2n) td, #license table tbody tr:nth-child(2n) th{
    background-color: #fffbf0;
}
#license table tbody th:first-child {
    color: #5e380d;
}
#license table small{
    display: block;
    color: #5e380d;
    font-weight: 600;
}
#license table thead th {
    position: relative;
}
#license table thead th h4 {
    position: relative;
    margin-top: -2vh;
    font-weight: 900;
    font-size:2em;
    line-height: 1.35;
    color: #fff;
}
#license ul {
  margin-top: 8vh;
  display: grid;
  gap: 2vh 0;
  grid-template-columns: 1fr;
   color: #3d3636;
   list-style: none;
   align-items: start;
   text-align: center;
}
#license ul li  {
   border: solid 1px #ffc53f;
   background-color: #fff;
   border-radius: 1em;
   padding: 3vh 1vw;
}
#license ul ol li  {
   border: solid 0px #ffc53f;
   background-color: #fff;
   border-radius: 0em;
   padding:0 5vw;
   list-style: none;
   text-align: left;
}
#license ul li strong {
   display: block;
   font-size: 1.2em;
   font-weight: 300;
   line-height: 1.35;
   color: #3c8fff;
   padding-bottom: 3vh;
}

@media screen and (max-width:75em) {
  #license section {
     display: grid;
    gap: 3vh 0vw;
    grid-template-columns: 1fr;
}
#license ul {
  margin-top: 3vh;
  display: grid;
  gap: 2vh 1vw;
  grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
}
}
@media screen and (max-width:65em) {
  #license ul {
  margin-top: 3vh;
  display: grid;
  gap: 2vh 0vw;
  grid-template-columns: 1fr;
}
  
    #license table td,#course table th {
        padding: 1vh 0.5vw;
        font-size: 0.85em;
    }
#license table thead th h4 {
    font-size:1.25em;
    line-height: 1.35;
   

}

#license table th:first-child { 
    width: 38%;
    font-weight: 500;
    font-size: 90%;
}

}
#pht_class {
  background:#f3f2ff;
  border-radius: 1em;
  margin: auto;
  text-align: center;
  letter-spacing: 0.5px;
}


#pht_class ul {
  list-style: none;
  padding: 0;
  margin: auto;
  display: flex;
  display: -webkit-flex;
  font-size: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}
#pht_class ul strong {
  display: block;
  font-size:1.5em;
  line-height: 1.6;
  color:#6c6ed9;
  padding: 1vh 0;

}


#pht_class ul li {
  width:22%;
  border-radius: 2em;
  margin: 1vh 0.2vw;
  text-align: center;
  padding: 3vh 1vw;
}
#pht_class ul li img {
  width: 100%;
  border-radius: 50%;
  border:solid 1px #ffe1e1;
}


#pht_class ul span {background: #ffffff;display: block;padding: 1vh 0;} 
/* #pht_class ul li {background: #fff;   border:#ffd4d4 solid 1px;} */
@media screen and (max-width: 65em) {

}
@media screen and (max-width: 40em) {
  
#pht_class {
  padding: 5vh 2vw;
}
#pht_class ul {
  list-style: none;
  padding: 0;
  margin: auto;
  display: flex;
  display: -webkit-flex;
  font-size: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}
#pht_class ul strong {
  display: block;
  font-size:1.5em;
  line-height: 1.2;
  padding: 1vh 0;

}
#pht_class ul li {
  width:46%;
  font-size: 95%;
}
#pht_class ul li img {
  width: 100%;
  border:solid 1px #f3f3f3;
}
#pht_class ul i {
  font-size: 2.2em;
  color: #ffffff;
  display: block;
  padding-bottom: 1vh;
}
}
#examination {
 width: 100%;
  position: relative;
  padding-top:15vh;
  border-radius: 0;
  background: #fff url(img/e5.png) top 5vh right 8vw no-repeat;
  background-size:8%;
  overflow: visible;
  /* background:#ccecfe; */
 /* background:  linear-gradient(180deg, rgba(247, 214, 116, 0.8) 3%, #fff1c6 25%, #fff 45%, rgba(255, 255, 255, 0.624) 100%);  */

}
#examination section {
  display: grid;
  gap: 3vw;
  grid-template-columns: 1fr 4fr;
  align-items: start;
 
  
}
#examination h2 {
  position: sticky;
  top: calc(38px + 5vh);
  align-self: start;
  margin: 0;
  color: #2a91ff;
}
#examination h2 small {display: block;font-size: 14px;color: #ddd; }


#examination .flex {
	display: flex;
	display: -webkit-flex;
	flex-wrap: wrap;
	justify-content:space-between;
  padding: 2vh 0;
	
}
#examination table span {
    font-size:90%;
    color: #f00;
    text-decoration: underline;
}
#examination  small {
	line-height: 1.5;
	letter-spacing: 0;
}
#examination ol kbd {
	font-family:"Noto Sans TC" , sans-serif;
	font-size:85%;
	font-weight: 900;
	color: #3b3d4a;
}
#examination ul {
    list-style: none;
}
#examination ul h4 {margin-top: 3vh;}
#examination table {
    width: 100%;
    text-align: center;
    border: 1px solid #6b6a6a;
    background: #fff;
}

#examination .flex table {
  width:55%;
	margin: 0;
	border: #ffdc91 solid 1px;
  background-color: #fff;
  text-align: left;
}
#examination  table {
  margin: 0;
	border: #ffdc91 solid 1px;
}
#examination table ol {
  text-align: left;
}
#examination ol {list-style:trad-chinese-informal;padding:0 0 0 42px;}
#examination ol li {margin: 2vh 0;}
#examination mark {background-color:  #ffdc91;}
#examination ol ol {list-style-type:decimal;}
#examination ol ol ol {list-style-type:disc;padding:0;}
#examination table ol li,#examination table ol ol li,#examination table ol ol ol li,#examination ol ol li,#examination ol ol ol li,#examination ol ul li,#examination ul ol li {margin:0;}
#examination table strong {color: #ff8900;}
#examination table td,#examination table th {
	border: 1px solid #ffdc91;
	border-top-width: 0;
	border-left-width: 0;
    padding: 8px;
}
#examination table th {
    background-color:#fff0d0;
    text-align: center;
}
#examination  table td:first-child{
	width:25% ;
	text-align: center;
	background-color:#fff0d0;
} 
#examination table td:nth-child(2){
  text-align: center;
}

#examination details {
    border-bottom: #c7dfff 2px dashed;
    padding: 3vh 2vw;
    text-align: left;

}
#examination details:last-child {
   border-bottom: #ffe7e8 0px solid;
}
#examination summary {
    position: relative;
    cursor: pointer;
    font-size: 1.35em;
     color: #6498ff;
    font-weight: 500;
    letter-spacing: 0.5px;
}
#examination summary span {
  padding-right: 0.5vw;
  color:#9cc7ff;
  font-size: 80%;
}
#examination details summary::after {
    content:"+ more";
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    font-size: 1.1em;
    position: absolute;
    right: 1vw;
    color: #ffb5a2 ;
}
#examination details[open] summary::after {
    content:"-close";
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    font-size: 1.2em;
    position: absolute;
    right: 1vw;
}
#examination details[open] {
  border-radius: 2em;
  border: solid 1px #ddd;
  background:#fff;
  padding: 5vh 5vw 8vh;
  margin-bottom: 2vh;
}
#examination details[open] summary {
  margin-bottom:1vh;
  border-radius: 0.5em 0.5em 0 0;
  border-bottom:solid 1px #ece9e9;
  padding-bottom: 2vh;
  color: #6498ff;
  font-weight: 600;
}
#examination details p span {
    font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
    font-size: 1.5em;
    line-height: 1.35;
    color: #ecd9a1;
    display: block;
}
#examination details p span::after {
    content: ':';
    padding: 0 1vw;
}
#examination details p small {font-size: 15px;}
#examination strong {
    color: #ff6f4a;
}
#examination summary:hover {
    color: #000;
    transition: 0.3s;
}
@media screen and (max-width: 68em) {

#examination {
  width: 100%;
  margin: auto;
  padding: 12vh 2vw;
}
#examination section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 6vw;
  }

  #examination h2 {
    position: static;
    top: auto;
    width: 100%;
  }

#examination .flex {
	display: flex;
	display: -webkit-flex;
	flex-wrap: wrap;
	justify-content:space-between;
  padding: 2vh 0;
	
}
#examination table span {
    font-size:90%;
    color: #f00;
    text-decoration: underline;
}
#examination .flex ol {	width:100%;}
#examination .flex table {width:100%;}
#examination .flex table td:first-child{
	width:20% ;
	text-align: center;
	background-color: #ffe7e8;
} 
#examination summary {font-size: 1em;}
#examination details {border-bottom: #ffdc91 1px dashed;
}
#examination details summary::after {
     bottom:-3vh;
}
}

#good {
  position: relative;
  background: #fff url(img/top_bg3.png);
  border-radius: 3em;
  padding: 8vh 12vw;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
#good h4 {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 600;
  font-size: 2em;
  margin-bottom: 4px;
  color: #812a11;
}

#good p {
  font-weight: 400;
  font-size: 1.1em;
}

#good strong {
  color: #ffa65d;
  font-weight: 500;
}


/* --- 新增：外層 Sticky 容器 --- */
/* 為了完美支援旋轉與堆疊，我們將 Sticky 交給外層，避免瀏覽器 Bug */
.sticky-wrapper {
  position: sticky;
  top: calc(40px + var(--card-index) * 20px);
  margin-bottom: 80px;
  z-index: var(--card-index);
  /* 確保後面的卡片能蓋過前面的 */
}

.sticky-wrapper:last-child {
  margin-bottom: 0;
}

/* --- 修改：單一學員區塊 --- */
/* 將旋轉效果與外觀放在內層 */
.testimonial-block {
  background-color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  display: flex;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.1);
  min-height: 380px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
/* 第一張、第三張... 向左微傾斜 (-1.5度) */
.sticky-wrapper:nth-child(odd) .testimonial-block {
  transform: rotate(-1.5deg);
}
/* 第二張、第四張... 向右微傾斜 (1.5度)，且圖文交錯 */
.sticky-wrapper:nth-child(even) .testimonial-block {
  flex-direction: row-reverse;
  transform: rotate(1.5deg);
}
.sticky-wrapper:hover .testimonial-block {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.image-section {
  flex: 3;
  position: relative;
  background-color: #fff1e5;
  overflow: hidden;
  min-height: 300px;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.text-section {
  flex: 6;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #ffffff;
}

.quote-icon {
  font-size: 32px;
  color: rgba(26, 26, 26, 0.06);
  margin-bottom: 20px;
  line-height: 1;
}

.slider-viewport {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: left;
}

.slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.highlight {
  display: inline-block;
  background-color: #ffd59e;
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}
.slide-text strong {
  color: var(--accent-green);
  font-weight: 700;
}
.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #f5f5f5;
}

#good .author-info p {
  color: var(--text-light);
  font-size: 1.25em;
  line-height: 1;

}
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 15px;
  letter-spacing: 1px;
}

.nav-btn {
  background-color: #f8f8f8;
  color: var(--text-main);
  border: 1px solid transparent;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

@media (max-width: 992px) {
  .sticky-wrapper {
    margin-bottom: 60px;
    top: calc(20px + var(--card-index) * 10px);
  }

  .testimonial-block,
  .sticky-wrapper:nth-child(even) .testimonial-block {
    flex-direction: column;
    transform: rotate(0deg) !important;
  }
  .sticky-wrapper:hover .testimonial-block {
    /* 手機版取消 hover 放大效果 */
    transform: rotate(0deg) scale(1) !important;
  }
  .image-section {
    min-height: 250px;
  }
  .text-section {
    padding: 40px 30px;
  }
  .slide-text {
    font-size: 15px;
  }

  .bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .controls {
    width: 100%;
    justify-content: space-between;
  }
}
#list {
    /* background:#ffe3ce; */
    background: #fff url(img/top_bg3.png);
    padding:3vh 5vw 10vh;
    text-align: center;
    font-weight:500;
    color: #87530b;
    background-size:15%;

}
#list h2 {
  color: #87530b;
}
#list ol,#list ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-content: space-between;
  gap:0 5vw;  
  font-family:"Noto Sans TC" , sans-serif;
  list-style-type: none;
  margin-top: 3vh;
  font-size:1.1em;
}
#list ol li {text-align: left;padding-left:1vw ;}
#list ol li strong {color:#ff4542 ;padding: 0 3px;}
#list ol small {font-size: 14px;padding: 0 3px;}
#list ol small::before{content: '(';}
#list ol small::after{content: ')';}
#list ul {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    line-height:1.5;
    font-size:1.2em;
    gap:1vw;  
}

#list ul kbd {
  background-color:#ff4542;
  padding: 8px;
  color:#ffffff;
  /* color:#ff9d9d; */
  font-weight: 500;
  margin-right: 8px;
  border-radius: 2em;
  font-size: 82%;
 
}
#list ul:nth-child(4) kbd{
font-size: 72%;
}
#list ul span {
  color: #ffd711;
}
@media (max-width:75em){
   #list ul {
    display: grid;
    grid-template-columns: 1fr;
}
    #list ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1vw;  

}
}
@media (max-width:60em){
    #list ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1vw;  
    margin-top: 3vh;
    font-size:1.5em;
}
#list ol {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 平板改為 2 欄 */
  }
}
@media(max-width:68em) {
  #list ol {grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width:40em){
  .list-photos{
    display:flex;
    overflow-x:auto;
    gap:12px;
    padding-bottom:8px;
  }
  .list-photos figure{
    min-width: 60%;
  }
  #list ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1vw;  
    margin-top: 3vh;
    font-size:1em;
}
#list ol {
    grid-template-columns: 1fr; 
  }

}
#sale {
  position: relative;
  padding: 5vh 5vw;
  text-align: center;
  overflow: hidden;
  border-radius: 3em;
}

#sale .sale-inner {
  max-width: 980px;
  margin: 0 auto;
}
#sale h3, #sale h4 { 
  font-size: 1.1em;  
  color: #505050;  
  font-weight: 400;
}
#sale h3 {
  position: relative;
  margin: 0 0 12px;
}

#sale h3 strong {
  display: block;
  margin-bottom: 0px;
  line-height: 1.8;
  color: #6670d6;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
}
#sale h3  small {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}
#sale h4 {
  min-width: 230px;
  text-align: right;
  white-space: nowrap;
}
#sale h4 b {
  font-size: clamp(72px, 9vw, 118px);
  font-family: "baloo","Noto Sans TC" , sans-serif;
  font-weight: 900;
  line-height: 1;
   margin-right: 8px;
   color: #6670d6;
}

#sale ol li {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 3vh 0;
  border-top: 1px dashed #bfc5ee;
  border-bottom: 1px dashed #bfc5ee;
  text-align: left;
}
@media (max-width: 40em) {
  #sale ol li {
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 12px;
  }
  #sale h4 {
    text-align: center;
    min-width: auto;
  }
}
/* 購物車 */
.cart{
  text-align: center;
  font-size: 1.5em;
  margin-top: 5vh;
  font-weight: 600;
  
}
.cart a {
  margin: 1vw;
}
.cart a span {
  padding: 2vh 2vw;
  background:linear-gradient(145deg, #f9db81 35%, #fff1c6 65%,  #fff 100%);
  border:double 2px #ffb078;
  border-radius: 0.5em;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}
.cart a:nth-child(2) span{ 
  background:#2ec802;
  text-shadow: 1px 1px 2px rgba(10, 61, 23, 0.3);
}
.cart a span:hover, .cart a {color: #fff;  transform: translateY(-2px);}
.cart a:first-child span:hover, .cart a:first-child {color: #ac5b14;}
.cart a:first-child span::before {
  content: '\f07a';
   font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding: 8px ;
 
  }
  /* .cart a:nth-child(2) span::before {
  content: '\f590';
   font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding: 8px ;
  
  } */
   @media (max-width: 55em){
    .cart {
    font-size: 1.25em;
    margin-top: 2vh;
    font-weight: 600;
    padding: 0 10vw;
    display: flex;
    flex-direction: column;
    gap:22px; 
  }
  .cart a {
    margin: 0;
    transform: translateY(0px);
    display: block; 
  }
  .cart a span {
    display: block;
    padding: 1vh 1vw;
  }
}

    /* shopcar */
.shop {
  position: fixed;
  bottom: 22vh;
  right: 1vw;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: double 8px ;
  background-color: #f74c22;
  padding: 20px 10px;
  color: #fff;
  font-size:1.25em;
  text-align: center;
  line-height: 1.2;
  font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
  z-index: 99;

}

.shop span {
  font-size: 16px;
}
.shop small{
  font-size: 60%;
    display: block;

}
.shop strong {
  color: #ffdd00;
  font-weight:900;
  font-size: 2.2em;
  line-height: 0.8;
  display: block;
  animation: shineText 1.8s infinite ease-in-out;
}

.shop strong span {
  animation: shineText 1.8s infinite ease-in-out;
}

@keyframes shineText {
  0%   { color: #ffdd00; filter: brightness(100%); }
  50%  { color: #ffffff; filter: brightness(130%); }
  100% { color: #ffdd00; filter: brightness(100%); }
}

@media screen and (max-width:45em){
.shop {
  position: fixed;
  top: auto;
  right: 1vw;
  bottom: 18vh;
  width: 88px;
  height: 88px;
  aspect-ratio:1 / 1; 
  
}
.shop strong {
  color: #ffdd00;
  font-weight:900;
  font-size:1.4em;
  line-height:1;
  display: block;
  animation: shineText 1.8s infinite ease-in-out;
}
  .shop span {font-size: 12px;}
}

footer {
 background:rgba(255, 218, 171, 0.8);
 border-top: solid 1px rgba(214, 143, 51, 0.8);
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 188;
  display: flex;
  justify-content:flex-end;
}
footer h6 {
  padding:1svh 2vw;
  color: #703b06;
  font-size:1.25em;

}
footer h6 span {
  font-size:60%;
  font-weight: 400;
}
footer i {
  text-align:center;
  -moz-transform:rotate(-5deg);
  -webkit-transform:rotate(-5deg);
  -o-transform:rotate(-5deg);
  -ms-transform:rotate(-5deg);
  transform:rotate(-5deg);
}
footer a,footer a:hover{
  padding: 1.2vh 1.5vw;
  border-radius:2em;
  border: solid rgba(245, 165, 96, 0.785) 1px ;
  background-color: #fff;
  color: #ac5b14;
}
@media (max-width:40em) {
  footer {
    border-bottom: solid 1px rgba(214, 143, 51, 0.8);
    bottom: 60px;
    z-index: 188;
    display: flex;
    justify-content: center;
    z-index: 9998;
}
footer h6 {
  padding:1.5svh 2vw 1.8svh;
  font-size:1em;

}
}
address {
  background: #1aa696;
  color: #fff;
  padding: 5vh 5vw;

}
address ul {
   display: flex;
    display: -webkit-flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    font-style: normal;
}
address ul li {
  width: 20%;
  text-align: center;
    font-size: 1.35em;
}
address ul li a, address ul li a:hover {
  color: #fff;
}
  @media screen and (max-width: 55em) {
    address {
  background: #1aa696;
  color: #fff;
  padding: 5vh 1vw 8vh;

}
    address ul li {
  width: 32%;
  text-align: center;
    font-size: 1em;
}
  }
  