/* 
  設計新紀元：CSS 樣式表 (亮色質感版)
  設計目標：清新、簡潔、高質感與科技感 
*/

/* 引入 Google Fonts: Outfit (標題) 與 Inter (內文) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* 專業大地橘與午夜藍配色方案 */
  --primary-gradient: linear-gradient(135deg, #D97A2B 0%, #F59E0B 50%, #1E293B 100%);
  --bg-light: #FAF7F5; /* 輕微偏暖的極簡白 */
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-main: #1E293B; /* 深邃午夜藍，增加設計感 */
  --text-muted: #64748B;
  --accent: #D97A2B; /* 以核心橘色作為強調 */
  --glass-border: rgba(217, 122, 43, 0.1); /* 帶點橘色的細微邊框 */
  --shadow-soft: 0 10px 30px -5px rgba(30, 41, 59, 0.05); /* 修飾為深藍系柔和陰影 */
  --shadow-hover: 0 20px 40px -5px rgba(217, 122, 43, 0.15); /* 懸停時帶點暖橘光澤 */
  
  /* 轉場與間距 */
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --container-width: 1100px;
}

/* 基礎設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', "Microsoft JhengHei", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 容器與通用間距 */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

/* 漸層文字效果 */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 頂部裝飾背景 */
.bg-glow {
  position: fixed;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* 導航列 */
nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

/* Hero 區塊 */
.hero {
  text-align: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 3rem;
}

/* 按鈕樣式 */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

/* 卡片與網格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.3);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
}

/* 針對系所的特殊裝飾 */
.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
}

/* 章節標題 */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* 問卷/FAQ 區塊 */
.faq-item {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-soft);
}

.faq-item h4 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* 動畫效果 - 滾動觸發 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 響應式設定 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

/* 主視覺圖片樣式 (現已移入 Hero) */
.header-image-container {
  width: 100%;
  max-width: 100%;
  margin: 50px auto 0 auto;
  padding: 0;
  overflow: hidden;
}

.top-banner {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: block;
}

/* 響應式：小螢幕時高度調整 */
@media (max-width: 768px) {
  .header-image-container {
    padding: 0 1rem;
    margin-top: 10px;
  }
  .top-banner {
    max-height: 250px;
  }
}
