﻿/* 華崗資訊科技 — 共用樣式 */
:root {
  --navy: #0f2a4a;
  --navy-2: #173b66;
  --teal: #0e8f8a;
  --teal-2: #12b3ad;
  --orange: #f08a24;
  --ink: #1f2933;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 42, 74, .08);
  --font: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Heiti TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.section-head p.lead { font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); margin-bottom: .4em; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; line-height: 1.2; }
/* Logo 以垂直軸左右旋轉（像地球儀轉動，6 秒一圈）；系統設定「減少動態效果」的使用者則不旋轉 */
.brand { perspective: 400px; }
.logo { display: block; width: 48px; height: 48px; flex-shrink: 0; animation: logo-spin 6s linear infinite; }
@keyframes logo-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .logo { animation: none; } }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 1340px) and (min-width: 1101px) { .menu { gap: 0; } .menu a { padding: 8px 6px; font-size: .9rem; } }
.menu a:hover, .menu a[aria-current="page"] { background: var(--bg-soft); color: var(--teal); text-decoration: none; }
.menu a.btn-sm { background: var(--orange); color: #fff; margin-left: 6px; }
.menu a.btn-sm:hover { background: #d97614; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.4rem; padding: 4px 12px; cursor: pointer; color: var(--navy); }

@media (max-width: 1100px) {   /* 選單項目多，較窄的螢幕改用☰選單 */
  .nav-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px; }
  .menu a.btn-sm { margin: 8px 0 0; text-align: center; }
}

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; transition: .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #d97614; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 主視覺 ---------- */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal) 100%); color: #fff; padding: 88px 0 80px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 680px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; padding: 0; list-style: none; }
.hero-tags li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 4px 14px; border-radius: 999px; font-size: .9rem; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 28px; }
.hero-card h2 { color: #fff; font-size: 1.2rem; }
.hero-card ul { margin: 0; padding-left: 1.2em; }
.hero-card li { margin-bottom: .4em; color: rgba(255,255,255,.9); }
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 760px; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
}

/* ---------- 卡片 / 格線 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #e6f6f5; color: var(--teal); font-size: 1.5rem; margin-bottom: 14px; }
.card.featured { border: 2px solid var(--teal); }
.grid-3 > .card.featured { grid-column: 1 / -1; }   /* 主力產品獨佔一整列，其餘卡片排滿 */
.custom-banner { margin-top: 24px; flex-direction: row; align-items: center; gap: 20px; }
.custom-banner .card-icon { margin: 0; flex-shrink: 0; }
.custom-banner h3 { margin-bottom: .2em; }
.custom-banner p { margin: 0; }
.custom-banner .btn { margin-left: auto; white-space: nowrap; }
@media (max-width: 640px) { .custom-banner { flex-direction: column; align-items: flex-start; } .custom-banner .btn { margin-left: 0; } }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

.feature-block { margin-bottom: 40px; }
.feature-block h3 { border-left: 4px solid var(--teal); padding-left: 12px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .9rem; color: var(--navy); }

/* ---------- 數字 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-size: 2.2rem; color: var(--teal); line-height: 1.2; }
.stats span { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 流程 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.steps strong { display: block; color: var(--navy); }
.steps span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
/* 6 步驟版本：寬螢幕一排 6 格，中等寬度 3 格，手機 2 格 */
.steps-6 { grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .steps-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps-6 { grid-template-columns: repeat(2, 1fr); } }
/* 可點擊的流程卡片：整張卡都是連結 */
.steps-link li { position: relative; padding: 0; transition: border-color .2s, box-shadow .2s, transform .2s; }
.steps-link li:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.steps-link a { display: block; height: 100%; padding: 0 16px 16px; color: inherit; }
.steps-link a:hover { text-decoration: none; }
.steps-link a::after { content: ""; position: absolute; inset: 0; }   /* 連上方的數字圓圈也能點 */
.steps-link li::before { margin-top: 20px; }
.steps-link em { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; font-weight: 700; color: var(--teal); }

/* ---------- 比較表 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 16px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--teal), var(--navy-2)); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); }
.cta .btn-row { justify-content: center; }

/* ---------- 聯絡 ---------- */
.contact-card dl { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; }
.contact-card dt { font-weight: 700; color: var(--navy); }
.contact-card dd { margin: 0; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-top: 16px; }

/* ---------- 頁尾 ---------- */
.site-footer { background: #0b1f37; color: rgba(255,255,255,.75); padding: 56px 0 24px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4em; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; text-align: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 浮動聯絡鈕 ---------- */
.float-contact { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; box-shadow: var(--shadow); }
.float-contact a:hover { text-decoration: none; transform: scale(1.05); }
.float-contact .line { background: #06c755; }
.float-contact .tel { background: var(--orange); }

/* ---------- 系統畫面 ---------- */
.feature-shots { margin-top: 40px; }
.shot-group { margin: 40px 0 16px; border-left: 4px solid var(--teal); padding-left: 12px; }
.shot-group:first-of-type { margin-top: 0; }
.shot-group, #workflow, #features { scroll-margin-top: 90px; }
/* 可點擊的功能卡片：標題是連結，用 ::after 讓整張卡都能點 */
.card-link { position: relative; transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: var(--teal); transform: translateY(-3px); }
.card-link h3 a { color: inherit; }
.card-link h3 a:hover { text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; }
.card-link .more { color: var(--teal); font-size: .9rem; }   /* 跳過來時不被固定的頁首擋住 */
.shot-group.flash { color: var(--teal); animation: target-flash 1.6s ease-out; }
.back-link { margin-left: 12px; font-size: .85rem; font-weight: 700; color: var(--teal); white-space: nowrap; vertical-align: middle; }
.back-float {
  position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translate(-50%, 16px);
  background: var(--navy); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 42, 74, .3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.back-float.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.back-float:hover { text-decoration: none; background: var(--teal); }
@keyframes target-flash { 0% { background: #fff3c4; } 100% { background: transparent; } }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.shot a { display: block; background: #fff; cursor: zoom-in; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform .25s; }
.feature-shots .shot img { aspect-ratio: auto; object-fit: contain; }
.feature-shots.stacked { display: grid; gap: 40px; }   /* 流程圖與比較圖各佔一整列，不用點開就看得清楚 */
.feature-shots.stacked .shot figcaption { font-size: 1rem; padding: 16px 20px 18px; }
.feature-shots.stacked .shot figcaption strong { font-size: 1.15rem; }
.shot.portrait img { object-fit: contain; object-position: center; background: #e9eef3; }
.shot-single { max-width: 960px; margin: 0 auto; }
.shot-single.narrow { max-width: 480px; }
.shot-single .shot img { aspect-ratio: auto; object-fit: contain; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { padding: 14px 16px 16px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.shot figcaption strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }

/* 放大檢視：預設依寬度顯示、可上下捲動（直式文件看得清楚）；加上 .fit 時整張縮進一個畫面 */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 36, .94); display: none; overflow: auto; padding: 64px 16px 72px; overscroll-behavior: contain; }
.lightbox.open { display: block; }
.lightbox figure { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.lightbox img { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 6px; cursor: zoom-out; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox.fit img { width: auto !important; max-height: calc(100vh - 150px); cursor: zoom-in; }
.lightbox figcaption { color: #fff; margin-top: 12px; text-align: center; }
.lightbox .lb-title { display: block; font-weight: 700; }
.lightbox .lb-hint { display: block; color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 4px; }
.lightbox button { position: fixed; z-index: 201; background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close { top: 10px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; } }
body.lb-lock { overflow: hidden; }

/* ---------- 表單 ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d3de; border-radius: 8px; font: inherit; background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--teal-2); border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.req { color: #d14343; }
.form-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 14px; margin: 0 0 16px; background: var(--bg-soft); }
.form-fieldset legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.form-fieldset .form-row { margin-bottom: 8px; }
.form-fieldset .form-row label { font-weight: 400; font-size: .9rem; }
.form-hint { display: block; color: var(--muted); font-size: .85rem; }
.form-error { display: block; background: #fdecec; color: #a12b2b; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input.btn { cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- 消息 ---------- */
.news-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.news-item time { color: var(--teal); font-weight: 700; font-size: .9rem; }
.news-item h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.news-item p { color: var(--muted); margin: 0; }
.article p { font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.note { background: #fff8ef; border-left: 4px solid var(--orange); padding: 16px 20px; border-radius: 8px; }

/* ===== 雲端 ERP 是什麼（關於我們頁） ===== */
.what-erp .two-col { align-items: center; }
.erp-tiles-wrap { position: relative; }
.erp-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.erp-tiles li { --c: var(--teal); background: #fff; border-radius: 14px; border-top: 5px solid var(--c); box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s; }
.erp-tiles li:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 42, 74, .16); }
.erp-tiles li a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 16px; color: inherit; text-decoration: none; }
.erp-tiles .num { width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: .95rem; display: grid; place-items: center; }
.erp-tiles .ico { font-size: 2.1rem; line-height: 1; }
.erp-tiles strong { font-size: 1.3rem; color: var(--ink); letter-spacing: .02em; }
.erp-badge { position: absolute; right: 0; bottom: 0; background: var(--navy-2); color: #fff; padding: 22px 32px 18px; border-radius: 6px; box-shadow: var(--shadow); line-height: 1.1; }
.erp-badge strong { display: block; font-size: 2.6rem; color: #6fd3ff; font-weight: 800; }
.erp-badge span { font-size: .9rem; opacity: .9; }
.bar-title { position: relative; padding-left: 18px; font-size: 2rem; }
.bar-title::before { content: ""; position: absolute; left: 0; top: .18em; width: 8px; height: 1.1em; background: var(--teal-2); transform: skewX(-15deg); border-radius: 2px; }
.dot-list { list-style: none; margin: 0 0 1em; padding: 0; }
.dot-list li { position: relative; padding-left: 24px; margin-bottom: .8em; line-height: 1.8; font-size: 1.15rem; }
.dot-list li::before { content: "●"; position: absolute; left: 0; top: 0; color: var(--teal); font-size: .75em; line-height: 2.4; }
.erp-note { color: #c0392b; font-weight: 700; line-height: 1.8; font-size: 1.15rem; }
@media (max-width: 640px) {
  .erp-tiles { gap: 10px; }
  .erp-tiles li a { padding: 14px 6px 12px; }
  .erp-tiles strong { font-size: 1rem; }
  .erp-badge { padding: 14px 20px 12px; }
  .erp-badge strong { font-size: 2rem; }
}

/* ===== 發展歷程：卡片之間的箭頭 ===== */
.timeline { gap: 40px; }
.timeline li { position: relative; padding: 26px 18px; }
.timeline strong { font-size: 1.35rem; margin-bottom: 6px; }
.timeline span { font-size: 1.05rem; line-height: 1.7; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -32px; width: 24px; height: 24px; margin-top: -12px; z-index: 1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center/14px no-repeat,
    linear-gradient(135deg, var(--teal-2), var(--teal));
  border-radius: 50%; box-shadow: 0 4px 12px rgba(14, 143, 138, .35);
}
.timeline li:not(:last-child)::before { box-shadow: none; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; max-width: 420px; margin: 0 auto; }
  .timeline li:not(:last-child)::after { top: auto; right: 50%; bottom: -30px; margin: 0 -12px 0 0; transform: rotate(90deg); }
}

/* ===== 流程步驟（工程業系統、手機打卡）：卡片之間的箭頭 ===== */
.steps-6.flow { gap: 30px; }
.flow li { position: relative; }
.flow li::after {
  content: ""; position: absolute; top: 50%; right: -27px; width: 24px; height: 24px; margin-top: -12px; z-index: 2; pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M9 6l6 6-6 6'/></svg>") center/14px no-repeat,
    linear-gradient(135deg, var(--teal-2), var(--teal));
  border-radius: 50%; box-shadow: 0 4px 12px rgba(14, 143, 138, .35);
}
.flow li:last-child::after { display: none; }
@media (max-width: 1100px) {   /* 3 欄：每列最後一張不畫箭頭 */
  .steps-6.flow { gap: 30px 30px; }
  .flow li:nth-child(3n)::after { display: none; }
}
@media (max-width: 640px) {    /* 2 欄 */
  .flow li:nth-child(3n)::after { display: block; }
  .flow li:nth-child(2n)::after { display: none; }
  .flow li:last-child::after { display: none; }
}

