/* =========================================
   1. CSS 變數與基礎設定 (Root & Base)
   ========================================= */
:root {
  --ink: #0b1c30;
  --ink2: #233650;
  --soft: #66788c;
  --line: #dce5ed;
  --paper: #f6f9fc;
  --white: #fff;
  --navy: #071629;
  --blue: #147ad1;
  --teal: #13bcba;
  --mint: #61e5df;
  --gold: #f4ac63;
  --radius: 20px;
  --shadow: 0 18px 52px rgba(17,44,73,.08);
  --content: 1220px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family:"Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif !important;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button, 
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

svg {
  display: block;
}

a:focus-visible, 
button:focus-visible, 
summary:focus-visible {
  outline: 3px solid #70dcd7;
  outline-offset: 4px;
}

/* =========================================
   2. 通用排版與佈局 (Layout & Typography)
   ========================================= */
.wrap {
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2956A5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/*.eyebrow:before {
  content: "";
  height: 7px;
  width: 7px;
  background: #18bdb6;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(24,189,182,.12);
}*/

.sec-heading {
  margin: 13px 0 16px;
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1.3;
  letter-spacing: -.035em;
  font-weight: 850;
}

.sec-desc {
  max-width: 830px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #1e293b;
  margin: 0;
}

.section {
  padding: 105px 0;
}

.section-soft {
  background: var(--paper);
}

/* =========================================
   4. 主視覺區塊 (Hero Section)
   ========================================= */
.hero {
  min-height: 668px;
  /*background: radial-gradient(circle at 90% 5%, rgba(30, 191, 188, .18), transparent 36%), 
              radial-gradient(circle at 42% 100%, rgba(34, 108, 173, .2), transparent 39%), 
              linear-gradient(130deg, #08172b 15%, #0b243c 67%, #071c2a 100%);*/
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(130, 210, 230, .036) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(130, 210, 230, .036) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 100%);
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  right: -80px;
  top: 180px;
  width: 510px;
  height: 510px;
  border: 1px solid rgba(81, 207, 214, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(81, 207, 214, .025), 
              0 0 0 154px rgba(81, 207, 214, .018);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center;
  gap: 62px;
  min-height: 668px;
  padding: 68px 0 79px;
}

.hero-kicker {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 6px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.3);
  letter-spacing: 1px;
}

/*.hero-kicker:before {
  content: "";
  width: 25px;
  height: 2px;
  background: #6ee1dc;
}*/

.hero h1 {
  font-size: clamp(48px, 4.3vw, 66px);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.hero h1 span {
  display: block;
  color: #60a5fa;
}

.hero-lead {
  font-size: 24px;
  line-height: 1.55;
  font-weight: 750;
  margin: 0 0 19px;
  color: #edf8ff;
  letter-spacing: -.025em;
}

.hero-desc {
  color: #aec6d9;
  max-width: 590px;
  font-size: 18px;
  line-height: 1.95;
  margin: 0 0 33px;
}

.btn-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

y:hover {
    background: #5da6ff;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: unset;
}

.btn-outline {
  color: #d5e5f1;
  border-color: #45647d;
  background: rgba(255, 255, 255, .04);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
}

.btn svg {
  width: 17px;
  height: 17px;
}

/* =========================================
   5. 儀表板與流程圖 (Dashboard & Flow Diagrams)
   ========================================= */
.signal-board {
  background: #0f172a;
  border: 1px solid rgba(154, 209, 225, .22);
  border-radius: 23px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .08);
  padding: 23px;
  position: relative;
  transform: perspective(1300px) rotateY(-4deg);
  max-width: 610px;
  margin-left: auto;
}

.signal-board:after {
  content: "";
  position: absolute;
  inset: auto 25px -25px 25px;
  height: 38px;
  background: #12bdb8;
  filter: blur(65px);
  opacity: .3;
  z-index: -1;
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(179, 218, 239, .13);
  padding: 0 0 15px;
  margin-bottom: 20px;
}

.window-top span {
  font: 800 13px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .06em;
  color: #bbd9ea;
}

.win-dots {
  display: flex;
  gap: 6px;
}

.win-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #56718b;
}

.win-dots i:first-child {
  background: #eb906f;
}

.win-dots i:nth-child(2) {
  background: #f3c577;
}

.win-dots i:last-child {
  background: #6ee0c5;
}

.board-caption {
  font-size: 12px;
  color: #82a6bd;
}

/* Hero 專屬基礎按鈕 */
.hero-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.4;
  min-height: 53px;
  transition: background .2s, transform .2s, border-color .2s;
  white-space: nowrap;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn svg {
  width: 17px;
  height: 17px;
}

/* Hero 專屬 Primary 按鈕 */
.hero-btn-primary {
  background: #1b7cef;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 166, 182, 0.18);
}

.hero-btn-primary:hover {
  background: #5da6ff;
  transform: translateY(-1px);
  color: #fff;
  text-decoration: unset;
}

/* Hero 專屬 Outline 按鈕 */
.hero-btn-outline {
  color: #d5e5f1;
  border-color: #45647d;
  background: rgba(255, 255, 255, .04);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
}

.device-lane {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  gap: 9px;
  align-items: center;
}

.board-unit {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 13px;
  min-width: 0;
}

.board-unit strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.board-unit small {
  display: block;
  font-size: 11px;
  color: #83a8c3;
  font-weight: 650;
  letter-spacing: .06em;
  white-space: nowrap;
}

.board-unit .unit-mark {
  margin-right: 7px;
  color: #6ac6e5;
}

.board-unit.server {
  background: rgba(30, 41, 59, 0.85);
}

.lane-arrow {
  text-align: center;
  color: #44a7ff;
  font-weight: 400;
  font-size: 25px;
}

.merge-line {
  height: 27px;
  position: relative;
}

.merge-line:before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  height: 1px;
  top: 13px;
  background: #4a9da6;
}

.merge-line:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  height: 15px;
  border-left: 1px solid #4a9da6;
}

.board-core {
  margin-top: 7px;
  padding: 20px 18px;
  border: 1px solid #43bdc1;
  border-radius: 13px;
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(37, 99, 235, 0.25);
  border-color: #60a5fa;
}

.core-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: rgba(146, 255, 247, .13);
  color: #a0d2ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.core-icon svg {
  width: 29px;
  height: 29px;
}

.board-core strong {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
  display: block;
}

.board-core small {
  font-size: 12px;
  letter-spacing: .03em;
  color: #b1e6ed;
}

.live-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 750 11px/1.3 ui-monospace, monospace;
  color: #a0d2ff;
  background: rgba(3, 28, 36, .5);
  border: 1px solid rgba(151, 239, 223, .18);
  border-radius: 100px;
  padding: 7px 9px;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a0f5ff;
  box-shadow: 0 0 0 4px rgba(122, 230, 191, .12);
  animation: blink 1.8s ease-in-out infinite;
}

.board-flow {
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #44a7ff;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}

.board-storage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.db-box {
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(30, 41, 59, 0.85);
  border-radius: 12px;
  padding: 13px 10px;
  text-align: center;
}

.db-box svg {
  width: 27px;
  height: 27px;
  color: #6ac6e5;
  margin: 0 auto 8px;
}

.db-box strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.db-box span {
  font-size: 11px;
  color: #90acc2;
}

.board-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  margin-top: 17px;
  border-top: 1px solid rgba(173, 223, 232, .12);
  font: 650 12px/1.4 ui-monospace, Consolas, monospace;
  color: #7296ae;
}

.board-foot b {
  color: #73e8c2;
}

.board-foot .tick {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6be6d9;
  margin-right: 7px;
}

/* =========================================
   6. 統計數據列 (Metrics Bar)
   ========================================= */
.metrics-bar {
  position: relative;
  margin-top: -39px;
  z-index: 3;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 22px 65px rgba(11, 40, 69, .13);
  border: 1px solid #e7eef4;
  padding: 27px 12px;
}

.metric {
  padding: 6px 27px;
  border-right: 1px solid #e2e9f0;
}

.metric:last-child {
  border: 0;
}

.metric strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #122f49;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.metric strong span {
  font-size: 19px;
  letter-spacing: -.02em;
  color: #1b7cef;
  margin-left: 4px;
}

.metric p {
  font-size: 16px;
  color: #627589;
  margin: 8px 0 0;
  font-weight: 700;
}

.metric .metric-mini {
  font-size: 13px;
  color: #8495a7;
  margin-top: 3px;
}

/* =========================================
   7. 架構區塊 (Architecture Section)
   ========================================= */
.arch-head {
  text-align: center;
}

.arch-head .sec-desc {
  margin: auto;
}

.arch-shell {
  margin-top: 48px;
  background: #fff;
  border: 1px solid #e2ebf3;
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 36px 38px 30px;
  position: relative;
  overflow: hidden;
}

.arch-shell:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.arch-step-label {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #1e293b;
}

.arch-line {
  display: grid;
  grid-template-columns: 1.1fr 55px 1fr 55px 1.2fr;
  align-items: center;
  gap: 9px;
  margin: 18px 0 27px;
}

.arch-group {
  border: 1px solid #dce8f0;
  background: #f9fbfd;
  border-radius: 17px;
  padding: 21px 17px;
  min-height: 194px;
}

.arch-group.orange {
  background: #fffaf4;
  border-color: #f1e2d0;
}

.arch-group.blue {
  background: #f3f8fd;
  border-color: #d4e4f2;
}

.arch-group.green {
  background: #f0fbfa;
  border-color: #ccebe8;
}

.arch-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: #324b64;
  margin: 0 0 17px;
}

.arch-group-label svg {
  width: 20px;
  height: 20px;
  color: #159baf;
}

.arch-group.orange .arch-group-label svg {
  color: #df8c32;
}

.arch-group.green .arch-group-label svg {
  color: #0ea59d;
}

.chip-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.chip-stack.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arch-chip {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e4eaf0;
  padding: 12px 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
  min-width: 0;
}

.arch-chip small {
  font-size: 13px;
  color: #74879b;
  display: block;
  font-weight: 500;
  margin-top: 4px;
}

.arch-chip.dark {
  background: #1e3a8a;
  color: #fff;
  border-color: #133e59;
}

.arch-chip.dark small {
  color: #dbe9f1;
}

.arch-chip.centered {
  grid-column: 1/-1;
}

.arch-arrow {
  height: 2px;
  background: #6ca5b4;
  position: relative;
}

.arch-arrow:after {
  content: "";
  position: absolute;
  right: 0;
  top: -6px;
  border-left: 11px solid #6ca5b4;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.arch-explain {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px 25px;
  font-size: 16px;
  color: #1e293b;
  border-top: 1px solid #e3ebf2;
  padding-top: 23px;
}

.arch-explain span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.arch-explain svg {
  width: 16px;
  height: 16px;
  color: #10a49f;
}

/* 1. 捲動淡入動畫 (Scroll Reveal) 初始與完成狀態 */
.reveal-item {
    opacity: 0;
    transform: translateY(30px); /* 初始位置稍微往下 */
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0); /* 回到原本位置 */
}

/* 為了讓同區塊的元素有層次感，設定不同的延遲時間 (選項) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }


/* =========================================
   8. 功能特色卡片 (Feature Grid)
   ========================================= */
/* 2. 區塊卡片的 Hover 懸浮微互動 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* 若原本沒有圓角，微調增加柔和感 */
}

/* 游標移過時，卡片微微浮起並帶有淡淡的陰影 */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 40, 80, 0.08); /* 適合工業科技感偏冷色調的淡陰影 */
    border-color: #2563eb;
}


.feature-grid {
  margin-top: 43px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 19px;
  counter-increment: step;
  display: grid;
  gap: 10px;
}

/*.feature-card:hover {
  transition-delay: 200ms;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 40, 80, 0.08);
  border-color: #2563eb;
}*/

.feature-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #deefff;
  color: #06c;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 15px;
}

.feature-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: #102a43;
  margin: 0px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.feature-card p {
  font-size: 16px;
  color: #1e293b;
  line-height: 1.85;
  margin: 0;
}

.feature-meta {
  font-size: 14px;
  font-weight: 800;
  color: #2956A5;
  display: block;
  margin-top: 19px;
}

/* =========================================
   9. 工作流程列表 (Process List)
   ========================================= */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 45px 0 0;
  position: relative;
}

.process-list:before {
  content: "";
  position: absolute;
  height: 2px;
  top: 30px;
  left: 7%;
  right: 7%;
  background: linear-gradient(90deg, #3054b7, #4d9fe3);
  z-index: 0;
}

.process-item {
  padding: 0 18px;
  position: relative;
}

.step-disc {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1e3a8a;
  color: #e9ffff;
  border: 5px solid #e9f2f7;
  font-size: 20px;
  font-weight: 900;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px rgba(15, 66, 97, .13);
}

.process-item:nth-child(2) .step-disc {
  background: #3054b7;
}

.process-item:nth-child(3) .step-disc {
  background: #3379d5;
}

.process-item:nth-child(4) .step-disc {
  background: #4d9fe3;
}

.process-item h3 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
    font-weight: 600;
}

.process-item p {
  font-size: 16px;
  line-height: 1.83;
  color: #1e293b;
  margin: 0;
}

.process-tag {
  color: #2956A5;
  margin: 11px 0;
  font-weight: 600;
}

/* =========================================
   10. 設定與程式碼面板 (Config & Code Panels)
   ========================================= */
.config {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.config:before {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 185, 176, .12), transparent 60%);
  pointer-events: none;
}

.config .eyebrow {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 6px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.3);
  letter-spacing: 1px;
}

.config .sec-desc {
  color: #c9d7ed;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.config-list {
  margin-top: 36px;
  display: grid;
  gap: 21px;
}

.config-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.config-bullet {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  flex-shrink: 0;
  font-weight: 850;
  font-size: 16px;
}

.config-item h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 1px 0 5px;
}

.config-item p {
  font-size: 16px;
  line-height: 1.75;
  color: #a0b9c8;
  margin: 0;
}

.codepanel {
  border: 1px solid rgba(154, 209, 225, .22);
  background: #0f172a;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .08);
}

.code-tabs {
  display: flex;
  gap: 0;
  overflow: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid #31475c;
  background: #0c2f51;
}

.code-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #b6cadb;
  font-weight: 760;
  font-size: 15px;
  white-space: nowrap;
  padding: 17px 19px;
  transition: .2s;
}

.code-tabs button.active {
  color: #f8f9fa;
  border-bottom-color: #60a5fa;
  background: rgba(37, 99, 235, 0.25);
}

.tab-body {
  padding: 24px 25px 25px;
  min-height: 265px;
}

.tab-pane[hidden] {
  display: none;
}

.tab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.file-label {
  font: 800 14px/1.4 ui-monospace, Consolas, monospace;
  color: #e6f2fb;
}

.file-type {
  color: #81a7bf;
  font-size: 13px;
}

.code-lines {
  font: 500 14px/1.95 ui-monospace, Consolas, monospace;
  color: #b1cce0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}

.code-lines .m {
  color: #86e4db;
}

.code-lines .k {
  color: #ffc68f;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.data-table th {
  font-weight: 800;
  color: #fff;
  background: #1b3d88;
}

.data-table td {
  color: #d8e8f0;
}

.data-table th, 
.data-table td {
  padding: 12px 9px;
  border-bottom: 1px solid #30485e;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.tab-bottom {
  background: #1e3a8a;
  padding: 14px 25px;
  color: #a4bdcc;
  font-size: 13.5px;
  line-height: 1.75;
  display: flex;
  align-items: center;
  gap: 9px;
}

.tab-bottom svg {
  color: #65ded3;
  flex: 0 0 17px;
}

.code-fail {
  color: #fbc487;
}

.formula {
  padding: 19px;
  margin: 14px 0;
  color: #8bece2;
  border: 1px solid #43bdc1;
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.25);
  border-color: #60a5fa;
}

.formula strong {
  color: #ffc98c;
}

.config-small {
  font-size: 14px;
  color: #86a5b9;
  line-height: 1.8;
  margin: 15px 0 0;
}

/* =========================================
   11. 應用情境與規格 (Scenarios & Specs)
   ========================================= */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
  margin-top: 43px;
}

.scenario-card {
  padding: 31px;
  min-height: 220px;
  border: 1px solid #dde7f0;
  background: linear-gradient(145deg, #fff, #f8fbfe);
  border-radius: 18px;
}

.scenario-index {
    display: block;
    color: #1b7cef;
    font-weight: 900;
}

.scenario-card h3 {
  font-size: 22px;
  margin: 14px 0 12px;
}

.scenario-card p {
  color: #687b8e;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.spec-wrap {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 52px;
  align-items: start;
}

.spec-aside .sec-desc {
  font-size: 17px;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 50, 75, .045);
}

.spec-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e9eef3;
  font-size: 16px;
  line-height: 1.75;
  vertical-align: top;
}

.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table td:first-child {
  width: 31%;
  font-weight: 830;
  color: #102a43;
  background: #f8fafc;
}

.spec-table td:last-child {
  color: #1e293b;
}

.spec-table strong {
  color: #1b7cef;
}

/* =========================================
   12. 常見問題 (FAQ)
   ========================================= */
.faq-list {
  margin: 42px auto 0;
  max-width: 980px;
  border-top: 1px solid #dce6ec;
}

.faq-list details {
  border-bottom: 1px solid #dce6ec;
  padding: 2px 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 23px 40px 23px 3px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:after {
  content: "+";
  font-size: 29px;
  font-weight: 400;
  color: #1b7cef;
  position: absolute;
  right: 5px;
  top: 20px;
  line-height: 1.2;
}

.faq-list details[open] summary:after {
  content: "−";
}

.faq-list details p {
  color: #1e293b;
  font-size: 1.15rem;
  line-height: 1.85;
  margin: -5px 45px 23px 3px;
}

.foot-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
}

.foot-brand {
  font-size: 19px;
  color: #e4f5f8;
  font-weight: 900;
}

.foot-brand small {
  display: block;
  color: #849fb1;
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
}

.foot-right {
  text-align: right;
  font-size: 14px;
  line-height: 1.85;
}

.foot-right a:hover {
  color: #78e7dc;
}

.foot-bottom {
  margin-top: 27px;
  border-top: 1px solid #264056;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8294a5;
}

@keyframes blink {
  50% {
    opacity: .45;
  }
}

/* =========================================
   15. 媒體查詢 (Media Queries)
   ========================================= */
@media(max-width: 1100px) {
  .nav-menu {
    gap: 17px;
  }
  .nav-menu a {
    font-size: 14.5px;
  }
  .hero-inner {
    gap: 29px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .metric {
    padding: 6px 19px;
  }
  .metric strong {
    font-size: 30px;
  }
  .arch-line {
    grid-template-columns: 1.1fr 32px 1fr 32px 1.2fr;
    gap: 6px;
  }
  .arch-shell {
    padding: 31px 22px;
  }
  .arch-group {
    padding: 15px 10px;
  }
  .arch-chip {
    font-size: 12px;
  }
  .feature-card {
    padding: 25px 22px;
  }
  .config-grid {
    gap: 30px;
  }
  .spec-wrap {
    gap: 28px;
  }
}

@media(max-width: 860px) {
  .wrap {
    width: min(var(--content), calc(100% - 40px));
  }
  
  .mobile-trigger {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 73px;
    background: #0a2037;
    box-shadow: 0 22px 45px rgba(0, 0, 0, .28);
    padding: 18px 24px 25px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    font-size: 17px;
    padding: 12px 3px;
  }
  .nav-menu .nav-action {
    text-align: center;
    margin-top: 12px;
    padding: 13px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 75px 0 115px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero h1 {
    font-size: clamp(43px, 7vw, 59px);
  }
  .signal-board {
    width: 100%;
    max-width: 670px;
    margin: 0;
    transform: none;
  }
  .metrics-bar {
    margin-top: -42px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 0;
  }
  .metric {
    border-right: 0;
    padding: 12px 25px;
  }
  .metric:nth-child(odd) {
    border-right: 1px solid #e2e9f0;
  }
  .metric strong {
    font-size: 32px;
  }
  .section {
    padding: 79px 0;
  }
  .arch-line {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 25px auto;
  }
  .arch-group {
    min-height: 0;
    padding: 20px;
  }
  .arch-arrow {
    height: 29px;
    width: 2px;
    margin: auto;
    background: #6ca5b4;
  }
  .arch-arrow:after {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 11px solid #6ca5b4;
    border-bottom: 0;
    top: auto;
    right: -6px;
    bottom: 0;
  }
  .feature-grid, 
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 10px;
  }
  .process-list:before {
    display: none;
  }
  .config-grid, 
  .spec-wrap {
    grid-template-columns: 1fr;
  }
  .config-grid {
    gap: 42px;
  }
}

@media(max-width: 560px) {
  body {
    font-size: 17px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .logo-type {
    font-size: 20px;
  }
  .logo-symbol {
    width: 35px;
    height: 35px;
  }
  .logo-symbol:before {
    left: 9px;
    top: 9px;
  }
  .hero-inner {
    padding: 64px 0 88px;
    gap: 40px;
  }
  .hero h1 {
    font-size: clamp(39px, 11vw, 54px);
  }
  .hero-lead {
    font-size: 21px;
  }
  .hero-desc {
    font-size: 17px;
  }
  .btn-row {
    gap: 11px;
  }
  .btn {
    font-size: 16px;
    padding: 12px 19px;
  }
  .signal-board {
    padding: 14px;
    border-radius: 17px;
  }
  .window-top {
    margin-bottom: 13px;
  }
  .board-caption {
    font-size: 10px;
  }
  .device-lane {
    grid-template-columns: 1fr 17px 1fr;
    gap: 5px;
  }
  .board-unit {
    padding: 9px 6px;
  }
  .board-unit strong {
    font-size: 11px;
  }
  .board-unit small {
    font-size: 9px;
  }
  .board-core {
    padding: 14px 10px;
    gap: 9px;
  }
  .board-core strong {
    font-size: 15px;
  }
  .board-core small {
    font-size: 10px;
  }
  .core-icon {
    width: 37px;
    height: 37px;
  }
  .core-icon svg {
    width: 22px;
  }
  .live-pill {
    font-size: 9px;
    padding: 5px;
  }
  .db-box {
    padding: 10px 3px;
  }
  .db-box strong {
    font-size: 10px;
  }
  .db-box span {
    font-size: 9px;
  }
  .board-foot {
    font-size: 10px;
  }
  .metrics-bar {
    margin-top: -33px;
  }
  .metric-grid {
    gap: 4px;
    border-radius: 15px;
  }
  .metric {
    padding: 12px 16px;
  }
  .metric strong {
    font-size: 29px;
  }
  .metric strong span {
    font-size: 17px;
  }
  .metric p {
    font-size: 14px;
    line-height: 1.55;
  }
  .metric .metric-mini {
    font-size: 11px;
  }
  .section {
    padding: 67px 0;
  }
  .sec-heading {
    font-size: clamp(26px, 3vw, 33px);
  }
  .sec-desc {
    font-size: 17px;
  }
  .arch-shell {
    padding: 28px 18px 23px;
  }
  .arch-step-label {
    font-size: 12px;
  }
  .chip-stack {
    gap: 6px;
  }
  .arch-chip {
    font-size: 12px;
    padding: 9px 5px;
  }
  .arch-explain {
    justify-content: flex-start;
    gap: 8px;
  }
  .feature-grid, 
  .scenario-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .feature-card {
    min-height: 0;
    padding: 25px;
  }
  .feature-card h3 {
    font-size: 21px;
  }
  .feature-card p {
    font-size: 16.5px;
  }
  .process-list {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 33px;
  }
  .process-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0 15px;
    padding: 0;
  }
  .step-disc {
    grid-row: span 3;
    margin: 0;
    width: 54px;
    height: 54px;
    font-size: 18px;
  }
  .process-item h3 {
    margin: 0 0 4px;
  }
  .process-item p {
    grid-column: 2;
  }
  .process-tag {
    grid-column: 2;
    margin: 4px 0 3px;
  }
  .code-tabs button {
    font-size: 13px;
    padding: 13px 14px;
  }
  .tab-body {
    padding: 18px 13px;
    min-height: 247px;
  }
  .data-table {
    font-size: 12px;
  }
  .data-table th, 
  .data-table td {
    padding: 10px 8px;
  }
  .code-lines {
    font-size: 12.3px;
  }
  .tab-bottom {
    padding: 13px;
    font-size: 13px;
  }
  .spec-table td {
    padding: 13px 14px;
    font-size: 14.5px;
  }
  .spec-table td:first-child {
    width: 34%;
  }
  .faq-list summary {
    font-size: 17px;
    padding-right: 31px;
  }
  .faq-list details p {
    margin-right: 18px;
    font-size: 15.5px;
  }
  .foot-inner {
    flex-direction: column;
  }
  .foot-right {
    text-align: left;
  }
  .foot-bottom {
    flex-direction: column;
  }
}

@media(max-width: 400px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    min-width: 0;
    padding: 12px 10px;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric .metric-mini {
    overflow-wrap: anywhere;
  }
  .spec-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .spec-wrap > * {
    min-width: 0;
  }
  .spec-table {
    table-layout: fixed;
    width: 100%;
  }
  .spec-table td {
    overflow-wrap: anywhere;
    padding: 12px 9px;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, 
  *:before, 
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================
   16. 從 HTML 獨立取出的 Inline Styles
   ========================================= */

/* 取代 <svg style="position:absolute;overflow:hidden"> */
.svg-hidden-defs {
  position: absolute;
  overflow: hidden;
}

/* 取代 <p style="margin:0;color:#b7d0df;font-size:15px"> */
.scaling-desc-primary {
  margin: 0;
  color: #b7d0df;
  font-size: 15px;
}

/* 取代 <p style="color:#b7d0df;font-size:15px;line-height:1.9;margin:0"> */
.scaling-desc-secondary {
  color: #b7d0df;
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

/* 取代 <b style="color:#8cf1e3"> */
.highlight-cyan {
  color: #8cf1e3;
}

/* 取代 <span style="color:#63ded4"> */
.brand-dot {
  color: #63ded4;
}