/* =====================================================================
   前台節慶／主題風格（由 html[data-site-theme] 驅動；標準版變數定義於 site.css）
   ===================================================================== */

/* ── 端午 dragon-boat ───────────────────────────────────────────── */
html[data-site-theme="dragon-boat"] {
  --xh-primary: #2d9b86;
  --xh-primary-soft: #e8f7f3;
  --xh-primary-deep: #1f6b5c;
  --xh-secondary: #3aa89c;
  --xh-secondary-light: #b8ebe3;
  --xh-accent: #7cb87a;
  --xh-accent-light: #e3f4e2;
  --xh-warm: #c4a35a;
  --xh-warm-light: #f5edd8;
  --xh-bg: #f4faf8;
  --xh-surface: #ffffff;
  --xh-surface-soft: #eef8f5;
  --xh-text: #1e3d36;
  --xh-muted: #4a6b63;
  --xh-border: #c5e4dc;
  --xh-shadow: 0 8px 28px rgba(45, 155, 134, 0.12);
  --xh-shadow-soft: 0 4px 14px rgba(45, 155, 134, 0.08);
  --xh-shadow-playful: 0 12px 32px rgba(45, 155, 134, 0.16);
  --xh-header-bg: linear-gradient(135deg, #dff5ef 0%, #f8fffd 42%, #cfeee5 100%);
  --xh-header-border: #b8e0d6;
  --xh-header-shadow: 0 10px 28px rgba(45, 155, 134, 0.16);
  --xh-header-glow: rgba(45, 155, 134, 0.24);
  --xh-header-title: #165348;
  --xh-header-subtitle: #3d7568;
  --xh-header-link: #165348;
  --xh-header-link-hover-bg: rgba(45, 155, 134, 0.14);
  --xh-header-link-hover-color: #165348;
  --xh-header-nav-panel: rgba(247, 255, 252, 0.66);
  --xh-header-nav-border: rgba(184, 224, 214, 0.8);
  --xh-header-ornament-filter: saturate(1.02);
  --xh-footer-bg: linear-gradient(180deg, #eef8f5 0%, #dff5ef 100%);
  --xh-footer-border: #b8e0d6;
  --xh-footer-shadow: 0 -10px 22px rgba(45, 155, 134, 0.11);
  --xh-footer-text: #2f5a51;
  --xh-footer-muted: #44746a;
  --xh-footer-title: #1f554b;
  --xh-footer-link: #1f6b5c;
  --xh-footer-link-hover: #155446;
  --xh-footer-badge-bg: rgba(45, 155, 134, 0.08);
  --xh-footer-badge-border: rgba(45, 155, 134, 0.3);
  --xh-footer-badge-text: #25695d;
  --xh-footer-ornament-left-image: url('/img/deco/zong-leaf.svg');
  --xh-footer-ornament-right-image: url('/img/deco/dragonboat.svg');
  --xh-footer-ornament-left-opacity: 0.5;
  --xh-footer-ornament-right-opacity: 0.35;
  --xh-footer-ornament-filter: saturate(0.96);
  --xh-hero-bg:
    radial-gradient(circle at 86% 16%, rgba(45, 155, 134, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 12% 84%, rgba(196, 163, 90, 0.16) 0%, transparent 40%),
    linear-gradient(145deg, #eef8f5 0%, #ffffff 68%);
  --xh-hero-border: #b8e0d6;
  --xh-hero-shadow: 0 14px 32px rgba(45, 155, 134, 0.14);
  --xh-hero-glow: rgba(45, 155, 134, 0.24);
  --xh-hero-kicker-text: #1f6b5c;
  --xh-hero-kicker-bg: linear-gradient(135deg, rgba(45, 155, 134, 0.16), rgba(124, 184, 122, 0.12));
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 30%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 18%, transparent) 100%);
  --xh-hero-image-card-border: #c5e4dc;
  --xh-hero-image-card-shadow: 0 10px 24px rgba(45, 155, 134, 0.14);
  --xh-hero-meta-bg: rgba(247, 255, 252, 0.72);
  --xh-hero-meta-border: rgba(45, 155, 134, 0.26);
  --xh-hero-meta-shadow: 0 10px 24px rgba(45, 155, 134, 0.12);
  --xh-hero-ornament-left-image: url('/img/deco/zong-leaf.svg');
  --xh-hero-ornament-right-image: url('/img/deco/dragonboat.svg');
  --xh-hero-ornament-left-opacity: 0.76;
  --xh-hero-ornament-right-opacity: 0.62;
  --xh-hero-ornament-filter: saturate(0.94);
  --xh-page-hero-bg:
    radial-gradient(circle at 86% 10%, rgba(45, 155, 134, 0.2) 0%, transparent 38%),
    linear-gradient(180deg, #f5fcfa 0%, #eef8f5 100%);
  --xh-page-hero-border: #b8e0d6;
  --xh-page-hero-shadow: 0 8px 18px rgba(45, 155, 134, 0.1);
  --xh-page-hero-title: #1f6b5c;
  --xh-page-hero-lead: #44746a;
  --xh-page-hero-ornament-left-image: url('/img/deco/zong-leaf.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/dragonboat.svg');
  --xh-page-hero-ornament-left-opacity: 0.58;
  --xh-page-hero-ornament-right-opacity: 0.52;
  --xh-page-hero-ornament-filter: saturate(0.95);
  --xh-header-glass-bg: linear-gradient(135deg, rgba(223, 245, 239, 0.84) 0%, rgba(248, 255, 253, 0.72) 48%, rgba(207, 238, 229, 0.66) 100%);
  --xh-shell-bg: linear-gradient(180deg, rgba(248, 255, 253, 0.7) 0%, rgba(238, 248, 245, 0.58) 100%);
  --xh-footer-glass-bg: linear-gradient(180deg, rgba(238, 248, 245, 0.82) 0%, rgba(223, 245, 239, 0.68) 100%);
  --xh-scene-opacity: 0.38;
  --xh-scene-filter: saturate(1.04);
  --xh-scene-overlay:
    radial-gradient(circle at 18% 22%, rgba(45, 155, 134, 0.22) 0%, transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(196, 163, 90, 0.18) 0%, transparent 34%),
    linear-gradient(180deg, rgba(223, 245, 239, 0.12) 0%, transparent 100%);
  --xh-scene-glow:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.18) 0%, transparent 46%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 26%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%);
  --xh-page-panel-border: #b8e0d6;
  --xh-menu-filter-bg: linear-gradient(135deg, rgba(238, 248, 245, 0.78) 0%, rgba(255, 255, 255, 0.6) 100%);
  --xh-photo-card-hover-shadow: 0 10px 24px rgba(45, 155, 134, 0.2);
  --xh-home-section-bg: linear-gradient(180deg, rgba(248, 255, 253, 0.66) 0%, rgba(238, 248, 245, 0.54) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 100%);
}

html[data-site-theme="dragon-boat"] body.front-site {
  background:
    radial-gradient(circle at 88% 8%, rgba(45, 155, 134, 0.18) 0%, transparent 36%),
    radial-gradient(circle at 12% 35%, rgba(196, 163, 90, 0.12) 0%, transparent 38%),
    linear-gradient(180deg, #f4faf8 0%, #eef8f5 55%, #ffffff 100%);
}

html[data-site-theme="dragon-boat"] body.front-site::before {
  background: radial-gradient(circle, rgba(45, 155, 134, 0.2) 0%, transparent 70%);
}

html[data-site-theme="dragon-boat"] body.front-site::after {
  background: radial-gradient(circle, rgba(124, 184, 122, 0.16) 0%, transparent 72%);
}

html[data-site-theme="dragon-boat"] .site-header {
  background: linear-gradient(135deg, #e8f7f3 0%, #f8fffd 55%, #dff5ef 100%);
  border-bottom-color: #b8e0d6;
  box-shadow: 0 4px 20px rgba(45, 155, 134, 0.1);
}

html[data-site-theme="dragon-boat"] .site-nav-link.active {
  background: linear-gradient(120deg, #2d9b86, #3cb39a);
  box-shadow: 0 4px 12px rgba(45, 155, 134, 0.3);
  color: #fff;
}

html[data-site-theme="dragon-boat"] .site-brand-logo {
  border-color: rgba(45, 155, 134, 0.25);
  box-shadow: 0 4px 14px rgba(45, 155, 134, 0.18);
}

html[data-site-theme="dragon-boat"] .site-brand-subtitle-en {
  color: #3d7568;
}

html[data-site-theme="dragon-boat"] .kinder-deco-layer {
  filter: hue-rotate(-18deg) saturate(1.05) brightness(0.98);
  opacity: 0.95;
}

/* dragon-boat: 粽子 + 龍舟 大圖浮動 */
html[data-site-theme="dragon-boat"] .kd-sun {
  background-image: url('/img/deco/zong-leaf.svg');
  animation: kd-float-slow 10s ease-in-out infinite;
  height: 210px;
  width: 150px;
  opacity: 0.80;
  right: -30px;
  top: 7%;
}
html[data-site-theme="dragon-boat"] .kd-rainbow {
  background-image: url('/img/deco/dragonboat.svg');
  animation: kd-float 12s ease-in-out infinite;
  height: 190px;
  width: 390px;
  bottom: 10%;
  left: -90px;
  opacity: 0.65;
}
html[data-site-theme="dragon-boat"] .kd-flower-1 {
  background-image: url('/img/deco/zong-leaf.svg');
  animation: kd-float 9s ease-in-out infinite 3s;
  height: 165px;
  width: 115px;
  bottom: 24%;
  right: -20px;
  opacity: 0.70;
}
html[data-site-theme="dragon-boat"] .kd-heart-1 {
  background-image: url('/img/deco/standing-egg.svg');
  animation: kd-float-slow 8s ease-in-out infinite 1.5s;
  height: 136px;
  width: 90px;
  right: -10px;
  top: 18%;
  opacity: 0.66;
}
html[data-site-theme="dragon-boat"] .kd-star-2 {
  background-image: url('/img/deco/standing-egg.svg');
  animation: kd-sway 9s ease-in-out infinite;
  height: 104px;
  width: 70px;
  left: -20px;
  top: 58%;
  opacity: 0.52;
}
html[data-site-theme="dragon-boat"] .kd-cloud-1 {
  background-image: url('/img/deco/zongzi.svg');
  width: 100px;
  height: 120px;
  left: -30px;
  top: 15%;
  opacity: 0.6;
}
html[data-site-theme="dragon-boat"] .kd-balloon-coral {
  background-image: url('/img/deco/zongzi-string.svg');
  width: 80px;
  height: 180px;
  right: -15px;
  bottom: 15%;
  opacity: 0.75;
}


/* ── 中秋 mid-autumn ───────────────────────────────────────────── */
html[data-site-theme="mid-autumn"] {
  --xh-primary: #e8b84a;
  --xh-primary-soft: #fff8e8;
  --xh-primary-deep: #a56b12;
  --xh-secondary: #5b7aab;
  --xh-secondary-light: #c9d8f0;
  --xh-accent: #c45c8a;
  --xh-accent-light: #fde8f2;
  --xh-warm: #f0a030;
  --xh-warm-light: #ffe8cc;
  --xh-bg: #fff9f0;
  --xh-surface: #fffdfb;
  --xh-surface-soft: #fff4e6;
  --xh-text: #3d2e1f;
  --xh-muted: #7a6550;
  --xh-border: #edd9b8;
  --xh-shadow: 0 8px 28px rgba(91, 122, 171, 0.12);
  --xh-shadow-soft: 0 4px 14px rgba(232, 184, 74, 0.1);
  --xh-shadow-playful: 0 12px 32px rgba(91, 122, 171, 0.15);
  --xh-header-bg: linear-gradient(135deg, #182743 0%, #2b4066 16%, #fef4dc 16%, #fff4e6 68%, #f2f6ff 100%);
  --xh-header-border: #e8d4a8;
  --xh-header-shadow: 0 12px 30px rgba(42, 61, 98, 0.22);
  --xh-header-glow: rgba(232, 184, 74, 0.28);
  --xh-header-title: #fff7dd;
  --xh-header-subtitle: #f0d58e;
  --xh-header-link: #304b75;
  --xh-header-link-hover-bg: rgba(232, 184, 74, 0.16);
  --xh-header-link-hover-color: #304b75;
  --xh-header-nav-panel: rgba(255, 248, 232, 0.74);
  --xh-header-nav-border: rgba(255, 224, 170, 0.72);
  --xh-header-ornament-filter: drop-shadow(0 8px 18px rgba(21, 31, 54, 0.18));
  --xh-footer-bg: linear-gradient(180deg, #fff8e8 0%, #fff2de 100%);
  --xh-footer-border: #e8d4a8;
  --xh-footer-shadow: 0 -10px 24px rgba(91, 122, 171, 0.14);
  --xh-footer-text: #4a3c2f;
  --xh-footer-muted: #765f46;
  --xh-footer-title: #3a2d20;
  --xh-footer-link: #5b7aab;
  --xh-footer-link-hover: #435f88;
  --xh-footer-badge-bg: rgba(232, 184, 74, 0.18);
  --xh-footer-badge-border: rgba(91, 122, 171, 0.28);
  --xh-footer-badge-text: #6f572c;
  --xh-footer-ornament-left-image: url('/img/deco/mooncake.svg');
  --xh-footer-ornament-right-image: url('/img/deco/moon.svg');
  --xh-footer-ornament-left-opacity: 0.42;
  --xh-footer-ornament-right-opacity: 0.3;
  --xh-footer-ornament-filter: drop-shadow(0 10px 16px rgba(42, 61, 98, 0.12));
  --xh-hero-bg:
    radial-gradient(circle at 88% 12%, rgba(232, 184, 74, 0.26) 0%, transparent 42%),
    radial-gradient(circle at 8% 86%, rgba(91, 122, 171, 0.2) 0%, transparent 42%),
    linear-gradient(145deg, #fff8e8 0%, #fff2de 68%);
  --xh-hero-border: #e8d4a8;
  --xh-hero-shadow: 0 14px 34px rgba(91, 122, 171, 0.14);
  --xh-hero-glow: rgba(232, 184, 74, 0.3);
  --xh-hero-kicker-text: #5b7aab;
  --xh-hero-kicker-bg: linear-gradient(135deg, rgba(232, 184, 74, 0.22), rgba(91, 122, 171, 0.14));
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 30%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 18%, transparent) 100%);
  --xh-hero-image-card-border: #edd9b8;
  --xh-hero-image-card-shadow: 0 10px 24px rgba(91, 122, 171, 0.14);
  --xh-hero-meta-bg: rgba(255, 248, 232, 0.76);
  --xh-hero-meta-border: rgba(232, 184, 74, 0.34);
  --xh-hero-meta-shadow: 0 10px 24px rgba(91, 122, 171, 0.12);
  --xh-hero-ornament-left-image: url('/img/deco/mooncake.svg');
  --xh-hero-ornament-right-image: url('/img/deco/moon.svg');
  --xh-hero-ornament-left-opacity: 0.76;
  --xh-hero-ornament-right-opacity: 0.60;
  --xh-hero-ornament-filter: drop-shadow(0 8px 14px rgba(58, 78, 109, 0.12));
  --xh-page-hero-bg:
    radial-gradient(circle at 86% 10%, rgba(232, 184, 74, 0.22) 0%, transparent 38%),
    linear-gradient(180deg, #fff9ec 0%, #fff4e6 100%);
  --xh-page-hero-border: #e8d4a8;
  --xh-page-hero-shadow: 0 8px 18px rgba(91, 122, 171, 0.1);
  --xh-page-hero-title: #5b7aab;
  --xh-page-hero-lead: #725f4a;
  --xh-page-hero-ornament-left-image: url('/img/deco/mooncake.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/moon.svg');
  --xh-page-hero-ornament-left-opacity: 0.60;
  --xh-page-hero-ornament-right-opacity: 0.54;
  --xh-page-hero-ornament-filter: drop-shadow(0 8px 12px rgba(91, 122, 171, 0.08));
  --xh-header-glass-bg: linear-gradient(135deg, rgba(24, 39, 67, 0.82) 0%, rgba(43, 64, 102, 0.72) 18%, rgba(255, 244, 230, 0.72) 18%, rgba(242, 246, 255, 0.64) 100%);
  --xh-shell-bg: linear-gradient(180deg, rgba(255, 249, 236, 0.72) 0%, rgba(255, 244, 230, 0.6) 100%);
  --xh-footer-glass-bg: linear-gradient(180deg, rgba(255, 248, 232, 0.82) 0%, rgba(255, 242, 222, 0.68) 100%);
  --xh-scene-opacity: 0.42;
  --xh-scene-filter: saturate(1.06) brightness(0.98);
  --xh-scene-overlay:
    radial-gradient(circle at 70% 18%, rgba(232, 184, 74, 0.28) 0%, transparent 30%),
    radial-gradient(circle at 18% 68%, rgba(91, 122, 171, 0.24) 0%, transparent 36%),
    linear-gradient(180deg, rgba(24, 39, 67, 0.18) 0%, rgba(255, 244, 230, 0.06) 34%, transparent 100%);
  --xh-scene-glow:
    radial-gradient(circle at 76% 16%, rgba(255, 245, 214, 0.22) 0%, transparent 28%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 26%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%);
  --xh-page-panel-border: #e8d4a8;
  --xh-menu-filter-bg: linear-gradient(135deg, rgba(255, 248, 232, 0.8) 0%, rgba(255, 253, 251, 0.62) 100%);
  --xh-photo-card-hover-shadow: 0 10px 24px rgba(91, 122, 171, 0.2);
  --xh-home-section-bg: linear-gradient(180deg, rgba(255, 249, 236, 0.68) 0%, rgba(255, 244, 230, 0.56) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 100%);
}

html[data-site-theme="mid-autumn"] body.front-site {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232, 184, 74, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 8% 40%, rgba(91, 122, 171, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 92% 70%, rgba(196, 92, 138, 0.08) 0%, transparent 38%),
    linear-gradient(180deg, #1a2744 0%, #2a3d62 12%, #fff9f0 12%, #fff4e6 100%);
}

html[data-site-theme="mid-autumn"] body.front-site::before {
  background: radial-gradient(circle, rgba(232, 184, 74, 0.25) 0%, transparent 68%);
}

html[data-site-theme="mid-autumn"] body.front-site::after {
  background: radial-gradient(circle, rgba(91, 122, 171, 0.18) 0%, transparent 72%);
}

html[data-site-theme="mid-autumn"] .site-header {
  background: linear-gradient(135deg, #fff8e8 0%, #f2f6ff 50%, #fff4e6 100%);
  border-bottom-color: #e8d4a8;
  box-shadow: 0 4px 20px rgba(91, 122, 171, 0.08);
}

html[data-site-theme="mid-autumn"] .site-nav-link.active {
  background: linear-gradient(120deg, #5b7aab, #7a96c9);
  box-shadow: 0 4px 12px rgba(91, 122, 171, 0.35);
  color: #fff;
}

html[data-site-theme="mid-autumn"] .site-brand-subtitle-en {
  color: #8a6a3a;
}

html[data-site-theme="mid-autumn"] .kinder-deco-layer {
  filter: hue-rotate(200deg) saturate(0.85) brightness(1.05);
  opacity: 0.88;
}

/* mid-autumn: 月亮 + 月餅 大圖浮動 */
html[data-site-theme="mid-autumn"] .kd-sun {
  background-image: url('/img/deco/moon.svg');
  animation: kd-float-slow 14s ease-in-out infinite;
  height: 220px;
  width: 220px;
  opacity: 0.78;
  right: -40px;
  top: 3%;
}
html[data-site-theme="mid-autumn"] .kd-rainbow {
  background-image: url('/img/deco/mooncake.svg');
  animation: kd-float 10s ease-in-out infinite;
  height: 240px;
  width: 240px;
  bottom: 7%;
  left: -70px;
  opacity: 0.68;
}
html[data-site-theme="mid-autumn"] .kd-flower-1 {
  background-image: url('/img/deco/mooncake.svg');
  animation: kd-float-slow 11s ease-in-out infinite 2s;
  height: 170px;
  width: 170px;
  bottom: 26%;
  right: -20px;
  opacity: 0.62;
}
html[data-site-theme="mid-autumn"] .kd-heart-1 {
  background-image: url('/img/deco/moon.svg');
  animation: kd-float 9s ease-in-out infinite 3s;
  height: 120px;
  width: 120px;
  right: -10px;
  top: 20%;
  opacity: 0.58;
}
html[data-site-theme="mid-autumn"] .kd-heart-2 {
  background-image: url('/img/deco/standing-egg.svg');
  animation: kd-float-slow 10s ease-in-out infinite 1.2s;
  height: 124px;
  width: 82px;
  left: -15px;
  top: 54%;
  opacity: 0.56;
}
html[data-site-theme="mid-autumn"] .kd-star-2 {
  background-image: url('/img/deco/standing-egg.svg');
  animation: kd-sway 8s ease-in-out infinite;
  height: 92px;
  width: 62px;
  left: -10px;
  top: 22%;
  opacity: 0.48;
}
html[data-site-theme="mid-autumn"] .kd-cloud-1 {
  background-image: url('/img/deco/moon-rabbit.svg');
  width: 150px;
  height: 150px;
  left: -20px;
  top: 10%;
  opacity: 0.8;
}
html[data-site-theme="mid-autumn"] .kd-balloon-coral {
  background-image: url('/img/deco/lantern-red.svg');
  width: 80px;
  height: 180px;
  right: -25px;
  bottom: 12%;
  opacity: 0.85;
}


/* ── 聖誕 christmas ─────────────────────────────────────────────── */
html[data-site-theme="christmas"] {
  --xh-primary: #c62828;
  --xh-primary-soft: #ffebee;
  --xh-primary-deep: #8b1010;
  --xh-secondary: #2e7d32;
  --xh-secondary-light: #c8e6c9;
  --xh-accent: #eceff1;
  --xh-accent-light: #ffffff;
  --xh-warm: #fdd835;
  --xh-warm-light: #fffde7;
  --xh-bg: #fffdf9;
  --xh-surface: #ffffff;
  --xh-surface-soft: #f1f8e9;
  --xh-text: #1b2e1f;
  --xh-muted: #4e6b52;
  --xh-border: #e0d4d4;
  --xh-shadow: 0 8px 28px rgba(198, 40, 40, 0.1);
  --xh-shadow-soft: 0 4px 14px rgba(46, 125, 50, 0.08);
  --xh-shadow-playful: 0 12px 32px rgba(46, 125, 50, 0.12);
  --xh-header-bg: linear-gradient(135deg, #f3fbf2 0%, #ffffff 38%, #ffeef0 68%, #e6f5e9 100%);
  --xh-header-border: #c8e6c9;
  --xh-header-shadow: 0 10px 28px rgba(46, 125, 50, 0.16);
  --xh-header-glow: rgba(198, 40, 40, 0.18);
  --xh-header-title: #8b1010;
  --xh-header-subtitle: #2e7d32;
  --xh-header-link: #265f29;
  --xh-header-link-hover-bg: rgba(46, 125, 50, 0.11);
  --xh-header-link-hover-color: #265f29;
  --xh-header-nav-panel: rgba(255, 255, 255, 0.7);
  --xh-header-nav-border: rgba(200, 230, 201, 0.85);
  --xh-header-ornament-filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.16));
  --xh-footer-bg: linear-gradient(180deg, #eef7ee 0%, #e0f0e2 100%);
  --xh-footer-border: #c8e6c9;
  --xh-footer-shadow: 0 -10px 24px rgba(46, 125, 50, 0.13);
  --xh-footer-text: #2e4730;
  --xh-footer-muted: #4b6950;
  --xh-footer-title: #1f3924;
  --xh-footer-link: #2e7d32;
  --xh-footer-link-hover: #1e5d22;
  --xh-footer-badge-bg: rgba(198, 40, 40, 0.11);
  --xh-footer-badge-border: rgba(46, 125, 50, 0.3);
  --xh-footer-badge-text: #7f2222;
  --xh-footer-ornament-left-image: url('/img/deco/gift.svg');
  --xh-footer-ornament-right-image: url('/img/deco/christmas-tree.svg');
  --xh-footer-ornament-left-opacity: 0.44;
  --xh-footer-ornament-right-opacity: 0.34;
  --xh-footer-ornament-filter: drop-shadow(0 8px 14px rgba(46, 125, 50, 0.12));
  --xh-hero-bg:
    radial-gradient(circle at 88% 12%, rgba(198, 40, 40, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 12% 86%, rgba(46, 125, 50, 0.16) 0%, transparent 42%),
    linear-gradient(145deg, #f4fbf3 0%, #ffffff 68%);
  --xh-hero-border: #c8e6c9;
  --xh-hero-shadow: 0 14px 34px rgba(46, 125, 50, 0.14);
  --xh-hero-glow: rgba(198, 40, 40, 0.2);
  --xh-hero-kicker-text: #2e7d32;
  --xh-hero-kicker-bg: linear-gradient(135deg, rgba(198, 40, 40, 0.14), rgba(46, 125, 50, 0.16));
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 30%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 18%, transparent) 100%);
  --xh-hero-image-card-border: #d5e7d5;
  --xh-hero-image-card-shadow: 0 10px 24px rgba(46, 125, 50, 0.14);
  --xh-hero-meta-bg: rgba(255, 255, 255, 0.76);
  --xh-hero-meta-border: rgba(46, 125, 50, 0.28);
  --xh-hero-meta-shadow: 0 10px 22px rgba(46, 125, 50, 0.12);
  --xh-hero-ornament-left-image: url('/img/deco/gift.svg');
  --xh-hero-ornament-right-image: url('/img/deco/christmas-tree.svg');
  --xh-hero-ornament-left-opacity: 0.74;
  --xh-hero-ornament-right-opacity: 0.60;
  --xh-hero-ornament-filter: drop-shadow(0 8px 14px rgba(46, 125, 50, 0.1));
  --xh-page-hero-bg:
    radial-gradient(circle at 86% 10%, rgba(198, 40, 40, 0.18) 0%, transparent 38%),
    linear-gradient(180deg, #f8fdf8 0%, #eef7ef 100%);
  --xh-page-hero-border: #c8e6c9;
  --xh-page-hero-shadow: 0 8px 18px rgba(46, 125, 50, 0.11);
  --xh-page-hero-title: #2e7d32;
  --xh-page-hero-lead: #4b6950;
  --xh-page-hero-ornament-left-image: url('/img/deco/gift.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/christmas-tree.svg');
  --xh-page-hero-ornament-left-opacity: 0.60;
  --xh-page-hero-ornament-right-opacity: 0.56;
  --xh-page-hero-ornament-filter: drop-shadow(0 8px 12px rgba(46, 125, 50, 0.08));
  --xh-header-glass-bg: linear-gradient(135deg, rgba(243, 251, 242, 0.82) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 238, 240, 0.68) 68%, rgba(230, 245, 233, 0.64) 100%);
  --xh-shell-bg: linear-gradient(180deg, rgba(248, 255, 249, 0.72) 0%, rgba(241, 248, 233, 0.58) 100%);
  --xh-footer-glass-bg: linear-gradient(180deg, rgba(238, 247, 238, 0.82) 0%, rgba(224, 240, 226, 0.68) 100%);
  --xh-scene-opacity: 0.4;
  --xh-scene-filter: saturate(1.08) brightness(0.99);
  --xh-scene-overlay:
    radial-gradient(circle at 18% 24%, rgba(46, 125, 50, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(198, 40, 40, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(253, 216, 53, 0.14) 0%, transparent 32%);
  --xh-scene-glow:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 36%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 26%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%);
  --xh-page-panel-border: #c8e6c9;
  --xh-menu-filter-bg: linear-gradient(135deg, rgba(241, 248, 233, 0.78) 0%, rgba(255, 255, 255, 0.6) 100%);
  --xh-photo-card-hover-shadow: 0 10px 24px rgba(46, 125, 50, 0.2);
  --xh-home-section-bg: linear-gradient(180deg, rgba(248, 255, 249, 0.66) 0%, rgba(241, 248, 233, 0.54) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 100%);
}

html[data-site-theme="christmas"] body.front-site {
  background:
    radial-gradient(circle at 15% 20%, rgba(46, 125, 50, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(198, 40, 40, 0.1) 0%, transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(253, 216, 53, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #f1f8e9 0%, #fffdf9 45%, #ffffff 100%);
}

html[data-site-theme="christmas"] body.front-site::before {
  background: radial-gradient(circle, rgba(198, 40, 40, 0.14) 0%, transparent 70%);
}

html[data-site-theme="christmas"] body.front-site::after {
  background: radial-gradient(circle, rgba(46, 125, 50, 0.12) 0%, transparent 72%);
}

html[data-site-theme="christmas"] .site-header {
  background: linear-gradient(135deg, #ffebee 0%, #ffffff 45%, #e8f5e9 100%);
  border-bottom-color: #c8e6c9;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.08);
}

html[data-site-theme="christmas"] .site-nav-link.active {
  background: linear-gradient(120deg, #c62828, #e53935);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
  color: #fff;
}

html[data-site-theme="christmas"] .site-brand-subtitle-en {
  color: #2e7d32;
}

html[data-site-theme="christmas"] .kinder-deco-layer {
  filter: hue-rotate(-35deg) saturate(1.1);
  opacity: 0.9;
}

/* christmas: 聖誕樹 + 禮物 + 雪花 大圖浮動 */
html[data-site-theme="christmas"] .kd-sun {
  background-image: url('/img/deco/christmas-tree.svg');
  animation: kd-float-slow 13s ease-in-out infinite;
  height: 230px;
  width: 177px;
  opacity: 0.82;
  right: -20px;
  top: 5%;
}
html[data-site-theme="christmas"] .kd-rainbow {
  background-image: url('/img/deco/gift.svg');
  animation: kd-float 11s ease-in-out infinite;
  height: 230px;
  width: 230px;
  bottom: 8%;
  left: -60px;
  opacity: 0.68;
}
html[data-site-theme="christmas"] .kd-flower-1 {
  background-image: url('/img/deco/christmas-tree.svg');
  animation: kd-float 9s ease-in-out infinite 2s;
  height: 175px;
  width: 135px;
  bottom: 22%;
  right: -15px;
  opacity: 0.68;
}
html[data-site-theme="christmas"] .kd-heart-1 {
  background-image: url('/img/deco/snowflake.svg');
  animation: kd-spin-slow 18s linear infinite;
  height: 120px;
  width: 120px;
  right: -10px;
  top: 16%;
  opacity: 0.70;
}
html[data-site-theme="christmas"] .kd-heart-2 {
  background-image: url('/img/deco/snowflake.svg');
  animation: kd-spin-slow 22s linear infinite reverse;
  height: 88px;
  width: 88px;
  left: -15px;
  top: 58%;
  opacity: 0.58;
}
html[data-site-theme="christmas"] .kd-star-1 {
  background-image: url('/img/deco/snowflake.svg');
  animation: kd-spin-slow 16s linear infinite;
  height: 100px;
  width: 100px;
  opacity: 0.65;
  left: 10%;
  top: 15%;
}
html[data-site-theme="christmas"] .kd-cloud-1 {
  background-image: url('/img/deco/santa.svg');
  width: 140px;
  height: 140px;
  left: -25px;
  top: 5%;
  opacity: 0.85;
}
html[data-site-theme="christmas"] .kd-balloon-coral {
  background-image: url('/img/deco/sleigh.svg');
  width: 180px;
  height: 90px;
  right: -30px;
  bottom: 18%;
  opacity: 0.8;
}


/* ── 跨年 new-year-eve ──────────────────────────────────────────── */
html[data-site-theme="new-year-eve"] {
  --xh-primary: #9575cd;
  --xh-primary-soft: #ede7f6;
  --xh-primary-deep: #5e35b1;
  --xh-secondary: #ffd54f;
  --xh-secondary-light: #fff8e1;
  --xh-accent: #7e57c2;
  --xh-accent-light: #f3e5f5;
  --xh-warm: #ffb74d;
  --xh-warm-light: #ffe0b2;
  --xh-bg: #f5f0ff;
  --xh-surface: #faf8ff;
  --xh-surface-soft: #ede7f6;
  --xh-text: #261a3d;
  --xh-muted: #6d5a8a;
  --xh-border: #d1c4e9;
  --xh-shadow: 0 8px 28px rgba(94, 53, 177, 0.12);
  --xh-shadow-soft: 0 4px 14px rgba(149, 117, 205, 0.1);
  --xh-shadow-playful: 0 12px 36px rgba(255, 213, 79, 0.2);
  --xh-header-bg: linear-gradient(135deg, #1b1030 0%, #2e1c52 18%, #f4eefe 18%, #fff7d9 62%, #ece8ff 100%);
  --xh-header-border: #d1c4e9;
  --xh-header-shadow: 0 12px 30px rgba(45, 27, 78, 0.24);
  --xh-header-glow: rgba(255, 213, 79, 0.28);
  --xh-header-title: #fff5c7;
  --xh-header-subtitle: #d9c9ff;
  --xh-header-link: #4f2d97;
  --xh-header-link-hover-bg: rgba(94, 53, 177, 0.15);
  --xh-header-link-hover-color: #4f2d97;
  --xh-header-nav-panel: rgba(247, 241, 255, 0.72);
  --xh-header-nav-border: rgba(209, 196, 233, 0.84);
  --xh-header-ornament-filter: drop-shadow(0 0 18px rgba(255, 213, 79, 0.22));
  --xh-footer-bg: linear-gradient(180deg, #ede7f8 0%, #e3dbf2 100%);
  --xh-footer-border: #d1c4e9;
  --xh-footer-shadow: 0 -12px 24px rgba(94, 53, 177, 0.15);
  --xh-footer-text: #32244c;
  --xh-footer-muted: #5f4d82;
  --xh-footer-title: #261b3d;
  --xh-footer-link: #5e35b1;
  --xh-footer-link-hover: #4a278f;
  --xh-footer-badge-bg: rgba(255, 213, 79, 0.16);
  --xh-footer-badge-border: rgba(94, 53, 177, 0.26);
  --xh-footer-badge-text: #5b3ea4;
  --xh-footer-ornament-left-image: url('/img/deco/firework.svg');
  --xh-footer-ornament-right-image: url('/img/deco/firework.svg');
  --xh-footer-ornament-left-opacity: 0.44;
  --xh-footer-ornament-right-opacity: 0.3;
  --xh-footer-ornament-filter: drop-shadow(0 0 14px rgba(255, 213, 79, 0.2));
  --xh-hero-bg:
    radial-gradient(circle at 86% 14%, rgba(255, 213, 79, 0.24) 0%, transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(94, 53, 177, 0.2) 0%, transparent 42%),
    linear-gradient(145deg, #efe7f8 0%, #f9f7ff 68%);
  --xh-hero-border: #d1c4e9;
  --xh-hero-shadow: 0 14px 34px rgba(94, 53, 177, 0.16);
  --xh-hero-glow: rgba(255, 213, 79, 0.26);
  --xh-hero-kicker-text: #5e35b1;
  --xh-hero-kicker-bg: linear-gradient(135deg, rgba(255, 213, 79, 0.2), rgba(94, 53, 177, 0.14));
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 30%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 18%, transparent) 100%);
  --xh-hero-image-card-border: #d1c4e9;
  --xh-hero-image-card-shadow: 0 10px 24px rgba(94, 53, 177, 0.15);
  --xh-hero-meta-bg: rgba(247, 241, 255, 0.76);
  --xh-hero-meta-border: rgba(94, 53, 177, 0.3);
  --xh-hero-meta-shadow: 0 10px 24px rgba(94, 53, 177, 0.14);
  --xh-hero-ornament-left-image: url('/img/deco/firework.svg');
  --xh-hero-ornament-right-image: url('/img/deco/firework.svg');
  --xh-hero-ornament-left-opacity: 0.72;
  --xh-hero-ornament-right-opacity: 0.58;
  --xh-hero-ornament-filter: drop-shadow(0 0 12px rgba(255, 213, 79, 0.18));
  --xh-page-hero-bg:
    radial-gradient(circle at 86% 10%, rgba(255, 213, 79, 0.22) 0%, transparent 38%),
    linear-gradient(180deg, #f3edf9 0%, #ece4f6 100%);
  --xh-page-hero-border: #d1c4e9;
  --xh-page-hero-shadow: 0 8px 18px rgba(94, 53, 177, 0.12);
  --xh-page-hero-title: #5e35b1;
  --xh-page-hero-lead: #5f4d82;
  --xh-page-hero-ornament-left-image: url('/img/deco/firework.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/firework.svg');
  --xh-page-hero-ornament-left-opacity: 0.58;
  --xh-page-hero-ornament-right-opacity: 0.50;
  --xh-page-hero-ornament-filter: drop-shadow(0 0 10px rgba(255, 213, 79, 0.14));
  --xh-header-glass-bg: linear-gradient(135deg, rgba(27, 16, 48, 0.84) 0%, rgba(46, 28, 82, 0.74) 20%, rgba(244, 238, 254, 0.72) 20%, rgba(255, 247, 217, 0.62) 68%, rgba(236, 232, 255, 0.64) 100%);
  --xh-shell-bg: linear-gradient(180deg, rgba(247, 242, 255, 0.7) 0%, rgba(237, 231, 246, 0.58) 100%);
  --xh-footer-glass-bg: linear-gradient(180deg, rgba(237, 231, 248, 0.82) 0%, rgba(227, 219, 242, 0.68) 100%);
  --xh-scene-opacity: 0.46;
  --xh-scene-filter: saturate(1.14) brightness(0.94);
  --xh-scene-overlay:
    radial-gradient(circle at 18% 26%, rgba(255, 213, 79, 0.22) 0%, transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(94, 53, 177, 0.28) 0%, transparent 32%),
    linear-gradient(180deg, rgba(26, 15, 46, 0.18) 0%, transparent 38%);
  --xh-scene-glow:
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 42%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 26%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%);
  --xh-page-panel-border: #d1c4e9;
  --xh-menu-filter-bg: linear-gradient(135deg, rgba(237, 231, 246, 0.8) 0%, rgba(250, 248, 255, 0.62) 100%);
  --xh-photo-card-hover-shadow: 0 10px 24px rgba(94, 53, 177, 0.22);
  --xh-home-section-bg: linear-gradient(180deg, rgba(247, 242, 255, 0.68) 0%, rgba(237, 231, 246, 0.56) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 100%);
}

html[data-site-theme="new-year-eve"] body.front-site {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(94, 53, 177, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 10% 60%, rgba(255, 213, 79, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(149, 117, 205, 0.1) 0%, transparent 42%),
    linear-gradient(180deg, #1a0f2e 0%, #2d1b4e 14%, #f5f0ff 14%, #ede7f6 100%);
}

html[data-site-theme="new-year-eve"] body.front-site::before {
  background: radial-gradient(circle, rgba(255, 213, 79, 0.22) 0%, transparent 68%);
}

html[data-site-theme="new-year-eve"] body.front-site::after {
  background: radial-gradient(circle, rgba(94, 53, 177, 0.2) 0%, transparent 72%);
}

html[data-site-theme="new-year-eve"] .site-header {
  background: linear-gradient(135deg, #ede7f6 0%, #fff8e1 50%, #e8eaf6 100%);
  border-bottom-color: #d1c4e9;
  box-shadow: 0 4px 24px rgba(94, 53, 177, 0.1);
}

html[data-site-theme="new-year-eve"] .site-nav-link.active {
  background: linear-gradient(120deg, #5e35b1, #7e57c2);
  box-shadow: 0 4px 14px rgba(94, 53, 177, 0.35);
  color: #fff;
}

html[data-site-theme="new-year-eve"] .site-brand-subtitle-en {
  color: #5e35b1;
}

html[data-site-theme="new-year-eve"] .kinder-deco-layer {
  filter: hue-rotate(45deg) saturate(1.15) brightness(0.95);
  opacity: 0.85;
}

/* new-year-eve: 煙火 大圖浮動 (多個，強烈視覺) */
html[data-site-theme="new-year-eve"] .kd-sun {
  background-image: url('/img/deco/firework.svg');
  animation: kd-pulse 3s ease-in-out infinite;
  height: 210px;
  width: 210px;
  opacity: 0.85;
  right: -40px;
  top: 4%;
}
html[data-site-theme="new-year-eve"] .kd-rainbow {
  background-image: url('/img/deco/firework.svg');
  animation: kd-pulse 4s ease-in-out infinite 1s;
  height: 210px;
  width: 210px;
  bottom: 9%;
  left: -50px;
  opacity: 0.72;
}
html[data-site-theme="new-year-eve"] .kd-flower-1 {
  background-image: url('/img/deco/firework.svg');
  animation: kd-pulse 3.5s ease-in-out infinite 0.5s;
  height: 170px;
  width: 170px;
  bottom: 24%;
  right: -15px;
  opacity: 0.70;
}
html[data-site-theme="new-year-eve"] .kd-heart-1 {
  background-image: url('/img/deco/firework.svg');
  animation: kd-pulse 5s ease-in-out infinite 2s;
  height: 130px;
  width: 130px;
  right: -10px;
  top: 14%;
  opacity: 0.65;
}
html[data-site-theme="new-year-eve"] .kd-star-1 {
  background-image: url('/img/deco/fireworks-101.svg');
  animation: kd-pulse 4.5s ease-in-out infinite 1.5s;
  height: 180px;
  width: 110px;
  opacity: 0.85;
  left: -20px;
  top: 25%;
}
html[data-site-theme="new-year-eve"] .kd-star-2 {
  background-image: url('/img/deco/firework.svg');
  animation: kd-pulse 3.8s ease-in-out infinite 0.8s;
  height: 90px;
  width: 90px;
  opacity: 0.58;
  left: 5%;
  bottom: 15%;
}
html[data-site-theme="new-year-eve"] .kd-cloud-1 {
  background-image: url('/img/deco/fireworks-world.svg');
  width: 160px;
  height: 160px;
  left: -30px;
  top: 5%;
  opacity: 0.75;
}


/* ── 新年 new-year ──────────────────────────────────────────────── */
html[data-site-theme="new-year"] {
  --xh-primary: #d32f2f;
  --xh-primary-soft: #ffebee;
  --xh-primary-deep: #8b0000;
  --xh-secondary: #fbc02d;
  --xh-secondary-light: #fff9c4;
  --xh-accent: #b71c1c;
  --xh-accent-light: #ffcdd2;
  --xh-warm: #ff8f00;
  --xh-warm-light: #ffe082;
  --xh-bg: #fffaf5;
  --xh-surface: #fff8f5;
  --xh-surface-soft: #ffebee;
  --xh-text: #3e2723;
  --xh-muted: #8d4a4a;
  --xh-border: #ffcdd2;
  --xh-shadow: 0 8px 28px rgba(211, 47, 47, 0.12);
  --xh-shadow-soft: 0 4px 14px rgba(251, 192, 45, 0.12);
  --xh-shadow-playful: 0 12px 32px rgba(211, 47, 47, 0.18);
  --xh-header-bg: linear-gradient(135deg, #a80c17 0%, #d32f2f 14%, #fff0f1 14%, #fff8e1 58%, #fff4f5 100%);
  --xh-header-border: #ffcdd2;
  --xh-header-shadow: 0 12px 28px rgba(211, 47, 47, 0.18);
  --xh-header-glow: rgba(251, 192, 45, 0.32);
  --xh-header-title: #fff2d2;
  --xh-header-subtitle: #ffd770;
  --xh-header-link: #9f1117;
  --xh-header-link-hover-bg: rgba(211, 47, 47, 0.10);
  --xh-header-link-hover-color: #9f1117;
  --xh-header-nav-panel: rgba(255, 247, 241, 0.76);
  --xh-header-nav-border: rgba(255, 205, 210, 0.88);
  --xh-header-ornament-filter: drop-shadow(0 10px 16px rgba(139, 0, 0, 0.15));
  --xh-footer-bg: linear-gradient(180deg, #ffefef 0%, #ffe8e8 100%);
  --xh-footer-border: #ffcdd2;
  --xh-footer-shadow: 0 -12px 24px rgba(211, 47, 47, 0.15);
  --xh-footer-text: #5e2f2f;
  --xh-footer-muted: #8d4a4a;
  --xh-footer-title: #8b0000;
  --xh-footer-link: #a8171f;
  --xh-footer-link-hover: #7f0f16;
  --xh-footer-badge-bg: rgba(251, 192, 45, 0.18);
  --xh-footer-badge-border: rgba(211, 47, 47, 0.28);
  --xh-footer-badge-text: #8b2d2d;
  --xh-footer-ornament-left-image: url('/img/deco/lantern-red.svg');
  --xh-footer-ornament-right-image: url('/img/deco/red-envelope.svg');
  --xh-footer-ornament-left-opacity: 0.48;
  --xh-footer-ornament-right-opacity: 0.34;
  --xh-footer-ornament-filter: saturate(1.05);
  --xh-hero-bg:
    radial-gradient(circle at 88% 14%, rgba(251, 192, 45, 0.24) 0%, transparent 40%),
    radial-gradient(circle at 10% 88%, rgba(211, 47, 47, 0.18) 0%, transparent 42%),
    linear-gradient(145deg, #fff1f1 0%, #fff8eb 68%);
  --xh-hero-border: #ffcdd2;
  --xh-hero-shadow: 0 14px 34px rgba(211, 47, 47, 0.16);
  --xh-hero-glow: rgba(251, 192, 45, 0.28);
  --xh-hero-kicker-text: #aa1b24;
  --xh-hero-kicker-bg: linear-gradient(135deg, rgba(211, 47, 47, 0.16), rgba(251, 192, 45, 0.2));
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 30%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 18%, transparent) 100%);
  --xh-hero-image-card-border: #ffcdd2;
  --xh-hero-image-card-shadow: 0 10px 24px rgba(211, 47, 47, 0.15);
  --xh-hero-meta-bg: rgba(255, 247, 241, 0.78);
  --xh-hero-meta-border: rgba(211, 47, 47, 0.3);
  --xh-hero-meta-shadow: 0 10px 24px rgba(211, 47, 47, 0.13);
  --xh-hero-ornament-left-image: url('/img/deco/lantern-red.svg');
  --xh-hero-ornament-right-image: url('/img/deco/red-envelope.svg');
  --xh-hero-ornament-left-opacity: 0.78;
  --xh-hero-ornament-right-opacity: 0.62;
  --xh-hero-ornament-filter: saturate(1.04);
  --xh-page-hero-bg:
    radial-gradient(circle at 86% 10%, rgba(251, 192, 45, 0.24) 0%, transparent 38%),
    linear-gradient(180deg, #fff2f2 0%, #ffeaea 100%);
  --xh-page-hero-border: #ffcdd2;
  --xh-page-hero-shadow: 0 8px 18px rgba(211, 47, 47, 0.12);
  --xh-page-hero-title: #aa1b24;
  --xh-page-hero-lead: #8d4a4a;
  --xh-page-hero-ornament-left-image: url('/img/deco/lantern-red.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/red-envelope.svg');
  --xh-page-hero-ornament-left-opacity: 0.64;
  --xh-page-hero-ornament-right-opacity: 0.56;
  --xh-page-hero-ornament-filter: saturate(1.02);
  --xh-header-glass-bg: linear-gradient(135deg, rgba(168, 12, 23, 0.86) 0%, rgba(211, 47, 47, 0.74) 16%, rgba(255, 240, 241, 0.7) 16%, rgba(255, 248, 225, 0.62) 60%, rgba(255, 244, 245, 0.66) 100%);
  --xh-shell-bg: linear-gradient(180deg, rgba(255, 244, 244, 0.72) 0%, rgba(255, 234, 234, 0.58) 100%);
  --xh-footer-glass-bg: linear-gradient(180deg, rgba(255, 239, 239, 0.82) 0%, rgba(255, 232, 232, 0.68) 100%);
  --xh-scene-opacity: 0.42;
  --xh-scene-filter: saturate(1.08) brightness(0.98);
  --xh-scene-overlay:
    radial-gradient(circle at 18% 22%, rgba(211, 47, 47, 0.24) 0%, transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(251, 192, 45, 0.22) 0%, transparent 30%),
    linear-gradient(180deg, rgba(139, 0, 0, 0.14) 0%, transparent 36%);
  --xh-scene-glow:
    radial-gradient(circle at 50% 100%, rgba(255, 244, 210, 0.18) 0%, transparent 44%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 26%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%);
  --xh-page-panel-border: #ffcdd2;
  --xh-menu-filter-bg: linear-gradient(135deg, rgba(255, 242, 242, 0.8) 0%, rgba(255, 248, 235, 0.62) 100%);
  --xh-photo-card-hover-shadow: 0 10px 24px rgba(211, 47, 47, 0.22);
  --xh-home-section-bg: linear-gradient(180deg, rgba(255, 244, 244, 0.68) 0%, rgba(255, 234, 234, 0.56) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 100%);
}

html[data-site-theme="new-year"] body.front-site {
  background:
    radial-gradient(circle at 20% 25%, rgba(211, 47, 47, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(251, 192, 45, 0.18) 0%, transparent 36%),
    radial-gradient(circle at 50% 90%, rgba(255, 224, 130, 0.15) 0%, transparent 40%),
    linear-gradient(180deg, #fff5f5 0%, #fffaf5 50%, #ffffff 100%);
}

html[data-site-theme="new-year"] body.front-site::before {
  background: radial-gradient(circle, rgba(251, 192, 45, 0.22) 0%, transparent 70%);
}

html[data-site-theme="new-year"] body.front-site::after {
  background: radial-gradient(circle, rgba(211, 47, 47, 0.12) 0%, transparent 72%);
}

html[data-site-theme="new-year"] .site-header {
  background: linear-gradient(135deg, #ffebee 0%, #fff8e1 45%, #fff5f5 100%);
  border-bottom-color: #ffcdd2;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.08);
}

html[data-site-theme="new-year"] .site-nav-link.active {
  background: linear-gradient(120deg, #d32f2f, #e53935);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.32);
  color: #fff;
}

html[data-site-theme="new-year"] .site-brand-subtitle-en {
  color: #b8860b;
}

html[data-site-theme="new-year"] .kinder-deco-layer {
  filter: hue-rotate(-15deg) saturate(1.2);
  opacity: 0.92;
}

/* new-year: 燈籠 + 紅包 大圖浮動 */
html[data-site-theme="new-year"] .kd-sun {
  background-image: url('/img/deco/lantern-red.svg');
  animation: kd-float-slow 12s ease-in-out infinite;
  height: 240px;
  width: 120px;
  opacity: 0.82;
  right: -6px;
  top: 4%;
}
html[data-site-theme="new-year"] .kd-rainbow {
  background-image: url('/img/deco/red-envelope.svg');
  animation: kd-float 10s ease-in-out infinite;
  height: 270px;
  width: 195px;
  bottom: 5%;
  left: -45px;
  opacity: 0.72;
}
html[data-site-theme="new-year"] .kd-flower-1 {
  background-image: url('/img/deco/lantern-red.svg');
  animation: kd-float-slow 10s ease-in-out infinite 2s;
  height: 195px;
  width: 98px;
  bottom: 20%;
  right: 3%;
  opacity: 0.70;
}
html[data-site-theme="new-year"] .kd-heart-1 {
  background-image: url('/img/deco/red-envelope.svg');
  animation: kd-float 8s ease-in-out infinite 1.5s;
  height: 185px;
  width: 135px;
  right: 15%;
  top: 18%;
  opacity: 0.64;
}
html[data-site-theme="new-year"] .kd-heart-2 {
  background-image: url('/img/deco/lantern-red.svg');
  animation: kd-float-slow 11s ease-in-out infinite 0.8s;
  height: 168px;
  width: 84px;
  left: 6%;
  top: 60%;
  opacity: 0.62;
}

/* ── 兒童節 childrens-day ─────────────────────────────────────────── */
html[data-site-theme="childrens-day"] {
  --xh-primary: #ff7043;
  --xh-primary-soft: #ffe8e0;
  --xh-primary-deep: #d84315;
  --xh-secondary: #29b6f6;
  --xh-secondary-light: #b3e5fc;
  --xh-accent: #ab47bc;
  --xh-accent-light: #f3e5f5;
  --xh-warm: #ffee58;
  --xh-warm-light: #fffde7;
  --xh-bg: #fffef8;
  --xh-surface: #ffffff;
  --xh-surface-soft: #fff3e0;
  --xh-text: #3e2723;
  --xh-muted: #795548;
  --xh-border: #ffccbc;
  --xh-shadow: 0 8px 28px rgba(255, 112, 67, 0.14);
  --xh-shadow-soft: 0 4px 14px rgba(41, 182, 246, 0.1);
  --xh-shadow-playful: 0 14px 36px rgba(171, 71, 188, 0.15);
  --xh-header-bg: linear-gradient(135deg, #fff3e0 0%, #e1f5fe 36%, #f3e5f5 68%, #fff9c8 100%);
  --xh-header-border: #ffccbc;
  --xh-header-shadow: 0 12px 28px rgba(255, 112, 67, 0.16);
  --xh-header-glow: rgba(255, 238, 88, 0.32);
  --xh-header-title: #d84315;
  --xh-header-subtitle: #0277bd;
  --xh-header-link: #b53d17;
  --xh-header-link-hover-bg: rgba(255, 112, 67, 0.13);
  --xh-header-link-hover-color: #b53d17;
  --xh-header-nav-panel: rgba(255, 255, 255, 0.74);
  --xh-header-nav-border: rgba(255, 204, 188, 0.88);
  --xh-header-ornament-filter: saturate(1.12);
  --xh-footer-bg: linear-gradient(180deg, #fff8e8 0%, #fff3e6 100%);
  --xh-footer-border: #ffccbc;
  --xh-footer-shadow: 0 -12px 24px rgba(255, 112, 67, 0.14);
  --xh-footer-text: #5b453a;
  --xh-footer-muted: #816457;
  --xh-footer-title: #c34a1f;
  --xh-footer-link: #d84315;
  --xh-footer-link-hover: #b53d17;
  --xh-footer-badge-bg: rgba(41, 182, 246, 0.12);
  --xh-footer-badge-border: rgba(255, 112, 67, 0.26);
  --xh-footer-badge-text: #b64a24;
  --xh-footer-ornament-left-image: url('/img/deco/bunting.svg');
  --xh-footer-ornament-right-image: url('/img/deco/pinwheel.svg');
  --xh-footer-ornament-left-opacity: 0.5;
  --xh-footer-ornament-right-opacity: 0.42;
  --xh-footer-ornament-filter: saturate(1.16);
  --xh-hero-bg:
    radial-gradient(circle at 88% 14%, rgba(41, 182, 246, 0.24) 0%, transparent 42%),
    radial-gradient(circle at 10% 88%, rgba(255, 112, 67, 0.2) 0%, transparent 42%),
    linear-gradient(145deg, #fff6e7 0%, #fdf8ff 68%);
  --xh-hero-border: #ffccbc;
  --xh-hero-shadow: 0 14px 34px rgba(255, 112, 67, 0.16);
  --xh-hero-glow: rgba(255, 238, 88, 0.32);
  --xh-hero-kicker-text: #d84315;
  --xh-hero-kicker-bg: linear-gradient(135deg, rgba(41, 182, 246, 0.16), rgba(255, 112, 67, 0.18));
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 30%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 18%, transparent) 100%);
  --xh-hero-image-card-border: #ffccbc;
  --xh-hero-image-card-shadow: 0 10px 24px rgba(255, 112, 67, 0.14);
  --xh-hero-meta-bg: rgba(255, 255, 255, 0.8);
  --xh-hero-meta-border: rgba(255, 112, 67, 0.28);
  --xh-hero-meta-shadow: 0 10px 24px rgba(255, 112, 67, 0.12);
  --xh-hero-ornament-left-image: url('/img/deco/bunting.svg');
  --xh-hero-ornament-right-image: url('/img/deco/pinwheel.svg');
  --xh-hero-ornament-left-opacity: 0.76;
  --xh-hero-ornament-right-opacity: 0.64;
  --xh-hero-ornament-filter: saturate(1.14);
  --xh-page-hero-bg:
    radial-gradient(circle at 86% 10%, rgba(41, 182, 246, 0.22) 0%, transparent 38%),
    linear-gradient(180deg, #fff8ec 0%, #fff4e7 100%);
  --xh-page-hero-border: #ffccbc;
  --xh-page-hero-shadow: 0 8px 18px rgba(255, 112, 67, 0.11);
  --xh-page-hero-title: #d84315;
  --xh-page-hero-lead: #7d5f52;
  --xh-page-hero-ornament-left-image: url('/img/deco/bunting.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/pinwheel.svg');
  --xh-page-hero-ornament-left-opacity: 0.66;
  --xh-page-hero-ornament-right-opacity: 0.60;
  --xh-page-hero-ornament-filter: saturate(1.12);
  --xh-header-glass-bg: linear-gradient(135deg, rgba(255, 243, 224, 0.82) 0%, rgba(225, 245, 254, 0.72) 38%, rgba(243, 229, 245, 0.68) 68%, rgba(255, 249, 200, 0.64) 100%);
  --xh-shell-bg: linear-gradient(180deg, rgba(255, 250, 240, 0.72) 0%, rgba(255, 244, 231, 0.58) 100%);
  --xh-footer-glass-bg: linear-gradient(180deg, rgba(255, 248, 232, 0.84) 0%, rgba(255, 243, 230, 0.7) 100%);
  --xh-scene-opacity: 0.4;
  --xh-scene-filter: saturate(1.18) brightness(1.02);
  --xh-scene-overlay:
    radial-gradient(circle at 16% 22%, rgba(41, 182, 246, 0.22) 0%, transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 112, 67, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(255, 238, 88, 0.16) 0%, transparent 34%);
  --xh-scene-glow:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.14) 0%, transparent 40%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 26%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%);
  --xh-page-panel-border: #ffccbc;
  --xh-menu-filter-bg: linear-gradient(135deg, rgba(255, 243, 224, 0.8) 0%, rgba(255, 255, 255, 0.62) 100%);
  --xh-photo-card-hover-shadow: 0 10px 24px rgba(255, 112, 67, 0.2);
  --xh-home-section-bg: linear-gradient(180deg, rgba(255, 250, 240, 0.68) 0%, rgba(255, 244, 231, 0.56) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 100%);
}

html[data-site-theme="childrens-day"] body.front-site {
  background:
    radial-gradient(circle at 12% 20%, rgba(41, 182, 246, 0.16) 0%, transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(255, 112, 67, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(171, 71, 188, 0.1) 0%, transparent 42%),
    linear-gradient(180deg, #fffef8 0%, #fff8f0 55%, #ffffff 100%);
}

html[data-site-theme="childrens-day"] body.front-site::before {
  background: radial-gradient(circle, rgba(255, 238, 88, 0.28) 0%, transparent 70%);
}

html[data-site-theme="childrens-day"] body.front-site::after {
  background: radial-gradient(circle, rgba(41, 182, 246, 0.16) 0%, transparent 72%);
}

html[data-site-theme="childrens-day"] .site-header {
  background: linear-gradient(135deg, #fff3e0 0%, #e1f5fe 40%, #fce4ec 100%);
  border-bottom-color: #ffccbc;
  box-shadow: 0 4px 22px rgba(255, 112, 67, 0.1);
}

html[data-site-theme="childrens-day"] .site-nav-link.active {
  background: linear-gradient(120deg, #ff7043, #ff9800);
  box-shadow: 0 4px 12px rgba(255, 112, 67, 0.35);
  color: #fff;
}

html[data-site-theme="childrens-day"] .site-brand-subtitle-en {
  color: #0277bd;
}

html[data-site-theme="childrens-day"] .kinder-deco-layer {
  filter: saturate(1.25) brightness(1.03);
  opacity: 1;
}

/* childrens-day: 風車 + 彩旗 大圖浮動 */
html[data-site-theme="childrens-day"] .kd-flower-1 {
  background-image: url('/img/deco/pinwheel.svg');
  animation: kd-spin-slow 5s linear infinite;
  height: 170px;
  width: 170px;
  bottom: 7%;
  right: -20px;
  opacity: 0.78;
}
html[data-site-theme="childrens-day"] .kd-heart-1 {
  background-image: url('/img/deco/bunting.svg');
  animation: kd-float 10s ease-in-out infinite;
  height: 110px;
  width: 220px;
  right: -30px;
  top: 12%;
  opacity: 0.72;
}
html[data-site-theme="childrens-day"] .kd-heart-2 {
  background-image: url('/img/deco/bunting.svg');
  animation: kd-float-slow 12s ease-in-out infinite 2s;
  height: 95px;
  width: 190px;
  left: -35px;
  top: 64%;
  opacity: 0.62;
}
html[data-site-theme="childrens-day"] .kd-sun {
  background-image: url('/img/deco/rainbow.svg');
  width: 240px;
  height: 125px;
  right: -40px;
  top: 4%;
  opacity: 0.85;
}
html[data-site-theme="childrens-day"] .kd-rainbow {
  background-image: url('/img/deco/balloon-blue.svg');
  width: 100px;
  height: 180px;
  left: -20px;
  bottom: 10%;
  opacity: 0.75;
}
html[data-site-theme="childrens-day"] .kd-cloud-1 {
  background-image: url('/img/deco/butterfly.svg');
  width: 120px;
  height: 90px;
  left: 10%;
  top: 15%;
  opacity: 0.65;
}


/* 標準版：沿用 site.css，此檔不強制覆寫 */

#themeHomeWelcomeModal .theme-popup-html img,
#themeHomeWelcomeModal .theme-popup-html video {
  max-width: 100%;
  height: auto;
}

/* =====================================================================
   非標準主題：Google Material 式層次／陰影 + LINE 式圓角與柔和互動
   ===================================================================== */

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-header {
  border-radius: 0 0 1.35rem 1.35rem;
  border-bottom-width: 1px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-brand {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-nav-link {
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-nav-link:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: var(--xh-shadow-soft);
  background: color-mix(in srgb, var(--xh-surface) 82%, var(--xh-primary-soft));
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-nav-admin-btn {
  border-radius: 999px;
  padding-inline: 1rem;
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-main-shell {
  margin-top: 0.85rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.25rem 1.5rem;
  border-radius: 1.2rem;
  background: var(--xh-shell-bg);
  border: 1px solid var(--xh-shell-border);
  box-shadow: var(--xh-shell-shadow);
  backdrop-filter: var(--xh-glass-backdrop);
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .site-footer {
  border-radius: 1.1rem 1.1rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--xh-border);
  background: var(--xh-footer-glass-bg);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.04);
  backdrop-filter: var(--xh-glass-backdrop);
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .floating-action-btn {
  border-radius: 1rem;
  box-shadow: var(--xh-shadow-playful);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .floating-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

html[data-site-theme]:not([data-site-theme="standard"]) body.front-site.theme-expressive .kinder-deco-layer {
  opacity: 0.7;
}

/* 上架同步資訊列（膠囊 + 輕量 Material 陰影） */
.theme-sync-banner {
  padding: 0.4rem 0 0.15rem;
}

.theme-sync-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--xh-surface) 90%, var(--xh-primary-soft));
  border: 1px solid var(--xh-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  color: var(--xh-text);
  font-family: "M PLUS Rounded 1c", "Comfortaa", system-ui, sans-serif;
}

.theme-sync-banner__label {
  color: var(--xh-muted);
  font-weight: 500;
}

.theme-sync-banner__time {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.theme-sync-banner__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--xh-primary);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--xh-primary) 45%, transparent);
  animation: theme-sync-pulse 2.4s ease-out infinite;
}

@keyframes theme-sync-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--xh-primary) 40%, transparent);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* =====================================================================
   Header 主題插圖層
   ===================================================================== */

html[data-site-theme="dragon-boat"] .site-header-ornament--left {
  background-image: url('/img/deco/zongzi.svg');
  bottom: -18px;
  height: 118px;
  left: 0.2rem;
  opacity: 0.82;
  width: 104px;
}

html[data-site-theme="dragon-boat"] .site-header-ornament--right {
  background-image: url('/img/deco/dragonboat.svg');
  height: 88px;
  opacity: 0.62;
  right: 1rem;
  top: 8px;
  width: 178px;
}

html[data-site-theme="dragon-boat"] .site-header-ornament--accent {
  background-image: url('/img/deco/zongzi.svg');
  height: 76px;
  opacity: 0.46;
  right: 22%;
  top: 2px;
  width: 72px;
}

html[data-site-theme="mid-autumn"] .site-header-ornament--left {
  background-image: url('/img/deco/mooncake.svg');
  bottom: -6px;
  height: 116px;
  left: 0.2rem;
  opacity: 0.78;
  width: 130px;
}

html[data-site-theme="mid-autumn"] .site-header-ornament--right {
  background-image: url('/img/deco/moon.svg');
  height: 132px;
  opacity: 0.94;
  right: 0.5rem;
  top: -12px;
  width: 132px;
}

html[data-site-theme="mid-autumn"] .site-header-ornament--accent {
  animation-name: kd-sway;
  background-image: url('/img/deco/lantern-red.svg');
  height: 104px;
  opacity: 0.74;
  right: 23%;
  top: -8px;
  width: 56px;
}

html[data-site-theme="christmas"] .site-header-ornament--left {
  background-image: url('/img/deco/christmas-tree.svg');
  bottom: -12px;
  height: 128px;
  left: -0.2rem;
  opacity: 0.82;
  width: 110px;
}

html[data-site-theme="christmas"] .site-header-ornament--right {
  animation-name: kd-spin-slow;
  animation-duration: 18s;
  background-image: url('/img/deco/snowflake.svg');
  height: 104px;
  opacity: 0.82;
  right: 0.8rem;
  top: 0;
  width: 104px;
}

html[data-site-theme="christmas"] .site-header-ornament--accent {
  background-image: url('/img/deco/gift.svg');
  height: 82px;
  opacity: 0.56;
  right: 21%;
  top: 10px;
  width: 74px;
}

html[data-site-theme="new-year-eve"] .site-header-ornament--left {
  animation-name: kd-pulse;
  animation-duration: 3.4s;
  background-image: url('/img/deco/firework.svg');
  bottom: -4px;
  height: 114px;
  left: 0.4rem;
  opacity: 0.72;
  width: 114px;
}

html[data-site-theme="new-year-eve"] .site-header-ornament--right {
  animation-name: kd-pulse;
  animation-duration: 2.8s;
  background-image: url('/img/deco/firework.svg');
  height: 128px;
  opacity: 0.8;
  right: 0.8rem;
  top: -8px;
  width: 128px;
}

html[data-site-theme="new-year-eve"] .site-header-ornament--accent {
  background-image: url('/img/deco/firework.svg');
  height: 80px;
  opacity: 0.44;
  right: 22%;
  top: 4px;
  width: 80px;
}

html[data-site-theme="new-year"] .site-header-ornament--left {
  animation-name: kd-sway;
  background-image: url('/img/deco/lantern-red.svg');
  bottom: -18px;
  height: 116px;
  left: 0.2rem;
  opacity: 0.78;
  width: 58px;
}

html[data-site-theme="new-year"] .site-header-ornament--right {
  background-image: url('/img/deco/red-envelope.svg');
  height: 116px;
  opacity: 0.82;
  right: 0.8rem;
  top: 0;
  width: 94px;
}

html[data-site-theme="new-year"] .site-header-ornament--accent {
  background-image: url('/img/deco/red-envelope.svg');
  height: 74px;
  opacity: 0.5;
  right: 22%;
  top: 10px;
  width: 64px;
}

html[data-site-theme="childrens-day"] .site-header-ornament--left {
  animation-name: kd-drift;
  background-image: url('/img/deco/bunting.svg');
  bottom: auto;
  height: 66px;
  left: 0;
  opacity: 0.86;
  top: 4px;
  width: 220px;
}

html[data-site-theme="childrens-day"] .site-header-ornament--right {
  animation-name: kd-spin-slow;
  animation-duration: 6s;
  background-image: url('/img/deco/pinwheel.svg');
  height: 100px;
  opacity: 0.82;
  right: 0.9rem;
  top: -4px;
  width: 100px;
}

html[data-site-theme="childrens-day"] .site-header-ornament--accent {
  background-image: url('/img/deco/balloon-blue.svg');
  height: 74px;
  opacity: 0.56;
  right: 24%;
  top: 8px;
  width: 54px;
}

@media (max-width: 800px) {
  html[data-site-theme="dragon-boat"] .site-header-ornament--right {
    right: -10px;
    width: 132px;
  }

  html[data-site-theme="mid-autumn"] .site-header-ornament--right,
  html[data-site-theme="new-year-eve"] .site-header-ornament--right {
    right: -6px;
    width: 102px;
  }

  html[data-site-theme="childrens-day"] .site-header-ornament--left {
    width: 168px;
  }
}

/* =====================================================================
   各主題裝飾圖層元素風格置換
   注意：僅覆寫 background-image / 尺寸 / 位置，不改變動畫 keyframe
   ===================================================================== */

/* ── 端午 dragon-boat 裝飾元素置換 ─────────────────────────────── */

/* 彩虹 → 粽子（左下角，大塊） */
html[data-site-theme="dragon-boat"] .kd-rainbow {
  background-image: url('/img/deco/zongzi.svg');
  width: 110px;
  height: 140px;
  left: -10px;
  bottom: 10%;
  opacity: 0.68;
}

/* 太陽 → 保留但調整（端午用青綠色調，已由 hue-rotate 處理） */
html[data-site-theme="dragon-boat"] .kd-sun {
  opacity: 0.55;
  width: 130px;
  height: 130px;
}

/* 蝴蝶 → 龍舟 */
html[data-site-theme="dragon-boat"] .kd-butterfly-1 {
  background-image: url('/img/deco/dragonboat.svg');
  width: 200px;
  height: 100px;
  left: 18%;
  top: 26%;
  opacity: 0.52;
}

/* 花 → 粽子（右下角，小） */
html[data-site-theme="dragon-boat"] .kd-flower-1 {
  background-image: url('/img/deco/zongzi.svg');
  width: 82px;
  height: 104px;
  right: 2%;
  bottom: 5%;
  opacity: 0.60;
}

/* 氣球（珊瑚） → 粽子（懸掛感） */
html[data-site-theme="dragon-boat"] .kd-balloon-coral {
  background-image: url('/img/deco/zongzi.svg');
  width: 64px;
  height: 82px;
  right: 16%;
  bottom: 6%;
  opacity: 0.55;
}

/* 心形1 → 淡化（端午非常見元素） */
html[data-site-theme="dragon-boat"] .kd-heart-1 {
  opacity: 0.20;
}

/* ── 中秋 mid-autumn 裝飾元素置換 ──────────────────────────────── */

/* 太陽 → 圓月（右上，大而金光）
   counter parent hue-rotate(200deg): apply hue-rotate(-200deg) to restore original golden colors */
html[data-site-theme="mid-autumn"] .kd-sun {
  background-image: url('/img/deco/moon.svg');
  width: 160px;
  height: 160px;
  right: -20px;
  top: 3%;
  opacity: 0.88;
  filter: hue-rotate(-200deg) saturate(1.18) brightness(0.96);
}

/* 彩虹 → 月餅（左下）
   counter parent hue-rotate(200deg) */
html[data-site-theme="mid-autumn"] .kd-rainbow {
  background-image: url('/img/deco/mooncake.svg');
  width: 140px;
  height: 132px;
  left: -20px;
  bottom: 10%;
  opacity: 0.65;
  filter: hue-rotate(-200deg) saturate(1.18) brightness(0.96);
}

/* 花 → 燈籠（右下，搖擺）
   counter parent hue-rotate(200deg) to keep lantern red */
html[data-site-theme="mid-autumn"] .kd-flower-1 {
  background-image: url('/img/deco/lantern-red.svg');
  width: 72px;
  height: 160px;
  right: 3%;
  bottom: 4%;
  opacity: 0.75;
  filter: hue-rotate(-200deg) saturate(1.18) brightness(0.96);
}

/* 氣球（珊瑚）→ 燈籠（右中側）
   counter parent hue-rotate(200deg) */
html[data-site-theme="mid-autumn"] .kd-balloon-coral {
  background-image: url('/img/deco/lantern-red.svg');
  width: 54px;
  height: 120px;
  right: 16%;
  bottom: 8%;
  opacity: 0.65;
  filter: hue-rotate(-200deg) saturate(1.18) brightness(0.96);
}

/* 氣球（藍/紫）→ 隱藏（改由燈籠取代） */
html[data-site-theme="mid-autumn"] .kd-balloon-blue,
html[data-site-theme="mid-autumn"] .kd-balloon-purple {
  display: none;
}

/* 蝴蝶 → 月餅（中間小）counter parent hue-rotate(200deg) */
html[data-site-theme="mid-autumn"] .kd-butterfly-1 {
  background-image: url('/img/deco/mooncake.svg');
  width: 90px;
  height: 84px;
  left: 22%;
  top: 28%;
  opacity: 0.48;
  filter: hue-rotate(-200deg) saturate(1.18) brightness(0.96);
}

/* 雲朵更淡（夜空效果） */
html[data-site-theme="mid-autumn"] .kd-cloud-1,
html[data-site-theme="mid-autumn"] .kd-cloud-2,
html[data-site-theme="mid-autumn"] .kd-cloud-3 {
  opacity: 0.22;
}

/* 星星更亮（中秋夜空）
   Stars use standard yellow/pink SVGs; parent hue-rotate(200deg) shifts them blueish → nice starlight effect.
   The drop-shadow here helps them visible; after parent filter it turns teal glow which looks like night stars */
html[data-site-theme="mid-autumn"] .kd-star-1,
html[data-site-theme="mid-autumn"] .kd-star-2,
html[data-site-theme="mid-autumn"] .kd-star-3,
html[data-site-theme="mid-autumn"] .kd-star-blue-1 {
  opacity: 0.95;
  filter: hue-rotate(-200deg) saturate(1.3) brightness(1.1);
}

/* ── 聖誕 christmas 裝飾元素置換 ────────────────────────────────── */

/* 彩虹 → 聖誕樹（左下） */
html[data-site-theme="christmas"] .kd-rainbow {
  background-image: url('/img/deco/christmas-tree.svg');
  width: 150px;
  height: 200px;
  left: -18px;
  bottom: 4%;
  opacity: 0.72;
}

/* 太陽 → 雪花（右上，旋轉）
   counter parent hue-rotate(-35deg) to keep ice-blue colors */
html[data-site-theme="christmas"] .kd-sun {
  background-image: url('/img/deco/snowflake.svg');
  width: 130px;
  height: 130px;
  right: 0px;
  top: 4%;
  opacity: 0.68;
  animation: kd-spin-slow 18s linear infinite;
  filter: hue-rotate(35deg) saturate(0.91);
}

/* 花 → 禮物（右下，搖擺）
   counter parent hue-rotate(-35deg) */
html[data-site-theme="christmas"] .kd-flower-1 {
  background-image: url('/img/deco/gift.svg');
  width: 105px;
  height: 118px;
  right: 2%;
  bottom: 4%;
  opacity: 0.72;
  filter: hue-rotate(35deg) saturate(0.91);
}

/* 蝴蝶 → 小雪花（中間漂浮）
   counter parent hue-rotate(-35deg), keep spin animation */
html[data-site-theme="christmas"] .kd-butterfly-1 {
  background-image: url('/img/deco/snowflake.svg');
  width: 80px;
  height: 80px;
  left: 28%;
  top: 22%;
  opacity: 0.52;
  animation: kd-spin-slow 24s linear infinite reverse;
  filter: hue-rotate(35deg) saturate(0.91);
}

/* 氣球（珊瑚）→ 禮物（右下方） */
html[data-site-theme="christmas"] .kd-balloon-coral {
  background-image: url('/img/deco/gift.svg');
  width: 66px;
  height: 74px;
  right: 20%;
  bottom: 6%;
  opacity: 0.58;
}

/* 星星：聖誕風格更亮白 */
html[data-site-theme="christmas"] .kd-star-1,
html[data-site-theme="christmas"] .kd-star-2,
html[data-site-theme="christmas"] .kd-star-3,
html[data-site-theme="christmas"] .kd-star-blue-1 {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.80));
  opacity: 0.88;
}

/* 心形：淡化（聖誕用ornament感） */
html[data-site-theme="christmas"] .kd-heart-1,
html[data-site-theme="christmas"] .kd-heart-2 {
  opacity: 0.28;
}

/* ── 跨年 new-year-eve 裝飾元素置換 ──────────────────────────────── */

/* 太陽 → 煙火（右上，大爆炸） */
html[data-site-theme="new-year-eve"] .kd-sun {
  background-image: url('/img/deco/firework.svg');
  width: 180px;
  height: 180px;
  right: -30px;
  top: 2%;
  opacity: 0.72;
  animation: kd-pulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 213, 79, 0.60));
}

/* 彩虹 → 煙火（左中，另一顆） */
html[data-site-theme="new-year-eve"] .kd-rainbow {
  background-image: url('/img/deco/firework.svg');
  width: 130px;
  height: 130px;
  left: 2%;
  bottom: 22%;
  opacity: 0.58;
  animation: kd-pulse 3.2s ease-in-out infinite 0.8s;
  filter: hue-rotate(120deg);
}

/* 花 → 煙火（右下，小） */
html[data-site-theme="new-year-eve"] .kd-flower-1 {
  background-image: url('/img/deco/firework.svg');
  width: 100px;
  height: 100px;
  right: 4%;
  bottom: 8%;
  opacity: 0.60;
  animation: kd-pulse 2.8s ease-in-out infinite 1.4s;
  filter: hue-rotate(60deg);
}

/* 蝴蝶 → 煙火（中間，漂浮） */
html[data-site-theme="new-year-eve"] .kd-butterfly-1 {
  background-image: url('/img/deco/firework.svg');
  width: 110px;
  height: 110px;
  left: 30%;
  top: 20%;
  opacity: 0.50;
  animation: kd-pulse 4s ease-in-out infinite 2s;
  filter: hue-rotate(200deg);
}

/* 氣球 → 隱藏（換成煙火系列） */
html[data-site-theme="new-year-eve"] .kd-balloon-coral,
html[data-site-theme="new-year-eve"] .kd-balloon-blue,
html[data-site-theme="new-year-eve"] .kd-balloon-purple {
  display: none;
}

/* 星星：跨年夜空超亮 */
html[data-site-theme="new-year-eve"] .kd-star-1,
html[data-site-theme="new-year-eve"] .kd-star-2,
html[data-site-theme="new-year-eve"] .kd-star-3,
html[data-site-theme="new-year-eve"] .kd-star-blue-1 {
  opacity: 1.0;
  filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.85));
}

/* 心形 → 金色閃光（跨年特效） */
html[data-site-theme="new-year-eve"] .kd-heart-1,
html[data-site-theme="new-year-eve"] .kd-heart-2 {
  filter: hue-rotate(240deg) saturate(1.4);
  opacity: 0.60;
}

/* ── 新年 new-year 裝飾元素置換 ──────────────────────────────────── */

/* 彩虹 → 紅包（左下角，垂直）
   counter parent hue-rotate(-15deg) to keep red colors */
html[data-site-theme="new-year"] .kd-rainbow {
  background-image: url('/img/deco/red-envelope.svg');
  width: 90px;
  height: 120px;
  left: -5px;
  bottom: 12%;
  opacity: 0.72;
  filter: hue-rotate(15deg) saturate(0.84);
}

/* 花 → 燈籠（右下，搖擺）
   counter parent hue-rotate(-15deg) */
html[data-site-theme="new-year"] .kd-flower-1 {
  background-image: url('/img/deco/lantern-red.svg');
  width: 72px;
  height: 160px;
  right: 2%;
  bottom: 3%;
  opacity: 0.72;
  filter: hue-rotate(15deg) saturate(0.84);
}

/* 蝴蝶 → 紅包（中間漂浮）counter parent hue-rotate(-15deg) */
html[data-site-theme="new-year"] .kd-butterfly-1 {
  background-image: url('/img/deco/red-envelope.svg');
  width: 85px;
  height: 110px;
  left: 20%;
  top: 26%;
  opacity: 0.52;
  filter: hue-rotate(15deg) saturate(0.84);
}

/* 氣球（珊瑚/藍）→ 紅包（底部飄落感）counter parent hue-rotate(-15deg) */
html[data-site-theme="new-year"] .kd-balloon-coral {
  background-image: url('/img/deco/red-envelope.svg');
  width: 64px;
  height: 84px;
  right: 18%;
  bottom: 5%;
  opacity: 0.60;
  filter: hue-rotate(15deg) saturate(0.84);
}

html[data-site-theme="new-year"] .kd-balloon-blue {
  background-image: url('/img/deco/red-envelope.svg');
  width: 58px;
  height: 76px;
  left: 3%;
  bottom: 4%;
  opacity: 0.55;
  filter: hue-rotate(15deg) saturate(0.84);
}

/* 氣球（紫）→ 燈籠（左側）counter parent hue-rotate(-15deg) */
html[data-site-theme="new-year"] .kd-balloon-purple {
  background-image: url('/img/deco/lantern-red.svg');
  width: 50px;
  height: 110px;
  left: 12%;
  bottom: 6%;
  opacity: 0.58;
  filter: hue-rotate(15deg) saturate(0.84);
}

/* 星星：新年喜氣閃爍 */
html[data-site-theme="new-year"] .kd-star-1,
html[data-site-theme="new-year"] .kd-star-2,
html[data-site-theme="new-year"] .kd-star-3 {
  filter: drop-shadow(0 0 6px rgba(251, 192, 45, 0.80));
  opacity: 0.82;
}

/* 心形 → 紅色喜慶 */
html[data-site-theme="new-year"] .kd-heart-1 {
  filter: none;
  opacity: 0.65;
}

/* ── 兒童節 childrens-day 裝飾元素置換 ──────────────────────────── */

/* 彩虹 → 彩旗（左上，水平旗幟串） */
html[data-site-theme="childrens-day"] .kd-rainbow {
  background-image: url('/img/deco/bunting.svg');
  width: 320px;
  height: 90px;
  left: -60px;
  bottom: unset;
  top: 8%;
  opacity: 0.72;
}

/* 蝴蝶 → 風車（中間，旋轉） */
html[data-site-theme="childrens-day"] .kd-butterfly-1 {
  background-image: url('/img/deco/pinwheel.svg');
  width: 100px;
  height: 120px;
  left: 26%;
  top: 22%;
  opacity: 0.62;
  animation: kd-spin-slow 5s linear infinite;
}

/* 花 → 全飽和（保留花，兒童節彩色） */
html[data-site-theme="childrens-day"] .kd-flower-1 {
  opacity: 0.78;
  filter: saturate(1.4) brightness(1.05);
}

/* 心形：更鮮豔 */
html[data-site-theme="childrens-day"] .kd-heart-1,
html[data-site-theme="childrens-day"] .kd-heart-2 {
  filter: saturate(1.5) brightness(1.08);
  opacity: 0.80;
}

/* 氣球：更飽和鮮亮 */
html[data-site-theme="childrens-day"] .kd-balloon-coral,
html[data-site-theme="childrens-day"] .kd-balloon-blue,
html[data-site-theme="childrens-day"] .kd-balloon-purple {
  filter: saturate(1.4) brightness(1.05);
  opacity: 0.72;
}

/* 星星：兒童節最彩色 */
html[data-site-theme="childrens-day"] .kd-star-1,
html[data-site-theme="childrens-day"] .kd-star-2,
html[data-site-theme="childrens-day"] .kd-star-3,
html[data-site-theme="childrens-day"] .kd-star-blue-1 {
  filter: saturate(1.6);
  opacity: 0.85;
}

/* =====================================================================
   各主題 section/card 內容區個性化風格
   小 icon 點綴、卡片邊框、標題底色等
   ===================================================================== */

/* ── 端午：標題裝飾 ─────────────────────────────────────────────── */
html[data-site-theme="dragon-boat"] .home-section-title::before {
  content: "🎋";
  margin-right: 0.38em;
  font-size: 0.88em;
}

/* ── 中秋：標題裝飾 ─────────────────────────────────────────────── */
html[data-site-theme="mid-autumn"] .home-section-title::before {
  content: "🌕";
  margin-right: 0.38em;
  font-size: 0.88em;
}

/* ── 聖誕：標題裝飾 ─────────────────────────────────────────────── */
html[data-site-theme="christmas"] .home-section-title::before {
  content: "🎄";
  margin-right: 0.4em;
  font-size: 0.9em;
}

html[data-site-theme="christmas"] .site-nav-admin-btn {
  background: linear-gradient(120deg, #1b5e20, #2e7d32) !important;
}

/* ── 跨年：標題裝飾 ─────────────────────────────────────────────── */
html[data-site-theme="new-year-eve"] .home-section-title::before {
  content: "🎆";
  margin-right: 0.38em;
  font-size: 0.88em;
}

/* ── 新年：標題裝飾 ─────────────────────────────────────────────── */
html[data-site-theme="new-year"] .home-section-title::before {
  content: "🧧";
  margin-right: 0.38em;
  font-size: 0.88em;
}

/* ── 兒童節：標題裝飾 ────────────────────────────────────────────── */
html[data-site-theme="childrens-day"] .home-section-title::before {
  content: "🎠";
  margin-right: 0.38em;
  font-size: 0.88em;
}

html[data-site-theme="childrens-day"] .site-nav-admin-btn {
  background: linear-gradient(120deg, #e65100, #ff7043) !important;
}

/* =====================================================================
   各主題 nav-link hover 及 focus 小細節
   ===================================================================== */

html[data-site-theme="dragon-boat"] .site-nav-link:hover:not(.active) {
  background: rgba(45, 155, 134, 0.12);
}

html[data-site-theme="mid-autumn"] .site-nav-link:hover:not(.active) {
  background: rgba(232, 184, 74, 0.14);
}

html[data-site-theme="christmas"] .site-nav-link:hover:not(.active) {
  background: rgba(46, 125, 50, 0.10);
}

html[data-site-theme="new-year-eve"] .site-nav-link:hover:not(.active) {
  background: rgba(94, 53, 177, 0.12);
}

html[data-site-theme="new-year"] .site-nav-link:hover:not(.active) {
  background: rgba(211, 47, 47, 0.10);
}

html[data-site-theme="childrens-day"] .site-nav-link:hover:not(.active) {
  background: rgba(255, 112, 67, 0.12);
}

/* =====================================================================
   快速操作浮動按鈕（floating-action-btn）主題換色
   ===================================================================== */

html[data-site-theme="dragon-boat"] .floating-action-btn {
  background: linear-gradient(135deg, #2d9b86, #3aa89c) !important;
}

html[data-site-theme="mid-autumn"] .floating-action-btn {
  background: linear-gradient(135deg, #5b7aab, #7a96c9) !important;
}

html[data-site-theme="christmas"] .floating-action-btn {
  background: linear-gradient(135deg, #c62828, #2e7d32) !important;
}

html[data-site-theme="new-year-eve"] .floating-action-btn {
  background: linear-gradient(135deg, #5e35b1, #9575cd) !important;
}

html[data-site-theme="new-year"] .floating-action-btn {
  background: linear-gradient(135deg, #d32f2f, #fbc02d) !important;
}

html[data-site-theme="childrens-day"] .floating-action-btn {
  background: linear-gradient(135deg, #ff7043, #29b6f6) !important;
}

/* =====================================================================
   各主題背景場景插圖（.kinder-scene-layer）
   ===================================================================== */

html[data-site-theme="dragon-boat"]   .kinder-scene-layer { background-image: url('/img/deco/bg-scene-dragon-boat.svg'); }
html[data-site-theme="mid-autumn"]    .kinder-scene-layer { background-image: url('/img/deco/bg-scene-mid-autumn.svg'); }
html[data-site-theme="christmas"]     .kinder-scene-layer { background-image: url('/img/deco/bg-scene-christmas.svg'); }
html[data-site-theme="new-year-eve"]  .kinder-scene-layer { background-image: url('/img/deco/bg-scene-new-year-eve.svg'); }
html[data-site-theme="new-year"]      .kinder-scene-layer { background-image: url('/img/deco/bg-scene-new-year.svg'); }
html[data-site-theme="childrens-day"] .kinder-scene-layer { background-image: url('/img/deco/bg-scene-childrens-day.svg'); }

/* =====================================================================
   節慶主題前台：內容區更透明 + 文字對比提升（不影響 body/layout）
   ===================================================================== */

html[data-site-theme]:not([data-site-theme="standard"]) {
  --xh-hero-image-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 20%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 10%, transparent) 100%);
  --xh-inner-card-bg: color-mix(in srgb, var(--xh-surface) 22%, transparent);
  --xh-inner-card-alt-bg: color-mix(in srgb, var(--xh-surface-soft) 14%, transparent);
  --xh-home-section-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 18%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 10%, transparent) 100%);
  --xh-home-card-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface) 14%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 8%, transparent) 100%);
  --xh-home-card-variant-2-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-secondary-light) 12%, transparent) 0%, color-mix(in srgb, var(--xh-surface) 8%, transparent) 100%);
  --xh-home-card-variant-3-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-accent-light) 12%, transparent) 0%, color-mix(in srgb, var(--xh-surface) 8%, transparent) 100%);
  --xh-home-card-variant-4-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-warm-light) 12%, transparent) 0%, color-mix(in srgb, var(--xh-surface) 8%, transparent) 100%);
  --xh-page-panel-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 16%, transparent) 0%, color-mix(in srgb, var(--xh-surface-soft) 8%, transparent) 100%);
  --xh-menu-filter-bg: linear-gradient(135deg, color-mix(in srgb, var(--xh-surface-soft) 14%, transparent) 0%, color-mix(in srgb, var(--xh-surface) 10%, transparent) 100%);
  --xh-gallery-card-body-bg: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 16%, transparent), color-mix(in srgb, var(--xh-surface-soft) 10%, transparent));
}

html[data-site-theme]:not([data-site-theme="standard"]) .card,
html[data-site-theme]:not([data-site-theme="standard"]) .page-panel,
html[data-site-theme]:not([data-site-theme="standard"]) .page-card,
html[data-site-theme]:not([data-site-theme="standard"]) .menu-filter-card,
html[data-site-theme]:not([data-site-theme="standard"]) .menu-content-wrap,
html[data-site-theme]:not([data-site-theme="standard"]) .about-summary,
html[data-site-theme]:not([data-site-theme="standard"]) .menu-summary,
html[data-site-theme]:not([data-site-theme="standard"]) .contact-summary,
html[data-site-theme]:not([data-site-theme="standard"]) .faq-summary {
  color: var(--xh-text);
}

html[data-site-theme]:not([data-site-theme="standard"]) .text-muted,
html[data-site-theme]:not([data-site-theme="standard"]) .page-lead,
html[data-site-theme]:not([data-site-theme="standard"]) .menu-mobile-label {
  color: color-mix(in srgb, var(--xh-text) 72%, #0f1a2e) !important;
}

/* 第 2 波可讀性：公告卡、菜單表格、FAQ 折疊區 */
html[data-site-theme]:not([data-site-theme="standard"]) .news-card {
  border-color: color-mix(in srgb, var(--xh-inner-card-border) 88%, #ffffff);
}

html[data-site-theme]:not([data-site-theme="standard"]) .news-card .h5,
html[data-site-theme]:not([data-site-theme="standard"]) .news-card .card-title,
html[data-site-theme]:not([data-site-theme="standard"]) .news-card .card-text {
  color: color-mix(in srgb, var(--xh-text) 92%, #081225);
}

html[data-site-theme]:not([data-site-theme="standard"]) .news-card .small,
html[data-site-theme]:not([data-site-theme="standard"]) .news-card .text-muted {
  color: color-mix(in srgb, var(--xh-text) 74%, #0f1a2e) !important;
}

html[data-site-theme]:not([data-site-theme="standard"]) .menu-table th {
  background: color-mix(in srgb, var(--xh-surface-soft) 34%, #ffffff);
  color: color-mix(in srgb, var(--xh-text) 90%, #0b162a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .menu-table td {
  color: color-mix(in srgb, var(--xh-text) 88%, #0d1a2f);
}

html[data-site-theme]:not([data-site-theme="standard"]) .menu-row-today {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--xh-primary-soft) 34%, transparent),
    color-mix(in srgb, var(--xh-surface) 22%, transparent)
  );
}

html[data-site-theme]:not([data-site-theme="standard"]) .menu-mobile-card,
html[data-site-theme]:not([data-site-theme="standard"]) .menu-mobile-card.is-today {
  color: color-mix(in srgb, var(--xh-text) 90%, #0b162a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .menu-mobile-value {
  color: color-mix(in srgb, var(--xh-text) 90%, #0b162a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .page-faq .accordion-item {
  background: color-mix(in srgb, var(--xh-surface) 16%, transparent);
  border-color: color-mix(in srgb, var(--xh-inner-card-border) 90%, #ffffff);
}

html[data-site-theme]:not([data-site-theme="standard"]) .page-faq .accordion-button {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--xh-surface-soft) 20%, transparent) 0%,
    color-mix(in srgb, var(--xh-surface) 14%, transparent) 100%
  );
  color: color-mix(in srgb, var(--xh-text) 92%, #081225);
}

html[data-site-theme]:not([data-site-theme="standard"]) .page-faq .accordion-body {
  color: color-mix(in srgb, var(--xh-text) 88%, #0d1a2f);
}

/* 第 3 波可讀性：按鈕與連結狀態一致化 */
html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell a:not(.btn):not(.site-nav-link):not(.site-brand):not(.site-nav-admin-btn) {
  color: color-mix(in srgb, var(--xh-primary-deep) 82%, #0d2a52);
  text-underline-offset: 0.16em;
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell a:not(.btn):not(.site-nav-link):not(.site-brand):not(.site-nav-admin-btn):hover,
html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell a:not(.btn):not(.site-nav-link):not(.site-brand):not(.site-nav-admin-btn):focus-visible {
  color: color-mix(in srgb, var(--xh-primary-deep) 96%, #081c38);
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-success,
html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-primary,
html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-secondary {
  background: color-mix(in srgb, var(--xh-surface) 18%, transparent);
  border-width: 2px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--xh-primary) 16%, transparent);
  font-weight: 600;
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-success,
html[data-site-theme]:not([data-site-theme="standard"]) .news-filter-btn.btn-outline-success {
  border-color: color-mix(in srgb, var(--xh-primary) 62%, #ffffff);
  color: color-mix(in srgb, var(--xh-primary-deep) 84%, #102a4a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-primary {
  border-color: color-mix(in srgb, var(--xh-secondary) 58%, #ffffff);
  color: color-mix(in srgb, var(--xh-secondary) 82%, #102a4a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--xh-border) 88%, #ffffff);
  color: color-mix(in srgb, var(--xh-text) 76%, #102a4a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-success:hover,
html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-success:focus-visible,
html[data-site-theme]:not([data-site-theme="standard"]) .news-filter-btn.btn-outline-success:hover,
html[data-site-theme]:not([data-site-theme="standard"]) .news-filter-btn.btn-outline-success:focus-visible {
  background: color-mix(in srgb, var(--xh-primary-soft) 54%, transparent);
  border-color: var(--xh-primary);
  color: color-mix(in srgb, var(--xh-primary-deep) 92%, #0d223d);
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-primary:hover,
html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-primary:focus-visible {
  background: color-mix(in srgb, var(--xh-secondary-light) 48%, transparent);
  border-color: var(--xh-secondary);
  color: color-mix(in srgb, var(--xh-secondary) 92%, #0d223d);
}

html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-secondary:hover,
html[data-site-theme]:not([data-site-theme="standard"]) .btn-outline-secondary:focus-visible {
  background: color-mix(in srgb, var(--xh-surface-soft) 38%, transparent);
  border-color: color-mix(in srgb, var(--xh-primary) 44%, #ffffff);
  color: color-mix(in srgb, var(--xh-text) 90%, #0d223d);
}

html[data-site-theme]:not([data-site-theme="standard"]) :where(a, button, .btn, .news-filter-btn):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--xh-primary) 58%, #ffffff);
  outline-offset: 2px;
}

/* 第 4 波可讀性：節慶主題表單欄位一致化（input/select/textarea） */
html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell :is(input.form-control, textarea.form-control, select.form-select) {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--xh-surface) 20%, transparent) 0%,
    color-mix(in srgb, var(--xh-surface-soft) 12%, transparent) 100%
  );
  border: 2px solid color-mix(in srgb, var(--xh-inner-card-border) 86%, #ffffff);
  color: color-mix(in srgb, var(--xh-text) 92%, #0d1a2f);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--xh-primary) 10%, transparent);
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell :is(input.form-control, textarea.form-control, select.form-select)::placeholder {
  color: color-mix(in srgb, var(--xh-text) 58%, #2a3d5a);
  opacity: 1;
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell :is(input.form-control, textarea.form-control, select.form-select):hover {
  border-color: color-mix(in srgb, var(--xh-primary) 56%, #ffffff);
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell :is(input.form-control, textarea.form-control, select.form-select):focus {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--xh-surface) 24%, transparent) 0%,
    color-mix(in srgb, var(--xh-surface-soft) 16%, transparent) 100%
  );
  border-color: var(--xh-primary);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--xh-primary) 22%, transparent);
  color: color-mix(in srgb, var(--xh-text) 94%, #0b172c);
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell :is(input.form-control, textarea.form-control, select.form-select):disabled,
html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell :is(input.form-control, textarea.form-control, select.form-select)[readonly] {
  background: color-mix(in srgb, var(--xh-surface-soft) 22%, transparent);
  border-color: color-mix(in srgb, var(--xh-inner-card-border) 72%, #ffffff);
  color: color-mix(in srgb, var(--xh-text) 64%, #2a3d5a);
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell .form-label,
html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell .form-check-label {
  color: color-mix(in srgb, var(--xh-text) 88%, #0d1a2f);
  font-weight: 600;
}

html[data-site-theme]:not([data-site-theme="standard"]) .site-main-shell select.form-select option {
  background: #ffffff;
  color: #10213a;
}

/* =====================================================================
   Festival Icon Upgrade Pack (latest art direction)
   ===================================================================== */

/* Dragon Boat: replace leaf with zongzi string */
html[data-site-theme="dragon-boat"] {
  --xh-footer-ornament-left-image: url('/img/deco/zongzi-string.svg');
  --xh-hero-ornament-left-image: url('/img/deco/zongzi-string.svg');
  --xh-page-hero-ornament-left-image: url('/img/deco/zongzi-string.svg');
}

html[data-site-theme="dragon-boat"] .kd-sun,
html[data-site-theme="dragon-boat"] .kd-flower-1,
html[data-site-theme="dragon-boat"] .kd-heart-1 {
  background-image: url('/img/deco/zongzi-string.svg');
}

html[data-site-theme="dragon-boat"] .kd-sun {
  width: 240px;
  height: 170px;
  top: 4%;
  right: -30px;
  opacity: 0.84;
}

/* Mid-Autumn: moon rabbit + Chang'e + mooncake */
html[data-site-theme="mid-autumn"] {
  --xh-footer-ornament-left-image: url('/img/deco/moon-rabbit.svg');
  --xh-footer-ornament-right-image: url('/img/deco/changee.svg');
  --xh-hero-ornament-left-image: url('/img/deco/moon-rabbit.svg');
  --xh-hero-ornament-right-image: url('/img/deco/changee.svg');
  --xh-page-hero-ornament-left-image: url('/img/deco/moon-rabbit.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/mooncake.svg');
}

html[data-site-theme="mid-autumn"] .kd-sun {
  background-image: url('/img/deco/moon-rabbit.svg');
  width: 230px;
  height: 230px;
  right: -30px;
  top: 2%;
  opacity: 0.82;
}

html[data-site-theme="mid-autumn"] .kd-rainbow {
  background-image: url('/img/deco/changee.svg');
  width: 190px;
  height: 230px;
  left: -20px;
  bottom: 6%;
  opacity: 0.72;
}

html[data-site-theme="mid-autumn"] .kd-flower-1 {
  background-image: url('/img/deco/mooncake.svg');
  width: 160px;
  height: 160px;
  opacity: 0.68;
}

/* Christmas: add Santa + sleigh */
html[data-site-theme="christmas"] {
  --xh-footer-ornament-left-image: url('/img/deco/santa.svg');
  --xh-footer-ornament-right-image: url('/img/deco/sleigh.svg');
  --xh-hero-ornament-left-image: url('/img/deco/santa.svg');
  --xh-hero-ornament-right-image: url('/img/deco/sleigh.svg');
  --xh-page-hero-ornament-left-image: url('/img/deco/santa.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/sleigh.svg');
}

html[data-site-theme="christmas"] .kd-sun {
  background-image: url('/img/deco/santa.svg');
  width: 190px;
  height: 210px;
  right: -10px;
  top: 3%;
  opacity: 0.84;
}

html[data-site-theme="christmas"] .kd-rainbow {
  background-image: url('/img/deco/sleigh.svg');
  width: 280px;
  height: 150px;
  left: -56px;
  bottom: 10%;
  opacity: 0.74;
}

/* New Year Eve: fireworks + Taipei 101 fireworks + world fireworks */
html[data-site-theme="new-year-eve"] {
  --xh-footer-ornament-left-image: url('/img/deco/fireworks-101.svg');
  --xh-footer-ornament-right-image: url('/img/deco/fireworks-world.svg');
  --xh-hero-ornament-left-image: url('/img/deco/fireworks-101.svg');
  --xh-hero-ornament-right-image: url('/img/deco/fireworks-world.svg');
  --xh-page-hero-ornament-left-image: url('/img/deco/fireworks-101.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/fireworks-world.svg');
}

html[data-site-theme="new-year-eve"] .kd-sun {
  background-image: url('/img/deco/fireworks-101.svg');
  width: 210px;
  height: 210px;
  opacity: 0.9;
}

html[data-site-theme="new-year-eve"] .kd-rainbow {
  background-image: url('/img/deco/fireworks-world.svg');
  width: 250px;
  height: 170px;
  opacity: 0.78;
}

html[data-site-theme="new-year-eve"] .kd-flower-1,
html[data-site-theme="new-year-eve"] .kd-heart-1,
html[data-site-theme="new-year-eve"] .kd-star-1,
html[data-site-theme="new-year-eve"] .kd-star-2 {
  background-image: url('/img/deco/firework.svg');
}

/* New Year: Chun/Fu couplets + God of Wealth */
html[data-site-theme="new-year"] {
  --xh-footer-ornament-left-image: url('/img/deco/spring-chun.svg');
  --xh-footer-ornament-right-image: url('/img/deco/god-of-wealth.svg');
  --xh-hero-ornament-left-image: url('/img/deco/spring-fu.svg');
  --xh-hero-ornament-right-image: url('/img/deco/god-of-wealth.svg');
  --xh-page-hero-ornament-left-image: url('/img/deco/spring-chun.svg');
  --xh-page-hero-ornament-right-image: url('/img/deco/spring-fu.svg');
}

/* new-year: 神明 + 紅包 + 鞭炮 大圖浮動 */
html[data-site-theme="new-year"] .kd-sun {
  background-image: url('/img/deco/god-of-wealth.svg');
  animation: kd-float-slow 12s ease-in-out infinite;
  width: 200px;
  height: 220px;
  right: -25px;
  top: 2%;
  opacity: 0.86;
}
html[data-site-theme="new-year"] .kd-rainbow {
  background-image: url('/img/deco/spring-chun.svg');
  animation: kd-sway 9s ease-in-out infinite;
  width: 170px;
  height: 230px;
  left: -20px;
  bottom: 4%;
  opacity: 0.78;
}
html[data-site-theme="new-year"] .kd-heart-1 {
  background-image: url('/img/deco/spring-fu.svg');
  animation: kd-sway 10s ease-in-out infinite reverse;
  width: 150px;
  height: 200px;
  right: -15px;
  top: 25%;
  opacity: 0.74;
}
html[data-site-theme="new-year"] .kd-flower-1 {
  background-image: url('/img/deco/firecracker-string.svg');
  animation: kd-sway 8s ease-in-out infinite;
  width: 120px;
  height: 220px;
  right: -10px;
  bottom: 8%;
  opacity: 0.85;
}
html[data-site-theme="new-year"] .kd-balloon-coral {
  background-image: url('/img/deco/lantern-red.svg');
  animation: kd-sway 7s ease-in-out infinite;
  width: 90px;
  height: 200px;
  left: -15px;
  top: 12%;
  opacity: 0.8;
}
html[data-site-theme="new-year"] .kd-cloud-1 {
  background-image: url('/img/deco/red-envelope.svg');
  width: 100px;
  height: 130px;
  left: 10%;
  top: 5%;
  opacity: 0.75;
}


/* New Year countdown widget */
.newyear-countdown {
  position: fixed;
  right: 14px;
  top: 88px;
  z-index: 8;
  min-width: 210px;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(135deg, rgba(35, 20, 66, 0.82), rgba(84, 47, 145, 0.72));
  color: #fff8dc;
  border: 1px solid rgba(255, 213, 79, 0.52);
  box-shadow: 0 10px 24px rgba(29, 11, 54, 0.36), 0 0 0 1px rgba(255, 213, 79, 0.18) inset;
  backdrop-filter: blur(8px) saturate(1.08);
}

.newyear-countdown-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-align: center;
  color: #ffd54f;
  font-weight: 700;
}

.newyear-countdown-status {
  font-size: 0.72rem;
  text-align: center;
  margin-bottom: 0.38rem;
  color: #ffe9a7;
  letter-spacing: 0.06em;
}

.newyear-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.newyear-sound-toggle {
  margin-top: 0.42rem;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 79, 0.52);
  background: rgba(255, 255, 255, 0.14);
  color: #ffe9a7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.5rem;
}

.newyear-sound-toggle[aria-pressed="true"] {
  background: rgba(255, 213, 79, 0.24);
  color: #fff7d2;
  border-color: rgba(255, 213, 79, 0.76);
}

.newyear-countdown-item {
  display: grid;
  place-items: center;
  border-radius: 10px;
  padding: 0.28rem 0.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newyear-countdown-item span {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.newyear-countdown-item small {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  color: #ffe9a7;
}

@keyframes ny-countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes ny-countdown-flash {
  0%, 100% { box-shadow: 0 10px 24px rgba(29, 11, 54, 0.36), 0 0 0 1px rgba(255, 213, 79, 0.18) inset; }
  50% { box-shadow: 0 12px 30px rgba(29, 11, 54, 0.45), 0 0 0 2px rgba(255, 213, 79, 0.72) inset; }
}

@keyframes ny-seconds-pop {
  0%, 100% { transform: scale(1); color: #ffffff; }
  50% { transform: scale(1.18); color: #ffd54f; }
}

.newyear-countdown.is-final {
  animation: ny-countdown-pulse 0.9s ease-in-out infinite, ny-countdown-flash 0.9s ease-in-out infinite;
}

.newyear-countdown.is-final .newyear-countdown-status {
  color: #ffd54f;
  font-weight: 700;
}

.newyear-countdown.is-final [data-unit="seconds"] {
  animation: ny-seconds-pop 1s ease-in-out infinite;
}

.newyear-countdown.is-done {
  background: linear-gradient(135deg, rgba(110, 20, 20, 0.86), rgba(182, 32, 32, 0.8));
  border-color: rgba(255, 214, 79, 0.86);
}

.newyear-countdown.is-done .newyear-countdown-status {
  color: #fff2b8;
  font-weight: 800;
}

@keyframes ny-sky-burst {
  0%, 100% { filter: brightness(1) saturate(1.1); }
  50% { filter: brightness(1.25) saturate(1.35); }
}

@keyframes ny-glow-pulse {
  0%, 100% { opacity: 0.22; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(1.08); }
}

html[data-site-theme="new-year-eve"] body.front-site.newyear-final-five .kinder-scene-layer,
html[data-site-theme="new-year-eve"] body.front-site.newyear-final-five .kinder-deco-layer {
  animation: ny-sky-burst 0.7s ease-in-out infinite;
}

html[data-site-theme="new-year-eve"] body.front-site.newyear-final-five::before,
html[data-site-theme="new-year-eve"] body.front-site.newyear-final-five::after {
  animation: ny-glow-pulse 0.7s ease-in-out infinite;
}

html[data-site-theme="new-year-eve"] body.front-site.newyear-celebrate .kinder-scene-layer,
html[data-site-theme="new-year-eve"] body.front-site.newyear-celebrate .kinder-deco-layer {
  filter: brightness(1.18) saturate(1.3);
}

html[data-site-theme="new-year-eve"] body.front-site.newyear-celebrate .newyear-countdown {
  box-shadow: 0 14px 36px rgba(136, 24, 24, 0.46), 0 0 0 2px rgba(255, 224, 130, 0.82) inset;
}

.newyear-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  overflow: hidden;
}

.newyear-burst-piece {
  position: absolute;
  top: -14px;
  border-radius: 2px;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

@keyframes ny-burst-drop {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--burst-drift), 115vh, 0) rotate(var(--burst-rotate));
  }
}

.newyear-burst.is-active .newyear-burst-piece {
  animation: ny-burst-drop var(--burst-duration) cubic-bezier(0.22, 0.61, 0.36, 1) var(--burst-delay) forwards;
}

.newyear-cheer {
  position: fixed;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  color: #fff8dc;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 4px 16px rgba(35, 12, 66, 0.52), 0 0 12px rgba(255, 213, 79, 0.62);
  opacity: 0;
}

@keyframes ny-cheer-pop {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.78); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
  68% { opacity: 1; transform: translate(-50%, -54%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.06); }
}

.newyear-cheer.is-active {
  animation: ny-cheer-pop 2s ease-out forwards;
}

html:not([data-site-theme="new-year-eve"]) .newyear-countdown {
  display: none !important;
}

@media (max-width: 768px) {
  .newyear-countdown {
    right: 10px;
    top: 78px;
    min-width: 186px;
    padding: 0.58rem 0.62rem;
  }

  .newyear-countdown-item span {
    font-size: 0.9rem;
  }
}

/* =====================================================================
   Hero Safe Zone + Festival 5-10s Effects
   ===================================================================== */

/* Keep hero copy area clear from decorative icons */
html[data-site-theme]:not([data-site-theme="standard"]) .home-main-hero > .row > .col-12.col-lg-6:first-child {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, color-mix(in srgb, var(--xh-surface) 42%, transparent), color-mix(in srgb, var(--xh-surface-soft) 24%, transparent));
  border: 1px solid color-mix(in srgb, var(--xh-border) 72%, #ffffff);
  border-radius: 1.1rem;
  padding: 0.8rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--xh-primary) 10%, transparent);
}

html[data-site-theme]:not([data-site-theme="standard"]) .home-main-hero::before {
  left: auto;
  right: -24px;
  top: 2px;
  opacity: calc(var(--xh-hero-ornament-left-opacity) * 0.62);
}

@media (max-width: 991px) {
  html[data-site-theme]:not([data-site-theme="standard"]) .home-main-hero > .row > .col-12.col-lg-6:first-child {
    padding: 0.55rem;
  }
}

@keyframes fx-dboat-cruise {
  0% { transform: translateX(-130vw) translateY(0); opacity: 0; }
  8% { opacity: 0.85; }
  50% { transform: translateX(2vw) translateY(-8px); opacity: 0.9; }
  92% { opacity: 0.85; }
  100% { transform: translateX(126vw) translateY(2px); opacity: 0; }
}

@keyframes fx-rabbit-sprint {
  0% { transform: translateX(-120vw) translateY(0); opacity: 0; }
  10% { opacity: 0.8; }
  28% { transform: translateX(-40vw) translateY(-14px); }
  52% { transform: translateX(20vw) translateY(0); }
  74% { transform: translateX(70vw) translateY(-12px); }
  100% { transform: translateX(130vw) translateY(0); opacity: 0; }
}

@keyframes fx-changee-fly {
  0% { transform: translateX(110vw) translateY(30px) scale(0.9); opacity: 0; }
  15% { opacity: 0.75; }
  60% { transform: translateX(10vw) translateY(-26px) scale(1); opacity: 0.8; }
  100% { transform: translateX(-120vw) translateY(-56px) scale(1.02); opacity: 0; }
}

@keyframes fx-sleigh-delivery {
  0% { transform: translateX(-130vw) translateY(0) rotate(-2deg); opacity: 0; }
  10% { opacity: 0.88; }
  42% { transform: translateX(-10vw) translateY(-16px) rotate(1deg); }
  74% { transform: translateX(58vw) translateY(-6px) rotate(-1deg); }
  100% { transform: translateX(130vw) translateY(-18px) rotate(0deg); opacity: 0; }
}

@keyframes fx-ny-firework101 {
  0%, 100% { transform: scale(0.9); filter: saturate(1.1) brightness(0.98); opacity: 0.72; }
  50% { transform: scale(1.08); filter: saturate(1.4) brightness(1.22); opacity: 1; }
}

@keyframes fx-dragon-dance {
  0% { transform: translateX(-120vw) translateY(8px) rotate(-1deg); opacity: 0; }
  12% { opacity: 0.9; }
  36% { transform: translateX(-32vw) translateY(-10px) rotate(1deg); }
  62% { transform: translateX(24vw) translateY(8px) rotate(-1deg); }
  100% { transform: translateX(120vw) translateY(-6px) rotate(1deg); opacity: 0; }
}

@keyframes fx-firecracker-bang {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-10px) scale(1.08); filter: brightness(1.28); }
}

@keyframes fx-toy-parade {
  0% { transform: translateX(-120vw) rotate(0deg); opacity: 0; }
  10% { opacity: 0.82; }
  50% { transform: translateX(12vw) rotate(8deg); }
  100% { transform: translateX(120vw) rotate(-6deg); opacity: 0; }
}

/* Dragon Boat: dragon boat glides across */
html[data-site-theme="dragon-boat"] .kd-rainbow {
  animation: fx-dboat-cruise 9s linear infinite;
  bottom: 12%;
}

/* Mid-Autumn: moon rabbit running + Chang'e flying */
html[data-site-theme="mid-autumn"] .kd-sun {
  animation: fx-rabbit-sprint 8s linear infinite;
  top: 8%;
}

html[data-site-theme="mid-autumn"] .kd-rainbow {
  animation: fx-changee-fly 10s ease-in-out infinite;
}

/* Christmas: Santa with sleigh delivery */
html[data-site-theme="christmas"] .kd-rainbow {
  animation: fx-sleigh-delivery 9s linear infinite;
}

/* New Year Eve: 101 firework special burst loop */
html[data-site-theme="new-year-eve"] .kd-sun {
  animation: fx-ny-firework101 6s ease-in-out infinite;
}

/* Lunar New Year: firecrackers + dragon/lion dance */
html[data-site-theme="new-year"] .kd-flower-1 {
  background-image: url('/img/deco/firecracker-string.svg');
  animation: fx-firecracker-bang 7s ease-in-out infinite;
  width: 120px;
  height: 220px;
  bottom: 10%;
}

html[data-site-theme="new-year"] .kd-rainbow {
  background-image: url('/img/deco/dragon-lion.svg');
  animation: fx-dragon-dance 8s linear infinite;
  width: 300px;
  height: 140px;
  bottom: 12%;
}

/* Children's Day: toy parade */
html[data-site-theme="childrens-day"] .kd-heart-1 {
  animation: fx-toy-parade 9s linear infinite;
}

html[data-site-theme="childrens-day"] .kd-flower-1 {
  animation: kd-spin-slow 4.8s linear infinite;
}

/* =====================================================================
   Festival watermark background mode
   ===================================================================== */

html[data-site-theme]:not([data-site-theme="standard"]) {
  --xh-scene-opacity: 0;
  --xh-scene-filter: grayscale(0.08) saturate(0.72) contrast(0.92);
  --xh-scene-overlay: none;
  --xh-scene-glow: none;
}


html[data-site-theme]:not([data-site-theme="standard"]) .kinder-scene-layer {
  background-repeat: no-repeat;
  background-size: min(72vw, 900px) auto;
  background-position: center 56%;
  mix-blend-mode: multiply;
  opacity: var(--xh-scene-opacity);
}

@media (max-width: 991px) {
  html[data-site-theme]:not([data-site-theme="standard"]) {
    --xh-scene-opacity: 0.10;
  }

  html[data-site-theme]:not([data-site-theme="standard"]) .kinder-scene-layer {
    background-size: 96vw auto;
    background-position: center 60%;
  }
}

/* =====================================================================
   Festival opening intro effects (one-time on page load)
   ===================================================================== */

.festival-opening {
  position: fixed;
  left: 0;
  right: 0;
  top: clamp(64px, 10vh, 120px);
  height: min(42vh, 340px);
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  overflow: hidden;
  --f-open-primary: #ffb300;
  --f-open-secondary: #ff7043;
  --f-open-image: none;
}

.festival-opening.is-ready {
  opacity: 1;
}

.festival-opening::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 48%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--f-open-primary) 30%, transparent), transparent 72%);
  opacity: 0;
}

.festival-opening-flare {
  position: absolute;
  top: 12%;
  width: clamp(90px, 16vw, 190px);
  height: clamp(90px, 16vw, 190px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--f-open-secondary) 78%, #ffffff), transparent 68%),
    radial-gradient(circle at 56% 42%, color-mix(in srgb, var(--f-open-primary) 68%, transparent), transparent 72%);
  filter: blur(1px);
  opacity: 0;
}

.festival-opening-flare-left {
  left: max(3%, 20px);
}

.festival-opening-flare-right {
  right: max(3%, 20px);
}

.festival-opening-ribbon {
  position: absolute;
  left: -16%;
  right: -16%;
  top: 50%;
  height: clamp(86px, 12vw, 150px);
  transform: translateY(-50%);
  background-image: var(--f-open-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0;
  filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--f-open-secondary) 26%, transparent));
}

.festival-opening-particle {
  position: absolute;
  left: var(--f-open-left);
  top: -16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 30%, #ffffff, color-mix(in srgb, var(--f-open-primary) 82%, #ffffff));
  box-shadow: 0 0 10px color-mix(in srgb, var(--f-open-secondary) 48%, transparent);
}

@keyframes festival-open-ribbon {
  0% { transform: translate(-10%, -50%) scale(0.84); opacity: 0; }
  18% { transform: translate(0, -50%) scale(1); opacity: 0.94; }
  72% { transform: translate(0, -49%) scale(1.03); opacity: 0.94; }
  100% { transform: translate(12%, -48%) scale(0.96); opacity: 0; }
}

@keyframes festival-open-flare-left {
  0% { transform: translateX(-30px) scale(0.78); opacity: 0; }
  26% { transform: translateX(0) scale(1); opacity: 0.75; }
  100% { transform: translateX(22px) scale(1.08); opacity: 0; }
}

@keyframes festival-open-flare-right {
  0% { transform: translateX(30px) scale(0.78); opacity: 0; }
  26% { transform: translateX(0) scale(1); opacity: 0.75; }
  100% { transform: translateX(-22px) scale(1.08); opacity: 0; }
}

@keyframes festival-open-particle {
  0% { opacity: 0; transform: translateY(-8px) scale(0.4); }
  14% { opacity: 0.92; }
  100% { opacity: 0; transform: translateY(300px) scale(1.12); }
}

@keyframes festival-open-glow {
  0% { opacity: 0; }
  24% { opacity: 0.78; }
  100% { opacity: 0; }
}

.festival-opening.is-active::before {
  animation: festival-open-glow 7.6s ease-out forwards;
}

.festival-opening.is-active .festival-opening-ribbon {
  animation: festival-open-ribbon 7.4s cubic-bezier(0.2, 0.78, 0.25, 1) forwards;
}

.festival-opening.is-active .festival-opening-flare-left {
  animation: festival-open-flare-left 7.4s ease-out forwards;
}

.festival-opening.is-active .festival-opening-flare-right {
  animation: festival-open-flare-right 7.4s ease-out forwards;
}

.festival-opening.is-active .festival-opening-particle {
  animation: festival-open-particle var(--f-open-duration) linear var(--f-open-delay) forwards;
}

.festival-opening[data-theme="dragon-boat"] {
  --f-open-primary: #2e7d32;
  --f-open-secondary: #8bc34a;
  --f-open-image: url('/img/deco/dragon-lion.svg');
}

.festival-opening[data-theme="mid-autumn"] {
  --f-open-primary: #efc95a;
  --f-open-secondary: #f08b4f;
  --f-open-image: url('/img/deco/moon-rabbit.svg');
}

.festival-opening[data-theme="christmas"] {
  --f-open-primary: #2e7d32;
  --f-open-secondary: #c62828;
  --f-open-image: url('/img/deco/sleigh.svg');
}

.festival-opening[data-theme="new-year-eve"] {
  --f-open-primary: #ffd54f;
  --f-open-secondary: #ff7043;
  --f-open-image: url('/img/deco/fireworks-101.svg');
}

.festival-opening[data-theme="new-year"] {
  --f-open-primary: #ffca28;
  --f-open-secondary: #c62828;
  --f-open-image: url('/img/deco/god-of-wealth.svg');
}

.festival-opening[data-theme="childrens-day"] {
  --f-open-primary: #4fc3f7;
  --f-open-secondary: #ff8a65;
  --f-open-image: url('/img/deco/rainbow.svg');
}

@media (max-width: 768px) {
  .festival-opening {
    top: clamp(58px, 9vh, 94px);
    height: min(31vh, 200px);
  }

  .festival-opening-ribbon {
    left: -26%;
    right: -26%;
    top: 52%;
  }

  .festival-opening-particle {
    width: 8px;
    height: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-opening,
  .festival-opening * {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Festival ambient effects (continuous on homepage)
   ===================================================================== */

.festival-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
  opacity: 0;
  --fa-color-a: #ffd54f;
  --fa-color-b: #ff8a65;
}

.festival-ambient.is-active {
  opacity: 1;
}

.festival-ambient::before,
.festival-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.festival-ambient-particle {
  position: absolute;
  left: var(--fa-left);
  top: calc(100% + 20px);
  width: var(--fa-size);
  height: var(--fa-size);
  border-radius: 999px;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 30%, #ffffff, color-mix(in srgb, var(--fa-color-a) 82%, #ffffff));
  box-shadow:
    0 0 14px color-mix(in srgb, var(--fa-color-a) 55%, transparent),
    0 0 8px color-mix(in srgb, var(--fa-color-b) 36%, transparent);
  filter: saturate(1.08);
  animation:
    festival-ambient-rise var(--fa-duration) linear var(--fa-delay) infinite,
    festival-ambient-twinkle 2.8s ease-in-out var(--fa-delay) infinite;
}

.festival-ambient-particle.is-ribbon,
.festival-ambient-particle.is-red-strip {
  width: calc(var(--fa-size) * 0.62);
  height: calc(var(--fa-size) * 1.44);
  border-radius: 3px;
}

.festival-ambient-particle.is-ribbon {
  background: linear-gradient(180deg, #ffffff 0%, #ffd9d9 45%, #c62828 100%);
}

.festival-ambient-particle.is-red-strip {
  background: linear-gradient(180deg, #ffd54f 0%, #ef9a9a 35%, #b71c1c 100%);
  box-shadow:
    0 0 14px color-mix(in srgb, #b71c1c 56%, transparent),
    0 0 8px color-mix(in srgb, #ffd54f 44%, transparent);
}

.festival-ambient-particle.is-snowflake {
  width: calc(var(--fa-size) * 1.22);
  height: calc(var(--fa-size) * 1.22);
  border-radius: 0;
  background: url('/img/deco/snowflake.svg') center / contain no-repeat;
  box-shadow: none;
  opacity: 0;
}

.festival-ambient-particle.is-ingot {
  width: calc(var(--fa-size) * 1.34);
  height: calc(var(--fa-size) * 0.84);
  border-radius: 64% 64% 40% 40% / 86% 86% 32% 32%;
  background: linear-gradient(180deg, #fff3bf 0%, #ffd54f 42%, #ffb300 100%);
  box-shadow:
    0 0 16px color-mix(in srgb, #ffb300 64%, transparent),
    0 0 10px color-mix(in srgb, #b71c1c 32%, transparent);
}

.festival-ambient-particle.is-leaf {
  width: calc(var(--fa-size) * 0.9);
  height: calc(var(--fa-size) * 1.42);
  border-radius: 70% 28% 68% 30% / 68% 32% 64% 36%;
  background: linear-gradient(180deg, #c5e1a5 0%, #7cb342 46%, #2e7d32 100%);
}

.festival-ambient-particle.is-wave {
  width: calc(var(--fa-size) * 1.5);
  height: calc(var(--fa-size) * 0.64);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(179, 229, 252, 0.88), rgba(46, 125, 50, 0.78));
}

.festival-ambient-particle.is-lantern-dot {
  width: calc(var(--fa-size) * 1.12);
  height: calc(var(--fa-size) * 1.12);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e1 0%, #ffb74d 46%, #fb8c00 100%);
}

.festival-ambient-particle.is-moon-dust {
  width: calc(var(--fa-size) * 0.72);
  height: calc(var(--fa-size) * 0.72);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #ffe082 62%, rgba(255, 224, 130, 0.22) 100%);
}

.festival-ambient-particle.is-firework-spark {
  width: calc(var(--fa-size) * 0.72);
  height: calc(var(--fa-size) * 0.72);
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff8e1 0%, #ffd54f 46%, #ff7043 100%);
}

.festival-ambient-particle.is-bubble {
  width: calc(var(--fa-size) * 1.2);
  height: calc(var(--fa-size) * 1.2);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(129, 212, 250, 0.62) 52%, rgba(171, 71, 188, 0.22) 100%);
  box-shadow: 0 0 14px rgba(129, 212, 250, 0.48);
}

.festival-ambient-particle.is-star-confetti {
  width: calc(var(--fa-size) * 1.06);
  height: calc(var(--fa-size) * 1.06);
  border-radius: 0;
  clip-path: polygon(50% 0%, 62% 35%, 100% 38%, 70% 59%, 80% 95%, 50% 74%, 20% 95%, 30% 59%, 0% 38%, 38% 35%);
  background: linear-gradient(135deg, #ffee58 0%, #ff8a65 58%, #ab47bc 100%);
  box-shadow: none;
}

@keyframes festival-ambient-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.72);
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--fa-drift), -118vh, 0) rotate(var(--fa-rotate)) scale(1.06);
  }
}

@keyframes festival-ambient-twinkle {
  0%, 100% {
    filter: brightness(1) saturate(1.05);
  }
  50% {
    filter: brightness(1.22) saturate(1.28);
  }
}

.festival-ambient[data-theme="dragon-boat"] {
  --fa-color-a: #9ccc65;
  --fa-color-b: #2e7d32;
}

.festival-ambient[data-theme="dragon-boat"]::before {
  opacity: 0.64;
  background: repeating-linear-gradient(100deg, rgba(129, 199, 132, 0.18) 0 14px, rgba(179, 229, 252, 0.08) 14px 30px);
  animation: festival-dboat-flow 8s linear infinite;
}

.festival-ambient[data-theme="mid-autumn"] {
  --fa-color-a: #ffe082;
  --fa-color-b: #fb8c00;
}

.festival-ambient[data-theme="mid-autumn"]::before {
  opacity: 0.58;
  background: radial-gradient(circle at 50% 12%, rgba(255, 224, 130, 0.28) 0%, transparent 48%);
  animation: festival-midautumn-glow 3.4s ease-in-out infinite;
}

.festival-ambient[data-theme="christmas"] {
  --fa-color-a: #ffd0d0;
  --fa-color-b: #c62828;
}

.festival-ambient[data-theme="christmas"]::before {
  opacity: 0.88;
  background:
    repeating-linear-gradient(115deg, rgba(198, 40, 40, 0.16) 0 18px, rgba(255, 255, 255, 0.02) 18px 36px);
  animation: festival-christmas-sweep 7.4s linear infinite;
}

.festival-ambient[data-theme="christmas"]::after {
  opacity: 0.42;
  background: radial-gradient(circle at 50% 14%, rgba(255, 205, 210, 0.36) 0%, transparent 54%);
}

.festival-ambient[data-theme="new-year-eve"] {
  --fa-color-a: #ffd54f;
  --fa-color-b: #ff7043;
}

.festival-ambient[data-theme="new-year-eve"]::before {
  opacity: 0.72;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 213, 79, 0.22) 0%, transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(255, 112, 67, 0.24) 0%, transparent 28%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.2) 0%, transparent 30%);
  animation: festival-eve-spark 1.8s ease-in-out infinite;
}

.festival-ambient[data-theme="new-year"] {
  --fa-color-a: #ffe082;
  --fa-color-b: #b71c1c;
}

.festival-ambient[data-theme="new-year"]::before {
  opacity: 0.9;
  background:
    radial-gradient(circle at 16% 18%, rgba(198, 40, 40, 0.24) 0%, transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(198, 40, 40, 0.24) 0%, transparent 34%),
    radial-gradient(circle at 50% 10%, rgba(255, 213, 79, 0.2) 0%, transparent 38%);
  animation: festival-newyear-pulse 2.4s ease-in-out infinite;
}

.festival-ambient[data-theme="new-year"]::after {
  opacity: 0.58;
  background:
    linear-gradient(180deg, rgba(183, 28, 28, 0.16) 0%, transparent 44%);
}

@keyframes festival-christmas-sweep {
  0% { transform: translateX(-12%); }
  100% { transform: translateX(12%); }
}

@keyframes festival-newyear-pulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.2) saturate(1.2); }
}

.festival-ambient[data-theme="childrens-day"] {
  --fa-color-a: #81d4fa;
  --fa-color-b: #ff8a65;
}

.festival-ambient[data-theme="childrens-day"]::before {
  opacity: 0.56;
  background: linear-gradient(120deg, rgba(129, 212, 250, 0.2), rgba(255, 138, 101, 0.18), rgba(171, 71, 188, 0.16));
  animation: festival-child-bounce 4.2s ease-in-out infinite;
}

@keyframes festival-dboat-flow {
  0% { transform: translateX(-8%); }
  100% { transform: translateX(8%); }
}

@keyframes festival-midautumn-glow {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.18) saturate(1.2); }
}

@keyframes festival-eve-spark {
  0%, 100% { filter: brightness(1) saturate(1.04); }
  50% { filter: brightness(1.28) saturate(1.32); }
}

@keyframes festival-child-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .festival-ambient-particle {
    animation-duration: calc(var(--fa-duration) * 0.84), 2.5s;
    box-shadow: 0 0 10px color-mix(in srgb, var(--fa-color-a) 45%, transparent);
  }

  .festival-ambient[data-theme="christmas"]::before,
  .festival-ambient[data-theme="new-year"]::before,
  .festival-ambient[data-theme="dragon-boat"]::before,
  .festival-ambient[data-theme="mid-autumn"]::before,
  .festival-ambient[data-theme="new-year-eve"]::before,
  .festival-ambient[data-theme="childrens-day"]::before {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-ambient,
  .festival-ambient * {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Festival tagline intro (2s homepage cue)
   ===================================================================== */

.festival-tagline {
  position: fixed;
  left: 50%;
  top: clamp(92px, 11vh, 140px);
  transform: translate(-50%, -10px) scale(0.96);
  z-index: 8;
  pointer-events: none;
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  min-width: min(86vw, 460px);
  padding: 0.45rem 0.95rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(7px) saturate(1.08);
  box-shadow: 0 10px 26px rgba(24, 35, 52, 0.2);
  opacity: 0;
}

.festival-tagline-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: color-mix(in srgb, var(--xh-primary-deep) 84%, #0e2238);
}

.festival-tagline-title {
  font-size: clamp(0.98rem, 2.2vw, 1.18rem);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--xh-text) 86%, #111111);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.56);
}

.festival-tagline-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--xh-text) 72%, #253243);
  opacity: 0;
  transform: translateY(4px);
}

.festival-tagline-cta {
  background-color: var(--xh-accent);
  color: #fefcf3;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-out;
  margin-top: 0.6rem;
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}

.festival-tagline.is-phase-two .festival-tagline-cta {
  animation: festival-tagline-cta-reveal 1s ease-out 0.5s forwards;
}

.festival-tagline-cta:hover {
  background-color: color-mix(in srgb, var(--xh-accent) 85%, #000);
  transform: translateY(6px);
}

.festival-tagline-cta:focus {
  outline: 2px solid var(--xh-accent);
  outline-offset: 2px;
}

.festival-tagline-cta:active {
  transform: translateY(10px);
}

@keyframes festival-tagline-cta-reveal {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0.92; transform: translateY(0); }
}

.festival-tagline.is-showing {
  animation: festival-tagline-pop 2.7s cubic-bezier(0.2, 0.78, 0.25, 1) forwards;
}

.festival-tagline.is-phase-two .festival-tagline-subtitle {
  animation: festival-tagline-sub-reveal 1.4s ease-out forwards;
}

@keyframes festival-tagline-pop {
  0% { opacity: 0; transform: translate(-50%, -14px) scale(0.92); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  76% { opacity: 1; transform: translate(-50%, 0) scale(1.01); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(0.96); }
}

@keyframes festival-tagline-sub-reveal {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 0.96; transform: translateY(0); }
}

.festival-tagline[data-theme="dragon-boat"] {
  border-color: rgba(124, 179, 66, 0.52);
  background: linear-gradient(135deg, rgba(241, 248, 233, 0.86), rgba(227, 242, 253, 0.6));
}

.festival-tagline[data-theme="mid-autumn"] {
  border-color: rgba(251, 140, 0, 0.52);
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.88), rgba(255, 224, 178, 0.62));
}

.festival-tagline[data-theme="christmas"] {
  border-color: rgba(183, 28, 28, 0.5);
  background: linear-gradient(135deg, rgba(255, 235, 238, 0.9), rgba(255, 205, 210, 0.64));
}

.festival-tagline[data-theme="new-year-eve"] {
  border-color: rgba(255, 213, 79, 0.62);
  background: linear-gradient(135deg, rgba(252, 245, 255, 0.9), rgba(255, 243, 224, 0.65));
}

.festival-tagline[data-theme="new-year"] {
  border-color: rgba(198, 40, 40, 0.58);
  background: linear-gradient(135deg, rgba(255, 240, 240, 0.92), rgba(255, 224, 178, 0.66));
}

.festival-tagline[data-theme="childrens-day"] {
  border-color: rgba(129, 212, 250, 0.58);
  background: linear-gradient(135deg, rgba(225, 245, 254, 0.9), rgba(255, 224, 231, 0.62));
}

@media (max-width: 768px) {
  .festival-tagline {
    top: 82px;
    min-width: min(90vw, 390px);
    padding: 0.35rem 0.78rem 0.44rem;
  }

  .festival-tagline-kicker {
    font-size: 0.66rem;
  }

  .festival-tagline-title {
    font-size: 0.94rem;
  }

  .festival-tagline-subtitle {
    font-size: 0.72rem;
  }

  .festival-tagline-cta {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festival-tagline,
  .festival-tagline * {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Strong festival emphasis overrides (high visibility)
   ===================================================================== */

/* Christmas: use Christmas red as dominant tone */
html[data-site-theme="christmas"] {
  --xh-primary: #d32f2f;
  --xh-primary-deep: #7f0000;
  --xh-accent: #b71c1c;
  --xh-header-bg: linear-gradient(135deg, #7f0000 0%, #b71c1c 26%, #ffebee 26%, #fff5f5 68%, #ffe1e1 100%);
  --xh-header-title: #fff2f2;
  --xh-header-subtitle: #ffd9d9;
  --xh-header-link: #8b0000;
  --xh-header-link-hover-bg: rgba(211, 47, 47, 0.2);
  --xh-header-link-hover-color: #8b0000;
}

html[data-site-theme="christmas"] body.front-site {
  background:
    radial-gradient(circle at 16% 20%, rgba(183, 28, 28, 0.22) 0%, transparent 36%),
    radial-gradient(circle at 84% 18%, rgba(211, 47, 47, 0.2) 0%, transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(255, 205, 210, 0.32) 0%, transparent 44%),
    linear-gradient(180deg, #fff0f0 0%, #fff7f7 50%, #ffffff 100%);
}

html[data-site-theme="christmas"] .site-header {
  border-bottom-color: #ef9a9a;
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.24);
}

html[data-site-theme="christmas"] .site-nav-link.active,
html[data-site-theme="christmas"] .site-nav-admin-btn {
  background: linear-gradient(120deg, #b71c1c, #e53935);
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.34);
  color: #fff;
}

html[data-site-theme="christmas"] .kinder-deco-layer {
  filter: hue-rotate(-42deg) saturate(1.32) contrast(1.04);
  opacity: 0.96;
}

html[data-site-theme="christmas"] .home-section-title::before {
  background: linear-gradient(90deg, #d32f2f, #ff6b6b);
}

/* Lunar New Year: use deep festive red as dominant tone */
html[data-site-theme="new-year"] {
  --xh-primary: #c62828;
  --xh-primary-deep: #7f0000;
  --xh-accent: #b71c1c;
  --xh-header-bg: linear-gradient(135deg, #7f0000 0%, #b71c1c 28%, #fff4f0 28%, #fff8e8 72%, #ffe9e9 100%);
  --xh-header-title: #fff6ef;
  --xh-header-subtitle: #ffe1b2;
  --xh-header-link: #8b0000;
  --xh-header-link-hover-bg: rgba(198, 40, 40, 0.22);
  --xh-header-link-hover-color: #8b0000;
}

html[data-site-theme="new-year"] body.front-site {
  background:
    radial-gradient(circle at 18% 22%, rgba(183, 28, 28, 0.24) 0%, transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(198, 40, 40, 0.22) 0%, transparent 36%),
    radial-gradient(circle at 50% 90%, rgba(255, 213, 79, 0.2) 0%, transparent 42%),
    linear-gradient(180deg, #fff0f0 0%, #fff7ee 48%, #ffffff 100%);
}

html[data-site-theme="new-year"] .site-header {
  border-bottom-color: #ef9a9a;
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.26);
}

html[data-site-theme="new-year"] .site-nav-link.active,
html[data-site-theme="new-year"] .site-nav-admin-btn {
  background: linear-gradient(120deg, #b71c1c, #e53935);
  box-shadow: 0 8px 20px rgba(183, 28, 28, 0.36);
  color: #fff;
}

html[data-site-theme="new-year"] .kinder-deco-layer {
  filter: hue-rotate(-20deg) saturate(1.36) contrast(1.04);
  opacity: 0.97;
}

html[data-site-theme="new-year"] .home-section-title::before {
  background: linear-gradient(90deg, #c62828, #ff7043);
}

/* Keep opening and ambient effects aligned with the red-focused request */
.festival-opening[data-theme="christmas"] {
  --f-open-primary: #ff8a80;
  --f-open-secondary: #b71c1c;
}

.festival-opening[data-theme="new-year"] {
  --f-open-primary: #ffb300;
  --f-open-secondary: #b71c1c;
}
