/* 原動力跆拳道館 — 全站樣式
   規範來源:docs/11-design-brief.md
   原則:黑底、暖白字(2026-10-13 館長改為黑底)、紅色只用在刀口上。無框架、無 web font、無動畫。 */

:root {
  --brand-red: #C8102E;
  --brand-red-dark: #A00D24;
  --red: #FF5A6A;          /* 深色底上的紅色文字(#C8102E 對比不足) */
  --ink: #F2EFEA;
  --ink-soft: #D6D1CA;
  --muted: #A8A29A;
  --bg: #0E0E0E;
  --surface: #181818;
  --surface-2: #222222;
  --line: #2E2E2E;
  --black: #000000;

  /* 班別色 = 腰帶顏色(只用於識別標記,不做大面積背景) */
  --belt-kids: #F2C94C;
  --belt-basic: #27AE60;
  --belt-weekend: #2D9CDB;
  --belt-advanced: #C8102E;
  --belt-competition: #F2EFEA;

  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", -apple-system, sans-serif;
  --font-num: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --fs-h1: 28px;
  --fs-h2: 23px;
  --fs-h3: 19px;
  --fs-body: 17px;
  --fs-note: 15px;
  --fs-big: 48px;

  --gutter: 20px;
  --section: 56px;
  --text-max: 760px;
  --wide-max: 1200px;
  --radius: 12px;
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: 40px;
    --fs-h2: 30px;
    --fs-h3: 23px;
    --fs-body: 18px;
    --fs-big: 72px;
    --section: 88px;
  }
}

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

html { -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.85;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: #FF8A95; }

:focus-visible { outline: 3px solid #2D6CDF; outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 12px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.wrap { max-width: var(--wide-max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--text-max) + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.lead { font-size: 1.08em; color: var(--ink-soft); }
.note { font-size: var(--fs-note); color: var(--muted); }
.eyebrow {
  font-size: var(--fs-note); font-weight: 700; color: var(--red);
  margin: 0 0 .4em;
}
.section-head { max-width: var(--text-max); margin-bottom: 32px; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 30px;
  border-radius: 8px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.3; text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--brand-red); color: #fff; }
.btn--primary:hover { background: var(--brand-red-dark); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--line { background: #06C755; color: #fff; }
.btn--line:hover { background: #05A847; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 14, .95);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.2;
}
.brand:hover { color: var(--ink); }
/* 光暈版 logo:圖檔四周各留 23.6% 光暈空間,用負邊界抵銷,logo 本體仍是 72×40 */
.brand__mark { width: 106px; height: auto; flex: none; margin: -17px -12px -17px -17px; }
.brand__name { font-size: 18px; }
.brand__sub { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--red); }
.header-cta { display: none; min-height: 44px; padding: 10px 20px; font-size: 16px; }

.menu-toggle { position: relative; }
.menu-toggle > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; border-radius: 8px; font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--ink);
  padding: 0 14px;
}
.menu-toggle > summary::-webkit-details-marker { display: none; }
.menu-toggle[open] > summary { background: var(--ink); color: var(--bg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(300px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  padding: 8px;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a {
  display: block; padding: 12px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.menu-panel a:hover { background: var(--bg); color: var(--red); }
.menu-panel .btn { width: 100%; margin-top: 8px; color: #fff; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 28px; padding-block: 32px 40px; }
.hero h1 { margin-bottom: .2em; }
.hero__tagline { font-size: var(--fs-h2); font-weight: 800; line-height: 1.4; margin: 0 0 .6em; text-wrap: balance; }
.hero__tagline em { font-style: normal; color: var(--red); }
.hero__facts {
  list-style: none; margin: 0 0 1.2em; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  color: var(--ink-soft); font-size: var(--fs-note);
}
.hero__facts li { display: flex; align-items: center; gap: 6px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-red); }
.hero__since { font-size: var(--fs-note); color: var(--muted); margin: 14px 0 0; }
.hero__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__media figcaption { font-size: var(--fs-note); color: var(--muted); margin-top: 8px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; align-items: center; padding-block: 64px; gap: 48px; }
}

/* ---------- 學習路徑 ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.path__step { position: relative; }
.path__step + .path__step { padding-top: 34px; }
.path__step + .path__step::before {
  content: "↓"; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-size: 22px; line-height: 34px; color: var(--muted); font-weight: 700;
}
.path-card {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 0 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 18px 0; color: var(--ink); text-decoration: none; overflow: hidden;
}
.path-card:hover { border-color: var(--ink); color: var(--ink); }
.path-card__belt { align-self: stretch; margin-block: -18px; }
.path-card__title { font-size: var(--fs-h3); font-weight: 800; margin: 0; line-height: 1.35; }
.path-card__who { margin: 2px 0 0; color: var(--ink-soft); font-size: var(--fs-note); line-height: 1.6; }
.path-card__go { color: var(--red); font-weight: 700; font-size: var(--fs-note); white-space: nowrap; }
.path-split { display: grid; gap: 12px; }
@media (min-width: 640px) { .path-split { grid-template-columns: 1fr 1fr; } }
.belt-kids { background: var(--belt-kids); }
.belt-basic { background: var(--belt-basic); }
.belt-weekend { background: var(--belt-weekend); }
.belt-advanced { background: var(--belt-advanced); }
.belt-competition { background: var(--belt-competition); }
.callout {
  margin-top: 28px; max-width: 820px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px;
}
.callout p { margin: 0; }

/* ---------- 三個證據 ---------- */
.proofs { display: grid; gap: 16px; }
@media (min-width: 900px) { .proofs { grid-template-columns: repeat(3, 1fr); } }
.proof {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.proof__num { font-family: var(--font-num); font-weight: 800; color: var(--red); font-size: 15px; letter-spacing: .08em; margin: 0 0 6px; }
.proof h3 { margin-bottom: .5em; }
.proof p { color: var(--ink-soft); }
.proof p:last-child { margin-bottom: 0; }
.proof a { font-weight: 700; }

/* ---------- 兩條路(雙軌時間軸) ---------- */
.tracks { max-width: 980px; margin: 0 auto; }
.tracks__node {
  text-align: center; margin: 0 auto; max-width: 520px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 16px 20px;
}
.tracks__node strong { display: block; font-size: var(--fs-h3); line-height: 1.4; }
.tracks__node span { color: var(--ink-soft); font-size: var(--fs-note); }
.tracks__node--end { border-color: var(--red); border-width: 2px; }
.tracks__fork { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; padding-block: 28px; }
.tracks__fork::before, .tracks__fork::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 28px; background: var(--ink); transform: translateX(-50%);
}
.tracks__fork::before { top: 0; }
.tracks__fork::after { bottom: 0; background: var(--brand-red); }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.track__who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.track__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; }
.track__who strong { display: block; font-size: var(--fs-h3); line-height: 1.3; }
.track__who span { font-size: var(--fs-note); color: var(--muted); }
.track__label {
  display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px;
}
.track ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.track li { position: relative; padding: 0 0 12px 4px; font-size: var(--fs-note); line-height: 1.65; color: var(--ink-soft); }
.track li::before {
  content: ""; position: absolute; left: -22px; top: .55em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink-soft);
}
.track li strong { color: var(--ink); display: block; font-size: var(--fs-body); }
.track li:last-child { padding-bottom: 0; }
.track__highlight { color: var(--red) !important; }
@media (max-width: 560px) {
  .tracks__fork { grid-template-columns: 1fr; }
  .tracks__fork::before, .tracks__fork::after { display: none; }
  .tracks__fork { padding-block: 16px; }
}
.story { max-width: var(--text-max); margin: 40px auto 0; }
.story h3 { margin-top: 1.4em; }
.story blockquote {
  margin: 0 0 1.2em; padding: 16px 20px;
  background: var(--surface); border-left: 4px solid var(--brand-red); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05em;
}
.story blockquote p:last-child { margin-bottom: 0; }
.closing { text-align: center; font-size: var(--fs-h3); font-weight: 800; line-height: 1.7; margin: 40px auto 24px; max-width: var(--text-max); }

/* ---------- 教練卡 ---------- */
.coach-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .coach-grid { grid-template-columns: repeat(4, 1fr); } }
.coach-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none;
}
.coach-card:hover { border-color: var(--ink); color: var(--ink); }
.coach-card__photo { aspect-ratio: 1; width: 100%; object-fit: cover; object-position: 50% 10%; background: var(--surface-2); }
.coach-card__placeholder {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--surface-2); color: var(--muted); font-size: var(--fs-note); padding: 12px;
}
.coach-card__body { padding: 14px 14px 18px; }
.coach-card__dan { font-family: var(--font-num); font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); }
.coach-card__dan small { font-family: var(--font); font-size: 14px; font-weight: 700; margin-left: 4px; color: var(--muted); }
.coach-card__name { font-size: var(--fs-h3); font-weight: 800; margin: 8px 0 0; line-height: 1.3; }
.coach-card__role { font-size: var(--fs-note); color: var(--muted); margin: 0 0 6px; }
.coach-card__fact { font-size: var(--fs-note); color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---------- 大數字 ---------- */
.stats { display: grid; gap: 16px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat__num { font-family: var(--font-num); font-size: var(--fs-big); font-weight: 800; color: var(--red); line-height: 1; margin: 0; }
.stat__num small { font-family: var(--font); font-size: 20px; font-weight: 800; color: var(--ink); margin-left: 6px; }
.stat__desc { font-size: var(--fs-note); color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; }
caption { text-align: left; padding: 12px 14px; font-weight: 700; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: center; vertical-align: middle; line-height: 1.5; }
thead th { background: var(--surface-2); font-weight: 700; }
tbody th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
td.off { color: var(--muted); background: #161616; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap;
}
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--ink)); flex: none; }
.tag--kids { --c: var(--belt-kids); }
.tag--basic { --c: var(--belt-basic); }
.tag--weekend { --c: var(--belt-weekend); }
.tag--advanced { --c: var(--belt-advanced); }
.tag--competition { --c: var(--belt-competition); }
.scroll-hint { font-size: var(--fs-note); color: var(--muted); margin: 8px 0 0; }
@media (min-width: 720px) { .scroll-hint { display: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: var(--text-max); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; min-height: 52px; padding: 14px 52px 14px 18px; position: relative;
  font-weight: 700; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--red);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 16px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA 區 ---------- */
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
@media (min-width: 900px) { .cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 40px; } }
.cta-band h2 { margin-bottom: .4em; }
.cta-band .btn-row { margin-top: 20px; }
@media (min-width: 900px) { .cta-band .btn-row { margin-top: 0; flex-direction: column; } .cta-band .btn { width: 100%; } }

/* ---------- 地點 ---------- */
.place { display: grid; gap: 24px; }
@media (min-width: 900px) { .place { grid-template-columns: 1fr 1fr; align-items: start; } }
.place dl { margin: 0; }
.place dt { font-weight: 700; margin-top: 14px; }
.place dt:first-child { margin-top: 0; }
.place dd { margin: 2px 0 0; color: var(--ink-soft); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); display: block; }
.place figure { margin: 0; }
.place figure img { border-radius: var(--radius); }
.place figcaption { font-size: var(--fs-note); color: var(--muted); margin-top: 8px; }

/* ---------- 體驗課頁 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 36px 32px; }
.page-head h1 { margin-bottom: .2em; }
.page-head .lead { margin: 0 0 20px; font-size: var(--fs-h3); font-weight: 700; color: var(--ink-soft); }
.contact-buttons { display: grid; gap: 12px; max-width: 640px; }
@media (min-width: 560px) { .contact-buttons { grid-template-columns: 1fr 1fr; } }
.contact-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 76px; padding: 14px 20px; border-radius: var(--radius);
  text-decoration: none; font-weight: 800; font-size: 20px; line-height: 1.3;
}
.contact-btn small { font-size: 15px; font-weight: 600; opacity: .92; }
.contact-btn--line { background: #06C755; color: #fff; }
.contact-btn--line:hover { background: #05A847; color: #fff; }
.contact-btn--tel { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.contact-btn--tel:hover { background: var(--ink); color: var(--bg); }

.steps { list-style: none; margin: 0; padding: 0; max-width: var(--text-max); counter-reset: step; }
.steps > li { position: relative; padding: 0 0 28px 64px; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); font-family: var(--font-num); font-weight: 800; font-size: 20px;
}
.steps > li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li:last-child::before { background: var(--brand-red); }
.steps h3 { margin: 6px 0 .4em; }
.steps p { color: var(--ink-soft); }
.steps p:last-child { margin-bottom: 0; }
.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink-soft); margin-bottom: 6px; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--belt-basic); font-weight: 800; }
.key-line { font-weight: 800; color: var(--ink); }

.fee-box { max-width: var(--text-max); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fee-box p:last-child { margin-bottom: 0; }
.fee-box .key-line { font-size: 1.1em; }

.form { max-width: var(--text-max); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field .req { color: var(--red); font-size: var(--fs-note); margin-left: 4px; font-weight: 700; }
.field .opt { color: var(--muted); font-size: var(--fs-note); margin-left: 4px; font-weight: 600; }
.field .hint { font-size: var(--fs-note); color: var(--muted); margin: 4px 0 0; }
fieldset.field { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: #141414; border: 1.5px solid #4A4642; border-radius: 8px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.two-col { display: grid; gap: 12px; }
@media (min-width: 560px) { .two-col { grid-template-columns: 1fr 1fr; } }
.form .btn { width: 100%; }
.form-error { color: var(--red); font-weight: 700; font-size: var(--fs-note); margin: 0 0 12px; }
.form-done { background: #10291A; border: 1px solid #1F5A35; border-radius: 8px; padding: 14px 16px; margin-top: 16px; }

.worries { display: grid; gap: 14px; max-width: var(--text-max); }
.worry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.worry h3 { font-size: var(--fs-body); margin-bottom: .3em; }
.worry p { color: var(--ink-soft); margin: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); color: #E8E4DE; padding-block: 48px 32px; font-size: 16px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 138px; height: auto; flex: none; margin: -22px -14px -22px -22px; }
.footer-brand strong { font-size: 20px; color: #fff; display: block; line-height: 1.3; }
.footer-brand span { font-size: 14px; color: #B8B2AA; }
.site-footer h2 { font-size: 16px; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-bottom { border-top: 1px solid #2E2E2E; margin-top: 32px; padding-top: 20px; font-size: 14px; color: #B8B2AA; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- 手機底部固定預約列(僅手機) ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(20,20,20,.97); border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; min-height: 50px; padding: 10px 12px; font-size: 16px; }
body.has-mobile-cta { padding-bottom: 76px; }
@media (min-width: 1024px) { .mobile-cta { display: none; } body.has-mobile-cta { padding-bottom: 0; } }

/* 草稿標記:上線前移除 */
.draft-note {
  background: #2A2410; border: 1px dashed #E0B400; color: #E8CF7A; border-radius: 8px;
  padding: 8px 12px; font-size: 14px; line-height: 1.6; margin: 12px 0 0;
}

/* ---------- 品牌開場頁(首頁覆蓋層) ----------
   內容仍完整存在於首頁 HTML,覆蓋層只是第一眼的品牌畫面,不影響 SEO。
   每次打開首頁都會出現;沒有 JS 時不出現。 */
.splash { display: none; }
html.show-splash body { overflow: hidden; }
html.show-splash .splash {
  display: flex; position: fixed; inset: 0; z-index: 1000;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); color: var(--ink); text-align: center; cursor: pointer;
}
.splash__name { margin: 0; font-size: clamp(30px, 7vw, 48px); font-weight: 900; line-height: 1.25; color: var(--ink); }
.splash__en { display: block; margin-top: 6px; font-family: var(--font-num); font-size: clamp(14px, 3vw, 18px); font-weight: 700; letter-spacing: .18em; color: var(--red); }
.splash__meta { margin: 0; font-size: 16px; color: var(--muted); }

/* 蓋章動畫(館長指定):logo 從畫面外重重蓋下,落地瞬間畫面震動、紅色衝擊框擴散 */
.splash__stamp { position: relative; width: min(720px, 92vw, 100vh); }
.splash__logo { height: auto; opacity: 0; }
.splash__stamp::after {
  content: ""; position: absolute; inset: 4% 2%; border: 6px solid var(--brand-red); border-radius: 18px;
  opacity: 0; pointer-events: none;
}

.splash.is-stamping .splash__stamp { animation: yp-shake .7s linear .9s both; }
.splash.is-stamping .splash__logo { animation: yp-stamp 1.4s both; }
.splash.is-stamping .splash__stamp::after { animation: yp-impact .9s ease-out .9s both; }
.splash.is-done .splash__meta { opacity: 1; }

@keyframes yp-stamp {
  0%   { opacity: 0; transform: scale(4.2) rotate(-12deg); filter: blur(10px) drop-shadow(0 60px 40px rgba(0,0,0,.35)); animation-timing-function: cubic-bezier(.7, 0, 1, .6); }
  20%  { opacity: 1; }
  64%  { transform: scale(.84) rotate(0deg); filter: blur(0) drop-shadow(0 0 0 rgba(0,0,0,0)); animation-timing-function: ease-out; }
  76%  { transform: scale(1.06); }
  88%  { transform: scale(.98); }
  100% { opacity: 1; transform: scale(1); filter: none; }
}
@keyframes yp-shake {
  0%   { transform: translate(0, 0); }
  8%   { transform: translate(-16px, 12px); }
  18%  { transform: translate(14px, -12px); }
  30%  { transform: translate(-11px, 8px); }
  44%  { transform: translate(8px, -6px); }
  60%  { transform: translate(-5px, 4px); }
  78%  { transform: translate(3px, -2px); }
  100% { transform: translate(0, 0); }
}
@keyframes yp-impact {
  0%   { opacity: .85; transform: scale(.9); border-width: 10px; }
  100% { opacity: 0; transform: scale(1.6); border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .splash.is-stamping .splash__stamp, .splash.is-stamping .splash__logo, .splash.is-stamping .splash__stamp::after { animation: none; }
  .splash__logo { opacity: 1; }
  .splash.is-done .splash__meta, }

.splash__meta { opacity: 0; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) {
  }

/* 開場底色:漸層黑,logo 周圍最亮(館長指定) */
html.show-splash .splash { background: #0E0E0E; }
/* 光暈已直接「烤」進 logo 圖檔(logo-glow-*.png),不用 CSS 濾鏡,避免部分瀏覽器在文字後面出現色塊。
   圖檔四周各有 logo 寬度 23.6% 的光暈留白,用負邊距抵銷,讓 logo 本體維持原本大小與位置。 */
.splash__logo { width: 147.21%; max-width: none; max-height: none; margin: -23.605%; }
.splash__stamp::after { z-index: 2; }
.splash__meta { color: #FFFFFF; margin-top: 20px !important; font-size: clamp(18px, 3.6vw, 22px); font-weight: 600; letter-spacing: .04em; }
html.show-splash .splash { overflow: hidden; }

/* Since 2015 旁的館長飛踢剪影(取自道館門口照片) */
.splash__meta { display: flex; align-items: center; justify-content: center; gap: .55em; }
.splash__kick { width: auto; height: 1.6em; opacity: 0; }
.splash__meta span { opacity: 0; transition: opacity .4s ease; }
/* 先出現 Since 2015 → 飛踢剪影從左邊畫面外直線飛出,穿越文字,停在文字右邊 */
.splash.is-done .splash__meta span { opacity: 1; }
.splash__kicker { position: relative; display: inline-flex; z-index: 1; }
.splash.is-done .splash__kick { animation: yp-kick-line .75s cubic-bezier(.25, .6, .3, 1) .5s both; }
@keyframes yp-kick-line {
  0%   { opacity: 0; transform: translateX(-50vw); }
  8%   { opacity: 1; }
  88%  { transform: translateX(.3em); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash.is-done .splash__kick { animation: none; opacity: 1; }
  .splash.is-done .splash__meta span { transition-delay: 0s; }
}

/* 蓋章衝擊框:logo 徽章外形(六角形+橫條+梯形,不含拳頭),四周各留 logo 寬 2.721% 的邊 */
.splash__stamp::after { content: none; }
.splash__ring {
  position: absolute; left: 0; top: 0; width: 105.442%; max-width: none; height: auto;
  margin: -2.721% 0 0 -2.721%; opacity: 0; pointer-events: none; transform-origin: 50% 50%;
}
.splash.is-stamping .splash__ring { animation: yp-impact-logo .9s ease-out .9s both; }
@keyframes yp-impact-logo {
  0%   { opacity: .9; transform: scale(.95); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) { .splash.is-stamping .splash__ring { animation: none; } }

/* 社群連結的小圖示 */
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link .si { width: 1.15em; height: 1.15em; flex: none; }
.site-footer .social-link { min-height: 36px; }
