@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=Noto+Serif+TC:wght@200..900&display=swap');
@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');
*, *::after, *::before { -webkit-box-sizing: border-box; box-sizing: border-box; }
html {scroll-behavior: smooth;}
::selection{background: #ffeafb;}
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;
}
#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:45em){
  #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_d {display: none;}}
@media (min-width:55em) {.br_s {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: 40em) {
    #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;}
}


article {
    padding: 12vh 12vw;
    letter-spacing: 0.5px;
    color: #000;
    margin: auto;
}
@media screen and (max-width:75em) {article {padding: 5vh 8vw; }}
@media screen and (max-width:40em) {article {padding: 5vh 5vw;}}
@media screen and (max-width:40em) {article {font-size: 0.95em; }}
article h2 img {width: 200px;}
article h2 .splogo {width: 100px;}
article {
    font-size: 1.1em;
    padding:8vh 6vw;
    color: #333;
    text-align: center;
}
article h2 {
    font-size: 3em;
    font-weight: 600;
    color:#bd6a0d;
    line-height: 1.3;
    margin: 3vh 0;
}
article h2 br {
    display: none;
}
article h2 span  {
  font-size: 155%;
  color: #e09845;
}
article h2 img {
  width: 10%;
}
article h3 {
    color: #e09845;
    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: 2em;
}
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: 250px;}
}
 #st {
    padding: 5vh 4vw;
    background: url(https://www.easywin.com.tw/data/public/img/header_bg.png) repeat; 
    background-size: 33%;
  }
  #st h2 {text-align: center;}
  #st ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    align-items:center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
  }
  #st ul li {
    width:35%;
   position: relative;
   border-radius: 1.5em;
   border: #d2e8ff 1px solid;
   display: flex;
   display: -webkit-flex;
   align-items:center;
   justify-content: space-between;
   margin: 1vh -2vw;
   padding:3vh 2vw 3vh 6.8vw;
   background:#fff9df;
  }
  #st ul li:nth-child(2n) {
    margin: -2vh -1vw auto -1vh;
    background-color: rgba(255, 255, 255, 0.38);
  }
  #st ul li img {
   width:25%;
   height: auto;
   position:absolute;
   bottom: 0;
   left: 0.5vw;
  }
  #st ul li p {
    text-align: left;
    padding: 1vh 1vw 1vh 1.4vw;
    font-size: 1em;
  }
  #st ul li p span {
    display: block;
    font-size:102%;
    font-family: "Noto Sans TC" , sans-serif;
    color: #3e6eff;
    padding-top:2vh;
    text-align: right;
  }
  #st>section:last-child {
    margin: 2vh 0;
    padding:3vh 0vw;
  }
  #st>section:last-child div {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  #st>section:last-child div img {
    width: 46%;
    height: auto;
    margin: 0 ;
    border-radius: 5px;
    border: double 5px #fae1e1;
    -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(68%, transparent) , to(rgba(250, 250, 250, 0.2)));
  }
  #st>section:last-child p {
    color: #555 ;
    letter-spacing: 3px;
  }
  @media (max-width:55em) {
    #st {
      padding: 5vh 5vw;
    }
    #st h2 {
      font-size: 1.5em;
      line-height: 1.5;
      padding-top: 0vh;
      font-weight: 600;
    }
    #st ul li {
      width: 100%;
      margin: 1vh 0 0;
      padding: 0 1vw 0  18vw;
      border: 0px;
      border-radius: 0;
      border-bottom: solid 1px #decca1;
    }
    #st ul li:nth-child(2n) { margin:0;}
    #st ul li img {width:15%;left:  0vw; }
    #st ul li p {font-size: 16px;}
    #st>section:last-child {margin:0; padding:0;}
    #st>section:last-child div {
       flex-wrap: wrap;
    }
    #st>section:last-child div img {
      width: 100%;
    }
    #st>section:last-child p {
      font-weight: 600;
      letter-spacing: 3px;
    }
  }

/* 購物車 */
.cart{
  text-align: center;
  font-size: 1.5em;
  margin-top: 5vh;
  margin-bottom: 8vh;
  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 span:hover, .cart a {color: #fff;  transform: translateY(-2px);}
.cart a span:hover, .cart a {color: #ac5b14;}
.cart span::before {
  content: '\f07a';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  padding: 8px ;
 
  }
   @media (max-width: 55em){
    .cart {
    margin-top:0vh;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1;
    }
    .cart a { margin: 2vh 0.5vw;}
    .cart a span { display: block;}
  }
#faq {
    text-align:center ;
    position: relative;
    padding:5vh 8vw;
    z-index: 9;
    background-color: #fffefa;
}
#faq section {position: relative;}
#faq details {
  background: url(https://www.easywin.com.tw/ad/113/0308/img/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;}
 @media screen and (max-width:65em) {
    #faq {padding:5vh 5vw;}
    #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 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;
    }
}


/* ===== 雜誌風首頁大圖輪播 ===== */
.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: #d9b557;
  text-decoration: none;
  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;
}

/* 往下滑後：固定置頂，高度 45px */
.mag-header.is-scrolled {
  position: fixed;
  height: 45px;
  padding: 0 6vw;
  background: rgba(20, 20, 20, 0.92);
  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 a {
  font-size: 14px;
  text-shadow: none;
}

.mag-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}

.mag-nav a {
  color: #fff;
  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: #d9b557;
}

.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 .hero-01 .mag-content {
  position: absolute; 
  padding: 1vh 5vw 5vh;
  border: none; 
  isolation: isolate;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#top .hero-01 .mag-content > * {
  z-index: 2;
}
#top .hero-01 .mag-content::before,
#top .hero-01 .mag-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  --circleDeg: 0deg;
  background: conic-gradient(
    from -35deg,
    rgba(184, 135, 11, 0.68) 0deg var(--circleDeg),
    transparent var(--circleDeg) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 2px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 2px)
  );
  animation: drawCircle 1.5s ease-out forwards;
}
#top .hero-01 .mag-content::after {
  inset: 8px;
  opacity: 0.55;
  animation-delay: 0.1s;
}
@keyframes drawCircle {
  from { --circleDeg: 0deg; }
  to {--circleDeg: 360deg;}
}

#top .hero-01 p span {
  background: rgba(26, 26, 26, 0.926);
  padding: 3px ;
}
#top .mag-content {
  position: absolute;
  z-index: 2;
  left: 5vw;
  bottom: 9vh;
}

/* 第二張封面：圓章與文案各自保留欄位，避免窄螢幕時互相重疊 */
#top .hero-02 .mag-content {
  left: 50%;
  right: auto;
  bottom: clamp(4.5em, 9vh, 7em);
  width: min(88vw, 82em);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "tag category"
    "tag title"
    "tag description";
  column-gap: clamp(1.5em, 3vw, 3.5em);
  align-items: center;
}

#top .hero-02 .mag-tag {
  position: static;
  grid-area: tag;
  flex: 0 0 auto;
  margin: 0;
}

#top .hero-02 .mag-category {
  grid-area: category;
  align-self: end;
  margin-bottom: 0.45em;
  font-size: clamp(1em, 1.55vw, 1.65em);
}

#top .hero-02 .mag-content > p:last-child {
  grid-area: description;
  align-self: start;
  margin: 0.7em 0 0;
  font-size: clamp(1em, 1.8vw, 1.55em);
}
.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;
  color: rgba(255, 255, 255, 0.86);
}
#top h1,
#top h2 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 68px);
  line-height: 1.22;
  font-weight: 800;
  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;
   font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
}
.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-header {padding: 28px 6vw; }
  .mag-nav {gap: 18px;}
  .mag-search {width: 180px;}
  .mag-content {left: 6vw;width: 80vw; }

  #top .hero-02 .mag-content {
    left: 6vw;
    right: 6vw;
    bottom: clamp(4em, 8vh, 6em);
    width: auto;
    transform: none;
    column-gap: clamp(1.25em, 3vw, 2.5em);
  }

  #top .hero-02 .mag-tag {
    width: 6.25em;
    height: 6.25em;
  }

}

@media (max-width: 45em) {
  #top .hero-01 p span {
  font-size: 22px;
}
  #top .hero-02 .mag-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "tag"
      "category"
      "title"
      "description";
    justify-items: start;
    row-gap: 0.35em;
  }

  #top .hero-02 .mag-tag {
    width: 5.5em;
    height: 5.5em;
    margin-bottom: 0.7em;
  }
}

/* 手機 */
@media (max-width: 40em) {
  .mag-hero {
    height: 88vh;
    min-height: 560px;
  }
  .mag-header {
    padding: 22px 6vw;
    gap: 20px;
  }
.mag-logo {font-size: 56px;}
  .mag-nav,
  .mag-search {
    display: none;
  }
  .mag-nav, .mag-search {display: none;}
  .mag-header.is-scrolled {
    height: 45px;
    padding: 0 5vw;
  }
  .mag-header.is-scrolled .mag-logo {
    font-size: 21px;
    letter-spacing: 0.05em;
  }
  .mag-content {
    left: 6vw;
    right: 6vw;
    bottom: 90px;
    width: auto;
  }
  #top .hero-02 .mag-content {
    left: 6vw;
    right: 6vw;
    bottom: 5em;
    width: auto;
  }
  .mag-tag {
    width: 88px;
    height: 88px;
    font-size: 15px;
    margin-bottom: 18px;
  }
  .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;
}

#cate {
  position: relative;
  z-index: 5;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 8vh 5vw 3vh;
}
#cate::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: #e5e5e5;
}
#cate ul {
  display: grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap: 0vw;   
  margin-top: 2vh;
  padding: 0;
  align-items: stretch;
  justify-content: space-between;
  list-style-type: none;
}
#cate ul li {
  background: url(img/pex1.svg) no-repeat bottom 3vh center;
  background-size: 35%;
  border-right: dashed 1px peachpuff;
  padding: 3vh 2vw 20vh;
  position: relative;
}
#cate ul li:nth-child(2){background: url(img/pex2.svg) no-repeat bottom 3vh center;background-size: 35%;}
#cate ul li:nth-child(3){background: url(img/pex3.svg) no-repeat bottom 3vh center;background-size: 35%;}
#cate ul li:nth-child(4){background: url(img/pex4.svg) no-repeat bottom 3vh center;background-size: 35%;}
#cate ul strong {
  display: block;
  font-size: 1.68em;
  color: #008FB8;
  padding-bottom: 1vh;
  font-weight: 600;
}
#cate ul p {
  font-size: 90%;
  color: #ff8b76;
  border: solid 1px ;
  padding: 6px 0;
}
#cate h6 {
    position: absolute;
  background:#81a6ff; 
  color: #fff;
  padding: 6px; 
  line-height: 1.5;
   white-space: nowrap;
   top: -3vh;  
  left: 2vw;  
  transform: rotate(-3deg);
  font-size: 0.8em;
}
#cate h6::after {
  content: "";
  position: absolute;
  bottom: -8px; 
  left: 35px;  
  border-width: 10px 8px 0;
  border-style: solid;
  border-color:#81a6ff transparent transparent transparent; 
}
@media screen and (max-width:80em) {
  #cate { padding: 6vh 5vw;  }
  #cate ul {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 5vh;
  }
  #cate ul li {
    border-right: none;
    border-bottom: dashed 1px peachpuff;
    padding: 4vh 2vw 20vh;
    background-size: 28%;
    background-position: bottom 24px center;
    border-radius: 18px;
  }
  #cate ul li:nth-child(2),
  #cate ul li:nth-child(3),
  #cate ul li:nth-child(4) {
    background-size: 28%;
    background-position: bottom 24px center;
  }
  #cate h6 {
    position: relative;
  display: inline-block;
  top: 3vh;
  left:-25vw;
  transform: rotate(-3deg);
  margin-bottom: 20px;
    font-size: 0.9em;
  }
  #cate h6::after {left: 50%;transform: translateX(-50%);}
  }
  @media screen and (max-width:65em) {
     #cate h2 span {display: block;}
     #cate h4 {font-size: 1em;line-height: 1.6;}
}
@media screen and (max-width:40em) {
  #cate ul {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0vh;
  }
  #cate ul li {
    border-right: none;
    border-bottom: dashed 1px peachpuff;
    padding: 0vh 2vw 15vh;
    background-size: 25%;
    background-position: bottom 24px center;
    border-radius: 18px;    
  }
#cate h6 { margin: 0;} 
  #cate ul li:nth-child(2),
  #cate ul li:nth-child(3),
  #cate ul li:nth-child(4) {
    background-size: 25%;
    background-position: bottom 24px center;
  }
  #cate ul strong {font-size: 1.45em;}
  #cate ul p {
    font-size: 0.9em;
    line-height: 1.6;
    padding: 8px 10px;
  }
}
#good-teacher {
  background: url(https://www.easywin.com.tw/ad/113/0608/img/bg.png)#fff9f8;
  background-size: 100%;
  padding: 5vh 8vw;

}
#good-teacher p{
  font-size: 80%;
  color: #ff9993;  
}
#good-teacher ul kbd {
  font-family: "Noto Sans TC" , sans-serif;
  background-color: #ff9993;
  color: #fff;
  padding:0vh 0.5vw;
  margin: 0.5vw;
  font-size: 90%;
  border-radius: 20px;
}
#good-teacher ul span {
  color: #ab7fff;
  font-size: 85%;
  padding-left: 0.5vw;
 color: #ff867f; /*#fff7a7*/

}
#good-teacher ul{
  font-family: "Noto Sans TC" , sans-serif;
  display: flex;
  display: -webkit-flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items:stretch;
  list-style: none;
  font-size: 1em;
  color: #007482;
  font-weight: 400;
  padding: 0 0;
}
#good-teacher ul li {
  text-align:left;
  width:25%;
  margin: 1vh 0;
}
@media (max-width:85em){
  #good-teacher {padding: 5vh 3vw;} }
@media (max-width:80em){
  #good-teacher {
    padding: 5vh 10vw;
  
  }
#good-teacher ul li{
  width:33%;
  font-size: 1.1em;
}
}
@media (max-width: 68em){
  #good-teacher {padding: 5vh 5vw;}
  #good-teacher ul li{ font-size: 1em;}
}
@media (max-width: 55em){
  #good-teacher { padding: 5vh 10vw;}  
  #good-teacher ul li{ width:48%; font-size: 1.1em; }
}
@media (max-width: 45em){
  #good-teacher {padding: 5vh 8vw;} 
  #good-teacher ul li{width:48%;font-size:1em;
  }
} 
@media (max-width: 40em){
  #good-teacher {
    padding: 5vh 5vw;
    background: url(https://www.easywin.com.tw/ad/113/0608/img/bg.png)#fff9f8;
    background-size: 106%;
    background-position: center;
  } 
  #good-teacher ul{padding: 0 0;font-size: 13px;}
  #good-teacher ul li{width:50%;margin: 0.5vh 0;}
  }

 #edu {
    position: relative;
    z-index: 5;
    background: #ffe9df;
    text-align: center;
    --color-tb:#d89581;
    --color-tb-1:#ffddce;
    --color-tb2:#ffddce;
    --color-tb2-1:#e8f7f4;
    --color-tb3:#609cff;
    --color-tb3-1:#cee0fd;
    --color-tb5:#ffb5b5;
    --color-tb5-1:#ffe5e5;
}

#edu h2 small {
    display: block;
    margin: 2vh 0;
    font-size: 0.5em;
}
#edu h2 mark {
    background: #ff8b76;
    color: #fff;
    padding:1vh 1vw;
    margin: 0 0.3vw;
    border-radius: 1em;
}
#edu h2 mark:nth-child(2) {background: #2c7b75;}
#edu h2 mark:nth-child(3) {background: #2ba674;}
#edu h2 mark:nth-child(4) {background: #ffbe5b;}

#edu>section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:5vh 2vw;
  align-items:stretch;
  justify-content: space-between;
  margin-top: 8vh;

}
#edu table {
    width: 100%;
    background-color:#fff;
}
#edu table td,#edu table th {
    padding:0.5vh 1vw;
    border:solid var(--color-tb2) 1px;
}
#edu table th {
    background-color:#2c7b75;
    color: #fff;
    border:solid 1px;
    text-align: center;
}
#edu table caption {
    font-size:2em;
    line-height: 1.35;
    font-weight: 600;
    position: relative;
    margin-bottom: 2vh;
    color:#2c7b75;
  
}
#edu table caption span {display: block;}
#edu table caption span::after {content: '／';padding: 1vw;font-size: 50%;}
#edu table caption span::before {content: '＼';padding: 1vw;font-size: 50%;}
#edu table:nth-child(2) th{ background-color:#ff988b;}

#edu ul {
  text-align: left;
  list-style: none;
  margin-top:2vh;
  
}
#edu ul li {
  margin-bottom:1vh;
  border-bottom: dashed 1px #ffeeee;
  padding-bottom:1vh;
  list-style: none;
}
#edu ul li:first-child {
  text-align: center;
  font-weight: 600;
  font-size: 1.25em;
  line-height: 2;

}
#edu ul li:first-child,#edu ul li:last-child {border: 0px;}
#edu ul li strong {
  padding: 1vh 1vw;
  margin-right: 1vw;
  background: #ffc681;
  border-radius: 1em;
  color: #fff;
  font-weight: 400;
  font-size: 95%;

}
#point table ul:first-child strong{
  background: #ff8b76;

}

@media screen and (max-width: 55em) {
  #edu ul li strong {
  padding: 1vh 2vw;
  color: #fff;
  font-weight: 400;
  font-size: 92%;

}
#point>table:first-child ul strong{
  background: #ff8b76;

}
#edu ul li strong {font-size:86%;}
}



@media screen and (max-width:65em){
  #edu {padding:5vh 5vw;}
  /* #edu table { margin-top: 8vh;} */
  }
  @media (max-width: 62em) {
  #edu > section { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0vh auto; }
 
}
@media screen and (max-width:40em){
    #edu {padding:5vh 3vw;}
      #edu > section { font-size: 92%;margin-top:0}
    }

#edu .one{
  display: flex;
  display: -webkit-flex;
  list-style: none;
  justify-content: space-around;
  align-items: stretch;
  margin: 5vh 0 0 0;
  padding: 0;
  color: rgb(55, 55, 55);
  line-height: 1.5;
}
#edu .one li {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 1vh 1vw;
}
#edu .one strong {
  color: #075d36;
  display: block;
  font-size: 122%;
  font-weight: 600;
}
#edu .one mark {
  font-size: 2em;
  font-family: "Baloo", "Noto Sans TC", "Arial", sans-serif;
  padding: 0 5px;
  background: none;
}


#edu .one h5 {
  writing-mode: vertical-lr;
  position: absolute;
  top:2vh;
  left:-2.5vw;
  font-size: 0.9em;
  line-height: 1.2;
  -moz-transform:rotate(-2deg);
   -webkit-transform:rotate(-2deg);
   -o-transform:rotate(-2deg);
   -ms-transform:rotate(-2deg);
  transform:rotate(-2deg);
  color: #075d36;
  text-align: left;
  text-indent: -0.8em;
}
#edu .one h5 span {
  writing-mode:horizontal-tb;
  text-indent: 0.2em;
}
@media (max-width:65em) {
#edu .one li:last-child{
  display:none;
}
#edu .one strong {
  font-size: 105%;
}

#edu .one h5 {
  top:-1vh;
  left:-1vw;
  font-size: 0.8em;
  line-height: 1.2;
  text-indent: -0.8em;
}
#edu .one h5 span {
  text-indent: 0.1em;
}
}
@media (max-width:40em) {
#edu .one li {
  width: 45%;
  height: auto;
  margin-bottom: 3vh;
}

#edu .one li:last-child{
  display:none;
}
#edu .one strong {
  font-size: 100%;
}

#edu .one h5 {
  top:1vh;
  left:-5vw;
  font-size: 0.6em;
  line-height: 1.2;
  text-indent: -0.8em;
  display: none;
}
#edu .one h5 span {text-indent: 0.1em;}
#edu .one  small {line-height: 1;}}

/* =========================================================
   115 教甄考情資料庫｜#exam
   ========================================================= */
#exam {
  --exam-ink: #173f45;
  --exam-muted: #607578;
  --exam-teal: #0b8589;
  --exam-teal-dark: #0b8589;
  --exam-sky: #dceff3;
  --exam-cream: #fff7e8;
  --exam-amber: #e89a36;
  --exam-line: rgba(24, 83, 90, 0.15);
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 5vh 6vw;
  background:#fff4e9;
  color: var(--exam-ink);
  text-align: left;
  scroll-margin-top: 56px;
  isolation: isolate;
}

#exam::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 133, 137, 0.17) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 38%);
}

#exam .exam-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
}

#exam .exam-deco {
  position: absolute;
  z-index: -1;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(11, 133, 137, 0.23);
  border-radius: 50%;
  pointer-events: none;
}

#exam .exam-deco::before,
#exam .exam-deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

#exam .exam-deco::before {
  inset: 22%;
  border: 1px solid rgba(232, 154, 54, 0.34);
}

#exam .exam-deco::after {
  width: 14px;
  height: 14px;
  top: 12%;
  right: 14%;
  background: var(--exam-amber);
}

#exam .exam-deco-one { top: 54px; right: -76px; }
#exam .exam-deco-two { bottom: 15%; left: -155px; transform: scale(1.35); opacity: 0.55; }

#exam .exam-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: end;
  margin-bottom: 46px;
}

#exam .exam-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--exam-teal-dark);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

#exam .exam-eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--exam-teal);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
}

#exam h2 {
  margin: 0;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-align: left;
}

#exam h2 br { display: block; }

#exam h2 span {
  color: var(--exam-teal);
  font-size: 1em;
  font-weight: inherit;
}

#exam h2 span::before,
#exam h2 span::after { content: none; }

#exam .exam-lead {
  max-width: 620px;
  margin-top: 24px;
  color: var(--exam-muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.85;
}

#exam .exam-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

#exam .exam-stats div {
  padding: 2vh 1vw;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(34, 82, 83, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

#exam .exam-stats dt {
  color: var(--exam-teal-dark);
  /* font-family: "Teko", "Arial", sans-serif; */
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 600;
  line-height: 0.95;
}

#exam .exam-stats dd {
  margin: 14px 0 0;
  color: var(--exam-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

#exam .exam-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--exam-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
}

#exam .exam-mode button {
  position: relative;
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-height: 88px;
  padding: 16px 22px;
  border: 0;
  border-radius: 21px;
  background: transparent;
  color: var(--exam-ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

#exam .exam-mode button > span {
  grid-row: 1 / 3;
  color: var(--exam-amber);
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}

#exam .exam-mode button strong { font-size: 19px; letter-spacing: 0.08em; }
#exam .exam-mode button small { color: var(--exam-muted); font-size: 13px; }

#exam .exam-mode button.is-active {
  background: var(--exam-teal-dark);
  color: #fff;
  transform: translateY(-2px);
}

#exam .exam-mode button.is-active small { color: rgba(255, 255, 255, 0.72); }
#exam .exam-mode button:focus-visible,
#exam button:focus-visible,
#exam select:focus-visible,
#exam input:focus-visible { outline: 3px solid rgba(232, 154, 54, 0.55); outline-offset: 3px; }

#exam .exam-filter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(260px, 1.45fr) auto;
  gap: 14px;
  align-items: end;
  padding: 24px;
  border: 1px solid var(--exam-line);
  border-radius: 26px;
  background: #fff;
}

#exam .exam-filter label { display: grid; gap: 8px; min-width: 0; }

#exam .exam-filter label > span:first-child {
  color: var(--exam-teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#exam .exam-filter select,
#exam .exam-filter input {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(23, 63, 69, 0.16);
  border-radius: 13px;
  background: #f8fbfa;
  color: var(--exam-ink);
  font-family: inherit;
  font-size: 15px;
}

#exam .exam-filter select {
  padding: 0 38px 0 14px;
  cursor: pointer;
}

#exam .exam-filter input { padding: 0 44px 0 15px; }
#exam .exam-filter input::placeholder { color: #9aa9aa; }

#exam .exam-search-control { position: relative; display: block; }
#exam .exam-search-control i { position: absolute; right: 15px; top: 18px; color: var(--exam-teal); }

#exam .exam-reset {
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(23, 63, 69, 0.15);
  border-radius: 13px;
  background: var(--exam-cream);
  color: #855714;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

#exam .exam-county-shortcuts {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 22px 4px 0;
}

#exam .exam-county-shortcuts > span {
  flex: 0 0 auto;
  padding-top: 7px;
  color: var(--exam-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#exam #exam-county-buttons { display: flex; flex-wrap: wrap; gap: 7px; }

#exam #exam-county-buttons button {
  padding: 6px 11px;
  border: 1px solid rgba(7, 95, 103, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--exam-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

#exam #exam-county-buttons button:hover,
#exam #exam-county-buttons button.is-active {
  border-color: var(--exam-teal);
  background: var(--exam-teal);
  color: #fff;
}
/* 
#exam .exam-vacancy-summary {
  margin: 0 0 54px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--exam-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
} */

#exam .exam-summary-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

#exam .exam-summary-heading h3 {
  margin-top: 5px;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 700;
}

#exam .exam-summary-heading > p {
  color: var(--exam-muted);
  font-size: 0.85em;
}

#exam .exam-summary-table-wrap {
  /* overflow-x: auto; */
  border: 1px solid var(--exam-line);
  border-radius: 18px;
  margin-bottom: 5vh;
}

#exam .exam-summary-table {
  width: 100%;
  /* min-width: 580px; */
  border-collapse: collapse;
  background: #fff;
  text-align: center;
}

#exam .exam-summary-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#exam .exam-summary-table th,
#exam .exam-summary-table td {
  padding: 6px;
  border-bottom: 1px solid var(--exam-line);
  border-right: 1px solid var(--exam-line);
}
#exam .exam-summary-table th:first-child {text-align: center;}
#exam .exam-summary-table tr > :last-child { border-right: 0; }
#exam .exam-summary-table thead th {
  background: var(--exam-teal-dark);
  color: #fff;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#exam .exam-summary-table tbody th,
#exam .exam-summary-table tfoot th {
  color: var(--exam-ink);
  font-size: 0.95em;
  font-weight: 700;
  text-align: left;
}

#exam .exam-summary-table tbody tr:nth-child(even) { background: #f7fbfa; }
#exam .exam-summary-table tbody tr.is-selected { background: var(--exam-cream); }
#exam .exam-summary-table tbody tr.is-selected th { color: #99611b; }
#exam .exam-summary-table td strong {
  color: var(--exam-teal-dark);
  /* font-family: "Teko", sans-serif; */
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1;
}
#exam .exam-summary-table td small { margin-left: 3px; color: var(--exam-muted); font-size: 0.72em; }
#exam .exam-summary-table tfoot { background: #e8f4f3; }
#exam .exam-summary-table tfoot th,
#exam .exam-summary-table tfoot td { border-bottom: 0; }

#exam .exam-summary-note {
  margin-top: 13px;
  color: var(--exam-muted);
  font-size: 0.78em;
  line-height: 1.7;
}

#exam .exam-results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 64px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--exam-line);
}

#exam .exam-results-kicker {
  color: var(--exam-amber);
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

#exam .exam-results-head h3 {
  margin-top: 5px;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
}

#exam .exam-result-count { color: var(--exam-muted); font-size: 14px; }

#exam .exam-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

#exam .exam-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--exam-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(27, 77, 81, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#exam .exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(27, 77, 81, 0.14);
}

#exam .exam-card.is-selected {
  border-color: rgba(7, 95, 103, 0.48);
  box-shadow: 0 20px 58px rgba(27, 77, 81, 0.16);
  transform: none;
}

#exam .exam-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 22px 0;
}

#exam .exam-card-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px 22px 18px;
}

#exam .exam-card-intro.has-vacancy {
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.58fr);
}

#exam .exam-card-main { min-width: 0; }
#exam .exam-card-main .exam-card-topline { padding: 0; }
#exam .exam-card-main h4 { margin: 19px 0 4px; }
#exam .exam-card-main .exam-card-subtitle { margin: 0; }

#exam .exam-total-vacancy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 126px;
  padding: 16px 10px;
  border: 1px solid var(--exam-line);
  border-radius: 18px;
  background: #f8fbfa;
  text-align: center;
}

#exam .exam-total-vacancy > span {
  color: var(--exam-muted);
  font-size: 0.9em;
}

#exam .exam-total-vacancy strong {
  color: var(--exam-teal-dark);
  /* font-family: "Teko", sans-serif; */
  font-size: 2em;
  font-weight: 600;
  line-height: 1;
}

#exam .exam-total-vacancy strong.is-pending { color: #a4b0b1; }
#exam .exam-total-vacancy small { margin-left: 4px; color: var(--exam-muted); font-family: inherit; font-size: 12px; }

#exam .exam-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

#exam .exam-card-tags span,
#exam .exam-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff5f4;
  color: var(--exam-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

#exam .exam-card-tags .exam-county-tag { background: var(--exam-teal-dark); color: #fff; }

#exam .exam-status { flex: 0 1 auto; max-width: 45%; text-align: center; }
#exam .exam-status.is-ready { background: #e3f4ea; color: #23704a; }
#exam .exam-status.is-warning { background: #fff0d8; color: #9a5e0a; }
#exam .exam-status.is-neutral { background: #eef1f1; color: #657476; }

#exam .exam-card h4 {
  margin: 19px 22px 4px;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", serif;
  font-size: 25px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#exam .exam-card-subtitle {
  margin: 0 22px 18px;
  color: var(--exam-muted);
  line-height: 1.7;
}

#exam .exam-number-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin: 0 14px 18px;
  overflow: hidden;
  border: 1px solid var(--exam-line);
  border-radius: 17px;
  background: #f8fbfa;
}

#exam .exam-number {
  min-width: 0;
  padding: 16px 8px;
  border-right: 1px solid var(--exam-line);
  text-align: center;
}

#exam .exam-number:last-child { border-right: 0; }
#exam .exam-number span { display: block; color: var(--exam-muted); font-size: 11px; }
#exam .exam-number strong { color: var(--exam-teal-dark); font-family: "Teko", sans-serif; font-size: 40px; line-height: 1; }
#exam .exam-number strong.is-pending { color: #a4b0b1; }
#exam .exam-number small { margin-left: 3px; color: var(--exam-muted); font-size: 10px; }

#exam .exam-card-note {
  margin: 0 22px 20px;
  padding: 11px 13px;
  border-left: 3px solid var(--exam-amber);
  background: var(--exam-cream);
  color: #735c39;
  font-size: 12px;
  line-height: 1.65;
}

#exam .exam-primary-info {
  margin: 0 22px 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f1f8f7;
}

#exam .exam-primary-info span,
#exam .exam-ratio-row span,
#exam .exam-ratio-cards span { color: var(--exam-teal-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; }
#exam .exam-primary-info p { margin-top: 8px; color: var(--exam-ink); font-size: 14px; line-height: 1.75; }

#exam .exam-ratio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 22px 20px;
  padding: 12px 0 0;
  border-top: 1px solid var(--exam-line);
}

#exam .exam-ratio-row strong { color: var(--exam-amber); font-size: 18px; }

#exam .exam-ratio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 22px 12px;
}

#exam .exam-ratio-cards div { padding: 14px; border: 1px solid var(--exam-line); border-radius: 14px; }
#exam .exam-ratio-cards span { display: block; }
#exam .exam-ratio-cards strong { display: block; margin-top: 4px; color: var(--exam-ink); font-size: 17px; overflow-wrap: anywhere; }

#exam .exam-detail-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-top: 1px solid var(--exam-line);
  background: transparent;
  color: var(--exam-teal-dark);
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

#exam .exam-detail-toggle:hover { background: #f5faf9; }
#exam .exam-detail-toggle:focus-visible {
  outline: 3px solid rgba(214, 149, 50, 0.38);
  outline-offset: -3px;
}
#exam .exam-detail-toggle span {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s ease;
}
#exam .exam-detail-toggle[aria-expanded="true"] span { transform: rotate(45deg); }

#exam .exam-detail-panel {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 25px 28px 28px;
  border: 1px solid rgba(7, 95, 103, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, #f2faf8 0%, #fffdf8 100%);
  box-shadow: 0 18px 54px rgba(27, 77, 81, 0.1);
  animation: exam-detail-enter 0.24s ease-out;
}

@keyframes exam-detail-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

#exam .exam-detail-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--exam-line);
}

#exam .exam-detail-panel-head p {
  margin: 0 0 5px;
  color: var(--exam-amber);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

#exam .exam-detail-panel-head h5 {
  margin: 0;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.4;
}

#exam .exam-detail-panel-head span {
  display: block;
  margin-top: 5px;
  color: var(--exam-muted);
  font-size: 0.9em;
  line-height: 1.6;
}

#exam .exam-detail-panel-head button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--exam-line);
  border-radius: 50%;
  background: #fff;
  color: var(--exam-teal-dark);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

#exam .exam-detail-panel-head button:hover { background: var(--exam-teal-dark); color: #fff; }
#exam .exam-detail-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  margin: 10px 0 0;
}

#exam .exam-detail-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-top: 1px dashed rgba(23, 63, 69, 0.13); }
#exam .exam-detail-row dt { color: var(--exam-teal-dark); font-size: 0.95em; font-weight: 600; }
#exam .exam-detail-row dd { margin: 0; color: #333; font-size: 0.95em; overflow-wrap: anywhere; }
#exam .exam-detail-empty { grid-column: 1 / -1; margin: 12px 0 0; color: var(--exam-muted); }

/* Master-detail search layout */
#exam .exam-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

#exam .exam-result-list-panel,
#exam .exam-detail-view {
  height: clamp(560px, 80vh, 800px);
  min-width: 0;
  border: 1px solid var(--exam-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 48px rgba(27, 77, 81, 0.09);
}

#exam .exam-result-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

#exam .exam-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--exam-line);
  background: #f8fbfa;
}

#exam .exam-list-heading div { display: flex; align-items: baseline; gap: 10px; }
#exam .exam-list-heading span { color: var(--exam-teal-dark); font-size: 0.78em; font-weight: 700; letter-spacing: 0.08em; }
#exam .exam-list-heading strong { color: var(--exam-ink); font-size: 1.05em; }
#exam .exam-list-heading > small { color: var(--exam-muted); font-size: 0.73em; text-align: right; }

#exam .exam-result-list-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(7, 95, 103, 0.35) transparent;
  scrollbar-width: thin;
}

#exam .exam-result-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.48fr) 86px 80px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 112px;
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid var(--exam-line);
  background: #fff;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

#exam .exam-result-item:hover { background: #f5faf9; }
#exam .exam-result-item:focus-visible { z-index: 1; outline: 3px solid rgba(214, 149, 50, 0.42); outline-offset: -3px; }
#exam .exam-result-item.is-selected {
  background: linear-gradient(90deg, #e8f5f3 0%, #f8fcfb 100%);
  box-shadow: inset 4px 0 0 var(--exam-teal-dark);
}

#exam .exam-result-copy { display: block; min-width: 0; }
#exam .exam-result-copy > strong {
  display: block;
  margin-top: 9px;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", serif;
  font-size: 21px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#exam .exam-result-copy > small { display: block; margin-top: 3px; color: var(--exam-muted); font-size: 1.2em; line-height: 1.45; overflow-wrap: anywhere; }

#exam .exam-result-county {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--exam-ink);
  text-align: center;
}
#exam .exam-result-county > small {
  margin-bottom: 4px;
  color: var(--exam-muted);
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.08em;
}
#exam .exam-result-county > strong {
  font-family: "Noto Serif TC", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
#exam .exam-result-item.is-selected .exam-result-county > strong { color: var(--exam-teal-dark); }

#exam .exam-result-vacancy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 8px;
  border: 1px solid var(--exam-line);
  border-radius: 13px;
  background: #fff;
  text-align: center;
}
#exam .exam-result-vacancy > small { color: var(--exam-muted); font-size: 0.72em; }
#exam .exam-result-vacancy > strong { color: var(--exam-teal-dark); font-size: 2em; font-weight: 600; line-height: 1; }
#exam .exam-result-vacancy > strong.is-pending { color: #a4b0b1; }
#exam .exam-result-vacancy strong small { margin-left: 3px; color: var(--exam-muted); font-family: inherit; font-size: 10px; }

#exam .exam-result-open { color: var(--exam-teal-dark); font-size: 1.2em; font-weight: 700; white-space: nowrap; text-align: right; }
#exam .exam-result-open b { margin-left: 3px; font-size: 17px; font-weight: 400; }

#exam .exam-inline-detail { display: none; }

#exam .exam-filtered-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 13px 20px;
  border-top: 1px solid rgba(7, 95, 103, 0.16);
  background: #e8f4f3;
  color: var(--exam-ink);
  font-size: 0.84em;
}
#exam .exam-filtered-total > span:last-child { color: var(--exam-teal-dark); font-weight: 700; white-space: nowrap; }
#exam .exam-filtered-total strong { margin-left: 5px; font-family: "Teko", sans-serif; font-size: 28px; font-weight: 500; line-height: 1; }
#exam .exam-filtered-total strong.is-pending { color: #869495; }
#exam .exam-filtered-total strong small { margin-left: 3px; font-family: inherit; font-size: 10px; }

#exam .exam-detail-view {
  padding: 24px 26px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(7, 95, 103, 0.35) transparent;
  scrollbar-width: thin;
  background: linear-gradient(145deg, #fff 0%, #f7fbfa 100%);
}
#exam .exam-detail-view:focus-visible { outline: 3px solid rgba(214, 149, 50, 0.38); outline-offset: 3px; }

#exam .exam-detail-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.38fr);
  align-items: stretch;
  gap: 20px;
  padding-bottom: 22px;
}
#exam .exam-detail-card-head h4 {
  margin: 19px 0 4px;
  color: var(--exam-ink);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#exam .exam-detail-card-head .exam-card-subtitle { margin: 0; color: var(--exam-muted); line-height: 1.65; }
#exam .exam-detail-view .exam-total-vacancy { min-height: 116px; }
#exam .exam-detail-primary { padding-top: 2px; }
#exam .exam-detail-primary .exam-primary-info { margin: 0 0 20px; }
#exam .exam-detail-primary .exam-ratio-row { margin: 0 0 20px; }
#exam .exam-detail-primary .exam-ratio-cards { margin: 0 0 16px; }
#exam .exam-detail-view .exam-detail-panel-head { padding-top: 2px; }
#exam .exam-detail-view dl { margin: 8px 0 0; }
#exam .exam-detail-view .exam-detail-row { grid-template-columns: 92px minmax(0, 1fr); }

#exam .exam-card-source { margin: 0 22px 20px; color: #748587; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
#exam .exam-card-source b { display: block; color: var(--exam-ink); }

#exam .exam-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
#exam .exam-load-more {
  min-width: 210px;
  padding: 14px 24px;
  border: 1px solid var(--exam-teal-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--exam-teal-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#exam .exam-load-more:hover { background: var(--exam-teal-dark); color: #fff; }

#exam .exam-source-note {
  margin: 34px auto 0;
  color: var(--exam-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
#exam .exam-source-note i { color: var(--exam-amber); }

#exam .exam-empty {
  grid-column: 1 / -1;
  padding: 58px 24px;
  border: 1px dashed rgba(7, 95, 103, 0.25);
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  text-align: center;
}
#exam .exam-empty > span { color: var(--exam-teal); font-size: 44px; }
#exam .exam-empty h4 { margin: 8px 0; color: var(--exam-ink); font-size: 21px; }
#exam .exam-empty p { color: var(--exam-muted); font-size: 14px; }

#exam .exam-skeleton {
  min-height: 330px;
  border-radius: 24px;
  background: linear-gradient(100deg, #eef4f3 30%, #f9fcfb 48%, #eef4f3 66%);
  background-size: 300% 100%;
  animation: exam-loading 1.4s infinite;
}

@keyframes exam-loading { to { background-position-x: -150%; } }

@media screen and (max-width: 68em) {
  #exam { padding-left: 5vw; padding-right: 5vw; }
  #exam .exam-heading { grid-template-columns: 1fr; align-items: start; }
  #exam .exam-stats { max-width: 720px; }
  #exam .exam-filter { grid-template-columns: repeat(3, 1fr); }
  #exam .exam-search-field { grid-column: span 2; }
  #exam .exam-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 68em) {
  #exam .exam-results { grid-template-columns: 1fr; }
  #exam .exam-detail-view { display: none; }
  #exam .exam-result-item[aria-expanded="true"] {
    border-bottom-color: transparent;
    background: linear-gradient(90deg, #e8f5f3 0%, #f8fcfb 100%);
  }
  #exam .exam-inline-detail {
    display: block;
    padding: 20px 22px 24px;
    border-bottom: 1px solid var(--exam-line);
    background: linear-gradient(145deg, #f0f8f7 0%, #fffdf9 100%);
    animation: exam-detail-enter 0.22s ease-out;
  }
  #exam .exam-inline-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(7, 95, 103, 0.14);
  }
  #exam .exam-inline-detail-head div { display: flex; align-items: baseline; gap: 8px; }
  #exam .exam-inline-detail-head span { color: var(--exam-teal-dark); font-size: 0.86em; font-weight: 700; }
  #exam .exam-inline-detail-head strong { color: var(--exam-ink); font-family: "Noto Serif TC", serif; font-size: 1.18em; }
  #exam .exam-inline-detail-head > small { color: var(--exam-amber); font-weight: 700; letter-spacing: 0.05em; }
  #exam .exam-inline-detail dl { margin: 6px 0 0; }
  #exam .exam-inline-detail .exam-detail-row { grid-template-columns: 92px minmax(0, 1fr); }
  #exam .exam-inline-detail .exam-detail-empty { margin: 16px 0 0; }
  #exam .exam-inline-close {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(7, 95, 103, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--exam-teal-dark);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
  }
}

@media screen and (max-width: 45em) {
  #exam { padding:5vh 3vw; }
  #exam .exam-heading { gap: 28px; margin-bottom:0px; }
  #exam h2 { font-size: clamp(38px, 11vw, 58px); }
  #exam .exam-lead { font-size: 16px; }
  #exam .exam-stats { gap: 7px; }
  #exam .exam-stats div { min-height: 112px; padding: 18px 8px; border-radius: 17px; display: none;}
  #exam .exam-stats dt { font-size: 32px; }
  #exam .exam-stats dd { margin-top: 8px; font-size: 10px; letter-spacing: 0.02em; }

  #exam .exam-mode { gap: 5px; padding: 5px; border-radius: 21px; }
  #exam .exam-mode button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: 76px;
    padding: 10px 5px;
    border-radius: 17px;
    text-align: center;
  }
  #exam .exam-mode button > span { font-size: 10px; }
  #exam .exam-mode button strong { font-size: 15px; letter-spacing: 0.04em; }
  #exam .exam-mode button small { font-size: 10px; }

  #exam .exam-filter { grid-template-columns: 1fr 1fr; padding: 17px; border-radius: 20px; }
  #exam .exam-filter label { grid-column: span 1; }
  #exam .exam-filter .exam-search-field { grid-column: 1 / -1; }
  #exam .exam-reset { grid-column: 1 / -1; }

  #exam .exam-county-shortcuts { display: block; margin-top: 18px; }
  #exam .exam-county-shortcuts > span { display: block; margin-bottom: 8px; }
  #exam #exam-county-buttons {
    flex-wrap: nowrap;
    max-width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  #exam #exam-county-buttons button { flex: 0 0 auto; }

  /* #exam .exam-vacancy-summary { margin: 0 0 38px; padding: 18px; border-radius: 20px; } */
  #exam .exam-summary-heading { display: block; }
  #exam .exam-summary-heading > p { margin-top: 7px; }

  #exam .exam-results-head { align-items: flex-start; margin-top: 46px; }
  #exam .exam-result-count { max-width: 130px; padding-top: 5px; text-align: right; }
  #exam .exam-results { grid-template-columns: 1fr; }
  #exam .exam-result-list-panel,
  #exam .exam-detail-view {
    height: auto;
    overflow: visible;
  }
  #exam .exam-result-list-scroll { overflow: visible; }
  #exam .exam-result-item { grid-template-columns: minmax(0, 1fr) minmax(88px, 0.4fr) 76px; gap: 10px; }
  #exam .exam-result-county > strong { font-size: 21px; }
  #exam .exam-result-open {
    grid-column: 1 / -1;
    padding-top: 9px;
    border-top: 1px dashed rgba(23, 63, 69, 0.13);
    text-align: left;
  }
  #exam .exam-detail-view { padding: 22px 20px 26px; }
  #exam .exam-card:hover { transform: none; }
  #exam .exam-card.is-selected:has(+ .exam-detail-panel.is-mobile-inline) {
    border-bottom-color: transparent;
    border-radius: 24px 24px 0 0;
  }
  #exam .exam-detail-panel.is-mobile-inline {
    margin-top: -20px;
    padding: 22px 20px 24px;
    border-top: 0;
    border-radius: 0 0 24px 24px;
  }
  #exam .exam-detail-panel dl { grid-template-columns: 1fr; }
  #exam .exam-detail-panel-head { gap: 14px; }
  #exam .exam-detail-row { grid-template-columns: 86px 1fr; }
  #exam .exam-deco-one { right: -145px; }
  #exam .exam-summary-table td strong {font-size: 16px;}
  #exam .exam-summary-table td,#exam .exam-summary-table th {padding: 6px 2px;}
}

@media screen and (max-width: 40em) {
  #exam .exam-filter { grid-template-columns: 1fr; }
  #exam .exam-filter label,
  #exam .exam-filter .exam-search-field,
  #exam .exam-reset { grid-column: 1; }
  #exam .exam-card-topline { display: block; }
  #exam .exam-card-intro.has-vacancy { grid-template-columns: 1fr; }
  #exam .exam-result-item { grid-template-columns: minmax(0, 1fr) 76px; }
  #exam .exam-result-copy { grid-column: 1; grid-row: 1; }
  #exam .exam-result-county {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    justify-content: flex-start;
    gap: 7px;
    margin-top: 3px;
    text-align: left;
  }
  #exam .exam-result-county > small { margin: 0; }
  #exam .exam-result-county > strong { font-size: 21px; }
  #exam .exam-result-vacancy { grid-column: 2; grid-row: 1 / span 2; }
  #exam .exam-result-open { grid-row: 3; text-align: right; font-size: 1.5em;}
  
  #exam .exam-list-heading,
  #exam .exam-filtered-total { align-items: flex-start; flex-direction: column; gap: 7px; }
  #exam .exam-list-heading > small { text-align: left; }
  #exam .exam-detail-card-head { grid-template-columns: 1fr; }
  #exam .exam-detail-card-head .exam-total-vacancy {
    flex-direction: row;
    justify-content: space-between;
    min-height: 0;
    padding: 13px 16px;
  }
  #exam .exam-total-vacancy {
    flex-direction: row;
    justify-content: space-between;
    min-height: 0;
    padding: 13px 16px;
  }
  #exam .exam-total-vacancy strong { font-size: 40px; }
  #exam .exam-status { max-width: 100%; margin-top: 9px; }
  #exam .exam-number strong { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  #exam *, #exam *::before, #exam *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   教甄名師｜#teache
   ========================================================= */
#teache {
  --teacher-ink: #173f45;
  --teacher-muted: #637578;
  --teacher-teal: #0b8589;
  --teacher-teal-dark: #075f67;
  --teacher-paper: #fffdf7;
  --teacher-sage: #dfe9e5;
  --teacher-line: rgba(23, 63, 69, 0.18);
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: clamp(76px, 9vw, 140px) max(5vw, calc((100vw - 1480px) / 2));
  background:
    linear-gradient(90deg, rgba(11, 133, 137, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(11, 133, 137, 0.05) 1px, transparent 1px),
    var(--teacher-paper);
  background-size: 32px 32px;
  color: var(--teacher-ink);
  text-align: left;
  scroll-margin-top: 64px;
}

#teache::before {
  content: "TEACHERS";
  position: absolute;
  right: -0.06em;
  top: -0.18em;
  z-index: -1;
  color: rgba(11, 133, 137, 0.055);
  font-family: "Arial", sans-serif;
  font-size: clamp(96px, 15vw, 260px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

#teache [hidden] { display: none !important; }

#teache .teacher-stories-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto clamp(54px, 6vw, 96px);
}

#teache .teacher-stories-heading > p,
#teache .teacher-profile-kicker {
  padding-top: 12px;
  color: var(--teacher-teal-dark);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

#teache .teacher-stories-heading > p::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  margin-right: 14px;
  vertical-align: middle;
  background: #e89a36;
}

#teache .teacher-stories-heading h2 {
  margin: 0;
  color: var(--teacher-ink);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(42px, 5.6vw, 82px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-align: left;
}

#teache .teacher-stories-heading h2 br { display: block; }
#teache .teacher-stories-heading h2 span {
  color: var(--teacher-teal);
  font-size: 1em;
  font-weight: inherit;
}
#teache .teacher-stories-heading h2 span::before,
#teache .teacher-stories-heading h2 span::after { content: none; }

#teache .teacher-stories-heading div > p {
  max-width: 680px;
  margin-top: 24px;
  color: var(--teacher-muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.9;
}

#teache .teacher-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 34px);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: clamp(54px, 6vw, 88px);
}

#teache .teacher-card {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#teache .teacher-card:nth-child(even) { transform: translateY(clamp(50px, 5vw, 78px)); }

#teache .teacher-card-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.72;
  background:
    radial-gradient(circle at 60% 28%, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(145deg, #e9eeea 0%, #cbdad5 100%);
}

#teache .teacher-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 63, 69, 0.09);
  pointer-events: none;
}

#teache .teacher-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.84) contrast(1.02);
  transform: scale(1.01);
  transform-origin: bottom center;
  transition: transform 360ms ease, filter 360ms ease;
}

#teache .teacher-card-copy {
  display: grid;
  gap: 5px;
  padding: 18px 42px 0 1px;
}

#teache .teacher-card-copy small {
  color: var(--teacher-teal-dark);
  font-family: "Roboto Mono", "Noto Sans TC", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

#teache .teacher-card-copy strong {
  color: var(--teacher-ink);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(25px, 2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

#teache .teacher-card-copy > span {
  color: var(--teacher-muted);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.7;
}

#teache .teacher-card-arrow {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--teacher-line);
  border-radius: 50%;
  color: var(--teacher-teal-dark);
  font-size: 18px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

#teache .teacher-card:hover img,
#teache .teacher-card:focus-visible img { transform: scale(1.045); filter: saturate(1) contrast(1.03); }
#teache .teacher-card:hover .teacher-card-arrow,
#teache .teacher-card:focus-visible .teacher-card-arrow {
  background: var(--teacher-teal-dark);
  color: #fff;
  transform: rotate(45deg);
}
#teache .teacher-card:focus-visible { outline: 3px solid #e89a36; outline-offset: 7px; }

#teache .teacher-profile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  min-height: min(820px, 84vh);
  max-width: 1480px;
  margin: 0 auto;
  border: 1px solid var(--teacher-line);
  background: #f8f6ef;
  box-shadow: 0 30px 70px rgba(23, 63, 69, 0.13);
}

#teache .teacher-profile-dismiss {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 1px solid rgba(23, 63, 69, 0.35);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.94);
  color: var(--teacher-ink);
  font: 300 32px/1 "Arial", sans-serif;
  cursor: pointer;
  appearance: none;
  backdrop-filter: blur(8px);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

#teache .teacher-profile-dismiss:hover,
#teache .teacher-profile-dismiss:focus-visible {
  background: var(--teacher-teal-dark);
  color: #fff;
  transform: rotate(90deg);
}
#teache .teacher-profile-dismiss:focus-visible { outline: 3px solid #e89a36; outline-offset: 3px; }

#teache .teacher-profile-photo {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background:
    radial-gradient(circle at 55% 23%, rgba(255,255,255,0.88), transparent 25%),
    linear-gradient(145deg, #e3e9e5, #cbd8d3);
}

#teache .teacher-profile-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(23, 63, 69, 0.1));
  pointer-events: none;
}

#teache .teacher-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.9) contrast(1.02);
}

#teache .teacher-profile-content {
  position: relative;
  padding: clamp(44px, 5vw, 84px);
  background: rgba(255, 253, 247, 0.96);
}

#teache .teacher-profile-count {
  position: absolute;
  top: 28px;
  right: 92px;
  color: var(--teacher-teal-dark);
  font-family: "Teko", "Arial", sans-serif;
  line-height: 1;
}
#teache .teacher-profile-count span { font-size: 54px; font-weight: 600; }
#teache .teacher-profile-count small { font-size: 22px; }

#teache .teacher-profile-subject {
  margin-top: 34px;
  color: var(--teacher-teal);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

#teache .teacher-profile h3 {
  margin-top: 8px;
  color: var(--teacher-ink);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(50px, 5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

#teache .teacher-profile-lead {
  max-width: 760px;
  margin-top: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--teacher-line);
  color: #2e4c50;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.65;
}

#teache .teacher-profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32x;
  margin-top: 30px;
}

#teache .teacher-profile-section:first-child { grid-column: 1 / -1; }
#teache .teacher-profile-section h4 {
  margin: 0 0 10px;
  color: var(--teacher-teal-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#teache .teacher-profile-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#teache .teacher-profile-section li {
  position: relative;
  padding-left: 16px;
  color: var(--teacher-muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
}

#teache .teacher-profile-section li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e89a36;
}

#teache .teacher-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

#teache .teacher-profile-actions button {
  display: grid;
  grid-template-columns: auto 32px;
  column-gap: 22px;
  align-items: center;
  min-width: 190px;
  padding: 12px 14px 12px 22px;
  border: 1px solid var(--teacher-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--teacher-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

#teache .teacher-profile-actions button span {
  grid-column: 1;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
#teache .teacher-profile-actions button small { grid-column: 1; color: var(--teacher-muted); font-size: 12px; }
#teache .teacher-profile-actions button b {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}
#teache .teacher-profile-next { background: var(--teacher-teal-dark) !important; color: #fff !important; border-color: var(--teacher-teal-dark) !important; }
#teache .teacher-profile-next small { color: rgba(255,255,255,0.76) !important; }
#teache .teacher-profile-actions button:hover,
#teache .teacher-profile-actions button:focus-visible { box-shadow: 0 8px 24px rgba(23, 63, 69, 0.18); transform: translateY(-2px); }
#teache .teacher-profile-actions button:focus-visible { outline: 3px solid #e89a36; outline-offset: 3px; }

@media (max-width: 68em) {
  #teache { padding-right: 5vw; padding-left: 5vw; }
  #teache .teacher-stories-heading { grid-template-columns: 1fr; gap: 12px; }
  #teache .teacher-stories-heading > p { padding-top: 0; }
  #teache .teacher-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 40px);
    padding-bottom: 48px;
  }
  #teache .teacher-card:nth-child(even) { transform: translateY(36px); }
  #teache .teacher-card-copy strong { font-size: clamp(28px, 4vw, 40px); }
  #teache .teacher-card-copy > span { font-size: 15px; }
  #teache .teacher-profile { grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); }
  #teache .teacher-profile-photo { min-height: 650px; }
  #teache .teacher-profile-content { padding: 48px 40px; }
  #teache .teacher-profile-sections { grid-template-columns: 1fr; gap: 22px; }
  #teache .teacher-profile-section:first-child { grid-column: auto; }
}

@media (max-width: 45em) {
  #teache { padding: 64px 4.5vw 84px; }
  #teache::before { font-size: 28vw; top: 0; }
  #teache .teacher-stories-heading { margin-bottom: 38px; }
  #teache .teacher-stories-heading > p { font-size: 10px; }
  #teache .teacher-stories-heading > p::before { width: 28px; margin-right: 9px; }
  #teache .teacher-stories-heading h2 { font-size: clamp(34px, 10vw, 48px); }
  #teache .teacher-stories-heading div > p { margin-top: 16px; font-size: 15px; }
  #teache .teacher-gallery { gap: 12px; padding-bottom: 28px; }
  #teache .teacher-card:nth-child(even) { transform: translateY(22px); }
  #teache .teacher-card-photo { aspect-ratio: 0.71; }
  #teache .teacher-card-copy { gap: 3px; padding: 11px 3px 0; }
  #teache .teacher-card-copy small { font-size: 8px; letter-spacing: 0; }
  #teache .teacher-card-copy strong { font-size: clamp(21px, 6.4vw, 30px); }
  #teache .teacher-card-copy > span { display: none; }
  #teache .teacher-card-arrow {
    right: 7px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  #teache .teacher-profile { grid-template-columns: 1fr; min-height: 0; }
  #teache .teacher-profile-photo { min-height: 0; height: min(70vh, 620px); }
  #teache .teacher-profile-content { padding: 38px 22px 32px; }
  #teache .teacher-profile-dismiss { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 29px; }
  #teache .teacher-profile-count { top: 20px; right: 70px; }
  #teache .teacher-profile-count span { font-size: 42px; }
  #teache .teacher-profile-count small { font-size: 18px; }
  #teache .teacher-profile-kicker { font-size: 10px; padding-top: 0; }
  #teache .teacher-profile-subject { max-width: 75%; margin-top: 24px; font-size: 13px; line-height: 1.6; }
  #teache .teacher-profile h3 { font-size: clamp(42px, 13vw, 60px); }
  #teache .teacher-profile-lead { margin-top: 16px; padding-bottom: 22px; font-size: 20px; }
  #teache .teacher-profile-sections { margin-top: 24px; }
  #teache .teacher-profile-section li { font-size: 14px; }
  #teache .teacher-profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
  #teache .teacher-profile-actions button {
    grid-template-columns: auto 24px;
    column-gap: 7px;
    min-width: 0;
    padding: 10px 10px 10px 15px;
  }
  #teache .teacher-profile-actions button span { font-size: 10px; }
  #teache .teacher-profile-actions button b { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  #teache *, #teache *::before, #teache *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   教甄真心話｜固定標題＋QA 直向滾動
   ========================================================= */
#teacher-truth {
  --truth-navy: #173f45;
  --truth-teal: #0b8589;
  --truth-orange:#ff9c82;
  --truth-cream: #fffaf0;
  --truth-paper: #fffdf8;
  --truth-line: rgba(23, 63, 69, 0.18);
  position: relative;
  z-index: 3;
  overflow: hidden;
  text-align: left;
  scroll-margin-top: 64px;
  height: 100vh;
  background: var(--truth-cream);
  padding: 8vh 5vw;
}

#teacher-truth::before {
  content: "Q&A";
  position: absolute;
  right: -0.02em;
  top: -0.2em;
  z-index: -1;
  color: rgba(11, 133, 137, 0.055);
  font-family: Arial, sans-serif;
  font-size: clamp(130px, 22vw, 340px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

#teacher-truth .truth-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.6fr);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  gap: clamp(24px, 4vw, 64px);
}

#teacher-truth .truth-heading {
  align-self: start;
  position: relative;
  top: auto;
  padding-left: 2vw;
  min-width: 0;
}

#teacher-truth .truth-kicker {
  color: var(--truth-orange);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

#teacher-truth .truth-kicker::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 2px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--truth-teal);
}

#teacher-truth h2 {
  margin:  2vh 0;
  color: var(--truth-navy);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  text-align: left;


  
}

#teacher-truth h2 br { display: block; }
#teacher-truth h2 span {
  color: var(--truth-teal);
  font-size: 0.72em;
  font-weight: inherit;
}
#teacher-truth h2 span::before,
#teacher-truth h2 span::after { content: none; }
#teacher-truth p { font-size: clamp(16px, 1.2vw, 19px);}
#teacher-truth h4{
  margin: 4px 0 18px;
  color: var(--truth-orange);
  font-weight: 600;
  text-align: center;

}

#teacher-truth .truth-intro {
  max-width: 480px;
  margin-top: 26px;
  color: #617679;
  line-height: 1.8;
}

#teacher-truth .truth-hint {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 34px;
  color: var(--truth-teal);
  font-family: "Roboto Mono", "Noto Sans TC", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

#teacher-truth .truth-hint span {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
}

#teacher-truth .truth-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(12px, 1.4vw, 22px) 0 0;
  scroll-behavior: smooth;
  scrollbar-color: var(--truth-orange) rgba(23, 63, 69, 0.09);
  scrollbar-width: thin;
  min-width: 0;
  height: clamp(500px, 72svh, 680px);
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

#teacher-truth .truth-scroll::-webkit-scrollbar { width: 7px; }
#teacher-truth .truth-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 63, 69, 0.08);
}
#teacher-truth .truth-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--truth-orange);
}
#teacher-truth .truth-scroll:focus-visible {
  outline: 3px solid rgba(11, 133, 137, 0.38);
  outline-offset: 8px;
}

#teacher-truth .truth-card {
  position: relative;
  min-height: 330px;
  margin: 0 0 22px;
  padding: clamp(28px, 3.5vw, 52px);
  border: 1px solid var(--truth-line);
  background:#fff;
  box-shadow: 0 18px 52px rgba(23, 63, 69, 0.08);
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}

#teacher-truth .truth-card:nth-child(2n) {
  background:#ffeadb;
}

#teacher-truth .truth-card:nth-child(3n) {
  background:#f7f7f7;
}
#teacher-truth .truth-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--truth-line);
  color: var(--truth-orange);
  font-family: "Roboto Mono", monospace;
  line-height: 1.3;
}

#teacher-truth .truth-meta span {
  font-size: 30px;
  font-weight: 700;
}

#teacher-truth .truth-meta small {
  color: #648084;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: right;
}

#teacher-truth .truth-card h3 {
  margin: 5vh auto 2vh;
  color: var(--truth-navy);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(22px, 1.68vw, 28px);
  font-weight: 700;
  text-align: center;
}

#teacher-truth .truth-card p {
  text-align: left;
}

#teacher-truth .truth-card p + p { margin-top: 13px; }
#teacher-truth .truth-card strong { color: var(--truth-navy); font-weight: 600; }

#teacher-truth .truth-card a {
  display: block;
  text-align: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--truth-teal);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  overflow-wrap: anywhere;
}
#teacher-truth .truth-card a::after { content: "↗"; }
#teacher-truth .truth-card a:hover { color: var(--truth-orange); }
#teacher-truth .truth-card a:focus-visible {
  outline: 3px solid rgba(220, 123, 66, 0.35);
  outline-offset: 4px;
}



#teacher-truth .truth-big-number {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin: 3px 0 20px;
}
#teacher-truth .truth-big-number strong {
  color: var(--truth-orange);
  font-family: "Teko", "Roboto Mono", sans-serif;
  font-size: clamp(72px, 8vw, 112px);
  font-weight: 600;
  line-height: 0.82;
}
#teacher-truth .truth-big-number span {
  padding-bottom: 5px;
  color: var(--truth-teal);
  font-size: 15px;
  font-weight: 700;
}
#teacher-truth table {
  border: solid 1px;
  text-align: center;
  margin: 2vh 0;
  width: 100%;
  border-color: var(--truth-line);
  font-size: 90%;
}
#teacher-truth td,
#teacher-truth th {
  border-bottom: solid 1px;
  border-right: solid 1px;
  padding: 12px;
  border-color: var(--truth-line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
#teacher-truth td:nth-child(2) { text-align: left;}
#teacher-truth td strong { font-weight: 600;}
#teacher-truth th {background: #edf6f3;}
#teacher-truth td:first-child {width: 25%;}
#teacher-truth .truth-card img { width: 100%; height: auto; margin: 2vh 0;}
@media (max-width: 62em) {
  #teacher-truth .truth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #teacher-truth .truth-scroll { height: clamp(440px, 65svh, 640px); }
}

@media (max-width: 45em) {
  #teacher-truth { padding: 68px 5vw 72px; height: auto;}
  #teacher-truth .truth-layout { grid-template-columns: 1fr; gap: 38px; }
  #teacher-truth .truth-heading { position: relative; top: auto; }
  #teacher-truth .truth-kicker { font-size: 10px; }
  #teacher-truth .truth-kicker::before { width: 28px; margin-right: 9px; }
  #teacher-truth h2 { margin-top: 20px; font-size: clamp(40px, 12.5vw, 58px); }
  #teacher-truth .truth-intro { margin-top: 20px; font-size: 16px; }
  #teacher-truth .truth-hint { margin-top: 24px; }
  #teacher-truth .truth-scroll {
    padding-right: 10px;
    height: clamp(360px, 62svh, 570px);
    min-height: 0;
  }
  #teacher-truth .truth-card { min-height: 0; margin-bottom: 14px; padding: 26px 21px 29px;font-size: 95%; }
  #teacher-truth .truth-meta span { font-size: 24px; }
  #teacher-truth .truth-card h3 { line-height: 1.5; }
  #teacher-truth .truth-card p { line-height: 1.85; font-size: 16px; }
  #teacher-truth .truth-big-number { align-items: center; }
  #teacher-truth .truth-big-number strong { font-size: clamp(72px, 23vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  #teacher-truth .truth-scroll { scroll-behavior: auto; }
}

/* =========================================================
   上榜學員心得｜#st
   ========================================================= */
#st {
  --story-ink: #173f45;
  --story-muted: #66777a;
  --story-teal: #0b8589;
  --story-orange: #d97842;
  --story-paper: #fffaf1;
  --story-line: rgba(23, 63, 69, 0.16);
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 140px) max(5vw, calc((100vw - 1440px) / 2));
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 187, 113, 0.28), transparent 23%),
    radial-gradient(circle at 4% 74%, rgba(83, 177, 174, 0.16), transparent 26%),
    var(--story-paper);
  color: var(--story-ink);
  text-align: left;
  scroll-margin-top: 64px;
  z-index: 3;
}

#st::before {
  content: "STORIES";
  position: absolute;
  top: -0.22em;
  right: -0.05em;
  color: rgba(217, 120, 66, 0.06);
  font-family: "Arial", sans-serif;
  font-size: clamp(110px, 17vw, 270px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

#st .student-stories-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  max-width: 1440px;
  margin: 0 auto clamp(46px, 5vw, 76px);
}

#st .student-stories-heading > p,
#st .student-story-kicker {
  padding-top: 12px;
  color: var(--story-orange);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

#st .student-stories-heading > p::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  margin-right: 14px;
  vertical-align: middle;
  background: var(--story-teal);
}

#st .student-stories-heading h2 {
  margin: 0;
  color: var(--story-ink);
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.12;
  text-align: left;
}
#st .student-stories-heading h2 br { display: block; }
#st .student-stories-heading h2 span {
  color: var(--story-orange);
  font-size: 0.76em;
  font-weight: inherit;
}
#st .student-stories-heading h2 span::before,
#st .student-stories-heading h2 span::after { content: none; }
#st .student-stories-heading div > p {
  max-width: 760px;
  margin-top: 22px;
  color: var(--story-muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.9;
}

#st .student-story-experience {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
}

#st .student-story-stage {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  min-height: 570px;
  border: 1px solid var(--story-line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 70px rgba(53, 61, 50, 0.12);
}

#st .student-story-visual {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.65), transparent 20%),
    linear-gradient(155deg, #f8c57e 0%, #ed9b62 46%, #d87249 100%);
}
#st .student-story-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  top: 18%;
  left: 15%;
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,255,255,0.08), 0 0 0 94px rgba(255,255,255,0.05);
}

#st .student-story-sequence {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 30px;
  color: #fff;
  font-family: "Teko", "Arial", sans-serif;
  line-height: 1;
}
#st .student-story-sequence b { font-size: 64px; font-weight: 600; }
#st .student-story-sequence small { font-size: 22px; opacity: 0.78; }

#st .student-story-quote-mark {
  position: absolute;
  z-index: 1;
  top: 76px;
  right: 24px;
  color: rgba(255,255,255,0.42);
  font-family: Georgia, serif;
  font-size: 210px;
  line-height: 1;
}

#st .student-story-visual img {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 0;
  width: 78%;
  height: 74%;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.78) sepia(0.08);
}

#st .student-story-visual > p {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 24px;
  background: rgba(23, 63, 69, 0.88);
  color: #fff;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  backdrop-filter: blur(8px);
}

#st .student-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 5vw, 82px);
}
#st .student-story-kicker { padding-top: 0; color: var(--story-teal); }

#st .student-story-copy blockquote {
  position: relative;
  margin: 24px 0 0;
  color: #29484c;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: 0.015em;
}

#st .student-story-copy blockquote::before {
  content: "“";
  position: absolute;
  top: -0.48em;
  left: -0.4em;
  z-index: -1;
  color: rgba(217, 120, 66, 0.14);
  font-family: Georgia, serif;
  font-size: 4.5em;
  line-height: 1;
}

#st .student-story-author {
  margin-top: 28px;
  color: var(--story-orange);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: right;
}
#st .student-story-author small { font-size: 0.84em; }

#st .student-story-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid var(--story-line);
}
#st .student-story-controls button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--story-ink);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
#st .student-story-controls button:first-child { text-align: left; }
#st .student-story-controls button:last-child { text-align: right; }
#st .student-story-controls button span { color: var(--story-orange); font-size: 20px; }
#st .student-story-controls button:hover,
#st .student-story-controls button:focus-visible { color: var(--story-orange); }
#st .student-story-controls button:focus-visible { outline: 2px solid var(--story-orange); outline-offset: 5px; }
#st .student-story-controls p {
  color: var(--story-muted);
  font-family: "Teko", "Arial", sans-serif;
  line-height: 1;
}
#st .student-story-controls strong { color: var(--story-teal); font-size: 42px; }
#st .student-story-controls p span { font-size: 21px; }

#st .student-story-rail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 42px 0 16px;
}
#st .student-story-rail-heading p { color: var(--story-ink); font-size: 17px; font-weight: 700; }
#st .student-story-rail-heading span { color: var(--story-muted); font-size: 13px; }

#st .student-story-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(11, 133, 137, 0.45) transparent;
  scrollbar-width: thin;
}
#st .student-story-tab {
  position: relative;
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 19px 18px;
  border: 1px solid var(--story-line);
  background: rgba(255,255,255,0.58);
  color: var(--story-ink);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
  appearance: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
#st .student-story-tab small {
  grid-row: 1 / span 2;
  color: var(--story-orange);
  font-family: "Teko", "Arial", sans-serif;
  font-size: 34px;
  line-height: 1;
}
#st .student-story-tab strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#st .student-story-tab span {
  overflow: hidden;
  color: var(--story-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#st .student-story-tab i {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 17px;
  font-style: normal;
}
#st .student-story-tab:hover,
#st .student-story-tab:focus-visible,
#st .student-story-tab.is-active {
  border-color: var(--story-teal);
  background: var(--story-teal);
  color: #fff;
  transform: translateY(-3px);
}
#st .student-story-tab:hover small,
#st .student-story-tab:focus-visible small,
#st .student-story-tab.is-active small { color: #ffd79f; }
#st .student-story-tab:hover span,
#st .student-story-tab:focus-visible span,
#st .student-story-tab.is-active span { color: rgba(255,255,255,0.76); }
#st .student-story-tab:focus-visible { outline: 3px solid #e89a36; outline-offset: 2px; }

#st.is-enhanced .student-story-source { display: none; }


/* 完整上榜名單改為次層資訊 */
#good-teacher {
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) max(5vw, calc((100vw - 1320px) / 2));
  background: linear-gradient(180deg, #eef8f6 0%, #f8fbf8 100%);
  color: #173f45;
  position: relative;
  z-index: 3;
}
#good-teacher h2 {
  margin: 0 0 32px;
  color: #173f45;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
}
#good-teacher h2 br { display: block; }
#good-teacher h2 span { color: #0b8589; font-size: 0.8em; }
#good-teacher h2 span::before,
#good-teacher h2 span::after { content: none; }
#good-teacher ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  justify-content: initial;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: max-height 420ms ease;
}
#good-teacher ul li {
  width: auto;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 63, 69, 0.12);
  color: #31565b;
  font-size: 14px;
  text-align: left;
}
#good-teacher ul kbd {
  display: inline-block;
  min-width: 76px;
  margin: 0 9px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeeea;
  color: #0a7479;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 11px;
  text-align: center;
}
#good-teacher ul span { display: block; padding: 3px 0 0 86px; color: #d97842; font-size: 12px; }
#good-teacher.is-collapsible ul {
  max-height: 224px;
  mask-image: linear-gradient(#000 58%, transparent 100%);
}
#good-teacher.is-collapsible.is-expanded ul { max-height: 2200px; mask-image: none; }
#good-teacher .good-teacher-toggle {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  margin: 30px auto 12px;
  padding: 12px 20px;
  border: 1px solid #0b8589;
  border-radius: 999px;
  background: #fff;
  color: #075f67;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
#good-teacher .good-teacher-toggle b { font-size: 22px; font-weight: 400; }
#good-teacher .good-teacher-toggle:hover,
#good-teacher .good-teacher-toggle:focus-visible { background: #0b8589; color: #fff; }
#good-teacher .good-teacher-toggle:focus-visible { outline: 3px solid #e89a36; outline-offset: 3px; }
#good-teacher > p { margin-top: 8px; color: #76898b; font-size: 12px; }

@media (max-width: 68em) {
  #st { padding-right: 5vw; padding-left: 5vw; }
  #st .student-stories-heading { grid-template-columns: 1fr; gap: 12px; }
  #st .student-stories-heading > p { padding-top: 0; }
  #good-teacher ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 45em) {
  #st { padding: 64px 4.5vw 78px; }
  #st::before { top: 0; font-size: 29vw; }
  #st .student-stories-heading { margin-bottom: 34px; }
  #st .student-stories-heading > p { font-size: 10px; }
  #st .student-stories-heading > p::before { width: 28px; margin-right: 9px; }
  #st .student-stories-heading h2 { font-size: clamp(33px, 9.5vw, 46px); }
  #st .student-stories-heading h2 span { font-size: 0.72em; }
  #st .student-stories-heading div > p { margin-top: 16px; font-size: 14px; }
  #good-teacher { padding: 54px 5vw; }
  #good-teacher h2 { margin-bottom: 24px; }
  #good-teacher ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  #good-teacher ul li { padding: 10px 0; font-size: 12px; }
  #good-teacher ul kbd { min-width: 0; margin-right: 5px; padding: 1px 6px; font-size: 9px; }
  #good-teacher ul span { padding-left: 0; font-size: 10px; }
  #good-teacher.is-collapsible ul { max-height: 205px; }
  #good-teacher.is-collapsible.is-expanded ul { max-height: 4000px; }
}

@media (prefers-reduced-motion: reduce) {
  #st *, #st *::before, #st *::after,
  #good-teacher *, #good-teacher *::before, #good-teacher *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   學員心得橫向錯落跑馬燈｜Creative editorial direction
   ========================================================= */
#st.is-marquee-layout {
  --story-night: #12383d;
  --story-night-deep: #0d2b2f;
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(244, 162, 97, 0.16), transparent 25%),
    linear-gradient(155deg, var(--story-night-deep), var(--story-night));
  color: #f8f4e9;
}

#st.is-marquee-layout::before {
  top: -0.18em;
  color: rgba(255,255,255,0.035);
}

#st.is-marquee-layout .student-stories-heading {
  width: min(90%, 1440px);
  margin-bottom: clamp(40px, 5vw, 70px);
}
#st.is-marquee-layout .student-stories-heading > p { color: #9dd0cd; }
#st.is-marquee-layout .student-stories-heading > p::before { background: #f4a261; }
#st.is-marquee-layout .student-stories-heading h2 { color: #fffaf1; }
#st.is-marquee-layout .student-stories-heading h2 span { color: #f4a261; }
#st.is-marquee-layout .student-stories-heading div > p { color: rgba(255,255,255,0.68); }

#st.is-marquee-layout .student-story-experience.student-marquee {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}

#st .student-marquee-edge-next {
  position: absolute;
  top: 52%;
  right: clamp(18px, 2.2vw, 38px);
  z-index: 6;
  display: grid;
  grid-template-columns: auto 46px;
  gap: 10px;
  align-items: center;
  min-width: 128px;
  min-height: 58px;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  color: #173f45;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}
#st .student-marquee-edge-next b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f4a261;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
#st .student-marquee-edge-next:hover,
#st .student-marquee-edge-next:focus-visible {
  background: #f4a261;
  color: #173f45;
  transform: translateX(-6px);
}
#st .student-marquee-edge-next:hover b,
#st .student-marquee-edge-next:focus-visible b { background: #fffaf1; }
#st .student-marquee-edge-next:focus-visible { outline: 3px solid #fff3d8; outline-offset: 4px; }

#st .student-marquee-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(90%, 1440px);
  margin: 0 auto 20px;
}
#st .student-marquee-toolbar > p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.05em;
}
#st .student-marquee-toolbar > p span {
  color: #f4a261;
  font-size: 9px;
  animation: storyPulse 1.8s ease-in-out infinite;
}
#st .student-marquee-toolbar > div { display: flex; gap: 8px; }
#st .student-marquee-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
#st .student-marquee-toolbar [data-marquee-toggle] {
  gap: 8px;
  min-width: 88px;
  font-size: 12px;
}
#st .student-marquee-toolbar [data-marquee-toggle] b { font-size: 13px; font-weight: 500; }
#st .student-marquee-toolbar button:hover,
#st .student-marquee-toolbar button:focus-visible {
  border-color: #f4a261;
  background: #f4a261;
  color: #173f45;
}
#st .student-marquee-toolbar button:focus-visible { outline: 3px solid #fff3d8; outline-offset: 3px; }

#st .student-marquee-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 10px 5vw 94px;
  cursor: grab;
  scrollbar-color: rgba(244, 162, 97, 0.55) rgba(255,255,255,0.08);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
#st .student-marquee-viewport.is-dragging { cursor: grabbing; user-select: none; }
#st .student-marquee-viewport:focus-visible { outline: 2px solid #f4a261; outline-offset: -2px; }
#st .student-marquee-viewport::-webkit-scrollbar { height: 7px; }
#st .student-marquee-viewport::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); }
#st .student-marquee-viewport::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(244, 162, 97, 0.6); }

#st .student-marquee-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 1.6vw, 26px);
  width: max-content;
  padding: 0 0 82px;
}

#st .student-story-card {
  --card-shift: 0px;
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: clamp(410px, 32vw, 510px);
  padding: clamp(24px, 2.3vw, 36px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: #183f44;
  box-shadow: 0 24px 50px rgba(0,0,0,0.16);
  transform: translateY(var(--card-shift));
  transition: transform 260ms ease, box-shadow 260ms ease;
}
#st .student-story-card.is-wide { width: clamp(390px, 34vw, 520px); }
#st .student-story-card.is-medium { width: clamp(340px, 29vw, 445px); }
#st .student-story-card.is-compact { width: clamp(305px, 25vw, 380px); }
#st .student-story-card.shift-1 { --card-shift: 0px; }
#st .student-story-card.shift-2 { --card-shift: 54px; }
#st .student-story-card.shift-3 { --card-shift: 18px; }
#st .student-story-card.shift-4 { --card-shift: 76px; }
#st .student-story-card.tone-1 { background: #fff2d8; }
#st .student-story-card.tone-2 { background: #167a7b; color: #fff; }
#st .student-story-card.tone-3 { background: #f1a083; }
#st .student-story-card.tone-4 { background: #cfe7f2; }
#st .student-story-card:hover,
#st .student-story-card:focus-visible {
  z-index: 2;
  box-shadow: 0 34px 70px rgba(0,0,0,0.26);
  transform: translateY(calc(var(--card-shift) - 8px));
}
#st .student-story-card:focus-visible { outline: 3px solid #f4a261; outline-offset: 4px; }

#st .student-story-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: clamp(24px, 2.5vw, 38px);
}
#st .student-story-card header small {
  color: currentColor;
  font-family: "Teko", "Arial", sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.78;
}
#st .student-story-card header > span {
  color: currentColor;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.65;
}
#st .student-story-card header img {
  position: static;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,0.78);
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.72);
}

#st .student-story-card blockquote {
  flex: 1;
  margin: 0;
  color: currentColor;
  line-height: 1.86;
  letter-spacing: 0.01em;
}
#st .student-story-card blockquote::before {
  content: "“";
  display: block;
  height: 0.52em;
  margin-left: -0.08em;
  color: currentColor;
  font-family: Georgia, serif;
  font-size: 3.6em;
  line-height: 0.85;
  opacity: 0.16;
}

#st .student-story-card footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  color: currentColor;
}
#st .student-story-card footer strong {
  max-width: 70%;
  color: currentColor;
  font-size: 14px;
  line-height: 1.45;
}
#st .student-story-card footer span {
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
#st .student-story-card.tone-2 footer,
#st .student-story-card.tone-2 header img { border-color: rgba(255,255,255,0.42); }

@keyframes storyPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 68em) {
  #st .student-marquee-edge-next { display: none; }
  #st.is-marquee-layout { padding-right: 0; padding-left: 0; }
  #st.is-marquee-layout .student-stories-heading,
  #st .student-marquee-toolbar { width: 90%; }
  #st .student-story-card.is-wide { width: min(60vw, 470px); }
  #st .student-story-card.is-medium { width: min(54vw, 420px); }
  #st .student-story-card.is-compact { width: min(49vw, 370px); }
}

@media (max-width: 45em) {
  #st.is-marquee-layout { padding: 64px 0 72px; }
  #st.is-marquee-layout .student-stories-heading { width: 91%; }
  #st .student-marquee-toolbar { width: 91%; margin-bottom: 14px; }
  #st .student-marquee-toolbar > p { max-width: 190px; font-size: 10px; line-height: 1.5; }
  #st .student-marquee-toolbar button { min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; }
  #st .student-marquee-toolbar [data-marquee-toggle] { min-width: 76px; font-size: 10px; }
  #st .student-marquee-viewport { padding: 8px 4.5vw 68px; }
  #st .student-marquee-track { gap: 13px; padding-bottom: 48px; }
  #st .student-story-card,
  #st .student-story-card.is-wide,
  #st .student-story-card.is-medium,
  #st .student-story-card.is-compact {
    width: 82vw;
    max-width: 360px;
    min-height: 410px;
    padding: 22px;
  }
  #st .student-story-card.shift-2 { --card-shift: 28px; }
  #st .student-story-card.shift-3 { --card-shift: 10px; }
  #st .student-story-card.shift-4 { --card-shift: 38px; }
  #st .student-story-card header { margin-bottom: 24px; }
  #st .student-story-card header small { font-size: 32px; }
  #st .student-story-card header img { width: 48px; height: 48px; }
  #st .student-story-card blockquote { font-size: 16px; line-height: 1.78; }
  #st .student-story-card footer { margin-top: 24px; }
  #st .student-story-card footer strong { font-size: 12px; }
  #st .student-story-card footer span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #st .student-marquee-toolbar > p span { animation: none; }
}

/* =========================================================
   全頁 RWD 安全檢查｜平板 68em、手機 45em／40em
   ========================================================= */
@media screen and (max-width: 68em) {
  #cate h6 {
    top: 0;
    left: 0;
    margin: 0 0 1.25em;
  }

  #exam .exam-heading > *,
  #exam .exam-filter > *,
  #exam .exam-results > *,
  #teache .teacher-profile > *,
  #st .student-stories-heading > * {
    min-width: 0;
  }
}

@media screen and (max-width: 45em) {
  #top .mag-slide > img {
    max-width: 100%;
    height: auto;
  }

  .mag-header,
  .mag-content,
  #exam .exam-shell,
  #teache .teacher-profile,
  #good-teacher,
  #faq,
  #edu,
  #cate {
    max-width: 100%;
  }

  #teache .teacher-profile-content,
  #exam .exam-inline-detail,
  #exam .exam-result-item {
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 40em) {
  #exam .exam-summary-table-wrap,
  #exam #exam-county-buttons,
  #st .student-marquee-viewport {
    max-width: 100%;
  }

  #teache .teacher-profile-actions button,
  #good-teacher .good-teacher-toggle {
    max-width: 100%;
  }
}
.btn {
  display: inline-block;
  margin: 5vh 0 0 0;
  padding: 1vh 5vw;
  font-weight: bolder;
  color: #fff;
  background: #000;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 15px;
}
.btn::after {
  content: "";
  background: white;
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}
.btn:hover {
  color: #666bff;
  transform: scale(1.1);
  border: solid 2px;
}
.btn:hover:after {
  transform: skewX(-45deg) scale(1, 1);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}
.btn a {
  font-size: 1.5rem;
}