/* 聖若瑟教區中學第五校 95週年 - 現代玻璃態設計 */

:root {
  /* 的紅金暖色系 */
  --primary: linear-gradient(135deg, #c01924 0%, #e63b33 100%);
  --secondary: linear-gradient(135deg, #f6c453 0%, #ffe1a1 100%);
  --accent: #c01924;
  --accent-light: #f26b3f;
  --gold: #f6c453;
  --text-dark: #2b1a1a;
  --text-medium: #5b3b3b;
  --text-light: #9c7b7b;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 10px 35px 0 rgba(190, 120, 90, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans TC', -apple-system, sans-serif;
  color: var(--text-dark);
  /* 使用水彩背景圖片 - 清晰版本 */
  background: 
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    url('../../images/watercolor-bg.jpg') center/cover no-repeat fixed;
  /* 備用背景色（如果圖片未加載） */
  background-color: #f5f7fa;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ========== 返回首頁按鈕 ========== */
.home-button {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #8a5cb1 0%, #b794db 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(138, 92, 177, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 92, 177, 0.4);
  background: linear-gradient(135deg, #9a6cc1 0%, #c7a4eb 100%);
}

.home-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(138, 92, 177, 0.3);
}

.home-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.home-text {
  white-space: nowrap;
  letter-spacing: 0.05em;
}

/* ========== 進場動畫系統 ========== */
/* 初始隱藏狀態 */
.animate-entrance {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 縮放動畫變體 */
.animate-entrance.animate-scale {
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 顯示狀態 */
.animate-entrance.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-entrance.animate-scale.active {
  transform: translateY(0) scale(1);
}

/* 淡入動畫（用於logo） */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 縮放彈跳（用於95周年數字） */
@keyframes scaleInBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== Loading 加載動畫 ========== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), url(../../images/watercolor-bg.jpg) center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
  overflow: hidden;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ========================================
   光環擴散 Loading 動畫
   ======================================== */

.loader-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 光環擴散效果已移除 - 簡化 Loading 畫面 */

/* 中心內容 */
.loader-content {
  position: relative;
  text-align: center;
  z-index: 10;
  animation: contentFadeIn 0.8s ease-out;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 校徽 */
.loader-logo {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 20px rgba(192, 25, 36, 0.6)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.4));
}

.loader-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 0.5) 0%, 
    rgba(192, 25, 36, 0.4) 50%, 
    transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* 95 數字 */
.loader-number {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 80px;
  line-height: 1;
  margin: 20px 0;
  animation: numberFadeIn 1s ease-out 0.3s backwards;
}

.loader-95 {
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
  display: inline-block;
  animation: goldShimmer 2s ease-in-out infinite;
}

.loader-th {
  font-size: 32px;
  color: #ffd700;
  opacity: 1;
  margin-left: 5px;
  vertical-align: super;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.6);
}

@keyframes numberFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goldShimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

/* 文字 */
.loader-text {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  font-weight: 700;
  color: #2c1810;
  margin: 15px 0 10px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
  animation: textFadeIn 1s ease-out 0.6s backwards;
}

.loader-subtext {
  font-family: 'Noto Serif TC', serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d2817;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.5);
  animation: textFadeIn 1s ease-out 0.9s backwards;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 進度條 */
.loader-progress {
  width: 200px;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: progressFadeIn 1s ease-out 1.2s backwards;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c01924, #ffd700, #c01924);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progressMove 2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(192, 25, 36, 0.4);
}

@keyframes progressFadeIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes progressMove {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(50%);
  }
}

/* 星光粒子 */
.loader-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.loader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffd700, rgba(255, 215, 0, 0.3), transparent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.4);
  animation: particleFloat 3s ease-in-out infinite;
  opacity: 0;
}

.loader-particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.loader-particle:nth-child(2) {
  top: 40%;
  left: 85%;
  animation-delay: 0.5s;
}

.loader-particle:nth-child(3) {
  top: 60%;
  left: 10%;
  animation-delay: 1s;
}

.loader-particle:nth-child(4) {
  top: 80%;
  left: 80%;
  animation-delay: 1.5s;
}

.loader-particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 2s;
}

.loader-particle:nth-child(6) {
  top: 70%;
  left: 50%;
  animation-delay: 2.5s;
}

.loader-particle:nth-child(7) {
  top: 15%;
  left: 70%;
  animation-delay: 0.75s;
}

.loader-particle:nth-child(8) {
  top: 85%;
  left: 30%;
  animation-delay: 1.75s;
}

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1.5);
  }
}

/* 響應式調整 */
@media (max-width: 768px) {
  .loader-container {
    max-width: 90%;
    height: 400px;
  }
  
  .loader-logo {
    width: 100px;
    height: 100px;
  }
  
  .loader-number {
    font-size: 60px;
  }
  
  .loader-th {
    font-size: 24px;
  }
  
  .loader-text {
    font-size: 16px;
  }
  
  .loader-subtext {
    font-size: 12px;
  }
  
  .loader-progress {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .loader-container {
    height: 350px;
  }
  
  .loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .loader-number {
    font-size: 50px;
  }
  
  .loader-th {
    font-size: 20px;
  }
  
  .loader-text {
    font-size: 14px;
  }
  
  .loader-subtext {
    font-size: 11px;
  }
  
  .loader-progress {
    width: 120px;
  }
}
    #c01924 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: numberShine 2s ease-in-out infinite;
}

.loader-95 {
  display: inline-block;
}

.loader-th {
  font-size: 36px;
  vertical-align: super;
  margin-left: 6px;
  opacity: 0.8;
  font-style: normal;
  background: linear-gradient(135deg, 
    #f6c453 0%,
    #e63b33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-text {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  color: var(--text-medium);
  margin-bottom: 30px;
  letter-spacing: 2px;
  animation: textFade 2s ease-in-out infinite;
  white-space: nowrap;
  overflow: visible;
  width: 100%;
  min-height: 30px;
}

/* 三環旋轉加載器 */
.loader-spinner {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: spinRing 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
  border-top-color: #c01924;
  border-bottom-color: #c01924;
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  width: 55px;
  height: 55px;
  margin-left: -27.5px;
  margin-top: -27.5px;
  border-top-color: #f6c453;
  border-right-color: #f6c453;
  animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border-top-color: #e63b33;
  border-left-color: #e63b33;
  animation-delay: -0.15s;
}

/* Loading 動畫 Keyframes */
@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes numberShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Loading 移動端優化 */
@media (max-width: 480px) {
  .loader-logo-img {
    width: 100px;
    height: 100px;
  }
  
  .loader-number {
    font-size: 64px;
  }
  
  .loader-th {
    font-size: 28px;
  }
  
  .loader-text {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .loader-spinner {
    width: 60px;
    height: 60px;
  }
  
  .spinner-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
  }
}

/* 動態背景 - 95週年主題動畫 */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

/* 飄浮的數字95 - 藝術字體版本 */
.floating-95 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 80px;
  opacity: 0.08;
  font-size: 35vw;
  font-weight: 900;
  /* 藝術字體 - Playfair Display（優雅展示字體）*/
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-style: italic;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, 
    rgba(246, 196, 83, 0.6) 0%,
    rgba(212, 175, 55, 0.7) 30%,
    rgba(255, 215, 0, 0.5) 50%,
    rgba(212, 175, 55, 0.7) 70%,
    rgba(192, 25, 36, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float95 12s ease-in-out infinite;
  filter: drop-shadow(0 0 50px rgba(246, 196, 83, 0.3));
  text-shadow: 
    0 0 80px rgba(255, 215, 0, 0.15),
    0 0 120px rgba(246, 196, 83, 0.1);
}

.number-9, .number-5 {
  display: inline-block;
  animation: numberPulse 4s ease-in-out infinite;
}

.number-5 {
  animation-delay: -2s;
}

@keyframes float95 {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -48%) scale(1.08);
  }
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.3);
  }
}

/* 閃爍光點散景容器 */
.sparkle-lights {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 光點基礎樣式 */
.light-orb {
  position: absolute;
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  animation: sparkleFloat var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  pointer-events: none;
}

/* 大光點（清晰明亮 - 無模糊） */
.light-orb.large {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, 
    rgba(255, 223, 140, 1) 0%,
    rgba(255, 200, 100, 0.9) 25%,
    rgba(255, 180, 80, 0.6) 50%,
    rgba(255, 160, 60, 0.3) 75%,
    transparent 100%);
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 80px rgba(255, 180, 80, 0.5);
}

/* 中光點（無模糊） */
.light-orb.medium {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, 
    rgba(255, 230, 160, 1) 0%,
    rgba(255, 210, 120, 0.8) 30%,
    rgba(255, 190, 90, 0.5) 60%,
    transparent 100%);
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.7),
    0 0 50px rgba(255, 180, 80, 0.4);
}

/* 小光點（無模糊） */
.light-orb.small {
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, 
    rgba(255, 235, 180, 1) 0%,
    rgba(255, 220, 140, 0.7) 35%,
    rgba(255, 200, 100, 0.4) 65%,
    transparent 100%);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 35px rgba(255, 180, 80, 0.3);
}

/* 微小光點（無模糊） */
.light-orb.tiny {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, 
    rgba(255, 240, 200, 1) 0%,
    rgba(255, 230, 160, 0.6) 40%,
    rgba(255, 210, 120, 0.3) 70%,
    transparent 100%);
  box-shadow: 
    0 0 15px rgba(255, 215, 0, 0.5),
    0 0 25px rgba(255, 180, 80, 0.25);
}

/* ==========================================
   響應式光點數量控制
   ========================================== */

/* 桌面端額外光點（默認顯示） */
.light-orb.desktop-only {
  display: block;
}

/* 小屏手機需要隱藏的光點（默認顯示） */
.light-orb.hide-small-mobile {
  display: block;
}

/* 手機端：隱藏桌面端額外光點 */
@media (max-width: 768px) {
  .light-orb.desktop-only {
    display: none !important;
  }
}

/* 小屏手機：進一步減少光點 */
@media (max-width: 480px) {
  .light-orb.hide-small-mobile {
    display: none !important;
  }
  
  /* 減小光點尺寸以提升性能 */
  .light-orb.small {
    width: 20px;
    height: 20px;
    box-shadow: 
      0 0 15px rgba(255, 215, 0, 0.5),
      0 0 25px rgba(255, 180, 80, 0.2);
  }
  
  .light-orb.tiny {
    width: 12px;
    height: 12px;
    box-shadow: 
      0 0 10px rgba(255, 215, 0, 0.4),
      0 0 18px rgba(255, 180, 80, 0.2);
  }
}

/* 閃爍浮動動畫 */
@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0.3;
    transform: translate(0, 0) scale(0.8);
  }
  25% {
    opacity: 0.8;
    transform: translate(-10px, -15px) scale(1.1);
  }
  50% {
    opacity: 1;
    transform: translate(5px, -25px) scale(1.2);
  }
  75% {
    opacity: 0.7;
    transform: translate(10px, -10px) scale(0.95);
  }
}

/* 婚禮戒指 */
.wedding-ring {
  position: absolute;
  font-size: 50px;
  color: #FFD700;
  animation: ringRotate 8s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9));
}

.ring-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}

.ring-2 {
  bottom: 20%;
  right: 22%;
  animation-delay: 4s;
}

.wedding-ring i {
  text-shadow: 
    0 0 30px rgba(255, 215, 0, 1),
    0 0 50px rgba(255, 223, 0, 0.8),
    0 0 70px rgba(255, 215, 0, 0.6);
}

.ring-sparkle {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 215, 0, 0.6) 30%,
    transparent 70%);
  filter: blur(20px);
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes ringRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 1;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* 婚禮鈴鐸 */
.wedding-bell {
  position: absolute;
  font-size: 45px;
  color: #FFD700;
  animation: bellRing 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.bell-1 {
  top: 25%;
  right: 18%;
  animation-delay: 0s;
}

.bell-2 {
  bottom: 35%;
  left: 15%;
  animation-delay: 2s;
}

.wedding-bell i {
  text-shadow: 
    0 0 25px rgba(255, 215, 0, 0.9),
    0 0 45px rgba(255, 223, 0, 0.7),
    0 0 65px rgba(246, 196, 83, 0.5);
}

.bell-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(255, 215, 0, 0.6) 0%,
    rgba(255, 223, 0, 0.4) 40%,
    transparent 70%);
  filter: blur(18px);
  animation: bellGlow 4s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(-15deg);
  }
  30% {
    transform: rotate(10deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  50%, 100% {
    transform: rotate(0deg);
  }
}

@keyframes bellGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

/* 花束 */
.bouquet {
  position: absolute;
  font-size: 48px;
  color: #FF69B4;
  animation: bouquetFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 105, 180, 0.7));
}

.bouquet-1 {
  top: 40%;
  left: 12%;
  animation-delay: 0s;
}

.bouquet-2 {
  bottom: 25%;
  right: 15%;
  animation-delay: 3s;
}

.bouquet i {
  text-shadow: 
    0 0 25px rgba(255, 182, 193, 0.9),
    0 0 45px rgba(255, 105, 180, 0.7),
    0 0 65px rgba(219, 112, 147, 0.5);
}

.flower-glow {
  position: absolute;
  width: 95px;
  height: 95px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(255, 182, 193, 0.6) 0%,
    rgba(255, 105, 180, 0.4) 40%,
    transparent 70%);
  filter: blur(20px);
  animation: flowerGlow 6s ease-in-out infinite;
}

@keyframes bouquetFloat {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-25px) rotate(3deg);
    opacity: 1;
  }
}

@keyframes flowerGlow {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* 婚禮愛心 */
.wedding-heart {
  position: absolute;
  font-size: 55px;
  color: #FF1493;
  animation: heartFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
}

.heart-1 {
  top: 30%;
  right: 25%;
  animation-delay: 0s;
}

.heart-2 {
  bottom: 30%;
  left: 25%;
  animation-delay: 2.5s;
}

.wedding-heart i {
  text-shadow: 
    0 0 30px rgba(255, 105, 180, 1),
    0 0 50px rgba(255, 20, 147, 0.8),
    0 0 70px rgba(199, 21, 133, 0.6);
}

.heart-sparkle {
  position: absolute;
  width: 110px;
  height: 110px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(255, 182, 193, 0.7) 0%,
    rgba(255, 105, 180, 0.5) 30%,
    transparent 70%);
  filter: blur(22px);
  animation: heartSparkle 5s ease-in-out infinite;
}

@keyframes heartFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-20px) scale(1.15);
    opacity: 1;
  }
}

@keyframes heartSparkle {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* 和平鴿（Font Awesome） */
.peace-dove {
  position: absolute;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.95);
  animation: doveFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.8));
}

.dove-1 {
  top: 18%;
  left: 35%;
  animation-delay: 0s;
}

.dove-2 {
  bottom: 22%;
  right: 30%;
  animation-delay: 3.5s;
}

.peace-dove i {
  text-shadow: 
    0 0 25px rgba(255, 255, 255, 1),
    0 0 45px rgba(255, 250, 250, 0.8),
    0 0 65px rgba(240, 248, 255, 0.6);
}

.dove-glow {
  position: absolute;
  width: 105px;
  height: 105px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.7) 0%,
    rgba(240, 248, 255, 0.5) 40%,
    transparent 70%);
  filter: blur(22px);
  animation: doveGlow 7s ease-in-out infinite;
}

@keyframes doveFloat {
  0%, 100% {
    transform: translateX(0) translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(30px) translateY(-20px);
    opacity: 1;
  }
}

@keyframes doveGlow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* 十字架 */
.cross {
  position: absolute;
  width: 60px;
  height: 80px;
  opacity: 0.15;
  animation: crossGlow 8s ease-in-out infinite;
}

.cross-1 {
  top: 15%;
  right: 15%;
  animation-delay: 0s;
}

.cross-2 {
  bottom: 20%;
  left: 10%;
  animation-delay: 4s;
}

.cross-vertical {
  position: absolute;
  width: 8px;
  height: 80px;
  background: linear-gradient(180deg, 
    rgba(192, 25, 36, 0.6) 0%,
    rgba(139, 21, 56, 0.8) 100%);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(192, 25, 36, 0.4);
}

.cross-horizontal {
  position: absolute;
  width: 50px;
  height: 8px;
  background: linear-gradient(90deg, 
    rgba(192, 25, 36, 0.6) 0%,
    rgba(139, 21, 56, 0.8) 100%);
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(192, 25, 36, 0.4);
}

.cross-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, 
    rgba(246, 196, 83, 0.3) 0%,
    transparent 70%);
  filter: blur(15px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes crossGlow {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* 百合花（聖若瑟象徵） */
.lily {
  position: absolute;
  width: 40px;
  height: 60px;
  animation: lilyGrow 6s ease-in-out infinite;
}

.lily-1 {
  bottom: 10%;
  right: 20%;
  animation-delay: 0s;
}

.lily-2 {
  top: 25%;
  left: 12%;
  animation-delay: 3s;
}

.lily-stem {
  position: absolute;
  width: 3px;
  height: 35px;
  background: linear-gradient(180deg, 
    rgba(76, 175, 80, 0.6) 0%,
    rgba(56, 142, 60, 0.8) 100%);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.lily-petal {
  position: absolute;
  width: 15px;
  height: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%);
  border-radius: 50% 50% 20% 20%;
  top: 5px;
  left: 50%;
  transform-origin: bottom center;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.lily-petal:nth-child(1) {
  transform: translateX(-50%) rotate(0deg);
}

.lily-petal:nth-child(2) {
  transform: translateX(-50%) rotate(-120deg);
}

.lily-petal:nth-child(3) {
  transform: translateX(-50%) rotate(120deg);
}

@keyframes lilyGrow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* 神聖光芒 - 增強版 */
.divine-light {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 215, 0, 0.6) 20%,
    rgba(246, 196, 83, 0.4) 40%,
    transparent 70%);
  filter: blur(30px);
  animation: divineGlow 8s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.6),
    0 0 100px rgba(246, 196, 83, 0.4);
}

.divine-light-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.divine-light-2 {
  bottom: 15%;
  right: 25%;
  animation-delay: 2.5s;
}

.divine-light-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  animation-delay: 5s;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 215, 0, 0.7) 15%,
    rgba(246, 196, 83, 0.5) 35%,
    transparent 65%);
}

@keyframes divineGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

/* 聖神光粒 */
.holy-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.holy-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  left: var(--x);
  top: var(--y);
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(246, 196, 83, 0.6) 40%,
    transparent 70%);
  border-radius: 50%;
  animation: holyFloat 18s ease-in-out infinite;
  animation-delay: var(--delay);
  filter: blur(0.5px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes holyFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(20px, -120px) scale(1.8);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(-10px, -250px) scale(0.8);
    opacity: 0;
  }
}

/* 伯利恆之星 */
.bethlehem-star {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  animation: starShine 8s ease-in-out infinite;
}

.star-center {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, 
    rgba(246, 196, 83, 0.9) 0%,
    rgba(255, 215, 0, 0.7) 50%,
    rgba(246, 196, 83, 0.4) 100%);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 
    0 0 20px rgba(246, 196, 83, 0.8),
    0 0 40px rgba(255, 215, 0, 0.6),
    0 0 60px rgba(246, 196, 83, 0.4);
}

.star-ray {
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, 
    rgba(246, 196, 83, 0.8) 0%,
    transparent 100%);
  left: 50%;
  top: 0;
  transform-origin: center 50px;
  filter: blur(1px);
}

.star-ray-1 {
  transform: translateX(-50%) rotate(0deg);
}

.star-ray-2 {
  transform: translateX(-50%) rotate(45deg);
}

.star-ray-3 {
  transform: translateX(-50%) rotate(90deg);
}

.star-ray-4 {
  transform: translateX(-50%) rotate(135deg);
}

@keyframes starShine {
  0%, 100% {
    opacity: 0.6;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.5);
  }
}

/* 響應式優化 */
@media (prefers-reduced-motion: reduce) {
  .bg-animation {
    display: none;
  }
}

@media (max-width: 768px) {
  .floating-95 {
    font-size: 40vw;
    gap: 40px;
    opacity: 0.04;
  }
  
  /* 移動端婚禮戒指優化 */
  .wedding-ring {
    font-size: 38px;
  }
  
  .ring-sparkle {
    width: 75px;
    height: 75px;
  }
  
  /* 移動端婚禮鈴鐺優化 */
  .wedding-bell {
    font-size: 35px;
  }
  
  .bell-glow {
    width: 70px;
    height: 70px;
  }
  
  /* 移動端花束優化 */
  .bouquet {
    font-size: 36px;
  }
  
  .flower-glow {
    width: 72px;
    height: 72px;
  }
  
  /* 移動端婚禮愛心優化 */
  .wedding-heart {
    font-size: 42px;
  }
  
  .heart-sparkle {
    width: 85px;
    height: 85px;
  }
  
  /* 移動端和平鴿優化 */
  .peace-dove {
    font-size: 40px;
  }
  
  .dove-glow {
    width: 80px;
    height: 80px;
  }
  
  /* 移動端十字架優化 */
  .cross {
    width: 40px;
    height: 60px;
    opacity: 0.12;
  }
  
  .cross-vertical {
    width: 6px;
    height: 60px;
  }
  
  .cross-horizontal {
    width: 35px;
    height: 6px;
    top: 15px;
  }
  
  /* 移動端百合花優化 */
  .lily {
    width: 30px;
    height: 45px;
  }
  
  .lily-stem {
    width: 2px;
    height: 25px;
  }
  
  .lily-petal {
    width: 12px;
    height: 16px;
  }
  
  /* 移動端神聖光芒優化 */
  .divine-light {
    width: 120px;
    height: 120px;
  }
  
  .divine-light-3 {
    width: 180px;
    height: 180px;
  }
  
  /* 移動端聖神光粒優化 */
  .holy-particle {
    width: 4px;
    height: 4px;
  }
  
  /* 移動端伯利恆之星優化 */
  .bethlehem-star {
    width: 70px;
    height: 70px;
  }
  
  .star-center {
    width: 15px;
    height: 15px;
  }
  
  .star-ray {
    height: 30px;
  }
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  bottom: -250px;
  right: -250px;
  animation-delay: -7s;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 21, 56, 0.2) 0%, transparent 70%);
  top: 40%;
  right: 10%;
  animation-delay: -14s;
}

/* 星空微光效果 */
.bg-animation::before,
.bg-animation::after {
  content: '';
  position: absolute;
  inset: -20%;
  background-repeat: no-repeat;
  opacity: 0.3;
  animation: starDrift 60s linear infinite;
}

.bg-animation::before {
  background-image:
    radial-gradient(2px 2px at 5% 15%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 20% 40%, rgba(255, 223, 186, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 35% 10%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(255, 245, 220, 0.8), transparent),
    radial-gradient(2px 2px at 70% 12%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, rgba(255, 215, 170, 0.9), transparent);
}

.bg-animation::after {
  background-image:
    radial-gradient(2px 2px at 15% 70%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 35% 85%, rgba(255, 245, 220, 0.8), transparent),
    radial-gradient(2px 2px at 50% 60%, rgba(255, 223, 186, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 68% 78%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 82% 65%, rgba(255, 230, 190, 0.9), transparent);
  animation-duration: 80s;
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(60px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 40px) rotate(270deg);
  }
}

@keyframes starDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-40px, -30px, 0);
  }
  100% {
    transform: translate3d(40px, 20px, 0);
  }
}

.container {
  max-width: 1900px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

/* 玻璃卡片效果 */
.glass-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(190, 120, 90, 0.18);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.3), transparent 70%);
  filter: blur(40px);
  animation: pulse 4s ease-in-out infinite;
}

.logo {
  position: relative;
  width: 350px;
  height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(139, 21, 56, 0.3));
}

.logo-animated {
  animation: float 6s ease-in-out infinite;
}

.logo-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  animation: fadeIn 0.5s ease-in 3s forwards;
}

/* SVG 线条绘制动画 */
.logo-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2s ease-in-out forwards;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 不同元素的延迟 */
.shield-outer {
  animation-delay: 0s;
  animation-duration: 1.5s;
}

.shield-inner {
  animation-delay: 0.3s;
  animation-duration: 1.2s;
}

.cross-v {
  animation-delay: 0.8s;
  animation-duration: 0.6s;
}

.cross-h {
  animation-delay: 1s;
  animation-duration: 0.4s;
}

.letter-s {
  animation-delay: 1.3s;
  animation-duration: 0.5s;
}

.letter-j {
  animation-delay: 1.5s;
  animation-duration: 0.5s;
}

.letter-j-dot {
  animation: fadeIn 0.3s ease-in 1.8s forwards;
  opacity: 0;
}

.number-5 {
  animation-delay: 1.7s;
  animation-duration: 0.5s;
}

.star-1 {
  animation-delay: 2s;
  animation-duration: 0.4s;
}

.ribbon {
  animation-delay: 2.2s;
  animation-duration: 0.5s;
}

@keyframes drawPath {
  from {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.badge {
  display: inline-block;
  padding: 8px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-medium);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-medium);
  margin-bottom: 16px;
  text-align: center;
}

.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 32px;
  line-height: 1.2;
}

.title-line {
  display: block;
}

.title-red {
  color: var(--accent);
}

.title-gold {
  color: var(--gold);
}

.anniversary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  min-height: 120px;
}

.anniversary-text {
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.anniversary-number {
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* 如果沒有藝術字體類，使用基礎漸變 */
.anniversary-number:not(.artistic-number) {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.anniversary-label {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  color: #c01924;
  text-shadow: 0 2px 8px rgba(192, 25, 36, 0.2);
  line-height: 1.2;
}

.number {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  opacity: 1;
  transform: none;
  animation: none;
}

.text {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--text-medium);
  letter-spacing: 0.1em;
}

.hero-motto {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-medium);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.hero-divider {
  width: 100px;
  height: 3px;
  background: var(--secondary);
  margin: 0 auto;
}

.hero-countdown {
  margin: 32px auto 0;
  padding: 24px 32px 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero-countdown-label {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
}

.hero-countdown-items {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hero-countdown-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  position: relative;
}

.hero-countdown-item:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
}

.hero-countdown-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Noto Serif TC', serif;
  min-width: 2.5ch;
  text-align: center;
  line-height: 1;
}

.hero-countdown-unit {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-medium);
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a01520 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(192, 25, 36, 0.3);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 25, 36, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 25, 36, 0.2);
}

/* Flip Clock Styles */
ul.flip {
  position: relative;
  float: none;
  display: inline-block;
  margin: 0;
  width: 70px;
  height: 100px;
  font-size: 72px;
  font-weight: bold;
  line-height: 96px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  order: 1;
}

ul.flip li {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

ul.flip li:first-child {
  z-index: 2;
}

ul.flip li a {
  display: block;
  height: 100%;
  perspective: 200px;
}

ul.flip li a div {
  z-index: 1;
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
}

ul.flip li a div .shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

ul.flip li a div.up {
  transform-origin: 50% 100%;
  top: 0;
}

ul.flip li a div.up:after {
  content: "";
  position: absolute;
  top: 49px;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, .3);
}

ul.flip li a div.down {
  transform-origin: 50% 0%;
  bottom: 0;
}

ul.flip li a div div.inn {
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 200%;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
  text-align: center;
  background: linear-gradient(135deg, #c01924 0%, #a01520 50%, #8b1538 100%);
  border-radius: 10px;
}

ul.flip li a div.up div.inn {
  top: 0;
}

ul.flip li a div.down div.inn {
  bottom: 0;
}

/* PLAY */
body.play ul li.before {
  z-index: 3;
}

body.play ul li.active {
  animation: asd .5s .5s linear both;
  z-index: 2;
}

@keyframes asd {
  0% {
    z-index: 2;
  }
  5% {
    z-index: 4;
  }
  100% {
    z-index: 4;
  }
}

body.play ul li.active .down {
  z-index: 2;
  animation: turn .5s .5s linear both;
}

@keyframes turn {
  0% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

body.play ul li.before .up {
  z-index: 2;
  animation: turn2 .5s linear both;
}

@keyframes turn2 {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}

/* SHADOW */
body.play ul li.before .up .shadow {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, 1) 100%);
  animation: show .5s linear both;
}

body.play ul li.active .up .shadow {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, 1) 100%);
  animation: hide .5s .3s linear both;
}

body.play ul li.before .down .shadow {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .1) 100%);
  animation: show .5s linear both;
}

body.play ul li.active .down .shadow {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .1) 100%);
  animation: hide .5s .3s linear both;
}

@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Section Title */
.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* 精神核心 */
/* ========== 精神核心區塊 - GSAP 增強版 ========== */
.essence {
  margin-bottom: 100px;
}

.essence-enhanced {
  position: relative;
  padding: 40px 0;
}

.essence-card {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 48px;
  text-align: center;
}

.essence-card-enhanced {
  position: relative;
  padding: 80px 60px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 250, 245, 0.92) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  border: 2px solid rgba(246, 196, 83, 0.3);
  box-shadow: 
    0 20px 60px rgba(192, 25, 36, 0.15),
    0 10px 30px rgba(246, 196, 83, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 背景裝飾圓圈 */
.essence-bg-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.essence-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(40px);
}

.essence-circle-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #c01924 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.essence-circle-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f6c453 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
}

.essence-circle-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #e63b33 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 頂部圖標 */
.card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  opacity: 0.8;
}

.card-icon-enhanced {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  position: relative;
  animation: iconFloat 3s ease-in-out infinite,
             iconGlow 2s ease-in-out infinite;
}

.icon-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(192, 25, 36, 0.2));
}

.icon-path {
  stroke: url(#iconGradient);
  stroke-width: 2.5;
  fill: none;
}

.icon-circle {
  stroke: rgba(246, 196, 83, 0.4);
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawCircle 3s ease-out forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

/* 主標題增強 */
.section-title-enhanced {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 900 !important;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  line-height: 1.3;
  position: relative;
  display: inline-block !important;
  /* 直接使用顏色 - 確保文字始終可見 */
  color: #c01924 !important;
  text-shadow: 
    0 0 20px rgba(246, 196, 83, 0.5),
    0 0 40px rgba(246, 196, 83, 0.3),
    2px 2px 4px rgba(192, 25, 36, 0.3),
    -1px -1px 2px rgba(246, 196, 83, 0.2) !important;
  animation: titleGlow 3s ease-in-out infinite;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 發光脈動動畫 */
@keyframes titleGlow {
  0%, 100% {
    text-shadow: 
      0 0 20px rgba(246, 196, 83, 0.5),
      0 0 40px rgba(246, 196, 83, 0.3),
      2px 2px 4px rgba(192, 25, 36, 0.3),
      -1px -1px 2px rgba(246, 196, 83, 0.2);
  }
  50% {
    text-shadow: 
      0 0 30px rgba(246, 196, 83, 0.8),
      0 0 60px rgba(246, 196, 83, 0.5),
      0 0 80px rgba(255, 215, 0, 0.3),
      2px 2px 4px rgba(192, 25, 36, 0.3),
      -1px -1px 2px rgba(246, 196, 83, 0.4);
  }
}

.title-char {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) rotateY(0);
  animation: charBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards,
             charFloat 3s ease-in-out infinite;
  position: relative;
  color: inherit !important;
}

.title-char::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(246, 196, 83, 0.3) 0%,
    rgba(255, 215, 0, 0.2) 30%,
    transparent 70%
  );
  opacity: 0;
  animation: charGlow 2s ease-in-out infinite;
  z-index: -1;
  border-radius: 50%;
}

.title-char:nth-child(1) { 
  animation-delay: 0.1s, 0s; 
}
.title-char:nth-child(2) { 
  animation-delay: 0.2s, 0.2s; 
}
.title-char:nth-child(3) { 
  animation-delay: 0.3s, 0.4s; 
}
.title-char:nth-child(4) { 
  animation-delay: 0.4s, 0.6s; 
}
.title-char:nth-child(6) { 
  animation-delay: 0.6s, 0.8s; 
}
.title-char:nth-child(7) { 
  animation-delay: 0.7s, 1s; 
}
.title-char:nth-child(8) { 
  animation-delay: 0.8s, 1.2s; 
}
.title-char:nth-child(9) { 
  animation-delay: 0.9s, 1.4s; 
}

.title-separator {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: separatorSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards,
             separatorPulse 2s ease-in-out infinite;
  animation-delay: 0.5s, 0.5s;
  margin: 0 8px;
  filter: drop-shadow(0 0 6px rgba(246, 196, 83, 0.6));
  color: inherit !important;
}

/* 字符彈跳進場 */
@keyframes charBounceIn {
  0% {
    opacity: 0;
    transform: translateY(-100px) scale(0.3) rotateY(180deg);
  }
  50% {
    transform: translateY(10px) scale(1.1) rotateY(-10deg);
  }
  70% {
    transform: translateY(-5px) scale(0.95) rotateY(5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0);
  }
}

/* 字符漂浮效果 */
@keyframes charFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

/* 字符發光效果 */
@keyframes charGlow {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
}

/* 分隔符旋轉進場 */
@keyframes separatorSpin {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  70% {
    transform: scale(1.3) rotate(360deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
}

/* 分隔符脈動效果 */
@keyframes separatorPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(246, 196, 83, 0.6));
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(246, 196, 83, 0.9));
  }
}

/* 圖標漂浮效果 */
@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* 圖標發光效果 */
@keyframes iconGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(246, 196, 83, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(246, 196, 83, 0.6));
  }
}

/* 英文副標題 */
.essence-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(192, 25, 36, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 1;
  transform: translateY(0);
  animation: subtitleSlideIn 1s ease-out 1.2s backwards,
             subtitleShine 4s ease-in-out 2s infinite;
  position: relative;
  overflow: hidden;
}

.essence-subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(246, 196, 83, 0.3) 50%,
    transparent 100%
  );
  animation: subtitleSweep 3s ease-in-out 2s infinite;
}

/* 副標題滑入 */
@keyframes subtitleSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50px);
    letter-spacing: 0.5em;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    letter-spacing: 0.15em;
  }
}

/* 副標題閃光掃過 */
@keyframes subtitleSweep {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* 副標題微光 */
@keyframes subtitleShine {
  0%, 100% {
    text-shadow: 0 0 5px rgba(246, 196, 83, 0.2);
  }
  50% {
    text-shadow: 0 0 10px rgba(246, 196, 83, 0.4),
                 0 0 20px rgba(192, 25, 36, 0.2);
  }
}

/* 動態分隔線 */
.curved-divider {
  width: 100%;
  max-width: 300px;
  height: 30px;
  margin: 24px auto 32px;
  color: rgba(46, 125, 50, 0.6);
  opacity: 0.8;
}

.curved-divider-enhanced {
  max-width: 400px;
  height: 40px;
  margin: 32px auto 48px;
  opacity: 1;
}

.curved-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.curved-divider path {
  animation: draw-line 2s ease-in-out;
}

.curved-divider circle {
  animation: pulse-dot 2s ease-in-out infinite;
}

.divider-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPath 2s ease-out 1.2s forwards;
}

.divider-dot {
  transform-origin: center;
  animation: pulseDot 2s ease-in-out 2s infinite;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

/* 內容區域 */
.essence-content {
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.essence-text-wrapper {
  position: relative;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(246, 196, 83, 0.2);
  box-shadow: 0 8px 24px rgba(192, 25, 36, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.essence-text-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(192, 25, 36, 0.15);
  border-color: rgba(246, 196, 83, 0.4);
}

.essence-number {
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f6c453 0%, #c01924 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
  font-family: 'Bebas Neue', sans-serif;
}

.essence-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 32px;
  height: 32px;
  color: rgba(246, 196, 83, 0.6);
}

.essence-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(192, 25, 36, 0.2));
}

.essence-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-medium);
  margin-bottom: 24px;
  text-align: justify;
}

.essence-text-enhanced {
  font-size: 1.15rem;
  line-height: 2.2;
  color: #5b3b3b;
  text-align: left;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.text-highlight {
  font-weight: 700;
  color: #c01924;
  position: relative;
  padding: 0 4px;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.3), rgba(246, 196, 83, 0.1));
  z-index: -1;
  border-radius: 4px;
}

.text-emphasis {
  font-weight: 600;
  color: #2b1a1a;
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.15), transparent);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 校長寄語 - 簡潔版 */
.principal-message {
  position: relative;
  margin-top: 64px;
  padding: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 250, 245, 0.95) 50%,
    rgba(255, 255, 255, 0.98) 100%
  );
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
}

/* 時間軸線 - 頂部裝飾 */
.timeline-axis {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  z-index: 0;
}

.axis-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(192, 25, 36, 0.2) 20%,
    rgba(246, 196, 83, 0.4) 50%,
    rgba(192, 25, 36, 0.2) 80%,
    transparent 100%
  );
  position: relative;
}

.axis-line::before,
.axis-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(246, 196, 83, 0.8), transparent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(246, 196, 83, 0.4);
}

.axis-line::before {
  left: 0;
}

.axis-line::after {
  right: 0;
}

/* 移除數據展示區樣式（已不需要） */

/* 移除里程碑標記相關樣式（已不需要） */

.stat-item {
  text-align: center;
  flex: 1;
  max-width: 150px;
}

.stat-item-enhanced {
  position: relative;
  padding: 24px 20px;
  max-width: 200px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item-enhanced:hover {
  transform: translateY(-8px) scale(1.05);
}

.stat-item-enhanced:hover .stat-number-large {
  transform: scale(1.1);
  text-shadow: 0 8px 24px rgba(192, 25, 36, 0.3);
}

.stat-item-enhanced:hover .stat-decoration {
  opacity: 1;
  transform: scale(1.2) rotate(15deg);
}

/* 徽章標籤 */
.stat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #c01924 0%, #f6c453 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(192, 25, 36, 0.3);
  text-transform: uppercase;
}

/* 數字容器 */
.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #c01924 0%, #f6c453 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Bebas Neue', sans-serif;
}

.stat-number-large {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #c01924 0%, #f6c453 50%, #c01924 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(192, 25, 36, 0.7);
  letter-spacing: 0.05em;
  align-self: flex-end;
  margin-bottom: 4px;
}

.stat-icon {
  font-size: 3rem;
  color: #f6c453;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(246, 196, 83, 0.3);
}

.stat-icon-large {
  font-size: 4.5rem;
  color: #f6c453;
  line-height: 1;
  margin: 0;
  text-shadow: 
    0 4px 12px rgba(246, 196, 83, 0.4),
    0 8px 24px rgba(246, 196, 83, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: infinityPulse 3s ease-in-out infinite;
}

@keyframes infinityPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(246, 196, 83, 0.4));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 24px rgba(246, 196, 83, 0.6));
  }
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.stat-item-enhanced .stat-label {
  font-size: 0.85rem;
  color: rgba(192, 25, 36, 0.6);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* 裝飾元素 */
.stat-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 120px;
  height: 120px;
  opacity: 0.3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.stat-svg {
  width: 100%;
  height: 100%;
  color: rgba(246, 196, 83, 0.4);
}

/* 分隔線增強 */
.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(192, 25, 36, 0.3),
    transparent
  );
}

.stat-divider-enhanced {
  width: 2px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(192, 25, 36, 0.2) 20%,
    rgba(246, 196, 83, 0.4) 50%,
    rgba(192, 25, 36, 0.2) 80%,
    transparent
  );
  position: relative;
}

.divider-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #f6c453 0%, #c01924 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(246, 196, 83, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6;
  }
}

/* 無限符號特殊效果 */
.stat-item-infinity .stat-decoration {
  opacity: 0.4;
}

.stat-item-infinity:hover .stat-icon-large {
  animation: infinitySpin 2s ease-in-out infinite;
}

@keyframes infinitySpin {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(180deg);
  }
}

/* 校長內容區 */
.principal-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}

/* 校長照片區 */
.principal-photo-section {
  position: sticky;
  top: 100px;
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(192, 25, 36, 0.1);
  margin-bottom: 24px;
}

.principal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-frame:hover .principal-photo {
  transform: scale(1.05);
}

.photo-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(192, 25, 36, 0.1) 100%
  );
  pointer-events: none;
}

.principal-title {
  text-align: center;
  padding: 16px;
  background: rgba(255, 250, 245, 0.8);
  border-radius: 12px;
}

.title-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c01924;
  margin-bottom: 8px;
  font-family: 'Noto Serif TC', serif;
}

.title-position {
  font-size: 0.9rem;
  color: rgba(192, 25, 36, 0.7);
  line-height: 1.6;
}

/* 寄語文字區 */
.principal-text-section {
  background: rgba(255, 255, 255, 0.6);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(246, 196, 83, 0.2);
}

.message-header {
  text-align: center;
  margin-bottom: 32px;
}

.header-icon {
  font-size: 2rem;
  color: #f6c453;
  margin-bottom: 12px;
}

.header-title {
  font-size: 2rem;
  font-weight: 700;
  color: #c01924;
  margin-bottom: 16px;
  font-family: 'Noto Serif TC', serif;
  letter-spacing: 0.1em;
}

.header-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f6c453, transparent);
  margin: 0 auto;
}

.message-content {
  font-family: 'Noto Serif TC', serif;
}

.message-paragraph {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-medium);
  margin-bottom: 24px;
  text-align: justify;
  text-indent: 2em;
}

.text-highlight {
  font-weight: 700;
  color: #c01924;
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.2), transparent);
  padding: 2px 6px;
  border-radius: 4px;
}

.text-emphasis {
  font-weight: 700;
  color: #c01924;
}

/* 引用框 */
.message-quote {
  position: relative;
  padding: 32px 48px;
  margin: 32px 0;
  background: linear-gradient(
    135deg,
    rgba(246, 196, 83, 0.08) 0%,
    rgba(192, 25, 36, 0.05) 100%
  );
  border-left: 4px solid #f6c453;
  border-radius: 0 12px 12px 0;
  text-align: left;
}

.quote-mark {
  position: absolute;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(246, 196, 83, 0.3);
  line-height: 1;
  top: 16px;
  left: 16px;
}

.quote-mark-end {
  top: auto;
  left: auto;
  bottom: 16px;
  right: 16px;
  transform: rotate(180deg);
}

.quote-text {
  font-size: 1.1rem;
  line-height: 2;
  color: #c01924;
  font-weight: 500;
  font-style: italic;
  position: relative;
  z-index: 1;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* 簽名 */
.message-signature {
  text-align: right;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 196, 83, 0.3);
}

.signature-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c01924;
  margin-bottom: 8px;
  font-family: 'Noto Serif TC', serif;
}

.signature-date {
  font-size: 0.9rem;
  color: rgba(192, 25, 36, 0.6);
}

@keyframes draw-line {
  from {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
  }
  to {
    stroke-dasharray: 300;
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 核心價值 */
.values {
  margin-bottom: 100px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
}

.value-card {
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition-delay: var(--delay, 0s);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.value-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.value-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.value-line {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 24px auto 0;
}

/* Timeline */
.timeline {
  margin-bottom: 100px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 60px calc(50vw - 50%) 80px;
  position: relative;
  width: 100vw;
  background: linear-gradient(180deg, #faf8f5 0%, #f5f2eb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
              inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.timeline-header {
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.timeline-line {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 2px;
  height: calc(100% - 300px);
  background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.timeline-line.visible {
  opacity: 0.3;
  transform: translateX(-50%) scaleY(1);
}

.timeline-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 100%;
  margin: 0;
  padding: 0 24px;
}

.timeline-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition-delay: calc(var(--index) * 0.1s);
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.timeline-marker {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 700;
  font-size: 1.2rem;
}

.timeline-year {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.timeline-text {
  color: var(--text-medium);
  line-height: 1.6;
}

/* Mission */
.mission {
  margin-bottom: 100px;
}

.mission-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.mission-badge {
  display: inline-block;
  padding: 10px 28px;
  background: var(--accent);
  color: white;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.mission-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.mission-divider {
  width: 80px;
  height: 3px;
  background: var(--secondary);
  margin: 0 auto 32px;
}

.mission-text {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
}

.mission-shine {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine 8s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Activities */
.activities {
  margin: 80px 0 100px;
  padding: 0;
}

.activities-section {
  margin-bottom: 80px;
}

.activities-section:last-child {
  margin-bottom: 0;
}

.section-title-en {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 48px;
  font-style: normal;
  text-transform: uppercase;
  opacity: 0.85;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 校慶系列活動 - 一行顯示3個 */
.activities-series {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  gap: 24px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.activities-series .activity-card {
  padding: 28px 24px;
  width: 100%;
}

.activities-series .activity-title-cn {
  font-size: 1.1rem;
}

.activities-series .activity-title-en {
  font-size: 0.85rem;
}

.activities-series .info-item {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.activities-series .activity-link {
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* 基礎活動卡片樣式 */
.activity-card {
  padding: 28px 24px;
  color: white;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* 青藍漸變卡片增強光效 */
.activity-card.activity-green {
  box-shadow: 0 4px 12px rgba(19, 84, 122, 0.2);
}

.activity-card.activity-green:hover {
  box-shadow: 0 12px 32px rgba(19, 84, 122, 0.3), 0 0 0 1px rgba(128, 208, 199, 0.3);
}

/* 紫色卡片增強光效 */
.activity-card.activity-purple {
  box-shadow: 0 4px 12px rgba(138, 92, 177, 0.25);
}

.activity-card.activity-purple:hover {
  box-shadow: 0 12px 32px rgba(138, 92, 177, 0.35), 0 0 0 1px rgba(183, 148, 219, 0.4);
}

/* 深色卡片增強對比 */
.activity-card.activity-blue,
.activity-card.activity-video {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.activity-card.activity-blue:hover,
.activity-card.activity-video:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 清新青藍漸變主題卡片 - 校慶系列活動（聯校） */
.activity-card.activity-green {
  background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
}

.activity-card.activity-green:hover {
  background-image: linear-gradient(15deg, #1a6590 0%, #8dd9d0 100%);
}

.activity-card.activity-green .activity-link {
  background: white;
  color: #13547a;
  border-color: white;
}

.activity-card.activity-green .activity-link:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* 深色質感主題卡片 - 校慶當日活動 */
.activity-card.activity-blue {
  background: linear-gradient(to bottom, #323232 0%, #3F3F3F 40%, #1C1C1C 150%), 
              linear-gradient(to top, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.25) 200%);
  background-blend-mode: multiply;
}

.activity-card.activity-blue:hover {
  background: linear-gradient(to bottom, #3a3a3a 0%, #474747 40%, #242424 150%), 
              linear-gradient(to top, rgba(255,255,255,0.45) 0%, rgba(0,0,0,0.25) 200%);
  background-blend-mode: multiply;
}

.activity-card.activity-blue .activity-link {
  background: rgba(255, 255, 255, 0.95);
  color: #323232;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.activity-card.activity-blue .activity-link:hover {
  background: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* 紫色漸變主題卡片 - 校內活動 */
.activity-card.activity-purple {
  background-image: linear-gradient(135deg, #8a5cb1 0%, #b794db 100%);
  color: white;
}

.activity-card.activity-purple:hover {
  background-image: linear-gradient(135deg, #9a6cc1 0%, #c7a4eb 100%);
}

.activity-card.activity-purple .activity-title-cn,
.activity-card.activity-purple .activity-title-en,
.activity-card.activity-purple .info-label,
.activity-card.activity-purple .info-value {
  color: white;
}

.activity-card.activity-purple .activity-link {
  background: rgba(255, 255, 255, 0.95);
  color: #8a5cb1;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.activity-card.activity-purple .activity-link:hover {
  background: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 92, 177, 0.3);
}

/* 校內活動視頻 - 紫色主題 */
.activity-card.activity-purple.activity-video {
  background: linear-gradient(135deg, #8a5cb1 0%, #b794db 100%);
  color: white;
}

.activity-card.activity-purple.activity-video:hover {
  background: linear-gradient(135deg, #9a6cc1 0%, #c7a4eb 100%);
}

.activity-card.activity-purple.activity-video .activity-header {
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.activity-card.activity-purple.activity-video .activity-title-cn,
.activity-card.activity-purple.activity-video .activity-title-en,
.activity-card.activity-purple.activity-video .activity-date {
  color: white;
}

.activity-card.activity-purple.activity-video .activity-date {
  opacity: 0.8;
}

/* 校內活動裝飾元素 - 紫色主題 */
.campus-deco {
  color: #8a5cb1;
}

.campus-deco .decoration-item {
  animation-delay: 0.5s;
}

.campus-deco .deco-7 {
  animation-delay: 0.5s;
}

.campus-deco .deco-8 {
  animation-delay: 2.5s;
}

.campus-deco .deco-9 {
  animation-delay: 4.5s;
}

.campus-deco .deco-10 {
  animation-delay: 1s;
}

.campus-deco .deco-11 {
  animation-delay: 3s;
}

.campus-deco .deco-12 {
  animation-delay: 5s;
}

.campus-text {
  background: linear-gradient(135deg, #8a5cb1 0%, #b794db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  opacity: 0.25;
  animation: pulse 3s ease-in-out infinite;
  animation-delay: 2s;
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.campus-number {
  font-family: 'Noto Serif TC', serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #8a5cb1 0%, #b794db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  animation: pulse 4s ease-in-out infinite;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

/* 校內活動播放按鈕 - 紫色主題 */
.campus-play-btn {
  background: rgba(255, 255, 255, 0.95);
}

.campus-play-btn svg {
  color: #8a5cb1;
}

.campus-play-btn:hover {
  background: white;
  box-shadow: 0 12px 48px rgba(138, 92, 177, 0.4);
}

/* 校內活動進度條 - 紫色主題 */
.campus-progress {
  background: linear-gradient(to right, #8a5cb1 0%, #b794db 100%);
}

/* 校內活動控制按鈕 - 紫色主題 */
.campus-control {
  color: rgba(255, 255, 255, 0.9);
}

.campus-control:hover {
  color: white;
  background: rgba(138, 92, 177, 0.2);
}

/* 校內活動視頻描述 */
.activity-card.activity-purple.activity-video .video-description {
  text-align: center;
}

.activity-card.activity-purple.activity-video .video-description p {
  color: rgba(255, 255, 255, 0.9);
}

/* 載入更多按鈕容器 */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  color: #2c3e50;
  border: 2px solid rgba(46, 125, 50, 0.3);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.load-more-btn:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  color: white;
  border-color: #2e7d32;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn.hidden {
  display: none;
}

.load-more-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.load-more-btn:hover .load-more-icon {
  transform: translateY(3px);
}

/* 紫色主題載入更多按鈕 */
[data-target="campus-activities"].load-more-btn {
  border-color: rgba(138, 92, 177, 0.3);
  box-shadow: 0 4px 12px rgba(138, 92, 177, 0.15);
}

[data-target="campus-activities"].load-more-btn:hover {
  background: linear-gradient(135deg, #8a5cb1 0%, #b794db 100%);
  border-color: #8a5cb1;
  box-shadow: 0 8px 24px rgba(138, 92, 177, 0.3);
}

/* 帶圖片的活動卡片 */
.activity-card.activity-with-image {
  padding: 0;
  overflow: hidden;
}

.activity-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.activity-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-image {
  transform: scale(1.08);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  transition: background 0.3s ease;
}

.activity-card:hover .image-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}

.image-badge {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.activity-card.activity-green .image-badge {
  color: #13547a;
  background: white;
}

.activity-card.activity-purple .image-badge {
  color: #8a5cb1;
  background: rgba(255, 255, 255, 0.95);
}

.activity-content {
  padding: 20px 24px;
  background: inherit;
}

.activity-with-image .activity-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.activity-card.activity-purple.activity-with-image .activity-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.activity-with-image .activity-title-cn {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.activity-with-image .activity-title-en {
  font-size: 0.85rem;
}

.activity-with-image .activity-info {
  margin-bottom: 16px;
}

.activity-with-image .info-item {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.activity-with-image .activity-link {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* 視頻展示區域 */
.video-showcase {
  display: flex;
  gap: 32px;
  margin-bottom: 60px;
  align-items: stretch;
  justify-content: center;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* 視頻卡片 - 特殊展示（深色質感） */
.activity-card.activity-video {
  background: linear-gradient(to bottom, #323232 0%, #3F3F3F 40%, #1C1C1C 150%), 
              linear-gradient(to top, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.25) 200%);
  background-blend-mode: multiply;
  flex: 0 1 900px;
  max-width: 900px;
  min-width: 0;
  padding: 32px;
}

.activity-card.activity-video:hover {
  background: linear-gradient(to bottom, #3a3a3a 0%, #474747 40%, #242424 150%), 
              linear-gradient(to top, rgba(255,255,255,0.45) 0%, rgba(0,0,0,0.25) 200%);
  background-blend-mode: multiply;
}

/* 視頻裝飾區域 */
.video-decoration {
  position: relative;
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.decoration-item {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.decoration-item.deco-1 {
  animation-delay: 0s;
}

.decoration-item.deco-2 {
  animation-delay: 2s;
}

.decoration-item.deco-3 {
  animation-delay: 4s;
}

.deco-svg {
  width: 100%;
  height: 100%;
  color: #80d0c7;
  filter: drop-shadow(0 4px 8px rgba(128, 208, 199, 0.2));
}

.decoration-number {
  font-family: 'Noto Serif TC', serif;
  font-size: 6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.05);
  }
}

/* 左側裝飾元素特殊樣式 */
.video-decoration-left .decoration-item.deco-4 {
  animation-delay: 1s;
}

.video-decoration-left .decoration-item.deco-5 {
  animation-delay: 3s;
}

.video-decoration-left .decoration-item.deco-6 {
  animation-delay: 5s;
}

.decoration-text {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #13547a 0%, #80d0c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

.activity-card.activity-video .activity-header {
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.activity-card.activity-video .activity-header::after {
  left: 50%;
  transform: translateX(-50%);
}

.activity-card.activity-video .activity-title-cn {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.activity-card.activity-video .activity-title-en {
  font-size: 0.95rem;
}

.activity-card.activity-video .activity-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  font-weight: 500;
}

/* 視頻播放器包裝器 */
.video-player-wrapper {
  width: 100%;
}

/* 視頻容器 - 16:9 響應式 */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

/* HTML5 視頻元素 */
.custom-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* 視頻加載中的占位樣式 */
.custom-video-player:not([src]) {
  background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
}

/* 視頻遮罩層 - 播放前顯示 */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-overlay.playing {
  opacity: 0;
}

/* 大播放按鈕 */
.video-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: pulse-play 2s ease-in-out infinite;
  pointer-events: all;
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  color: #323232;
  margin-left: 4px;
}

@keyframes pulse-play {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 0 20px rgba(255, 255, 255, 0);
  }
}

/* 自定義視頻控件 */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 20px 16px 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-container:hover .video-controls,
.video-controls.active {
  opacity: 1;
  pointer-events: all;
}

/* 進度條 */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.progress-bar:hover {
  height: 8px;
  margin-bottom: 10px;
}

.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, #80d0c7 0%, #13547a 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.progress-filled::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-bar:hover .progress-filled::after {
  opacity: 1;
}

/* 控件底部區域 */
.controls-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 控制按鈕 */
.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

/* 時間顯示 */
.time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  min-width: 100px;
}

.separator {
  opacity: 0.5;
}

/* 音量控制 */
.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn {
  margin-left: auto;
}

/* 視頻描述 */
.video-description {
  text-align: center;
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
  padding: 16px 20px 20px;
}

.video-description p {
  margin: 0;
}

/* 活動頭部 */
.activity-header {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.activity-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 3px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.activity-title-cn {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  color: white;
}

.activity-title-en {
  font-size: 0.85rem;
  font-weight: 400;
  color: white;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.4;
  opacity: 0.95;
}

/* 活動信息 */
.activity-info {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: white;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item::before {
  content: '◆';
  margin-right: 8px;
  color: white;
  opacity: 0.8;
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 4px;
}

.info-label {
  flex-shrink: 0;
  font-weight: 500;
  color: white;
  margin-right: 4px;
}

.info-value {
  color: white;
  font-weight: 400;
  opacity: 0.95;
}

/* 活動連結 */
.activity-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid white;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  text-align: center;
}

.activity-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 大型活動卡片 - 佔據兩欄 */
.activity-card.activity-large {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  /* 平板隱藏裝飾元素 */
  .video-decoration-left,
  .video-decoration-right {
    display: none;
  }
  
  .video-showcase {
    gap: 0;
    align-items: flex-start;
  }
  
  .activity-card.activity-video {
    max-width: 100%;
    padding: 24px;
    flex: none;
    width: 100%;
  }
  
  .activity-card.activity-video .activity-header {
    margin-bottom: 20px;
  }
  
  .video-description {
    padding: 14px 20px 18px;
  }
  
  /* 平板顯示2列 */
  .activities-series {
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 22px;
  }
}

@media (max-width: 1400px) {
  /* 視頻展示區響應式 */
  .video-decoration-left,
  .video-decoration-right {
    width: 150px;
    gap: 30px;
  }
  
  .decoration-item {
    width: 100px;
    height: 100px;
  }
  
  .decoration-number {
    font-size: 4.5rem;
  }
  
  .decoration-text {
    font-size: 2rem;
  }

  /* 校慶系列活動在中等屏幕顯示3列 */
  .activities-series {
    grid-template-columns: repeat(3, minmax(0, 320px));
    gap: 20px;
    justify-content: center;
  }

  .activities-series .activity-card {
    padding: 22px 18px;
  }

  .activities-series .activity-title-cn {
    font-size: 0.95rem;
  }

  .activities-series .info-item {
    font-size: 0.8rem;
  }

  /* 視頻卡片響應式調整 */
  .activity-card.activity-video {
    padding: 28px;
  }

  .activity-card.activity-video .activity-title-cn {
    font-size: 1.2rem;
  }

  /* 帶圖片卡片在1400px屏幕優化 */
  .activity-image-wrapper {
    height: 220px;
  }

  .activity-content {
    padding: 15px;
  }

  .activity-with-image .activity-title-cn {
    font-size: 0.98rem;
  }

  .activity-with-image .activity-title-en {
    font-size: 0.78rem;
  }

  .activity-with-image .info-item {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .activity-with-image .activity-link {
    padding: 8px 18px;
    font-size: 0.82rem;
  }
}

@media (max-width: 968px) {
  .activity-card.activity-large {
    grid-column: span 1;
  }

  /* 校慶系列活動在平板顯示2列 */
  .activities-series {
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 20px;
    justify-content: center;
  }

  .activities-series .activity-card {
    padding: 24px 20px;
  }

  .activities-series .activity-title-cn {
    font-size: 1rem;
  }

  .activities-series .activity-title-en {
    font-size: 0.8rem;
  }

  .activities-series .info-item {
    font-size: 0.85rem;
  }

  /* 視頻卡片在平板佔據全寬 */
  .activity-card.activity-video {
    grid-column: span 2;
    padding: 24px;
  }

  .activity-card.activity-video .activity-title-cn {
    font-size: 1.15rem;
  }
}

/* 舊版活動卡片樣式（保留用於其他頁面） */
.activity-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
  transform: scale(1.08);
}

.activity-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 16px;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 20px;
  z-index: 2;
}

.activity-content {
  padding: 24px 24px 28px;
}

.activity-date {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.activity-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.activity-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* Gallery - CodePen parallax horizontal scroll */
.gallery {
  margin: 0 calc(50% - 50vw) 60px;
  width: 100vw;
  max-width: 100vw;
  position: relative;
}

/* 画廊装饰背景：右側水彩暈染 */
.gallery::before {
  content: '';
  position: absolute;
  right: 0;
  top: 5%;
  width: 40vw;
  max-width: 520px;
  height: 90%;
  background:
    radial-gradient(circle at 20% 10%, rgba(246, 196, 83, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(192, 25, 36, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 40% 100%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  opacity: 0.75;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.gallery .external {
  overflow: hidden;
  height: clamp(50vh, 58vh, 620px);
  position: relative;
  z-index: 1;
  padding: 0 1.5vw;
}

.gallery .horizontal-scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(50vh, 58vh, 620px);
  max-width: none;
  transform: rotate(-90deg) translate3d(0, -58vh, 0);
  transform-origin: right top;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  height: 100vw;
  perspective: 1px;
  transform-style: preserve-3d;
  padding-bottom: 10rem;
}

.gallery .horizontal-scroll-wrapper::-webkit-scrollbar {
  width: 1px;
  height: 1px;
}

.gallery .img-wrapper {
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38vh;
  transform-origin: 50% 50%;
  transform: rotate(90deg) translateZ(.1px) scale(0.9) translateX(0px) translateY(-3vh);
  transition: 1s;
}

.gallery .img-wrapper:hover {
  min-height: 60vh;
}

.gallery .img-wrapper a {
  overflow: hidden;
  display: block;
  padding: 1vh;
  background: linear-gradient(180deg, #fffdf5 0%, #f1e7d7 100%);
  border-radius: 18px;
  box-shadow:
    0 15px 40px rgba(95, 47, 17, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.08);
  transform: rotate(var(--polaroid-rotate, -2deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  position: relative;
}

.gallery .img-wrapper img {
  width: clamp(38vh, 46vh, 560px);
  max-width: none;
  max-height: none;
  transition: 0.5s;
  vertical-align: top;
  filter: saturate(40%) sepia(30%) hue-rotate(5deg);
  cursor: zoom-in;
  border-radius: 12px;
  margin-top: 12px;
}

.gallery .img-wrapper a:hover img {
  filter: none;
}

.gallery .img-wrapper a::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 0.8;
  pointer-events: none;
}

.gallery .img-wrapper a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.polaroid-caption {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #795548;
}

.gallery .img-wrapper:nth-child(odd) a {
  --polaroid-rotate: -3deg;
}

.gallery .img-wrapper:nth-child(even) a {
  --polaroid-rotate: 2deg;
}

.gallery .img-wrapper:hover a {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 25px 45px rgba(95, 47, 17, 0.35),
    0 5px 18px rgba(0, 0, 0, 0.12);
}

.gallery .slower {
  transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(0%) translateY(-10vh);
}

.gallery .slower1 {
  transform: rotate(90deg) translateZ(-.25px) scale(1.05) translateX(0%) translateY(8vh);
}

.gallery .slower2 {
  transform: rotate(90deg) translateZ(-.3px) scale(1.3) translateX(0%) translateY(2vh);
}

.gallery .slower-down {
  transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(0%) translateY(16vh);
}

.gallery .faster {
  transform: rotate(90deg) translateZ(.15px) scale(0.8) translateX(0%) translateY(14vh);
}

.gallery .faster1 {
  transform: rotate(90deg) translateZ(.05px) scale(0.8) translateX(0%) translateY(10vh);
}

.gallery .fastest {
  transform: rotate(90deg) translateZ(.22px) scale(0.7) translateX(-10vh) translateY(-15vh);
}

.gallery .vertical {
  transform: rotate(90deg) translateZ(-.15px) scale(1.15) translateX(0%) translateY(0%);
}

.gallery .last {
  transform: rotate(90deg) translateZ(-.2px) scale(1.1) translateX(25vh) translateY(-8vh);
}

.gallery .scroll-info,
.gallery header {
  position: absolute;
  left: 1rem;
}

.gallery header {
  bottom: 1rem;
}

.gallery .scroll-info {
  top: 1rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-medium);
  gap: 0.35rem;
}

.gallery .scroll-info .icon {
  font-size: 1.2rem;
}

.gallery .scroll-info .key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.05);
  margin: 0 0.2rem;
}

.lightbox-caption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.95rem;
  color: #f5f5f5;
  letter-spacing: 0.05em;
}
.gallery .icon svg {
  width: 50px;
  fill: currentColor;
}

/* Lightbox for gallery images */
.image-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.image-lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-inner {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox.is-active .image-lightbox-inner {
  transform: scale(1) translateY(0);
}

.image-lightbox-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #000;
}

/* Links */
.links {
  margin-bottom: 80px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.link-card {
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.link-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.link-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.link-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.link-arrow {
  position: absolute;
  bottom: 24px;
  right: 28px;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Gallery Section Styling */
.gallery .section-title {
  margin-bottom: 10px;
  padding-top: 16px;
}

.gallery .section-subtitle {
  margin-bottom: 28px;
}

/* Footer */
.footer {
  margin-top: 100px;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0.8;
}

.footer-school {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.footer-motto {
  font-family: 'Noto Serif TC', serif;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes numberPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
}

@keyframes placeholderShine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade animation for titles */
[data-animate="fade"] {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

[data-animate="fade"]:nth-child(1) { animation-delay: 0.1s; }
[data-animate="fade"]:nth-child(2) { animation-delay: 0.2s; }
[data-animate="fade"]:nth-child(3) { animation-delay: 0.3s; }
[data-animate="fade"]:nth-child(4) { animation-delay: 0.4s; }
[data-animate="fade"]:nth-child(5) { animation-delay: 0.5s; }
[data-animate="fade"]:nth-child(6) { animation-delay: 0.6s; }

/* 桌面端保持橫向視差滾動 */
@media (min-width: 769px) {
  .gallery .horizontal-scroll-wrapper {
    display: flex;
    flex-direction: column;
  }

  .gallery .img-wrapper {
    transform: rotate(90deg);
  }

  .gallery .scroll-info {
    display: flex;
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* 返回首頁按鈕移動端優化 */
  .home-button {
    top: 16px;
    left: 16px;
    padding: 10px 18px;
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .home-icon {
    width: 18px;
    height: 18px;
  }

  /* 平板及手機隱藏裝飾元素 */
  .video-showcase {
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    align-items: flex-start;
  }
  
  .video-decoration-left,
  .video-decoration-right {
    display: none;
  }

  .container {
    padding: 20px 16px;
  }

  .hero {
    padding: 40px 16px;
    margin-bottom: 40px;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .logo-glow {
    width: 140px;
    height: 140px;
  }

  .logo-wrapper {
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 24px;
  }

  .anniversary {
    margin: 24px 0;
    min-height: 80px;
  }

  .anniversary-number {
    font-size: clamp(60px, 15vw, 100px);
  }

  .anniversary-label {
    font-size: clamp(24px, 6vw, 40px);
  }

  .hero-motto {
    font-size: clamp(1rem, 4vw, 1.3rem);
    margin-bottom: 24px;
  }

  .hero-divider {
    width: 60px;
    margin-bottom: 24px;
  }

  /* 優化倒計時在手機上的顯示 */
  .hero-countdown {
    padding: 20px 16px 24px;
    margin: 24px auto 0;
    gap: 12px;
    max-width: 100%;
  }

  .hero-countdown-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .hero-countdown-items {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-countdown-item {
    gap: 3px;
  }

  .hero-countdown-item:not(:last-child)::after {
    right: -5px;
    font-size: 1.2rem;
  }

  .hero-countdown-value {
    font-size: 1.8rem;
    min-width: 2ch;
  }

  .hero-countdown-unit {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .hero-cta {
    gap: 10px;
    margin-top: 24px;
  }

  .cta-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    min-width: 140px;
  }

  .essence-card,
  .mission-card {
    padding: 32px 24px;
  }
  
  .essence-card-enhanced {
    padding: 60px 32px;
  }
  
  /* 移动端弧形分隔线优化 */
  .curved-divider {
    max-width: 250px;
    height: 25px;
    margin: 20px auto 28px;
  }
  
  .curved-divider-enhanced {
    max-width: 300px;
    height: 35px;
    margin: 24px auto 36px;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 12px;
  }
  
  .section-title-enhanced {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .essence-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding: 0 10px;
  }

  .essence-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  
  .essence-text-enhanced {
    font-size: 1.05rem;
    line-height: 2;
  }
  
  .essence-text-wrapper {
    padding: 24px 20px;
  }
  
  .essence-number {
    font-size: 4rem;
    top: -15px;
    right: 20px;
  }
  
  .essence-icon {
    width: 28px;
    height: 28px;
    top: 20px;
    left: 20px;
  }
  
  .principal-message {
    padding: 40px 24px;
  }
  
  .timeline-axis {
    left: 5%;
    right: 5%;
  }
  
  .principal-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }
  
  .principal-photo-section {
    position: relative;
    top: 0;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .principal-text-section {
    padding: 32px 24px;
  }
  
  .header-title {
    font-size: 1.8rem;
  }
  
  .message-paragraph {
    font-size: 1rem;
    line-height: 1.9;
  }
  
  .message-quote {
    padding: 24px 32px;
  }
  
  .quote-text {
    font-size: 1rem;
  }
  
  .stat-item {
    max-width: 100%;
  }
  
  .stat-item-enhanced {
    max-width: 100%;
    padding: 32px 24px;
  }
  
  .stat-number-large {
    font-size: 3.5rem;
  }
  
  .stat-icon-large {
    font-size: 4rem;
  }
  
  .stat-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(192, 25, 36, 0.3),
      transparent
    );
  }
  
  .stat-divider-enhanced {
    width: 60%;
    height: 2px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(192, 25, 36, 0.2) 20%,
      rgba(246, 196, 83, 0.4) 50%,
      rgba(192, 25, 36, 0.2) 80%,
      transparent
    );
  }
  
  .divider-dot {
    left: 50%;
  }
  
  .card-icon-enhanced {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
  }

  .values-grid,
  .timeline-items,
  .links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 活動卡片移動端優化 */
  .activities {
    margin: 60px 0 80px;
  }

  .activities-section {
    margin-bottom: 60px;
  }

  .section-title-en {
    font-size: 1.1rem;
    margin-bottom: 36px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 校慶系列活動移動端改為單列 */
  .activities-series {
    grid-template-columns: minmax(0, 600px);
    gap: 24px;
    justify-content: center;
  }

  .activities-series .activity-card {
    padding: 24px;
  }

  .activities-series .activity-title-cn {
    font-size: 1.1rem;
  }

  .activities-series .activity-title-en {
    font-size: 0.8rem;
  }

  .activities-series .info-item {
    font-size: 0.85rem;
    margin-bottom: 9px;
  }

  .activities-series .activity-link {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* 視頻卡片在移動端佔據全寬 */
  .activity-card.activity-video {
    grid-column: span 1;
    padding: 0;
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  
  .activity-card.activity-video .activity-header {
    padding: 16px 20px;
    margin-bottom: 0;
  }

  .activity-card.activity-video .activity-title-cn {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .activity-card.activity-video .activity-title-en {
    font-size: 0.8rem;
  }
  
  .activity-card.activity-video .activity-date {
    font-size: 0.75rem;
    margin-top: 6px;
  }
  
  .activity-card.activity-video .video-player-wrapper {
    margin-bottom: 0;
  }

  .video-description {
    font-size: 0.85rem;
    padding: 12px 20px 16px;
  }
  
  .video-description p {
    margin: 0;
  }

  /* 移動端帶圖片卡片優化 */
  .activity-image-wrapper {
    height: 200px;
  }

  .activity-content {
    padding: 14px;
  }

  .image-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
  }

  .activity-with-image .activity-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .activity-with-image .activity-title-cn {
    font-size: 0.95rem;
    margin-bottom: 3px;
  }

  .activity-with-image .activity-title-en {
    font-size: 0.75rem;
  }

  .activity-with-image .info-item {
    margin-bottom: 5px;
    font-size: 0.8rem;
  }

  .activity-with-image .activity-info {
    margin-bottom: 12px;
  }

  .activity-with-image .activity-link {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* 移動端視頻控件優化 */
  .video-play-btn {
    width: 60px;
    height: 60px;
  }

  .video-play-btn svg {
    width: 24px;
    height: 24px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }

  .controls-bottom {
    gap: 8px;
  }

  .time-display {
    font-size: 0.8rem;
    min-width: 80px;
  }

  .volume-slider {
    width: 60px;
  }

  .activity-card {
    padding: 24px;
  }

  .activity-header {
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .activity-title-cn {
    font-size: 1.1rem;
  }

  .activity-title-en {
    font-size: 0.8rem;
  }

  .activity-info {
    margin-bottom: 18px;
  }

  .info-item {
    font-size: 0.85rem;
    margin-bottom: 9px;
  }

  .info-item::before {
    font-size: 0.65rem;
    margin-right: 7px;
  }

  .info-label {
    margin-right: 3px;
  }

  .activity-link {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .value-card {
    padding: 36px 24px;
  }

  .value-icon {
    font-size: 2.5rem;
  }

  .value-title {
    font-size: 1.2rem;
  }

  .value-text {
    font-size: 1rem;
  }

  .timeline {
    margin-left: -16px;
    margin-right: -16px;
    padding: 50px 16px 60px;
  }

  .timeline-header {
    padding: 0 16px;
  }

  .timeline-items {
    padding: 0 16px;
  }

  .timeline-line {
    display: none;
  }

  .timeline-card {
    padding: 32px 24px;
  }

  /* 移動端畫廊：改為左右平鋪對稱展示 */
  .gallery {
    margin-bottom: 40px;
  }

  .gallery .section-title {
    padding-top: 12px;
  }

  .gallery .section-subtitle {
    padding: 0 16px;
  }

  /* 隱藏橫向滾動容器，改用網格佈局 */
  .gallery .external {
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .gallery .horizontal-scroll-wrapper {
    transform: none;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 20px 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    perspective: none;
  }

  .gallery .img-wrapper {
    transform: none !important;
    min-height: auto;
    margin: 0;
  }

  .gallery .img-wrapper:hover,
  .gallery .img-wrapper:active {
    min-height: auto;
  }

  .gallery .img-wrapper a {
    padding: 8px;
    border-radius: 12px;
    display: block;
    transform: rotate(0deg) !important;
  }

  /* 左右交替旋轉效果 */
  .gallery .img-wrapper:nth-child(odd) a {
    transform: rotate(-2deg) !important;
  }

  .gallery .img-wrapper:nth-child(even) a {
    transform: rotate(2deg) !important;
  }

  .gallery .img-wrapper a:hover,
  .gallery .img-wrapper a:active {
    transform: rotate(0deg) translateY(-4px) !important;
  }

  .gallery .img-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 8px;
  }

  .polaroid-caption {
    font-size: 0.7rem;
    margin-top: 0.4rem;
    padding: 0 4px;
  }

  /* 隱藏橫向滾動提示 */
  .gallery .scroll-info {
    display: none;
  }

  .mission-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 24px;
  }

  .mission-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .link-card {
    padding: 32px 24px;
  }

  .link-icon {
    font-size: 2rem;
  }

  .link-title {
    font-size: 1.2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shape-1, .shape-2, .shape-3 {
    width: 250px;
    height: 250px;
  }

  ul.flip {
    width: 60px;
    height: 85px;
    font-size: 60px;
    line-height: 82px;
  }

  ul.flip li a div.up:after {
    top: 42px;
  }
}

@media (max-width: 480px) {
  /* 超小屏幕返回按鈕僅顯示圖標 */
  .home-button {
    top: 12px;
    left: 12px;
    padding: 10px;
    gap: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  
  .home-text {
    display: none;
  }
  
  .home-icon {
    width: 20px;
    height: 20px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 16px 12px;
  }

  .hero {
    padding: 30px 12px;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .logo-glow {
    width: 120px;
    height: 120px;
  }

  .hero-subtitle {
    font-size: 0.7rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .anniversary-number {
    font-size: clamp(50px, 12vw, 80px);
  }

  .anniversary-label {
    font-size: clamp(20px, 5vw, 32px);
  }

  .hero-motto {
    font-size: 0.95rem;
  }

  /* 極小屏幕的倒計時優化 */
  .hero-countdown {
    padding: 16px 12px 20px;
  }

  .hero-countdown-label {
    font-size: 0.7rem;
  }

  .hero-countdown-value {
    font-size: 1.5rem;
  }

  .hero-countdown-unit {
    font-size: 0.7rem;
  }

  .hero-countdown-item:not(:last-child)::after {
    font-size: 1rem;
    right: -4px;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    min-width: 130px;
  }

  .essence-card,
  .mission-card {
    padding: 28px 20px;
  }
  
  .essence-card-enhanced {
    padding: 48px 24px;
  }
  
  /* 极小屏幕弧形分隔线优化 */
  .curved-divider {
    max-width: 200px;
    height: 20px;
    margin: 16px auto 24px;
  }
  
  .curved-divider-enhanced {
    max-width: 250px;
    height: 30px;
    margin: 20px auto 32px;
  }

  .section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  
  .section-title-enhanced {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .essence-subtitle {
    font-size: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .essence-text,
  .mission-text {
    font-size: 0.95rem;
    text-align: left;
  }
  
  .essence-text-enhanced {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  
  .essence-text-wrapper {
    padding: 20px 16px;
  }
  
  .essence-number {
    font-size: 3rem;
    top: -12px;
    right: 16px;
  }
  
  .essence-icon {
    width: 24px;
    height: 24px;
    top: 16px;
    left: 16px;
  }
  
  .essence-content {
    gap: 32px;
  }
  
  .principal-message {
    padding: 32px 20px;
  }
  
  .principal-content {
    padding-top: 24px;
  }
  
  .principal-text-section {
    padding: 24px 20px;
  }
  
  .header-title {
    font-size: 1.5rem;
  }
  
  .message-paragraph {
    font-size: 0.95rem;
    text-indent: 1.5em;
  }
  
  .message-quote {
    padding: 20px 24px;
    margin: 24px 0;
  }
  
  .quote-mark {
    font-size: 3rem;
    top: 12px;
    left: 12px;
  }
  
  .quote-mark-end {
    bottom: 12px;
    right: 12px;
  }
  
  .quote-text {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  
  .signature-name {
    font-size: 1.3rem;
  }
  
  .signature-date {
    font-size: 0.85rem;
  }
  
  .card-icon-enhanced {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }

  /* 极小屏幕活動卡片 */
  .activities {
    margin: 50px 0 60px;
  }

  .activities-section {
    margin-bottom: 40px;
  }
  
  /* 移动端视频展示区优化 */
  .video-showcase {
    margin-bottom: 24px;
  }
  
  /* 移动端载入更多按钮优化 */
  .load-more-container {
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  .load-more-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .load-more-icon {
    font-size: 1rem;
  }
  
  /* 移动端视频控制栏优化 */
  .video-controls {
    padding: 16px 12px 12px;
  }
  
  .controls-bottom {
    gap: 8px;
  }
  
  .control-btn {
    padding: 6px;
  }
  
  .control-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .time-display {
    font-size: 0.8rem;
  }
  
  .volume-slider {
    max-width: 50px;
  }
  
  .progress-bar {
    height: 4px;
    margin-bottom: 10px;
  }
  
  .progress-bar:hover {
    height: 6px;
    margin-bottom: 8px;
  }
  
  /* 移动端大播放按钮优化 */
  .video-play-btn {
    width: 64px;
    height: 64px;
  }
  
  .video-play-btn svg {
    width: 28px;
    height: 28px;
  }

  .section-title-en {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .activity-card {
    padding: 20px;
  }

  .activity-header {
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .activity-header::after {
    width: 50px;
  }

  .activity-title-cn {
    font-size: 1.05rem;
  }

  .activity-title-en {
    font-size: 0.75rem;
  }

  .activity-info {
    margin-bottom: 16px;
  }

  .info-item {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .info-item::before {
    font-size: 0.6rem;
    margin-right: 6px;
  }

  .activity-link {
    padding: 9px 16px;
    font-size: 0.8rem;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .value-card {
    padding: 28px 20px;
  }

  .value-icon {
    font-size: 2.2rem;
  }

  .value-title {
    font-size: 1.1rem;
  }

  .value-text {
    font-size: 0.95rem;
  }

  .timeline {
    margin-left: -12px;
    margin-right: -12px;
    padding: 40px 12px 50px;
  }

  .timeline-header {
    padding: 0 12px;
  }

  .timeline-items {
    padding: 0 12px;
  }

  .timeline-card {
    padding: 28px 20px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-year {
    font-size: 1.2rem;
  }

  .timeline-text {
    font-size: 0.9rem;
  }

  /* 小屏幕畫廊優化 - 保持網格佈局 */
  .gallery .horizontal-scroll-wrapper {
    padding: 16px 12px;
    gap: 12px;
  }

  .gallery .img-wrapper a {
    padding: 6px;
    border-radius: 10px;
  }

  .gallery .img-wrapper img {
    border-radius: 6px;
    margin-top: 6px;
  }

  .polaroid-caption {
    font-size: 0.65rem;
    margin-top: 0.3rem;
  }

  .mission-badge {
    font-size: 0.8rem;
    padding: 8px 20px;
  }

  .link-card {
    padding: 28px 20px;
  }

  .link-icon {
    font-size: 1.8rem;
  }

  .link-title {
    font-size: 1.1rem;
  }

  .link-desc {
    font-size: 0.85rem;
  }

  .footer {
    padding: 40px 0 30px;
  }

  .footer-logo img {
    width: 60px;
    height: 60px;
  }

  .footer-school {
    font-size: 1rem;
  }

  .footer-motto {
    font-size: 0.9rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }
}

/* 浮動導航按鈕 */
.floating-nav {
  position: fixed;
  right: 30px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(190, 120, 90, 0.25),
              inset 0 0 0 1px var(--glass-border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.nav-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-btn:hover {
  background: linear-gradient(135deg, #c01924 0%, #e63b33 100%);
  color: #fff;
  box-shadow: 0 12px 40px 0 rgba(192, 25, 36, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.nav-btn:active {
  transform: translateY(-1px) scale(0.95);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

/* 手機適配 */
@media (max-width: 768px) {
  .floating-nav {
    right: 16px;
    bottom: 24px;
    gap: 10px;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
  }

  .nav-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .floating-nav {
    right: 12px;
    bottom: 20px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .nav-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* 橫屏手機優化 */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 30px 16px;
  }

  .anniversary {
    min-height: 60px;
    margin: 16px 0;
  }

  .hero-countdown {
    margin: 16px auto 0;
  }

  /* 橫屏時畫廊使用3欄佈局 */
  .gallery .horizontal-scroll-wrapper {
    grid-template-columns: repeat(3, 1fr);
    padding: 16px;
  }

  .gallery .img-wrapper img {
    aspect-ratio: 3/2;
  }
}

/* 觸控設備優化 */
@media (hover: none) and (pointer: coarse) {
  /* 增大可點擊區域 */
  .cta-btn {
    min-height: 44px;
    padding: 12px 28px;
  }

  .nav-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .link-card {
    min-height: 120px;
  }

  /* 優化畫廊觸控交互 */
  .gallery .img-wrapper a:hover {
    transform: rotate(-2deg) !important;
  }

  .gallery .img-wrapper a:active {
    transform: rotate(0deg) scale(0.98) !important;
    box-shadow:
      0 15px 35px rgba(95, 47, 17, 0.3),
      0 3px 12px rgba(0, 0, 0, 0.1);
  }

  .gallery .img-wrapper:nth-child(even) a:hover {
    transform: rotate(2deg) !important;
  }

  .glass-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(190, 120, 90, 0.18);
  }

  .glass-card:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(190, 120, 90, 0.25);
  }
}

/* 極窄屏幕優化 (小於360px) */
@media (max-width: 360px) {
  .hero-countdown-items {
    gap: 2px;
  }

  .hero-countdown-value {
    font-size: 1.3rem;
  }

  .hero-countdown-item:not(:last-child)::after {
    font-size: 0.9rem;
    right: -3px;
  }

  .cta-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-width: 120px;
  }

  /* 極窄屏幕改為單欄顯示 */
  .gallery .horizontal-scroll-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .gallery .img-wrapper a {
    padding: 10px;
  }

  .gallery .img-wrapper img {
    margin-top: 10px;
  }

  .polaroid-caption {
    font-size: 0.7rem;
  }
}

/* 高DPI屏幕優化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glass-card {
    box-shadow: 0 10px 30px rgba(190, 120, 90, 0.2);
  }
}

/* ========================================
   緊急修復：確保標題「九十五載，薪火相傳」顯示
   ======================================== */

/* 超高優先級樣式 - 確保標題可見 */
h2.section-title.section-title-enhanced,
.section-title-enhanced {
  color: #c01924 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 900 !important;
  text-shadow: 
    0 0 20px rgba(246, 196, 83, 0.5),
    0 0 40px rgba(246, 196, 83, 0.3),
    2px 2px 4px rgba(192, 25, 36, 0.3) !important;
}

/* 確保每個字符可見 */
.section-title-enhanced .title-char,
.title-char {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

/* 確保逗號可見 */
.section-title-enhanced .title-separator,
.title-separator {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

/* ==========================================
   互動效果：懸停標題時的特效
   ========================================== */

/* 標題整體懸停效果 */
.section-title-enhanced {
  cursor: default;
  transition: all 0.3s ease;
}

.section-title-enhanced:hover {
  transform: scale(1.05);
  text-shadow: 
    0 0 30px rgba(246, 196, 83, 0.8),
    0 0 60px rgba(246, 196, 83, 0.6),
    0 0 90px rgba(255, 215, 0, 0.4),
    2px 2px 4px rgba(192, 25, 36, 0.3) !important;
}

/* 字符懸停效果 */
.title-char {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.title-char:hover {
  transform: translateY(-10px) scale(1.2) rotateZ(5deg) !important;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 1),
    0 0 40px rgba(246, 196, 83, 0.8),
    0 5px 15px rgba(192, 25, 36, 0.5);
  animation: none !important;
}

/* 逗號懸停效果 */
.title-separator {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.title-separator:hover {
  transform: scale(1.5) rotate(180deg) !important;
  filter: drop-shadow(0 0 15px rgba(246, 196, 83, 1)) !important;
  animation: none !important;
}

/* 英文副標題懸停效果 */
.essence-subtitle {
  cursor: default;
  transition: all 0.3s ease;
}

.essence-subtitle:hover {
  letter-spacing: 0.25em;
  text-shadow: 
    0 0 15px rgba(246, 196, 83, 0.6),
    0 0 30px rgba(246, 196, 83, 0.4);
}

/* 圖標懸停效果增強 */
.card-icon-enhanced:hover {
  transform: translateY(-15px) rotate(10deg) scale(1.2);
  filter: drop-shadow(0 0 25px rgba(246, 196, 83, 0.9));
}

/* ==========================================
   手機端優化：確保小屏幕完美呈現
   ========================================== */

/* 平板端優化 (768px - 1024px) */
@media (max-width: 1024px) {
  .section-title-enhanced {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
    letter-spacing: 0.03em;
  }
  
  .section-title-enhanced:hover {
    transform: scale(1.03);
  }
  
  .title-char:hover {
    transform: translateY(-8px) scale(1.15) !important;
  }
  
  .essence-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }
}

/* 手機端優化 (< 768px) */
@media (max-width: 768px) {
  /* 標題優化 */
  .section-title-enhanced {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    line-height: 1.4;
    /* 簡化陰影 - 只保留一層 */
    text-shadow: 2px 2px 4px rgba(192, 25, 36, 0.3) !important;
    /* 禁用發光動畫 */
    animation: none !important;
    /* 啟用硬件加速 */
    transform: translateZ(0);
    will-change: auto;
  }
  
  /* 禁用所有懸停效果 */
  .section-title-enhanced:hover {
    transform: none;
  }
  
  .title-char {
    margin: 0 1px;
    /* 禁用字符動畫 */
    animation: none !important;
    /* 禁用過渡效果 */
    transition: none !important;
    /* 硬件加速 */
    transform: translateZ(0);
  }
  
  .title-char:hover {
    transform: none !important;
  }
  
  /* 移除偽元素發光效果 */
  .title-char::before {
    display: none;
  }
  
  .title-separator {
    margin: 0 6px;
    /* 禁用動畫 */
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }
  
  .title-separator:hover {
    transform: none !important;
  }
  
  /* 英文副標題 */
  .essence-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    /* 禁用動畫 */
    animation: none !important;
    transition: none !important;
  }
  
  .essence-subtitle:hover {
    letter-spacing: 0.1em;
  }
  
  /* 移除副標題偽元素 */
  .essence-subtitle::before {
    display: none;
  }
  
  /* 圖標優化 */
  .card-icon-enhanced {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    /* 禁用動畫 */
    animation: none !important;
    transition: none !important;
  }
  
  /* 卡片內距優化 */
  .essence-card-enhanced {
    padding: 40px 24px;
  }
  
  /* 強制禁用所有複雜效果 */
  .section-title-enhanced *,
  .essence-subtitle,
  .card-icon-enhanced {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* 小屏手機優化 (< 480px) */
@media (max-width: 480px) {
  /* 標題進一步優化 */
  .section-title-enhanced {
    font-size: clamp(1.3rem, 8vw, 1.8rem) !important;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    /* 完全移除陰影效果 */
    text-shadow: none !important;
    /* 強制禁用動畫 */
    animation: none !important;
    transition: none !important;
  }
  
  /* 字符間距調整 */
  .title-char {
    margin: 0;
    animation: none !important;
    transition: none !important;
  }
  
  .title-separator {
    margin: 0 4px;
    animation: none !important;
    transition: none !important;
  }
  
  /* 完全禁用懸停效果 */
  .title-char:hover,
  .title-separator:hover {
    transform: none !important;
  }
  
  /* 英文副標題 */
  .essence-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    animation: none !important;
    transition: none !important;
  }
  
  /* 圖標 */
  .card-icon-enhanced {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    animation: none !important;
    transition: none !important;
  }
  
  /* 卡片內距 */
  .essence-card-enhanced {
    padding: 30px 16px;
  }
  
  /* 強制禁用所有效果 */
  .section-title-enhanced:hover,
  .title-char:hover,
  .title-separator:hover,
  .essence-subtitle:hover {
    transform: none !important;
    text-shadow: none !important;
  }
}

/* 橫屏手機優化 */
@media (max-width: 768px) and (orientation: landscape) {
  .section-title-enhanced {
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    margin-bottom: 8px;
  }
  
  .essence-subtitle {
    font-size: 0.7rem;
    margin-bottom: 16px;
  }
  
  .card-icon-enhanced {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
  
  .essence-card-enhanced {
    padding: 24px 20px;
  }
}

/* 觸摸設備優化 */
@media (hover: none) and (pointer: coarse) {
  /* 完全禁用觸摸效果以提升性能 */
  .title-char:active,
  .title-separator:active {
    transform: none !important;
  }
  
  /* 增加觸摸目標大小 */
  .title-char,
  .title-separator {
    padding: 4px;
    min-width: 1.2em;
    min-height: 1.2em;
  }
  
  /* 禁用所有動畫和過渡 */
  .section-title-enhanced,
  .section-title-enhanced *,
  .title-char,
  .title-separator,
  .essence-subtitle,
  .card-icon-enhanced {
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  
  /* 移除複雜的陰影效果 */
  .section-title-enhanced {
    text-shadow: 2px 2px 4px rgba(192, 25, 36, 0.3) !important;
  }
  
  /* 禁用偽元素 */
  .title-char::before,
  .title-char::after,
  .essence-subtitle::before,
  .essence-subtitle::after {
    display: none !important;
  }
}

/* 性能優化：減少重繪和重排 */
@media (max-width: 768px) {
  /* 使用 contain 屬性優化渲染 */
  .section-title-enhanced {
    contain: layout style paint;
  }
  
  .title-char,
  .title-separator {
    contain: layout paint;
  }
  
  /* 簡化背景和邊框 */
  .essence-card-enhanced {
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  /* 禁用模糊效果（性能殺手） */
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================
   藝術字體 95 樣式
   ========================================== */

/* 主標題區域的 95 藝術字 - 優雅斜體金色效果 */
.anniversary-number.artistic-number {
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: clamp(4rem, 10vw, 8rem) !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  transform: scaleX(0.85) !important;
  position: relative;
  display: inline-block !important;
  /* 方案：使用純色 + 多層發光（更可靠） */
  color: #ffd700 !important; /* 亮金色，確保可見 */
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4),
    0 0 40px rgba(212, 175, 55, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.2) !important;
  animation: goldPulseReliable 2s ease-in-out infinite !important;
  /* 移除可能導致不可見的屬性 */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

/* 可靠的金色脈動動畫 */
@keyframes goldPulseReliable {
  0%, 100% {
    color: #ffd700;
    text-shadow: 
      0 0 10px rgba(255, 215, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 215, 0, 0.4),
      0 0 40px rgba(212, 175, 55, 0.3),
      2px 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    color: #ffed4e; /* 更亮的金色 */
    text-shadow: 
      0 0 15px rgba(255, 215, 0, 1),
      0 0 30px rgba(255, 215, 0, 0.8),
      0 0 45px rgba(255, 215, 0, 0.6),
      0 0 60px rgba(212, 175, 55, 0.4),
      2px 2px 4px rgba(0, 0, 0, 0.2);
  }
}

.anniversary-number.artistic-number .number-digit {
  display: inline-block;
  position: relative;
  animation: digitFloat 3s ease-in-out infinite;
}

.anniversary-number.artistic-number .number-digit:nth-child(1) {
  animation-delay: 0s;
}

.anniversary-number.artistic-number .number-digit:nth-child(2) {
  animation-delay: 0.3s;
}

/* 數字漂浮動畫 */
@keyframes digitFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

/* 金色閃爍動畫 */
@keyframes shimmerGold {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* 倒計時區域的 95 藝術字（內聯版本） */
/* 倒計時標籤內的 95 - 優雅斜體金色效果（超高優先級） */
.countdown-label-number.artistic-inline,
span.countdown-label-number.artistic-inline,
.hero-countdown-label .countdown-label-number.artistic-inline {
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: 1.8em !important;
  transform: scaleX(0.85) !important;
  display: inline-block !important;
  margin: 0 0.2em !important;
  /* 使用純色 + 多層發光（更可靠） */
  color: #ffd700 !important; /* 亮金色，確保可見 */
  text-shadow: 
    0 0 8px rgba(255, 215, 0, 0.8),
    0 0 16px rgba(255, 215, 0, 0.6),
    0 0 24px rgba(255, 215, 0, 0.4),
    0 0 32px rgba(212, 175, 55, 0.3),
    1px 1px 3px rgba(0, 0, 0, 0.2) !important;
  animation: goldPulseReliable 2s ease-in-out infinite !important;
  /* 移除可能導致不可見的屬性 */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

/* ==========================================
   倒計時板塊動態效果
   ========================================== */

/* 倒計時整體動畫 */
.countdown-animated {
  animation: countdownEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) backwards !important;
  animation-delay: 1.5s !important;
}

@keyframes countdownEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  60% {
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 標籤文字淡入 */
.hero-countdown-label {
  animation: labelFadeIn 0.8s ease-out backwards;
  animation-delay: 1.8s;
}

@keyframes labelFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 倒計時項目逐個彈入 */
.hero-countdown-item {
  animation: itemBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.hero-countdown-item[data-animate-delay="0"] {
  animation-delay: 2s;
}

.hero-countdown-item[data-animate-delay="0.1"] {
  animation-delay: 2.1s;
}

.hero-countdown-item[data-animate-delay="0.2"] {
  animation-delay: 2.2s;
}

.hero-countdown-item[data-animate-delay="0.3"] {
  animation-delay: 2.3s;
}

@keyframes itemBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }
  50% {
    transform: scale(1.1) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 數字翻轉效果 */
.hero-countdown-value {
  display: inline-block;
  animation: numberFlip 0.6s ease backwards;
}

@keyframes numberFlip {
  0% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

/* 懸停效果增強 */
.hero-countdown-item:hover {
  transform: translateY(-8px) scale(1.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-countdown-item:hover .hero-countdown-value {
  color: #ffd700;
  text-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(212, 175, 55, 0.5);
}

/* 響應式調整 */
@media (max-width: 768px) {
  .anniversary-number.artistic-number {
    font-size: 4rem;
  }
  
  .countdown-label-number.artistic-inline {
    font-size: 1.5em;
  }
  
  /* 簡化手機端動畫 */
  .countdown-animated,
  .hero-countdown-label,
  .hero-countdown-item {
    animation-duration: 0.4s;
  }
}

@media (max-width: 480px) {
  .anniversary-number.artistic-number {
    font-size: 3rem;
  }
  
  .countdown-label-number.artistic-inline {
    font-size: 1.3em;
  }
  
  /* 手機端禁用複雜動畫 */
  .anniversary-number.artistic-number .number-digit {
    animation: none;
  }
  
  .hero-countdown-item:hover {
    transform: none;
  }
}
