/* ==================== 全局变量与基础样式 ==================== */
:root {
    --primary-color: #2F3944;
    --secondary-color: #84754E;
    --accent-color: #996A4E;
    --light-accent: #C69B80;
    --text-light: #FCF9EA;
    --text-dark: #2F3944;
    --transition-speed: 0.3s;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  }
  
  body {
    background: var(--primary-color);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ==================== 导航栏样式 ==================== */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0f1a24 30%, #2F3944 100%);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
  }

  .navbar .cta-button {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
  }

  .navbar .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  
  .navbar.hidden {
    transform: translateY(-100%);
  }
  
  .navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    will-change: transform;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3)) brightness(1.05);
  }
  
  .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
  }
  
  .social-icons {
    display: flex;
    gap: 0.8rem;
  }
  
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }
  
  /* ==================== 主内容区域 ==================== */
  .main-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1.5rem;
    /* 修改：添加背景滚动效果 */
    background: url('images/background.jpg') no-repeat center center/cover fixed;
    animation: backgroundScroll 60s linear infinite;
  }

  /* 新增标题高亮样式 */
  /* 漸變文字效果 */
.highlight-title {
  background: linear-gradient(45deg, 
             var(--accent-color), 
             var(--light-accent), 
             var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
  text-shadow: none;
}

/* 漸變動畫 */
@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}



  @keyframes backgroundScroll {
    0% {
      background-position: 0% 0%;
    }
    50% {
      background-position: 100% 100%;
    }
    100% {
      background-position: 0% 0%;
    }
  }
  
  .main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 57, 68, 0.6);
    z-index: 0;
  }
  
  .hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding-top: 60px; /* 为导航栏留出空间 */
  }
  
  .main-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
  }
  
  .main-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
  }
  
  .button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-light);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
  }
  
  /* ==================== 通用组件样式 ==================== */
  .glass-container {
    background: rgba(47, 57, 68, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(252, 249, 234, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all var(--transition-speed) ease;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--light-accent), transparent);
    margin: 0 auto;
  }
  /* ==================== About区域样式 ==================== */
.about-section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
  }

  /* ==================== 功能卡片颜色 ==================== */
.feature-card:nth-child(1) i { color: #4FC3F7; } /* 航班追蹤 - 科技藍 */
.feature-card:nth-child(2) i { color: #FFD54F; } /* 飛行員體系 - 榮耀金 */
.feature-card:nth-child(3) i { color: #81C784; } /* 世界探索 - 自然綠 */
.feature-card:nth-child(4) i { color: #9575CD; } /* 社群交流 - 社群紫 */

/* ==================== 悬停动画增强 ==================== */
.glass-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.nav-links a:hover {
  background: rgba(252, 249, 234, 0.1);
  transform: translateY(-3px);
}

.social-icons a:hover {
  transform: scale(1.2);
  color: var(--light-accent);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.feature-card:hover i {
  animation: bounce 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
}

.footer a:hover {
  transform: translateY(-2px) scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  
  /* ==================== 功能卡片区域 ==================== */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .feature-card {
    text-align: center;
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 220px;
  }
  
  .feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
  }
  
  .feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .feature-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 800px;
  }
  
  .feature-gallery img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 1s ease-out;
  }
  
  .feature-gallery img.active {
    opacity: 1;
  }
  
/* ==================== 按鈕樣式 ==================== */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    margin: 0.25rem; /* 保持按鈕間距一致 */
  }
  
  /* 主按鈕樣式 (現在給"機組入口"使用) */
  .cta-button.primary {
    background: var(--accent-color);
    color: var(--text-light);
  }
  
  /* 次要按鈕樣式 (現在給"探索更多"使用) */
  .cta-button.secondary {
    background: transparent;
    border: 2px solid var(--light-accent);
    color: var(--light-accent);
  }
  
  /* 按鈕懸停效果 - 共用 */
  .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* 特定調整 hero content 中的按鈕 */
  .hero-content .button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* 交換按鈕樣式 */
  .hero-content .button-group a[href="#about"].cta-button {
    background: transparent;
    border: 2px solid var(--light-accent);
    color: var(--light-accent);
  }
  
  .hero-content .button-group a[href="https://crew.starlux-virtual.net"].cta-button {
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
  }
  
  /* 按鈕懸停效果 - 特定 */
  .hero-content .button-group a[href="#about"].cta-button:hover {
    background: rgba(198, 155, 128, 0.1); /* 半透明效果 */
  }
  
  .hero-content .button-group a[href="https://crew.starlux-virtual.net"].cta-button:hover {
    background: #7a4a36; /* 深色調 */
  }
  /* ==================== 地圖樣式 ==================== */
.map-section {
    padding: 4rem 1rem;
    background: rgba(47, 57, 68, 0.5);
    position: relative;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    margin-top: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(252, 249, 234, 0.1);
}

/* 調整Leaflet控制元件樣式 */
.leaflet-control {
    background: rgba(47, 57, 68, 0.8) !important;
    color: var(--text-light) !important;
    border: 1px solid rgba(252, 249, 234, 0.1) !important;
}

.leaflet-control-attribution {
    background: rgba(47, 57, 68, 0.6) !important;
    font-size: 0.7rem !important;
}

.leaflet-bar a {
    color: var(--text-light) !important;
    background-color: rgba(47, 57, 68, 0.8) !important;
    border-bottom: 1px solid rgba(252, 249, 234, 0.1) !important;
}

.leaflet-bar a:hover {
    background-color: var(--accent-color) !important;
}

  /* ==================== 页脚样式 ==================== */
  .footer {
    background: #0f1a24;
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 使 logo 居中 */
    gap: 1.5rem; /* 增加元素間距 */
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-logo img {
    width: 250px;  /* 調整為適當尺寸 */
    height: auto;  /* 保持比例 */
    transition: all var(--transition-speed) ease;
}

  .disclaimer {
    background: #0f1a24;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    border-top: 1px solid rgba(252, 249, 234, 0.1);
}
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .social-links a {
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all var(--transition-speed) ease;
  }
  
  .copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
  }
  
  /* ==================== 动画效果 ==================== */
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
  }
  
  @keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  }
  
  .floating {
    animation: float 6s ease-in-out infinite;
  }
  
  /* ==================== 移动设备响应式设计 ==================== */
  @media (max-width: 992px) {
    .navbar-logo {
      height: 35px;
    }
    
    .main-section h1 {
      font-size: 2.2rem;
    }
    
    .feature-gallery {
      margin: 1.5rem auto;
    }
  }
  
  @media (max-width: 768px) {
    .nav-links {
      position: fixed;
      top: 70px;
      left: 0;
      width: 100%;
      background: var(--primary-color);
      flex-direction: column;
      padding: 1rem 0;
      gap: 0.5rem;
      display: none;
    }
    
    .nav-links.active {
      display: flex;
    }
    
    .nav-links a {
      padding: 0.8rem;
      width: 100%;
      text-align: center;
    }
    
    .social-icons {
      margin: 0.5rem 0;
    }
    
    .menu-toggle {
      display: block;
    }
    
    .main-section {
      padding-top: 70px;
    }
    
    .main-section h1 {
      font-size: 2rem;
    }
    
    .main-section p {
      font-size: 1rem;
    }
    
    .features-grid {
      grid-template-columns: 1fr;
    }
    
    .button-group {
      flex-direction: column;
    }
    
    .cta-button {
      width: 100%;
    }
    #map {
        height: 400px;
    }
    
    .leaflet-control {
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    .footer-logo img {
      width: 120px;
  }
  }
  
  @media (max-width: 480px) {
    .navbar {
      padding: 0.8rem;
    }
    
    .navbar-logo {
      height: 30px;
    }
    
    .main-section h1 {
      font-size: 1.8rem;
    }
    
    .glass-container {
      padding: 1.2rem;
    }
    
    .section-header h2 {
      font-size: 1.8rem;
    }
    #map {
        height: 300px;
    }
    
    .map-section {
        padding: 2rem 0.5rem;
    }
    .footer-logo img {
      width: 100px;
  }
  }
  
  /* ==================== 深色模式支持 ==================== */
  @media (prefers-color-scheme: dark) {
    .feature-gallery {
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    
    .glass-container {
      background: rgba(30, 40, 50, 0.8);
    }
  }
/* ==================== 滾動動畫 ==================== */
/* 定義初始狀態 */
.glass-container,
.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* 定義動畫後狀態 */
.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 為不同元素添加延遲 */
.section-header.animated {
    transition-delay: 0.2s;
}

.glass-container.animated {
    transition-delay: 0.4s;
}

.feature-card.animated {
    transition-delay: 0.6s;
}
/* ==================== Partners Section ==================== */
.partners-section {
    padding: 4rem 1rem;
    background: rgba(47, 57, 68, 0.5);
    position: relative;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.partner-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.4s ease;
}

/* 移除原本的 filter 設定 */
.partner-card img {
  height: 80px;
  width: auto;
  max-width: 200px;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
  transition: all var(--transition-speed) ease;
  /* 刪除這行 → filter: grayscale(100%) brightness(1.2); */
}

/* 懸停效果調整為單純縮放 */
.partner-card:hover img {
  transform: scale(1.1); /* 保留懸停放大效果 */
  /* 刪除這行 → filter: grayscale(0%) brightness(1); */
}


.partner-card h3 {
    margin: 1rem 0;
    color: var(--light-accent);
}

/* ==================== Join Section ==================== */
.join-section {
    padding: 4rem 1rem;
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
}

/* ==================== Join Section ==================== */
.join-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 严格等宽 */
    align-items: stretch;
    gap: 2rem;
    padding: 1.5rem;
    margin-top: -2px; /* 上移2px对齐 */
}

.join-content > div {
    min-height: unset; /* 减少高度 */
    height: auto; /* 自动高度 */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(0); /* 修复对齐偏移 */
}

/* ==================== 社區統計區塊 ==================== */
.community-stats.glass-container.animated {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 强制三栏等宽 */
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1.5rem;
    border: 1px solid rgba(252, 249, 234, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

/* 文字防溢出處理 */
.stat-item h4 {
    width: 100%;
    font-size: 2.2rem;
    color: var(--light-accent) !important;
    text-align: center;
    padding: 0 0.5rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0.5rem 0;
}

/* 统一悬浮动画高度 */
.glass-container:hover {
    transform: translateY(-3px); /* 减少悬浮位移 */
}

/* ==================== 加入区块样式调整 ==================== */
.glass-container.floating.animated {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    text-align: center; /* 文字居中 */
    padding: 2.5rem; /* 增加内边距 */
}

.glass-container.floating.animated h3 {
    font-size: 1.7rem; /* 调大字号 */
    margin-bottom: 1.2rem;
    line-height: 1.3;
    width: 100%; /* 防止文字换行问题 */
    max-width: 800px; /* 限制最大宽度 */
    color: var(--light-accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.glass-container.floating.animated p {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px; /* 限制段落宽度 */
    opacity: 0.9;
}
/* ==================== Window Explore Section ==================== */
.window-explore-section {
    background-color: white;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.window-explore-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.window-explore-content {
    flex: 1;
    padding: 2rem;
    color: var(--primary-color);
}

.window-explore-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.window-explore-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.explore-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.explore-button:hover {
    background-color: #7a4a36;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.explore-button span {
    display: none;
}

.explore-button span.active {
    display: inline;
}


/* Responsive design */
@media (max-width: 992px) {
    .window-explore-container {
        flex-direction: column;
    }
    
    .window-explore-content {
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .window-explore-content h2 {
        font-size: 2rem;
    }
    
    .explore-button {
        padding: 0.7rem 1.5rem;
    }
}

/* 觀景窗區塊 */
        #window-section {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            opacity: 0;
            transition: opacity 1s;
        }

        /* 遮光板系統 */
        .window-shade {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ece7e1;
            z-index: 2;
            transform: translateY(0%);
            transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            border-radius: 100px;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
        }

        .window-shade::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 15px;
            right: 15px;
            height: 4px;
            background: rgba(255,255,255,0.1);
            transform: translateY(-50%);
        }

        /* 遮罩容器 */
        .window-mask {
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            border-radius: 135px;
            overflow: hidden;
            z-index: 2;
        }

        /* 觀景窗樣式 */
        .window-container {
            width: 320px;
            height: 520px;
            position: relative;
            filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6));
        }

        .window-frame {
            width: 100%;
            height: 100%;
            background: #1a1a1a;
            border: 12px solid #f0f0f0;
            border-radius: 150px;
            position: relative;
            z-index: 3;
        }

        .window-inner {
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            border-radius: 135px;
            overflow: hidden;
        }

        .window-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 30%;
            transform: scale(1.05);
            z-index: 1;
            position: relative;
        }

        .top-line { top: 22% }
        .bottom-line { bottom: 22% }

        /* 雲層動畫 */
        .cloud-layer {
            position: absolute;
            width: 200%;
            height: 120%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><path fill="%23ffffff" d="M25 20c-4 0-7 3-7 7 0 0.5 0 1 0.2 1.5C16.8 30 15 32 15 34.5c0 3 2.5 5.5 5.5 5.5h29c3 0 5.5-2.5 5.5-5.5 0-2.3-1.5-4.3-3.5-5 0.2-0.5 0.3-1 0.3-1.5 0-3-2.5-5.5-5.5-5.5-1.5 0-2.8 0.6-3.8 1.5C41.8 18 39 15 35.5 15c-3.3 0-6 2-7.5 5-1-0.5-2-0.8-3-0.8z"/></svg>') repeat-x;
            opacity: 0.18;
            animation: cloudMove 25s linear infinite;
            mix-blend-mode: overlay;
        }

        /* 光效 */
        .window-glow {
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.05), transparent 60%);
            pointer-events: none;
        }

        /* 雨滴效果 */
        .raindrops {
            position: absolute;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><line x1="%rand%" y1="%rand%" x2="%rand%" y2="%rand%" stroke="%23ffffff" stroke-width="0.3" stroke-opacity="0.3"/></svg>');
            animation: rainFall 1s linear infinite;
            opacity: 0.4;
        }

        /* 動畫定義 */
        @keyframes fadeIn {
            to { opacity: 1 }
        }

        @keyframes slideUp {
            to { transform: translateY(0) }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-15px); }
            60% { transform: translateY(-7px); }
        }

        @keyframes cloudMove {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        @keyframes rainFall {
            from { transform: translateY(-100%); }
            to { transform: translateY(100%); }
        }

/* 响应式调整 */
@media (max-width: 1024px) {
    .join-content > div {
        min-height: 280px;
        padding: 1.2rem;
    }
    
    .stat-item {
        min-height: 120px;
    }

    .stat-item h4 {
        font-size: 2rem;
    }

    .join-content {
      display: flex;
      flex-direction: column;
    }
}

@media (max-width: 768px) {
    .join-content {
        gap: 1rem;
        margin-top: 0;
        display: flex;
        flex-direction: column; /* 改成上下顯示 */
    }
    
    .join-content > div {
        min-height: 240px;
        padding: 1rem;
    }
    
    .community-stats.glass-container.animated {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 平板兩欄 */
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .join-content > div {
        min-height: 200px;
        padding: 0.8rem;
    }
    .join-content {
        display: flex;
        flex-direction: column; /* 改成上下顯示 */
        gap: 1rem; /* 增加間距 */
    }


    .community-stats.glass-container.animated {
        grid-template-columns: 1fr; /* 手機單欄 */
    }
    
    .stat-item {
        min-height: 120px;
        padding: 1rem;
    }
    
    .stat-item h4 {
        font-size: 1.8rem;
    }
}




.partner-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.partner-link {
  margin-top: 1rem;
  color: var(--light-accent);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.partner-card:hover .partner-link {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* 語言選擇器樣式 */
.language-selector {
  position: relative;
  margin-left: 1rem;
  z-index: 1001;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
}

.language-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.current-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(47, 57, 68, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 0.5rem;
  list-style: none;
  min-width: 150px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  display: block !important; /* 強制顯示 */
  opacity: 0; /* 初始狀態隱藏 */
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.navbar.hidden .language-dropdown {
  display: none !important; /* 當 navbar 隱藏時強制關閉下拉 */
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
}

.language-dropdown a:hover {
  background: rgba(252, 249, 234, 0.1);
  color: var(--light-accent);
}

.language-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.is-loading {
  opacity: 0;
  visibility: hidden;
}
.is-loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
/* Cookie 弹窗样式 */
/* 添加在CSS文件末尾 */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; bottom: -20px; }
  to { opacity: 1; bottom: 20px; }
}

.glass-blur {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  padding: 20px;
}

.cookie-consent {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  opacity: 0;
  transition: all 0.5s ease-out;
  display: none;
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.cookie-content p {
  margin: 0 20px 0 0;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.cookie-content a {
  color: #4fc3f7;
  text-decoration: underline;
}

#cookie-accept {
  min-width: 100px;
}

.count-up {
        transition: all 0.5s ease-out;
        display: inline-block;
    }
    
    .stat-item h4 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
        color: var(--highlight-color);
        font-weight: 700;
    }
    
    .stat-item p {
        font-size: 0.9rem;
        opacity: 0.8;
    }

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin: 0 0 15px 0;
  }
  
  .cookie-consent {
    width: 85%;
    bottom: 10px;
  }
}
