:root {
  /* Wix AI 科技新創輕量化風格 (Lightweight Modern Tech/AI Theme) */
  --bg: #f8fafc;            /* 高雅極簡白藍底色 */
  --bg-soft: #f1f5f9;       /* 淺灰藍備用區段 */
  --bg-card: rgba(255, 255, 255, 0.82); /* 輕盈白色毛玻璃卡片 */
  --ink: #0f172a;           /* 深炭灰 (超高易讀性) */
  --muted: #475569;         /* 介面次要冷灰 */
  --border: rgba(14, 165, 233, 0.15); /* 輕盈藍框線 */
  --cyan: #0284c7;          /* 科技天空藍 */
  --purple: #6d28d9;         /* 離子皇家紫 */
  --pink: #db2777;          /* 鐳射亮粉色 */
  --orange: #ea580c;        /* 脈衝警告橘 */
  --green: #059669;         /* 運作綠色 */
  --font-body: 'Outfit', sans-serif;
  --font-title: 'Montserrat', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  --neon-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 自訂輕量化滾動條 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* 背景粒子連接網格 - 固定底層 */
#lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .6;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

/* Wix Sticky Header (強烈對比深色面板) */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  background: #090d16;
  border-bottom: 1px solid rgba(14, 165, 233, 0.22);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-menu ul li a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
}

.nav-menu ul li a:hover {
  color: var(--cyan);
}

.nav-menu ul li a.nav-cta {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.nav-menu ul li a.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.header-readout {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.header-readout .gz-badge {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.header-readout .clock-val {
  color: #ffffff;
}

.menu-toggle {
  display: none;
}

/* 頁面主體 */
#landing-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Hero Section Background Canvas Style */
#hero {
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  /* 移除所有邊框、陰影與卡片底色，使文字直接懸浮融入背景中 */
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
}

.landing-section {
  padding: 4rem 0;
  width: 100%;
  position: relative;
  scroll-margin-top: 5.5rem; /* 確保導覽列錨點點擊時，內容不會被 Sticky Header 遮擋 */
}

#projects {
  padding-bottom: 1.5rem;
}

#projects + #stats {
  padding-top: 1.5rem;
}

#hero {
  padding-top: 7.5rem; /* 清除 5rem 高的固定導覽列，並留出 2.5rem 的安全空白 */
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 首頁主標題 (Hero Block) */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  min-height: auto; /* 移除視窗高度限制，完全由內容與 padding 決定，解決大螢幕空白過多問題 */
}

.hero-content {
  flex: 1.1;
}

.badge-pill {
  display: inline-block;
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.2);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 80%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
  line-height: 1.8;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Wix 規格藥丸按鈕 (Buttons) */
.btn {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.25s var(--ease);
}

.btn-solid {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.2);
  border: 0;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  background: rgba(2, 132, 199, 0.05);
  border-color: var(--cyan);
}

/* Hero 右側圖表卡 (Telemetry Dashboard Box) */
.hero-graphics {
  flex: 0.9;
  display: flex;
  justify-content: flex-end;
}

.app-window-glass {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.window-header {
  height: 2.8rem;
  background: rgba(241, 245, 249, 0.8);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 0.5rem;
}

.circle-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.circle-btn.r { background-color: #ef4444; }
.circle-btn.y { background-color: #f59e0b; }
.circle-btn.g { background-color: #10b981; }

.window-title {
  margin-left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.window-body {
  padding: 1.5rem;
}

.tank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #f1f5f9;
  padding: 3px;
}

.seg button {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.seg button.on {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #ffffff;
}

.seg button:not(.on):hover {
  color: var(--ink);
}

.live-pulse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s var(--ease) infinite;
}

.status-lbl {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  font-weight: 700;
}

.tank {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

#tank {
  display: block;
  width: 100%;
  height: 280px;
}

/* 玻璃遙測小窗口 */
.holo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(5px);
}

.holo-title {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.holo-item {
  margin-bottom: 0.2rem;
}

.holo-item .val {
  color: var(--ink);
  font-weight: 700;
}

.holo-footer {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
}

/* 通用章節標頭 (Section Headers) */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-kicker {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.header-line {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin: 1.2rem auto 0;
  border-radius: 2px;
}

/* 核心技術網格 (Focus Grid) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.22rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.02);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.08);
}

.num-tag {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 技能標籤雲 */
.skills-block {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
}

.skills-heading {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.95rem;
  background: #ffffff;
}

.tag.g-tag {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(2, 132, 199, 0.03);
}

/* 指標數據看板 (Metrics Statistics) */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--glass-shadow);
}

.stat-box {
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.glow-cyan {
  color: var(--cyan);
}

.glow-purple {
  color: var(--purple);
}

.glow-pink {
  color: var(--pink);
}

.glow-orange {
  color: var(--orange);
}

/* 伺服器部署專案 (Deployments) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.project-card:hover {
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--glass-shadow);
  transform: translateY(-2px);
}

.project-card .card-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.p-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

.project-card h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.project-card p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.p-details {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.p-details div {
  display: flex;
  align-items: center;
}

.p-details .k {
  color: var(--muted);
  min-width: 72px;
}

.p-details .v {
  color: var(--ink);
  font-weight: 700;
}

.p-details .v .n {
  color: var(--muted);
  font-weight: 400;
}

/* 休閒愛好與笑話 (Lifestyle Grid) */
.lifestyle-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.lifestyle-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.life-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.01);
}

.life-icon {
  font-size: 1.8rem;
  line-height: 1.2;
}

.life-card h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.life-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.pun-box-panel {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(2, 132, 199, 0.03));
  border: 1px dashed var(--cyan);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.pun-box-panel:hover {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(2, 132, 199, 0.05));
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.05);
}

.pun-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.pun-box-panel h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.pun-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
}

.pun-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* 內部終端機 (Connect Command Panel) - 保留開發者暗黑美學作為視覺錨點 */
.cli-window {
  border: 1px solid #1e293b;
  background: #080a13;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.cli-top {
  height: 3rem;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
}

.cli-dots {
  display: flex;
  gap: 0.45rem;
}

.cli-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.cli-server-path {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94a3b8;
}

.cli-run-btn {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 40px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cli-run-btn:hover {
  background: var(--cyan);
  color: #070a13;
}

.cli-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.cli-line {
  margin-bottom: 0.2rem;
}

.cli-line.muted { color: #64748b; }
.cli-line .c { color: #38bdf8; }
.cli-line .g { color: #fbbf24; }
.cli-line .m { color: #94a3b8; }
.cli-line .p { color: #c084fc; }
.cli-line .green { color: #34d399; }

.user-command {
  color: #fbbf24;
}

.console-cursor {
  display: inline-block;
  width: 0.5ch;
  background: #fbbf24;
  color: transparent;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 6px #fbbf24;
}

.kicker {
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.kicker .sm {
  color: var(--cyan);
  font-weight: 700;
}

/* Wix 規格聯絡表單 (Contact Form) */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem;
  align-items: center;
}

.contact-info .contact-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 1.5rem 0 2.2rem;
}

.contact-meta-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-row {
  display: flex;
  font-size: 0.88rem;
}

.meta-row .label {
  font-family: var(--font-mono);
  color: var(--muted);
  min-width: 90px;
}

.meta-row .val {
  font-weight: 600;
}

.meta-row .val-link {
  color: var(--cyan);
  border-bottom: 1px solid transparent;
}

.meta-row .val-link:hover {
  border-bottom-color: var(--cyan);
}

.contact-form-glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.8rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1.05rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.1);
}

.btn-submit {
  width: 100%;
  border: 0;
}

/* 頁腳 */
#footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 4rem 0;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 1.5rem;
}

.footer-bottom .copyright {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* 日記/運作日誌區段 (Journal Diary Style) */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.diary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.01);
}

.diary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--glass-shadow);
}

.diary-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  display: block;
}

.diary-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.diary-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* RWD 佈局優化 */
@media (max-width: 980px) {
  .hero-content {
    background: transparent;
    padding: 0;
  }

  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 4rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-graphics {
    justify-content: center;
    width: 100%;
  }

  .app-window-glass {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .lifestyle-layout {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Hamburger Menu styles for < 980px */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: left center;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(38deg);
  }

  .menu-toggle.open span:nth-child(2) {
    width: 0;
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-38deg);
  }

  #header .nav-menu {
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background: #090d16;
    border-bottom: 1px solid rgba(14, 165, 233, 0.22);
    padding: 2.2rem 2rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
    z-index: 999;
  }

  #header .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #header .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  #header .nav-menu ul li a {
    display: block;
    font-size: 1.1rem;
    padding: 0.4rem 0;
    color: #ffffff;
  }

  #header .nav-menu ul li a.nav-cta {
    display: inline-block;
    width: 80%;
    margin-top: 0.5rem;
  }

  .header-readout .gz-badge {
    display: none;
  }

  .header-readout .clock-val {
    font-size: 0.85rem;
  }

  .diary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .hero-content {
    padding: 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-glass {
    padding: 1.8rem;
  }

  .diary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* COMFYUI ART GALLERY SECTION */
#gallery {
  padding: 6rem 0;
  position: relative;
}

.gallery-section-desc {
  max-width: 600px;
  margin: 1rem auto 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.gallery-carousel-window {
  max-width: 860px;
  margin: 3rem auto 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.gallery-carousel-body {
  position: relative;
  min-height: 480px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.gallery-slides-container {
  position: relative;
  width: 100%;
  flex: 1;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.gallery-image-wrapper {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-image-wrapper:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 1.8rem 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-caption h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.gallery-caption p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}



/* INDICATOR DOTS */
.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

/* ITHOME DAILY SUMMARY BLOCK */
.ithome-summary-block {
  margin-top: 2.5rem;
  width: 100%;
}

.ithome-content-box {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Custom Scrollbar */
.ithome-content-box::-webkit-scrollbar {
  width: 6px;
}
.ithome-content-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 3px;
}
.ithome-content-box::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}
.ithome-content-box::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.ithome-loading {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ithome-h1 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.8rem;
  display: none; /* Hide H1 since section header is already present */
}

.ithome-h2 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 1.2rem 0 0.8rem 0;
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.ithome-h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.ithome-p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.ithome-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  word-break: break-all;
}

.ithome-link:hover {
  color: var(--purple);
  text-decoration: underline;
}

.ithome-hr {
  border: 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  margin: 1.2rem 0;
}

@media (max-width: 768px) {
  .gallery-image-wrapper {
    height: 280px;
  }
  .gallery-caption {
    padding: 1.2rem 1.5rem;
  }
  .gallery-caption h3 {
    font-size: 1.1rem;
  }
}