/* ============================================================
   ezESC 供應鏈 | Supply Chain — www.ezesc.com
   Locked light theme · single accent (steel cobalt) · soft radius 10px
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}

:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #171b22;
  --ink-2: #4b5563;
  --ink-3: #8b94a3;
  --line: #e3e7ee;
  --accent: #2458b3;
  --accent-deep: #173e85;
  --accent-soft: #e8eefb;
  --radius: 10px;
  --font: 'Outfit', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(23, 43, 77, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- language switching ---- */
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 68px; display: flex; align-items: center; gap: 32px;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 36px; height: 36px; flex: none;
  filter: drop-shadow(0 2px 6px rgba(23, 62, 133, .28));
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .mark { transform: rotate(-5deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .brand:hover .mark { transform: none; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.brand .ez { color: var(--accent); }
.brand-text small { margin-top: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); }
.brand-text .fzh { text-align: justify; text-align-last: justify; margin-top: 3px; letter-spacing: 0; }
footer .brand-text b { color: #fff; }
footer .brand .ez { color: #7fa5e8; }
footer .brand-text small { color: #8b94a3; }
@media (max-width: 640px) {
  .brand .mark { width: 32px; height: 32px; }
  .brand-text b { font-size: 17px; }
  .brand-text small { font-size: 9px; letter-spacing: .02em; }
}
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { position: relative; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn:active { transform: scale(.96); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 16px; display: none; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a:last-of-type { border-bottom: 0; }
  .lang-btn { margin-top: 10px; }
}

/* ============ HERO (index) ============ */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(36, 88, 179, .28); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual { position: relative; min-height: 420px; }
.hero-visual .ph-a, .hero-visual .ph-b {
  border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow);
}
.hero-visual .ph-a { width: 82%; height: 330px; margin-left: auto; }
.hero-visual .ph-b {
  position: absolute; left: 0; bottom: -28px; width: 52%; height: 210px;
  border: 5px solid var(--paper);
}

@media (max-width: 920px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 0; }
  .hero-visual .ph-a { width: 100%; height: 260px; }
  .hero-visual .ph-b { display: none; }
}

/* ============ STATS BAND ============ */
.stats { background: var(--ink); color: #fff; padding: 42px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.stat span { font-size: 14px; color: #aeb6c4; }
@media (max-width: 920px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ SECTIONS ============ */
section { padding: 84px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* partner rows on index */
.partner-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0;
}
.partner-row + .partner-row { border-top: 1px solid var(--line); }
.partner-row img { border-radius: var(--radius); height: 340px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.partner-row.rev .p-media { order: 2; }
.partner-row h3 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.partner-row .p-org { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.partner-row .p-desc { margin-top: 16px; color: var(--ink-2); }
.p-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-tags li {
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 999px;
}
.p-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 600; color: var(--accent); font-size: 15px; }
.p-more svg { transition: transform .2s; }
.p-more:hover svg { transform: translateX(4px); }

/* full-width partner band (3rd partner, breaks zigzag) */
.partner-band {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 44px;
  min-height: 400px; display: flex; align-items: flex-end;
}
.partner-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner-band .band-body {
  position: relative; width: 100%;
  background: linear-gradient(180deg, rgba(13,17,26,0) 0%, rgba(13,17,26,.82) 55%);
  padding: 120px 44px 40px; color: #fff;
}
.partner-band h3 { font-size: 26px; font-weight: 700; }
.partner-band .p-org { color: #c3c9d6; font-size: 14px; margin-top: 4px; }
.partner-band .p-desc { margin-top: 12px; max-width: 62ch; color: #dde2ec; }
.partner-band .p-more { color: #fff; }

@media (max-width: 920px) {
  section { padding: 56px 0; }
  .partner-row { grid-template-columns: 1fr; gap: 26px; }
  .partner-row.rev .p-media { order: 0; }
  .partner-row img { height: 240px; }
  .partner-band .band-body { padding: 90px 24px 28px; }
}

/* industries strip */
.industries { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind-grid li {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; font-weight: 600; font-size: 15.5px;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); transition: border-color .2s, transform .2s;
}
.ind-grid li:hover { border-color: var(--accent); transform: translateY(-3px); }
.ind-grid svg { width: 22px; height: 22px; stroke: var(--accent); flex: none; }
@media (max-width: 920px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.process-grid h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.process-grid h3::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.process-grid p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 920px) { .process-grid { grid-template-columns: 1fr; } }

/* ============ SUBPAGE HERO ============ */
.page-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,26,.30) 0%, rgba(13,17,26,.78) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; color: #fff; padding-bottom: 44px; padding-top: 120px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.page-hero .org { margin-top: 8px; color: #c9cfdb; font-size: 15px; }

/* intro two-col */
.intro-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }
.intro-grid .lead { font-size: 17px; color: var(--ink-2); }
.fact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-list div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact-list dt { color: var(--ink-3); }
.fact-list dd { font-weight: 600; text-align: right; }
@media (max-width: 920px) { .intro-grid { grid-template-columns: 1fr; gap: 34px; } }

/* capability cards */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap-grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.cap-grid h3 { font-size: 18px; font-weight: 700; color: var(--accent-deep); }
.cap-grid p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 920px) { .cap-grid { grid-template-columns: 1fr; } }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.gal-grid figure {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s, box-shadow .2s;
}
.gal-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gal-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gal-grid figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 920px) { .gal-grid, .gal-grid.g3 { grid-template-columns: repeat(2, 1fr); } }

/* catalog filter (motor page) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar button {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  padding: 7px 16px; border-radius: 999px; transition: all .18s;
}
.filter-bar button:hover { border-color: var(--accent); color: var(--accent); }
.filter-bar button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-grid figure {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); cursor: zoom-in; transition: transform .2s, box-shadow .2s;
}
.cat-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-grid img { width: 100%; aspect-ratio: 1624/2200; object-fit: cover; }
.cat-grid figcaption { padding: 9px 12px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.cat-grid figure.hide { display: none; }
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(10, 13, 19, .9); align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 6px; object-fit: contain; }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfd5e1; font-size: 14px; padding: 0 60px; }
.lb button {
  position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* contact */
.contact { background: linear-gradient(135deg, #173e85, #2b62c4); color: #fff; }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head p { color: #cddcf7; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-grid article {
  border: 1px solid #2b3140; border-radius: var(--radius); padding: 26px;
  background: #1d222c;
}
.contact-grid h3 { font-size: 17px; font-weight: 700; }
.contact-grid p { margin-top: 10px; font-size: 14.5px; color: #aeb6c4; }
.contact-cta { margin-top: 40px; text-align: center; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

/* contact page: info cards + form card + guidance sidebar */
.cpage { padding: 56px 0 88px; }
.cpage-head h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.cpage-head p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; max-width: 62ch; }
.cinfo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cinfo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; transition: box-shadow .2s, transform .2s;
}
.cinfo:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cinfo-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft);
}
.cinfo-ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.cinfo h3 { margin-top: 16px; font-size: 16.5px; font-weight: 700; }
.cinfo p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.cinfo a { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--accent); }
.cinfo a:hover { color: var(--accent-deep); text-decoration: underline; }

.cmain-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; margin-top: 24px; align-items: start; }
.cform-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 40px;
}
.cform-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.cform-note { margin-top: 10px; margin-bottom: 26px; font-size: 14.5px; color: var(--ink-2); max-width: 58ch; }
.f-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.f-field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.f-field .req { color: #d64545; }
.f-field input, .f-field textarea {
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: #f4f6fa; border: 1px solid #dde3ec; border-radius: 8px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.f-field input::placeholder, .f-field textarea::placeholder { color: #949dac; }
.f-field input:focus, .f-field textarea:focus {
  background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 88, 179, .14);
}
.f-field textarea { resize: vertical; min-height: 140px; }
.f-hint { font-size: 12.5px; color: var(--ink-3); }
.f-field input[type="file"] {
  background: var(--surface); border-style: dashed; cursor: pointer; padding: 10px 12px;
}
.f-field input[type="file"]::file-selector-button {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: var(--accent-deep); background: var(--accent-soft);
  border: 0; border-radius: 999px; padding: 7px 14px; margin-right: 12px;
}

/* 詢價商品 chip（contact.html） */
.p-chip[hidden] { display: none !important; }
.p-chip {
  display: flex; align-items: center; gap: 14px;
  background: var(--accent-soft); border: 1px solid #cddcf7; border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 22px;
}
.p-chip img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.p-chip-body { min-width: 0; }
.p-chip-label { display: block; font-size: 12px; font-weight: 600; color: var(--accent-deep); }
.p-chip-body b { font-size: 15px; color: var(--ink); }
.p-chip-x {
  margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-3); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.p-chip-x:hover { background: #fff; color: #b5484d; }

/* 產品圖庫詢價按鈕 */
.g-media { position: relative; display: block; }
.q-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .94); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(13, 25, 48, .22);
  transition: background .2s, color .2s, transform .2s;
}
.q-btn:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.q-btn svg { width: 13px; height: 13px; }
.lb-inquire {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  display: none; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 10px 22px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.lb-inquire:hover { background: #2f66c9; }
.lb-inquire.show { display: inline-flex; }

.f-err { display: none; font-size: 13px; color: #b5484d; }
.f-field.invalid .f-err { display: block; }
.f-field.invalid input, .f-field.invalid textarea {
  border-color: #d64545; background: #fdf6f6;
}
.f-field.invalid input:focus, .f-field.invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .12);
}

/* captcha row: question chip + input + refresh */
.cap-row { display: flex; align-items: stretch; gap: 12px; }
.cap-q {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 16px; font-weight: 700; letter-spacing: .02em;
  padding: 0 18px; border-radius: 8px;
}
.cap-row input { flex: 0 1 160px; min-width: 110px; }
.cap-refresh {
  flex: none; width: 46px; border: 1px solid #dde3ec; border-radius: 8px;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s, transform .3s;
}
.cap-refresh svg { width: 18px; height: 18px; }
.cap-refresh:hover { color: var(--accent); border-color: var(--accent); }
.cap-refresh:active { transform: rotate(180deg); }

.btn-send { margin-top: 6px; min-width: 160px; justify-content: center; }
.btn-send.loading { pointer-events: none; opacity: .85; }
.btn-send.loading::before {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: cfspin .7s linear infinite;
}
@keyframes cfspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-send.loading::before { animation: none; }
  .cap-refresh:active { transform: none; }
}
.f-msg { margin-top: 14px; font-size: 14.5px; min-height: 22px; }
.f-msg.ok { color: #1c7c46; }
.f-msg.err { color: #b5484d; }

/* success panel */
.cf-success { text-align: center; padding: 56px 24px 40px; }
.cf-success-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: #e2f4ea; color: #1c7c46;
}
.cf-success-ic svg { width: 30px; height: 30px; }
.cf-success h3 { margin-top: 20px; font-size: 22px; font-weight: 700; }
.cf-success p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.cf-success .btn { margin-top: 26px; }

/* guidance sidebar: sticky, second card tinted */
.cside { display: grid; gap: 24px; position: sticky; top: 92px; }
.cside-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px;
}
.cside-card.tint { background: var(--accent-soft); border-color: #cddcf7; }
.cside-card.tint h3 { color: var(--accent-deep); }
.cside-card.tint li { color: #3d4f70; }
.cside-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.cside-card ul { margin-top: 14px; display: grid; gap: 10px; }
.cside-card li {
  position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
}
.cside-card li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 920px) {
  .cpage { padding: 40px 0 64px; }
  .cinfo-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .cmain-grid { grid-template-columns: 1fr; gap: 20px; }
  .cform-card { padding: 26px 22px; }
  .f-row2 { grid-template-columns: 1fr; gap: 0; }
  .cside { position: static; }
}

/* index closing CTA band */
.cta-band { background: linear-gradient(135deg, #173e85, #2b62c4); color: #fff; text-align: center; padding: 100px 0; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.015em; }
.cta-band p { margin-top: 14px; color: #cddcf7; font-size: 16px; }
.cta-band .btn { margin-top: 34px; }

/* footer */
footer { background: #10141b; color: #8b94a3; padding: 44px 0 30px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 28px; }
.foot-name { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: #c3c9d6; }
.foot-co .foot-info { margin-top: 8px; font-size: 14px; color: #8b94a3; }
.foot-co .foot-info + .foot-info { margin-top: 6px; }
.foot-co .foot-info a { color: #aeb6c4; }
.foot-sep { color: #4b5563; }
.foot-nav { display: flex; gap: 24px; align-items: flex-start; padding-top: 8px; flex-wrap: wrap; }
.foot-nav a { color: #aeb6c4; }
footer a:hover { color: #fff; }
.foot-copy { border-top: 1px solid #232936; padding-top: 18px; font-size: 13px; color: #6d7686; }
@media (max-width: 920px) { .foot-grid { flex-direction: column; gap: 24px; } }

/* ---- scroll reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .rv.in { opacity: 1; transform: none; }
  /* GSAP 接管揭示時停用 CSS 機制（由 motion.js 以 inline style 控制） */
  html.gsap-on .rv { opacity: 1; transform: none; transition: none; }
}
/* 視差圖溢出裁切 */
.page-hero, .partner-band { overflow: hidden; }

/* 藍色 CTA 區塊內按鈕反白，與底色區隔 */
.cta-band .btn-primary, .contact .btn-primary {
  background: #fff; color: var(--accent-deep);
  box-shadow: 0 6px 20px rgba(10, 28, 64, .35);
}
.cta-band .btn-primary:hover, .contact .btn-primary:hover {
  background: #e8eefb; color: var(--accent-deep);
}

.lang-btn svg { width: 15px; height: 15px; }
@media (max-width: 920px) {
  .nav-links a::after { display: none; }
}

/* ---- 全域微互動與可及性 ---- */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 統計帶分隔線 */
@media (min-width: 921px) {
  .stats-grid .stat + .stat { border-left: 1px solid #2b3140; padding-left: 28px; }
}

/* 流程四步箭頭串接（桌面） */
@media (min-width: 921px) {
  .process-grid article { position: relative; }
  .process-grid article:not(:last-child)::after {
    content: ""; position: absolute; right: -17px; top: 50%; width: 14px; height: 14px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 2.5px solid #c3cde2; border-right: 2.5px solid #c3cde2;
  }
}

/* 能力卡圖示 chip */
.cap-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  margin-bottom: 14px;
}
.cap-ic svg { width: 20px; height: 20px; stroke: var(--accent); }

/* 圖庫 hover 放大鏡提示 */
[data-lightbox] figure { position: relative; }
[data-lightbox] figure::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(13, 17, 26, .55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
[data-lightbox] figure:hover::after { opacity: 1; }

/* 型錄篩選數量徽章 */
.filter-bar .cnt {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-deep);
}
.filter-bar button.on .cnt { background: rgba(255,255,255,.22); color: #fff; }

/* 送出鈕紙飛機 / 上傳欄迴紋針 */
.btn-send svg { width: 16px; height: 16px; }
.btn-send.loading svg { display: none; }
.lbl-ic { display: inline-flex; align-items: center; gap: 7px; }
.lbl-ic svg { width: 15px; height: 15px; stroke: var(--ink-3); flex: none; }

/* footer 圖示列 */
.foot-list { margin-top: 12px; display: grid; gap: 9px; }
.foot-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8b94a3; }
.foot-list svg { width: 15px; height: 15px; stroke: #5f6b80; flex: none; }
.foot-list a { color: #aeb6c4; }
.foot-list a:hover { color: #fff; }

/* footer 右欄：導覽在上、LINE QR 在下 */
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.foot-qr { display: block; text-align: center; max-width: 168px; transition: transform .2s; }
.foot-qr:hover { transform: translateY(-2px); }
.foot-qr:hover .foot-qr-t { color: #fff; }
.foot-qr img {
  width: 73px; height: 73px; margin: 0 auto;
  background: #fff; border-radius: 8px; padding: 5px;
  transition: box-shadow .2s;
}
.foot-qr:hover img { box-shadow: 0 6px 20px rgba(6, 199, 85, .35); }
.foot-qr-t { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #c3c9d6; }
.foot-qr-s { margin-top: 4px; font-size: 12px; color: #8b94a3; line-height: 1.5; }
@media (max-width: 920px) {
  .foot-right { align-items: flex-start; }
  .foot-qr { text-align: left; }
  .foot-qr img { margin: 0; }
}

/* 回到頂部 */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(23, 62, 133, .35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--accent-deep); }
.back-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .back-top { transition: opacity .25s, visibility .25s; transform: none; }
}
