:root{
  --green:#14532D;
  --green-light:#EAF7EE;
  --green-soft:#F4FFF8;
  --gold:#8B6A3E;
  --text:#2B2B2B;
  --white:#FFFFFF;
  --shadow:0 10px 30px rgba(20,83,45,.08);
  --radius:24px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;
  color:var(--text);
  background:#FAFCF9;
  line-height:1.8;
}

/* ================= HERO ================= */

.hero{
  background:linear-gradient(180deg,#EAF7EE 0%,#FFFFFF 100%);
  padding:28px 6% 44px;
  position:relative;
  overflow:hidden;
}

.hero::before,
.hero::after{
  content:"";
  position:absolute;
  width:220px;
  height:320px;
  background:rgba(70,140,90,.08);
  border-radius:80% 0 80% 0;
  transform:rotate(-18deg);
}

.hero::before{
  left:-60px;
  top:-80px;
}

.hero::after{
  right:-80px;
  bottom:-120px;
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:36px;
}

.logo-group{
  display:flex;
  align-items:center;
  gap:18px;
}

.logo{
  width:62px;
  height:62px;
  object-fit:contain;
}

.eng{
  font-size:12px;
  letter-spacing:3px;
  color:#4B7A5A;
  font-weight:700;
}

.navbar h1{
  font-size:22px;
  color:var(--green);
}

.hero-content{
  max-width:760px;
}

.hero-content h2{
  font-size:56px;
  line-height:1.25;
  color:var(--green);
  margin-bottom:24px;
  font-weight:800;
}

.hero-content p{
  font-size:20px;
  color:#4E5B54;
}

.hero-buttons{
  margin-top:28px;
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:14px 32px;
  border-radius:999px;
  border:2px solid var(--green);
  color:var(--green);
  text-decoration:none;
  font-weight:700;
}

.btn:hover{
  background:#F3FBF5;
  transform:translateY(-2px);
}

.btn.primary{
  background:var(--green);
  color:white;
}

.btn.primary:hover{
  box-shadow:0 12px 24px rgba(20,83,45,.18);
}

/* ================= Section ================= */

section{
  width:min(1120px,92%);
  margin:auto;
  padding:34px 0;
}

section h2{
  color:var(--green);
  font-size:36px;
  margin-bottom:30px;
}

section h3{
  color:var(--green);
}

/* ================= Notice ================= */

.notice-card{
  background:#EDF9F1;
  border-radius:var(--radius);
  padding:32px 36px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:flex-start;
  gap:20px;
}

.notice-card h3{
  margin-bottom:10px;
  font-size:24px;
}

.notice-icon{
  font-size:34px;
  line-height:1;
  flex-shrink:0;
}

.notice-item{
  margin-top:14px;
  padding:14px 16px;
  border-radius:14px;
  background:#FFFFFF;
  border-left:5px solid #8FBF98;
}

.notice-item strong{
  display:block;
  color:#14532D;
  margin-bottom:6px;
}

.notice-item p{
  color:#4E5B54;
  font-size:15px;
  line-height:1.7;
}



/* ================= Dates ================= */

.date-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.date-card{
  background:white;
  border-radius:22px;
  text-align:center;
  padding:28px;
  box-shadow:var(--shadow);
}

.date-card span{
  display:block;
  color:#6A8D77;
  margin-bottom:12px;
}

.date-card strong{
  font-size:28px;
  color:var(--green);
}

/* 首頁三梯次日期卡 */

.event-card{
  background:#FFFFFF;
  border-radius:22px;
  padding:26px 20px;
  text-align:center;
  box-shadow:var(--shadow);
  border-top:4px solid #14532D;
  transition:.3s;
}

.event-card small{
  display:block;
  color:#6B8A73;
  font-weight:700;
  margin-bottom:10px;
}

.event-card h3{
  font-size:30px;
  margin-bottom:8px;
  color:#14532D;
}

.event-card p{
  color:#64746B;
  font-size:15px;
}



/* ================= Features ================= */

.feature-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}

.feature-card{
  background:white;
  border-radius:28px;
  padding:34px;
  box-shadow:var(--shadow);
  transition:.35s;
}


.feature-card h3{
  margin-bottom:10px;
  color:var(--green);
}

.feature-card p{
  color:#56655D;
}

/* V12 校園照片卡 */

.feature-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:18px;
  display:block;
  transition:transform .35s ease;
}

.feature-card:hover img{
  transform:scale(1.04);
}



.feature-icon{
  font-size:44px;
  margin-bottom:18px;
  display:block;
}


/* ================= Story ================= */

.story-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}

.story-card{
  background:white;
  border-radius:28px;
  padding:34px;
  box-shadow:var(--shadow);
  border-left:8px solid #D7EFDE;
  overflow:hidden;      /* ← 新增這一行 */
}

.story-card img{
  width:100%;
  height:auto;
  object-fit:contain;
  //height:190px;
  //object-fit:cover;
  border-radius:18px;
  margin-bottom:18px;
  display:block;
  transition:transform .35s ease;
}


.story-card h3{
  margin-bottom:14px;
  color:var(--green);
}

/* ================= Timeline ================= */

.timeline{
  background:linear-gradient(180deg,#F4FFF8,#FFFFFF);
  border-radius:32px;
  padding:60px;
}

.time-item{
  display:flex;
  align-items:center;
  gap:28px;
  padding:18px 0;
  border-bottom:1px solid #E8EFEA;
}

.time-item:last-child{
  border:none;
}

.time-item span{
  background:var(--green);
  color:white;
  padding:8px 16px;
  border-radius:999px;
  min-width:140px;
  text-align:center;
  font-size:15px;
  font-weight:700;
}

.time-item p{
  font-size:18px;
}

/* ================= Parent ================= */

.parent-box{
  background:var(--green);
  color:white;
  border-radius:32px;
  padding:60px;
}

.parent-box h2{
  color:white;
}

.parent-box ul{
  margin-top:18px;
  padding-left:22px;
}

.parent-box li{
  margin-bottom:12px;
}

/* ================= Footer ================= */

footer{
  background:#103B22;
  color:white;
  text-align:center;
  padding:56px 20px;
  margin-top:24px;
}

.footer-logo{
  width:70px;
  margin-bottom:16px;
}

footer p{
  margin:8px 0;
}

.slogan{
  color:#CBE7D4;
}

/* ================= Activity Preview ================= */

.activity-preview-card{
  background:linear-gradient(135deg,#F4FFF8,#EAF7EE);
  border-radius:28px;
  padding:40px;
  display:flex;
  align-items:center;
  gap:28px;
  box-shadow:var(--shadow);
}

.activity-icon{
  font-size:52px;
  flex-shrink:0;
}

.activity-label{
  display:inline-block;
  color:#6B8A73;
  font-size:13px;
  font-weight:700;
  letter-spacing:2px;
  margin-bottom:8px;
}

.activity-content p{
  color:#56655D;
  margin:10px 0 22px;
}


/* ==========================================
   Welcome Explorer V12 首頁區塊間距
========================================== */

.notice-section{
  padding-top:18px;
  padding-bottom:24px;
}

.event-banner{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  padding-top:12px;
  padding-bottom:24px;
}

.activity-preview{
  padding-top:20px;
  padding-bottom:28px;
}

.brand-section{
  padding-top:24px;
  padding-bottom:28px;
}

.story-section{
  padding-top:24px;
  padding-bottom:30px;
}

.section-title{
  text-align:center;
  margin-bottom:24px;
}

.section-title span{
  display:block;
  margin-bottom:8px;
  letter-spacing:3px;
  font-size:13px;
  color:#6B8A73;
  font-weight:700;
}

.section-title h2{
  margin-bottom:8px;
}

.section-title p,
.brand-slogan{
  color:#64746B;
}


/* ================= RWD ================= */

@media (max-width:900px){

  .hero-content h2{
    font-size:40px;
  }

  .feature-grid,
  .story-grid,
  .date-grid,
  .event-banner{
  grid-template-columns:1fr;
  }

  .timeline,
  .parent-box,
  .notice-card{
    padding:30px;
  }

  .time-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .time-item span{
    min-width:auto;
  }

  section h2{
    font-size:30px;
  }

  .navbar{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
  }

  .hero-buttons{
    flex-direction:column;
  }

/* ← 在這裡加入 */

.activity-preview-card{
  flex-direction:column;
  text-align:center;
  padding:28px 24px;
}

.activity-icon{
  font-size:42px;
}

.activity-content .btn{
  width:100%;
  max-width:260px;
  margin:0 auto;
  display:block;
}

  .btn{
    width:100%;
    text-align:center;
  }

}

/* ==========================================
   Welcome Explorer V12 Official
   共用搜尋框（Group / Passport / Result）
========================================== */

.search-form{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:24px;
}

.search-form input{
    width:100%;
    padding:16px 18px;
    border-radius:14px;
    border:1px solid #BFD7C3;
    font-size:16px;
    transition:.25s;
}

.search-form input:focus{
    outline:none;
    border-color:#14532D;
    box-shadow:0 0 0 4px rgba(20,83,45,.08);
}

.search-note{
    margin-top:16px;
    color:#64746B;
    font-size:15px;
    line-height:1.6;
}

/* ==========================================
   Welcome Explorer V12
   返回頂端按鈕
========================================== */

#backTop{
  position:fixed;
  right:24px;
  bottom:28px;

  width:52px;
  height:52px;
  border:none;
  border-radius:50%;

  background:#14532D;
  color:#FFFFFF;
  font-size:22px;
  font-weight:700;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:0 10px 24px rgba(20,83,45,.18);

  opacity:0;
  visibility:hidden;
  transform:translateY(20px);

  transition:
    opacity .3s ease,
    transform .3s ease,
    visibility .3s ease,
    background .25s ease;

  z-index:999;
}

#backTop.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

#backTop:hover{
  background:#103B22;
  transform:translateY(-3px);
}

@media (max-width:768px){
  #backTop{
    width:46px;
    height:46px;
    right:18px;
    bottom:20px;
    font-size:20px;
  }
}

/* ==========================================
   Welcome Explorer V13
   Group Result Card
========================================== */

.group-result-card{
  max-width:760px;
  margin:auto;
  padding:42px;
  border-radius:32px;
  background:linear-gradient(180deg,#FFFFFF,#F7FCF8);
  box-shadow:0 18px 48px rgba(20,83,45,.12);
  border:2px solid #E4F3E8;
}

.group-card-header{
  text-align:center;
  margin-bottom:28px;
}

.group-card-logo{
  width:72px;
  margin-bottom:12px;
}

.group-card-eng{
  letter-spacing:3px;
  color:#6B8A73;
  font-size:13px;
  font-weight:700;
}

.group-card-header h2{
  color:#14532D;
  font-size:34px;
  margin:8px 0;
}

.group-card-subtitle{
  color:#64746B;
}

.group-card-name{
  text-align:center;
  margin:34px 0;
}

.group-card-name span{
  color:#6B8A73;
  font-size:15px;
}

.group-card-name h1{
  color:#14532D;
  font-size:42px;
  margin-top:6px;
}

.group-highlight{
  background:linear-gradient(135deg,#14532D,#2D7A47);
  color:#fff;
  padding:26px;
  border-radius:24px;
  text-align:center;
  margin-bottom:28px;
}

.group-highlight span{
  opacity:.85;
  letter-spacing:2px;
  font-size:14px;
}

.group-highlight h1{
  font-size:38px;
  margin-top:8px;
}

.group-info-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  margin-bottom:28px;
}

.group-info-box{
  background:#F4FFF8;
  padding:18px;
  border-radius:18px;
}

.group-info-box span{
  display:block;
  color:#6B8A73;
  font-size:13px;
  margin-bottom:6px;
}

.group-info-box strong{
  color:#14532D;
  font-size:20px;
}

.group-checkin-banner{
  background:#FFF7E7;
  color:#8B6A3E;
  font-weight:700;
  padding:18px 22px;
  border-radius:18px;
  text-align:center;
  margin-bottom:28px;
  border:1px solid #F2DEB5;
}

.result-action{
    margin-top:28px;
    text-align:center;
}

.result-info-btn{
    display:inline-block;
    padding:14px 34px;
    border-radius:999px;
    font-weight:700;
    text-decoration:none;
    transition:.25s;
}

.admit-btn{
    background:#166534;
    color:#fff;
}

.admit-btn:hover{
    background:#14532d;
}

.wait-btn{
    background:#C2410C;
    color:#fff;
}

.wait-btn:hover{
    background:#9A3412;
}

.group-card-footer{
  text-align:center;
  color:#6B8A73;
  font-size:14px;
  margin-top:30px;
}

/* 手機版 */

@media(max-width:768px){

  .group-result-card{
    padding:28px 22px;
  }

  .group-card-header h2{
    font-size:28px;
  }

  .group-card-name h1{
    font-size:34px;
  }

  .group-highlight h1{
    font-size:30px;
  }

  .group-info-grid{
    grid-template-columns:1fr;
  }

}

/* ==========================================
   FAQ Page
========================================== */

.faq-item{
  background:#FFFFFF;
  border-radius:22px;

  width:100%;
  max-width:960px;        /* 桌機約 80% 寬 */
  margin:0 auto 18px;     /* 置中 + 保留下方間距 */

  overflow:hidden;
  border:1px solid #E4EFE7;
  box-shadow:0 8px 24px rgba(20,83,45,.06);
  transition:.25s ease;
}

.faq-item.active{
  box-shadow:0 16px 36px rgba(20,83,45,.10);
}

.faq-question{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 24px;
  cursor:pointer;
  font-size:18px;
  font-weight:700;
  color:#14532D;
}

.faq-question:hover{
  background:#F7FCF8;
}

.faq-answer{
  display:none;
  padding:0 24px 22px;
  color:#526358;
  line-height:1.9;
}

.faq-item.active .faq-answer{
  display:block;
}

.faq-icon{
  font-size:22px;
  color:#6FAE7B;
  transition:.25s ease;
}

.faq-item.active .faq-icon{
  transform:rotate(45deg);
  color:#14532D;
}

/* FAQ 響應式版面 */

@media (max-width:1024px){
  .faq-item{
    max-width:90%;
  }
}

@media (max-width:768px){
  .faq-item{
    max-width:100%;
    margin:0 auto 14px;
  }

  .faq-question{
    padding:18px 20px;
    font-size:16px;
  }

  .faq-answer{
    padding:0 20px 20px;
  }
}

/* ==========================================
   Result Page
========================================== */

.result-highlight span{
    color:#DDEFE4;
    font-size:15px;
    letter-spacing:2px;
}

.result-highlight h1{
    color:white;
    font-size:56px;
    margin-top:16px;
}

/* 備取樣式 */
.result-highlight.result-wait{
    background:#FFF6E7;
    border-color:#F3CF8B;
}


/* ==========================================
   Welcome Explorer V10 Official
   探索結果顏色
========================================== */

#studentResult.admit{
    color:#15803D;          /* 錄取：綠色 */
}

#studentResult.wait{
    color:#C2410C;          /* 備取：橘色 */

}


/* ==========================================
   V10.1 探索結果卡 = 組別卡樣式
========================================== */

.result-highlight{
    background:#F4FBF7;
    border:1.5px solid #CFE7D8;
    border-radius:22px;
    padding:32px 24px;
    text-align:center;
    margin:28px 0;
}

.result-highlight span{
    display:block;
    font-size:15px;
    color:#4D7A63;
    margin-bottom:12px;
    font-weight:600;
}

.result-highlight h1{
    font-size:48px;
    font-weight:800;
    margin:0;
    letter-spacing:2px;
}

/* ==========================================
   V10.1 Result Card 與 Group Card 完全同步
========================================== */

.result-result-card{
    max-width:760px;
    margin:0 auto;
    padding:48px;
    border-radius:30px;
}

.group-card-name{
    text-align:center;
    margin:28px 0;
}

.group-card-name span{
    display:block;
    color:#4D7A63;
    font-size:15px;
    margin-bottom:10px;
}

.group-card-name h1{
    font-size:52px;
    color:#14532D;
    margin:0;
    font-weight:800;
}

.group-info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    margin-top:28px;
}

.group-info-box{
    background:#F6FCF8;
    border-radius:18px;
    padding:22px;
}

.group-info-box span{
    display:block;
    color:#688574;
    font-size:14px;
    margin-bottom:8px;
}

.group-info-box strong{
    color:#14532D;
    font-size:24px;
}

.group-checkin-banner{
    margin-top:28px;
}

.group-card-footer{
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid #DDEEE4;
    text-align:center;
    color:#4D7A63;
    font-size:14px;
    font-weight:600;
}

/* ===== Result Card Footer ===== */


.result-footer-logo{
    width:46px;
    height:46px;
    object-fit:contain;
    flex-shrink:0;
}

.result-card-footer p{
    margin:0;
    font-size:15px;
    font-weight:600;
    color:#29583F;
}

.result-card-footer small{
    display:block;
    margin-top:4px;
    color:#6E8578;
    font-size:13px;
}


.notice-box{
    margin-top:28px;
    background:#FFF9F2;
    border:1px solid #F2D7A6;
    border-radius:18px;
    padding:22px 24px;
}

.notice-title{
    font-size:18px;
    font-weight:700;
    color:#8A5B16;
    margin-bottom:12px;
}

.notice-box ul{
    margin:0;
    padding-left:20px;
}

.notice-box li{
    margin:8px 0;
    color:#6B5735;
    line-height:1.8;
}


/* ==========================================
   Welcome Explorer 通知卡（Group / Result 共用）
========================================== */

.group-card,
.result-card{

    max-width: 760px;
    margin: 60px auto;
    padding: 36px;

    background: #ffffff;

    border-radius: 30px;

    box-shadow:
        0 18px 45px rgba(23,84,52,.12),
        0 4px 12px rgba(23,84,52,.06);

    border:1px solid #EEF5F0;

    position:relative;
}

/* ===== Welcome Explorer V11 Official：admit.html ===== */

.schedule-card{
    background:#F8FFFB;
    border:1px solid #D1FAE5;
    border-left:6px solid #16A34A;
    border-radius:22px;
    padding:28px;
    margin:28px auto;
    box-shadow:0 10px 24px rgba(22,101,52,.08);
}

.schedule-card h3{
    margin-top:0;
    color:#166534;
}

.schedule-item{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:14px 0;
    border-bottom:1px dashed #D1D5DB;
}

.schedule-item:last-child{
    border-bottom:none;
}

.schedule-date{
    font-weight:700;
    color:#166534;
    min-width:170px;
}

.schedule-content{
    flex:1;
    color:#374151;
}

.payment-box{
    background:#FFFDF3;
    border:2px solid #F59E0B;
    border-radius:22px;
    padding:28px;
    margin:28px auto;
}

.payment-box h3{
    margin-top:0;
    color:#B45309;
}

.payment-title{
    font-size:22px;
    font-weight:800;
    color:#B45309;
    margin:18px 0 10px;
}

.payment-alert{
    margin-top:18px;
    background:#FEF3C7;
    border-radius:14px;
    padding:16px 18px;
    color:#92400E;
    font-weight:700;
    line-height:1.7;
}

.contact-box{
    background:#F4F7F9;
    border-radius:22px;
    padding:28px;
    margin:28px auto;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
}

.contact-box h3{
    margin-top:0;
    color:#166534;
}

.result-highlight{
    background:linear-gradient(135deg,#16A34A,#22C55E);
    color:white;
    text-align:center;
    border-radius:26px;
    padding:28px 20px;
    margin:28px 0;
    box-shadow:0 12px 28px rgba(22,163,74,.22);
}

.result-highlight span{
    display:block;
    opacity:.9;
    font-size:15px;
    margin-bottom:10px;
}

.result-highlight h1{
    margin:0;
    font-size:42px;
    font-weight:800;
    letter-spacing:3px;
}


/* ===== 校園交通總覽圖 ===== */

.campus-map-card{
    padding:24px;
    text-align:center;
}

.campus-guide-map{
    width:100%;
    height:auto;          /* ★ 改成自動高度 */
    display:block;
    object-fit:contain;   /* ★ 不裁切圖片 */
    border-radius:22px;
    border:1px solid #DCEFE3;
    box-shadow:0 12px 30px rgba(20,83,45,.12);
}

.campus-map-tip{
    margin-top:20px;
    background:#F5FBF7;
    border:1px solid #DCEFE3;
    border-radius:18px;
    padding:18px 22px;
    text-align:left;
}

.campus-map-tip p{
    margin:10px 0;
    color:#14532D;
    font-weight:600;
}