﻿/* ==========================================================================
   達裕資安科技 Dayu CyberTech — 官方網站樣式系統 (v3.0 明亮專業資安旗艦版)
   設計風格：現代、明亮、純淨、權威感 (Clean, Sophisticated & High-Trust Corporate Security)
   全面拋棄暗色系與廉價 AI 漂浮球，比照國際頂尖資安企業之明亮高階工程美學。
   保留 Logo 戰術雷達與地球經緯軌道旋轉特效。
   ========================================================================== */

/* ---------- 1. 設計變數 (Design Tokens - Light Corporate Mode) ---------- */
:root {
  /* 品牌核心色彩（精準取自商標雙刃與電光青天眼） */
  --brand-50: #f5f6ff;
  --brand-100: #eceeff;
  --brand-200: #c9ccff;
  --brand-300: #9197f6;
  --brand-400: #6f74e0;
  --brand-500: #584fd8;
  --brand-600: #3c34c5; /* 皇家紫靛主色 */
  --brand-700: #312b9e;
  --brand-800: #252077;
  --brand-900: #1b1754;

  --cyan-50: #f0f9ff;
  --cyan-100: #e0f2fe;
  --cyan-500: #0ea5e9;
  --cyan-600: #0284c7; /* 電光青輔色 */
  --cyan-700: #0369a1;

  /* 明亮介面底色體系 (Clean Light Palette) */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  /* 邊框線條 */
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;
  --border-brand: rgba(60, 52, 197, 0.25);
  --border-focus: rgba(2, 132, 199, 0.4);

  /* 文字階層 (High Contrast & Legibility) */
  --text-main: #0f172a;   /* 標題與重點深黑藍 */
  --text-body: #334155;   /* 正文深石墨灰 */
  --text-muted: #64748b;  /* 次要說明灰 */
  --text-dim: #94a3b8;    /* 弱化註記 */

  /* 風險等級色（CVSS 規範） */
  --sev-critical: #e11d48;
  --sev-high: #f43f5e;
  --sev-medium: #d97706;
  --sev-low: #0284c7;

  /* 字體 */
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  /* 陰影體系 (Soft High-End Shadows) */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 40px -6px rgba(60, 52, 197, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);

  /* 佈局規格 */
  --container: 1200px;
  --header-h: 78px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.25s var(--ease);
}

/* ---------- 2. 基礎重置 (Reset) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* 無障礙跳至主要內容 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--brand-600);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- 3. 通用排版工具 (Layout Utilities) ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 100px) 0;
  position: relative;
}

.section-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* 全局列表項圖示與文字垂直基準對齊 */
ul li > .icon,
ol li > .icon {
  flex-shrink: 0;
  margin-top: 3px;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-600);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-lead {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.8;
}

/* 網格背景紋理（極微弱幾何點陣，增加空間深度） */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 30%, transparent 75%);
}

/* ---------- 4. 按鈕體系 (Buttons) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(60, 52, 197, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  box-shadow: 0 6px 20px rgba(60, 52, 197, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  background: var(--brand-50);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-body);
}
.btn-outline:hover {
  color: var(--brand-600);
  border-color: var(--brand-600);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- 5. 頂部導覽列 (Site Header & Navigation) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-600);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-600);
  background: var(--brand-50);
}

.nav-link.active {
  color: var(--brand-600);
  font-weight: 800;
  background: var(--brand-100);
}

.nav-cta {
  margin-left: 10px;
}

/* 漢堡選單 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* ---------- 6. 內頁專屬頂部 (Page Header) ---------- */
.page-header {
  padding: calc(var(--header-h) + 48px) 0 44px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  text-align: center;
}

.page-header-inner {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--text-body);
  font-weight: 600;
}
.breadcrumb a:hover {
  color: var(--brand-600);
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: center;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ---------- 7. 首頁專屬 Hero (Homepage Hero) ---------- */
.home-hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 36px) 0 80px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #ffffff 100%);
  position: relative;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.home-hero-text h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 24px;
}

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

.home-hero-lead {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-assurance-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero-assurance-item .icon {
  color: var(--brand-600);
  margin-top: 3px;
  flex-shrink: 0;
}

/* 首頁右側：高質感明亮旋轉地球儀 / 戰術雷達展示台 (Rotating Tactical Platform) */
.home-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.globe-wrap {
  position: relative;
  width: min(100%, 390px);
  margin-inline: auto;
}

.globe-platform {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 70%, #e2e8f0 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 25px 60px -15px rgba(15, 23, 42, 0.12),
    0 0 0 12px rgba(60, 52, 197, 0.03),
    0 0 0 24px rgba(60, 52, 197, 0.015);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* 旋轉外環戰術刻度（保留地球旋轉意象） */
.globe-orbit {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1.5px dashed rgba(60, 52, 197, 0.35);
  animation: rotateGlobe 32s linear infinite;
  pointer-events: none;
}

.globe-radar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 310deg, rgba(2, 132, 199, 0.14) 360deg);
  animation: rotateGlobe 9s linear infinite;
  pointer-events: none;
}

@keyframes rotateGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.globe-platform img {
  position: relative;
  z-index: 2;
  width: 72%;
  filter: drop-shadow(0 12px 24px rgba(60, 52, 197, 0.2));
  transition: transform 0.4s var(--ease);
}
.globe-platform:hover img {
  transform: scale(1.04);
}

.globe-caption {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* 旋轉地球儀周圍：專業資安合規標準標記（四角鏡像對稱分佈） */
.globe-tag {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  white-space: nowrap;
}
.globe-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-600);
  box-shadow: 0 0 0 2px rgba(60, 52, 197, 0.15);
  flex-shrink: 0;
}
/* 四象限鏡像對稱定位 */
.globe-tag-tl {
  top: 32px;
  left: -20px;
}
.globe-tag-tr {
  top: 32px;
  right: -20px;
}
.globe-tag-bl {
  bottom: 32px;
  left: -20px;
}
.globe-tag-br {
  bottom: 32px;
  right: -20px;
}

@media (max-width: 480px) {
  .globe-tag {
    font-size: 0.68rem;
    padding: 4px 8px;
    gap: 4px;
  }
  .globe-tag-tl {
    top: 14px;
    left: -4px;
  }
  .globe-tag-tr {
    top: 14px;
    right: -4px;
  }
  .globe-tag-bl {
    bottom: 14px;
    left: -4px;
  }
  .globe-tag-br {
    bottom: 14px;
    right: -4px;
  }
}

/* 地球儀下方：專業實用敘述面版 (Security Context Panel) */
.globe-context-panel {
  max-width: 400px;
  margin-top: 18px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.globe-context-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-700);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.globe-context-text {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 12px;
}
.globe-context-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.globe-context-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.globe-context-point .icon {
  width: 14px;
  height: 14px;
  color: var(--cyan-600);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ---------- 8. 服務項目卡片體系 (Services Cards) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan-600);
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.service-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-meta-list {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.service-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-meta-item .icon {
  color: var(--brand-600);
  margin-top: 3px;
  width: 15px;
  height: 15px;
}

/* 服務詳細頁獨立區塊 (White Elevated Card) */
.service-detail-block {
  padding: 40px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.service-detail-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.service-detail-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
}
.service-detail-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
}

/* ---------- 9. 檢測流程體系 (Process Pipeline) ---------- */
.process-timeline {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-content p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.75;
}

.step-deliverables {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--brand-700);
  font-weight: 600;
}

/* ---------- 10. 專業資格與法規清單 (Credentials) ---------- */
.cred-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cred-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cred-category {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cred-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.cred-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.cred-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  border: 1px solid var(--border);
}

/* ---------- 11. 最新消息專區 (News & Bulletins) ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.news-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}
.news-date {
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.news-category {
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--cyan-50);
  color: var(--cyan-700);
  border: 1px solid var(--cyan-100);
  font-size: 0.76rem;
  font-weight: 700;
}

.news-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 12px;
}

.news-card p {
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.news-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-600);
}
.news-link:hover {
  color: var(--cyan-600);
}

/* ---------- 12. 關於我們 (About Us) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-quote {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.45;
  color: var(--text-main);
  border-left: 4px solid var(--brand-600);
  padding-left: 24px;
  margin-bottom: 24px;
}

.pillars-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.pillar-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--brand-600);
}

/* ---------- 13. 常見問題 (FAQ Accordion) ---------- */
.faq-accordion {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  font-family: var(--font-mono);
  color: var(--brand-600);
  margin-right: 12px;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ---------- 14. 洽詢表單與社群 (Contact & Social) ---------- */
.contact-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-channels {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
a.contact-channel-item:hover {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  display: grid;
  place-items: center;
  color: var(--brand-600);
  flex-shrink: 0;
}

.channel-detail small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.channel-detail strong {
  font-size: 1rem;
  color: var(--text-main);
  word-break: break-all;
}

/* 社群連結按鈕群 */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.social-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}
.social-btn.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}
.social-btn.line:hover {
  background: #06c755;
  border-color: #06c755;
}
.social-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

/* 表單卡片 */
.contact-form-card {
  padding: clamp(28px, 4vw, 40px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.form-label .req {
  color: var(--sev-critical);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-600);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(60, 52, 197, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.service-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.service-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}
.service-checkbox:hover {
  background: #ffffff;
  border-color: var(--brand-300);
}
.service-checkbox input[type="checkbox"] {
  accent-color: var(--brand-600);
  width: 16px;
  height: 16px;
}
.service-checkbox input:checked + span {
  color: var(--text-main);
  font-weight: 700;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}

/* ---------- 15. 頁尾 (Site Footer) ---------- */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--brand-600);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--brand-600);
}

/* ---------- 16. 響應式適配 (RWD) ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open {
    display: flex;
  }
  .nav-link {
    padding: 12px 16px;
    font-size: 1.05rem;
  }
  .nav-cta {
    margin: 12px 0 0;
  }
  .nav-toggle {
    display: flex;
  }

  .home-hero-grid,
  .about-grid,
  .contact-layout,
  .contact-grid,
  .service-detail-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-hero-visual {
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .form-grid,
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .process-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- 17. 獨立分類頁面擴展樣式 (Modular Extensions) ---------- */
/* 服務詳解卡片 */
.service-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-detail-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md);
}

.service-detail-header {
  margin-bottom: 16px;
}
.service-detail-header .service-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}
.service-detail-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--text-main);
  font-weight: 900;
  line-height: 1.3;
}

.service-detail-desc {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.detail-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.detail-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}
.detail-box ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}
.detail-box li {
  position: relative;
  padding-left: 18px;
  line-height: 1.6;
}
.detail-box li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--brand-600);
  font-weight: bold;
}

/* 表單與控制項擴展 */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(60, 52, 197, 0.15);
}

/* 自訂核取方塊 */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.custom-checkbox:hover {
  background: #ffffff;
  border-color: var(--brand-400);
}
.custom-checkbox input[type="checkbox"] {
  accent-color: var(--brand-600);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.custom-checkbox .checkbox-label {
  font-size: 0.94rem;
  color: var(--text-main);
  font-weight: 600;
}

/* 多元社群聯繫項目 */
.social-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.social-contact-item:hover {
  border-color: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.social-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
}
.social-contact-icon.fb { background: #1877f2; }
.social-contact-icon.line { background: #06c755; }
.social-contact-icon.in { background: #0a66c2; }
.social-contact-icon.mail { background: var(--brand-600); }

/* FAQ 手風琴 */
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 1.4rem;
  color: var(--brand-600);
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-content {
  padding: 0 24px 22px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* 標籤分類樣式 */
.news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag-announcement { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.tag-milestone { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tag-tech { background: var(--cyan-50); color: var(--cyan-700); border: 1px solid var(--cyan-200); }

/* 頁尾全面網格佈局 */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.social-btn svg,
.social-btn .icon {
  width: 28px;
  height: 28px;
  display: block;
}
.social-btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--brand-600);
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 8px;
}
.footer-contact-item a:hover {
  color: var(--brand-600);
}
.footer-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-compliance-badge:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

