/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", sans-serif;
  color: #2a1418;
  background: #faf6f3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #104573; text-decoration: none; }
a:hover { color: #f27457; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: #f27457; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; }
.wrap--narrow { max-width: 840px; }
.wrap--medium { max-width: 1080px; }
.wrap--wide { max-width: 1240px; }

/* ===== Keyframes ===== */
@keyframes floatUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blobDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-16px) scale(1.08); } }
@keyframes scInUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }

/* ===== Sticky nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(115,32,47,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(18px,4vw,40px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; }
.nav-right { display: flex; align-items: center; gap: clamp(14px,2.4vw,30px); font-size: 15px; font-weight: 500; }
.navlink { color: #fbe7dd; display: none; }
.hamb {
  cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.35); background: transparent;
  color: #fff; font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.mobile-menu {
  background: #5f1a27; border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px clamp(18px,4vw,40px) 18px; display: flex; flex-direction: column;
}
.mobile-menu a {
  color: #fbe7dd; font-weight: 700; font-size: 16px; padding: 13px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu[hidden] { display: none; }

@media (min-width: 820px) {
  .navlink { display: inline !important; }
  .hamb { display: none !important; }
}

/* ===== Hero ===== */
.hero { position: relative; background: #73202f; color: #fff; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; }
.hero-blob--orange {
  width: 420px; height: 420px;
  background: radial-gradient(circle,#f27457 0%,rgba(242,116,87,0) 70%);
  top: -120px; right: -80px; opacity: 0.5;
  animation: blobDrift 9s ease-in-out infinite;
}
.hero-blob--blue {
  width: 360px; height: 360px;
  background: radial-gradient(circle,#104573 0%,rgba(16,69,115,0) 70%);
  bottom: -140px; left: -100px; opacity: 0.55;
  animation: blobDrift 11s ease-in-out infinite reverse;
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: clamp(56px,9vw,110px) clamp(20px,5vw,44px) clamp(64px,9vw,120px);
  display: grid; grid-template-columns: 1fr; gap: clamp(36px,5vw,64px); align-items: center;
}
.hero-copy { animation: floatUp 0.7s ease both; }
.hero-title { font-family: "Noto Sans TC"; margin-bottom: 22px; }
.hero-title-lead {
  display: block; font-weight: 500; font-size: clamp(19px,2.6vw,26px); line-height: 1.5;
  color: #f2d9ce; letter-spacing: 0.5px; margin-bottom: 10px;
}
.hero-title-main { display: block; font-weight: 900; font-size: clamp(40px,7.5vw,80px); line-height: 1.1; letter-spacing: -1px; }
.hero-title-hl { position: relative; white-space: nowrap; color: #f27457; }
.hero-title-hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 14px;
  background: #f27457; opacity: 0.28; z-index: -1; border-radius: 4px;
}
.hero-sub {
  font-size: clamp(16px,2.1vw,21px); line-height: 1.9; color: #f2d9ce;
  max-width: 560px; margin-bottom: 34px; font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  font-weight: 700; font-size: 17px; padding: 15px 30px; border-radius: 999px;
  display: inline-block; transition: transform .2s;
}
.btn--primary {
  background: #f27457; color: #fff;
  box-shadow: 0 10px 28px rgba(242,116,87,0.4);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--outline:hover { color: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: #73202f; font-weight: 700; padding: 14px 26px; border-radius: 999px; white-space: nowrap; }
.btn--white:hover { color: #73202f; opacity: .92; }

.hero-media { position: relative; animation: floatUp 0.9s ease both; }
.hero-collage {
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr;
  gap: clamp(8px,1.2vw,12px); aspect-ratio: 4/3;
}
.hero-img {
  border-radius: 18px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.14); background: #5a1824 center/cover;
}
.hero-img--big { grid-row: 1/3; border-radius: 20px; box-shadow: 0 20px 44px rgba(0,0,0,0.35); background-position: center 22%; }
.hero-collage-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px,1.2vw,12px); }
.hero-stat-card {
  position: absolute; bottom: -22px; left: -14px; background: #fff; color: #73202f;
  border-radius: 18px; padding: 16px 22px; box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.hero-stat-num { font-size: 34px; font-weight: 900; line-height: 1; }
.hero-stat-num span { font-size: 16px; color: #f27457; }
.hero-stat-label { font-size: 13px; font-weight: 500; color: #8a6f74; margin-top: 4px; }

@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr !important; }
}

/* ===== Generic sections ===== */
.section { padding: clamp(58px,9vw,104px) clamp(20px,5vw,44px); position: relative; overflow: hidden; }
.section--white { background: #fff; }
.section--cream { background: #faf6f3; }
.section--tight-top { padding-top: clamp(20px,4vw,40px); }
.section-head { text-align: center; margin-bottom: clamp(38px,6vw,64px); }
.eyebrow { color: #f27457; font-weight: 700; letter-spacing: 3px; font-size: 14px; margin-bottom: 12px; }
.section-title { font-weight: 900; font-size: clamp(28px,5vw,48px); color: #73202f; line-height: 1.2; }
.section-title--sm { font-size: clamp(22px,3.6vw,34px); line-height: 1.3; }
.section-title--white { color: #fff; }
.section-sub { color: #7a6167; font-size: clamp(15px,2vw,18px); margin-top: 16px; line-height: 1.8; }
.section-sub--blue { color: #bcd4e6; }

/* ===== Scrollers (系統卡片 / 學系總覽 shared) ===== */
.scroller-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.scroller-hint { display: flex; align-items: center; gap: 7px; color: #a08a90; font-weight: 500; font-size: 14px; }
.hint-line { width: 22px; height: 1.5px; background: #d8c3c9; display: inline-block; }
.scroller-arrows { display: flex; gap: 10px; }
.arrow-btn {
  cursor: pointer; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #e4cfd4; background: #fff; color: #73202f;
  font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.arrow-btn:hover { background: #73202f; color: #fff; border-color: #73202f; }
.scroller {
  display: flex; gap: clamp(16px,2.4vw,26px); overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px 2px 18px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #d8c3c9 transparent;
}

/* 四大學制卡片 */
.sys-card {
  flex: 0 0 clamp(258px,78vw,300px); scroll-snap-align: start;
  border: 1.5px solid; border-radius: 22px; padding: clamp(24px,3vw,32px);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.sys-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(115,32,47,0.14); }
.sys-num {
  width: 52px; height: 52px; border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 24px; margin-bottom: 20px;
}
.sys-title { font-weight: 900; font-size: clamp(20px,2.6vw,24px); color: #2a1418; margin-bottom: 6px; }
.sys-tag { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.sys-desc { font-size: 15px; line-height: 1.85; color: #5a4448; }

/* ===== 一圖看懂 (mcard) ===== */
.mcard-stack { display: flex; flex-direction: column; gap: clamp(16px,2.5vw,22px); }
.mcard {
  background: #fff; border: 1px solid #f0e2dc; border-radius: 22px;
  padding: clamp(24px,4vw,38px); box-shadow: 0 10px 30px rgba(115,32,47,0.06);
}
@media (prefers-reduced-motion: no-preference) {
  .mcard { animation: scInUp .55s ease both; }
  .mcard:nth-child(2) { animation-delay: .08s; }
  .mcard:nth-child(3) { animation-delay: .16s; }
  .mcard:nth-child(4) { animation-delay: .24s; }
}
.mcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.mcard-num {
  width: 38px; height: 38px; border-radius: 11px; color: #fff; font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mcard-title { font-weight: 900; font-size: clamp(18px,2.4vw,23px); color: #2a1418; }
.mcard-tag { font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; }
.mcard-caption { text-align: center; margin-bottom: 14px; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.pill--outline { background: rgba(242,116,87,0.2); border: 1px solid rgba(242,116,87,0.5); color: #f9d3c4; font-size: 13px; padding: 6px 14px; margin-bottom: 18px; }
.pill--peach { background: #fbeae3; color: #f27457; font-size: 13px; padding: 6px 14px; margin-bottom: 24px; }

.mcard-desc { font-size: clamp(14.5px,1.9vw,16px); line-height: 1.85; color: #5a4448; margin-bottom: 18px; }
.mcard-panel { border: 1px solid; border-radius: 16px; padding: clamp(16px,2.4vw,22px); margin-bottom: 4px; }
.mcard-panel-title { font-weight: 900; font-size: 14px; margin-bottom: 14px; }
.mcard-panel-list { display: flex; flex-direction: column; gap: 12px; }
.mcard-panel-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; color: #5a4448; }
.mcard-panel-note { font-size: 12.5px; margin-top: 14px; font-weight: 700; }
.tag-pill { color: #fff; font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.more-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14.5px; border-bottom: 1.5px solid; padding-bottom: 2px; }
.more-link:hover { opacity: .8; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: #fff; border: 1.5px solid; font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 999px; }

/* diagram row */
.dia { display: flex; align-items: center; justify-content: center; gap: clamp(10px,2vw,18px); flex-wrap: wrap; margin-bottom: 22px; }
.dia .arrow, .dia .op { font-weight: 900; line-height: 1; flex-shrink: 0; font-size: 32px; }
.dia .op { font-size: 28px; }
@media (max-width: 600px) {
  .dia { flex-direction: column; }
  .dia .arrow { transform: rotate(90deg); }
}
.dia-box {
  background: #fff; border: 2px solid; border-radius: 14px; padding: 14px 20px;
  text-align: center; line-height: 1.4;
}
.dia-box--dashed { border: 2px dashed #c9a9af; opacity: .8; }
.dia-box--filled { border-radius: 14px; padding: 14px 20px; text-align: center; line-height: 1.4; }
.dia-box-title { font-weight: 900; font-size: 16px; color: #2a1418; }
.dia-box-title--strike { text-decoration: line-through; color: #8a6f74; }
.dia-box-sub { font-size: 12.5px; margin-top: 3px; }
.dia-stack { display: flex; flex-direction: column; gap: 8px; }
.dia-tag {
  background: #fdece5; border: 1.5px solid #f5c3b2; border-radius: 11px;
  padding: 9px 16px; font-weight: 700; font-size: 13.5px; color: #c96a4d;
}

/* ===== 探索學分 ===== */
.section--maroon { background: #73202f; color: #fff; }
.explore-blob {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle,rgba(242,116,87,0.35),transparent 70%);
  top: -120px; left: -80px;
}
.explore-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px,4vw,48px); }
.explore-copy { flex: 1; min-width: 260px; }
.explore-title { font-weight: 900; font-size: clamp(26px,4.6vw,42px); line-height: 1.25; margin-bottom: 18px; }
.explore-desc { font-size: clamp(15px,2vw,18px); line-height: 1.9; color: #f2d0c5; }
.explore-cards { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
.explore-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px; padding: 20px 22px;
}
.explore-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.explore-card-title { font-weight: 900; font-size: 17px; color: #fff; margin-bottom: 6px; }
.explore-card-desc { font-size: 14.5px; line-height: 1.7; color: #e8c9bf; }

/* ===== 跨域配方 ===== */
.recipe-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.recipe-tab {
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; transition: all .2s;
  border: 1.5px solid #e4cfd4; background: #fff; color: #8a6f74;
}
.recipe-tab.is-active {
  border: none; background: #73202f; color: #fff;
  box-shadow: 0 8px 20px rgba(115,32,47,0.28);
}
.recipe-card {
  background: #fff; border-radius: 26px; padding: clamp(28px,4vw,52px);
  box-shadow: 0 24px 60px rgba(115,32,47,0.1); border: 1px solid #f0e2dc;
}
.recipe-formula { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px,2vw,20px); margin-bottom: 26px; }
.recipe-block { text-align: center; }
.recipe-block-label { font-size: 12px; color: #9a838a; font-weight: 700; margin-bottom: 6px; }
.recipe-block-value {
  color: #fff; font-weight: 900; font-size: clamp(18px,2.6vw,24px);
  padding: 16px 22px; border-radius: 16px;
}
.recipe-block-value--maroon { background: #73202f; }
.recipe-block-value--blue { background: #104573; }
.recipe-op { font-size: 28px; font-weight: 900; color: #f27457; }
.recipe-result {
  flex: 1; min-width: 200px; background: linear-gradient(120deg,#fff4ef,#fef0e9);
  border: 1.5px dashed #f27457; border-radius: 16px; padding: 18px 22px;
}
.recipe-result-label { font-size: 12px; color: #c96a4d; font-weight: 700; margin-bottom: 6px; }
.recipe-result-value { font-weight: 900; font-size: clamp(17px,2.3vw,22px); color: #73202f; line-height: 1.4; }
.recipe-story { font-size: 15px; line-height: 1.9; color: #5a4448; border-top: 1px solid #f0e2dc; padding-top: 22px; }

/* ===== Empathy quote ===== */
.section--pink { background: #fbf0f2; }
.quote-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: "Noto Serif TC"; font-size: clamp(56px,10vw,90px); line-height: 0; color: #f27457; height: 36px; }
.quote-text {
  font-family: "Noto Serif TC"; font-weight: 700; font-size: clamp(22px,3.6vw,38px);
  line-height: 1.55; color: #73202f; letter-spacing: 0.5px;
}
.quote-hl { color: #f27457; }

/* ===== 轉系亮點 stats ===== */
.section--blue { background: #104573; color: #fff; }
.stats-blob {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle,rgba(242,116,87,0.4),transparent 70%);
  top: -100px; right: -60px;
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: clamp(14px,2vw,24px); }
.stat-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px; padding: clamp(22px,3vw,30px) 18px; text-align: center;
}
.stat-num { font-size: clamp(34px,5vw,50px); font-weight: 900; color: #f27457; line-height: 1; }
.stat-label { font-size: 15px; font-weight: 700; margin-top: 10px; }
.stat-sub { font-size: 13px; color: #a9c4d8; margin-top: 6px; line-height: 1.6; }

/* ===== 申請流程 ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: clamp(18px,2.6vw,28px); margin-bottom: clamp(40px,6vw,60px); }
.step-card { position: relative; padding: clamp(26px,3vw,34px); border-radius: 20px; background: #faf6f3; border: 1px solid #f0e2dc; }
.step-num { font-family: "Noto Serif TC"; font-weight: 900; font-size: 56px; color: #f27457; opacity: 0.35; line-height: 0.8; margin-bottom: 14px; }
.step-title { font-weight: 900; font-size: 18px; color: #73202f; margin-bottom: 10px; }
.step-desc { font-size: 14.5px; line-height: 1.85; color: #5a4448; }

.timeline-banner {
  background: #73202f; color: #fff; border-radius: 22px; padding: clamp(26px,4vw,40px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between;
}
.timeline-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.timeline-badge {
  width: 64px; height: 64px; border-radius: 16px; background: #f27457;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 26px; flex-shrink: 0;
}
.timeline-title { font-weight: 900; font-size: clamp(18px,2.4vw,22px); margin-bottom: 6px; }
.timeline-desc { color: #f2d0c5; font-size: 15px; line-height: 1.7; max-width: 520px; }

/* ===== 學系總覽 ===== */
.college-card {
  flex: 0 0 clamp(260px,80vw,320px); scroll-snap-align: start;
  background: #fff; border: 1px solid #efe1db; border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(115,32,47,0.05);
}
.college-accent { height: 6px; }
.college-body { padding: clamp(20px,2.4vw,26px); }
.college-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.college-name { font-weight: 900; font-size: clamp(17px,2vw,20px); color: #2a1418; line-height: 1.3; }
.college-badge { font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.college-depts { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.college-dept { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.5; color: #5a4448; }
.college-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.college-dept a { color: #5a4448; text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.college-dept a:hover { color: var(--dept-color); border-color: var(--dept-color); }

/* ===== CTA ===== */
.section--cta {
  background: linear-gradient(135deg,#73202f,#8d2a3c); color: #fff;
  padding: clamp(60px,10vw,120px) clamp(20px,5vw,44px); text-align: center;
}
.cta-blob {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle,rgba(242,116,87,0.35),transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; }
.cta-title { font-weight: 900; font-size: clamp(30px,6vw,56px); line-height: 1.2; margin-bottom: 20px; }
.cta-hl { color: #f27457; }
.cta-desc { font-size: clamp(16px,2.3vw,20px); line-height: 1.9; color: #f2d0c5; margin-bottom: 38px; }
.cta-icons { display: flex; flex-wrap: wrap; gap: clamp(30px,7vw,72px); justify-content: center; }
.cta-icon-link { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.cta-icon-link:hover { color: #fff; }
.cta-icon {
  width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; transition: transform .2s;
}
.cta-icon-link:hover .cta-icon { transform: translateY(-5px); }
.cta-icon-label { font-weight: 700; font-size: 16px; }
.cta-icon-sub { font-size: 13px; color: #f2d0c5; margin-top: -9px; }

/* ===== Footer ===== */
.site-footer { background: #2a1418; color: #c9b3b8; padding: clamp(38px,6vw,60px) clamp(20px,5vw,44px); }
.footer-top {
  max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap;
  gap: 28px; justify-content: space-between; align-items: flex-start;
}
.footer-brand-title { color: #fff; font-weight: 900; font-size: 22px; letter-spacing: 1px; margin-bottom: 12px; }
.footer-contact { font-size: 14px; line-height: 2; }
.footer-contact a { color: #c9b3b8; border-bottom: 1px solid rgba(201,179,184,0.4); }
.footer-links { display: flex; gap: clamp(28px,5vw,60px); flex-wrap: wrap; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-title { color: #7d666b; font-weight: 700; font-size: 12px; letter-spacing: 1px; margin-bottom: 2px; }
.footer-col a { color: #c9b3b8; }
.footer-bottom {
  max-width: 1100px; margin: 28px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08); font-size: 12.5px; color: #7d666b;
}
