/* ============================================================
   河馬變臉 · 首頁重塑樣式
   風格：京劇臉譜 × 墨黑朱紅
   ============================================================ */

/* ---------- 1. 設計變數 ---------- */
:root {
  --ink:        #0B0A09;
  --ink-2:      #171310;
  --ink-3:      #241C17;
  --cinnabar:   #C1272D;
  --cinnabar-2: #9E1F22;
  --cinnabar-d: #6E1410;
  --gold:       #D4AF37;
  --gold-light: #E7C978;
  --gold-dim:   #8C7330;
  --paper:      #F5EFE3;
  --paper-2:    #EBE1CF;
  --paper-dim:  #A79A86;
  --line:       rgba(212, 175, 55, .28);
  --line-soft:  rgba(212, 175, 55, .14);
  --text-dark:  #241C17;
  --text-light: #EDE4D4;

  --font-serif: "Noto Serif TC", "Songti TC", "SimSun", "PMingLiU", serif;
  --font-sans:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-7: 96px; --sp-8: 120px;

  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text-light);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--cinnabar); color: #fff; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 9999;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 4px 4px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-3); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, .display { font-family: var(--font-serif); font-weight: 700; line-height: 1.3; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .32em;
  color: var(--gold); text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); flex: none; }
.lead { font-size: 1.12rem; line-height: 1.95; color: inherit; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 30px;
  font-size: .95rem; font-weight: 700; letter-spacing: .05em;
  border: 1px solid transparent; border-radius: 2px;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dim));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(212,175,55,.18), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(212,175,55,.32); }
.btn-outline { border-color: var(--line); color: var(--gold-light); background: rgba(212,175,55,.04); }
.btn-outline:hover { border-color: var(--gold); background: rgba(212,175,55,.12); }

/* ---------- 5. 區塊通用 ---------- */
.section { position: relative; padding: var(--sp-7) 0; scroll-margin-top: var(--header-h); }
.section-head { position: relative; text-align: center; margin-bottom: var(--sp-6); padding-top: var(--sp-2); }
.section-index {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 6.5rem; font-weight: 900;
  color: var(--gold); opacity: .07; line-height: 1; pointer-events: none; user-select: none;
}
.section-title {
  position: relative;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: .04em;
  display: inline-block; padding-bottom: var(--sp-3);
}
.section-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-title::before {
  content: ""; position: absolute; bottom: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--gold); z-index: 1;
}
.section-subtitle {
  margin-top: var(--sp-2); font-size: .95rem; letter-spacing: .18em;
  color: var(--paper-dim);
}

/* 捲動進場動畫初始態（僅在 JS 啟用時生效） */
.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
.has-js .reveal:nth-child(2) { transition-delay: .07s; }
.has-js .reveal:nth-child(3) { transition-delay: .14s; }
.has-js .reveal:nth-child(4) { transition-delay: .21s; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 10, 9, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.scrolled { background: rgba(11,10,9,.96); box-shadow: 0 6px 30px rgba(0,0,0,.45); height: 74px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 70px; height: 70px; object-fit: contain; filter: brightness(1.05); flex: none; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .12em; color: var(--gold-light); white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.main-nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav-list { display: flex; align-items: center; gap: var(--sp-3); }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 500; letter-spacing: .05em;
  padding: 8px 2px; color: var(--text-light); position: relative;
  background: none; border: 0; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.is-current { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.is-current::after { width: 100%; }

.menu-toggle {
  display: none; width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--gold); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-7);
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(193,39,45,.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 12% 85%, rgba(212,175,55,.08), transparent 70%),
    linear-gradient(160deg, #100C0A 0%, var(--ink) 45%, #140E0B 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 79px, var(--line-soft) 79px 80px),
    repeating-linear-gradient(90deg, transparent 0 79px, var(--line-soft) 79px 80px);
  mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}
.hero-mask {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(760px, 70vw); aspect-ratio: 1; pointer-events: none; opacity: .13;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 24%, var(--cinnabar) 24.4% 25%, transparent 25.4%),
    radial-gradient(circle at 50% 46%, transparent 0 34%, var(--gold) 34.3% 35%, transparent 35.3%),
    radial-gradient(circle at 35% 40%, var(--cinnabar) 0 6%, transparent 6.4%),
    radial-gradient(circle at 65% 40%, var(--cinnabar) 0 6%, transparent 6.4%),
    conic-gradient(from 20deg at 50% 50%, transparent 0 12deg, var(--cinnabar) 12.4deg 12.8deg, transparent 13deg 48deg, var(--gold) 48.4deg 48.8deg, transparent 49deg 84deg, var(--cinnabar) 84.4deg 84.8deg, transparent 85deg 120deg, var(--gold) 120.4deg 120.8deg, transparent 121deg 156deg, var(--cinnabar) 156.4deg 156.8deg, transparent 157deg 192deg, var(--gold) 192.4deg 192.8deg, transparent 193deg 228deg, var(--cinnabar) 228.4deg 228.8deg, transparent 229deg 264deg, var(--gold) 264.4deg 264.8deg, transparent 265deg 300deg, var(--cinnabar) 300.4deg 300.8deg, transparent 301deg 336deg, var(--gold) 336.4deg 336.8deg, transparent 337deg);
  filter: blur(.4px);
  animation: maskSpin 90s linear infinite;
}
@keyframes maskSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-6); align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.22; letter-spacing: .05em;
  color: var(--paper); text-shadow: 0 4px 28px rgba(0,0,0,.6);
}
.hero-name {
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 45%, #fff3c9 62%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.18em; letter-spacing: .14em;
}
.hero-lead { margin: var(--sp-3) 0 var(--sp-4); max-width: 40ch; color: #D8CBB6; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero-note { margin-top: var(--sp-4); font-size: .82rem; color: var(--paper-dim); letter-spacing: .08em; padding-left: 14px; border-left: 2px solid var(--cinnabar); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-frame {
  position: relative; width: min(460px, 100%); aspect-ratio: 1;
  border: 1px solid var(--line); padding: 12px;
  background: linear-gradient(145deg, rgba(212,175,55,.08), transparent 60%);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.hero-frame::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--line-soft); pointer-events: none; z-index: 2;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.92) contrast(1.05); }
.hero-seal {
  position: absolute; right: -6px; bottom: 26px; z-index: 3;
  writing-mode: vertical-rl; font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; letter-spacing: .2em; line-height: 1.2;
  color: #fff; background: var(--cinnabar);
  padding: 14px 9px; border: 2px solid var(--cinnabar-d);
  border-radius: 3px; transform: rotate(-5deg);
  box-shadow: 0 8px 24px rgba(110,20,16,.6);
}
.hero-corner { position: absolute; width: 46px; height: 46px; pointer-events: none; }
.hero-corner-tl { top: -18px; left: -18px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.hero-corner-br { bottom: -18px; right: -18px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint span { width: 3px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.8s infinite var(--ease); }
@keyframes scrollDot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: .2; } }

/* ---------- 8. 簡介 ---------- */
.section-intro { background: var(--paper); color: var(--text-dark); }
.section-intro .section-subtitle { color: #7C6E59; }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-6); align-items: center; }
.intro-photo { position: relative; margin: 0; padding: 14px; background: #fff; box-shadow: 0 20px 50px rgba(36,28,23,.16); }
.intro-photo::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.intro-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9); }
.intro-photo figcaption {
  margin-top: var(--sp-2); text-align: center; font-size: .82rem;
  letter-spacing: .16em; color: #7C6E59; font-family: var(--font-serif);
}
.intro-text p { margin-bottom: var(--sp-2); color: #4A3D31; }
.intro-text .lead { color: var(--text-dark); font-weight: 500; }
.intro-signature {
  position: absolute; right: var(--sp-7); bottom: -20px;
  writing-mode: vertical-rl; font-family: var(--font-serif); font-weight: 700;
  font-size: 1.5rem; letter-spacing: .22em; color: var(--cinnabar);
  border: 2px solid var(--cinnabar); padding: 12px 8px; border-radius: 3px;
  transform: rotate(-6deg); opacity: .9; pointer-events: none;
}
.section-intro .container { position: relative; }

/* ---------- 9. 追求 ---------- */
.section-pursuit { overflow: hidden; background: var(--ink-2); }
.pursuit-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background:
    radial-gradient(circle at 50% 0%, rgba(193,39,45,.14), transparent 42%),
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(212,175,55,.025) 30px 31px);
}
.pursuit-features { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); }
.feature {
  position: relative; padding: var(--sp-4) var(--sp-3) var(--sp-4);
  background: linear-gradient(180deg, rgba(212,175,55,.05), rgba(0,0,0,.14));
  border: 1px solid var(--line-soft); text-align: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.feature:hover { border-color: var(--line); transform: translateY(-5px); }
.feature-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 900; color: var(--gold); opacity: .28; line-height: 1; }
.feature h3 { margin: var(--sp-2) 0; font-size: 1.2rem; color: var(--gold-light); letter-spacing: .06em; }
.feature p { font-size: .92rem; color: #B8A993; line-height: 1.9; }

/* ---------- 10. 三大推薦 ---------- */
.section-why {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(193,39,45,.12), transparent 60%),
    var(--ink);
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.why-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; text-align: center;
  padding: var(--sp-4) var(--sp-3) 0;
  background: var(--ink-2); border: 1px solid var(--line-soft);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.why-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.why-card h3 { font-size: 1.3rem; color: var(--gold-light); margin-bottom: var(--sp-2); letter-spacing: .1em; }
.why-card p { font-size: .92rem; color: #B8A993; line-height: 1.9; margin-bottom: var(--sp-3); }
.why-photo { margin: auto calc(var(--sp-3) * -1) 0; }
.why-thumb {
  display: block; width: 100%; max-width: none;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%;
  opacity: .92; transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.why-card:hover .why-thumb { opacity: 1; transform: scale(1.03); }
.why-photo figcaption {
  padding: 12px 8px 14px; text-align: center;
  font-size: .82rem; color: var(--gold-light); letter-spacing: .06em;
  background: var(--ink-2);
}

/* ---------- 11. 影片 ---------- */
.section-videos { background: var(--paper); color: var(--text-dark); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-videos .section-subtitle { color: #7C6E59; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.video-card { background: var(--ink); border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: border-color .3s var(--ease); }
.video-card:hover { border-color: var(--line); }
.video-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); overflow: hidden; aspect-ratio: 16/9; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); filter: saturate(.85) brightness(.82); }
.video-card:hover .video-poster img { transform: scale(1.05); filter: saturate(1) brightness(.95); }
.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(193,39,45,.9); border: 2px solid var(--gold-light);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(212,175,55,.14), 0 12px 30px rgba(0,0,0,.5);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.play-icon::after { content: ""; width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid #fff; margin-left: 5px; }
.video-card:hover .play-icon { transform: translate(-50%,-50%) scale(1.1); background: var(--cinnabar); }
.video-body { padding: var(--sp-3); flex: 1; }
.video-body h3 { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 10px; line-height: 1.5; }
.video-body p { font-size: .88rem; color: #A99B87; line-height: 1.85; }
.video-iframe { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-iframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 12. 作品牆 ---------- */
.section-gallery { background: var(--ink); color: var(--text-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.gallery-item { position: relative; margin: 0; overflow: hidden; background: var(--ink-2); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); filter: saturate(.88); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,10,9,.92) 0%, rgba(11,10,9,.25) 42%, transparent 70%); opacity: .9; transition: opacity .35s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--sp-3); color: #fff; text-align: left; transform: translateY(4px); transition: transform .35s var(--ease); }
.gallery-item:hover figcaption { transform: none; }
.gallery-item figcaption span { display: block; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.gallery-item figcaption small { display: block; font-size: .85rem; color: var(--gold-light); letter-spacing: .1em; margin-top: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }

/* ---------- 13. 簡歷 ---------- */
.section-bio { background: var(--paper); color: var(--text-dark); }
.section-bio .section-subtitle { color: #7C6E59; }
.bio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.bio-card {
  position: relative; padding: var(--sp-4) var(--sp-3);
  background: rgba(11,10,9,.03); border: 1px solid rgba(11,10,9,.12);
  border-top: 2px solid var(--cinnabar);
}
.bio-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: var(--sp-3); letter-spacing: .08em; }
.bio-card li { position: relative; padding: 8px 0 8px 22px; font-size: .92rem; color: #4A3D31; border-bottom: 1px dashed rgba(11,10,9,.14); }
.bio-card li:last-child { border-bottom: 0; }
.bio-card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--cinnabar); transform: rotate(45deg); }
.bio-cta {
  margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-3); text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--cinnabar-d), var(--cinnabar) 55%, var(--cinnabar-d));
  box-shadow: 0 20px 50px rgba(110,20,16,.25);
}
.bio-cta p { font-family: var(--font-serif); font-size: clamp(1.05rem, 2vw, 1.4rem); color: #fff; margin-bottom: var(--sp-3); letter-spacing: .06em; }
.bio-cta .btn { background: #fff; color: var(--cinnabar-d); }
.bio-cta .btn:hover { background: var(--gold-light); }

/* ---------- 14. Footer ---------- */
.site-footer { background: #060505; border-top: 1px solid var(--line); padding: var(--sp-6) 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: var(--sp-5); padding-bottom: var(--sp-5); }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-2); }
.footer-brand img { width: 84px; height: 84px; object-fit: contain; }
.footer-brand p { font-size: .9rem; color: var(--paper-dim); line-height: 1.9; }
.footer-col h3 { font-size: 1rem; color: var(--gold-light); margin-bottom: var(--sp-2); letter-spacing: .1em; }
.footer-col li { padding: 5px 0; font-size: .88rem; color: var(--paper-dim); }
.footer-col a { transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: var(--sp-2); padding-bottom: var(--sp-2);
  display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
  font-size: .78rem; color: #6E6152; letter-spacing: .04em;
}

/* ---------- 15. 返回頂部 ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cinnabar); color: #fff; border: 1px solid var(--gold);
  font-size: 1.3rem; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--cinnabar-2); }

/* ---------- 16. 圖片失敗降級 ---------- */
.img-fallback {
  background: linear-gradient(145deg, var(--cinnabar-d), var(--ink-2)) !important;
  display: grid; place-items: center; min-height: 180px;
}
.img-fallback::after { content: "河馬變臉"; font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold); letter-spacing: .3em; }

/* ---------- 17. 響應式 ---------- */

/* 桌面中尺寸 */
@media (max-width: 1200px) {
  .nav-list { gap: var(--sp-2); }
  .main-nav { gap: var(--sp-2); }
  .nav-link { font-size: .94rem; }
}

/* 平板與以下：切換漢堡選單 */
@media (max-width: 900px) {
  :root { --sp-7: 72px; --sp-8: 88px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100svh - var(--header-h));
    background: rgba(11,10,9,.98); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: var(--sp-3); gap: var(--sp-2);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; padding: 15px 6px; font-size: 1.08rem; border-bottom: 1px solid var(--line-soft); }
  .nav-link::after { display: none; }
  .site-header.scrolled { height: var(--header-h); }

  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-note { justify-content: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-note { display: inline-block; text-align: left; }
  .hero-frame { width: min(400px, 88vw); }
  .hero-mask { opacity: .08; right: -30%; }

  .intro-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .intro-photo { max-width: 480px; margin: 0 auto; }
  .intro-signature { right: var(--sp-3); bottom: -12px; }
  .pursuit-features { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .why-card { min-height: 380px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .footer-brand { grid-column: 1 / -1; }
}

/* 大手機 */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .brand img { width: 60px; height: 60px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.15rem; letter-spacing: .08em; }
  .section { padding: var(--sp-6) 0; }
  .section-head { margin-bottom: var(--sp-5); }
  .section-index { font-size: 4.8rem; top: -26px; }
  .section-title { padding: 0 8px; }
  .section-subtitle { font-size: .82rem; letter-spacing: .12em; }

  .hero { padding-top: calc(var(--header-h) + var(--sp-4)); }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .eyebrow { font-size: .68rem; letter-spacing: .2em; }
  .hero-lead { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-seal { font-size: .95rem; right: -2px; padding: 10px 7px; }
  .hero-corner { display: none; }
  .scroll-hint { display: none; }

  .video-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-item { aspect-ratio: 4/3; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .intro-signature { font-size: 1.1rem; }
}

/* ---------- 18. 減少動態 / 列印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-mask { animation: none; }
}

/* ---------- 19. 內頁共用元件 ---------- */
/* 內頁頂部橫幅 */
.subhero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + var(--sp-7)) 0 var(--sp-7);
  background:
    radial-gradient(ellipse 55% 80% at 85% 40%, rgba(193,39,45,.2), transparent 70%),
    linear-gradient(155deg, #100C0A, var(--ink) 60%, #17100C);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}
.subhero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background: repeating-linear-gradient(45deg, transparent 0 34px, var(--line-soft) 34px 35px);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.subhero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-5); align-items: center; }
.subhero .eyebrow { margin-bottom: var(--sp-2); }
.subhero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--paper); line-height: 1.25; letter-spacing: .05em; }
.subhero h1 span { color: var(--gold-light); }
.subhero .sub-lead { margin-top: var(--sp-3); max-width: 55ch; color: #D3C6B1; font-size: 1.05rem; line-height: 1.95; }
.subhero-visual { position: relative; display: flex; justify-content: center; }
.hero-photo { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.subhero-visual img { width: min(320px, 100%); aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); padding: 8px; background: rgba(212,175,55,.04); box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.hero-photo figcaption { margin-top: 14px; font-size: .9rem; color: var(--gold-light); letter-spacing: .12em; text-align: center; }
.subhero-visual .seal { right: 0; bottom: 46px; font-size: .95rem; padding: 10px 7px; }
.seal {
  position: absolute; z-index: 3; writing-mode: vertical-rl;
  font-family: var(--font-serif); font-weight: 700; letter-spacing: .18em;
  color: #fff; background: var(--cinnabar); border: 2px solid var(--cinnabar-d);
  border-radius: 3px; transform: rotate(-5deg); box-shadow: 0 8px 24px rgba(110,20,16,.55);
}

/* 圖文並排 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(0,0,0,.3); }
.split-text p { margin-bottom: var(--sp-2); }

/* 服務項目卡 */
.service-card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line-soft);
  border-top: 2px solid var(--cinnabar); padding: var(--sp-4); margin-bottom: var(--sp-3);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover { border-color: var(--line); transform: translateY(-3px); }
.service-card .tag { display: inline-block; font-size: .75rem; letter-spacing: .12em; color: var(--gold); border: 1px solid var(--line); padding: 3px 12px; margin-bottom: var(--sp-2); }
.service-card h3 { color: var(--gold-light); font-size: 1.3rem; margin-bottom: var(--sp-2); }
.service-card p, .service-card li { color: #B8A993; font-size: .94rem; }
.service-card ul { padding-left: 20px; list-style: disc; margin-top: var(--sp-2); }
.service-card li { margin: 5px 0; }

/* 服務卡圖文並排 */
.service-card.has-image { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-4); align-items: center; }
.service-photo { margin: 0; }
.service-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.service-photo figcaption { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--gold-light); letter-spacing: .06em; line-height: 1.5; }
/* 招式卡配圖（三欄卡片內的方形圖） */
.move-card { display: flex; flex-direction: column; }
.move-photo { margin: var(--sp-3) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.move-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-soft); transition: transform .5s var(--ease); }
.move-card:hover .move-photo img { transform: scale(1.03); }
@media (max-width: 900px) {
  .service-card.has-image { grid-template-columns: 1fr; }
  .service-photo { max-width: 320px; margin: var(--sp-2) auto 0; }
}

/* 聯絡頁卡片（兩欄） */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* 茶藝風采三張圖（單行） */
.gallery-grid.gallery-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .gallery-grid.gallery-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid.gallery-3 { grid-template-columns: 1fr; } }

/* 通知框 */
.notice {
  background: #FBF1DC; border: 1px solid var(--cinnabar); border-left-width: 5px;
  color: var(--text-dark); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
  box-shadow: 0 8px 24px rgba(110,20,16,.12);
}
.notice strong { color: var(--cinnabar-d); font-family: var(--font-serif); font-size: 1.1rem; }

/* FAQ 手風琴 */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { background: var(--paper-2); border: 1px solid rgba(11,10,9,.14); margin-bottom: 12px; }
.faq details[open] { border-color: var(--cinnabar); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-serif);
  font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--cinnabar); color: #fff; font-size: .82rem; border-radius: 2px; }
.faq details[open] summary::before { content: "答"; background: var(--gold); color: var(--ink); }
.faq .faq-body { padding: 0 22px 20px 64px; color: #4A3D31; font-size: .94rem; line-height: 1.95; }
.faq .faq-body p { margin: 6px 0; }

/* 百科目錄卡 */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.topic-card {
  background: var(--paper); color: var(--text-dark); border: 1px solid var(--line);
  padding: var(--sp-3) var(--sp-4); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.topic-card .num { font-family: var(--font-serif); color: var(--cinnabar); font-size: .85rem; letter-spacing: .15em; }
.topic-card h3 { font-size: 1.2rem; margin: 6px 0; color: var(--ink); }
.topic-card p { font-size: .9rem; color: #5C5346; }

/* 四大特色圖文卡（每特色一圖） */
.feature-lead { max-width: 900px; margin: 0 auto var(--sp-5); text-align: center; color: #B8A993; font-size: 1rem; line-height: 1.9; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.feature-item {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold);
  padding: 0 0 var(--sp-3); transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.feature-item:hover { border-color: var(--line); transform: translateY(-4px); }
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: saturate(.92); transition: filter .4s var(--ease); }
.feature-item:hover .feature-photo img { filter: saturate(1.05); }
.feature-item h3 {
  margin: var(--sp-3) var(--sp-3) var(--sp-2); padding-left: 12px;
  border-left: 3px solid var(--gold); font-size: 1.12rem; color: var(--gold-light); line-height: 1.5;
}
.feature-item p { margin: 0 var(--sp-3); color: #B8A993; font-size: .9rem; line-height: 1.85; }
@media (max-width: 1200px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* 文章式內容 */
.article-body { max-width: 860px; margin: 0 auto; }
.article-body h3 { font-size: 1.35rem; color: var(--gold-light); margin: var(--sp-5) 0 var(--sp-2); }
.article-body h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--cinnabar); margin: var(--sp-3) 0 8px; }
.article-body p { color: #B8A993; margin: 10px 0; line-height: 1.95; }
.article-body strong { color: var(--paper); }
.article-body ul { padding-left: 22px; list-style: disc; margin: 10px 0; }
.article-body li { color: #B8A993; margin: 6px 0; }
.article-body .thesis { border-left: 3px solid var(--gold); padding-left: 18px; color: var(--paper); font-style: normal; }
.article-body blockquote { margin: var(--sp-3) 0; padding: var(--sp-3); background: var(--ink-2); border-left: 3px solid var(--cinnabar); color: #D8CBB6; }

/* 臉譜顏色表 */
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.color-chip { background: var(--ink-2); border: 1px solid var(--line-soft); padding: var(--sp-3); text-align: center; }
.color-chip .dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto var(--sp-2); border: 2px solid rgba(255,255,255,.2); }
.color-chip h4 { font-family: var(--font-serif); color: var(--gold-light); font-size: 1.1rem; margin: 0 0 6px; }
.color-chip p { font-size: .85rem; color: #A99B87; }

/* 淺色內容區 */
.section-light { background: var(--paper); color: var(--text-dark); }
.section-light h3 { color: var(--ink); }
.section-light .lead-text { color: #4A3D31; }
.section-light .article-body p, .section-light .article-body li { color: #4A3D31; }
.section-light .article-body strong { color: var(--cinnabar-d); }

/* 淺底區塊（保留內部深色卡片的原有配色，只改區塊標題） */
.section-paper { background: var(--paper); color: var(--text-dark); }
.section-paper .section-subtitle { color: #7C6E59; }
/* 聯絡頁淺色卡片 */
.contact-card-light { background: var(--paper-2); border-color: rgba(11,10,9,.14); border-top: 2px solid var(--cinnabar); }
.contact-card-light .tag { color: var(--cinnabar-d); border-color: rgba(158,31,34,.4); }
.contact-card-light h3 { color: var(--ink); }
.contact-card-light p { color: #4A3D31; }
/* 服務卡淺色版（川劇變臉表演服務） */
.service-card-light { background: var(--paper-2); border-color: rgba(11,10,9,.14); border-top: 2px solid var(--cinnabar); }
.service-card-light .tag { color: var(--cinnabar-d); border-color: rgba(158,31,34,.4); }
.service-card-light h3 { color: var(--ink); }
.service-card-light p, .service-card-light li { color: #4A3D31; }
.service-card-light .service-photo figcaption { color: var(--cinnabar-d); }

/* 頁面間導覽 */
.page-nav { display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-5); }
.page-nav a { color: var(--gold-light); font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.page-nav a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .subhero-inner, .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .subhero-visual { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .faq summary { font-size: .95rem; padding: 15px 16px; }
  .faq .faq-body { padding: 0 16px 18px; }
  .service-card { padding: var(--sp-3); }
}

@media print {
  .site-header, .menu-toggle, .main-nav, .back-to-top, .scroll-hint, .hero-mask, .video-poster .play-icon { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section-pursuit, .section-why, .section-videos, .section-gallery, .section-bio, .site-footer { background: #fff !important; color: #000 !important; }
  .section-title, .hero-copy h1, .why-card h3, .feature h3, .bio-card h3, .video-body h3 { color: #000 !important; }
  .section, .hero { page-break-inside: avoid; }
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
}
