:root {
  --navy: #102a43;
  --navy2: #173f5f;
  --blue: #146c94;
  --cyan: #16a6b6;
  --pale: #eaf7fa;
  --ink: #172b3a;
  --muted: #5c6d7a;
  --line: #d9e4eb;
  --bg: #f6f9fb;
  --white: #fff;
  --green: #16806a;
  --shadow: 0 12px 34px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
  background: #fff;
}

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

.banner{
    /*background-image: url(../image/banner-30.jpg);
    background-color: rgb(0 0 0 / 37%);*/
    background: linear-gradient(115deg, #102a43, #164d69);
    background-blend-mode: multiply;
    background-repeat: no-repeat;
    background-position: 50% 50% !important;
    background-size: cover;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.banner h1{
    color: #fff;
    font-weight: 600;
    font-size: 36px;
}

.banner-content {
    position: absolute;
}

/* =========================================
   MES 智慧製造系統專屬擴充樣式
========================================= */

/* 主視覺背景與遮罩 */
.hero-mes {
    background: url('../image/banner_02.jpg') center/cover no-repeat;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}
.hero-mes::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4); /* 半透明遮罩讓文字清晰 */
    z-index: 0;
}
.hero-mes .hero-grid {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}
.hero-mes h1 {
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}
.hero-mes .lead {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin: 0 auto;
}

/* 文字顏色 */
.text-orange { color: #f0874b; }
.text-red { color: #be2a20; }

/* 圖片通用類 */
.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}
.text-center { text-align: center; }

/* 架構圖與列表排版輔助 (無邊框透明背景) */
.arch-diagram-clear {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.arch-diagram-clear img {
    max-width: 500px;
    margin: 0 auto;
}

/* 條列式圖文項目 */
.list-icon-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.list-icon-item img {
    width: 55px;
    flex-shrink: 0;
}
.list-icon-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #102a43;
}
.list-icon-item p {
    margin: 0;
    color: #1e293b;
}

/* 智能系統無邊框卡片 */
.client-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}
.client-card-img {
    width: 100%;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}
.client-card-img:hover {
    opacity: 0.8;
}
.client-body {
    padding: 20px;
}
.client-body h3 {
    margin-top: 0;
}
.client-empty {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
}

/* 品牌 Logo 網格 */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
    margin-bottom: 64px;
}
.logo-item {
    padding: 20px 10px;
}
.logo-item img {
    height: 50px;
    object-fit: contain;
}
.logo-item p {
    font-size: 14px;
    font-weight: 700;
    margin-top: 15px;
}

/* 特色條列排版 (大圖標版本) */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.feature-list-item {
    display: flex;
    gap: 16px;
}
.feature-list-item img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.feature-list-item h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: #102a43;
    font-weight: bold;
}
.feature-list-item p {
    margin: 0;
    color: #1e293b;
}

/* Modal 圖片預覽燈箱 */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}
.modal-close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.modal-content-wrap {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 80%;
    max-width: 1000px;
}
.modal-content-wrap img {
    width: 100%;
    border-radius: 8px;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

.topbar {
  background: var(--navy);
  color: #dce9f1;
  font-size: 13px;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.navbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.navinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #102a43;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.brandmark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #405768;
}

.navlinks a:hover {
  color: var(--blue);
}

.navbtn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.navbtn,
.btn-primary {
  background: #1b7cef;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 166, 182, 0.18);
}

.navbtn:hover,
.btn-primary:hover {
  background: #5da6ff;
  transform: translateY(-1px);
}

.btn-primary span {
    color: #fff;
}

.btn-secondary {
  border-color: #b9d3df;
  color: #102a43;
  background: #fff;
}

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

.hero {
  /*background: linear-gradient(115deg, #f3fafc 0%, #fff 60%, #e7f5f8 100%);*/
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  overflow: hidden;
  position: relative;
}

.hero:after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(20, 108, 148, 0.12);
  right: -145px;
  top: -180px;
  box-shadow: 0 0 0 45px rgba(20, 108, 148, 0.035), 0 0 0 95px rgba(20, 108, 148, 0.025);
}

.hero-grid {
 /* display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;*/
  align-items: center;
  padding: 78px 0 74px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  /*display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;*/
  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;
}

.eyedot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(22, 166, 182, 0.12);
}

h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.28;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin: 18px 0 20px;
  font-weight: bold;
}

h1 em {
  font-style: normal;
  color: #60a5fa;
}

.lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 0 26px;
}

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

.hero-note {
  font-size: 12px;
  color: #748390;
  margin-top: 17px;
}

.hero-visual {
  background: #fff;
  border: 1px solid #d6e7ed;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid #e5edf1;
  margin-bottom: 19px;
}

.visual-head strong {
  color: #102a43;
  font-size: 15px;
}

.status {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  background: #e7f7f0;
  border-radius: 99px;
  padding: 4px 9px;
}

.flowbox {
  border: 1px solid #cfe2e9;
  background: #f8fbfc;
  border-radius: 11px;
  text-align: center;
  padding: 12px 14px;
  margin: 0 auto;
  width: 78%;
}

.flowbox b {
  display: block;
  font-size: 14px;
  color: #102a43;
}

.flowbox span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.flowarrow {
  text-align: center;
  color: #3e9caf;
  font-size: 22px;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-flow {
  border-radius: 10px;
  padding: 13px 10px;
  text-align: center;
  font-size: 12px;
}

.mini-flow b {
  display: block;
  font-size: 14px;
}

.da {
  background: #eef3f7;
  border: 1px solid #d8e2e9;
}

.ua {
  background: #e7f8fa;
  border: 1px solid #a9dfe5;
}

/* 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; }

.visual-foot {
  font-size: 11px;
  color: #7c8b96;
  text-align: center;
  margin-top: 15px;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: #f8fafc;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.kicker {
  color: #2956A5;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 800;
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.35;
  margin: 9px 0 12px;
  color: #000000;
  letter-spacing: -0.5px;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: #1e293b;
  font-size: 1.15rem;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 23px 21px;
  min-height: 210px;
}

/* 2. 區塊卡片的 Hover 懸浮微互動 */
.feature, .step, .client, .faqitem, .trustitem {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* 若原本沒有圓角，微調增加柔和感 */
}

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

.ficon {
    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 h3 {
  font-size: 1.25rem;
  color: #102a43;
  margin: 0 0 8px;
  font-weight: 600;
  text-align: left;
}

.feature p {
  font-size: 16px;
  color: #1e293b;
  margin: 0;
  text-align: left;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.arch-copy h2 {
  margin-top: 8px;
}

.arch-copy p {
  color: #1e293b;
  font-size: 1.15rem;
}

.arch-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.arch-list li {
  display: flex;
  gap: 10px;
  margin: 11px 0;
  color: #1e293b;
  font-size: 16px;
}

.arch-list li:before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.arch-list span {
  color: #1e293b;
}

.arch-diagram {
  padding: 23px;
}

.arch-diagram img {
    max-width: 100%;
    height: auto;
}

.arch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* 修改頂部 Row，容納中間的向右箭頭 */
.arch-row.arch-row-top {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* 水平向右箭頭的樣式 */
.arch-arrow-hz {
    color: #44a7ff;
    font-size: 24px;
    text-align: center;
}

/* 靠右的向下箭頭容器，利用與 arch-row 相同的雙欄網格對齊上方方塊 */
.arch-line-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.arch-node {
  padding: 16px;
  /*border: 1px solid #d6e3e9;
  background: #f8fbfc;*/
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.arch-node:hover, 
.arch-bridge:hover, 
.ua-branch:hover {
    transform: translateY(-5px);
    background: rgba(37, 99, 235, 0.25);
    border-color: #60a5fa;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    cursor: pointer; /* 建議加上這個，讓滑鼠移過去時會變成手指圖示，增加互動提示 */
}

.arch-node .symbol {
  font-size: 23px;
  color: var(--blue);
  color: #1b7cef;
}

.arch-node strong {
  display: block;
  color: #102a43;
  color: #fff;
  font-size: 18px;
}

.arch-node small {
  display: block;
  font-size: 16px;
  /*color: #5c6d7a;*/
  color: #94a3b8;
  margin-top: 2px;
}

.arch-line {
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #44a7ff;
  font-size: 22px;
}

.arch-bridge {
  /*background: #eef8fa;
  border: 1px solid #bde3e8;*/
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #fff;
  transition: all 0.3s ease;
}

.arch-bridge strong {
 /* color: #11677e;*/
 color: #fff;
  font-size: 18px;
}

.arch-bridge small {
  display: block;
  /*color: #526e7c;*/
  color: #94a3b8;
  font-size: 16px;
}

/* --- 智能管理系統：左右聯動展示區塊 --- */
.smart-showcase {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

/* 左側：說明清單 */
.showcase-list {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.showcase-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px; /* 稍微縮小內距，因為沒有外框了 */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1; /* 確保字體不是半透明 */
}

.showcase-item:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.8;
}

/* 啟動狀態(對應當前圖片)：無背景框 */
.showcase-item.active {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* 圖示設計：預設淺藍，選中時變亮藍色且稍微放大 */
.showcase-item .symbol {
    font-size: 24px;
    color: #A0C4FF; /* 預設未選中圖示顏色 */
    margin-right: 15px;
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item.active .symbol {
    color: #4A90E2; /* 選中時的品牌藍色 */
    transform: scale(1.2); /* 選中時圖示放大 20% */
}

/* 標題設計：預設灰字體，選中時變深色、加粗且放大 */
.showcase-item .info h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #888888; /* 預設未選中標題顏色(淺灰) */
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center; /* 讓字體從左側開始放大 */
}

.showcase-item.active .info h3 {
    color: #102a43; /* 選中時的深藍/深灰色 */
    font-weight: 700; /* 選中時加粗 */
    transform: scale(1.08); /* 選中時字體放大 8% */
}

/* 內文敘述設計：預設極淡，選中時顏色加深變清晰 */
.showcase-item .info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #B0B0B0; /* 預設未選中內文顏色(淡灰) */
    transition: color 0.3s ease;
}

.showcase-item.active .info p {
    color: #555555; /* 選中時顏色加深，提高閱讀對比度 */
}

/* 右側：圖片輪播 */
.showcase-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* 防止 Flex 子元素溢出 */
}

.slider-viewport {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    flex: 0 0 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* 保持一致的軟體畫面比例 */
    object-fit: contain;
}

/* 輪播控制面板 */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.slider-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #4A90E2;
    border-color: #4A90E2;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f172a;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #4A90E2;
}

.ua-branch {
  /*border: 1px solid #9fdce3;
  background: #eafbfc;*/
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #fff;
  transition: all 0.3s ease;
}


.ua-branch strong {
  /*color: #075d73;*/
  color: #1b7cef;
  font-size: 18px;
}

.arch-bridge small {
  display: block;
  color: #526e7c;
  font-size: 18px;
}

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

.client {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.client .symbol {
  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;
}

.client h3 {
  font-size: 18px;
  margin: 8px 0 6px;
  color: #102a43;
  font-weight: 700;
}

.client p {
  font-size: 16px;
  color: #1e293b;
  margin: 0;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* 1. 左側標題 (第一個 td)：固定底色，不受滑鼠懸浮影響 */
.compare-wrap tbody td:first-child {
    background-color: #f4f7fa; /* 固定的淺灰藍色 */
    color: #4a5568; /* 字體微深，增加辨識度 */
    font-weight: 500;
    border-right: 1px solid #e2e8f0; /* 加上右側框線，讓左右區塊更分明 */
}

/* 2. 右側內容 (非第一個 td)：預設為白色底 */
.compare-wrap tbody td:not(:first-child) {
    background-color: #ffffff;
    transition: background-color 0.2s ease-in-out;
}

/* 3. 滑鼠懸浮互動：當游標移過整行時，只有「右側內容」會變色 */
.compare-wrap tbody tr:hover td:not(:first-child) {
    background-color: #f1f5f9; /* 懸浮時的科技藍底色 */
    cursor: pointer;
}

/* (可選) 4. 單獨格子聚焦：游標具體停在哪個內容格，該格顏色再稍微加深 */
.compare-wrap tbody td:not(:first-child):hover {
    background-color: #f1f5f9; 
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 700px;
  font-size: 16px;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #e4ebef;
  vertical-align: top;
}

th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
}

th:first-child {
  width: 22%;
}

td:first-child {
  font-weight: 700;
  color: #1e3a8a;
  background: #f8fafc;
}

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

.pill {
  display: inline-block;
  font-size: 11px;
  border-radius: 5px;
  padding: 2px 7px;
  background: #e7f7f8;
  color: #126b7c;
  font-weight: 800;
  margin-left: 5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

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

.step:before {
  content: "0" counter(step);
  display: block;
  color:#1b7cef;
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 7px;
  color: #102a43;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: #1e293b;
  font-size: 16px;
}

.faq {
    /*max-width: 900px;*/
    margin: 0 auto;
    gap: 14px;
    display: flex;
    flex-direction: column;
    /* display: grid;
    grid-template-columns: 1fr 1fr;*/
}

.faqitem {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.faqitem h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #102a43;
  font-weight: 700;
}

.faqitem p {
  font-size: 16px;
  color: #102a43;
  margin: 0;
}

.publish-note {
  font-size: 12px;
  color: #c2d7e1;
  margin-top: 13px;
}

.backtop {
  color: #d7e7ef;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .navlinks {
    gap: 12px;
  }

  .navlinks a:not(.navbtn) {
    display: none;
  }

  .hero-grid {
   /* grid-template-columns: 1fr;
    gap: 32px;*/
    padding: 56px 0;
  }

  .hero-visual {
    max-width: 620px;
  }

  .grid4,
  .clientgrid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .smart-showcase {
      flex-direction: column;
  }
  .showcase-list {
      order: 2; /* 手機版將說明文字放到圖片下方 */
  }
  .showcase-visual {
      order: 1;
  }
}


@media (max-width: 560px) {
  h1 {
    font-size: 27px;
  }

  .wrap {
    width: min(100% - 28px, 1160px);
  }

  .topbar .wrap {
    font-size: 11px;
  }

  .section h2 {
    font-size: 20px;
  }

  .section-head p {
    font-size: 16px;
  }

  .navinner {
    min-height: 65px;
  }

  .brand {
    font-size: 16px;
  }

  .brandmark {
    width: 34px;
    height: 34px;
  }

  .navbtn {
    font-size: 12px;
    padding: 10px 12px;
  }

  .hero-grid {
    padding: 42px 0;
  }

  .lead {
    font-size: 16px;
  }

  .hero-visual {
    padding: 16px;
  }

  .trustgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section {
    padding: 54px 0;
  }

  .clientgrid,
  .steps,
  .faq {
    grid-template-columns: 1fr;
  }

  .grid4 {
    gap:4px;
  }


  .feature {
    min-height: auto;
  }

  /* 針對含有 arch-diagram 的大區塊 */
  .architecture {
      display: flex;
      flex-direction: column; /* 強制改為上下堆疊 */
  }
  
  /* 讓圖片區塊強制排到最上方 */
  .architecture .arch-diagram {
      order: 1; 
      margin-bottom: 30px; /* 圖片下方留白，避免跟文字太黏 */
  }

  /* 讓文字說明區塊強制排到下方 */
  .architecture .arch-copy {
      order: 2; 
  }

  .arch-diagram {
    padding: 14px;
    display: flex;
    justify-content: center;
  }

  .arch-diagram img {
    max-width: 9rem;
  }

  .arch-row {
    gap: 8px;
  }
  .arch-copy p {
    font-size: 16px;
  }

  .arch-node {
    padding: 12px 7px;
  }

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