/* 全局樣式 */
:root {
  --primary-color: #3498db;
  --secondary-color: #e74c3c;
  --tertiary-color: #2ecc71;
  --background-color: #f5f5f5;
  --text-color: #333;
  --header-color: #2c3e50;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 導航欄 */
header {
  background-color: var(--header-color);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* 英雄區塊 */
.hero {
  background: linear-gradient(135deg, var(--header-color) 0%, #34495e 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

/* 特點區塊 */
.features {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--header-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* 架構圖區塊 */
.architecture {
  padding: 4rem 0;
  background-color: #ecf0f1;
}

.architecture-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.architecture-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.architecture-description {
  max-width: 800px;
  text-align: center;
}

/* 系統比較區塊 */
.comparison {
  padding: 4rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.comparison-table th {
  background-color: var(--header-color);
  color: white;
}

.comparison-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.comparison-table tr:hover {
  background-color: #e2e2e2;
}

/* 應用場景區塊 */
.applications {
  padding: 4rem 0;
  background-color: #ecf0f1;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.application-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.application-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

/* 聯絡區塊 */
.contact {
  padding: 4rem 0;
  text-align: center;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

/* 頁腳 */
footer {
  background-color: var(--header-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links li {
  margin: 0 1rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .features-grid,
  .applications-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* 動畫效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

/* 系統區塊顏色 */
.edc-color {
  color: var(--primary-color);
}

.rag-color {
  color: var(--secondary-color);
}

.llm-color {
  color: var(--tertiary-color);
}
