/* =========================================================
   輝映科技有限公司 官方網站
   主色：藏青 #0b2545 ／ 輔色：橘 #f28c28 ／ 白
   ========================================================= */
:root {
  --navy-950: #051427;
  --navy-900: #071c36;
  --navy: #0b2545;
  --navy-700: #13406f;
  --navy-500: #1f5c99;
  --navy-100: #e6edf6;
  --orange: #f28c28;
  --orange-600: #e0761a;
  --orange-100: #fff1e3;
  --white: #fff;
  --gray-50: #f6f8fb;
  --gray-100: #eef2f7;
  --gray-200: #dfe5ee;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --text: #1e293b;
  --line: #06c755;
  --fb: #1877f2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 69, .16);
  --container: 1200px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.75; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt-4 { margin-top: 2.5rem; }
.text-orange { color: var(--orange); }
.text-line { color: var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--orange); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.4em; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: all .2s ease; line-height: 1.2; white-space: nowrap; }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 140, 40, .3); }
.btn-orange:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--orange); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { border-color: var(--gray-200); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { background: #05a647; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-200); background: #fff; cursor: pointer; color: var(--navy); }
.btn-icon:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- 頁首 ---------- */
.topbar { background: var(--navy-950); color: #c9d6e8; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar a { color: #c9d6e8; }
.topbar a:hover { color: var(--orange); }
.topbar-right { display: flex; gap: 20px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--gray-100); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav ul a { position: relative; display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; border-radius: 8px; }
.main-nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transition: transform .25s; }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy) 55%, var(--navy-700) 100%); color: #fff; }
.hero-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%, rgba(242, 140, 40, .25), transparent 40%), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 90px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .8em; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .5em; }
.hero h1 .text-orange { display: inline-block; margin-top: .15em; font-size: .72em; }
.hero .lead { font-size: 1.12rem; color: #d4def0; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c9d6e8; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--orange); }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }

.stats { background: #fff; margin-top: -46px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px 10px; }
.stat { text-align: center; padding: 6px 12px; border-right: 1px solid var(--gray-100); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 2.3rem; color: var(--navy); line-height: 1.1; }
.stat b::after { content: "+"; color: var(--orange); margin-left: 2px; }
.stat span { color: var(--gray-500); font-size: .92rem; }

/* ---------- 區塊 ---------- */
.section { padding: 90px 0; }
.section-light { background: var(--gray-50); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy)); color: #d4def0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); position: relative; padding-bottom: .55em; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--orange); transform: translateX(-50%); }
.section-head p { color: var(--gray-500); }
.lead-light { color: #c9d6e8; font-size: 1.06rem; }

.page-hero { background: linear-gradient(120deg, var(--navy-950), var(--navy) 60%, var(--navy-700)); color: #d4def0; padding: 60px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(242, 140, 40, .14); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.page-hero p { max-width: 720px; font-size: 1.05rem; margin: 0; }
.case-hero .badge { position: static; display: inline-block; margin-bottom: 12px; }
.breadcrumb { font-size: .88rem; margin-bottom: 14px; color: #9fb2cc; }
.breadcrumb a { color: #c9d6e8; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- 服務卡 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 30px 26px; color: var(--text); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--navy), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.service-card p { color: var(--gray-500); font-size: .95rem; flex: 1; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 700; font-size: .92rem; }
.service-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--navy-100); color: var(--navy); transition: all .25s; }
.service-card:hover .service-icon { background: var(--orange); color: #fff; transform: rotate(-6deg); }
.service-icon.sm { width: 44px; height: 44px; border-radius: 12px; margin-right: 12px; background: var(--orange-100); color: var(--orange); }
.service-card-cta { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #d4def0; border: 0; }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: #b8c7dd; }
.service-card-cta .service-icon { background: rgba(255, 255, 255, .12); color: var(--orange); }
.service-card-cta:hover { color: #d4def0; }

.service-tabs { position: sticky; top: 76px; z-index: 50; background: #fff; border-bottom: 1px solid var(--gray-100); box-shadow: 0 4px 14px rgba(11, 37, 69, .04); }
.service-tabs .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.service-tabs .container::-webkit-scrollbar { display: none; }
.service-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .92rem; white-space: nowrap; border: 1px solid var(--gray-200); }
.service-tabs a:hover, .service-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-detail.reverse .service-media { order: 2; }
.service-media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; }
.service-num { font-size: 3.6rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--orange); opacity: .55; }
.service-text h2 { display: flex; align-items: center; font-size: 1.9rem; margin: 10px 0 14px; }
.lead-sm { font-size: 1.04rem; color: #475569; }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; }
.check-list .icon { color: var(--orange); margin-top: 4px; }
.case-section .check-list { grid-template-columns: 1fr; }

/* ---------- 為什麼選擇 ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.why-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .25s; }
.why-item:hover { background: rgba(255, 255, 255, .09); }
.why-item .icon { color: var(--orange); margin-top: 4px; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why-item p { margin: 0; font-size: .93rem; color: #b8c7dd; }

/* ---------- 流程 ---------- */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; position: relative; }
.process-steps::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px); }
.process-steps li { position: relative; text-align: center; padding: 0 6px; }
.process-steps span { position: relative; display: grid; place-items: center; margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: 0 0 0 8px var(--gray-50), 0 0 0 10px var(--navy-100); }
.process-steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.process-steps p { font-size: .9rem; color: var(--gray-500); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(100deg, var(--orange) 0%, #f6a04c 100%); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; font-size: 1.7rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-orange { background: var(--navy); box-shadow: none; }
.cta-band .btn-orange:hover { background: var(--navy-950); }

/* ---------- 實績 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--gray-100); transition: transform .25s, box-shadow .25s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-100); }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-thumb img { transform: scale(1.06); }
.badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; background: var(--navy); }
.badge-gov { background: var(--navy); }
.badge-sme { background: var(--orange); }
.badge-video { position: absolute; top: 14px; right: 14px; display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; background: rgba(0, 0, 0, .55); color: #fff; }
.case-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.case-meta { font-size: .82rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.case-body h3 { font-size: 1.12rem; margin: 8px 0 8px; }
.case-body h3 a { color: var(--navy); }
.case-body h3 a:hover { color: var(--orange); }
.case-body p { color: var(--gray-500); font-size: .93rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--navy-100); color: var(--navy); }
a.tag:hover { background: var(--orange); color: #fff; }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tabs a, .filter-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; font-size: .95rem; }
.filter-tabs small { font-size: .75rem; background: var(--gray-100); color: var(--gray-500); border-radius: 999px; padding: 0 8px; }
.filter-tabs .active, .filter-tabs a:hover, .filter-tabs button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-tabs .active small { background: var(--orange); color: #fff; }
.filter-select select { padding: 10px 40px 10px 16px; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2545' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; cursor: pointer; }
.empty { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty .icon { color: var(--gray-400); margin: 0 auto 12px; }

.clients h2 { margin-bottom: 36px; }
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client-grid div { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 10px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-align: center; font-weight: 600; color: #fff; }
.client-grid .icon { color: var(--orange); }

/* 實績內頁 */
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; background: var(--navy-100); }
.gallery-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0 40px; }
.gallery-thumbs button { padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: all .2s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--orange); opacity: 1; }
.gallery-thumbs img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.case-section { margin-bottom: 40px; }
.case-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; padding-bottom: 12px; border-bottom: 2px solid var(--gray-100); margin-bottom: 18px; }
.case-section h2 .icon { color: var(--orange); }
.prose p { color: #334155; font-size: 1.03rem; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.result-item { display: flex; gap: 10px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: var(--orange-100); color: var(--navy); font-weight: 600; }
.result-item .icon { color: var(--orange); }
.case-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; justify-content: inherit; }
.info-card.center h3 { justify-content: center; }
.info-card h4 { font-size: .95rem; margin: 18px 0 8px; }
.info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; font-size: .95rem; }
.info-card dt { color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.info-card dd { margin: 0; font-weight: 600; color: var(--navy); }
.info-card-navy { background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #c9d6e8; border: 0; }
.info-card-navy h3 { color: #fff; }
.info-card-navy .btn + .btn { margin-top: 10px; }
.info-card .qr { margin: 10px auto; border-radius: 10px; border: 1px solid var(--gray-100); }

/* ---------- 聯絡表單 ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.contact-form, .success-box { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); }
.contact-form h2 { font-size: 1.6rem; margin-bottom: .2em; }
.form-note { color: var(--gray-500); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=url], .field input[type=number], .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); background: #fff; box-shadow: 0 0 0 4px rgba(31, 92, 153, .12); }
.field textarea { resize: vertical; min-height: 140px; }
.field .error { display: block; color: #dc2626; font-size: .85rem; min-height: 0; margin-top: 4px; }
.field .error:empty { display: none; }
.has-error input, .has-error textarea { border-color: #dc2626 !important; background: #fef2f2 !important; }
.req { color: #dc2626; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--gray-200); cursor: pointer; font-size: .92rem; transition: all .2s; background: #fff; font-weight: 500; }
.chip span:hover { border-color: var(--navy-500); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 140, 40, .4); }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row input { flex: 1 1 160px; max-width: 220px; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--gray-200); height: 50px; width: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--gray-500); margin: 4px 0 22px; cursor: pointer; }
.consent input { margin-top: 6px; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.success-box { text-align: center; padding: 60px 40px; }
.success-box .icon { color: #10b981; margin: 0 auto 14px; }
.contact-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--orange); margin-top: 4px; }
.contact-list small { display: block; color: #9fb2cc; font-size: .8rem; }
.contact-list a { color: #fff; font-weight: 700; font-size: 1.05rem; }

/* ---------- 下載 ---------- */
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-500); min-width: 260px; }
.search-box input { border: 0; outline: none; padding: 10px 0; flex: 1; background: none; }
.dl-group { margin-bottom: 40px; }
.dl-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 16px; }
.dl-group-title .icon { color: var(--orange); }
.dl-list { display: grid; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(11, 37, 69, .04); transition: all .2s; }
.dl-item:hover { border-color: var(--navy-100); box-shadow: var(--shadow); transform: translateX(4px); }
.dl-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--navy-100); color: var(--navy); flex-shrink: 0; }
.dl-info { flex: 1; min-width: 0; }
.dl-info h3 { font-size: 1.08rem; margin: 0 0 2px; }
.dl-info p { margin: 0 0 4px; color: var(--gray-500); font-size: .92rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--gray-400); }
.dl-meta span { display: inline-flex; align-items: center; gap: 4px; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--orange-100); border-radius: var(--radius); padding: 20px 24px; color: #7c4a14; }
.notice .icon { color: var(--orange); margin-top: 3px; }
.notice p { margin: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--navy-950); color: #9fb2cc; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { color: #9fb2cc; }
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.footer-contact .icon { color: var(--orange); margin-top: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .84rem; text-align: center; }

/* ---------- 浮動按鈕 ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: transform .2s; }
.fab-btn:hover { transform: scale(1.08); color: #fff; }
.fab-fb { background: var(--fb); }
.fab-line { background: var(--line); animation: pulse 2.4s infinite; }
.fab-phone { background: var(--orange); }
.fab-top { background: var(--navy); width: 46px; height: 46px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; }
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab-tip { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; font-size: .82rem; padding: 6px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab-btn:hover .fab-tip { opacity: 1; }
.fab-panel { position: relative; width: 260px; background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); text-align: center; animation: pop .25s ease; border-top: 5px solid var(--line); }
.fab-panel img { margin: 10px auto; border-radius: 10px; border: 1px solid var(--gray-100); }
.fab-panel p { font-size: .88rem; color: var(--gray-500); margin-bottom: 12px; }
.fab-panel-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--navy); }
.fab-panel-title .icon { color: var(--line); }
.fab-panel-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--gray-400); cursor: pointer; padding: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .5), 0 10px 24px rgba(0, 0, 0, .2); } 70% { box-shadow: 0 0 0 14px rgba(6, 199, 85, 0), 0 10px 24px rgba(0, 0, 0, .2); } 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0), 0 10px 24px rgba(0, 0, 0, .2); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- 燈箱 ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 20, 39, .92); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: 10px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--orange); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c9d6e8; font-size: .9rem; }

/* ---------- 動畫 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .fab-line { animation: none; } html { scroll-behavior: auto; } }

/* ---------- RWD ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: 14px; }
  .main-nav ul a { padding: 10px 10px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); flex-direction: column; align-items: stretch; gap: 20px; background: #fff; padding: 90px 24px 30px; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; z-index: 150; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
  .main-nav ul a::after { display: none; }
  .nav-toggle[aria-expanded=true] { position: relative; z-index: 160; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5, 20, 39, .5); z-index: 99; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 80px; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .service-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row, .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-detail.reverse .service-media { order: 0; }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process-steps::before { display: none; }
  .case-layout, .contact-layout { grid-template-columns: 1fr; }
  .case-aside, .contact-aside { position: static; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-right { gap: 14px; font-size: .8rem; }
  .header-inner { height: 64px; }
  .brand img { height: 40px; }
  .service-tabs { top: 64px; }
  .service-grid, .case-grid, .why-list, .form-grid, .check-list { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form, .success-box { padding: 26px 20px; border-radius: 16px; }
  .dl-item { flex-wrap: wrap; }
  .dl-item .btn { width: 100%; }
  .search-box { min-width: 0; width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-select select { width: 100%; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .fab { right: 14px; bottom: 14px; gap: 10px; }
  .fab-btn { width: 52px; height: 52px; }
  .fab-tip { display: none; }
  .lightbox { padding: 60px 10px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .service-text h2 { font-size: 1.5rem; }
}
