/* 根變數定義 - 顏色主題 */
:root {
  --bg: #0d1117;
  --card-bg: #161b22;
  --primary: #00ff9d;
  --primary-dark: #00b36b;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft JhengHei", "微軟正黑體", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* 頂部導航 - 文字標題與按鈕同列 */
header {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), #ffffff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
  letter-spacing: 1px;
  margin: 0;
}

.site-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.5px;
}

.more-btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.25);
  transition: all 0.3s ease;
  font-size: 1.05rem;
  white-space: nowrap;
}

.more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 157, 0.4);
  color: #fff;
}

/* 手機版調整 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  
  .site-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.8rem;
  }
  
  .more-btn {
    width: 100%;
    text-align: center;
    max-width: 300px;
  }
}

/* 主要內容 */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
  position: relative;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* 服務項目網格 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(0, 255, 157, 0.12);
}

.service-card a {
  display: block;
  padding: 1.8rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  text-align: center;
  transition: color 0.3s;
}

.service-card a:hover {
  color: var(--primary);
}

.highlight a {
  color: var(--primary);
  font-weight: 600;
}

/* 頁尾 */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

@media (min-width: 769px) {
  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
}