/* ============================================================
   HKAV — 香港 SI 外判 · Crestron 編程與現場調通
   版面沿用 Intelligent System AI 站設計系統
   深墨綠 + 琥珀金 · 正式書面語 · 繁體中文優先
   ============================================================ */

:root {
  --ink:        #0A1410;
  --surface:    #122019;
  --surface-2:  #1A2E24;
  --gold:       #C9922E;
  --gold-light: #E3B25C;
  --gold-dim:   rgba(201,146,46,0.12);
  --cream:      #F7F5F0;
  --white:      #FFFFFF;
  --text:       #1A2420;
  --muted:      #63736C;
  --muted-dark: #8A9A93;
  --line:       #E3E1DA;
  --danger:     #B4472F;
  --ok:         #3F7D5C;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 2px 8px rgba(10,20,16,0.06);
  --shadow-lg:  0 12px 32px rgba(10,20,16,0.10);
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:      70px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, "PingFang HK", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
h3 { font-size: 1.12rem; }

.section-lead {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 720px;
  margin-top: 14px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.8rem;
  padding: 9px 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.topbar strong { color: var(--gold-light); font-weight: 600; }
.topbar a { color: var(--cream); border-bottom: 1px solid rgba(201,146,46,0.45); padding-bottom: 1px; }
.topbar a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.topbar .sep { color: rgba(255,255,255,0.2); margin: 0 10px; }
@media (max-width: 640px) { .topbar { font-size: 0.74rem; } .topbar .hide-sm { display: none; } }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.header-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; }
.logo img { width: 36px; height: 36px; }
.logo .brand-en { display: block; line-height: 1.15; }
.logo .brand-zh { display: block; font-size: 0.66rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 15px; border-radius: 7px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: var(--gold-dim); color: var(--gold); }

.header-cta {
  padding: 10px 20px; background: var(--ink); color: var(--white);
  border-radius: 8px; font-size: 0.87rem; font-weight: 600;
  transition: all 0.25s var(--ease);
}
.header-cta:hover { background: var(--gold); }

.hamburger {
  display: none; background: none; border: none;
  padding: 8px; color: var(--ink);
}
.hamburger svg { width: 24px; height: 24px; }

/* ---------- Off-canvas (mobile) ---------- */
.off-canvas {
  position: fixed; top: 0; left: 0; width: 292px; height: 100%;
  background: var(--ink); z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.38s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
.off-canvas.open { transform: translateX(0); }
.off-canvas-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.off-canvas-head .logo { color: var(--white); }
.off-canvas-head .brand-zh { color: var(--muted-dark); }
.off-canvas-close {
  background: rgba(255,255,255,0.08); border: none; color: var(--muted-dark);
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.off-canvas-nav { flex: 1; padding: 14px 0; }
.off-canvas-nav a {
  display: block; padding: 15px 24px; color: var(--cream);
  font-size: 0.94rem; font-weight: 500;
  border-left: 3px solid transparent; transition: all 0.2s;
}
.off-canvas-nav a:hover { background: rgba(201,146,46,0.1); border-left-color: var(--gold); color: var(--gold-light); }
.off-canvas-foot { padding: 22px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.off-canvas-foot p { font-size: 0.72rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.off-canvas-foot a { display: block; color: var(--cream); font-size: 0.88rem; padding: 5px 0; }

.overlay {
  position: fixed; inset: 0; background: rgba(10,20,16,0.5);
  z-index: 1500; opacity: 0; pointer-events: none;
  transition: opacity 0.38s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.page-wrapper { transition: transform 0.38s var(--ease); }
.page-wrapper.push { transform: translateX(292px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 9px;
  font-size: 0.94rem; font-weight: 600;
  transition: all 0.25s var(--ease); border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.22); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--cream);
  padding: 96px 0 104px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,146,46,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,146,46,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black, transparent 72%);
}
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,146,46,0.10) 0%, transparent 70%);
  top: -180px; right: -160px; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 800px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc {
  margin-top: 26px; font-size: 1.08rem; color: var(--muted-dark);
  max-width: 640px; line-height: 1.9;
}
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 30px; font-size: 0.83rem; color: var(--muted-dark);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.hero-note span { display: flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.08);
  border-radius: var(--radius); overflow: hidden; margin-top: 56px;
}
.stat-strip div { background: rgba(255,255,255,0.02); padding: 24px 26px; }
.stat-strip b { display: block; font-size: 1.72rem; color: var(--gold-light); font-weight: 700; letter-spacing: -0.02em; }
.stat-strip span { font-size: 0.82rem; color: var(--muted-dark); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--surface); color: var(--cream); }
.section-dark .section-lead { color: var(--muted-dark); }
.section-head { margin-bottom: 48px; }

/* ---------- Vivo case ---------- */
.vivo {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.vivo-body p { margin-bottom: 18px; color: var(--muted); }
.vivo-body p:last-child { margin-bottom: 0; }
.vivo-body .final {
  font-size: 1.16rem; color: var(--text); font-weight: 700;
  border-left: 3px solid var(--gold); padding-left: 20px; margin-top: 30px;
}
.vivo-panel {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 36px 32px;
}
.vivo-panel h3 { color: var(--gold-light); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; }
.vivo-panel dl { display: grid; gap: 18px; }
.vivo-panel dt { font-size: 0.8rem; color: var(--muted-dark); margin-bottom: 3px; }
.vivo-panel dd { font-size: 1.5rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }

/* ---------- 服務清單 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.svc {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.svc-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 0.98rem; margin-bottom: 5px; }
.svc p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

/* ---------- 事實條 ---------- */
.fact-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact-row div { background: var(--white); padding: 24px 22px; }
.fact-row b { display: block; font-size: 1.05rem; color: var(--text); margin-bottom: 5px; }
.fact-row span { font-size: 0.83rem; color: var(--muted); }

/* ---------- 圖片版位（客戶／案例）---------- */
.logo-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 40px; padding: 28px 0;
}
.logo-row span {
  font-size: 0.92rem; color: var(--muted);
  padding: 10px 22px; border: 1px solid var(--line); border-radius: 8px;
}

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  transition: all 0.32s var(--ease);
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Pain cards ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 26px 26px 24px;
  transition: all 0.3s var(--ease);
}
.pain:hover { box-shadow: var(--shadow-lg); transform: translateX(3px); }
.pain h4 { font-size: 1rem; margin-bottom: 9px; color: var(--text); }
.pain p { font-size: 0.9rem; color: var(--muted); }
.pain p strong { color: var(--gold); font-weight: 600; }

/* ---------- Boundary ---------- */
.boundary {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 52px 48px;
}
.boundary h2 { color: var(--white); margin-bottom: 12px; }
.boundary .section-lead { color: var(--muted-dark); margin-bottom: 34px; }
.boundary-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-bottom: 34px; }
.boundary-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.boundary-list li::before {
  content: ''; flex-shrink: 0; margin-top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--danger);
}
.boundary-note {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px;
  font-size: 0.94rem; color: var(--muted-dark);
}
.boundary-note strong { color: var(--gold-light); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; text-align: left;
}
.price.feature { border-color: var(--gold); border-width: 2px; position: relative; }
.price.feature::before {
  content: '建議起點'; position: absolute; top: -12px; left: 30px;
  background: var(--gold); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; padding: 4px 13px; border-radius: 20px;
}
.price h3 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.price .amount { font-size: 1.65rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.price .amount small { font-size: 0.85rem; font-weight: 500; color: var(--muted); display: block; margin-top: 5px; letter-spacing: 0; }
.price ul { margin: 24px 0 0; display: grid; gap: 11px; }
.price li { font-size: 0.88rem; color: var(--muted); padding-left: 20px; position: relative; }
.price li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* ---------- Funding ---------- */
.fund { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fund-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
.fund-item h4 { font-size: 1rem; margin-bottom: 6px; }
.fund-item .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--ok); background: rgba(63,125,92,0.1);
  padding: 3px 11px; border-radius: 20px; margin-bottom: 14px;
}
.fund-item p { font-size: 0.9rem; color: var(--muted); }
.fund-warn {
  margin-top: 22px; font-size: 0.85rem; color: var(--muted);
  background: var(--cream); border-radius: var(--radius-sm); padding: 16px 20px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 24px 40px 24px 0; position: relative;
  font-size: 1.01rem; font-weight: 600; color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold); }
.faq-q::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 300; color: var(--gold); transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { padding: 0 40px 24px 0; font-size: 0.93rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-info dl { display: grid; gap: 22px; margin-top: 30px; }
.contact-info dt { font-size: 0.78rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-info dd { font-size: 1rem; color: var(--cream); }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.83rem; color: var(--muted-dark); font-weight: 500; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px; padding: 13px 15px; color: var(--white);
  font-size: 0.93rem; font-family: inherit; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field select option { background: var(--ink); }
.field textarea { resize: vertical; min-height: 104px; }

/* ---------- 表單送出成功 ---------- */
.form-success {
  background: var(--cream); border: 1px solid var(--gold);
  border-left: 4px solid var(--gold); border-radius: var(--radius-sm);
  padding: 26px 28px; display: grid; gap: 6px; align-content: center;
}
.form-success strong { font-size: 1.1rem; color: var(--text); }
.form-success span { font-size: 0.92rem; color: var(--muted); }

.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 0.82rem; color: var(--muted-dark); }
.consent input { width: auto; margin-top: 4px; flex-shrink: 0; }
.consent a { color: var(--gold-light); text-decoration: underline; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, #A8761F 100%);
  color: var(--ink); border-radius: var(--radius);
  padding: 58px 48px; text-align: center;
}
.cta-band h2 { color: var(--ink); margin-bottom: 14px; }
.cta-band p { color: rgba(10,20,16,0.72); margin-bottom: 30px; font-size: 1rem; }
.cta-band .btn-dark:hover { background: #000; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: var(--muted-dark);
  padding: 56px 0 38px; font-size: 0.87rem;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top .logo { color: var(--white); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; }
.footer-bottom .fine { max-width: 620px; }

/* ---------- Page header (sub-pages) ---------- */
.page-head {
  background: var(--ink); color: var(--cream);
  padding: 68px 0 76px; position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,146,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,146,46,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent 75%);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: var(--white); max-width: 760px; }
.page-head p { margin-top: 20px; color: var(--muted-dark); max-width: 660px; font-size: 1.03rem; }
.breadcrumb { font-size: 0.82rem; color: var(--muted-dark); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Article body ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { margin: 46px 0 16px; font-size: 1.42rem; }
.article h3 { margin: 32px 0 12px; }
.article p { margin-bottom: 18px; color: var(--muted); }
.article ul, .article ol { margin: 0 0 20px 22px; }
.article li { margin-bottom: 9px; color: var(--muted); }
.article ul li { list-style: disc; }
.article ol li { list-style: decimal; }
.article strong { color: var(--text); }
.article .callout {
  background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 24px 26px; margin: 28px 0;
}
.article .callout p:last-child { margin-bottom: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ok); color: #fff; padding: 15px 30px;
  border-radius: 11px; font-weight: 600; font-size: 0.92rem;
  z-index: 9999; box-shadow: 0 10px 34px rgba(0,0,0,0.24);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .vivo, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .grid-3, .price-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 .card:nth-child(3), .price-grid .price:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 62px 0; }
  .hero { padding: 66px 0 74px; }

  .nav-links { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  .stat-strip { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .pain-grid, .price-grid, .fund { grid-template-columns: 1fr; }
  .grid-3 .card:nth-child(3), .price-grid .price:nth-child(3) { grid-column: span 1; }
  .boundary { padding: 38px 26px; }
  .boundary-list { grid-template-columns: 1fr; }
  .cta-band { padding: 42px 26px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}


/* ============================================================
   文章（/articles/）
   ============================================================ */
.article-wrap { max-width: 780px; margin: 0 auto; }

.article-head { padding: 52px 0 34px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: 2.1rem; line-height: 1.35; margin: 14px 0 16px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.85rem; color: var(--muted); margin-top: 18px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-body { padding: 40px 0 20px; font-size: 1.02rem; line-height: 1.92; }
.article-body h2 {
  font-size: 1.42rem; line-height: 1.45; margin: 46px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--gold);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; margin: 32px 0 12px; color: var(--text); }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; line-height: 1.85; }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body code {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 4px; padding: 2px 6px; font-size: 0.9em;
}
.article-note {
  background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 24px;
}
.article-note p:last-child { margin-bottom: 0; }
.article-divider { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.article-foot { padding: 28px 0 10px; font-size: 0.92rem; color: var(--muted); line-height: 1.85; }
.article-foot strong { color: var(--text); }

/* 文章列表 */
.article-list { display: grid; gap: 18px; padding: 12px 0 20px; }
.article-item {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
  transition: all 0.3s var(--ease);
}
.article-item:hover {
  border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.article-item h3 { font-size: 1.16rem; margin-bottom: 10px; line-height: 1.5; }
.article-item p { margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); line-height: 1.75; }
.article-item .article-meta { margin-top: 0; }
.article-empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--muted);
}

/* 文章內 CTA */
.article-cta {
  background: var(--ink); border-radius: var(--radius);
  padding: 36px 38px; margin: 44px 0 10px; color: var(--white);
}
.article-cta h3 { color: var(--white); font-size: 1.22rem; margin-bottom: 12px; }
.article-cta p { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; margin-bottom: 22px; }

@media (max-width: 768px) {
  .article-head h1 { font-size: 1.6rem; }
  .article-body { font-size: 0.98rem; }
  .article-wrap { padding: 0 20px; }
  .article-item { padding: 22px 22px; }
  .article-cta { padding: 28px 24px; }
}

/* ============================================================
   HKAV — 附加元件（沿用 AI 站設計系統）
   憑證 · 介面示範 · 合作流程 · 客戶名單
   ============================================================ */

/* ---------- 支援平台條 ---------- */
.platform-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 26px; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.platform-label {
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-right: 6px;
}
.platform-tag {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  background: var(--cream); border-radius: 100px; padding: 7px 16px;
  border: 1px solid var(--line);
}

/* ---------- 一條龍對比 ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.compare-col {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; background: var(--white);
}
.compare-col--ours { border-color: var(--gold); border-width: 2px; background: var(--cream); }
.compare-col h4 {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px; font-weight: 700;
}
.compare-col--ours h4 { color: var(--gold); }
.compare-item {
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 15px 18px; font-size: 0.94rem; font-weight: 500;
  margin-bottom: 11px; background: var(--white);
}
.compare-col--ours .compare-item {
  border: 1px solid var(--gold); background: var(--white); font-weight: 600;
  margin-bottom: 0;
}
.compare-col p {
  margin-top: 18px; font-size: 0.88rem; color: var(--muted); line-height: 1.7;
}
.compare-col--ours p { color: var(--text); font-weight: 500; }

/* ---------- 與同業分別（引言段）---------- */
.diff-note {
  background: var(--cream); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 24px 28px; margin-top: 32px;
}
.diff-note p { margin: 0; font-size: 0.95rem; }
.diff-note p + p { margin-top: 12px; }

/* ---------- 服務清單（卡片內）---------- */
.svc-list { margin: 0; padding: 0; display: grid; gap: 9px; }
.svc-list li {
  font-size: 0.9rem; color: var(--muted); line-height: 1.6;
  padding-left: 18px; position: relative;
}
.svc-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* ---------- 客戶名單 ---------- */
.client-chips {
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 8px 0 4px;
}
.client-chips span {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 18px;
  transition: all 0.25s var(--ease);
}
.client-chips span:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 品牌經驗 ---------- */
.brand-group { margin-bottom: 24px; }
.brand-group:last-of-type { margin-bottom: 0; }
.brand-group h4 {
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.06em; margin: 0 0 12px;
}
.brand-group .client-chips { padding: 0; }
.brand-group .client-chips span { font-size: 0.84rem; padding: 7px 15px; }

/* ---------- 憑證（含證書圖）---------- */
.cert-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cert-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.32s var(--ease);
}
.cert-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cert-card figure {
  margin: 0; background: var(--cream);
  height: 190px; display: flex; align-items: center; justify-content: center;
  padding: 22px; border-bottom: 1px solid var(--line);
}
.cert-card img { max-height: 146px; max-width: 100%; width: auto; object-fit: contain; }
.cert-card .cert-body { padding: 22px 24px 24px; }
.cert-card strong { display: block; font-size: 1.02rem; margin-bottom: 5px; }
.cert-card span { font-size: 0.86rem; color: var(--muted); }

/* ---------- 介面示範 ---------- */
.ui-demo {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 22px 52px -28px rgba(0,0,0,0.6);
}
.ui-demo-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 18px; }
.ui-demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ui-demo-title {
  color: var(--muted-dark); font-size: 0.72rem; letter-spacing: 0.14em;
  margin-left: 10px; text-transform: uppercase;
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-zone {
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 18px;
}
.demo-zone h4 {
  font-size: 0.72rem; color: var(--gold); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px; font-weight: 700;
}
.demo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.demo-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px; color: var(--cream); font-size: 0.83rem;
  padding: 13px 8px; text-align: center; transition: all 0.25s var(--ease);
}
.demo-btn.on { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }

.demo-faders { display: flex; gap: 10px; justify-content: space-around; padding: 6px 0 2px; }
.fader { text-align: center; }
.fader i {
  display: block; width: 7px; height: 78px; border-radius: 4px;
  background: rgba(255,255,255,0.1); margin: 0 auto 10px; position: relative;
}
.fader i::after {
  content: ''; position: absolute; left: -4px; width: 15px; height: 8px;
  border-radius: 3px; background: var(--gold-light);
  bottom: calc(var(--v, 50%) - 4px);
}
.fader span { font-size: 0.72rem; color: var(--muted-dark); }

.demo-matrix { display: grid; grid-template-columns: 44px repeat(4, 1fr); gap: 6px; font-size: 0.72rem; }
.demo-matrix b { color: var(--muted-dark); font-weight: 500; display: flex; align-items: center; }
.demo-matrix i { height: 22px; border-radius: 4px; background: rgba(255,255,255,0.07); display: block; }
.demo-matrix i.on { background: var(--ok); }

/* ---------- 合作流程 ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow-step {
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  padding: 13px 22px; font-weight: 600; font-size: 0.93rem;
  display: flex; align-items: center; gap: 10px;
}
.flow-step b {
  color: var(--gold); font-size: 0.76rem; letter-spacing: 0.08em;
}
.flow-arrow { color: var(--gold); font-size: 1.1rem; }

/* ---------- 免費診斷三步 ---------- */
.diag-head { max-width: 640px; }
.diag-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.diag-step {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: 28px 26px;
}
.diag-step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-size: 0.9rem;
  margin-bottom: 16px;
}
.diag-step h4 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.diag-step p { font-size: 0.89rem; color: var(--muted-dark); }

/* ---------- 聯絡（深色區，沿用 AI 站欄位樣式）---------- */
.section-dark .contact-info dd { color: var(--cream); }
.section-dark .contact-info dt { color: var(--muted-dark); }

/* ---------- 響應式 ---------- */
@media (max-width: 980px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .diag-steps { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .cert-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { text-align: center; transform: rotate(90deg); }
  .client-chips span { font-size: 0.85rem; padding: 8px 14px; }
}
