/* ==========================================================================
   尚上科技 SunSum Technology — 白底企業旗艦版官網樣式表 (SunSum Logo 色彩系統)
   色彩規範 (萃取自 sunsum-logo.png 三維立方體識別)：
   - 左面 Left S  (深藍色 Deep Blue)   : #2B369B / #1B246E
   - 頂面 Top SP  (天空藍 Sky Blue)    : #2E9CE6 / #1D82C9
   - 右面 Right S (蒂芬妮藍 Tiffany)   : #6CEBEB (高光裝飾) / #009FB0 (白底高對比文字)
   - 純淨白底 Canvas                   : #FFFFFF / #F4F8FC
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f8fc;
  --bg-tertiary: #ebf3fa;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);

  /* SunSum 三原藍品牌色票 */
  --sunsum-deep: #2b369b;       /* 左 S：深藍色 */
  --sunsum-deep-dark: #182066;  /* 深藍標題與強調 */
  --sunsum-sky: #2e9ce6;        /* 上 SP：天空藍 */
  --sunsum-sky-hover: #1d86ce;
  --sunsum-tiffany: #6cebeb;    /* 右 鏡射 S：蒂芬妮藍 */
  --sunsum-tiffany-dark: #009fb0; /* 白底可讀性蒂芬妮深青 */

  --brand-gradient: linear-gradient(135deg, #2b369b 0%, #2e9ce6 55%, #00b8c8 100%);
  --brand-soft-bg: linear-gradient(135deg, rgba(43, 54, 155, 0.05) 0%, rgba(46, 156, 230, 0.08) 55%, rgba(108, 235, 235, 0.14) 100%);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border-subtle: #e2e8f0;
  --border-brand: rgba(46, 156, 230, 0.35);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(43, 54, 155, 0.08);
  --shadow-lg: 0 20px 48px rgba(43, 54, 155, 0.12);

  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --container-max: 1320px;
  --nav-height: 74px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   1. 頂部導覽列 & 全幅 Mega Menu (白底毛玻璃 + SunSum 立方體 Logo)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  color: var(--sunsum-deep-dark);
  font-weight: 900;
  letter-spacing: 0.3px;
  display: block;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--sunsum-sky);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--sunsum-deep);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link::after {
  transform: scaleX(1);
}

/* Mega Menu 下拉面板 */
.mega-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 2px solid var(--sunsum-sky);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  padding: 36px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 999;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.mega-col h4 {
  color: var(--sunsum-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(46, 156, 230, 0.25);
}

.mega-col ul li {
  margin-bottom: 8px;
}

.mega-col ul li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.mega-col ul li a:hover {
  background: var(--bg-secondary);
}

.mega-item-title {
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--text-primary);
  display: block;
}

.mega-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(43, 54, 155, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(46, 156, 230, 0.32);
}

.btn-outline {
  background: #ffffff;
  color: var(--sunsum-deep);
  border: 1.5px solid var(--sunsum-deep);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--sunsum-sky);
  color: var(--sunsum-sky);
}

.mobile-toggle {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--sunsum-deep);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. Hero 首屏焦點輪播區 (白底科技感 + SunSum 立方體三色光暈 + 實機展示)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 82% 22%, rgba(108, 235, 235, 0.26) 0%, transparent 42%),
    radial-gradient(circle at 18% 78%, rgba(46, 156, 230, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 64px 0 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  min-height: 470px;
  padding-bottom: 52px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 156, 230, 0.1);
  border: 1px solid rgba(46, 156, 230, 0.28);
  padding: 6px 14px;
  border-radius: 99px;
  color: var(--sunsum-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--sunsum-sky);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--sunsum-tiffany);
}

.hero-title {
  font-size: 2.95rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--sunsum-deep-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.hero-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 156, 230, 0.16);
  color: var(--sunsum-deep);
  font-size: 0.75rem;
  font-weight: 900;
}

/* 右側：EdgeVault 實體隔離拓撲 + 實機產品預覽卡 */
.hero-visual-card {
  background: #ffffff;
  border: 1px solid rgba(46, 156, 230, 0.35);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-gradient);
  border-radius: 12px 12px 0 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.status-pill {
  background: rgba(108, 235, 235, 0.32);
  color: var(--sunsum-deep-dark);
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 800;
}

.hero-product-showcase {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.hero-product-thumb {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border-subtle);
}

.arch-box {
  background: #f8fbff;
  border: 1px solid rgba(43, 54, 155, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.arch-box.nas-box {
  background: #f2fcfd;
  border-color: rgba(0, 159, 176, 0.3);
  margin-bottom: 0;
}

.arch-box-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.arch-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dmz-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--sunsum-deep);
  background: rgba(108, 235, 235, 0.25);
  border-radius: 4px;
  padding: 5px 8px;
  margin: 10px 0;
  letter-spacing: 0.5px;
}

/* Hero 底部 5 格焦點切換頁籤 */
.hero-tabs-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.hero-tabs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hero-tab {
  padding: 18px 16px;
  border-top: 3px solid transparent;
  border-right: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-tab:last-child {
  border-right: none;
}

.hero-tab:hover {
  background: var(--bg-secondary);
}

.hero-tab.active {
  border-top-color: var(--sunsum-deep);
  background: linear-gradient(180deg, rgba(46, 156, 230, 0.09) 0%, #ffffff 100%);
}

.hero-tab-cat {
  font-size: 0.75rem;
  color: var(--sunsum-sky);
  font-weight: 800;
  display: block;
  margin-bottom: 3px;
}

.hero-tab.active .hero-tab-cat {
  color: var(--sunsum-deep);
}

.hero-tab-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

/* --------------------------------------------------------------------------
   3. 通用區塊標題規範
   -------------------------------------------------------------------------- */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-tinted {
  background: var(--bg-secondary);
}

.section-header {
  margin-bottom: 48px;
  max-width: 820px;
}

.section-tag {
  color: var(--sunsum-sky);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--sunsum-deep-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.06rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   4. 五代實戰演進金字塔 (白底三藍漸層版 + 手機/電腦防呆觸控)
   -------------------------------------------------------------------------- */
.pyramid-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 40px;
  align-items: center;
}

.pyramid-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pyr-level {
  height: 70px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pyr-level strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--sunsum-deep-dark);
  letter-spacing: 1px;
}

.pyr-level span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

#pyr-eii  { width: 46%; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0% 100%); }
#pyr-aiot { width: 60%; clip-path: polygon(9% 0, 91% 0, 100% 100%, 0% 100%); }
#pyr-iiot { width: 74%; clip-path: polygon(7% 0, 93% 0, 100% 100%, 0% 100%); }
#pyr-iot  { width: 88%; clip-path: polygon(5% 0, 95% 0, 100% 100%, 0% 100%); }
#pyr-auto { width: 100%; clip-path: polygon(4% 0, 96% 0, 100% 100%, 0% 100%); }

.pyr-level.active, .pyr-level:hover {
  background: var(--brand-gradient);
  border-color: var(--sunsum-deep);
  box-shadow: 0 10px 24px rgba(43, 54, 155, 0.25);
}

.pyr-level.active strong,
.pyr-level:hover strong,
.pyr-level.active span,
.pyr-level:hover span {
  color: #ffffff;
}

.pyr-hud {
  background: #ffffff;
  border: 1.5px solid rgba(46, 156, 230, 0.4);
  border-radius: 12px;
  padding: 36px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.pyr-hud-step {
  font-family: var(--font-mono);
  color: var(--sunsum-sky);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pyr-hud-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--sunsum-deep-dark);
  margin-bottom: 14px;
}

.pyr-hud-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.cuda-compare-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--sunsum-deep);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

.cuda-compare-box h5 {
  color: var(--sunsum-deep);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cuda-compare-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   5. Prism Core™ 硬體矩陣 (直接整合 web_images 實機照片！)
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--sunsum-deep);
  color: #ffffff;
  border-color: var(--sunsum-deep);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.hw-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.hw-card:hover {
  transform: translateY(-5px);
  border-color: var(--sunsum-sky);
  box-shadow: var(--shadow-lg);
}

.hw-card.featured {
  border: 2px solid var(--sunsum-sky);
  box-shadow: 0 12px 32px rgba(46, 156, 230, 0.16);
}

/* 實機產品照片視窗 */
.hw-media {
  position: relative;
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #f0f6fc 0%, #e4f5f7 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

.hw-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.hw-card:hover .hw-media img {
  transform: scale(1.04);
}

.hw-media-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--sunsum-deep);
}

.hw-media-fallback .cube-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(43, 54, 155, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.hw-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.hw-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(46, 156, 230, 0.12);
  color: var(--sunsum-deep);
  margin-bottom: 10px;
}

.hw-card.featured .hw-badge {
  background: var(--brand-gradient);
  color: #ffffff;
}

.hw-name {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--sunsum-deep-dark);
  margin-bottom: 4px;
}

.hw-tops {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--sunsum-sky);
  margin-bottom: 14px;
}

.hw-specs {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hw-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.hw-specs li span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.hw-specs li strong {
  text-align: right;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   6. 降維打擊對比表 & 解決方案網格
   -------------------------------------------------------------------------- */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #ffffff;
}

.compare-table th, .compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.compare-table th {
  background: var(--bg-secondary);
  font-weight: 800;
  color: var(--sunsum-deep-dark);
}

.compare-table th.sunsum-col {
  background: var(--sunsum-deep);
  color: #ffffff;
  border-top: 4px solid var(--sunsum-tiffany);
}

.compare-table td.sunsum-col {
  background: rgba(46, 156, 230, 0.06);
  font-weight: 700;
  color: var(--sunsum-deep-dark);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sol-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--sunsum-sky);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.sol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sol-cat {
  color: var(--sunsum-tiffany-dark);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}

.sol-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sunsum-deep-dark);
  margin-bottom: 12px;
}

.sol-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   7. GEO 專屬高密度 FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sunsum-deep-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span {
  color: var(--sunsum-sky);
  font-size: 1.3rem;
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   8. 頁尾 Footer & 評估諮詢彈窗 Modal
   -------------------------------------------------------------------------- */
.footer {
  background: #0f172a;
  padding: 64px 0 32px 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a:hover {
  color: var(--sunsum-tiffany);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Modal 彈窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 2px solid var(--sunsum-sky);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--sunsum-deep-dark);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--sunsum-sky);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 156, 230, 0.15);
}

/* --------------------------------------------------------------------------
   9. RWD 手機與平板響應式設計
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid, .pyramid-layout {
    grid-template-columns: 1fr;
  }
  .hardware-grid, .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn-outline {
    display: none;
  }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: #ffffff;
    padding: 24px;
    overflow-y: auto;
    align-items: flex-start;
  }
  .nav-item {
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
  }
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 12px 0 0 12px;
    border: none;
  }
  .mega-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-tabs-grid {
    grid-template-columns: 1fr;
  }
  .hardware-grid, .solutions-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  #pyr-eii  { width: 56%; }
  #pyr-aiot { width: 68%; }
  #pyr-iiot { width: 80%; }
  #pyr-iot  { width: 92%; }
  #pyr-auto { width: 100%; }
}
