/* ==========================================================================
   桃子兔有限公司 THAO RABBIT CO., LTD. — 官方網站樣式
   設計語彙：日式動畫可愛風（圓角、貼紙描邊、柔和漸層、彈跳動態）
   ========================================================================== */

/* ---------- 設計變數（白天主題） ---------- */
:root {
  --bg: #FFF7F2;
  --bg-2: #FFEFF4;
  --bg-3: #F3F0FF;
  --surface: #FFFFFF;
  --surface-2: #FFF9F7;
  --ink: #4A2C40;
  --ink-2: #7B5D70;
  --ink-3: #A88C9C;
  --line: #F6DCE5;
  --line-2: #EFD0DB;
  --outline: #5A3550;

  --pink: #FF8FAB;
  --pink-500: #F7739A;
  --pink-600: #EC5687;
  --accent-text: #C2335F;
  --peach: #FFB59E;
  --peach-soft: #FFE8DF;
  --mint: #8EDDBE;
  --mint-600: #2E9E73;
  --mint-soft: #E2F8EF;
  --sky: #8FD3FF;
  --sky-600: #2F86C8;
  --sky-soft: #E4F4FF;
  --lav: #C3B1FF;
  --lav-600: #7358D8;
  --lav-soft: #EFE9FF;
  --lemon: #FFE07A;
  --lemon-soft: #FFF6D6;

  --grad-hero: linear-gradient(135deg, #FFE3EA 0%, #FFEBDD 35%, #EFE6FF 70%, #DDF1FF 100%);
  --grad-pink: linear-gradient(135deg, #FF9DB8 0%, #EC5687 100%);
  --grad-rainbow: linear-gradient(90deg, #FF8FAB, #FFB59E, #FFE07A, #8EDDBE, #8FD3FF, #C3B1FF);

  --radius-s: 14px;
  --radius: 24px;
  --radius-l: 36px;
  --shadow: 0 12px 34px rgba(201, 107, 145, 0.16);
  --shadow-s: 0 6px 18px rgba(201, 107, 145, 0.12);
  --pop: 0 6px 0 rgba(90, 53, 80, 0.12);
  --pop-pink: 0 6px 0 #C93D6F;

  --font-body: "Huninn", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  --font-display: "Fredoka", "Huninn", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  color-scheme: light;
}

/* ---------- 星空主題 ---------- */
html[data-theme="night"] {
  --bg: #1A1430;
  --bg-2: #211938;
  --bg-3: #1F1A3D;
  --surface: #2A2046;
  --surface-2: #30264F;
  --ink: #FFF0F6;
  --ink-2: #D3C2DE;
  --ink-3: #A08DB3;
  --line: #43355F;
  --line-2: #514170;
  --accent-text: #FF9DBA;
  --peach-soft: #3A2B4A;
  --mint-soft: #213B3F;
  --sky-soft: #1F3150;
  --lav-soft: #2E2758;
  --lemon-soft: #3B3446;
  --grad-hero: linear-gradient(135deg, #2B1F4F 0%, #3B2357 40%, #1F2A55 100%);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  --shadow-s: 0 6px 18px rgba(0, 0, 0, 0.3);
  --pop: 0 6px 0 rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 143, 171, 0.14) 1.6px, transparent 1.8px);
  background-size: 26px 26px;
  overflow-x: hidden;
  transition: background-color 0.5s, color 0.5s;
}
html[data-theme="night"] body {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.4px),
    radial-gradient(rgba(195, 177, 255, 0.35) 1px, transparent 1.4px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 40px 60px;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0 0 0.5em; letter-spacing: 0.02em; font-synthesis-weight: none; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
::selection { background: #FFC2D3; color: #4A2C40; }
:focus-visible { outline: 3px dashed var(--pink-600); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
.en { font-family: "Fredoka", sans-serif; letter-spacing: 0.04em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container-s { width: min(920px, 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-tint { background: var(--bg-2); }
.section-lav { background: var(--bg-3); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 區塊標題 ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.sec-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); background: var(--surface); border: 2px solid var(--line-2);
  padding: 4px 16px 4px 12px; border-radius: 999px; margin-bottom: 16px; box-shadow: var(--shadow-s);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-pink); box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.25); }
.sec-head h2 .hl, .hl {
  background: linear-gradient(transparent 62%, rgba(255, 196, 120, 0.55) 62%);
  padding: 0 4px; border-radius: 4px;
}
html[data-theme="night"] .hl { background: linear-gradient(transparent 62%, rgba(255, 143, 171, 0.35) 62%); }
.sec-head .sub-en { display: block; font-family: "Fredoka", sans-serif; color: var(--ink-3); font-size: 1rem; letter-spacing: 0.08em; margin-top: -4px; margin-bottom: 12px; }
.sec-head p { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- 按鈕 ---------- */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink); --b-shadow: rgba(90, 53, 80, 0.14);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; min-height: 50px; border-radius: 999px; border: 3px solid var(--outline);
  background: var(--b-bg); color: var(--b-ink); font-weight: 400; font-size: 1.02rem; line-height: 1.2;
  box-shadow: 0 5px 0 var(--outline); cursor: pointer; text-decoration: none !important;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.2s, background 0.3s;
  position: relative; white-space: nowrap; font-family: var(--font-display);
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--outline); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--outline); }
.btn-primary { --b-bg: linear-gradient(135deg, #FF9DB8, #EC5687); --b-ink: #fff; background: linear-gradient(135deg, #FF9DB8, #EC5687); text-shadow: 0 1px 0 rgba(120, 20, 60, 0.35); }
.btn-mint { background: var(--mint); --b-ink: #24473A; color: #24473A; }
.btn-lemon { background: var(--lemon); color: #5A4100; }
.btn-sky { background: var(--sky); color: #133A57; }
.btn-ghost { background: var(--surface); color: var(--ink); }
html[data-theme="night"] .btn { border-color: #FFD1E0; box-shadow: 0 5px 0 #0E0A1C; }
html[data-theme="night"] .btn-ghost { background: var(--surface-2); }
.btn-s { padding: 8px 18px; min-height: 40px; font-size: 0.92rem; border-width: 2.5px; box-shadow: 0 4px 0 var(--outline); }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--accent-text); }
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease-bounce); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- 標籤 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  font-size: 0.8rem; background: var(--peach-soft); color: var(--accent-text); border: 2px solid transparent; line-height: 1.6;
}
.tag-mint { background: var(--mint-soft); color: var(--mint-600); }
.tag-sky { background: var(--sky-soft); color: var(--sky-600); }
.tag-lav { background: var(--lav-soft); color: var(--lav-600); }
.tag-gold { background: linear-gradient(135deg, #FFF2B8, #FFD36B); color: #7A5200; border-color: #F2B533; }
html[data-theme="night"] .tag-mint { color: #8EDDBE; }
html[data-theme="night"] .tag-sky { color: #8FD3FF; }
html[data-theme="night"] .tag-lav { color: #C3B1FF; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-s); position: relative;
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.3s, border-color 0.3s;
}
.card.hoverable:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--pink); }
.card h3 { margin-bottom: 6px; }
.card .en-title { display: block; font-family: "Fredoka", sans-serif; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.icon-bubble {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 18px;
  border: 3px solid var(--outline); box-shadow: 0 5px 0 var(--outline); transform: rotate(-6deg);
  transition: transform 0.5s var(--ease-bounce);
}
.card:hover .icon-bubble { transform: rotate(6deg) scale(1.08); }
.icon-bubble svg { width: 36px; height: 36px; }
.bg-pink { background: #FFD3DF; } .bg-mint { background: #C9F1E1; } .bg-sky { background: #CDEBFF; } .bg-lav { background: #E2D9FF; } .bg-lemon { background: #FFF0B3; } .bg-peach { background: #FFDCCF; }
html[data-theme="night"] .icon-bubble { border-color: #FFD1E0; box-shadow: 0 5px 0 #0E0A1C; }

/* ==========================================================================
   Header / 導覽列
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0;
  transition: padding 0.3s, transform 0.4s var(--ease-out);
}
.site-header .bar {
  display: flex; align-items: center; gap: 12px; width: min(1280px, 100% - 28px); margin-inline: auto;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 3px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: var(--shadow-s);
  transition: box-shadow 0.3s, background 0.4s;
}
html[data-theme="night"] .site-header .bar { background: rgba(42, 32, 70, 0.82); }
.site-header.scrolled { padding: 8px 0; }
.site-header.scrolled .bar { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.brand-logo { width: 46px; height: 46px; transition: transform 0.6s var(--ease-bounce); }
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.06em; }
.brand-text small { font-family: "Fredoka", sans-serif; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--accent-text); font-weight: 600; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 7px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.98rem; position: relative; transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-bounce);
}
.nav a small { font-family: "Fredoka", sans-serif; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.nav a:hover { background: var(--peach-soft); transform: translateY(-2px); }
.nav a[aria-current="page"] { background: var(--grad-pink); color: #fff; }
.nav a[aria-current="page"] small { color: rgba(255, 255, 255, 0.85); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--line-2);
  background: var(--surface); cursor: pointer; position: relative; transition: transform 0.35s var(--ease-bounce), background 0.3s;
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.08); background: var(--peach-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--pink-600); color: #fff; font-size: 0.72rem; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 600;
  border: 2px solid var(--surface); transform: scale(0); transition: transform 0.35s var(--ease-bounce);
}
.icon-btn .count.on { transform: scale(1); }
.icon-btn .count.bump { animation: bump 0.5s var(--ease-bounce); }
@keyframes bump { 50% { transform: scale(1.5); } }
.theme-toggle .sun, html[data-theme="night"] .theme-toggle .moon { display: block; }
.theme-toggle .moon, html[data-theme="night"] .theme-toggle .sun { display: none; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 20px; height: 3px; border-radius: 3px; background: var(--ink); position: relative; transition: transform 0.3s, background 0.3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform 0.3s var(--ease-bounce); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.header-cta { margin-left: 4px; }

@media (max-width: 1180px) {
  .nav a { padding: 7px 9px; font-size: 0.93rem; }
  .header-cta { display: none; }
}
@media (max-width: 1040px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; background: var(--bg);
    background-image: radial-gradient(rgba(255, 143, 171, 0.2) 1.6px, transparent 1.8px); background-size: 22px 22px;
    display: flex; align-items: center; justify-content: center; padding: 110px 24px 40px;
    clip-path: circle(0% at calc(100% - 50px) 44px); transition: clip-path 0.65s var(--ease-out); visibility: hidden;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 50px) 44px); visibility: visible; }
  .nav ul { flex-direction: column; gap: 10px; width: min(420px, 100%); }
  .nav li { opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.5s var(--ease-bounce); }
  .menu-open .nav li { opacity: 1; transform: none; }
  .menu-open .nav li:nth-child(2) { transition-delay: 0.04s; } .menu-open .nav li:nth-child(3) { transition-delay: 0.08s; }
  .menu-open .nav li:nth-child(4) { transition-delay: 0.12s; } .menu-open .nav li:nth-child(5) { transition-delay: 0.16s; }
  .menu-open .nav li:nth-child(6) { transition-delay: 0.2s; } .menu-open .nav li:nth-child(7) { transition-delay: 0.24s; }
  .menu-open .nav li:nth-child(8) { transition-delay: 0.28s; } .menu-open .nav li:nth-child(9) { transition-delay: 0.32s; }
  .nav a { flex-direction: row; justify-content: space-between; font-size: 1.2rem; padding: 14px 24px; background: var(--surface); border: 3px solid var(--line); }
  .nav a small { font-size: 0.75rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .site-header .bar { padding-left: 12px; }
  .header-actions { gap: 5px; }
  .icon-btn { width: 40px; height: 40px; }
}

/* 捲動進度條 */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-rainbow); }

/* ==========================================================================
   載入畫面
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--bg);
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-bunny { width: 120px; margin: 0 auto; animation: hop 0.7s ease-in-out infinite alternate; }
.loader-shadow { width: 80px; height: 12px; border-radius: 50%; background: rgba(90, 53, 80, 0.15); margin: 6px auto 16px; animation: shadow 0.7s ease-in-out infinite alternate; }
.loader-text { font-family: "Fredoka", sans-serif; letter-spacing: 0.3em; color: var(--accent-text); font-weight: 600; }
.loader-text span { display: inline-block; animation: wave 1.2s ease-in-out infinite; }
@keyframes hop { from { transform: translateY(0) scale(1.04, 0.96); } to { transform: translateY(-36px) scale(0.97, 1.03); } }
@keyframes shadow { from { transform: scale(1); opacity: 1; } to { transform: scale(0.6); opacity: 0.5; } }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

/* ==========================================================================
   Hero（首頁）
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: var(--grad-hero); padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 2.5px solid var(--line-2);
  border-radius: 999px; padding: 6px 16px 6px 8px; font-size: 0.9rem; box-shadow: var(--shadow-s); margin-bottom: 22px;
}
.hero-badge b { white-space: nowrap; background: var(--grad-pink); color: #fff; border-radius: 999px; padding: 2px 10px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .line { display: block; }
.hero h1 .pop { color: var(--accent-text); position: relative; display: inline-block; }
.hero h1 .pop::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.3em; z-index: -1; border-radius: 99px;
  background: rgba(255, 224, 122, 0.8); transform: scaleX(0); transform-origin: left; animation: underline 1s 0.9s var(--ease-out) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead-en { font-family: "Fredoka", sans-serif; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--ink-2); letter-spacing: 0.04em; margin-bottom: 10px; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.typing { color: var(--accent-text); border-right: 3px solid var(--pink); padding-right: 4px; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts span {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.7); border: 2px solid var(--line);
  border-radius: 14px; padding: 6px 12px; font-size: 0.86rem; color: var(--ink-2);
}
html[data-theme="night"] .hero-facts span { background: rgba(42, 32, 70, 0.7); }

.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.hero-stage .halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%); animation: breathe 5s ease-in-out infinite; }
html[data-theme="night"] .hero-stage .halo { background: radial-gradient(circle, rgba(195, 177, 255, 0.45) 0%, rgba(195, 177, 255, 0) 70%); }
.hero-stage .ring { position: absolute; inset: 4%; border: 3px dashed rgba(236, 86, 135, 0.35); border-radius: 50%; animation: spin 40s linear infinite; }
.hero-stage .ring.r2 { inset: 16%; border-color: rgba(115, 88, 216, 0.25); animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
.mascot {
  position: absolute; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -52%); cursor: pointer; z-index: 3;
  filter: drop-shadow(0 18px 24px rgba(201, 107, 145, 0.3)); -webkit-tap-highlight-color: transparent;
}
.mascot .fm, .mascot img { width: 100%; height: auto; animation: float 4s ease-in-out infinite; }
.mascot.jump .fm, .mascot.jump img { animation: jump 0.8s var(--ease-bounce); }
.mascot .fm-look { transition: transform 0.15s ease-out; }
@keyframes float { 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes jump { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(6px) scale(1.12, 0.88); } 55% { transform: translateY(-60px) scale(0.92, 1.1) rotate(-6deg); } 80% { transform: translateY(0) scale(1.08, 0.92); } 100% { transform: none; } }
.speech {
  position: absolute; z-index: 4; top: 2%; right: -2%; max-width: 230px; background: var(--surface); border: 3px solid var(--outline);
  padding: 10px 16px; border-radius: 22px 22px 22px 6px; font-size: 0.95rem; box-shadow: 0 5px 0 var(--outline);
  transform-origin: 0 100%; transform: scale(0); transition: transform 0.45s var(--ease-bounce);
}
.speech.show { transform: scale(1); }
html[data-theme="night"] .speech { border-color: #FFD1E0; box-shadow: 0 5px 0 #0E0A1C; }
.orbit-fig { position: absolute; width: 24%; z-index: 2; filter: drop-shadow(0 10px 12px rgba(90, 53, 80, 0.18)); transition: transform 0.5s var(--ease-bounce); }
.orbit-fig img { width: 100%; animation: float 5s ease-in-out infinite; }
.orbit-fig:hover { transform: scale(1.15) rotate(-8deg); }
.orbit-fig.o1 { left: -2%; top: 10%; } .orbit-fig.o1 img { animation-delay: -1s; }
.orbit-fig.o2 { right: -4%; top: 40%; width: 22%; } .orbit-fig.o2 img { animation-delay: -2.5s; }
.orbit-fig.o3 { left: 4%; bottom: 2%; width: 21%; } .orbit-fig.o3 img { animation-delay: -3.5s; }
.float-deco { position: absolute; z-index: 1; pointer-events: none; }
.float-deco.star { width: 34px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(0.6) rotate(45deg); opacity: 0.5; } }
.cloud { position: absolute; z-index: 1; opacity: 0.9; pointer-events: none; animation: drift 26s linear infinite; }
@keyframes drift { from { transform: translateX(-10vw); } to { transform: translateX(110vw); } }
.scroll-hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: "Fredoka", sans-serif; font-size: 0.75rem; letter-spacing: 0.2em; color: var(--ink-2); }
.scroll-hint i { width: 26px; height: 42px; border: 3px solid var(--ink-2); border-radius: 20px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 6px; height: 8px; margin-left: -3px; border-radius: 3px; background: var(--pink-600); animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes scrolldot { 60% { transform: translateY(12px); opacity: 0; } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row, .hero-facts { justify-content: center; }
  .hero-stage { max-width: 420px; }
  .scroll-hint { display: none; }
}

/* 波浪分隔 */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 100px); z-index: 2; color: var(--bg); pointer-events: none; }
.wave.top { top: -1px; bottom: auto; transform: rotate(180deg); }
.wave.to-tint { color: var(--bg-2); } .wave.to-lav { color: var(--bg-3); }

/* ---------- 跑馬燈 ---------- */
.marquee { overflow: hidden; background: var(--ink); color: #FFEFF5; padding: 14px 0; transform: rotate(-1.6deg); margin: -10px -20px 0; position: relative; z-index: 3; border-block: 3px solid var(--pink); }
html[data-theme="night"] .marquee { background: #FF8FAB; color: #2A1A33; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: 1.15rem; padding-inline: 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 22px; }
.marquee span::after { content: "✦"; color: var(--lemon); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   內頁 Hero
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: var(--grad-hero); padding: calc(var(--header-h) + 60px) 0 clamp(110px, 12vw, 150px); }
.page-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 8px; }
.page-hero .h1-en { font-family: "Fredoka", sans-serif; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--accent-text); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; display: block; }
.page-hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 640px; }
.page-hero .figs { position: relative; height: 280px; }
.page-hero .figs img { position: absolute; width: 180px; filter: drop-shadow(0 12px 16px rgba(90, 53, 80, 0.2)); animation: float 4.5s ease-in-out infinite; }
.page-hero .figs img:nth-child(1) { right: 26%; top: 0; z-index: 2; }
.page-hero .figs img:nth-child(2) { right: 0; top: 70px; width: 150px; animation-delay: -1.5s; }
.page-hero .figs img:nth-child(3) { right: 52%; top: 96px; width: 140px; animation-delay: -3s; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.88rem; color: var(--ink-2); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }
@media (max-width: 860px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .figs { height: 200px; max-width: 420px; }
  .page-hero .figs img { width: 130px; } .page-hero .figs img:nth-child(2), .page-hero .figs img:nth-child(3) { width: 110px; }
  .page-hero .figs img:nth-child(1) { right: 34%; } .page-hero .figs img:nth-child(3) { right: 66%; top: 70px; }
}

/* ==========================================================================
   首頁區塊
   ========================================================================== */
/* 服務卡 */
.service-card { overflow: hidden; }
.service-card .num { position: absolute; top: 14px; right: 20px; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 3rem; color: var(--line); line-height: 1; transition: color 0.3s; }
.service-card:hover .num { color: var(--pink); }
.service-card ul { padding-left: 1.1em; margin: 10px 0 0; color: var(--ink-2); font-size: 0.95rem; }

/* 系列展示卡 */
.series-card {
  --c: var(--pink); --soft: #FFE6EC;
  border-radius: var(--radius-l); background: var(--surface); border: 3px solid var(--line); overflow: hidden; position: relative;
  display: flex; flex-direction: column; transition: transform 0.45s var(--ease-bounce), box-shadow 0.3s; text-decoration: none !important; color: var(--ink);
}
.series-card:hover { transform: translateY(-10px) rotate(-0.6deg); box-shadow: var(--shadow); }
.series-card .stage { position: relative; height: 230px; background: var(--soft); overflow: hidden; }
html[data-theme="night"] .series-card .stage { background: color-mix(in srgb, var(--soft) 18%, var(--surface-2)); }
.series-card .stage::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 100%; border-radius: 50%; background: var(--c); opacity: 0.25; }
.series-card .stage img { position: absolute; bottom: -6px; width: 46%; transition: transform 0.5s var(--ease-bounce); filter: drop-shadow(0 8px 10px rgba(90, 53, 80, 0.15)); }
.series-card .stage img:nth-child(1) { left: 27%; z-index: 2; }
.series-card .stage img:nth-child(2) { left: -4%; width: 38%; bottom: -12px; }
.series-card .stage img:nth-child(3) { right: -4%; width: 38%; bottom: -12px; }
.series-card:hover .stage img:nth-child(1) { transform: translateY(-14px) scale(1.06); }
.series-card:hover .stage img:nth-child(2) { transform: translateX(-6px) rotate(-8deg); }
.series-card:hover .stage img:nth-child(3) { transform: translateX(6px) rotate(8deg); }
.series-card .body { padding: 22px 24px 26px; }
.series-card .body .en { color: var(--c); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.series-card .body h3 { margin: 4px 0 6px; }
.series-card .body p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }

/* 盲盒預告 */
.teaser { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; text-align: center; } .teaser .btn-row { justify-content: center; } }

/* 3D 盲盒 */
.mystery-box { --box: #FF9DB8; --box-d: #EC5687; --lid: #FFB8CB; width: 230px; height: 230px; margin: 40px auto 20px; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mystery-box .box-body {
  position: absolute; inset: 70px 10px 0; border-radius: 20px; background: linear-gradient(135deg, var(--box), var(--box-d));
  border: 4px solid var(--outline); box-shadow: inset -14px -10px 0 rgba(0, 0, 0, 0.08), 0 10px 0 var(--outline); overflow: hidden;
}
.mystery-box .box-body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 34px; margin-left: -17px; background: rgba(255, 255, 255, 0.55); }
.mystery-box .box-body .q { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 4.4rem; color: #fff; text-shadow: 0 4px 0 rgba(90, 53, 80, 0.35); z-index: 1; }
.mystery-box .box-lid {
  position: absolute; left: 0; right: 0; top: 40px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--lid), var(--box));
  border: 4px solid var(--outline); z-index: 3; transform-origin: 85% 100%; transition: transform 0.6s var(--ease-bounce);
}
.mystery-box .box-lid::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 34px; margin-left: -17px; background: rgba(255, 255, 255, 0.55); }
.mystery-box .bow { position: absolute; left: 50%; top: -34px; width: 80px; margin-left: -40px; z-index: 4; }
.mystery-box:hover .box-lid { transform: translateY(-6px) rotate(-3deg); }
.mystery-box.shake { animation: shake 0.9s ease-in-out; }
.mystery-box.open .box-lid { transform: translate(60px, -120px) rotate(35deg); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.6s 0.2s; }
@keyframes shake {
  0%, 100% { transform: rotate(0); } 10% { transform: rotate(-8deg) translateY(-4px); } 20% { transform: rotate(8deg); } 30% { transform: rotate(-10deg) translateY(-8px); }
  40% { transform: rotate(10deg); } 50% { transform: rotate(-6deg) translateY(-4px); } 60% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } 80% { transform: rotate(3deg); }
}
.box-rays { position: absolute; left: 50%; top: 40%; width: 420px; height: 420px; margin: -210px 0 0 -210px; z-index: 0; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 224, 122, 0.55) 0deg 10deg, transparent 10deg 20deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); }
.mystery-box.open .box-rays { opacity: 1; animation: spin 8s linear infinite; transition: opacity 0.5s; }

/* AI 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: flow; }
.flow::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 4px; background: repeating-linear-gradient(90deg, var(--pink) 0 14px, transparent 14px 26px); z-index: 0; }
.flow-step { position: relative; z-index: 1; text-align: center; }
.flow-step .dot {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  border: 3px solid var(--outline); box-shadow: 0 6px 0 var(--outline); font-size: 2rem; position: relative; transition: transform 0.5s var(--ease-bounce);
}
.flow-step:hover .dot { transform: translateY(-8px) rotate(-8deg); }
.flow-step .dot svg { width: 44px; height: 44px; }
.flow-step .dot::after { counter-increment: flow; content: counter(flow); position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--pink-600); color: #fff; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.95rem; display: grid; place-items: center; border: 3px solid var(--surface); }
.flow-step h3 { font-size: 1.08rem; margin-bottom: 4px; }
.flow-step p { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
.flow-step .ai-chip { display: inline-block; margin-top: 8px; font-size: 0.72rem; font-family: "Fredoka", sans-serif; font-weight: 600; letter-spacing: 0.06em; padding: 2px 10px; border-radius: 99px; background: var(--lav-soft); color: var(--lav-600); }
html[data-theme="night"] .flow-step .dot { border-color: #FFD1E0; box-shadow: 0 6px 0 #0E0A1C; }
html[data-theme="night"] .flow-step .ai-chip { color: var(--lav); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow::before { top: 0; bottom: 0; left: 45px; right: auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--pink) 0 14px, transparent 14px 26px); }
  .flow-step { display: grid; grid-template-columns: 92px 1fr; gap: 18px; text-align: left; align-items: center; }
  .flow-step .dot { margin: 0; }
}

/* 一覽 At a glance */
.glance { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch; }
.glance .en-card { background: var(--ink); color: #FFEFF5; border-color: var(--ink); }
.glance .en-card h3 { color: #fff; font-family: "Fredoka", sans-serif; }
.glance .en-card p { color: #F1DCE6; font-family: "Fredoka", var(--font-body); font-size: 1.02rem; line-height: 1.75; }
.glance .en-card a { color: #FFC2D3; }
html[data-theme="night"] .glance .en-card { background: #110C22; border-color: var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { background: var(--surface); border: 3px solid var(--line); border-radius: 20px; padding: 18px; position: relative; overflow: hidden; }
.fact b { display: block; font-family: "Fredoka", var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--accent-text); line-height: 1.2; font-weight: 600; }
.fact span { color: var(--ink-2); font-size: 0.88rem; }
.fact::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--peach-soft); }
@media (max-width: 860px) { .glance { grid-template-columns: 1fr; } }

/* 新聞卡 */
.news-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none !important; }
.news-card time { font-family: "Fredoka", sans-serif; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.06em; }
.news-card h3 { font-size: 1.15rem; }
.news-card p { color: var(--ink-2); font-size: 0.94rem; }

/* CTA 帶 */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(36px, 6vw, 70px);
  background: linear-gradient(120deg, #FFB0C5 0%, #FFCFB8 45%, #D9CBFF 100%); border: 3px solid var(--outline); box-shadow: 0 10px 0 var(--outline);
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; color: #4A2C40;
}
html[data-theme="night"] .cta-band { background: linear-gradient(120deg, #5B3A78 0%, #7A3F6E 50%, #3F4C8A 100%); color: #FFF0F6; border-color: #FFD1E0; box-shadow: 0 10px 0 #0E0A1C; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-band .mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: "Fredoka", sans-serif; font-size: 1.15rem; font-weight: 600; color: inherit; background: rgba(255, 255, 255, 0.55); padding: 6px 16px; border-radius: 99px; }
html[data-theme="night"] .cta-band .mail { background: rgba(0, 0, 0, 0.2); }
.cta-band .bunny { position: absolute; right: 3%; bottom: -30px; width: 150px; opacity: 0.95; pointer-events: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .btn-row { justify-content: center; } .cta-band .bunny { display: none; } }

/* ==========================================================================
   關於我們
   ========================================================================== */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.story-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.story-visual .blob { position: absolute; inset: 0; border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; background: linear-gradient(135deg, #FFD3DF, #FFE8DF 50%, #E2D9FF); animation: morph 10s ease-in-out infinite; border: 3px solid var(--outline); }
html[data-theme="night"] .story-visual .blob { background: linear-gradient(135deg, #4A2F63, #5D3456 50%, #2F3B6E); border-color: #FFD1E0; }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: rotate(6deg); } }
.story-visual img { position: absolute; left: 50%; top: 50%; width: 72%; transform: translate(-50%, -52%); animation: float 4s ease-in-out infinite; }
.equation { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 26px; }
.equation .eq-item { background: var(--surface); border: 3px solid var(--line); border-radius: 18px; padding: 10px 18px; text-align: center; min-width: 110px; }
.equation .eq-item b { display: block; font-size: 1.5rem; font-family: var(--font-display); font-weight: 400; }
.equation .eq-item small { color: var(--ink-3); font-size: 0.8rem; }
.equation .op { font-family: "Fredoka", sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--pink-600); }
.equation .eq-item.result { background: var(--grad-pink); color: #fff; border-color: var(--outline); box-shadow: 0 5px 0 var(--outline); }
.equation .eq-item.result small { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.mvv .card { text-align: center; }
.mvv .card .icon-bubble { margin-inline: auto; }

.profile-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.profile-card img { width: 100%; }
.profile-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0 0; }
.profile-card dt { color: var(--ink-3); font-size: 0.9rem; }
.profile-card dd { margin: 0; }
@media (max-width: 640px) { .profile-card { grid-template-columns: 1fr; text-align: center; } .profile-card img { max-width: 200px; margin-inline: auto; } .profile-card dl { text-align: left; } }

/* 時間軸 */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: linear-gradient(var(--pink), var(--lav), var(--sky)); border-radius: 4px; }
.timeline li { position: relative; width: 50%; padding: 0 44px 40px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 44px; }
.timeline li::before {
  content: ""; position: absolute; top: 18px; right: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--pink-600); z-index: 1; box-shadow: 0 0 0 5px var(--bg);
}
.timeline li:nth-child(even)::before { left: -13px; right: auto; }
.timeline li.plan::before { border-style: dashed; border-color: var(--lav-600); }
.timeline li.now::before { background: var(--pink-600); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 5px rgba(236, 86, 135, 0.5); } 100% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 22px rgba(236, 86, 135, 0); } }
.timeline .card { padding: 20px 24px; }
.timeline time, .timeline .when { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--accent-text); letter-spacing: 0.06em; }
.timeline h3 { font-size: 1.15rem; margin: 4px 0; }
.timeline p { font-size: 0.94rem; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) {
  .timeline::before { left: 13px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 28px 46px; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 0; right: auto; }
}

/* 公司資料表 */
.info-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 2px dashed var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 30%; background: var(--surface-2); font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.info-table th small, .info-table td small { display: block; font-family: "Fredoka", sans-serif; color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.04em; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
@media (max-width: 600px) { .info-table th, .info-table td { display: block; width: 100%; } .info-table th { border-bottom: 0; padding-bottom: 4px; } .info-table td { padding-top: 0; } }
.scope-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.scope-list li { background: var(--surface); border: 2.5px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; }
.scope-list code { font-family: "Fredoka", monospace; font-size: 0.8rem; color: var(--lav-600); background: var(--lav-soft); padding: 1px 8px; border-radius: 8px; flex: none; }
html[data-theme="night"] .scope-list code { color: var(--lav); }

/* 團隊分工 */
.crew-card { text-align: center; }
.crew-card .avatar { width: 130px; height: 130px; margin: -8px auto 10px; border-radius: 50%; background: var(--peach-soft); border: 3px solid var(--line); overflow: hidden; display: grid; place-items: end center; }
.crew-card .avatar img { width: 108%; transform: translateY(14%); transition: transform 0.5s var(--ease-bounce); }
.crew-card:hover .avatar img { transform: translateY(6%) rotate(-6deg); }
.crew-card .ai-pair { margin-top: 12px; font-size: 0.84rem; color: var(--lav-600); background: var(--lav-soft); border-radius: 12px; padding: 6px 10px; }
html[data-theme="night"] .crew-card .ai-pair { color: var(--lav); }

/* ==========================================================================
   商品頁
   ========================================================================== */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2.5px solid var(--line-2); background: var(--surface); padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 0.95rem;
  transition: transform 0.3s var(--ease-bounce), background 0.25s, border-color 0.25s; color: var(--ink);
}
.chip:hover { transform: translateY(-2px); border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--grad-pink); color: #fff; border-color: var(--outline); box-shadow: 0 4px 0 var(--outline); }
.search { position: relative; }
.search input { padding-left: 44px; min-width: 260px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product {
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease-bounce), box-shadow 0.3s, border-color 0.3s, opacity 0.3s; transform-style: preserve-3d;
}
.product:hover { box-shadow: var(--shadow); border-color: var(--pink); }
.product.hide { display: none; }
.product .pic { position: relative; background: var(--soft, #FFE6EC); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; cursor: pointer; border: 0; padding: 0; width: 100%; }
html[data-theme="night"] .product .pic { background: color-mix(in srgb, var(--soft, #FFE6EC) 15%, var(--surface-2)); }
.product .pic::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
html[data-theme="night"] .product .pic::before { background: rgba(255, 255, 255, 0.08); }
.product .pic img { position: relative; width: 82%; transition: transform 0.5s var(--ease-bounce); }
.product:hover .pic img { transform: scale(1.08) rotate(-4deg) translateY(-6px); }
.product .pic .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.product .info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .info .series-name { font-size: 0.78rem; color: var(--ink-3); font-family: "Fredoka", var(--font-body); letter-spacing: 0.04em; }
.product .info h3 { font-size: 1.12rem; margin: 0; }
.product .info .en { font-size: 0.82rem; color: var(--ink-3); }
.product .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.product .actions .btn { flex: 1; padding: 6px 10px; min-height: 38px; font-size: 0.86rem; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.empty-state img { width: 140px; margin: 0 auto 10px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-item { text-align: center; padding: 22px 14px; }
.cat-item .icon-bubble { margin: 0 auto 12px; width: 60px; height: 60px; }
.cat-item h3 { margin: 0 0 2px; font-size: 1.02rem; }
.cat-item small { color: var(--ink-3); font-family: "Fredoka", sans-serif; }

/* ==========================================================================
   Modal / Drawer / Toast
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(60, 30, 50, 0.45); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }
.modal.open .backdrop { opacity: 1; }
.modal .dialog {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 3px solid var(--outline);
  border-radius: var(--radius-l); box-shadow: 0 12px 0 var(--outline); transform: scale(0.85) translateY(30px); opacity: 0; transition: transform 0.45s var(--ease-bounce), opacity 0.3s;
}
html[data-theme="night"] .modal .dialog { border-color: #FFD1E0; box-shadow: 0 12px 0 #0E0A1C; }
.modal.open .dialog { transform: none; opacity: 1; }
.modal .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd .pic { background: var(--soft, #FFE6EC); display: grid; place-items: center; padding: 30px; border-radius: 33px 0 0 33px; }
html[data-theme="night"] .pd .pic { background: color-mix(in srgb, var(--soft, #FFE6EC) 15%, var(--surface-2)); }
.pd .pic img { width: 100%; max-width: 320px; animation: float 4s ease-in-out infinite; }
.pd .txt { padding: 40px 34px 34px; }
.pd .spec { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; }
.pd .spec li { display: flex; gap: 12px; font-size: 0.94rem; border-bottom: 2px dashed var(--line); padding-bottom: 8px; }
.pd .spec li b { color: var(--ink-3); font-weight: 400; min-width: 76px; }
@media (max-width: 700px) { .pd { grid-template-columns: 1fr; } .pd .pic { border-radius: 33px 33px 0 0; padding: 20px; } .pd .pic img { max-width: 220px; } .pd .txt { padding: 24px; } }

.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .backdrop { position: absolute; inset: 0; background: rgba(60, 30, 50, 0.4); opacity: 0; transition: opacity 0.3s; }
.drawer.open .backdrop { opacity: 1; }
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); border-left: 3px solid var(--outline);
  transform: translateX(105%); transition: transform 0.5s var(--ease-out); display: flex; flex-direction: column;
}
.drawer.open .panel { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 3px dashed var(--line); }
.drawer header h2 { font-size: 1.4rem; margin: 0; }
.drawer .list { flex: 1; overflow: auto; padding: 16px 24px; display: grid; gap: 12px; align-content: start; }
.drawer .row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface-2); border: 2px solid var(--line); border-radius: 18px; padding: 8px 12px 8px 8px; }
.drawer .row img { width: 64px; height: 64px; background: var(--peach-soft); border-radius: 14px; }
.drawer .row b { display: block; font-weight: 400; }
.drawer .row small { color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; line-height: 1; }
.qty input { width: 44px; text-align: center; padding: 3px; border-radius: 10px; min-height: 0; }
.drawer footer { padding: 18px 24px 24px; border-top: 3px dashed var(--line); display: grid; gap: 10px; }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; z-index: 400; display: grid; gap: 10px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast {
  background: var(--ink); color: #FFF0F6; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.5s var(--ease-bounce), toastOut 0.4s 2.6s forwards; font-size: 0.95rem;
}
html[data-theme="night"] .toast { background: #FFF0F6; color: #2A1A33; }
@keyframes toastIn { from { transform: translateY(30px) scale(0.8); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* 回到頂部（跳跳兔） */
.to-top {
  visibility: hidden;
  position: fixed; right: 20px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--outline);
  background: var(--surface); box-shadow: 0 5px 0 var(--outline); cursor: pointer; display: grid; place-items: center; padding: 0;
  transform: translateY(120px); transition: transform 0.5s var(--ease-bounce);
}
.to-top.show { transform: none; visibility: visible; }
.to-top:hover { transform: translateY(-4px); }
.to-top img { width: 52px; margin-top: 8px; }
.to-top.launch { animation: launch 0.9s var(--ease-out) forwards; }
@keyframes launch { 30% { transform: translateY(8px) scale(1.1, 0.9); } 100% { transform: translateY(-110vh); } }
html[data-theme="night"] .to-top { border-color: #FFD1E0; box-shadow: 0 5px 0 #0E0A1C; }

/* 游標特效畫布 */
.fx-canvas { position: fixed; inset: 0; z-index: 250; pointer-events: none; }

/* ==========================================================================
   表單
   ========================================================================== */
.form { display: grid; gap: 18px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 0.95rem; color: var(--ink); }
.field label .req { color: var(--accent-text); margin-left: 2px; }
.field label small { color: var(--ink-3); font-family: "Fredoka", sans-serif; margin-left: 6px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface-2); border: 2.5px solid var(--line-2); border-radius: 16px;
  padding: 11px 16px; min-height: 48px; width: 100%; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink-600); box-shadow: 0 0 0 4px rgba(255, 143, 171, 0.25); background: var(--surface); }
input[type="range"] { padding: 0; min-height: 0; accent-color: var(--pink-600); background: transparent; border: 0; box-shadow: none; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--pink-600); }
.field .hint { font-size: 0.82rem; color: var(--ink-3); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E5484D; }
.field .err { font-size: 0.82rem; color: #D93F45; display: none; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.check input { margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--ink-3); background: var(--surface-2); border: 2px dashed var(--line-2); border-radius: 16px; padding: 12px 16px; }
.form-card { padding: clamp(24px, 4vw, 40px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 3px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: var(--pink); box-shadow: var(--shadow-s); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; position: relative; font-size: 1.05rem; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--accent-text); flex: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: grid; place-items: center; background: var(--peach-soft); color: var(--accent-text); font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; transition: transform 0.4s var(--ease-bounce); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 22px 20px 50px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   盲盒樂園
   ========================================================================== */
.bb-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .bb-layout { grid-template-columns: 1fr; } }
.bb-machine { text-align: center; position: relative; overflow: hidden; }
.bb-machine .stage { position: relative; height: 340px; display: grid; place-items: center; }
.bb-machine .mystery-box { margin: 0; z-index: 2; }
.bb-reveal { position: absolute; left: 50%; top: 50%; width: 250px; transform: translate(-50%, -40%) scale(0); z-index: 3; transition: transform 0.7s var(--ease-bounce); pointer-events: none; }
.bb-reveal.show { transform: translate(-50%, -56%) scale(1); }
.bb-reveal img { width: 100%; filter: drop-shadow(0 16px 18px rgba(90, 53, 80, 0.25)); }
.bb-result { min-height: 92px; }
.bb-result h3 { margin: 6px 0 2px; }
.bb-odds { font-size: 0.82rem; color: var(--ink-3); margin-top: 12px; }
.series-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.dex { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dex-item { background: var(--surface-2); border: 2.5px solid var(--line); border-radius: 18px; padding: 8px 6px 6px; text-align: center; position: relative; transition: transform 0.4s var(--ease-bounce); }
.dex-item img { width: 100%; transition: filter 0.6s; }
.dex-item small { display: block; font-size: 0.74rem; color: var(--ink-3); line-height: 1.3; min-height: 2em; }
.dex-item.locked img { filter: brightness(0) opacity(0.14); }
html[data-theme="night"] .dex-item.locked img { filter: brightness(0) invert(1) opacity(0.12); }
.dex-item.got { border-color: var(--pink); }
.dex-item.got.new { animation: pop 0.7s var(--ease-bounce); }
.dex-item .cnt { position: absolute; top: 6px; right: 6px; font-family: "Fredoka", sans-serif; font-size: 0.72rem; font-weight: 600; background: var(--pink-600); color: #fff; border-radius: 99px; padding: 0 7px; }
.dex-item.secret { background: linear-gradient(160deg, #FFF8DB, #FFEAB0); border-color: #F2C24E; }
html[data-theme="night"] .dex-item.secret { background: linear-gradient(160deg, #4A3F2A, #3B3220); }
@keyframes pop { 40% { transform: scale(1.2) rotate(-6deg); } }
.progress { height: 14px; background: var(--surface-2); border: 2.5px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad-rainbow); border-radius: 99px; transition: width 0.8s var(--ease-out); }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.glossary dt { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-text); }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); font-size: 0.94rem; }
.glossary .card { padding: 20px 22px; }
.multi-results { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.multi-results img { width: 100%; background: var(--surface-2); border-radius: 14px; border: 2px solid var(--line); animation: pop 0.6s var(--ease-bounce) backwards; }
@media (max-width: 520px) { .multi-results { grid-template-columns: repeat(3, 1fr); } .dex { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   客製化工作室
   ========================================================================== */
.studio { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .studio { grid-template-columns: 1fr; } }
.studio-preview { position: sticky; top: calc(var(--header-h) + 20px); text-align: center; background: var(--surface); }
.studio-preview .canvas {
  position: relative; border-radius: 26px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; margin-bottom: 16px;
  background: radial-gradient(circle at 50% 60%, #FFFFFF 0%, #FFE3EA 60%, #FFD3DF 100%); border: 3px dashed var(--line-2);
}
html[data-theme="night"] .studio-preview .canvas { background: radial-gradient(circle at 50% 60%, #3D3060 0%, #2A2046 70%); }
.studio-preview .canvas .fm { width: 76%; animation: float 4s ease-in-out infinite; }
.studio-preview .canvas .turntable { position: absolute; bottom: 8%; left: 50%; width: 58%; height: 10%; transform: translateX(-50%); border-radius: 50%; background: rgba(90, 53, 80, 0.08); }
.studio-preview .name-plate { display: inline-block; font-family: var(--font-display); font-size: 1.2rem; background: var(--grad-pink); color: #fff; padding: 4px 20px; border-radius: 99px; border: 3px solid var(--outline); margin-top: -40px; position: relative; z-index: 2; }
.studio-controls { display: grid; gap: 18px; }
.ctrl-group { background: var(--surface); border: 3px solid var(--line); border-radius: 22px; padding: 18px 20px; }
.ctrl-group > .label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 1.02rem; }
.ctrl-group > .label small { font-family: "Fredoka", sans-serif; color: var(--ink-3); letter-spacing: 0.08em; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 2.5px solid var(--line-2); background: var(--surface-2); padding: 6px 14px; border-radius: 99px; cursor: pointer; font-size: 0.9rem; transition: transform 0.3s var(--ease-bounce), border-color 0.2s, background 0.2s; color: var(--ink); }
.opt:hover { transform: translateY(-2px); border-color: var(--pink); }
.opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
html[data-theme="night"] .opt[aria-pressed="true"] { background: #FFD1E0; color: #2A1A33; border-color: #FFD1E0; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2.5px var(--line-2); cursor: pointer; transition: transform 0.3s var(--ease-bounce), box-shadow 0.2s; padding: 0; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--outline); transform: scale(1.12); }
.studio-summary { font-size: 0.92rem; color: var(--ink-2); text-align: left; background: var(--surface-2); border-radius: 16px; padding: 12px 16px; margin-top: 14px; border: 2px dashed var(--line-2); }
.studio-summary b { color: var(--ink); font-weight: 400; }

.material-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.material-table th, .material-table td { padding: 14px 16px; border-bottom: 2px dashed var(--line); text-align: left; font-size: 0.95rem; }
.material-table thead th { background: var(--peach-soft); font-weight: 400; }
.material-table tr:last-child td { border-bottom: 0; }
.dots-rating { letter-spacing: 2px; color: var(--pink-600); }
.dots-rating .off { color: var(--line-2); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-top: 30px; }
.steps li::before { content: "STEP " counter(st, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--accent-text); }
.steps .card { height: 100%; }
.steps .dur { display: inline-block; margin-top: 10px; font-size: 0.82rem; background: var(--mint-soft); color: var(--mint-600); padding: 2px 10px; border-radius: 99px; }
html[data-theme="night"] .steps .dur { color: var(--mint); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   AI 實驗室
   ========================================================================== */
.ai-hero-chip { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.usecase { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; }
.usecase .icon-bubble { margin: 0; width: 70px; height: 70px; }
.usecase .io { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 12px; font-size: 0.84rem; }
.usecase .io span { background: var(--surface-2); border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; color: var(--ink-2); line-height: 1.5; }
.usecase .io i { font-style: normal; color: var(--pink-600); font-weight: 700; }
.usecase .human { margin-top: 10px; font-size: 0.84rem; color: var(--mint-600); }
html[data-theme="night"] .usecase .human { color: var(--mint); }
@media (max-width: 520px) { .usecase { grid-template-columns: 1fr; } .usecase .io { grid-template-columns: 1fr; } .usecase .io i { transform: rotate(90deg); justify-self: center; } }

.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }
.brief .examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.brief .examples button { font-size: 0.82rem; padding: 4px 12px; }
.spec-sheet { font-size: 0.95rem; }
.spec-sheet .head { display: flex; gap: 16px; align-items: center; border-bottom: 3px dashed var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.spec-sheet .head .mini { width: 110px; flex: none; background: var(--peach-soft); border-radius: 20px; }
.spec-sheet .kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.spec-sheet .kv dt { color: var(--ink-3); }
.spec-sheet .kv dd { margin: 0; }
.spec-sheet .kv dd.missing { color: var(--ink-3); font-style: italic; }
.spec-sheet .conf { margin-top: 14px; font-size: 0.82rem; color: var(--ink-3); }
.thinking { display: inline-flex; gap: 5px; }
.thinking i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink-600); animation: wave 1s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: 0.15s; } .thinking i:nth-child(3) { animation-delay: 0.3s; }

.gacha { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .gacha { grid-template-columns: 1fr; } }
.gacha-machine { width: 260px; margin: 0 auto; position: relative; }
.gacha-machine .globe { width: 230px; height: 230px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--outline); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(220, 240, 255, 0.5) 60%); position: relative; overflow: hidden; z-index: 2; }
html[data-theme="night"] .gacha-machine .globe { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.3), rgba(120, 140, 220, 0.25) 60%); }
.gacha-machine .capsule { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--outline); overflow: hidden; }
.gacha-machine .capsule::before { content: ""; position: absolute; inset: 0 0 50% 0; background: rgba(255, 255, 255, 0.85); border-bottom: 3px solid var(--outline); }
.gacha-machine.spin .capsule { animation: tumble 0.5s ease-in-out infinite alternate; }
@keyframes tumble { to { transform: translate(var(--tx, 10px), var(--ty, -14px)) rotate(var(--tr, 90deg)); } }
.gacha-machine .base { width: 240px; height: 140px; margin: -30px auto 0; background: linear-gradient(135deg, #FF9DB8, #EC5687); border: 4px solid var(--outline); border-radius: 26px 26px 30px 30px; position: relative; box-shadow: 0 8px 0 var(--outline); }
.gacha-machine .knob { position: absolute; left: 34px; top: 52px; width: 66px; height: 66px; border-radius: 50%; background: #FFE07A; border: 4px solid var(--outline); cursor: pointer; transition: transform 0.8s var(--ease-bounce); display: grid; place-items: center; padding: 0; }
.gacha-machine .knob::before { content: ""; width: 44px; height: 12px; border-radius: 8px; background: #fff; border: 3px solid var(--outline); }
.gacha-machine .knob:hover { transform: rotate(30deg); }
.gacha-machine.spin .knob { transform: rotate(360deg); }
.gacha-machine .slot { position: absolute; right: 34px; top: 56px; width: 76px; height: 58px; border-radius: 14px; background: #5A3550; border: 4px solid var(--outline); overflow: hidden; }
.gacha-machine .drop { position: absolute; left: 50%; top: -60px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; border: 3px solid var(--outline); background: linear-gradient(#fff 50%, var(--cap, #FF8FAB) 50%); }
.gacha-machine.spin .drop { animation: drop 1.2s 0.6s var(--ease-bounce) forwards; }
@keyframes drop { to { top: 12px; } }
.idea-card { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; min-height: 260px; }
.idea-card .pic { background: var(--lav-soft); border-radius: 22px; padding: 6px; }
.idea-card .pic .fm { width: 100%; }
.idea-card h3 { margin-bottom: 2px; }
.idea-card .palette { display: flex; gap: 6px; margin: 10px 0; }
.idea-card .palette i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--outline); }
.idea-card.flash { animation: pop 0.6s var(--ease-bounce); }
@media (max-width: 560px) { .idea-card { grid-template-columns: 1fr; text-align: center; } .idea-card .pic { max-width: 200px; margin-inline: auto; } .idea-card .palette { justify-content: center; } }

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.roadmap .card { padding-top: 46px; }
.roadmap .phase { position: absolute; top: -16px; left: 22px; font-family: "Fredoka", sans-serif; font-weight: 600; background: var(--ink); color: #fff; padding: 4px 14px; border-radius: 99px; font-size: 0.85rem; letter-spacing: 0.08em; }
html[data-theme="night"] .roadmap .phase { background: #FFD1E0; color: #2A1A33; }
.roadmap .status { display: inline-block; font-size: 0.78rem; padding: 2px 10px; border-radius: 99px; margin-bottom: 8px; }
.roadmap .done { background: var(--mint-soft); color: var(--mint-600); }
.roadmap .doing { background: var(--peach-soft); color: var(--accent-text); }
.roadmap .next { background: var(--lav-soft); color: var(--lav-600); }
html[data-theme="night"] .roadmap .done { color: var(--mint); } html[data-theme="night"] .roadmap .next { color: var(--lav); }
.roadmap ul { padding-left: 1.1em; margin: 8px 0 0; font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 980px) { .roadmap { grid-template-columns: 1fr 1fr; row-gap: 34px; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

.principles .card { border-style: dashed; }

/* ==========================================================================
   聯絡我們
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 18px 20px; }
.contact-item .icon-bubble { width: 56px; height: 56px; margin: 0; border-radius: 18px; }
.contact-item .icon-bubble svg { width: 28px; height: 28px; }
.contact-item small { display: block; color: var(--ink-3); font-family: "Fredoka", var(--font-body); font-size: 0.8rem; letter-spacing: 0.06em; }
.contact-item b { font-weight: 400; font-size: 1.05rem; word-break: break-all; }
.copy-btn { margin-left: 6px; font-size: 0.78rem; border: 2px solid var(--line-2); background: var(--surface-2); border-radius: 99px; padding: 1px 10px; cursor: pointer; vertical-align: middle; }
.map-card { position: relative; overflow: hidden; padding: 0; }
.map-card svg { width: 100%; height: auto; }
.map-card .cap { padding: 16px 20px; }

/* ==========================================================================
   最新消息
   ========================================================================== */
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: start; }
.news-item .date { text-align: center; background: var(--peach-soft); border-radius: 20px; padding: 14px 8px; border: 2.5px solid var(--line-2); }
.news-item .date b { display: block; font-family: "Fredoka", sans-serif; font-size: 2rem; line-height: 1; color: var(--accent-text); font-weight: 600; }
.news-item .date span { font-family: "Fredoka", sans-serif; font-size: 0.85rem; color: var(--ink-2); letter-spacing: 0.06em; }
.news-item h3 { font-size: 1.2rem; margin: 6px 0; }
.news-item .more { margin-top: 10px; }
.news-item .full { display: none; color: var(--ink-2); margin-top: 10px; }
.news-item.expanded .full { display: block; animation: fadeUp 0.5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; } .news-item .date { display: flex; gap: 10px; align-items: baseline; justify-content: flex-start; padding: 8px 16px; width: max-content; } .news-item .date b { font-size: 1.4rem; } }

/* ==========================================================================
   隱私 / 一般文章
   ========================================================================== */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 30px) 20px 60px; background: var(--grad-hero); }
.notfound .big { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--pink-600); text-shadow: 6px 6px 0 var(--outline); display: flex; align-items: center; justify-content: center; gap: 6px; }
.notfound .big img { width: clamp(110px, 18vw, 190px); animation: float 3s ease-in-out infinite; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: #4A2C40; color: #F6DDE8; padding: 110px 0 30px; margin-top: 40px; }
html[data-theme="night"] .site-footer { background: #100B1F; }
.site-footer .wave { top: -1px; bottom: auto; transform: rotate(180deg); color: var(--bg); }
.site-footer a { color: #FFD1E0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text small { color: #FFB3C9; }
.footer-brand p { margin-top: 16px; font-size: 0.94rem; color: #E9CCD9; }
.footer-brand p.en { font-size: 0.86rem; color: #CDAFC0; line-height: 1.7; }
.site-footer .f-title { color: #fff; font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 8px; }
.site-footer .f-title small { font-family: "Fredoka", sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; color: #C9A3B8; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.94rem; }
.site-footer ul a { color: #F6DDE8; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 8px; }
.footer-contact li span:first-child { color: #C9A3B8; flex: none; min-width: 4.5em; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 2px dashed rgba(255, 209, 224, 0.25); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #CDAFC0; }
.footer-bottom .toggles { display: flex; gap: 10px; align-items: center; }
.fx-toggle { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 209, 224, 0.3); color: #F6DDE8; border-radius: 99px; padding: 4px 14px; cursor: pointer; font-size: 0.85rem; }
.fx-toggle i { width: 30px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); position: relative; transition: background 0.3s; }
.fx-toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease-bounce); }
.fx-toggle[aria-pressed="true"] i { background: var(--pink-600); }
.fx-toggle[aria-pressed="true"] i::after { transform: translateX(12px); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   捲動顯現動畫
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.85); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* 減少動態偏好 / 關閉特效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
html.no-fx *, html.no-fx *::before, html.no-fx *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
html.no-fx .js [data-reveal], html.no-fx [data-reveal] { opacity: 1 !important; transform: none !important; }

/* 彩蛋：兔兔雨 */
.bunny-rain { position: fixed; top: -120px; z-index: 260; width: 80px; pointer-events: none; animation: rain linear forwards; }
@keyframes rain { to { transform: translateY(calc(100vh + 160px)) rotate(var(--r, 360deg)); } }

/* 列印 */
@media print {
  .site-header, .site-footer, .to-top, .loader, .fx-canvas, .hero-fx, .marquee, .scroll-progress { display: none !important; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 補充 ---------- */
html.skip-loader .loader { display: none; }
html[data-theme="night"] .cloud { opacity: 0.12; }
.ico { width: 1.2em; height: 1.2em; display: inline-block; flex: none; vertical-align: -0.2em; }
.hero-facts span .ico { width: 18px; height: 18px; color: var(--accent-text); }
.icon-bubble .ico { width: 36px; height: 36px; }
.flow-step .dot .ico { width: 42px; height: 42px; }
.fact b span { font-size: inherit; color: inherit; }
.fact { display: flex; flex-direction: column; justify-content: center; }
@media (max-height: 820px) { .scroll-hint { display: none; } }
.cta-band { overflow: visible; }
.cta-band .bunny { right: 5%; top: -104px; bottom: auto; width: 132px; }
.section-cta { padding-top: 120px; }
[hidden] { display: none !important; }
.tag-lemon { background: var(--lemon-soft); color: #7A5A00; }
html[data-theme="night"] .tag-lemon { color: var(--lemon); }
/* 防止左右滑入動畫撐寬行動版畫面 */
html { overflow-x: clip; }
@media (max-width: 900px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(36px); }
}
@media (max-width: 480px) { .hero-badge { font-size: 0.8rem; } }
/* backdrop-filter 會成為 fixed 子元素的定位容器，行動版選單需移除 */
@media (max-width: 1040px) {
  .site-header .bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
}
@media (max-width: 1040px) { .header-actions { margin-left: auto; } }
.fact b { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }

.site-footer .f-title { font-family: var(--font-display); }
/* 無 JavaScript 時：不顯示載入畫面，行動版選單直接展開成橫向列 */
html:not(.js) .loader { display: none; }
.loader { animation: loaderSafety 0.5s 5s forwards; }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
@media (max-width: 1040px) {
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header .bar { flex-wrap: wrap; border-radius: 28px; }
  html:not(.js) .nav { position: static; inset: auto; z-index: auto; clip-path: none; visibility: visible; background: none; padding: 4px 0 0; width: 100%; order: 3; overflow-x: auto; }
  html:not(.js) .nav ul { flex-direction: row; width: max-content; gap: 6px; }
  html:not(.js) .nav li { opacity: 1; transform: none; }
  html:not(.js) .nav a { flex-direction: column; white-space: nowrap; padding: 6px 14px; font-size: 0.9rem; border-width: 2px; }
  html:not(.js) .nav a small { display: none; }
}
