/* ─────────────────────────────────────────────────────
   CXWEO 之家 ｜ 日系小擺攤風格 stylesheet
   ───────────────────────────────────────────────────── */

:root {
  --cream: #FFF6E9;
  --cream-deep: #FCEBCB;
  --paper: #FFFBF1;
  --sky-top: #FFE2C8;
  --sky-mid: #FCD3B6;
  --sky-bot: #BFE3F0;
  --sakura: #FFB7C5;
  --sakura-soft: #FFD3DD;
  --awn-red: #C13E3E;
  --awn-red-stripe: #F4E4D0;
  --awn-blue: #4A7CA0;
  --awn-green: #6B9367;
  --awn-pink: #E48AA1;
  --awn-cream: #C9A06A;
  --wood: #8B6F47;
  --wood-deep: #5C3A24;
  --ink: #3A2B22;
  --ink-soft: #5C4538;
  --gold: #E2A93B;
  --shadow: 0 6px 16px -6px rgba(58, 43, 34, 0.25);
  --shadow-lg: 0 12px 32px -8px rgba(58, 43, 34, 0.28);

  --font-jp: 'Zen Maru Gothic', 'Klee One', 'Noto Sans TC', system-ui, sans-serif;
  --font-body: 'Noto Sans TC', 'Zen Maru Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 不可編輯的內容點下去時不要顯示文字游標 */
  caret-color: transparent;
}

/* 真正可輸入的元素照樣顯示游標 */
input, textarea, [contenteditable="true"] {
  caret-color: auto;
}

body {
  background:
    radial-gradient(1000px 400px at 50% -100px, #FFEED7 0%, transparent 70%),
    repeating-linear-gradient(45deg, #FFF6E9 0 20px, #FCF0DD 20px 40px);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ─────────────────────────────────────────────────────
   Hero（首屏全景）
   ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 60px;
}

/* 天空背景 */
.sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 35%,
      #F8E5C9 60%,
      var(--sky-bot) 100%);
  z-index: 0;
}

.sun {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFEFA8 0%, #FFD27A 55%, rgba(255, 210, 122, 0) 75%);
  filter: blur(0.5px);
  animation: sun-pulse 6s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: 0.95; }
}

.cloud {
  position: absolute;
  background: #FFFDF6;
  border-radius: 100px;
  opacity: 0.9;
  box-shadow:
    20px 0 0 -4px #FFFDF6,
    40px 6px 0 -6px #FFFDF6,
    -20px 4px 0 -4px #FFFDF6;
}

.cloud-1 { top: 12%; left: 8%;  width: 90px; height: 26px; animation: drift 38s linear infinite; }
.cloud-2 { top: 22%; left: 35%; width: 110px; height: 30px; animation: drift 50s linear infinite; }
.cloud-3 { top: 6%;  left: 65%; width: 80px;  height: 24px; animation: drift 44s linear infinite; }

@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(60vw); }
}

/* 場景 SVG */
.scene {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100%);
  z-index: 1;
  pointer-events: none;
}

/* 通用輕擺（仍給 .lantern-mini 使用） */
@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}


/* 海浪光影：水平向右流動 */
.wave { animation: shimmer 8s ease-in-out infinite; }
.wave-2 { animation-duration: 10s; animation-delay: -2s; }
.wave-3 { animation-duration: 12s; animation-delay: -5s; }

@keyframes shimmer {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%      { opacity: 0.85; transform: translateX(-12px); }
}

/* 海風線條：dashoffset 流動，給人風像浪一樣掃過去並在尾端捲起 */
.breeze path { stroke-dashoffset: 0; animation: breezeFlow 4s linear infinite; }
.breeze-1 { animation-duration: 5.4s; }
.breeze-2 { animation-duration: 4.2s; animation-delay: -0.7s; }
.breeze-3 { animation-duration: 6.0s; animation-delay: -1.4s; }
.breeze-4 { animation-duration: 5.6s; animation-delay: -2.0s; }
.breeze-5 { animation-duration: 4.8s; animation-delay: -2.6s; }
.breeze-6 { animation-duration: 6.4s; animation-delay: -3.3s; }
.breeze-7 { animation-duration: 5.0s; animation-delay: -1.1s; }
.breeze-8 { animation-duration: 4.5s; animation-delay: -3.8s; }

@keyframes breezeFlow {
  0%   { stroke-dashoffset: 0;   opacity: var(--start-op, 0.45); }
  50%  { opacity: var(--peak-op, 0.65); }
  100% { stroke-dashoffset: -52; opacity: var(--start-op, 0.45); }
}

/* 海草叢搖曳（每叢從根部為軸心搖） */
.grass-cluster {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: grassSway 3.8s ease-in-out infinite;
}
.gc-1 { animation-delay: -0.4s; animation-duration: 4.2s; }
.gc-2 { animation-delay: -1.2s; animation-duration: 3.6s; }
.gc-3 { animation-delay: -2.0s; animation-duration: 4.0s; }
.gc-4 { animation-delay: -0.8s; animation-duration: 3.2s; }
.gc-5 { animation-delay: -1.6s; animation-duration: 3.4s; }
.gc-6 { animation-delay: -2.4s; animation-duration: 4.4s; }
.gc-7 { animation-delay: -3.0s; animation-duration: 4.0s; }

@keyframes grassSway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

/* 太陽光芒緩慢旋轉 */
.sun-rays {
  transform-box: fill-box;
  transform-origin: center center;
  animation: sunRotate 90s linear infinite;
}

@keyframes sunRotate {
  to { transform: rotate(360deg); }
}

/* 太陽核心微微呼吸 */
.sun-group > circle:nth-of-type(3) {
  transform-box: fill-box;
  transform-origin: center center;
  animation: sunPulse 5s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.08); opacity: 1; }
}

/* 月亮輕微呼吸 */
.moon {
  transform-box: fill-box;
  transform-origin: center center;
  animation: moonBreathe 7s ease-in-out infinite;
}

@keyframes moonBreathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* 小獅薩主視覺（手繪 PNG，輕輕上下浮動） */
.cubs-art {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: cubsBob 6s ease-in-out infinite;
}

@keyframes cubsBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* 招牌：輕微擺動（從底部、貼著木樁的位置為軸心） */
.sign-board {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: signSway 5.5s ease-in-out infinite;
}

@keyframes signSway {
  0%, 100% { transform: rotate(-1.2deg); }
  50%      { transform: rotate(1.2deg); }
}

/* 海鷗緩緩飛 */
.seagulls g { animation: gullDrift 22s linear infinite; }
.gull-1 { animation-duration: 26s; }
.gull-2 { animation-duration: 30s; animation-delay: -8s; }
.gull-3 { animation-duration: 24s; animation-delay: -14s; }

@keyframes gullDrift {
  0%   { transform: translate(0, 0)        scale(1); opacity: 0.7; }
  10%  { opacity: 0.7; }
  50%  { transform: translate(-180px, -8px) scale(0.92); opacity: 0.55; }
  90%  { opacity: 0.7; }
  100% { transform: translate(-360px, 0)    scale(0.85); opacity: 0; }
}

/* 風中漂浮的小光點/沙粒（取代原本下落的櫻花瓣） */
.petal { animation: drift 10s ease-in-out infinite; transform-origin: center; }
.p1 { animation-duration: 11s; animation-delay: -2s; }
.p2 { animation-duration: 13s; animation-delay: -5s; }
.p3 { animation-duration: 9s;  animation-delay: -1s; }
.p4 { animation-duration: 12s; animation-delay: -3s; }
.p5 { animation-duration: 10s; animation-delay: -7s; }

@keyframes drift {
  0%   { transform: translate(0, 0)         scale(1);   opacity: 0;   }
  15%  { opacity: 0.85; }
  50%  { transform: translate(120px, -22px) scale(1.1); opacity: 1;   }
  85%  { opacity: 0.7; }
  100% { transform: translate(260px, -8px)  scale(0.9); opacity: 0;   }
}

/* Hero 文案 */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 56px 24px 0;
  color: var(--ink);
}

.kana {
  font-family: var(--font-jp);
  font-size: 15px;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  margin: 0 0 8px;
  opacity: 0.85;
}

.hero-text h1 {
  font-family: var(--font-jp);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  color: var(--wood-deep);
  text-shadow: 0 2px 0 #FFF8E7, 0 4px 18px rgba(193, 62, 62, 0.18);
}

.hero-text .tag {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.enter-btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFF8E7;
  background: linear-gradient(180deg, #D9402C 0%, #B22F1F 100%);
  border-radius: 999px;
  border: 2.5px solid #FFF8E7;
  box-shadow:
    0 0 0 2px #B22F1F,
    0 8px 22px -8px rgba(178, 47, 31, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow:
    0 0 0 2px #B22F1F,
    0 14px 28px -10px rgba(178, 47, 31, 0.65);
  outline: none;
}

/* ─────────────────────────────────────────────────────
   攤位區
   ───────────────────────────────────────────────────── */

main { position: relative; }

.stalls {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-head h2 {
  font-family: var(--font-jp);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  color: var(--wood-deep);
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.section-head .dot {
  color: var(--sakura);
  font-size: 0.8em;
  margin: 0 0.4em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-jp);
}

.stall-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px 28px;
}

/* 單個攤位 */
.stall {
  position: relative;
  perspective: 800px;
}

.stall a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 18px;
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1.2);
}

.stall a:hover,
.stall a:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

/* 屋頂遮陽棚（條紋） */
.awning {
  position: relative;
  height: 38px;
  border-radius: 8px 8px 0 0;
  margin: 0 -6px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.08);
  overflow: hidden;
}

.awning::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--stripe-a, #C13E3E) 0 22px,
    var(--stripe-b, #FFF1D6) 22px 44px
  );
}

/* 棚下波浪邊 */
.awning::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 14px;
  background-image: radial-gradient(circle at 11px 0, var(--stripe-a, #C13E3E) 8px, transparent 9px);
  background-size: 22px 14px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.08));
}

.awning-red    { --stripe-a: #C13E3E; --stripe-b: #FFF1D6; }
.awning-blue   { --stripe-a: #4A7CA0; --stripe-b: #FFF1D6; }
.awning-green  { --stripe-a: #6B9367; --stripe-b: #FFF1D6; }
.awning-cream  { --stripe-a: #C9A06A; --stripe-b: #FFFBF1; }
.awning-pink   { --stripe-a: #E48AA1; --stripe-b: #FFF1D6; }

/* 攤位本體（木製） */
.stall-body {
  position: relative;
  flex: 1;
  margin-top: 14px;
  padding: 26px 24px 28px;
  background:
    linear-gradient(180deg, #FFFBF1 0%, #FFF3DC 100%);
  border: 2.5px solid var(--wood);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: center;
  /* 木紋細節 */
  background-image:
    linear-gradient(180deg, rgba(139,111,71,0.04) 0%, rgba(139,111,71,0.08) 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0 6px,
      rgba(139, 111, 71, 0.04) 6px 7px
    );
}

/* 攤位左右木柱 */
.stall-body::before,
.stall-body::after {
  content: "";
  position: absolute;
  top: -16px; bottom: -8px;
  width: 8px;
  background: linear-gradient(180deg, var(--wood) 0%, var(--wood-deep) 100%);
  border-radius: 3px;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.15);
}
.stall-body::before { left: -2px; }
.stall-body::after  { right: -2px; }

.stall-icon {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(58, 43, 34, 0.15));
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1.2);
}

.stall a:hover .stall-icon,
.stall a:focus-visible .stall-icon {
  transform: translateY(-4px) rotate(-6deg) scale(1.08);
}

.stall h3 {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--wood-deep);
  letter-spacing: 0.05em;
}

.stall .jp {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  margin: 0 0 12px;
  opacity: 0.75;
}

.stall .desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  min-height: 3.4em;
}

.stall .visit {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: #B22F1F;
  letter-spacing: 0.05em;
  border-bottom: 2px dashed rgba(178, 47, 31, 0.45);
  padding-bottom: 2px;
}

/* 小燈籠掛飾 */
.lantern-mini {
  position: absolute;
  top: 52px;
  right: 14px;
  width: 18px;
  height: 22px;
  background: #D9402C;
  border-radius: 50%;
  box-shadow:
    0 -4px 0 -1px var(--wood-deep),
    inset 0 -3px 0 rgba(0,0,0,0.15);
  animation: sway 3s ease-in-out infinite;
  z-index: 2;
}
.lantern-mini::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.3);
}
.lantern-mini::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -10px;
  width: 24px;
  height: 6px;
  border-top: 1px solid var(--wood-deep);
}

/* 為各攤位加一點不同的小裝飾 */
.stall-tools .stall-body { background-image: linear-gradient(180deg, #FFFBF1 0%, #FFF3DC 100%); }
.stall-game  .stall-body { background-image: linear-gradient(180deg, #FFFBF1 0%, #EFF6FB 100%); }
.stall-novel .stall-body { background-image: linear-gradient(180deg, #FFFBF1 0%, #F0F5EB 100%); }
.stall-pod   .stall-body { background-image: linear-gradient(180deg, #FFFBF1 0%, #FFF6E3 100%); }
.stall-yt    .stall-body { background-image: linear-gradient(180deg, #FFFBF1 0%, #FCEDF1 100%); }

/* ─────────────────────────────────────────────────────
   卷軸 / 簡介卡
   ───────────────────────────────────────────────────── */

.scroll-card {
  max-width: 820px;
  margin: 30px auto 80px;
  padding: 0 24px;
}

.scroll-inner {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--wood);
  border-radius: 14px;
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  background-image:
    radial-gradient(rgba(139, 111, 71, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
}

.scroll-inner::before,
.scroll-inner::after {
  content: "";
  position: absolute;
  left: -10px; right: -10px;
  height: 22px;
  background: linear-gradient(90deg, var(--wood) 0%, #6B4630 50%, var(--wood) 100%);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.scroll-inner::before { top: -14px; }
.scroll-inner::after  { bottom: -14px; }

.scroll-inner h2 {
  font-family: var(--font-jp);
  font-size: 26px;
  margin: 0 0 18px;
  color: var(--wood-deep);
  letter-spacing: 0.05em;
}

.scroll-inner p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--font-jp);
}

.scroll-inner .signoff {
  margin-top: 22px;
  color: var(--awn-red);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────
   開場：家門前的海（紙質故事卡）
   ───────────────────────────────────────────────────── */

.story-intro {
  max-width: 820px;
  margin: 30px auto 50px;
  padding: 0 24px;
}

.story-inner {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--wood);
  border-radius: 14px;
  padding: 50px 44px 44px;
  box-shadow: var(--shadow-lg);
  background-image:
    radial-gradient(rgba(139, 111, 71, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
}

.story-inner::before,
.story-inner::after {
  content: "";
  position: absolute;
  left: -10px; right: -10px;
  height: 22px;
  background: linear-gradient(90deg, var(--wood) 0%, #6B4630 50%, var(--wood) 100%);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.story-inner::before { top: -14px; }
.story-inner::after  { bottom: -14px; }

.story-inner h2 {
  font-family: var(--font-jp);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--wood-deep);
  margin: 0 0 26px;
  text-align: center;
  letter-spacing: 0.08em;
}

.story-inner p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 2;
  font-size: 16px;
  font-family: var(--font-body);
}

.story-inner p:last-child {
  margin-bottom: 0;
}

.story-inner strong {
  color: var(--awn-red);
  font-weight: 700;
}

/* 結尾的小快速連結（給已經想看的人捷徑） */
.story-quick-nav {
  text-align: center;
  margin-top: 28px !important;
  padding-top: 22px;
  border-top: 1.5px dashed rgba(139, 111, 71, 0.3);
  font-family: var(--font-jp);
}

.story-quick-nav a {
  display: inline-block;
  color: var(--awn-red);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  border-bottom: 2px dashed rgba(178, 47, 31, 0.4);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}

.story-quick-nav a:hover {
  color: #8B1F12;
  border-bottom-color: #8B1F12;
}

/* ─────────────────────────────────────────────────────
   緣起：這些小店是怎麼開始的（桌面雙欄、手機單欄）
   ───────────────────────────────────────────────────── */

.origins {
  max-width: 1180px;
  margin: 20px auto 60px;
  padding: 0 24px;
}

.origins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 26px;
}

.origins .section-head {
  text-align: center;
  margin-bottom: 40px;
}

.origins .section-head h2 {
  font-family: var(--font-jp);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--wood-deep);
  margin: 0 0 14px;
  letter-spacing: 0.06em;
}

.origins .section-head p {
  color: var(--ink-soft);
  margin: 4px 0;
  font-family: var(--font-jp);
  line-height: 1.7;
}

.origins .origins-order {
  font-size: 14px;
  opacity: 0.85;
}

.origin-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--wood);
  border-left-width: 8px;
  border-radius: 12px;
  padding: 32px 30px 28px;
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(rgba(139, 111, 71, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  flex-direction: column;
}

.origin-card .order-tag {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--cream);
  border: 1.5px solid var(--wood);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--wood-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 0 rgba(58, 43, 34, 0.08);
}

.origin-card h3 {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 900;
  color: var(--wood-deep);
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}

.origin-card p {
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 15.5px;
  margin: 0 0 12px;
  font-family: var(--font-body);
}

.origin-card p:last-child {
  margin-bottom: 0;
}

.origin-card ul {
  margin: 8px 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.origin-card ul li {
  margin-bottom: 4px;
  line-height: 1.7;
  font-family: var(--font-body);
}

.origin-card strong {
  color: var(--wood-deep);
  font-weight: 700;
}

/* 各店的左側顏色（呼應攤位區的遮陽棚色） */
.origin-yt    { border-left-color: var(--awn-pink); }
.origin-pod   { border-left-color: var(--awn-cream); }
.origin-tools { border-left-color: var(--awn-red); }
.origin-novel { border-left-color: var(--awn-green); }
.origin-game  { border-left-color: var(--awn-blue); }

/* 桌面 hover：輕輕浮起 */
.origin-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.origin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* 5 張卡在 2 欄佈局下，最後一張獨自一行時跨滿兩欄 */
@media (min-width: 880px) {
  .origins-grid .origin-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 879px) {
  .origins-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .origin-card {
    padding: 28px 22px 24px;
  }
  .origin-card .order-tag {
    right: 14px;
    font-size: 11px;
    padding: 3px 10px;
  }
  .story-inner {
    padding: 38px 26px 30px;
  }
}

/* ─────────────────────────────────────────────────────
   詳細介紹：每間小店裡到底有什麼（detail）
   ───────────────────────────────────────────────────── */

.detail {
  max-width: 1180px;
  margin: 30px auto 50px;
  padding: 0 24px;
}

.detail .section-head {
  margin-bottom: 40px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 26px;
}

.detail-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--wood);
  border-radius: 12px;
  padding: 38px 28px 26px;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(180deg, transparent 0 12px, rgba(139,111,71,0.04) 12px 13px, transparent 13px 100%),
    radial-gradient(rgba(139, 111, 71, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 14px 14px;
  display: flex;
  flex-direction: column;
}

/* 上方小色塊（呼應遮陽棚色） */
.detail-tag {
  position: absolute;
  top: -14px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: #FFF8E7;
  letter-spacing: 0.08em;
  background: var(--awn-red);
  box-shadow: 0 3px 0 rgba(58, 43, 34, 0.12);
}

.detail-tag .emoji {
  font-size: 16px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15));
}

.detail-tools .detail-tag { background: var(--awn-red); }
.detail-game  .detail-tag { background: var(--awn-blue); }
.detail-novel .detail-tag { background: var(--awn-green); }
.detail-pod   .detail-tag { background: var(--awn-cream); color: #FFF8E7; }
.detail-yt    .detail-tag { background: var(--awn-pink); }

.detail-card h3 {
  font-family: var(--font-jp);
  font-size: 19px;
  font-weight: 900;
  color: var(--wood-deep);
  margin: 6px 0 14px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.detail-card p {
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 15.5px;
  margin: 0 0 12px;
  font-family: var(--font-body);
}

.detail-card p:last-child {
  margin-bottom: 0;
}

.detail-card strong {
  color: var(--wood-deep);
  font-weight: 700;
}

.detail-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* 5 卡奇偶 grid：最後一張獨佔一行時跨滿（雙欄時） */
@media (min-width: 760px) and (max-width: 1099px) {
  .detail-grid .detail-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 759px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ─────────────────────────────────────────────────────
   最近在忙什麼（now）—— 木夾紙條風格
   ───────────────────────────────────────────────────── */

.now {
  max-width: 820px;
  margin: 30px auto 50px;
  padding: 0 24px;
}

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.now-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper);
  border: 2px solid var(--wood);
  border-left-width: 6px;
  border-radius: 10px;
  padding: 18px 22px 16px 18px;
  box-shadow: var(--shadow);
}

.now-novel { border-left-color: var(--awn-green); }
.now-pod   { border-left-color: var(--awn-cream); }
.now-tools { border-left-color: var(--awn-red); }
.now-game  { border-left-color: var(--awn-blue); }

.now-dot {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 2px 3px rgba(58, 43, 34, 0.15));
}

.now-where {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--wood-deep);
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

.now-what {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
}

/* ─────────────────────────────────────────────────────
   適合什麼時刻來（when）—— 一日 timeline
   ───────────────────────────────────────────────────── */

.when {
  max-width: 820px;
  margin: 30px auto 50px;
  padding: 0 24px;
}

.when-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 左側時間軸的虛線 */
.when-list::before {
  content: "";
  position: absolute;
  left: 64px;
  top: 24px;
  bottom: 24px;
  border-left: 2px dashed rgba(139, 111, 71, 0.35);
}

.when-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 0;
}

.when-time {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--wood-deep);
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0.85;
}

.when-icon {
  font-size: 22px;
  line-height: 1;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1.5px solid var(--wood);
  border-radius: 50%;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.when-item p {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 560px) {
  .when-list::before { left: 50px; }
  .when-item {
    grid-template-columns: 50px 36px 1fr;
    gap: 10px;
    padding: 12px 14px 12px 0;
  }
  .when-time { font-size: 12px; }
  .when-icon { width: 32px; height: 32px; font-size: 18px; }
  .when-item p { font-size: 14.5px; }
}

/* ─────────────────────────────────────────────────────
   結尾：慢慢來（closing）
   ───────────────────────────────────────────────────── */

.closing {
  max-width: 720px;
  margin: 30px auto 70px;
  padding: 0 24px;
}

.closing-inner {
  background: var(--paper);
  border: 2px solid var(--wood);
  border-radius: 14px;
  padding: 44px 38px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  background-image:
    radial-gradient(rgba(139, 111, 71, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}

.closing-inner h2 {
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  color: var(--wood-deep);
  margin: 0 0 22px;
  letter-spacing: 0.1em;
}

.closing-inner p {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 2;
  margin: 0 0 14px;
}

.closing-inner p:last-child {
  margin-bottom: 0;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(139, 111, 71, 0.3);
}

.closing-inner .closing-end strong {
  color: var(--awn-red);
  font-weight: 700;
}

@media (max-width: 560px) {
  .closing-inner {
    padding: 36px 24px 30px;
  }
}

/* ─────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────── */

.footer {
  background: linear-gradient(180deg, #FCE7C4 0%, #F4D7A6 100%);
  padding: 46px 24px 36px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-jp);
  font-size: 14px;
  border-top: 3px dashed rgba(139, 111, 71, 0.35);
  position: relative;
}

.lanterns-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: -70px 0 24px;
  position: relative;
}

.lanterns-row span {
  width: 16px;
  height: 20px;
  background: #D9402C;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 -3px 0 -1px var(--wood-deep),
    inset 0 -3px 0 rgba(0,0,0,0.18);
  animation: sway 3.4s ease-in-out infinite;
}
.lanterns-row span:nth-child(odd) { animation-delay: -1.2s; }
.lanterns-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  border-top: 1.5px solid var(--wood-deep);
  opacity: 0.6;
}

.footer .heart { color: #D9402C; }

.footer .links {
  margin-top: 8px;
  font-size: 13px;
}

.footer .links a {
  color: var(--wood-deep);
  text-decoration: none;
  border-bottom: 1px dotted rgba(92, 58, 36, 0.4);
  padding: 0 4px;
}

.footer .links a:hover { color: var(--awn-red); }

.footer .site-links {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.85;
}

.footer .site-links a {
  color: var(--wood-deep);
  border-bottom: 1px dotted rgba(92, 58, 36, 0.4);
  padding: 0 4px;
}

.footer .site-links a:hover { color: var(--awn-red); }

/* ─────────────────────────────────────────────────────
   子頁（about / privacy）共用樣式
   ───────────────────────────────────────────────────── */

body.subpage {
  background:
    radial-gradient(800px 360px at 50% -120px, #FFEED7 0%, transparent 70%),
    repeating-linear-gradient(45deg, #FFF6E9 0 20px, #FCF0DD 20px 40px);
}

.mini-header {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top) 0%, #F8E5C9 70%, var(--cream) 100%);
  padding: 22px 24px 28px;
  text-align: center;
  border-bottom: 3px dashed rgba(139, 111, 71, 0.35);
}

.mini-header .home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 22px;
  color: var(--wood-deep);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 #FFF8E7;
}

.mini-header .lantern-icon {
  display: inline-block;
  width: 18px;
  height: 22px;
  background: #D9402C;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 -3px 0 -1px var(--wood-deep),
    inset 0 -3px 0 rgba(0,0,0,0.18);
  animation: sway 3.4s ease-in-out infinite;
  transform-origin: 50% -8px;
}
.mini-header .lantern-icon::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.3);
}

.mini-nav {
  margin-top: 12px;
  font-family: var(--font-jp);
  font-size: 14px;
}

.mini-nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 4px 8px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.mini-nav a:hover { color: var(--awn-red); }

.mini-nav a[aria-current="page"] {
  color: var(--awn-red);
  border-bottom-color: var(--awn-red);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-content .page-title {
  font-family: var(--font-jp);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  color: var(--wood-deep);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 #FFF8E7;
}

.page-content .page-sub {
  text-align: center;
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 44px;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

.page-content section {
  background: var(--paper);
  border: 2px solid rgba(139, 111, 71, 0.45);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  background-image:
    radial-gradient(rgba(139, 111, 71, 0.05) 1px, transparent 1px);
  background-size: 12px 12px;
}

.page-content h2 {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 900;
  color: var(--wood-deep);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px dotted rgba(139, 111, 71, 0.4);
  letter-spacing: 0.05em;
}

.page-content p,
.page-content li {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
}

.page-content p { margin: 0 0 12px; }
.page-content p:last-child { margin-bottom: 0; }

.page-content ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.page-content li { margin-bottom: 8px; }

.page-content strong {
  color: var(--wood-deep);
  font-weight: 700;
}

.page-content a {
  color: var(--awn-red);
  border-bottom: 1px dashed rgba(178, 47, 31, 0.45);
  padding-bottom: 1px;
  transition: color 0.18s;
}

.page-content a:hover { color: #8B1F12; }

.page-content .contact-mail {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
}

.page-content .hint {
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
  font-style: italic;
}

.page-content .about-list {
  list-style: none;
  padding: 0;
}

.page-content .about-list li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--cream);
  border-left: 4px solid var(--awn-red);
  border-radius: 6px;
}

.page-content .about-list strong {
  display: inline-block;
  margin-right: 8px;
  font-size: 16px;
}

/* ─────────────────────────────────────────────────────
   響應式
   ───────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { min-height: 620px; }
  .scene { width: 1000px; }
}

@media (max-width: 640px) {
  .hero { min-height: 560px; padding-bottom: 30px; }
  .scene { width: 800px; }
  .hero-text { padding-top: 36px; padding-left: 16px; padding-right: 16px; }
  .kana { font-size: 13px; letter-spacing: 0.22em; word-break: keep-all; overflow-wrap: anywhere; }
  .stalls { padding: 60px 18px 24px; }
  .stall-grid { gap: 30px 18px; }
  .scroll-inner { padding: 32px 22px 26px; }
}

@media (max-width: 420px) {
  .scene { width: 660px; }
  .sun { width: 80px; height: 80px; }
  .kana { font-size: 12px; letter-spacing: 0.12em; }
  .hero-text h1 { letter-spacing: 0.02em; }
}

/* ─────────────────────────────────────────────────────
   無障礙：skip link（鍵盤族 / 螢幕閱讀器）
   ───────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--wood-deep);
  color: #FFF8E7;
  padding: 8px 16px;
  border-radius: 0 0 10px 10px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--awn-red);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────
   sticky 頂部小燈籠導覽
   ───────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 246, 233, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1.5px dashed rgba(139, 111, 71, 0.22);
  font-family: var(--font-jp);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(255, 246, 233, 0.94);
  box-shadow: 0 6px 18px -10px rgba(58, 43, 34, 0.28);
  border-bottom-color: rgba(139, 111, 71, 0.35);
}

.site-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 16px;
  color: var(--wood-deep);
  letter-spacing: 0.08em;
  padding: 4px 6px;
  border-radius: 8px;
}

.site-nav-brand:hover { color: var(--awn-red); }

.site-nav-lantern {
  display: inline-block;
  width: 12px;
  height: 16px;
  background: #D9402C;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 -2px 0 -1px var(--wood-deep),
    inset 0 -2px 0 rgba(0,0,0,0.18);
  animation: sway 3.4s ease-in-out infinite;
  transform-origin: 50% -6px;
}

.site-nav-lantern::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.3);
}

.site-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav-links a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  letter-spacing: 0.05em;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: var(--awn-red);
  background: rgba(193, 62, 62, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.site-nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(139, 111, 71, 0.3);
  margin: 0 6px;
}

@media (max-width: 720px) {
  .site-nav-inner { padding: 8px 14px; gap: 10px; }
  .site-nav-brand { font-size: 14px; letter-spacing: 0.06em; gap: 8px; }
  .site-nav-links { gap: 0; }
  .site-nav-links a { padding: 5px 9px; font-size: 13px; }
  .site-nav-divider { margin: 0 3px; }
}

@media (max-width: 480px) {
  .site-nav-links li.anchor-link { display: none; }
  .site-nav-divider { display: none; }
  .site-nav-inner { padding: 7px 12px; }
}

/* ─────────────────────────────────────────────────────
   節區分隔小裝飾（海浪虛線 + 圓點）
   ───────────────────────────────────────────────────── */

.section-head h2 {
  position: relative;
}

/* 場景之間的小貝殼裝飾分隔（純 CSS） */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px auto;
  max-width: 320px;
  color: rgba(139, 111, 71, 0.4);
  user-select: none;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1.5px dashed currentColor;
}

.section-divider .dot-emoji {
  font-size: 14px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5));
}

/* ─────────────────────────────────────────────────────
   Scroll reveal（節區整體 + 細項漸入）
   ───────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1.1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 子項錯落（卡片群） */
.reveal.is-visible > * { animation: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.7,.3,1.1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.45s; }

/* ─────────────────────────────────────────────────────
   通用 focus polish（鍵盤族友善）
   ───────────────────────────────────────────────────── */

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid rgba(193, 62, 62, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 攤位卡片需要更包覆的 focus */
.stall a:focus-visible {
  outline-offset: 6px;
  outline-style: dashed;
}

/* ─────────────────────────────────────────────────────
   回頂部小燈籠（右下浮動）
   ───────────────────────────────────────────────────── */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px 12px;
  background: rgba(255, 251, 241, 0.92);
  border: 1.5px solid var(--wood);
  border-radius: 18px;
  box-shadow:
    0 8px 22px -10px rgba(58, 43, 34, 0.35),
    inset 0 -3px 0 rgba(139, 111, 71, 0.08);
  font-family: var(--font-jp);
  color: var(--wood-deep);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.18s ease;
}

.back-to-top[hidden] { display: none; }
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow:
    0 14px 26px -10px rgba(58, 43, 34, 0.4),
    inset 0 -3px 0 rgba(139, 111, 71, 0.1);
}

.back-to-top-lantern {
  display: inline-block;
  width: 16px;
  height: 20px;
  background: #D9402C;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 -3px 0 -1px var(--wood-deep),
    inset 0 -3px 0 rgba(0,0,0,0.2);
  animation: sway 2.8s ease-in-out infinite;
  transform-origin: 50% -8px;
}

.back-to-top-lantern::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
}

.back-to-top-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 8px 11px 10px;
  }
  .back-to-top-lantern { width: 13px; height: 17px; }
  .back-to-top-label { font-size: 9.5px; }
}

/* 子頁 mini-header 也吸頂（與首頁 site-nav 同行為） */
body.subpage .mini-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(255, 226, 200, 0.95) 0%, rgba(248, 229, 201, 0.9) 70%, rgba(255, 246, 233, 0.92) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ─────────────────────────────────────────────────────
   無障礙：尊重 reduce motion
   ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  /* 防止 reveal 因為 transition 被吃掉而永遠停在隱形狀態 */
  .reveal,
  .reveal-stagger,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
