/**
 * Support 模組樣式 - 玻璃擬態設計
 * 統一使用青綠色主題，支援明暗模式
 */

/* =========================================
   1. Support Hero 區域（頁面頭部）
   ========================================= */

.support-hero {
  padding: 120px 20px 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(100, 255, 218, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 漸層裝飾線 */
.support-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(100, 255, 218, 0.5) 50%, 
    transparent 100%);
}

.support-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  letter-spacing: 1px;
}

.support-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 深色模式 */
body.dark-mode .support-hero {
  background: rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(100, 255, 218, 0.4);
}

body.dark-mode .support-hero h1 {
  color: #64ffda;
  text-shadow: 0 0 25px rgba(100, 255, 218, 0.4);
}

body.dark-mode .support-hero p {
  color: rgba(230, 240, 250, 0.9);
}

/* =========================================
   2. Support Section（內容區塊）
   ========================================= */

.support-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.support-section:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.support-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64ffda;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-section h2::before {
  content: '✦';
  font-size: 1.2rem;
  color: rgba(100, 255, 218, 0.6);
}

.support-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* 深色模式 */
body.dark-mode .support-section {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 255, 218, 0.3);
}

body.dark-mode .support-section:hover {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 30px rgba(10, 28, 43, 0.4);
}

body.dark-mode .support-section h2 {
  color: #64ffda;
}

body.dark-mode .support-section p {
  color: rgba(230, 240, 250, 0.9);
}

/* =========================================
   3. FAQ 列表（手風琴式卡片）
   ========================================= */

.faq-list {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.15);
}

/* FAQ 問題按鈕 */
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: rgba(100, 255, 218, 0.1);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question::after {
  content: '▼';
  font-size: 0.9rem;
  color: #64ffda;
  transition: transform 0.3s ease;
}

.faq-question:hover {
  background: rgba(100, 255, 218, 0.15);
  padding-left: 1.75rem;
}

.faq-question.active::after {
  transform: rotate(180deg);
}

/* 發光效果 */
.faq-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(100, 255, 218, 0.8) 0%, 
    rgba(100, 255, 218, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-question:hover::before {
  opacity: 1;
}

/* FAQ 答案區域 */
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-answer.active {
  padding: 1.25rem 1.5rem;
  max-height: 500px;
  opacity: 1;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* 深色模式 */
body.dark-mode .faq-item {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(100, 255, 218, 0.3);
}

body.dark-mode .faq-item:hover {
  background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .faq-question {
  background: rgba(100, 255, 218, 0.08);
  color: #64ffda;
}

body.dark-mode .faq-question:hover {
  background: rgba(100, 255, 218, 0.12);
}

body.dark-mode .faq-answer {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .faq-answer p {
  color: rgba(230, 240, 250, 0.9);
}

/* =========================================
   4. 動畫定義
   ========================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   5. 響應式設計
   ========================================= */

@media (max-width: 768px) {
  .support-hero {
    padding: 100px 15px 50px;
  }
  
  .support-hero h1 {
    font-size: 2rem;
  }
  
  .support-section {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }
  
  .faq-list {
    padding: 0 15px;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-answer.active {
    padding: 1rem;
  }
}
