/* ===========================================
   Design Tokens
   =========================================== */
:root {
  --primary: #2d5a3d;
  --primary-light: #3d7a52;
  --primary-rgb: 45, 90, 61;
  --secondary: #c8956c;
  --secondary-rgb: 200, 149, 108;
  --accent: #d4a853;
  --accent-rgb: 212, 168, 83;
  --bg-main: #faf7f2;
  --bg-card: #f2ede6;
  --bg-dark: #1e3a2a;
  --bg-dark-rgb: 30, 58, 42;
  --text-main: #2c2c2c;
  --text-muted: #7a7164;
  --white: #ffffff;
  --border: #e5dfd6;

  --ff-heading: "Playfair Display", "Noto Serif TC", serif;
  --ff-body: "Noto Sans TC", sans-serif;
  --ff-hand: "Kalam", cursive;

  --shadow-soft: 0 8px 32px rgba(var(--primary-rgb), 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(var(--primary-rgb), 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.35s ease;

  --nav-height: 80px;
  --container: 1200px;
}

/* ===========================================
   Reset & Base
   =========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--primary-light);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================
   Typography
   =========================================== */
.section-label {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-label-light {
  color: var(--accent);
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 600px;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle {
  font-family: var(--ff-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

.title-accent {
  color: var(--primary);
  font-weight: 400;
  font-style: italic;
}

.title-green {
  color: var(--primary);
}

.title-gold {
  color: var(--accent);
  margin-left: 4px;
}

.handwriting {
  font-family: var(--ff-hand);
}

/* ===========================================
   Scroll Progress Bar
   =========================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ===========================================
    Scroll Reveal Animation — "Breathing Nature" System V2
    設計理念：種子發芽、呼吸節奏、樹葉搖曳、晨光浮現
    特色：大幅度、高張力、視覺衝擊
    =========================================== */

/* === 基礎動畫變數 === */
:root {
  --anim-duration-fast: 0.8s;
  --anim-duration-normal: 1.1s;
  --anim-duration-slow: 1.4s;
  --anim-ease-sprout: cubic-bezier(0.34, 1.8, 0.64, 1);
  --anim-ease-breathe: cubic-bezier(0.22, 1.2, 0.36, 1);
  --anim-ease-sway: cubic-bezier(0.45, 0.05, 0.55, 1.2);
  --anim-ease-fade: cubic-bezier(0.25, 0.46, 0.45, 1);
  --anim-ease-dramatic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === 1. 種子發芽效果 (Sprout) — 高張力版 === 
   元素從底部大幅縮放 + 旋轉進場，像植物破土生長 */
.reveal-sprout {
  opacity: 0;
  transform: translateY(100px) scale(0.7) rotate(-8deg);
  transform-origin: bottom center;
  transition:
    opacity var(--anim-duration-slow) var(--anim-ease-sprout),
    transform var(--anim-duration-slow) var(--anim-ease-sprout);
  will-change: opacity, transform;
}
.reveal-sprout.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

/* === 2. 呼吸效果 (Breathe) — 高張力版 === 
   大幅縮放 + 淡入，像深呼吸一樣明顯 */
.reveal-breathe {
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-breathe),
    transform var(--anim-duration-normal) var(--anim-ease-breathe);
  will-change: opacity, transform;
}
.reveal-breathe.active {
  opacity: 1;
  transform: scale(1);
}

/* === 3. 樹葉搖曳效果 (Sway) — 高張力版 === 
   從側面大幅搖擺進場，像樹葉隨風飄落 */
.reveal-sway {
  opacity: 0;
  transform: translateX(-100px) rotate(-12deg);
  transform-origin: center center;
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-sway),
    transform var(--anim-duration-normal) var(--anim-ease-sway);
  will-change: opacity, transform;
}
.reveal-sway.active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}
.reveal-sway-right {
  transform: translateX(100px) rotate(12deg);
}
.reveal-sway-right.active {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

/* === 4. 晨光浮現效果 (Fade) — 高張力版 === 
   從大幅模糊 + 上移進場，如晨霧散去 */
.reveal-fade {
  opacity: 0;
  transform: translateY(80px);
  filter: blur(8px);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-fade),
    transform var(--anim-duration-normal) var(--anim-ease-fade),
    filter var(--anim-duration-normal) var(--anim-ease-fade);
  will-change: opacity, transform, filter;
}
.reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* === 5. 彈跳效果 (Bounce) — 高張力版 === 
   大幅彈跳進場，適合卡片、按鈕 */
.reveal-bounce {
  opacity: 0;
  transform: translateY(80px) scale(0.75);
  transition:
    opacity 1s var(--anim-ease-breathe),
    transform 1s var(--anim-ease-dramatic);
  will-change: opacity, transform;
}
.reveal-bounce.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === 6. 彈出效果 (Pop) — 高張力版 === 
   快速大幅縮放進場，適合小元素、圖標 */
.reveal-pop {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.8s var(--anim-ease-breathe),
    transform 0.8s var(--anim-ease-dramatic);
  will-change: opacity, transform;
}
.reveal-pop.active {
  opacity: 1;
  transform: scale(1);
}

/* === 7. 向上滑入效果 (Slide Up) — 高張力版 === 
   大幅上滑進場，適合文字區塊 */
.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-breathe),
    transform var(--anim-duration-normal) var(--anim-ease-breathe);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === 8. 從左/右滑入 — 高張力版 === */
.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-fade),
    transform var(--anim-duration-normal) var(--anim-ease-fade);
  will-change: opacity, transform;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-fade),
    transform var(--anim-duration-normal) var(--anim-ease-fade);
  will-change: opacity, transform;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* === 9. 縮放進場 (Zoom) — 高張力版 === */
.reveal-zoom {
  opacity: 0;
  transform: translateY(60px) scale(0.75);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-breathe),
    transform var(--anim-duration-normal) var(--anim-ease-dramatic);
  will-change: opacity, transform;
}
.reveal-zoom.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === 10. 翻轉進場 (Flip) — 新增 === 
   3D 翻轉效果，適合特色區塊 */
.reveal-flip {
  opacity: 0;
  transform: perspective(800px) rotateY(-25deg) translateX(-60px);
  transform-origin: center center;
  transition:
    opacity var(--anim-duration-slow) var(--anim-ease-sprout),
    transform var(--anim-duration-slow) var(--anim-ease-sprout);
  will-change: opacity, transform;
}
.reveal-flip.active {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) translateX(0);
}
.reveal-flip-right {
  transform: perspective(800px) rotateY(25deg) translateX(60px);
}
.reveal-flip-right.active {
  opacity: 1;
  transform: perspective(800px) rotateY(0deg) translateX(0);
}

/* === 11. 螺旋進場 (Spiral) — 新增 === 
   旋轉 + 縮放進場，適合圖片 */
.reveal-spiral {
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
  transform-origin: center center;
  transition:
    opacity var(--anim-duration-slow) var(--anim-ease-sprout),
    transform var(--anim-duration-slow) var(--anim-ease-sprout);
  will-change: opacity, transform;
}
.reveal-spiral.active {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* === 延遲系統 — 層次化進場（加大間隔） === */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }
.delay-6 { transition-delay: 0.85s; }
.delay-7 { transition-delay: 1s; }
.delay-8 { transition-delay: 1.15s; }

/* === 進場光暈效果 (可選) — 加強版 === */
.reveal-glow {
  position: relative;
}
.reveal-glow::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle at center, rgba(212, 168, 83, 0.25), transparent 70%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 1s ease 0.4s;
  pointer-events: none;
  z-index: -1;
}
.reveal-glow.active::after {
  opacity: 1;
}

/* === 卡片陰影生長效果 — 加強版 === */
.reveal-shadow {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    opacity var(--anim-duration-normal) var(--anim-ease-breathe),
    transform var(--anim-duration-normal) var(--anim-ease-sprout),
    box-shadow 1.2s ease 0.4s;
}
.reveal-shadow.active {
  box-shadow: 0 12px 40px rgba(45, 90, 61, 0.12);
}

/* === 粒子特效容器 === */
.reveal-particles {
  position: relative;
}
.reveal-particles::before,
.reveal-particles::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.reveal-particles::before {
  top: -10px;
  left: 20%;
}
.reveal-particles::after {
  top: -15px;
  right: 30%;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
}
.reveal-particles.active::before {
  animation: particleFloat 1.2s ease-out 0.3s forwards;
}
.reveal-particles.active::after {
  animation: particleFloat 1s ease-out 0.5s forwards;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  50% { opacity: 1; transform: scale(1.5) translateY(-15px); }
  100% { opacity: 0; transform: scale(0.8) translateY(-30px); }
}

/* --- 呼吸脈動動畫（裝飾元素） --- */
@keyframes breathePulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50%      { transform: scale(1.08); opacity: 0.28; }
}
@keyframes breathePulseSlow {
  0%, 100% { transform: scale(1); opacity: 0.12; }
  50%      { transform: scale(1.12); opacity: 0.22; }
}

/* --- 葉片飄落動畫 --- */
@keyframes leafFloat {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-120px) translateX(60px) rotate(45deg); opacity: 0; }
}

/* --- QP 卡片群組進場疊加（配合 .reveal-bounce） --- */
.qp-grid-q .qp-card:nth-child(1).reveal-bounce.active { transition-delay: 0.1s; }
.qp-grid-q .qp-card:nth-child(2).reveal-bounce.active { transition-delay: 0.22s; }
.qp-grid-q .qp-card:nth-child(3).reveal-bounce.active { transition-delay: 0.34s; }
.qp-grid-q .qp-card:nth-child(4).reveal-bounce.active { transition-delay: 0.46s; }
.qp-grid-q .qp-card:nth-child(5).reveal-bounce.active { transition-delay: 0.58s; }

.qp-grid-p .qp-card:nth-child(1).reveal-bounce.active { transition-delay: 0.1s; }
.qp-grid-p .qp-card:nth-child(2).reveal-bounce.active { transition-delay: 0.22s; }
.qp-grid-p .qp-card:nth-child(3).reveal-bounce.active { transition-delay: 0.34s; }
.qp-grid-p .qp-card:nth-child(4).reveal-bounce.active { transition-delay: 0.46s; }
.qp-grid-p .qp-card:nth-child(5).reveal-bounce.active { transition-delay: 0.58s; }

/* --- 微動畫：卡片 hover 彈起 --- */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(45, 90, 61, 0.15);
}

/* --- 文字逐字淡入（搭配 JS） --- */
.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.char-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- wave divider 微動畫 --- */
.wave-divider {
  position: relative;
  z-index: 2;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* 尊重用戶 reduced motion 偏好 */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  .reveal-bounce,
  .reveal-pop,
  .reveal-fade,
  .reveal-sprout,
  .reveal-breathe,
  .reveal-sway,
  .reveal-sway-right,
  .reveal-flip,
  .reveal-flip-right,
  .reveal-spiral,
  .reveal-shadow,
  .reveal-glow,
  .reveal-particles,
  .char-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .bear-deco,
  .arch-bg-circle {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================================
   NAVBAR
   =========================================== */
.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition:
    background var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.navbar-main.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}

.brand-logo {
  height: clamp(36px, 8vw, 42px);
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}

.brand-logo-light {
  opacity: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.18));
}

.brand-logo-dark {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.scrolled .brand-logo-light {
  opacity: 0;
}

.scrolled .brand-logo-dark {
  opacity: 1;
  filter: drop-shadow(0 1px 3px rgba(45, 90, 61, 0.18));
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-text {
  font-family: var(--ff-heading);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  transition: color var(--transition-smooth);
}

.brand-sub {
  font-size: clamp(0.55rem, 1.2vw, 0.65rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.3;
  transition: color var(--transition-smooth);
}

@media (max-width: 640px) {
  .brand-logo { height: 36px; }
  .brand-text { font-size: clamp(0.88rem, 4vw, 1rem); }
  .brand-sub { font-size: clamp(0.52rem, 2vw, 0.58rem); }
}

.scrolled .brand-text {
  color: var(--primary);
}

.scrolled .brand-sub {
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 桌面版隱藏選單裝飾 */
.nav-menu-bear,
.nav-menu-leaf {
  display: none;
}

.nav-menu .nav-link {
  font-size: clamp(0.85rem, 1.2vw, 0.9rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  padding: 4px 0;
  position: relative;
  transition: color var(--transition-smooth);
  line-height: 1;
}

.nav-menu .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-smooth);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
  width: 100%;
}

.scrolled .nav-menu .nav-link {
  color: var(--text-main);
}

.scrolled .nav-menu .nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  transition:
    background var(--transition-smooth),
    transform var(--transition-smooth) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.scrolled .nav-cta {
  color: var(--white) !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: clamp(20px, 5vw, 24px);
  height: 2px;
  background: var(--white);
  transition:
    transform var(--transition-smooth),
    opacity var(--transition-smooth);
}

.scrolled .menu-toggle span {
  background: var(--text-main);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--text-main);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--text-main);
}

/* ===========================================
   HERO
   =========================================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Video Background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 36px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform var(--transition-smooth),
    background var(--transition-smooth),
    border-color var(--transition-smooth);
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 1.1s forwards;
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.04);
  color: var(--white);
}

.hero-cta i,
.cta-arrow {
  transition: transform var(--transition-smooth);
}
.hero-cta:hover i,
.hero-cta:hover .cta-arrow {
  transform: translateX(6px);
}
.cta-arrow {
  width: clamp(24px, 6vw, 28px);
  height: clamp(24px, 6vw, 28px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-dark-rgb), 0.4) 0%,
    rgba(var(--bg-dark-rgb), 0.55) 50%,
    rgba(var(--bg-dark-rgb), 0.7) 100%
  );
  z-index: 2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-label {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease-out 0.3s forwards;
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease-out 0.6s forwards;
}

.hero-title-en {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease-out 0.78s forwards;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease-out 1s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: scrollIndicatorIn 0.8s ease-out 1.2s forwards;
}

@keyframes scrollIndicatorIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator-text {
  font-size: clamp(0.65rem, 1.5vw, 0.7rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator-line {
  width: 1px;
  height: clamp(30px, 8vw, 40px);
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

/* ===========================================
   Wave Dividers
   =========================================== */
.wave-divider {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: clamp(40px, 8vw, 60px);
  display: block;
}

.wave-divider-flip {
  margin-top: 0;
}

.wave-divider-dark {
  background: var(--bg-dark);
}

/* ===========================================
   ABOUT SECTION
   =========================================== */
.section-about {
  background: var(--bg-main);
  padding: 120px 0 100px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 100px;
}

.about-quote {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--secondary);
  margin: 24px 0 6px;
  line-height: 1.6;
}

.about-quote-en {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.about-desc {
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  color: var(--text-muted);
  line-height: 1.9;
}

.about-intro-visual {
  position: relative;
}

.about-img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-img-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  border-radius: var(--radius);
  background: var(--accent);
  opacity: 0.15;
  z-index: -1;
}

.about-img-accent-alt {
  top: auto;
  bottom: -18px;
  right: auto;
  left: -18px;
  background: var(--secondary);
}

.about-img-frame-alt {
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .about-intro-reverse .about-intro-visual {
    order: -1;
  }
}

/* Culture / Class Grid */
.culture-header {
  text-align: center;
  margin-bottom: 48px;
}

.culture-desc {
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  color: var(--text-muted);
  margin-top: 8px;
}

.class-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.class-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    box-shadow var(--transition-smooth),
    transform var(--transition-smooth);
}

.class-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.class-card-badge {
  display: inline-block;
  font-size: clamp(0.68rem, 1.5vw, 0.75rem);
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.class-card-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.class-card-en {
  display: block;
  font-family: var(--ff-heading);
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2px;
}

.class-card-classes {
  font-size: clamp(0.8rem, 1.8vw, 0.88rem);
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.class-card-desc {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================================
   ARCHITECTURE SECTION — 拍立得 Polaroid Stack
   =========================================== */
.section-architecture {
  background: var(--bg-card);
  padding: 110px 0 90px;
  position: relative;
}

/* —  Polaroid 容器 — */
.polaroid-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* —  動畫外層（負責進場） — */
.polaroid-reveal {
  display: block;
  opacity: 0;
  transform: translateY(60px) scale(0.92) rotate(3deg);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.polaroid-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

/* 交錯延遲 */
.polaroid-reveal:nth-child(1) { transition-delay: 0.15s; }
.polaroid-reveal:nth-child(2) { transition-delay: 0.35s; }
.polaroid-reveal:nth-child(3) { transition-delay: 0.55s; }
.polaroid-reveal:nth-child(4) { transition-delay: 0.75s; }

/* —  Polaroid 卡片（負責旋轉 + hover） — */
.polaroid-card {
  background: var(--white);
  padding: 14px 14px 20px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.04);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.5s ease;
  position: relative;
}

/* 拍立得白色邊框效果 */
.polaroid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 2px;
  pointer-events: none;
}

/* 交錯旋轉角度 — 桌上散落感 */
.polaroid-reveal:nth-child(1) .polaroid-card {
  transform: rotate(-2deg);
}
.polaroid-reveal:nth-child(2) .polaroid-card {
  transform: rotate(1.5deg);
}
.polaroid-reveal:nth-child(3) .polaroid-card {
  transform: rotate(-1deg);
}
.polaroid-reveal:nth-child(4) .polaroid-card {
  transform: rotate(2.5deg);
}

/* Hover：浮起 + 回正 */
.polaroid-reveal:nth-child(1) .polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}
.polaroid-reveal:nth-child(2) .polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}
.polaroid-reveal:nth-child(3) .polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}
.polaroid-reveal:nth-child(4) .polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}

.polaroid-card:hover {
  box-shadow:
    0 12px 40px rgba(45, 90, 61, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* —  圖片框 — */
.polaroid-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-main);
  aspect-ratio: 4/3;
}

.polaroid-frame a {
  display: block;
  width: 100%;
  height: 100%;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.92) contrast(1.02);
}

.polaroid-card:hover .polaroid-frame img {
  transform: scale(1.04);
}

/* 大數字水印 */
.polaroid-num {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  opacity: 0.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

/* 圖片漸層 */
.polaroid-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30, 58, 42, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

/* —  拍立得下方註解區 — */
.polaroid-caption {
  padding: 16px 4px 4px;
  text-align: center;
}

.polaroid-tag {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: var(--secondary);
  display: inline-block;
  margin-bottom: 6px;
}

.polaroid-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}

.polaroid-en {
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.8;
}

.polaroid-desc {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.85;
  text-align: left;
}

/* —  桌面：2欄交錯 — */
@media (min-width: 768px) {
  .polaroid-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
    max-width: 1000px;
  }

  /* 桌面版旋轉加大 */
  .polaroid-reveal:nth-child(1) .polaroid-card {
    transform: rotate(-2.5deg);
  }
  .polaroid-reveal:nth-child(2) .polaroid-card {
    transform: rotate(2deg);
  }
  .polaroid-reveal:nth-child(3) .polaroid-card {
    transform: rotate(-1.5deg);
  }
  .polaroid-reveal:nth-child(4) .polaroid-card {
    transform: rotate(3deg);
  }

  .polaroid-reveal:nth-child(1) .polaroid-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
  }
  .polaroid-reveal:nth-child(2) .polaroid-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
  }
  .polaroid-reveal:nth-child(3) .polaroid-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
  }
  .polaroid-reveal:nth-child(4) .polaroid-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
  }

  .polaroid-card {
    padding: 16px 16px 24px;
  }

  .polaroid-frame {
    aspect-ratio: 5/4;
  }

  .polaroid-num {
    bottom: 12px;
    right: 16px;
  }

  .polaroid-caption {
    padding: 20px 8px 4px;
  }

  .polaroid-tag {
    margin-bottom: 8px;
  }

  .polaroid-en {
    margin-bottom: 16px;
  }
}

@media (min-width: 1024px) {
  .polaroid-wrap {
    gap: 56px 48px;
  }

  .polaroid-card {
    padding: 18px 18px 28px;
  }

  .polaroid-frame {
    border-radius: 1px;
  }

  .polaroid-num {
    font-size: clamp(3.5rem, 5vw, 5rem);
  }
}

/* —  手機版 — */
@media (max-width: 767px) {
  .polaroid-wrap {
    gap: 32px;
  }

  .polaroid-card {
    padding: 12px 12px 16px;
  }

  .polaroid-frame {
    aspect-ratio: 16/10;
  }

  .polaroid-num {
    font-size: clamp(2rem, 10vw, 3rem);
    bottom: 6px;
    right: 10px;
  }

  .polaroid-caption {
    padding: 12px 2px 2px;
  }

  .polaroid-title {
    margin-bottom: 2px;
  }

  .polaroid-en {
    margin-bottom: 10px;
  }
}

/* ===========================================
   ENVIRONMENT SECTION
   =========================================== */
.section-environment {
  background: var(--bg-main);
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
}

.section-environment::before {
  content: "Campus";
  position: absolute;
  top: 70px;
  left: -2%;
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 700;
  color: var(--secondary);
  opacity: 0.05;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.section-environment .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ===========================================
   ENVIRONMENT — Bento Grid 美化版
   桌面 4 欄編輯風交錯，手機直堆
   =========================================== */

/* — container — */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.bento-grid-v2 {
  grid-template-columns: 1fr;
  grid-template-areas:
    "i1"
    "i2"
    "i3"
    "i4"
    "t1"
    "t2"
    "t3"
    "t4";
}
.bento-grid-v2 .bento-pos-i1 { grid-area: i1; }
.bento-grid-v2 .bento-pos-i2 { grid-area: i2; }
.bento-grid-v2 .bento-pos-i3 { grid-area: i3; }
.bento-grid-v2 .bento-pos-i4 { grid-area: i4; }
.bento-grid-v2 .bento-pos-t1 { grid-area: t1; }
.bento-grid-v2 .bento-pos-t2 { grid-area: t2; }
.bento-grid-v2 .bento-pos-t3 { grid-area: t3; }
.bento-grid-v2 .bento-pos-t4 { grid-area: t4; }

/* — 通用卡片 — */
.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-main);
}

/* — 圖片卡 — */
.bento-img {
  aspect-ratio: 4/3;
  min-height: 200px;
}
.bento-img a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-card:hover .bento-img img {
  transform: scale(1.06);
}

/* — 圖片右上角編號 editorial badge — */
.bento-img a::before {
  content: attr(data-caption);
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.bento-card:hover .bento-img a::before {
  opacity: 1;
  transform: translateX(0);
}

/* — 圖片 overlayer — */
.bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 32px 32px;
  background: linear-gradient(0deg, rgba(30,55,40,0.62) 0%, rgba(30,55,40,0.06) 55%, transparent 100%);
  z-index: 2;
}
.bento-tag {
  font-family: var(--ff-heading);
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: 0.9;
}
.bento-overlay-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* — placeholder 圖卡 — */
.bento-img-placeholder {
  aspect-ratio: auto;
  min-height: 200px;
  background: linear-gradient(140deg, #5a8d97 0%, #2d5a3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bento-img-placeholder::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), transparent 38%),
              radial-gradient(circle at 70% 65%, rgba(255,255,255,.14), transparent 42%),
              radial-gradient(circle at 50% 90%, rgba(212,168,83,.22), transparent 50%);
  animation: bentoPlaceholderFloat 14s ease-in-out infinite;
}
.bento-placeholder-inner {
  text-align: center;
  padding: 32px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bento-placeholder-inner .bi {
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  color: var(--white);
  opacity: 0.95;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.25));
}
.bento-placeholder-todo {
  font-size: clamp(0.6rem, 1.3vw, 0.68rem);
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
  padding: 4px 10px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 4px;
  text-transform: uppercase;
}

/* — 文字卡 — */
.bento-text {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 38px 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 200px;
  position: relative;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.45s ease,
              border-color 0.4s ease;
}
/* — 左側裝飾 accent bar — */
.bento-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--secondary) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  z-index: -1;
}
/* — 右上角大型水印數字 — */
.bento-text::after {
  content: attr(data-num);
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-family: var(--ff-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(5rem, 10vw, 7.5rem);
  line-height: 1;
  color: var(--primary);
  opacity: 0.035;
  pointer-events: none;
  z-index: -1;
  letter-spacing: -0.05em;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.bento-text:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -14px rgba(45,90,61,.2);
  border-color: rgba(45,90,61,.22);
}
.bento-text:hover::before {
  transform: scaleY(1);
}
.bento-text:hover::after {
  opacity: 0.07;
  transform: translateY(-6px) rotate(-1deg);
}

.bento-text-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bento-text-num::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.bento-text-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}
.bento-text-en {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  color: var(--secondary);
  margin: 4px 0 10px;
  padding-bottom: 14px;
  position: relative;
}
.bento-text-en::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 1px;
  background: var(--border);
  transition: width 0.4s ease, background 0.4s ease;
}
.bento-text:hover .bento-text-en::after {
  width: 52px;
  background: var(--accent);
}
.bento-text-desc {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  line-height: 1.9;
  color: var(--text-muted);
  margin: 0;
}

/* — 桌面：4 欄交錯 Bento — */
@media (min-width: 992px) {
  .bento-grid-v2 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 24px;
    grid-template-areas:
      "i1  i1  t1  t2"
      "i1  i1  i2  i3"
      "t3  i4  i4  t4"
      "t3  i4  i4  t4";
  }
  .bento-grid-v2 .bento-pos-i1 { grid-area: i1; }
  .bento-grid-v2 .bento-pos-i2 { grid-area: i2; }
  .bento-grid-v2 .bento-pos-i3 { grid-area: i3; }
  .bento-grid-v2 .bento-pos-i4 { grid-area: i4; }
  .bento-grid-v2 .bento-pos-t1 { grid-area: t1; }
  .bento-grid-v2 .bento-pos-t2 { grid-area: t2; }
  .bento-grid-v2 .bento-pos-t3 { grid-area: t3; }
  .bento-grid-v2 .bento-pos-t4 { grid-area: t4; }

  .bento-img {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .bento-img-placeholder {
    min-height: 100%;
  }
  .bento-text {
    padding: 44px 38px 44px;
    min-height: 0;
  }
  .bento-text-title {
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  }
  .bento-text-desc {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
  }
  .bento-overlay-title {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  }
  .bento-text-desc {
    font-size: 1rem;
    line-height: 2;
  }
  .bento-overlay {
    padding: 60px 40px 40px;
  }
  .bento-overlay-title {
    font-size: 1.5rem;
  }
}

/* — 平板：2 欄 — */
@media (min-width: 768px) and (max-width: 991px) {
  .bento-grid-v2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
    grid-template-areas:
      "i1  i1"
      "t1  t2"
      "i2  i3"
      "t3  i4"
      "i4  t4";
  }
  .bento-grid-v2 .bento-pos-i1 { grid-area: i1; }
  .bento-grid-v2 .bento-pos-i2 { grid-area: i2; }
  .bento-grid-v2 .bento-pos-i3 { grid-area: i3; }
  .bento-grid-v2 .bento-pos-i4 { grid-area: i4; }
  .bento-grid-v2 .bento-pos-t1 { grid-area: t1; }
  .bento-grid-v2 .bento-pos-t2 { grid-area: t2; }
  .bento-grid-v2 .bento-pos-t3 { grid-area: t3; }
  .bento-grid-v2 .bento-pos-t4 { grid-area: t4; }
}

@keyframes bentoPlaceholderFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(2%,-2%) scale(1.04); }
}


/* Accordion */

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background var(--transition-smooth);
}

.accordion-header:hover {
  background: rgba(var(--primary-rgb), 0.03);
}

.accordion-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: clamp(0.68rem, 1.5vw, 0.75rem);
  font-weight: 700;
}

.accordion-question {
  flex: 1;
}

.accordion-arrow {
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
  color: var(--text-muted);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.accordion-item.active .accordion-body {
  visibility: visible;
}

.accordion-body-inner {
  padding: 0 24px 20px 76px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===========================================
   COURSES SECTION
   =========================================== */
.section-courses {
  background: var(--bg-main);
  padding: 120px 0 100px;
}

.courses-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

.courses-intro {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.tab-link {
  padding: 12px 24px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-smooth);
}

.tab-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.tab-link.active {
  color: var(--primary);
}

.tab-link.active::after {
  transform: scaleX(1);
}

.tab-link:hover {
  color: var(--primary);
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-pane-inner {
  padding: 24px 0;
}

.tab-icon {
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 50%;
  margin-bottom: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tab-icon svg {
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
}
.tab-icon i {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
}
.tab-pane-inner:hover .tab-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

.tab-pane-inner h4 {
  font-family: var(--ff-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  margin-bottom: 12px;
  color: var(--text-main);
}

.tab-pane-inner p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: clamp(0.88rem, 2vw, 0.98rem);
}

/* Courses Visual */
.courses-img-group {
  position: relative;
}

.courses-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.courses-img-main img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.courses-img-float {
  position: absolute;
  bottom: -24px;
  right: -16px;
  width: 55%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--white);
}

.courses-img-float img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ===========================================
   FEATURES SECTION (Dark) — 含語言系統 + 5Q5P + 閱讀長廊 / 移動教室
   =========================================== */
.section-features {
  background: var(--bg-dark);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

/* 子區塊外殼 */
.features-block {
  margin-bottom: 96px;
  position: relative;
}

.features-block:last-of-type {
  margin-bottom: 0;
}

.features-block-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 6px;
  line-height: 1.3;
}

.features-block-en {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}

/* 深色版 Tab */
.tab-nav-dark {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.tab-nav-dark .tab-link {
  color: rgba(255, 255, 255, 0.6);
}

.tab-nav-dark .tab-link::after {
  background: var(--accent);
}

.tab-nav-dark .tab-link.active,
.tab-nav-dark .tab-link:hover {
  color: var(--accent);
}

.tab-content-dark .tab-pane-inner h4 {
  color: var(--white);
}

.tab-content-dark .tab-pane-inner p {
  color: rgba(255, 255, 255, 0.78);
}

.tab-content-dark .tab-icon {
  background: rgba(212, 168, 83, 0.18);
  color: var(--accent);
}

.section-features .courses-intro {
  color: rgba(255, 255, 255, 0.75);
}

.section-features .courses-img-float {
  border-color: var(--bg-dark);
}

/* ----- 5Q5P 區塊 ----- */
.features-block-qp {
  position: relative;
}

.qp-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.qp-intro {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  line-height: 1.85;
  max-width: 640px;
  margin: 12px auto 0;
}

.qp-block {
  margin-bottom: 48px;
  margin-top: 56px;
  position: relative;
}

.qp-block:first-of-type {
  margin-top: 0;
}

.qp-block:last-child {
  margin-bottom: 0;
}

.qp-block-header {
  margin-bottom: 24px;
  padding-top: 4px;
  padding-right: 120px;
  position: relative;
  min-height: 60px;
}

@media (max-width: 767px) {
  /* 手機版動畫加速：縮短延遲與持續時間，避免滾動時感覺卡頓 */
  .delay-1 { transition-delay: 0.08s; }
  .delay-2 { transition-delay: 0.16s; }
  .delay-3 { transition-delay: 0.24s; }
  .delay-4 { transition-delay: 0.32s; }
  .delay-5 { transition-delay: 0.4s; }
  .delay-6 { transition-delay: 0.48s; }
  .delay-7 { transition-delay: 0.56s; }
  .delay-8 { transition-delay: 0.64s; }

  :root {
    --anim-duration-fast: 0.65s;
    --anim-duration-normal: 0.85s;
    --anim-duration-slow: 1s;
  }

  .reveal-bounce {
    transition-duration: 0.65s;
  }
  
  .reveal-pop {
    transition-duration: 0.65s;
  }

  .qp-block-header {
    padding-right: 0;
  }

  /* 手機版特色教學區塊：標題區與圖片區分開進場 */
  .features-block-language .courses-text {
    margin-bottom: 24px;
  }

  .features-block-language .courses-visual {
    margin-top: 0;
  }

  .features-block-qp .qp-header {
    margin-bottom: 32px;
  }

  /* 手機版 About 區塊：文字與圖片間距 */
  .about-intro {
    gap: 32px;
  }

  .about-intro-visual {
    margin-top: 8px;
  }

  .about-intro-reverse .about-intro-visual {
    margin-bottom: 8px;
  }

  /* 手機版 Core 區塊：圖片與文字間距 */
  .core-item {
    gap: 20px;
  }

  .core-item .core-text {
    padding-top: 0;
  }

  /* 手機版 Features 區塊：圖片與文字間距 */
  .feature-block {
    gap: 24px;
  }

  .feature-block-reverse .feature-img {
    order: 0;
  }

  /* 手機版 Contact 區塊：表頭與表單間距 */
  .contact-form-header {
    padding: 20px 16px 0;
  }

  .contact-form {
    padding: 16px;
  }

  /* 手機版 section-header 間距 */
  .section-header {
    margin-bottom: 40px;
  }

  /* 手機版減少 sway 動畫位移量，避免水平溢出 */
  .reveal-sway {
    transform: translateX(-40px) rotate(-6deg);
  }
  .reveal-sway-right {
    transform: translateX(40px) rotate(6deg);
  }

  /* 手機版 feature-block 確保圖片在上、文字在下 */
  .feature-block-reverse .feature-img {
    order: 0;
  }
  .feature-block-reverse .feature-text {
    order: 0;
  }
}

.qp-block-tag {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.qp-block-desc {
  font-size: clamp(0.82rem, 1.8vw, 0.92rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.7;
}

/* 5Q5P 卡片網格 */
.qp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .qp-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}

.qp-card {
  background:
    linear-gradient(to bottom, var(--qp-color, var(--primary)) 0 4px, var(--white) 4px) no-repeat;
  border-radius: 24px;
  padding: 24px 20px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.qp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.qp-icon {
  width: clamp(60px, 15vw, 72px);
  height: clamp(60px, 15vw, 72px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: qpIconFloat 3s ease-in-out infinite;
}
.qp-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--qp-color, var(--primary));
  opacity: 0.15;
}
.qp-icon svg {
  width: clamp(48px, 12vw, 56px);
  height: clamp(48px, 12vw, 56px);
  position: relative;
  z-index: 1;
}

@keyframes qpIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.qp-card:hover .qp-icon {
  animation: qpIconBounce 0.6s ease;
}
@keyframes qpIconBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.15) rotate(-5deg); }
  50% { transform: scale(0.95) rotate(3deg); }
  75% { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

/* 5Q 內在力量配色 */
.qp-card-iq      { --qp-color: #4A8B6F; }
.qp-card-eq      { --qp-color: #C97A7A; }
.qp-card-aq      { --qp-color: #D49050; }
.qp-card-cq      { --qp-color: #8B6BA8; }
.qp-card-mq      { --qp-color: #D4A853; }

/* 5P 生活學習配色 */
.qp-card-play    { --qp-color: #5C8DAE; }
.qp-card-plant   { --qp-color: #6FA864; }
.qp-card-paint   { --qp-color: #D06262; }
.qp-card-perform { --qp-color: #9D70B8; }
.qp-card-peace   { --qp-color: #A89F7B; }

.qp-title {
  font-family: var(--ff-heading);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.3;
}

.qp-title small {
  display: block;
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.qp-card p {
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ========================================================
   BEAR DECORATIONS · v3 (2026-05-01)
   水彩繪本級熊熊 + SVG 配件
   ======================================================== */

/* bear-stage：包熊熊 + 配件，用於 Hero / 5Q / 5P / Form */
.bear-stage {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

/* 熊熊基礎 — img */
.bear-deco {
  display: block;
  pointer-events: none;
  user-select: none;
  width: 100px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(45, 90, 61, 0.18));
  transform-origin: center bottom;
}

/* 配件基礎 — SVG */
.bear-accent {
  display: block;
  pointer-events: none;
  position: absolute;
}

/* === 1. Hero 揮手熊 + 水彩水痕光暈 + 弧形緞帶 === */
.bear-stage-hero {
  bottom: 4%;
  right: 4%;
  width: 200px;
  height: 240px;
}
.bear-deco-hero {
  position: absolute;
  bottom: 24px;
  right: 12px;
  width: 140px;
  animation: bearGreet 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.bear-accent-hero-dots {
  top: -8px;
  right: 0;
  width: 180px;
  height: 180px;
  mix-blend-mode: screen;
  animation: accentBreathe 7s ease-in-out infinite;
  z-index: 1;
}
.bear-accent-hero-ribbon {
  bottom: -2px;
  left: 12px;
  width: 180px;
  height: 36px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: accentBreathe 6s ease-in-out infinite;
  animation-delay: -2s;
}

/* === 2. About 閱讀熊（低密度，無配件） === */
.bear-deco-about {
  position: absolute;
  bottom: 4%;
  left: -16px;
  width: 110px;
  z-index: 2;
  opacity: 0.95;
  animation: bearSwayLazy 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* === 3. 5Q 區畫畫熊（簡化，無配件） === */
.bear-deco-5q {
  position: absolute;
  top: -36px;
  right: -10px;
  width: 100px;
  z-index: 3;
  animation: bearSwayLazy 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

/* === 4. 5P 區唱歌熊（簡化，無配件） === */
.bear-deco-5p {
  position: absolute;
  top: -36px;
  right: -10px;
  width: 100px;
  z-index: 3;
  animation: bearGreet 4.6s ease-in-out infinite;
  animation-delay: -1s;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

/* === 5. Core 區探險熊（低密度） === */
.bear-deco-core {
  position: absolute;
  top: 110px;
  left: -10px;
  width: 95px;
  z-index: 2;
  opacity: 0.95;
  animation: bearSwayLazy 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* === 6. Form 區站姿熊（位於 form 內部右上，整隻可見） === */
.bear-deco-form {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 90px;
  z-index: 5;
  animation: bearGreet 5.4s ease-in-out infinite;
  animation-delay: -0.4s;
}
.bear-accent-form-heart {
  position: absolute;
  top: 18px;
  right: 92px;
  width: 28px;
  height: 28px;
  z-index: 5;
  animation: heartPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(212, 168, 83, 0.5));
}

/* 父容器需 position: relative 才能讓 absolute 定位生效 */
.section-about,
.section-architecture,
.section-environment,
.section-core {
  position: relative;
  overflow: hidden;
}
.contact-form-wrap {
  position: relative;
  overflow: visible;
}
.qp-block-header {
  position: relative;
}

/* === 動畫 keyframes === */
@keyframes bearGreet {
  0%   { transform: translateY(0) rotate(-3deg); }
  30%  { transform: translateY(-7px) rotate(2deg); }
  55%  { transform: translateY(-12px) rotate(6deg); }
  80%  { transform: translateY(-3px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(-3deg); }
}

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

@keyframes accentBreathe {
  0%, 100% { opacity: 0.8; transform: scale(0.96); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

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

@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.85; }
  50%      { transform: translateY(-8px) rotate(4deg); opacity: 1; }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.18); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.12); }
}

/* === 卡片內小熊熊（5P-Plant / 5P-Peace） === */
.qp-card {
  position: relative;
  overflow: visible;
}

.bear-card-deco {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 42px;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.75;
  z-index: 1;
  transform: rotate(-4deg);
  transform-origin: bottom right;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 4px 8px rgba(45, 90, 61, 0.18));
}

.qp-card:hover .bear-card-deco {
  transform: rotate(0deg) translateY(-3px) scale(1.08);
}

/* 確保文字內容在熊熊之上仍可讀 */
.qp-card .qp-icon,
.qp-card .qp-title,
.qp-card p {
  position: relative;
  z-index: 2;
}

/* 行動版：只保留 Hero + Form 主視覺，其他熊熊隱藏 */
@media (max-width: 767px) {
  .bear-deco-about,
  .bear-deco-core,
  .bear-deco-5q,
  .bear-deco-5p { display: none; }
  .bear-stage-hero {
    width: 150px;
    height: 180px;
    bottom: 12%;
    right: 4%;
  }
  .bear-deco-hero { width: 110px; bottom: 18px; right: 8px; }
  .bear-accent-hero-dots { width: 130px; height: 130px; top: -4px; }
  .bear-accent-hero-ribbon { width: 130px; left: 8px; bottom: -2px; height: 28px; }
  .bear-deco-form { width: 70px; top: 8px; right: 8px; }
  .bear-accent-form-heart { width: 24px; height: 24px; top: 14px; right: 72px; }
  .bear-card-deco { width: 36px; bottom: -6px; right: -6px; opacity: 0.7; }
}

/* 尊重 reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bear-deco,
  .bear-deco-hero,
  .bear-deco-about,
  .bear-deco-core,
  .bear-deco-5q,
  .bear-deco-5p,
  .bear-deco-form,
  .bear-accent,
  .bear-accent-hero-dots,
  .bear-accent-hero-ribbon,
  .bear-accent-form-heart,
  .bear-card-deco {
    animation: none !important;
  }
}



.features-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.section-features .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-block:hover .feature-img img {
  transform: scale(1.04);
}

.feature-num {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  color: rgba(var(--accent-rgb), 0.2);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.feature-text h3 {
  font-family: var(--ff-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--white);
  margin-bottom: 8px;
}

.feature-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-text p:last-child {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===========================================
   FOOD SECTION
   =========================================== */
.section-food {
  background: var(--bg-card);
  padding: 100px 0 120px;
}

.food-layout {
  text-align: center;
}

.food-intro {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 48px;
}

.food-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.food-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition:
    box-shadow var(--transition-smooth),
    transform var(--transition-smooth);
}

.food-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.food-card-icon {
  width: clamp(48px, 12vw, 56px);
  height: clamp(48px, 12vw, 56px);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: 50%;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.food-card-title {
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-main);
  margin-bottom: 8px;
}

.food-card-content {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--text-main);
  margin-bottom: 6px;
}

.food-card-standard {
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
}

.food-visual {
  max-width: 700px;
  margin: 0 auto;
}

.food-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ===========================================
   CORE CURRICULUM SECTION
   =========================================== */
.section-core {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
}

.section-core::before {
  content: "Curriculum";
  position: absolute;
  bottom: 80px;
  right: -2%;
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.04;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.section-core .container {
  position: relative;
  z-index: 1;
}

.core-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.core-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.core-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}

.core-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.core-item:hover .core-img img {
  transform: scale(1.04);
}

.core-img-todo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--bg-card) 0%, var(--border) 100%);
  border: 1px dashed var(--secondary);
}

.core-img-todo-label {
  display: none;
  font-family: var(--ff-heading);
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  letter-spacing: 0.08em;
  color: var(--secondary);
  text-align: center;
  padding: 12px 18px;
}

.core-img-todo .core-img-todo-label {
  display: block;
}

.core-text {
  padding: 0 4px;
}

.core-num {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.core-text h3 {
  font-family: var(--ff-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.3;
}

.core-tagline {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--secondary);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.core-text p:last-child {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.95;
  margin: 0;
}

@media (min-width: 768px) {
  .core-item {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .core-item-reverse .core-img {
    order: 2;
  }
  .core-item-reverse .core-text {
    order: 1;
  }
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.section-contact {
  background: var(--bg-main);
  padding: 80px 0 60px;
  overflow: hidden;
}

.contact-quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
  overflow: hidden;
}

a.contact-quick-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(var(--primary-rgb), 0.08);
}

.contact-quick-item > i,
.contact-quick-icon {
  flex-shrink: 0;
  width: clamp(40px, 10vw, 48px);
  height: clamp(40px, 10vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s ease;
}
.contact-quick-icon i {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  color: var(--primary);
}
.contact-quick-icon svg {
  width: clamp(36px, 9vw, 44px);
  height: clamp(36px, 9vw, 44px);
}
.contact-quick-item:hover .contact-quick-icon {
  transform: scale(1.1);
}
.contact-quick-item > i {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.contact-quick-label {
  display: block;
  font-size: clamp(0.68rem, 1.5vw, 0.75rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.contact-quick-value {
  display: block;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-form-header {
  padding: 24px 20px 0;
}

.contact-form-title {
  font-family: var(--ff-heading);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.contact-form-desc {
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
}

.contact-form {
  padding: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.form-group .label-zh {
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.form-group .label-en {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.required {
  color: #c44;
}

.form-group input,
.form-group select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  line-height: 1.4;
  color: var(--text-main);
  background: var(--bg-main);
  transition:
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input[type="date"] {
  min-height: 46px;
  line-height: 1.4;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group input.error {
  border-color: #c44;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-smooth),
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-primary i,
.btn-arrow {
  transition: transform var(--transition-smooth);
}
.btn-primary:hover i,
.btn-primary:hover .btn-arrow {
  transform: translateX(6px);
}
.btn-arrow {
  width: clamp(24px, 6vw, 28px);
  height: clamp(24px, 6vw, 28px);
}

.form-note {
  margin-top: 14px;
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
  text-align: center;
}

.form-note a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  text-align: center;
  padding: 48px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-success i,
.success-icon {
  color: var(--primary);
  margin-bottom: 16px;
}
.success-icon {
  width: clamp(60px, 15vw, 72px);
  height: clamp(60px, 15vw, 72px);
  display: block;
  margin-left: auto;
  margin-right: auto;
  animation: successPop 0.5s ease;
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.form-success p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--text-main);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 240px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
}

.contact-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.contact-social-label {
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: clamp(38px, 9vw, 44px);
  height: clamp(38px, 9vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  transition:
    background var(--transition-smooth),
    color var(--transition-smooth),
    transform var(--transition-smooth);
}
.social-links a svg {
  width: clamp(20px, 5vw, 24px);
  height: clamp(20px, 5vw, 24px);
}
.social-links a:hover {
  transform: translateY(-4px) scale(1.1);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* 社群圖示彩色版本 */
.social-links a[aria-label="Facebook"]:hover,
.footer-social a[aria-label="Facebook"]:hover {
  background: #1877F2;
  color: #fff;
}
.social-links a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.social-links a[aria-label="LINE"]:hover,
.footer-social a[aria-label="LINE"]:hover {
  background: #06C755;
  color: #fff;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity var(--transition-smooth);
}
.footer-brand-link:hover {
  opacity: 0.85;
}

.footer-logo-img {
  height: clamp(48px, 10vw, 60px);
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand-sub {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  margin-top: 2px;
}

.footer-tagline-en {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--accent);
  margin-bottom: 10px;
  margin-top: 0;
  font-style: italic;
}

.footer-desc {
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  line-height: 1.6;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h5,
.footer-contact h5 {
  color: var(--white);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-smooth);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-smooth);
}
.footer-link-icon {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: inherit;
}
.footer-links a:hover .footer-link-icon {
  transform: translateX(3px);
}

.footer-contact p {
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact p > i {
  flex-shrink: 0;
  color: inherit !important;
  font-size: clamp(1rem, 2.5vw, 1.15rem) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  line-height: 1;
}

/* Social Icons */
.social-links a i,
.footer-social a i {
  font-size: clamp(1.15rem, 2.5vw, 1.3rem);
  color: currentColor;
  transition: transform 0.3s ease;
}
.bi-line {
  font-size: clamp(1.3rem, 3vw, 1.5rem) !important;
}
.social-links a:hover i,
.footer-social a:hover i {
  transform: translateY(-3px) scale(1.08);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-smooth);
}
.footer-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.footer-links a:hover .footer-link-icon {
  transform: translateX(4px);
}

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

.footer-contact p {
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i,
.footer-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}
.footer-icon.bi {
  width: auto;
  height: auto;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: clamp(38px, 9vw, 44px);
  height: clamp(38px, 9vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition:
    border-color var(--transition-smooth),
    color var(--transition-smooth),
    background var(--transition-smooth),
    transform var(--transition-smooth);
}
.footer-social a svg {
  width: clamp(18px, 4.5vw, 22px);
  height: clamp(18px, 4.5vw, 22px);
}
.footer-social a:hover {
  transform: translateY(-3px) scale(1.08);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 168, 83, 0.12);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================================
   Back to Top
   =========================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: clamp(44px, 10vw, 52px);
  height: clamp(44px, 10vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--transition-smooth),
    visibility var(--transition-smooth),
    transform var(--transition-smooth),
    background var(--transition-smooth);
  border: none;
  cursor: pointer;
}
.back-to-top svg {
  width: clamp(22px, 5vw, 26px);
  height: clamp(22px, 5vw, 26px);
  transition: transform 0.3s ease;
}
.back-to-top:hover svg {
  transform: translateY(-3px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ===========================================
   RESPONSIVE - Tablet (768px+)
   =========================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .about-quote {
    font-size: 1.15rem;
  }
  .about-desc {
    font-size: 0.95rem;
  }
  .features-block-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
  }
  .feature-text h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.4rem);
  }
  .core-text h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  }
}

@media (min-width: 768px) {
  .about-intro {
    grid-template-columns: 55fr 45fr;
    gap: 56px;
    align-items: center;
  }

  .class-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-quick {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
  }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .contact-form-header {
    padding: 32px 32px 0;
  }

  .contact-form {
    padding: 24px 32px 32px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .btn-primary {
    width: auto;
    display: inline-flex;
  }

  .form-note {
    text-align: left;
  }

  .contact-map {
    flex: 1;
    min-height: 0;
  }

  .contact-map iframe {
    height: 100%;
  }

  .food-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .feature-block-reverse .feature-img {
    order: 2;
  }

  .feature-block-reverse .feature-text {
    order: 1;
  }

  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===========================================
   RESPONSIVE - Desktop (992px+)
   =========================================== */
@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }

  .courses-layout {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  .about-intro {
    gap: 72px;
  }
}

/* ===========================================
   RESPONSIVE - Large (1200px+)
   =========================================== */
@media (min-width: 1200px) {
  .class-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===========================================
   RESPONSIVE - Mobile (<768px)
   =========================================== */
@media (max-width: 767px) {
  :root {
    --nav-height: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  /* 手機版選單裝飾：預設隱藏，選單展開時顯示 */
  .nav-menu-bear,
  .nav-menu-leaf {
    display: none;
  }
  .nav-menu.open .nav-menu-bear,
  .nav-menu.open .nav-menu-leaf {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(160deg, var(--bg-main) 0%, var(--white) 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    gap: 0;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
    transition: right var(--transition-smooth);
    z-index: 999;
    overflow: hidden;
  }

  .nav-menu.open {
    right: 0;
  }

  /* 選單背景裝飾：浮動圓點 */
  .nav-menu::before {
    content: '';
    position: absolute;
    top: 12%;
    right: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .nav-menu::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.08), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* 選單內熊熊裝飾 */
  .nav-menu-bear {
    position: absolute;
    bottom: 6%;
    right: 8%;
    width: 100px;
    height: auto;
    opacity: 0.7;
    filter: drop-shadow(0 4px 12px rgba(45, 90, 61, 0.15));
    animation: navBearFloat 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }

  /* 選單內小葉片裝飾 */
  .nav-menu-leaf {
    position: absolute;
    top: 18%;
    left: 12%;
    width: 32px;
    height: auto;
    opacity: 0.35;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
  }

  .nav-menu .nav-link {
    color: var(--text-main);
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 500;
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: 0.04em;
    transition: color var(--transition-smooth), transform var(--transition-smooth);
    position: relative;
    z-index: 2;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:active {
    color: var(--primary);
    transform: scale(1.03);
  }

  .nav-menu .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav-cta {
    margin-top: 20px;
    text-align: center;
    width: 80%;
    max-width: 240px;
    display: block;
    border-bottom: none !important;
    border-radius: var(--radius-sm);
    font-size: clamp(1rem, 3vw, 1.1rem);
    padding: 14px 24px;
    position: relative;
    z-index: 2;
  }

  @keyframes navBearFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
  }

  .section-about {
    padding: 80px 0 60px;
  }

  .section-environment {
    padding: 60px 0 80px;
  }

  .section-courses {
    padding: 80px 0 60px;
  }

  .section-features {
    padding: 80px 0 60px;
  }

  .section-food {
    padding: 60px 0 80px;
  }

  .about-intro {
    margin-bottom: 64px;
  }

  .courses-img-float {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 16px;
    border: none;
  }

  .hero-section {
    min-height: 500px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    line-height: 1.3;
  }

  .hero-br {
    display: none;
  }

  .hero-label {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    margin-bottom: 12px;
  }

  .hero-title-en {
    font-size: clamp(0.8rem, 4vw, 1rem);
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: clamp(0.8rem, 4vw, 1rem);
    margin-bottom: 20px;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: clamp(0.85rem, 3vw, 0.9rem);
  }

  .wave-divider svg {
    height: clamp(30px, 8vw, 40px);
  }
}

@media (max-width: 480px) {
  /* 極小螢幕確保文字不會過小 */
  .section-title {
    font-size: 1.5rem;
  }
  .section-desc {
    font-size: 0.88rem;
  }
  .about-quote {
    font-size: 1.05rem;
  }
  .about-quote::before {
    font-size: 3rem;
    top: -10px;
  }
  .about-quote::after {
    font-size: 3rem;
    bottom: -24px;
  }
  .about-quote-en {
    font-size: 0.82rem;
  }
  .about-desc {
    font-size: 0.88rem;
  }
  .organ-toggle-title {
    font-size: 1rem;
  }
  .organ-toggle-en {
    font-size: 0.78rem;
  }
  .organ-body-inner {
    font-size: 0.88rem;
    padding: 8px 16px 20px 16px;
  }
  .bento-text-title {
    font-size: 1.05rem;
  }
  .bento-text-desc {
    font-size: 0.85rem;
  }
  .features-block-title {
    font-size: 1.3rem;
  }
  .feature-text h3 {
    font-size: 1.2rem;
  }
  .feature-text p:last-child {
    font-size: 0.85rem;
  }
  .core-text h3 {
    font-size: 1.15rem;
  }
  .core-text p:last-child {
    font-size: 0.88rem;
  }
  .qp-title {
    font-size: 0.9rem;
  }
  .qp-card p {
    font-size: 0.78rem;
  }
}

/* ===========================================
   Beautification: Decorative Elements
   =========================================== */

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.22;
  }
}

.section-label {
  position: relative;
  padding-left: 52px;
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--secondary);
}

.section-label-light::before {
  background: var(--accent);
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg width='60' height='3' viewBox='0 0 60 3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5 Q15 0 30 1.5 Q45 3 60 1.5' stroke='%23D4A853' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.4s;
}

/* 當 section-title 在 reveal 容器內 */
.reveal.active .section-title::after,
.reveal-fade.active.section-title::after,
.reveal-sprout.active.section-title::after,
.reveal-bounce.active.section-title::after,
.reveal-breathe.active.section-title::after {
  transform: scaleX(1);
}

/* 不在 reveal 容器內或為 hero 等已可見元素，直接顯示 underline */
.hero-section .section-title::after {
  transform: scaleX(1);
  transition-delay: 0s;
}

.section-header .section-title::after,
.food-header .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-title-light::after {
  background: url("data:image/svg+xml,%3Csvg width='60' height='3' viewBox='0 0 60 3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5 Q15 0 30 1.5 Q45 3 60 1.5' stroke='%23D4A853' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.hero-subtitle {
  position: relative;
  padding-top: 24px;
}

.hero-subtitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.class-card {
  border-left: 4px solid transparent;
}

.class-card:hover {
  border-left-color: var(--primary);
  transform: translateY(-4px) scale(1.02);
}

.food-card {
  position: relative;
}

.food-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.food-card:hover::before {
  opacity: 1;
}

.food-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.feature-block:hover {
  transform: scale(1.01);
  transition: transform 0.4s ease;
}

.section-features {
  background: linear-gradient(
    175deg,
    #1a2e22 0%,
    #1e3a2a 40%,
    #243d30 100%
  );
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.section-about {
  position: relative;
  overflow: hidden;
}

.section-about::before,
.section-about::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  animation: gentleFloat 8s ease-in-out infinite;
}

.section-about::before {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -80px;
  right: -100px;
}

.section-about::after {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: 60px;
  left: -60px;
  animation-delay: 3s;
}

.section-food {
  position: relative;
  overflow: hidden;
}

.section-food::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.04;
  top: 40px;
  left: -80px;
  pointer-events: none;
  animation: gentleFloat 10s ease-in-out infinite;
}

.section-contact {
  position: relative;
  overflow: hidden;
}

.section-contact::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  bottom: -100px;
  right: -80px;
  pointer-events: none;
  animation: gentleFloat 9s ease-in-out infinite 2s;
}

.about-quote {
  position: relative;
  padding: 0 32px;
}

.about-quote::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -16px;
  font-family: var(--ff-heading);
  font-size: clamp(3rem, 6vw, 4rem);
  color: var(--secondary);
  opacity: 0.2;
  line-height: 1;
}

.about-quote::after {
  content: "\201D";
  position: absolute;
  right: 4px;
  bottom: -32px;
  font-family: var(--ff-heading);
  font-size: clamp(3rem, 6vw, 4rem);
  color: var(--secondary);
  opacity: 0.2;
  line-height: 1;
}

.about-img-accent {
  animation: gentlePulse 4s ease-in-out infinite;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.scroll-progress {
  height: 4px;
  box-shadow:
    0 0 8px rgba(var(--primary-rgb), 0.4),
    0 0 16px rgba(var(--accent-rgb), 0.2);
}

.section-courses {
  position: relative;
}

.section-courses::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 4px,
    transparent 4px,
    transparent 12px
  );
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.section-header .section-label,
.food-header .section-label,
.qp-header .section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
}

.qp-block-header .section-label,
.features-block .courses-text .section-label {
  display: inline-flex;
  align-items: center;
  padding-left: 0;
}

.section-header .section-label::before,
.food-header .section-label::before,
.qp-header .section-label::before,
.qp-block-header .section-label::before,
.features-block .courses-text .section-label::before {
  position: relative;
  left: auto;
  top: auto;
  width: 40px;
  height: 1px;
  margin-right: 12px;
  flex-shrink: 0;
}

.section-header .section-label::after,
.food-header .section-label::after,
.qp-header .section-label::after,
.qp-block-header .section-label::after,
.features-block .courses-text .section-label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--secondary);
  margin-left: 12px;
  flex-shrink: 0;
}

.section-header .section-label-light::after,
.qp-header .section-label-light::after,
.qp-block-header .section-label-light::after,
.features-block .courses-text .section-label-light::after {
  background: var(--accent);
}

/* features-block 內的 left-aligned label (Language tab) 不需要 right line */
.features-block .courses-text .section-label::after {
  display: none;
}

/* Container z-index above floating decorations */
.section-about .container,
.section-food .container,
.section-contact .container {
  position: relative;
  z-index: 1;
}

/* Courses section floating decorations */
.section-courses {
  position: relative;
  overflow: hidden;
}

.section-courses::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.04;
  top: 5%;
  right: -60px;
  pointer-events: none;
  animation: gentleFloat 9s ease-in-out infinite;
}

.section-courses .container {
  position: relative;
  z-index: 1;
}

/* Feature img vignette */
.feature-img {
  position: relative;
}

.feature-img::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  pointer-events: none;
}

/* Mobile menu overlay */
.nav-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}

.nav-menu-overlay.active {
  display: block;
}

/* Body scroll lock */
body.menu-open {
  overflow: hidden;
}

/* ===========================================
   PAGE LOADER · Seed to Tree Animation
   =========================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(160deg, #f5ede3 0%, #faf7f2 40%, #e8f0e4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-scene {
  position: relative;
  width: 220px;
  height: 260px;
}
.loader-ground {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 8px;
  background: linear-gradient(90deg, transparent, #c8a882, #b8956e, #c8a882, transparent);
  border-radius: 50%;
  opacity: 0;
  animation: groundAppear 0.5s ease-out 0.3s forwards;
}
.loader-seed {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 18px;
  height: 22px;
  background: radial-gradient(ellipse at 40% 35%, #8B6B4A, #6B4F35);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: seedDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}
.loader-sprout {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
  width: 4px;
  height: 40px;
  background: linear-gradient(to top, #5a9e6f, #7bc47f);
  border-radius: 2px;
  animation: sproutGrow 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards;
}
.loader-sprout::before,
.loader-sprout::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 10px;
  background: #7bc47f;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
}
.loader-sprout::before {
  top: 4px;
  left: -14px;
  transform: rotate(-30deg) scale(0);
  animation: leafAppear 0.4s ease-out 1.6s forwards;
}
.loader-sprout::after {
  top: 10px;
  right: -14px;
  transform: rotate(30deg) scale(0);
  animation: leafAppear 0.4s ease-out 1.8s forwards;
}
.loader-trunk {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
  width: 14px;
  height: 80px;
  background: linear-gradient(to right, #8B6B4A, #a0845e, #8B6B4A);
  border-radius: 4px;
  opacity: 0;
  animation: trunkGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s forwards;
}
.loader-canopy {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  animation: canopyAppear 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2.8s forwards,
             canopySway 2s ease-in-out 3.7s infinite;
}
.loader-canopy-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6fbf73, #3d8b4f);
}
.loader-canopy-circle:nth-child(1) {
  width: 60px;
  height: 60px;
  left: -30px;
  top: -30px;
}
.loader-canopy-circle:nth-child(2) {
  width: 50px;
  height: 50px;
  left: -10px;
  top: -45px;
  background: radial-gradient(circle at 35% 35%, #7bc47f, #4a9e5a);
}
.loader-canopy-circle:nth-child(3) {
  width: 55px;
  height: 55px;
  left: -40px;
  top: -40px;
  background: radial-gradient(circle at 35% 35%, #5aad6a, #2d7a3d);
}
.loader-bear {
  position: absolute;
  bottom: 38px;
  right: 20px;
  width: 50px;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: bearPeek 0.6s ease-out 3.4s forwards;
  filter: drop-shadow(0 4px 8px rgba(45, 90, 61, 0.2));
}
.loader-text {
  margin-top: 32px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: clamp(0.88rem, 3vw, 1rem);
  color: #2d5a3d;
  letter-spacing: 0.15em;
  opacity: 0;
  animation: textFadeIn 0.5s ease-out 3.6s forwards;
}
.loader-text-sub {
  margin-top: 6px;
  font-family: 'Kalam', cursive;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  color: #c8956c;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: textFadeIn 0.5s ease-out 3.8s forwards;
}
.loader-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.loader-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a853;
  opacity: 0;
}
.loader-sparkle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation: sparkleFloat 1.2s ease-out 3s forwards;
}
.loader-sparkle:nth-child(2) {
  top: 30%;
  right: 18%;
  width: 4px;
  height: 4px;
  background: #7bc47f;
  animation: sparkleFloat 1s ease-out 3.2s forwards;
}
.loader-sparkle:nth-child(3) {
  top: 15%;
  left: 45%;
  width: 5px;
  height: 5px;
  animation: sparkleFloat 1.1s ease-out 3.4s forwards;
}
.loader-sparkle:nth-child(4) {
  top: 45%;
  right: 10%;
  width: 4px;
  height: 4px;
  background: #c8956c;
  animation: sparkleFloat 0.9s ease-out 3.6s forwards;
}
.loader-sparkle:nth-child(5) {
  top: 55%;
  left: 10%;
  width: 5px;
  height: 5px;
  background: #7bc47f;
  animation: sparkleFloat 1s ease-out 3.8s forwards;
}

@keyframes groundAppear {
  from { opacity: 0; transform: translateX(-50%) scaleX(0.3); }
  to { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
}
@keyframes seedDrop {
  0% { transform: translateX(-50%) scale(0) translateY(-30px); }
  60% { transform: translateX(-50%) scale(1.1) translateY(0); }
  100% { transform: translateX(-50%) scale(1) translateY(0); }
}
@keyframes sproutGrow {
  from { transform: translateX(-50%) scaleY(0); opacity: 0; }
  to { transform: translateX(-50%) scaleY(1); opacity: 1; }
}
@keyframes leafAppear {
  from { transform: rotate(-30deg) scale(0); opacity: 0; }
  to { transform: rotate(-30deg) scale(1); opacity: 1; }
}
@keyframes trunkGrow {
  from { transform: translateX(-50%) scaleY(0); opacity: 0; }
  to { transform: translateX(-50%) scaleY(1); opacity: 1; }
}
@keyframes canopyAppear {
  from { transform: translateX(-50%) scale(0); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}
@keyframes canopySway {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(2deg); }
  75% { transform: translateX(-50%) rotate(-2deg); }
}
@keyframes bearPeek {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes textFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sparkleFloat {
  0% { opacity: 0; transform: scale(0) translateY(0); }
  50% { opacity: 1; transform: scale(1.2) translateY(-10px); }
  100% { opacity: 0; transform: scale(0.8) translateY(-20px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    background: linear-gradient(160deg, #f5ede3 0%, #faf7f2 40%, #e8f0e4 100%);
  }
  .loader-seed, .loader-sprout, .loader-trunk, .loader-canopy,
  .loader-bear, .loader-text, .loader-text-sub, .loader-ground,
  .loader-sparkle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
