/* 喆律職場霸凌講座報名頁｜樣式（品牌規範 v1.0：喆律紅 #C62030、文字 #171717／#525252、分隔線 #E5E5E5） */
@font-face { font-family: "Noto Sans TC"; src: url("assets/fonts/NotoSansTC-subset.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("assets/fonts/ZenKakuGothicNew-Medium-subset.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("assets/fonts/ZenKakuGothicNew-Bold-subset.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #C62030;
  --red-dark: #A81A28;
  --ink: #171717;
  --ink-2: #525252;
  --line: #E5E5E5;
  --bg-soft: #F5F5F5;
  --white: #FFFFFF;
  --radius: 12px;
  --font-title: "Zen Kaku Gothic New", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1120px;
  --bar-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 500; line-height: 1.4; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #171717; outline-offset: 2px; }
.noscript { padding: 24px 20px; text-align: center; background: var(--bg-soft); }

/* 頁首 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.logo img { width: 200px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-note { display: none; font-size: 14px; color: var(--ink-2); }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 8px; border: 2px solid var(--red); background: var(--red); color: #fff; font: 700 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; text-align: center; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.lg { min-height: 56px; padding: 0 36px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--red); }
.btn.ghost:hover { background: var(--red); color: #fff; }
.btn.white { background: #fff; color: var(--red); border-color: #fff; }
.btn.white:hover { background: var(--bg-soft); border-color: var(--bg-soft); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn.block { width: 100%; }

/* 區塊 */
.section { padding: 56px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font: 700 14px/1.4 var(--font-body); letter-spacing: .08em; color: var(--red); margin-bottom: 8px; }
.h2 { font-size: 26px; padding-bottom: 14px; position: relative; margin-bottom: 20px; }
.h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--red); }
.lead { color: var(--ink-2); max-width: 760px; }
.source { font-size: 13px; color: var(--ink-2); margin-top: 20px; }

/* 首屏 */
.hero { padding: 36px 0 40px; background: linear-gradient(180deg, #fff 0, #fff 60%, var(--bg-soft) 100%); }
.hero .grid { display: grid; gap: 28px; }
.hero h1 { font-size: 30px; line-height: 1.35; font-weight: 700; margin: 4px 0 18px; text-wrap: balance; }
.hero .quote { text-wrap: pretty; border-left: 4px solid var(--red); padding: 2px 0 2px 16px; margin: 0 0 24px; color: var(--ink-2); font-size: 16px; }
.hero .cta-row { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero .cta-row .btn { width: 100%; }
.deadline { font-size: 14px; color: var(--ink-2); }
.deadline strong { color: var(--red); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.info-card .date { font: 700 40px/1.1 var(--font-title); color: var(--ink); }
.info-card .date small { font-size: 18px; font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.info-card .time { font: 500 20px/1.4 var(--font-title); color: var(--red); margin: 4px 0 16px; }
.info-list { border-top: 1px solid var(--line); }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list .k { flex: 0 0 72px; color: var(--ink-2); }
.info-list .v { flex: 1; font-weight: 500; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }

/* 為什麼 */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.card .kicker { font: 700 14px/1 var(--font-body); color: var(--red); letter-spacing: .1em; margin-bottom: 10px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15px; }
.bullets li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.big { font: 700 48px/1.1 var(--font-title); color: var(--red); margin: 4px 0 4px; }
.big-note { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.bridge { margin-top: 28px; padding: 22px 22px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.bridge .q { font: 500 20px/1.5 var(--font-title); }
.bridge .q span { color: #fff; }
.bridge p { color: #E6E6E6; margin: 8px 0 0; font-size: 15px; }

/* 講座內容 */
.session-grid { display: grid; gap: 24px; }
.outline li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; line-height: 1.6; }
.outline li:last-child { border-bottom: 0; }
.outline .n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font: 700 15px/32px var(--font-body); text-align: center; margin-top: 1px; }
.notes { margin-top: 18px; padding: 14px 16px; background: var(--bg-soft); border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.notes li { margin-bottom: 4px; }
.lecturer { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.lecturer .photo { width: 100%; max-width: 280px; aspect-ratio: 4/5; object-fit: cover; object-position: top center; border-radius: 10px; background: var(--bg-soft); }
.lecturer .name { font: 700 24px/1.3 var(--font-title); }
.lecturer .role { color: var(--red); font-weight: 700; font-size: 14px; margin: 2px 0 12px; }
.lecturer p { font-size: 15px; color: var(--ink-2); }
.lecturer h4 { font: 700 15px/1.4 var(--font-body); margin: 12px 0 6px; }
.lecturer .bullets li { font-size: 14px; margin-bottom: 4px; }
.photo-note { font-size: 12px; color: var(--ink-2); margin-top: 8px; }

/* 數字 */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.stat .num { font: 700 36px/1.1 var(--font-title); color: var(--red); }
.stat .num small { font-size: 16px; font-weight: 500; margin-left: 2px; color: var(--ink); }
.stat .label { font-size: 14px; font-weight: 500; line-height: 1.5; margin-top: 4px; }
.stat .note { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }

/* 往期 */
.past { display: grid; gap: 16px; }
.past-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.past-item .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.past-item .tag { border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; background: var(--bg-soft); }
.past-item h3 { font-size: 18px; line-height: 1.5; margin-bottom: 6px; }
.past-item .who { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.past-item h4 { font: 700 14px/1.4 var(--font-body); margin: 12px 0 6px; }
.past-item .bullets li { font-size: 14px; margin-bottom: 4px; }

/* 服務 */
.service { display: grid; gap: 14px; }
.service .card .n { font: 700 32px/1 var(--font-title); color: var(--line); float: right; }
.service h3 { font-size: 20px; margin-bottom: 10px; }

/* 團隊 */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; background: var(--bg-soft); }
.member .t { padding: 10px 12px 12px; }
.member .nm { font: 700 17px/1.4 var(--font-title); white-space: pre; }
.member .ti { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.member .ti b { color: var(--red); font-weight: 700; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; }

/* 底部報名 */
.final { background: var(--red); color: #fff; padding: 48px 0; text-align: center; }
.final h2 { font-size: 26px; margin-bottom: 8px; }
.final p { color: #fff; margin-bottom: 20px; text-wrap: balance; }
.final .small { font-size: 14px; margin: 12px 0 0; }

/* 頁尾 */
.site-footer { background: var(--ink); color: #E6E6E6; padding: 36px 0 calc(36px + var(--bar-h)); font-size: 14px; }
.site-footer img { width: 200px; height: auto; margin-bottom: 16px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 6px; }
.site-footer .legal { margin-top: 14px; color: #B5B5B5; font-size: 13px; }

/* 手機固定報名列 */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.mobile-bar .txt { flex: 1; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.mobile-bar .txt strong { display: block; color: var(--ink); font-size: 15px; }
.mobile-bar .btn { flex: 0 0 auto; min-height: 48px; padding: 0 22px; }
body.has-bar { padding-bottom: 0; }

/* 草稿標記 */
.todo-chip { display: inline-block; background: #FFE9A8; color: #5C4300; border: 1px dashed #B58A00; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.draft-banner { background: #FFF6D6; color: #5C4300; border-bottom: 1px solid #E6CF86; font-size: 13px; text-align: center; padding: 6px 12px; line-height: 1.5; }

/* 報名頁 */
.steps { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.steps .s { display: inline-flex; align-items: center; gap: 6px; }
.steps .s i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; }
.steps .s.on { color: var(--ink); font-weight: 700; }
.steps .s.on i { background: var(--red); border-color: var(--red); color: #fff; }
.steps .bar { flex: 0 0 24px; height: 1px; background: var(--line); }
.reg-grid { display: grid; gap: 24px; padding: 28px 0 56px; }
.reg-summary { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.reg-summary h2 { font-size: 20px; line-height: 1.5; margin-bottom: 12px; }
.reg-summary .info-list li { font-size: 14px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.form h1 { font-size: 26px; margin-bottom: 4px; }
.form .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req { color: var(--red); margin-left: 4px; }
.opt { color: var(--ink-2); font-weight: 400; font-size: 13px; margin-left: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #A3A3A3; border-radius: 8px; font: 400 16px/1.5 var(--font-body); color: var(--ink); background: #fff; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(198,32,48,.35); border-color: var(--red); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--red); background: #FFF6F6; }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.errmsg { display: none; font-size: 13px; color: var(--red); font-weight: 700; margin-top: 4px; }
.field.err .errmsg { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--bg-soft); border-radius: 8px; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 3px; accent-color: var(--red); }
.consent label { font-weight: 400; font-size: 14px; margin: 0; line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; line-height: 1.7; }
.alert.error { background: #FFF1F2; border: 1px solid var(--red); color: #7A0F1A; }
.alert.info { background: #F0F5FF; border: 1px solid #9DB6E8; color: #1F3A73; }
.alert .btn { margin-top: 8px; }
.form .submit-row { margin-top: 8px; }
.form .fine { font-size: 12px; color: var(--ink-2); margin-top: 12px; }

/* 成功頁 */
.thanks { padding: 40px 20px 64px; }
.thanks .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; margin-bottom: 16px; }
.thanks .ok svg { width: 34px; height: 34px; }
.thanks h1 { font-size: 30px; margin-bottom: 8px; }
.next { margin-top: 28px; display: grid; gap: 14px; }
.next .card h3 { font-size: 18px; margin-bottom: 6px; }
.next .card .btn { margin-top: 10px; margin-right: 8px; }

/* 平板／桌機 */
@media (min-width: 768px) {
  .logo img { width: 220px; }
  .header-note { display: block; }
  .section { padding: 80px 0; }
  .h2 { font-size: 32px; }
  .hero { padding: 64px 0 72px; }
  .hero .grid { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: 44px; }
  .hero .quote { font-size: 18px; }
  .hero .cta-row { flex-direction: row; align-items: center; gap: 18px; }
  .hero .cta-row .btn { width: auto; }
  .info-card { padding: 28px 28px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .session-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .lecturer { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .past { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .team { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 36px; }
  .reg-grid { grid-template-columns: 360px 1fr; gap: 40px; align-items: start; padding-top: 44px; }
  .reg-summary { position: sticky; top: 92px; }
  .form { padding: 36px 36px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .next { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  body.has-bar { padding-bottom: var(--bar-h); }
  .reg-summary { padding: 16px; }
  .reg-summary h2 { font-size: 17px; margin-bottom: 8px; }
  .reg-summary .info-list li:nth-child(n+3) { display: none; }
  .reg-summary .info-list li:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* 報名表單：單選／複選、分步、個資告知、Cookie 橫幅 */
.form-intro { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.form-intro p { margin: 0 0 .6em; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.choice:has(input:checked) { border-color: var(--red); background: #FFF8F8; }
.choice input[type=radio], .choice input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--red); }
.choice label { flex: 1; font-weight: 400; font-size: 15px; line-height: 1.6; margin: 0; cursor: pointer; }
.choice.other { flex-wrap: wrap; }
.choice .other-input { flex: 1 1 100%; min-height: 44px; margin-top: 6px; padding: 8px 12px; border: 1px solid #A3A3A3; border-radius: 8px; font: 400 16px/1.5 var(--font-body); }
[hidden], .form-page[hidden], .form-actions[hidden] { display: none !important; }
.form-actions { display: flex; gap: 12px; justify-content: flex-start; align-items: center; margin-top: 8px; }
.form-actions .btn.lg { flex: 1; }
.privacy-box { margin-top: 28px; padding: 16px 16px 8px; background: var(--bg-soft); border-radius: 8px; border: 1px solid var(--line); }
.privacy-box h3 { font: 700 15px/1.4 var(--font-body); margin-bottom: 8px; }
.privacy-box p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-bottom: 8px; }
.thanks-copy p { margin: 0 0 .6em; color: var(--ink-2); }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #171717; color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
.cookie-banner p { margin: 0; flex: 1; font-size: 13px; line-height: 1.6; color: #E6E6E6; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { flex: 0 0 auto; background: #fff; color: var(--ink); border-color: #fff; }
.cookie-banner .btn:hover { background: var(--bg-soft); }
body.has-bar .cookie-banner { bottom: var(--bar-h); }
@media (min-width: 768px) {
  body.has-bar .cookie-banner { bottom: 0; }
  .cookie-banner { padding: 14px 24px; }
}
