/* 情境照(只加照片,不改原版文字與版型) */
.photo-figure { margin: 0; }
.photo-figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); background: var(--white); }
.photo-figure figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .84rem; font-weight: 750; line-height: 1.5; }
.ai-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(19,43,39,.08); color: var(--ink-soft); font-size: .68rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }

/* 首屏:照片沿用原本程式視窗的黑框與微傾斜,驗收卡壓在右下角 */
.hero-visual.hero-photo { min-height: 0; padding: 26px 0 120px; }
.hero-photo .photo-figure img { border: 2px solid var(--ink); border-radius: 25px; transform: rotate(-2deg); }
.hero-photo .photo-figure figcaption { margin-top: 14px; }
.hero-photo .accept-card { right: -12px; bottom: 0; }
.hero-photo .bot-badge { top: -14px; right: -6px; }

/* 介紹影片:沿用首屏照片的黑框 */
.video-section { padding-bottom: 84px; }
.video-section h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.video-frame { overflow: hidden; border: 2px solid var(--ink); border-radius: 25px; background: var(--ink); box-shadow: var(--shadow); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.story-heading .photo-figure { margin-top: 30px; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.photo-row-two { grid-template-columns: repeat(2, 1fr); }
.photo-row .photo-figure:nth-child(2) { transition-delay: .07s; }
.photo-row .photo-figure:nth-child(3) { transition-delay: .14s; }

/* 社群與說明會報名連結:頁首一組(.header-social)、畫面右側中央一組(.social-float) */
.social-btn { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 2px solid var(--ink); border-radius: 50%; color: #fff; line-height: 1; text-decoration: none; transition: transform .2s; }
.social-btn:hover { transform: translateY(-2px); }
.social-btn svg { width: 22px; height: 22px; }
.social-fb { background: #1877f2; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-line { background: #06c755; }
.social-btn.social-line svg { width: 27px; height: 27px; }
.social-accupass { background: var(--yellow); color: var(--ink); }
.social-text { font-size: .72rem; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }

.social-text span + span { margin-left: 3px; }
.social-text .kind + span { margin-left: 0; }
/* 頁首的兩張票券只寫「10/27 線上」「11/07 實體」:寫全的話寬螢幕會把導覽擠出去 36px(2026-10-15 量過);右側直排和橫幅照樣寫完整 */
.header-social .social-text span:last-child { display: none; }
@media (min-width: 1241px) { .nav-wrap { gap: 22px; } .site-nav { gap: 16px; } .header-social { gap: 6px; } }   /* 多一張票券之後,頁首的間距收一點才排得下(只動間距,字不變;2026-10-15 量過 1241–1920 寬) */
@media (min-width: 961px) { .site-nav > a, .site-nav .button { white-space: nowrap; } }   /* 擠的時候導覽字會被折成兩行(「品牌故/事」),寧可量得出來溢出 */
.social-float .social-text span { display: block; margin: 0; text-align: center; line-height: 1.25; }

/* 說明會橫幅:首屏最上方一條(10/27 線上 + 11/07 實體)。說明會都辦完後連同 build_photos.py 的 BRIEFING 一起拿掉 */
.briefing-banner { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 26px; margin-bottom: 46px; padding: 16px 22px; border: 2px solid var(--ink); border-radius: 20px; background: var(--white); box-shadow: 7px 7px 0 var(--ink); }
.briefing-banner p { margin: 0; }
.briefing-banner > * { min-width: 0; }
.briefing-date { display: grid; gap: 2px; padding: 9px 18px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); line-height: 1.2; text-align: center; white-space: nowrap; }
.briefing-date strong { font-size: 1.45rem; font-weight: 900; }
.briefing-date span { font-size: .95rem; font-weight: 900; }
.briefing-text strong { display: block; font-size: 1.15rem; font-weight: 900; line-height: 1.4; }
.briefing-text span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .9rem; font-weight: 700; line-height: 1.55; }
.briefing-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }   /* 兩場的報名鈕放下面一排,說明文字才不會被擠成四行 */
.briefing-actions .button { white-space: nowrap; }
.briefing-live { color: var(--ink); background: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }   /* 11/07 實體場:和頁首的票券鈕同色 */
.briefing-live:hover { background: #ffcd45; }
.briefing-line { color: var(--ink); font-size: .88rem; font-weight: 850; text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 1160px) {
  .briefing-banner { grid-template-columns: auto minmax(0, 1fr); }
  .briefing-actions { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .briefing-banner { grid-template-columns: 1fr; gap: 12px; margin: 0 48px 30px 0; padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
  .briefing-date { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
  .briefing-date strong { font-size: 1.3rem; }
  .briefing-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .briefing-actions .button { width: 100%; }
  .briefing-line { text-align: center; white-space: normal; }
  .social-float .social-text { font-size: .6rem; letter-spacing: 0; }
}
@media (max-width: 400px) {
  .briefing-banner { margin-right: 44px; padding: 14px; }
  .briefing-date { flex-wrap: wrap; gap: 0 8px; padding: 8px 10px; }
  .briefing-date strong { font-size: 1.15rem; }
  .briefing-text strong { font-size: 1.05rem; }
}

/* 免費體驗學習島:說明會橫幅那一排的最後一顆(靠右)、右側直排最上面一顆 */
.button-try { color: #fff; background: #2f78bd; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
.button-try:hover { background: #2564a0; }
.button-try svg { flex: none; width: 22px; height: 22px; }
.briefing-actions .button-try { margin-left: auto; }
.social-try { background: #2f78bd; color: #fff; }
.social-float .social-try { height: auto; gap: 2px; padding: 7px 0 6px; border-radius: 14px; }
.social-float .social-try svg { width: 24px; height: 24px; }
@media (max-width: 720px) { .briefing-actions .button-try { margin-left: 0; } }

.header-social { display: flex; align-items: center; gap: 8px; order: 3; }
.header-social .social-btn { width: 34px; height: 34px; }
.header-social .social-btn svg { width: 18px; height: 18px; }
.header-social .social-accupass { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; padding: 0 12px 0 10px; border-radius: 999px; }

.social-float { position: fixed; top: 50%; right: 0; z-index: 90; display: grid; gap: 9px; padding: 11px 8px 11px 10px; border: 2px solid var(--ink); border-right: 0; border-radius: 18px 0 0 18px; background: var(--white); box-shadow: var(--shadow); transform: translateY(-50%); }
.social-float .social-accupass { height: auto; gap: 2px; padding: 7px 0 6px; border-radius: 14px; }
.social-float .social-text { font-size: .66rem; }

@media (min-width: 961px) {
  .site-nav { margin-left: auto; }
}
.header-social .social-btn.social-line svg { width: 23px; height: 23px; }

/* 頁首寬度很緊:四顆按鈕在各寬度都要和 logo、導覽、選單鈕排得下(改顆數時要重算) */
@media (min-width: 961px) and (max-width: 1240px) {   /* 兩張票券寫字要 1241 寬以上才放得下 */
  .nav-wrap { gap: 12px; }
  .site-nav { gap: 10px; }   /* 五顆鈕:961 寬時 14px 會把導覽擠成兩行 */
  .header-social { gap: 4px; }
  .header-social .social-btn, .header-social .social-accupass { width: 30px; height: 30px; padding: 0; }
  .header-social .social-btn.social-line svg { width: 21px; height: 21px; }
  .header-social .social-text { display: none; }
}
@media (max-width: 960px) {
  .nav-wrap { gap: 8px; }
  .header-social { order: 0; gap: 5px; margin-left: auto; }
  .header-social .social-btn, .header-social .social-accupass { width: 30px; height: 30px; padding: 0; }
  .header-social .social-btn svg { width: 16px; height: 16px; }
  .header-social .social-btn.social-line svg { width: 21px; height: 21px; }
  .header-social .social-text { display: none; }
}
@media (max-width: 400px) {
  .nav-wrap { gap: 6px; }
  .header-brand-mark, .header-brand-wordmark { height: 32px; }
  .header-social { gap: 4px; }
  .header-social .social-btn, .header-social .social-accupass { width: 28px; height: 28px; }
}
@media (max-width: 375px) {   /* 頁首五顆鈕:360 寬放不下 28px 的,和 350 以下一樣縮一號 */
  .header-brand { gap: 6px; }
  .header-brand-mark, .header-brand-wordmark { height: 26px; }
  .header-social { gap: 3px; }
  .header-social .social-btn, .header-social .social-accupass { width: 25px; height: 25px; }
  .header-social .social-btn svg { width: 14px; height: 14px; }
  .header-social .social-btn.social-line svg { width: 18px; height: 18px; }
}

@media (max-width: 720px) {
  .social-float { gap: 7px; padding: 8px 5px 8px 7px; border-radius: 15px 0 0 15px; }
  .social-float .social-btn { width: 36px; height: 36px; }
  .social-float .social-btn svg { width: 19px; height: 19px; }
  .social-float .social-accupass { height: auto; padding: 6px 0 5px; }
  .social-float .social-try { height: auto; padding: 6px 0 5px; }
  .hero-visual.hero-photo { padding: 18px 0 0; }
  .hero-photo .accept-card { position: relative; right: auto; bottom: auto; width: 250px; margin: 22px 6px 30px auto; }
  .hero-photo .bot-badge { top: -6px; right: 0; }
  .photo-row, .photo-row-two { grid-template-columns: 1fr; gap: 22px; }
  .video-frame { border-radius: 16px; }
}
