/* =========================================================
   ISO/IEC 27701:2025 活動頁  —  獨立樣式檔（不依賴 Bootstrap / Tailwind / jQuery）
   ========================================================= */

:root {
  --orange: #fb8b1e;
  --orange-2: #fea142;
  --ink: #000;
  --cream: #f7f4e7;
  --sand: #f8e9d4;
  --red: #e33b3a;
  --gray: #6c757d;
  --teal: #17a2b8;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --shadow: 4px 4px 0 rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111;
  background: var(--cream) url("../images/bgi_grid_02.svg") center top / 100% auto repeat-y;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font-family: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
[id] { scroll-margin-top: 20px; }

/* ---------- 捲動顯示動畫（JS 有啟動才會隱藏，避免 JS 失敗時內容消失） ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.active { opacity: 1; transform: none; }
.js .line-grow { transform: scaleX(0); transform-origin: left; transition: transform 1s ease .2s; }
.js .line-grow.active { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .line-grow { opacity: 1; transform: none; transition: none; }
  .hero__art img, .ring, .hero__line { animation: none !important; }
}

/* ---------- 共用元件 ---------- */
.eyebrow {
  position: relative; display: inline-block;
  color: var(--orange); font-weight: 800; letter-spacing: .1em;
  padding-bottom: 8px;
}
.dash-underline::after, .eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(38,38,38,.5), rgba(38,38,38,.5) 2px, transparent 2px, transparent 5px);
}
.mark {
  background: #000; color: #fff; padding: .05em .35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.link-line { border-bottom: 1px solid #000; transition: color .2s, border-color .2s; }
.link-line:hover { color: #e99441; border-color: #e99441; }
.arrow {
  flex: none; width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; line-height: 1; transition: transform .3s;
}
.section-title { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.section-title h2 {
  position: relative; display: inline-block; padding-bottom: 12px;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: .08em; line-height: 1.3;
}
.section-title h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(38,38,38,.5), rgba(38,38,38,.5) 2px, transparent 2px, transparent 5px);
}
.section-title p { margin-top: 16px; color: var(--orange); font-weight: 700; font-size: 1.1rem; }

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 900px);
  display: flex; align-items: center;
  padding: clamp(28px, 5vw, 56px) 0 110px;
}
.hero__inner {
  display: grid; align-items: center; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.hero__logo { width: 109px; margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 900; line-height: 1.12; letter-spacing: 0; color: #000;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__rule { height: 1px; width: 90%; background: rgba(0,0,0,.3); margin: clamp(20px, 3vw, 36px) 0; }
.hero__sub { font-size: clamp(1.1rem, 2.2vw, 2rem); font-weight: 700; line-height: 1.6; max-width: 38ch; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(20px, 3vw, 36px);
  padding: 14px 30px; background: var(--orange); color: #000;
  border: 2px solid #000; box-shadow: 4px 4px 0 #000;
  font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.5rem); letter-spacing: .08em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-cta svg { width: 20px; height: 20px; transition: transform .3s; }
.btn-cta:hover { background: #000; color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.btn-cta:hover svg { transform: translateX(6px); }

.hero__art { position: relative; }
.hero__art img { width: 100%; animation: floatX 1.4s ease-in-out infinite alternate; }
.ring {
  position: absolute; width: 44px; height: 44px; border: 2px solid orange; border-radius: 50%;
  opacity: 0; animation: pulse 2s ease-out infinite; pointer-events: none;
}
.ring--a { left: 30%; top: 8%; }
.ring--b { right: 6%; top: 26%; animation-delay: 1s; }
.hero__line {
  position: absolute; left: 50%; bottom: 0; width: 2px; height: 90px; background: rgba(0,0,0,.9);
  transform-origin: top; transform: scaleY(0); animation: lineLoop 2.5s ease-in-out infinite;
}
@keyframes floatX { from { transform: translateX(0); } to { transform: translateX(10px); } }
@keyframes pulse {
  0%   { transform: scale(0); opacity: 1; }
  70%  { transform: scale(2); opacity: .5; }
  100% { transform: scale(3); opacity: 0; }
}
@keyframes lineLoop {
  0%   { transform: scaleY(0); opacity: 0; }
  20%  { transform: scaleY(1); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* =========================================================
   2. 為什麼是關鍵年
   ========================================================= */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 420px; }
.why__text {
  background: var(--orange); padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.why__text h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); font-weight: 900; line-height: 1.6; }
.why__text p { font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.8; }
.why__text .arrow { border-color: #000; }
.why:hover .why__text .arrow { transform: rotate(45deg); }
.why__img { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 4vw, 48px); }
.why__img img { width: min(640px, 100%); }

/* =========================================================
   3. 核心價值
   ========================================================= */
.block { padding: clamp(48px, 7vw, 96px) 0; }
.box { background: #fff; border: 2px solid #000; box-shadow: var(--shadow); }

.values {
  display: grid; align-items: center; gap: clamp(16px, 2.5vw, 32px);
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);   /* 左欄縮小，三角形圖靠左並放大 */
  padding: clamp(24px, 5vw, 64px) clamp(12px, 2vw, 28px) clamp(24px, 5vw, 64px) clamp(24px, 5vw, 64px);
}
.values > img { width: 100%; justify-self: start; }
.values .eyebrow { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.values h3 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.25; }
.values__shield { width: min(260px, 60%); margin-top: 20px; }

/* =========================================================
   4. 產業標竿
   ========================================================= */
.cases {
  position: relative; background: var(--sand); border: 2px solid #000; box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 64px);
  margin-top: clamp(90px, 10vw, 140px);
}
.cases__trophy { position: absolute; top: clamp(-130px, -9vw, -70px); right: 24px; width: clamp(110px, 15vw, 210px); }
.cases__head { margin-bottom: clamp(28px, 4vw, 48px); padding-right: clamp(0px, 16vw, 220px); }
.cases__head h2 {
  border-left: 8px solid #000; padding-left: 20px;
  font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 900; line-height: 1.3;
}
.cases__head small { display: block; margin-top: 8px; color: var(--orange); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 700; }
.cases__grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.case {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  height: 100%; min-height: 320px; padding: 28px;
  background: var(--orange-2); color: #111; transition: background .3s, color .3s;
}
.case:hover { background: #000; color: #fff; }
.case:hover .arrow { transform: rotate(45deg); }
.case img { width: 60%; max-width: 180px; margin-bottom: 14px; }
.case h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.45; }
.case h3 small { display: block; font-size: .85rem; font-weight: 500; margin-top: 2px; }
.case p { margin-top: 8px; font-size: 1rem; line-height: 1.7; }
.cases__note { margin-top: 20px; line-height: 1.8; }

/* =========================================================
   5. 版本演進
   ========================================================= */
.versions-wrap { position: relative; }
.deco-rotate { position: absolute; top: -100px; right: 0; width: min(320px, 26%); pointer-events: none; z-index: 0; }
.versions {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;   /* 兩張卡片垂直置中，2019 比較矮 */
  width: min(980px, 100%); margin-inline: auto; padding: 24px 0;
}
.ver { border-radius: 16px; padding: clamp(24px, 4vw, 48px); }
.ver__year { font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: 32px; }
.ver dl { display: grid; gap: 26px; }
.ver dt { font-size: .8rem; font-weight: 700; letter-spacing: .2em; margin-bottom: 4px; }
.ver dd { font-size: 1.15rem; line-height: 1.6; }
/* 2019：在後面、縮小、稍微變淡。用獨立的 scale 屬性，避免被捲動動畫的 transform 蓋掉 */
.ver--old {
  flex: 0 1 460px; position: relative; z-index: 1;
  scale: .92; transform-origin: right center;
  background: #141414; color: #d1d5db; opacity: .78;
  transition: opacity .4s, scale .4s;
}
.js .ver--old.reveal.active { opacity: .78; }
.ver--old:hover, .js .ver--old.reveal.active:hover { opacity: 1; scale: .96; }
.ver--old .ver__year { color: #6b7280; }
.ver--old dd { color: #b8bcc4; }
/* 2025：在前面、蓋住 2019 的右側邊緣 */
.ver--new {
  flex: 0 1 540px; position: relative; z-index: 2; margin-left: -6%;
  background: var(--orange-2); color: #000; border: 2px solid #000; box-shadow: 6px 6px 0 #000;
}
.ver--new dt { color: rgba(0,0,0,.6); }
.ver--new dd { font-size: 1.35rem; font-weight: 800; line-height: 1.45; }
.footnote { width: min(980px, 100%); margin: 32px auto 0; text-align: center; line-height: 1.8; text-wrap: balance; }

/* =========================================================
   6. 課程懶人包
   ========================================================= */
.courses {
  padding: 56px 0 90px;
  background: rgb(255, 102, 20) url("../images/bgi_grid_01.svg") center top / 100% auto repeat-y;
}
.courses__notice { width: clamp(64px, 9vw, 110px); margin: 0 auto 8px; }
.courses .section-title h2 { color: #fff; }
.courses .section-title h2::after { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,.8) 2px, transparent 2px, transparent 5px); }
.courses__grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.course {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.course__for {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 4.6em; padding: 12px 18px; background: var(--c); color: #fff; font-weight: 700; line-height: 1.5;
}
.course__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 30px; }
.tag {
  align-self: flex-start; margin-bottom: 14px; padding: 5px 14px; border-radius: 20px;
  background: var(--tb); color: var(--c); font-size: .9rem; font-weight: 700;
}
.course__title { font-size: 1.45rem; font-weight: 800; color: var(--t); line-height: 1.4; margin-bottom: 8px; }
.course__desc { color: #444; font-size: 1rem; line-height: 1.7; }
.checks { margin: 18px 0 8px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--t); color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center;
}
.course__btn {
  margin-top: auto; display: block; text-align: center;
  padding: 12px 0; border-radius: 30px; background: var(--c); color: #fff; font-weight: 700;
  transition: filter .2s, transform .2s;
}
.course__btn:hover { filter: brightness(.9); transform: translateY(-2px); }
.course .checks + .course__btn { margin-top: 20px; }

.notice-card {
  width: min(1100px, 100%); margin: 40px auto 0; background: #fff; border-radius: 12px;
  padding: clamp(20px, 4vw, 32px); box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.notice-card__title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; text-align: center; margin-bottom: 20px;
}
.notice-card__title svg { width: 1.1em; height: 1.1em; flex: none; color: var(--red); }
.notice-card__text {
  border-top: 1px solid #e0e0e0; padding-top: 20px;
  font-size: clamp(1.05rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.7;
}
.refs {
  width: min(1100px, 100%); margin: 28px auto 0; padding: 18px 22px;
  background: #fff3cd; border: 1px solid #ffeeba; border-radius: 6px; color: #856404;
}
.refs strong { color: var(--red); }
.refs ul { margin: 8px 0 0 22px; list-style: circle; }
.refs li { margin: 4px 0; color: #444; }
.refs a:hover { color: #000; text-decoration: underline; }

/* =========================================================
   7. 報名表單
   ========================================================= */
.signup { position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 120px); }
.signup .section-title h2 { color: var(--orange); }
.signup__grid {
  display: grid; align-items: center; gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr);
}
.signup__deco { pointer-events: none; }
.signup__deco--l img { width: min(280px, 100%); margin-left: auto; }
.signup__deco--r img { width: min(320px, 100%); }

.fields { display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); background: #fff; border: 2px solid #000; border-radius: 8px; box-shadow: 6px 6px 0 #000; }
.fields input[type="text"] {
  width: 100%; height: 56px; padding: 0 14px; font-size: 1.2rem;
  border: 1px solid #ced4da; border-radius: 6px; background: #fff; color: #111;
}
.fields input[type="text"]:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.fields .area p { margin-bottom: 6px; font-size: 1.1rem; }
.fields .area table, .fields .area tbody { display: block; border: 0; }
.fields .area tr { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fields .area td { display: block; padding: 0; }
.fields .area input[type="radio"] { width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--orange); }
.fields .area label { font-size: 1.15rem; cursor: pointer; }
.fields .captcha img { margin: 0 auto; }
.fields input[type="submit"] {
  width: 100%; height: 60px; background: #ffca45; color: #000; border: 2px solid #000; border-radius: 6px;
  font-size: 1.5rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.fields input[type="submit"]:hover { background: #000; color: #fff; }
.validators { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.thx { margin-top: 16px; padding: 28px; text-align: center; background: #fff; border: 2px solid #000; border-radius: 8px; box-shadow: 6px 6px 0 #000; }
.thx p { font-size: 1.3rem; font-weight: 700; }
.thx a { display: inline-block; margin-top: 12px; text-decoration: underline; cursor: pointer; }

/* =========================================================
   響應式
   ========================================================= */
@media (max-width: 1100px) {
  .cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup__grid { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .signup__deco { display: none; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 130px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); }
  .hero__art { max-width: 520px; margin-inline: auto; }
  .ring--a { left: 22%; } .ring--b { right: 8%; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 5vw, 64px); }
  .values__shield { display: none; }
  .courses__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .deco-rotate { display: none; }
}
@media (max-width: 720px) {
  .versions { flex-direction: column; align-items: stretch; gap: 20px; }
  .ver--old { flex: none; scale: none; opacity: 1; }
  .js .ver--old.reveal.active, .ver--old:hover { scale: none; opacity: 1; }
  .ver--new { flex: none; margin-left: 0; }
  .cases__trophy { display: none; }
  .cases__head { padding-right: 0; }
  .cases { margin-top: 48px; }
}
@media (max-width: 560px) {
  .cases__grid { grid-template-columns: minmax(0, 1fr); }
  .case { min-height: 0; }
  .hero__logo { width: 88px; }
}
