:root {
  /* 明亮醫療感專屬色體系 */
  --primary: #0b1f3a;       /* 沉穩深藍：用於主標題、Logo、技術區塊，建立權威感 */
  --secondary: #1d4ed8;     /* 科技亮藍：用於按鈕、強調文字、幾何粒子 */
  --accent: #14b8a6;        /* 醫療青綠：用於重點數據、技術標題點綴、打勾清單 */
  --light: #f4f8fb;         /* 極淺科技灰：用於區塊交替背景，增加層次 */
  --white: #ffffff;         /* 醫療純白：主背景色與卡片底色 */
  --text: #1f2937;          /* 主要深灰文字 */
  --muted: #6b7280;         /* 次要說明文字 */
  --border: #e5e7eb;        /* 柔和邊框 */
}

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

body {
  font-family: 'Inter', "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ==========================================================================
   Header / 明亮導覽列 (已完美整合橫式圖檔 Logo 與擠壓防護)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo 點擊超連結容器 */
.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0; /* 防止導覽列空間變小時 Logo 被擠扁 */
}

/* 橫式 Logo 圖片防撐爆限制 */
.site-logo {
  height: 32px;
  max-height: 100%;
  max-width: 200px; /* 限制網頁上顯示的最大寬度，防止推擠文字 */
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 1;
  white-space: nowrap; /* 防止文字因視窗縮小而突兀折行 */
}

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

.header-cta {
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--secondary);
}

/* ==========================================================================
   Hero / 醫療白首屏與動態幾何背景
   ========================================================================== */
.hero {
  position: relative;
  padding: 120px 0 96px;
  background: linear-gradient(135deg, #f8fbff 0%, #eaf4ff 100%);
  overflow: hidden;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--primary);
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover {
  background: #1742b8;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.3);
}

.btn-secondary {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  background: #f8fbff;
}

.hero-visual {
  padding: 20px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(11, 31, 58, 0.14);
  max-width: 85%;
  margin: 0 auto;
}

.hero-visual img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Proof / 實績數據
   ========================================================================== */
.proof {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 24px;
  margin-bottom: 48px;
}

.stats-grid strong {
  display: block;
  font-size: 46px;
  font-weight: 800;
  color: var(--primary);
}

.stats-grid span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.client-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.client-logos:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client-logos img {
  max-height: 44px;
}

/* ==========================================================================
   通用 Section 與卡片網格樣式
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--light);
}

.section-dark {
  background: #FAFAFA;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
}

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

/* 通用卡片網格與卡片樣式 (應用於 Problem, Security) */
.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  padding: 32px 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.02);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(11, 31, 58, 0.06);
  border-color: var(--secondary);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

/* About 區塊專用五欄卡網格 */
.card-grid.five-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.partner-banner {
  background: var(--light);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.partner-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.partner-name {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}

.partner-role {
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   Solutions / 解決方案卡片 (4欄網格)
   ========================================================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  padding: 24px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08);
  border-color: var(--secondary);
}

.solution-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.solution-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   Feature Deep Dive / 三大旗艦應用特寫 (已完美對接 16:9 橫式圖檔)
   ========================================================================== */
.feature-deepdive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0.8;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08);
}

/* 🛠️ 橫式圖片整合外框 */
.feature-icon-horizontal {
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--light);
  border: 1px solid rgba(29, 78, 216, 0.08);
  padding: 10px;
}

.feature-icon-horizontal img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.feature-box h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 800;
}

.feature-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

.feature-list li strong {
  color: var(--secondary);
}

/* ==========================================================================
   Technology / 核心技術 (唯一深色系防護塊)
   ========================================================================== */
.technology {
  background: var(--primary);
  color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.technology h2 {
  color: var(--white);
}

.technology p {
  color: #cbd5e1;
}

.tech-panel {
  display: grid;
  gap: 20px;
}

.tech-item {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tech-item h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* ==========================================================================
   Timeline / 導入時程
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline div {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.timeline strong {
  display: block;
  color: var(--secondary);
  font-size: 24px;
  margin-bottom: 12px;
}

.timeline h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* ==========================================================================
   Contact Section / 聯絡我們左右並排高階佈局 (與加大版 QR Code 整合)
   ========================================================================== */
.contact {
  background: linear-gradient(135deg, #eaf4ff 0%, #f8fbff 100%);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 440px;
  gap: 64px;
  align-items: center; 
}

.contact-left h2 {
  font-size: clamp(32px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.team-list {
  margin-top: 36px;
  display: grid;
  gap: 20px;
}

.team-item {
  padding: 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center; 
  gap: 24px; 
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.02);
  transition: all 0.3s ease;
}

.team-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.05);
  border-color: var(--secondary);
}

/* 方形大尺寸 QR Code 容器 */
.team-qrcode-container {
  width: 140px;           
  height: 140px;          
  flex-shrink: 0;         
  border-radius: 12px;    
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px;           
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-qrcode-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;    
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 右側獨立聯繫字卡 */
.contact-right-card {
  background: var(--white);
  padding: 44px 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(11, 31, 58, 0.08); 
}

.contact-right-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-subtitle {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-method-list p {
  font-size: 15px;
  color: var(--text);
}

.contact-method-list a {
  color: var(--secondary);
  font-weight: 600;
}

.contact-method-list a:hover {
  text-decoration: underline;
}

.full {
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 32px 0;
  background: var(--primary);
  color: #94A3B8;
  font-size: 14px;
  text-align: center;
}

/* ==========================================================================
   動畫效果 (JS 觸發進場)
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   響應式設計 (RWD) 斷點整合治理中心 (已將所有散落的媒體查詢精確歸口)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .tech-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-visual {
    max-width: 100%; 
  }

  .solution-grid,
  .card-grid.three,
  .feature-deepdive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-grid.five-cols {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .nav {
    display: none;
  }
  
  .contact-right-card {
    max-width: 500px;
    margin: 0 auto; 
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* 平板窄版防線 */
  .feature-deepdive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section,
  .hero {
    padding: 64px 0;
  }

  .solution-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }
  
  .card-grid.five-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-item {
    flex-direction: column;
    align-items: center;  
    text-align: center;
    gap: 16px;
    padding: 32px 20px;
  }
  
  .team-info {
    align-items: center;
  }

  .partner-content {
    flex-direction: column;
    gap: 8px;
  }

  .header-cta {
    display: none;
  }

  .contact-right-card {
    padding: 32px 24px; 
  }
}