/* =========================================================
   色彩與字體設定
   ========================================================= */
:root {
  --bg: #ECE9E4;          /* 石灰：頁面底色 */
  --surface: #F7F5F1;     /* 面板 */
  --surface-2: #E2DED7;   /* 次要面板 */
  --ink: #1C1E20;         /* 石墨：主要文字 */
  --muted: #5C6064;       /* 鑄鐵灰：次要文字 */
  --line: #CDC8BF;        /* 細線 */
  --brass: #866A38;       /* 黃銅：品牌強調色 */
  --brass-soft: #E9DFCB;
  --run: #2E7D57;         /* 運轉綠：只用在即時數據 */
  --line-green: #06C755;  /* LINE 品牌色 */
  --panel-dark: #232629;
  --panel-dark-ink: #E9E6E0;

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --radius-lg: 18px;
  --radius: 10px;
  --radius-sm: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161719;
    --surface: #1F2124;
    --surface-2: #2A2D31;
    --ink: #ECE9E4;
    --muted: #A4A7AA;
    --line: #393C40;
    --brass: #CDAA6E;
    --brass-soft: #3A3226;
    --run: #4DB383;
    --panel-dark: #0F1011;
    --panel-dark-ink: #E9E6E0;
    color-scheme: dark;
  }
}

/* =========================================================
   基礎
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.22; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 40em; }
.section-head p { color: var(--muted); }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b04c; color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  background: var(--brass-soft); color: var(--brass);
}

/* =========================================================
   頁首
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .06em; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: .96rem; color: var(--muted); padding-block: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-size: .9rem; text-decoration: none; color: var(--muted); padding: 6px 4px; }
.lang-switch:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s; }

@media (max-width: 920px) {
  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
}

/* =========================================================
   首屏
   ========================================================= */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-subsidy {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}
.hero-subsidy a { color: var(--brass); font-weight: 500; }

.hero-visual { position: relative; }
.hero-stage {
  position: relative; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 70% 20%, color-mix(in srgb, var(--surface) 90%, #fff) 0%, transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
}
.machine { position: absolute; left: 14%; top: 14%; width: 84%; height: 86%; }
.readout {
  position: absolute; left: 5%; top: 5%;
  width: min(250px, 44%);
  background: var(--panel-dark); color: var(--panel-dark-ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 24px 48px -24px rgba(20, 20, 20, .5);
}
.readout-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; margin-bottom: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #7fd3a7; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4DB383; box-shadow: 0 0 0 4px rgba(77,179,131,.18); }
.readout dl { margin: 0; display: grid; gap: 8px; }
.readout dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.readout dt { font-size: .82rem; color: #A9ACAF; }
.readout dd { margin: 0; font-family: var(--mono); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.readout-note { margin-top: 10px; font-size: .72rem; color: #85898D; }
.hero-caption { margin-top: 12px; font-size: .85rem; color: var(--muted); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}
@media (max-width: 640px) {
  .hero-stage { aspect-ratio: 1 / 1.25; }
  .machine { left: 4%; top: 30%; width: 96%; height: 70%; }
  .readout { left: 5%; right: 5%; top: 4%; width: auto; padding: 12px 14px; }
  .readout dl { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .readout dl div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .readout dd { font-size: .9rem; }
  .readout-head { margin-bottom: 8px; }
}
.nowrap { white-space: nowrap; }

/* =========================================================
   設備展示
   ========================================================= */
.showcase { background: var(--surface); border-block: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  border: 1px solid var(--line); background: transparent;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font-size: .98rem;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.showcase-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.equip-list { display: grid; gap: 10px; align-content: start; }
.equip-item {
  text-align: left; border: 1px solid var(--line); background: var(--bg);
  border-radius: var(--radius); padding: 18px 20px; cursor: pointer;
  display: grid; gap: 4px;
}
.equip-item strong { font-size: 1.05rem; }
.equip-item span { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.equip-item[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 4px 0 0 var(--brass); }

.equip-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(170deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line);
  min-height: 420px; display: grid;
}
.equip-art { position: absolute; inset: 6% 32% 30% 6%; width: 62%; height: 64%; opacity: .9; }
.equip-info {
  position: relative; align-self: end;
  background: linear-gradient(to top, var(--bg) 40%, transparent);
  display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap;
  padding: 24px;
}
.equip-info h3 { font-size: 1.6rem; }
.equip-info p { color: var(--muted); max-width: 26em; margin-top: 6px; }

/* 「加上設備監控」開關 */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; user-select: none; background: var(--surface); padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .switch-track { background: var(--run); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brass); outline-offset: 3px; }

.metrics {
  position: absolute; top: 24px; right: 24px;
  display: grid; gap: 8px; width: min(240px, 60%);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.equip-stage.monitoring .metrics { opacity: 1; transform: none; }
.metric {
  background: var(--panel-dark); color: var(--panel-dark-ink);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
}
.metric span { font-size: .8rem; color: #A9ACAF; }
.metric b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-note { font-size: .72rem; color: var(--muted); text-align: right; }
.showcase-foot { margin-top: 22px; font-size: .88rem; color: var(--muted); }

@media (max-width: 820px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .equip-list { grid-template-columns: 1fr 1fr; }
  .equip-item span { display: none; }
  .equip-stage { min-height: 460px; }
  .equip-art { inset: 22% 12% 34% 12%; }
  .metrics { left: 16px; right: 16px; top: 16px; width: auto; }
}

/* =========================================================
   產品
   ========================================================= */
.product-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}
.product-feature ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.product-feature li { padding-left: 22px; position: relative; }
.product-feature li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--brass); }
.dash-mock { background: var(--panel-dark); border-radius: var(--radius); padding: 16px; color: var(--panel-dark-ink); }
.dash-mock-head { display: flex; justify-content: space-between; font-size: .8rem; color: #A9ACAF; margin-bottom: 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-cell { background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: 10px; display: grid; gap: 2px; }
.dash-cell small { font-size: .72rem; color: #A9ACAF; }
.dash-cell b { font-family: var(--mono); font-weight: 500; font-size: .95rem; }
.dash-cell i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #4DB383; }
.dash-cell i.idle { background: #D8A63A; }
.dash-cell i.stop { background: #C9574A; }
@media (max-width: 820px) { .product-feature { grid-template-columns: 1fr; } }

.filters { display: grid; gap: 16px; margin-bottom: 36px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group > span { width: 7.5em; font-size: .92rem; color: var(--muted); }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .92rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 640px) { .filter-group > span { width: 100%; } }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.product-card-img { aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--surface-2), var(--bg)); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.product-card-body p { color: var(--muted); font-size: .96rem; }
.product-card.coming { border-style: dashed; background: transparent; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }

/* =========================================================
   補助橫幅、流程
   ========================================================= */
.subsidy-band { background: var(--panel-dark); color: var(--panel-dark-ink); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.subsidy-band .lead { color: #B9BCBF; }
.subsidy-band .btn { background: var(--panel-dark-ink); color: var(--panel-dark); border-color: var(--panel-dark-ink); }
.subsidy-band .btn:hover { background: transparent; color: var(--panel-dark-ink); }
.subsidy-band .btn-ghost { background: transparent; color: var(--panel-dark-ink); }
.subsidy-band .btn-ghost:hover { background: var(--panel-dark-ink); color: var(--panel-dark); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.checklist li::before { content: "✓"; color: #CDAA6E; font-weight: 700; }
.checklist.light li { border-bottom-color: var(--line); }
.checklist.light li::before { color: var(--brass); }
@media (max-width: 820px) { .subsidy-band { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 20px 24px 0; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.8rem; color: var(--brass); display: block; margin-bottom: 8px; }
.steps li strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.steps li p { font-size: .92rem; color: var(--muted); }
.steps li small { display: block; margin-top: 10px; font-size: .8rem; color: var(--brass); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 18px 0 18px 52px; } .steps li::before { position: absolute; left: 0; top: 16px; } }

/* 案例 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.case-card { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 14px; }
.case-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.case-card dt { color: var(--muted); }
.case-card dd { margin: 0; }

/* CTA */
.cta { text-align: center; display: grid; justify-items: center; gap: 20px; }
.cta .lead { text-align: center; }

/* =========================================================
   補助專區頁
   ========================================================= */
.page-hero { padding-block: clamp(48px, 7vw, 96px) 32px; }
.page-hero .lead { margin-top: 18px; }
.notice-list { display: grid; gap: 14px; }
.notice {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.notice h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; }
.notice p { color: var(--muted); font-size: .94rem; grid-column: 1 / -1; }
.notice-meta { font-size: .85rem; color: var(--muted); }
.countdown { font-weight: 700; color: var(--brass); white-space: nowrap; }
.countdown.urgent { color: #B4473B; }
@media (max-width: 640px) { .notice { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.role.us { border-color: var(--brass); }
.role p { color: var(--muted); font-size: .94rem; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brass); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* 試算 */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 48px); max-width: 760px; margin-inline: auto; }
.calc-progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.calc-progress span { display: block; height: 100%; background: var(--brass); width: 0; transition: width .3s; }
.calc-stepcount { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.calc-step { display: none; }
.calc-step.active { display: grid; gap: 22px; }
.calc-step h3 { font-size: 1.5rem; }
.calc-step .hint { color: var(--muted); font-size: .92rem; margin-top: -10px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.option { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 16px; text-align: left; cursor: pointer; font-size: 1.02rem; min-height: 56px; }
.option[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 0 16px; max-width: 360px; }
.field input { border: 0; background: transparent; font: inherit; font-size: 1.4rem; padding: 14px 0; width: 100%; color: var(--ink); font-variant-numeric: tabular-nums; }
.field input:focus { outline: none; }
.field:focus-within { border-color: var(--ink); }
.field span { color: var(--muted); white-space: nowrap; }
.calc-error { color: #B4473B; font-size: .92rem; min-height: 1.4em; }
.calc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.result-amount { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.1; }
.result-amount small { font-size: .4em; color: var(--muted); font-family: var(--sans); }
.result-uses { display: flex; flex-wrap: wrap; gap: 8px; }
.result-note { font-size: .85rem; color: var(--muted); }

/* 聯絡頁 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list div { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list span { font-size: .85rem; color: var(--muted); }
.contact-list a { text-decoration: none; font-size: 1.1rem; }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form small { color: var(--muted); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.placeholder-note { background: var(--brass-soft); color: var(--brass); border-radius: var(--radius); padding: 14px 18px; font-size: .92rem; }

/* =========================================================
   頁尾
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 120px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .95rem; color: var(--ink); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* =========================================================
   浮動中心：補助公告 ＋ LINE ＋ 電話
   ========================================================= */
.hub { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; justify-items: end; gap: 10px; }
.hub-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px;
  padding: 12px 20px 12px 16px; cursor: pointer; font-weight: 500;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,.45);
}
.hub-toggle svg { width: 20px; height: 20px; }
.hub-dot { width: 9px; height: 9px; border-radius: 50%; background: #E0563F; box-shadow: 0 0 0 3px color-mix(in srgb, #E0563F 30%, transparent); display: none; }
.hub.has-new .hub-dot { display: inline-block; }
.hub-panel {
  width: 360px; max-height: min(560px, 80vh); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.4);
  display: none;
}
.hub.open .hub-panel { display: block; }
.hub-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; position: sticky; top: 0; background: var(--surface); }
.hub-head strong { font-size: 1rem; }
.hub-head .grip { font-size: .75rem; color: var(--muted); }
.hub-close { background: none; border: 0; width: 36px; height: 36px; cursor: pointer; font-size: 1.3rem; color: var(--muted); border-radius: 50%; }
.hub-close:hover { background: var(--surface-2); }
.hub-notices { padding: 8px 18px; display: grid; }
.hub-notice { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; text-decoration: none; }
.hub-notice:last-child { border-bottom: 0; }
.hub-notice b { font-size: .98rem; }
.hub-notice span { font-size: .84rem; color: var(--muted); }
.hub-links { display: flex; gap: 8px; padding: 0 18px 14px; }
.hub-links a { flex: 1; font-size: .88rem; }
.hub-contact { background: var(--surface-2); padding: 16px 18px; display: grid; gap: 10px; }
.hub-contact p { font-size: .88rem; color: var(--muted); }
.hub-contact .btn-row .btn { flex: 1; }
.hub-qr { display: none; align-items: center; gap: 12px; font-size: .84rem; color: var(--muted); }
.hub-qr img { width: 84px; height: 84px; border-radius: var(--radius-sm); background: #fff; }
@media (hover: hover) and (pointer: fine) { .hub-qr.has-img { display: flex; } }

@media (max-width: 640px) {
  .hub { right: 14px; bottom: 14px; }
  .hub-head { cursor: default; }
  .hub-head .grip { display: none; }
  .hub.open .hub-toggle { display: none; }
  .hub-panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 82vh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .hub.open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   首屏輪播
   ========================================================= */
.h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.22; }
.hero-slider { padding-bottom: clamp(40px, 6vw, 72px); }
.slides { display: grid; touch-action: pan-y; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }

/* 標題逐行升起 */
.slide .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.slide .ln > span { display: inline-block; transform: translateY(108%); transition: transform .9s cubic-bezier(.2,.75,.1,1); }
.slide.is-active .ln > span { transform: none; }
.slide.is-active .ln:nth-child(2) > span { transition-delay: .09s; }
.slide .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .3s, transform .7s ease .3s; }
.slide.is-active .reveal { opacity: 1; transform: none; }
.slide.is-active .reveal + .reveal { transition-delay: .42s; }

/* 主視覺由上往下掃開，並帶一道掃描光 */
.slide .hero-stage { clip-path: inset(0 0 100% 0 round 18px); transition: clip-path 1s cubic-bezier(.6,0,.2,1) .1s; }
.slide.is-active .hero-stage { clip-path: inset(0 0 0 0 round 18px); }
.hero-stage::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #7FE0B0, transparent);
  box-shadow: 0 0 18px 4px rgba(127, 224, 176, .35);
  opacity: 0;
}
.slide.is-active .hero-stage::after { animation: sweep 1.1s cubic-bezier(.6,0,.2,1) .1s 1; }
@keyframes sweep { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  background-size: 28px 28px, 28px 28px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
}
.grid-bg { background-blend-mode: normal; }
.grid-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, transparent, var(--bg)); pointer-events: none; }

/* 第 1 張：機台細節動畫 */
.machine .scan { animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(240px); } }
.machine .lamp { animation: lamp 2.4s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .55; } }

/* 第 2 張：全廠連線 */
.floor { position: absolute; left: 0; top: 4%; width: 100%; height: 92%; }
.floor .wire { fill: none; stroke: var(--line); stroke-width: 1.6; }
.floor .flow { fill: none; stroke: #4DB383; stroke-width: 1.6; stroke-dasharray: 6 14; animation: flow 1.4s linear infinite; opacity: .8; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.floor .blink { animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.floor .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }

.dash-float {
  position: absolute; right: 5%; bottom: 5%; width: min(260px, 52%);
  background: var(--panel-dark); color: var(--panel-dark-ink);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 24px 48px -24px rgba(20,20,20,.5);
}
.dash-big { font-family: var(--mono); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin: 12px 0 10px; }
.spark i { flex: 1; height: var(--h); background: linear-gradient(to top, #2E7D57, #6FD8A2); border-radius: 2px 2px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform .6s cubic-bezier(.2,.75,.1,1); }
.slide.is-active .spark i { transform: scaleY(1); transition-delay: calc(.6s + var(--d)); }
.dash-legend { display: flex; gap: 12px; font-size: .78rem; color: #A9ACAF; }
.dash-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.dash-legend .run { background: #4DB383; } .dash-legend .idle { background: #D8A63A; } .dash-legend .stop { background: #C9574A; }

/* 第 3 張：試算示意 */
.calc-demo { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 36px; padding: 8%; }
.calc-demo-card {
  width: min(340px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 8px; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20,20,20,.35);
}
.calc-demo-card small { color: var(--muted); font-size: .82rem; }
.calc-demo-input { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--mono); font-size: 1.3rem; min-height: 52px; background: var(--bg); margin-bottom: 14px; }
.calc-demo-input em { margin-left: auto; font-style: normal; font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.caret { width: 2px; height: 1.2em; background: var(--brass); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.calc-demo-result { font-family: var(--serif); font-size: 2.2rem; line-height: 1.2; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.calc-demo-result em { font-style: normal; font-size: .45em; color: var(--muted); font-family: var(--sans); }
.calc-demo-result.show { opacity: 1; transform: none; }
.calc-demo-scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(transparent, rgba(134,106,56,.14), transparent); pointer-events: none; }
.calc-demo-scan.run { animation: cardscan .9s ease-in-out 1; }
@keyframes cardscan { to { top: 100%; } }

.calc-demo-steps { list-style: none; margin: 0; padding: 0; width: min(400px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; font-size: .82rem; color: var(--muted); text-align: center; }
.calc-demo-steps::before, .calc-demo-steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 7px; height: 2px; background: var(--line); }
.calc-demo-steps::after { background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6,0,.2,1) .8s; }
.slide.is-active .calc-demo-steps::after { transform: scaleX(1); }
.calc-demo-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; }
.calc-demo-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: background .3s, border-color .3s; }
.slide.is-active .calc-demo-steps li::before { background: var(--brass); border-color: var(--brass); }
.slide.is-active .calc-demo-steps li:nth-child(1)::before { transition-delay: .8s; }
.slide.is-active .calc-demo-steps li:nth-child(2)::before { transition-delay: 1.3s; }
.slide.is-active .calc-demo-steps li:nth-child(3)::before { transition-delay: 1.8s; }
.slide.is-active .calc-demo-steps li:nth-child(4)::before { transition-delay: 2.3s; }

/* 輪播控制列 */
.slider-nav { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.slider-tabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.slider-tab { position: relative; background: none; border: 0; padding: 14px 0 4px; text-align: left; color: var(--muted); cursor: pointer; font-size: .95rem; border-top: 2px solid var(--line); }
.slider-tab:hover, .slider-tab[aria-current="true"] { color: var(--ink); }
.slider-tab .bar { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.slider-tab[aria-current="true"] .bar { animation: fillbar var(--slide-time, 7s) linear forwards; }
.hero-slider.paused .slider-tab .bar { animation-play-state: paused; }
.hero-slider.static .slider-tab[aria-current="true"] .bar { animation: none; transform: scaleX(1); }
@keyframes fillbar { to { transform: scaleX(1); } }
.slider-pause { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.slider-pause svg { width: 16px; height: 16px; fill: var(--ink); }
.slider-pause .i-play, .hero-slider.paused .slider-pause .i-pause { display: none; }
.hero-slider.paused .slider-pause .i-play { display: block; }

@media (max-width: 640px) {
  .dash-float { left: 5%; right: 5%; width: auto; bottom: 4%; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: end; }
  .dash-float .readout-head { grid-column: 1 / -1; margin-bottom: 0; }
  .dash-float .dash-big { font-size: 1.5rem; }
  .dash-float .spark { height: 30px; margin: 0; }
  .dash-float .dash-legend { grid-column: 1 / -1; }
  .dash-float .readout-note { display: none; }
  .floor { top: -2%; height: 74%; }
  .calc-demo { padding: 6%; gap: 28px; }
  .slider-tab { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slide .ln > span, .slide .reveal { transform: none !important; opacity: 1 !important; }
  .slide .hero-stage { clip-path: none !important; }
  .spark i { transform: none !important; }
  .calc-demo-steps::after { transform: scaleX(1) !important; }
  .calc-demo-steps li::before { background: var(--brass) !important; border-color: var(--brass) !important; }
}

/* 首頁：導向各子頁 */
.overview { border-top: 1px solid var(--line); }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entry {
  display: grid; gap: 12px; align-content: start; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; min-height: 220px; transition: border-color .2s, transform .2s;
}
.entry:hover { border-color: var(--ink); transform: translateY(-2px); }
.entry h3 { font-size: 1.5rem; }
.entry p { color: var(--muted); }
.entry-link { margin-top: auto; align-self: end; font-weight: 500; color: var(--brass); border-bottom: 1px solid currentColor; justify-self: start; padding-bottom: 2px; }
@media (max-width: 820px) { .entry-grid { grid-template-columns: 1fr; } .entry { min-height: 0; } }

/* 輪播標題：每行不斷字 */
.hero-slider h1, .hero-slider .h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
.slide .ln > span { white-space: nowrap; }

/* 輪播：上一張／下一張 */
.slider-arrows { display: flex; gap: 10px; margin-top: 28px; }
.slider-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.slider-arrow:hover { border-color: var(--ink); background: var(--surface); }
.slider-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 產業資訊 */
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; }
.news-card.is-link { transition: border-color .2s; }
.news-card.is-link:hover { border-color: var(--ink); }
.news-img { aspect-ratio: 16 / 9; background: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); }
.news-body h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; line-height: 1.5; }
.news-body p { color: var(--muted); font-size: .95rem; }

/* 英文版：標題可以自然換行 */
html[lang="en"] .slide .ln > span { white-space: normal; }
html[lang="en"] .hero-slider h1, html[lang="en"] .hero-slider .h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.15; }
.hero-copy, .hero-visual { min-width: 0; }

/* =========================================================
   v2 首頁：大圖、超大字、極小標註
   照片放進 assets/img/（photo-01.jpg …），會自動取代佔位
   ========================================================= */
:root { --gutter: clamp(20px, 4vw, 56px); --header-h: 73px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.04; margin: 0; }
.giant { font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 12vw, 200px); line-height: .9; letter-spacing: -.02em; margin: 0; }
.text-link { font-size: .95rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; align-self: flex-start; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-inline: var(--gutter); }

/* 照片佔位：斜紋＋編號，有照片時自動換上 */
.photo {
  position: relative; overflow: hidden;
  background-color: #CFC8BD;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 1px, transparent 1px 16px);
  background-size: cover; background-position: center;
}
.photo-dark { background-color: #2E2B27; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 16px); }
.photo-label { position: absolute; left: 20px; bottom: 18px; z-index: 1; font-family: var(--mono); font-size: 11px; color: #6B655C; }
.photo-dark .photo-label { color: #B5ADA1; }
.photo.has-img .photo-label, .photo.has-img .photo-art { display: none; }

/* 首頁頁首：疊在首屏上，捲動後才有底色 */
body[data-page="home"] .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- 首屏 ---------- */
.v2-hero { position: relative; height: clamp(760px, 100svh, 980px); margin-top: calc(-1 * var(--header-h)); }
.v2-hero .slides { position: absolute; inset: 0; display: block; }
.v2-hero .slide { position: absolute; inset: 0; }
.hero-photo { position: absolute; right: 16px; top: 16px; bottom: 16px; width: 62%; border-radius: 28px; }
.hero-photo.photo-grid:not(.has-img) {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(160deg, #DAD4CA, #CFC8BD);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.hero-photo .photo-label { left: auto; right: 64px; bottom: 24px; }
.photo-art { position: absolute; inset: 0; }
.photo-art .machine { position: absolute; left: 26%; top: 12%; width: 60%; height: 84%; }
.photo-art .floor { position: absolute; left: 22%; top: 8%; width: 64%; height: 84%; }
.mark { position: absolute; font-size: 16px; color: #6B655C; line-height: 1; z-index: 2; }
.mark-tl { left: 20px; top: 20px; } .mark-br { right: 20px; bottom: 20px; }
.hero-vertical { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; color: #4A4640; letter-spacing: .3em; z-index: 2; }
html[lang="en"] .hero-vertical { letter-spacing: .12em; }
.hero-dim { position: absolute; left: 32%; right: 12%; bottom: 132px; display: grid; gap: 8px; z-index: 2; }
.dim-line { display: flex; align-items: center; }
.dim-line i { width: 1px; height: 14px; background: #4A4640; }
.dim-line b { flex: 1; height: 1px; background: #4A4640; }
.dim-text { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: #4A4640; }
.hero-card { position: absolute; z-index: 3; right: 9%; top: 120px; }
.hero-card .readout, .hero-card .dash-float { position: static; width: 220px; }
#slide-3 .hero-card { inset: 0; display: grid; place-items: center; }
#slide-3 .calc-demo { position: static; padding: 0; }

.hero-title {
  position: absolute; z-index: 4; left: calc(var(--gutter) - 4px); top: calc(var(--header-h) + 84px); margin: 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(60px, min(10.5vw, 15.5svh), 172px); line-height: .98; letter-spacing: -.02em;
  pointer-events: none;
}
html[lang="en"] .hero-title { font-size: clamp(52px, min(8.2vw, 13svh), 136px); line-height: 1; }
.hero-title .ln > span { white-space: nowrap !important; }
.hero-sub { position: absolute; z-index: 4; left: var(--gutter); bottom: 120px; width: min(360px, 30%); display: grid; gap: 20px; }
.hero-sub p { font-size: 15px; line-height: 1.8; color: #3A3D40; margin: 0; }
.hero-meta { position: absolute; z-index: 4; left: var(--gutter); top: calc(var(--header-h) + 28px); display: grid; gap: 6px; }
.hero-nav { position: absolute; z-index: 4; left: var(--gutter); bottom: 48px; width: min(360px, 30%); display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.hero-num { font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-nav .slider-arrows { margin: 0 0 0 auto; }

/* 換張動畫：照片由上往下掃開 */
.v2-hero .hero-photo { clip-path: inset(0 0 100% 0 round 28px); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1); }
.v2-hero .slide.is-active .hero-photo { clip-path: inset(0 0 0 0 round 28px); }
.v2-hero .hero-photo::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #F3D9A4, transparent); box-shadow: 0 0 18px 4px rgba(243,217,164,.45);
}
.v2-hero .slide.is-active .hero-photo::after { animation: sweep 1.1s cubic-bezier(.6,0,.2,1) 1; }
.v2-hero .hero-card { opacity: 0; transform: translateY(12px); transition: opacity .6s ease .7s, transform .6s ease .7s; }
.v2-hero .slide.is-active .hero-card { opacity: 1; transform: none; }

/* ---------- 跑馬燈 ---------- */
.marquee { border-block: 1px solid var(--ink); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 36s linear infinite; padding-right: 44px; }
.marquee-track span { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 6vw, 84px); line-height: 1; white-space: nowrap; }
.marquee-track i { width: 14px; height: 14px; border-radius: 50%; background: var(--brass); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 宣言 ---------- */
.v2-statement { padding-block: clamp(96px, 12vw, 160px) clamp(72px, 9vw, 120px); align-items: end; }
.v2-statement .display { grid-column: 1 / span 9; font-size: clamp(44px, 8vw, 128px); }
.statement-side { grid-column: 10 / span 3; display: grid; gap: 16px; padding-bottom: 12px; }
.statement-side p { margin: 0; font-size: 15px; line-height: 1.85; color: #3A3D40; }

/* ---------- 產品與服務 ---------- */
.v2-feature { display: flex; align-items: flex-end; padding-bottom: 40px; }
.feature-photo { width: 64%; aspect-ratio: 16 / 11; border-radius: 0 28px 28px 0; flex: none; }
.feature-photo .photo-label { top: 24px; bottom: auto; left: 32px; }
.feature-text { position: relative; z-index: 2; margin-left: -140px; padding: 0 var(--gutter) 32px 0; display: grid; gap: 22px; text-decoration: none; flex: 1; }
.feature-text .display { font-size: clamp(56px, 7.6vw, 120px); line-height: 1; }
.feature-text .indent { padding-left: 148px; }
.feature-text div.indent { display: grid; gap: 18px; }
.feature-text p { margin: 0; font-size: 15px; line-height: 1.8; color: #3A3D40; max-width: 20em; }
.feature-text:hover .display { color: var(--brass); }

/* ---------- 補助＋案例 ---------- */
.v2-pair { padding-block: clamp(80px, 9vw, 120px) clamp(96px, 12vw, 160px); align-items: start; }
.pair-item { display: grid; gap: 22px; text-decoration: none; }
.pair-arch { grid-column: 2 / span 4; }
.pair-square { grid-column: 8 / span 5; margin-top: 280px; }
.pair-item .photo { border-radius: 24px; }
.pair-item .arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; }
.pair-item .arch .photo-label { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pair-item .square { aspect-ratio: 1 / 1; }
.pair-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 16px; }
.pair-head h3 { font-size: clamp(32px, 3.2vw, 44px); }
.pair-item p { margin: 0; font-size: 15px; line-height: 1.8; color: #3A3D40; }
.pair-item:hover h3 { color: var(--brass); }

/* ---------- 滿版暗色大圖 ---------- */
.v2-band { height: clamp(560px, 60vw, 820px); color: #F7F5F1; }
.v2-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(28,26,23,.8), rgba(28,26,23,0) 55%); }
.v2-band.has-img::before { background: linear-gradient(270deg, rgba(28,26,23,.75), rgba(28,26,23,.1) 60%), linear-gradient(0deg, rgba(28,26,23,.6), transparent 40%); }
.v2-band .photo-label { top: 48px; bottom: auto; left: var(--gutter); }
.band-title { position: absolute; right: 8%; top: 80px; margin: 0; writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 7.5vw, 108px); line-height: 1.15; letter-spacing: .06em; }
html[lang="en"] .band-title { writing-mode: horizontal-tb; top: auto; bottom: 64px; right: var(--gutter); text-align: right; letter-spacing: -.01em; line-height: 1.02; }
.band-side { position: absolute; left: var(--gutter); bottom: 56px; display: grid; gap: 14px; max-width: 340px; }
.band-side .mono { color: #CFC8BD; }
.band-side p { margin: 0; font-size: 15px; line-height: 1.8; color: #E9E6E0; }

/* ---------- 產業資訊 ---------- */
.v2-news { padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(80px, 10vw, 140px); }
.news-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.news-top .text-link { margin-bottom: 18px; }
.news-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.nf-main { grid-column: 1 / span 7; display: grid; gap: 18px; text-decoration: none; align-content: start; }
.nf-photo { aspect-ratio: 16 / 10; border-radius: 24px; }
.nf-main h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; }
.nf-main p { margin: 0; color: var(--muted); }
.nf-list { grid-column: 9 / span 4; border-top: 1px solid var(--ink); display: flex; flex-direction: column; }
.nf-item { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.nf-title { font-size: 19px; font-weight: 700; line-height: 1.5; }
.news-meta2 { display: flex; gap: 14px; }
a.nf-main:hover h3, a.nf-item:hover .nf-title { color: var(--brass); }

/* ---------- 行動呼籲 ---------- */
.v2-cta { margin: 0 var(--gutter) clamp(80px, 9vw, 120px); border-top: 1px solid var(--ink); padding-top: 56px; display: grid; gap: 40px; }
.v2-cta .display { font-size: clamp(48px, 9.4vw, 152px); line-height: 1; letter-spacing: -.02em; }
.cta-row { display: flex; justify-content: flex-end; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.cta-row p { margin: 0; color: var(--muted); }

/* ---------- 頁尾超大字 ---------- */
.site-footer { overflow: hidden; padding-bottom: 24px; }
.footer-mark { margin-top: 32px; font-family: var(--serif); font-weight: 700; font-size: clamp(80px, 19vw, 300px); line-height: .9; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
html[lang="en"] .footer-mark { letter-spacing: -.02em; }

/* ---------- 平板 ---------- */
@media (max-width: 1100px) {
  .hero-photo { width: 58%; }
  .hero-sub, .hero-nav { width: min(320px, 34%); }
  .hero-dim { display: none; }
}

/* ---------- 手機 ---------- */
@media (max-width: 820px) {
  .v2-hero { height: max(720px, 100svh); }
  .hero-photo { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; border-radius: 24px; }
  .v2-hero .hero-photo { clip-path: inset(0 0 100% 0 round 24px); }
  .v2-hero .slide.is-active .hero-photo { clip-path: inset(0 0 0 0 round 24px); }
  .hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(236,233,228,.97) 0%, rgba(236,233,228,.88) 46%, rgba(236,233,228,0) 72%); }
  .photo-art .machine { left: 22%; top: 16%; width: 70%; height: 46%; }
  .photo-art .floor { left: 4%; top: 14%; width: 92%; height: 46%; }
  .hero-vertical, .hero-photo .photo-label { display: none; }
  .hero-card { top: 112px; right: 20px; }
  .hero-card .readout, .hero-card .dash-float { width: 190px; padding: 12px 14px; }
  .hero-card .readout dl { display: grid; gap: 6px; grid-template-columns: none; }
  .hero-card .readout dl div { flex-direction: row; align-items: baseline; }
  .hero-card .dash-float { display: block; }
  .hero-card .dash-float .readout-head { margin-bottom: 6px; }
  .hero-card .dash-float .spark { height: 28px; margin: 8px 0; }
  #slide-3 .hero-card { inset: 100px 20px auto 20px; display: block; }
  #slide-3 .calc-demo-card { margin-inline: auto; }
  #slide-3 .calc-demo-steps { display: none; }
  .hero-title { top: auto; bottom: 312px; left: 24px; font-size: clamp(44px, 13.5vw, 60px); }
  html[lang="en"] .hero-title { font-size: clamp(38px, 11vw, 52px); }
  .hero-sub { left: 24px; right: 24px; width: auto; bottom: 100px; }
  .hero-sub p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-sub .btn-row .btn { flex: 1; padding-inline: 14px; }
  .hero-meta { display: none; }
  .hero-nav { left: 24px; right: 24px; width: auto; bottom: 28px; }
  .hero-num { font-size: 30px; }

  .v2-statement .display, .statement-side { grid-column: 1 / -1; }
  .v2-feature { flex-direction: column; align-items: stretch; }
  .feature-photo { width: calc(100% - 16px); }
  .feature-text { margin: -56px 0 0; padding: 0 var(--gutter); }
  .feature-text .indent { padding-left: 0; }
  .pair-arch, .pair-square { grid-column: 1 / -1; margin-top: 0; }
  .pair-square { margin-top: 32px; }
  .band-title { right: var(--gutter); top: 56px; font-size: clamp(52px, 14vw, 72px); }
  html[lang="en"] .band-title { bottom: auto; top: 56px; font-size: clamp(40px, 11vw, 60px); }
  .band-side { right: var(--gutter); }
  .nf-main, .nf-list { grid-column: 1 / -1; }
  .cta-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .v2-hero .hero-photo { clip-path: none !important; }
  .v2-hero .hero-card { opacity: 1; transform: none; }
}

/* v2 微調 */
body[data-page="home"] .header-inner { width: auto; padding-inline: var(--gutter); }
.hero-card .readout dt { white-space: nowrap; }
@media (max-width: 820px) {
  .hero-nav { gap: 10px; }
  .hero-nav .mono { display: none; }
  .hero-nav .slider-arrows { margin: 0; }
  .hero-sub .btn-row { flex-wrap: nowrap; }
  .hero-sub .btn-row .btn { white-space: nowrap; font-size: 14px; padding-inline: 10px; min-width: 0; }
  html[lang="en"] .hero-sub .btn-row .btn { font-size: 13px; }
  html[lang="en"] .hero-card .readout { width: 210px; }
  #slide-3 .hero-card { top: 92px; }
  #slide-3 .calc-demo-card { padding: 16px 18px; gap: 4px; width: min(280px, 100%); }
  #slide-3 .calc-demo-input { margin-bottom: 6px; min-height: 44px; }
  #slide-3 .calc-demo-result { font-size: 1.8rem; }
  #slide-3 .calc-demo-card .readout-note { display: none; }
}
@media (max-width: 820px) {
  .hero-num { display: none; }
  .hero-nav { border-top: 0; padding-top: 0; }
  .hero-nav .slider-arrows { gap: 6px; }
  .hero-nav .slider-arrow { width: 42px; height: 42px; }
}

/* =========================================================
   字級調整：大字縮小約三到四成，保留大小對比但不誇張
   ========================================================= */
.hero-title { font-size: clamp(48px, min(7vw, 11svh), 112px); line-height: 1.06; letter-spacing: -.01em; top: calc(var(--header-h) + 110px); }
html[lang="en"] .hero-title { font-size: clamp(44px, min(5.8vw, 9.5svh), 96px); line-height: 1.04; }
.giant { font-size: clamp(48px, 7vw, 112px); line-height: 1; }
.marquee { padding: 16px 0; }
.marquee-track span { font-size: clamp(32px, 3.6vw, 52px); }
.marquee-track i { width: 10px; height: 10px; }
.v2-statement .display { font-size: clamp(36px, 5vw, 76px); line-height: 1.15; }
.feature-text { margin-left: -96px; }
.feature-text .display { font-size: clamp(44px, 5vw, 76px); line-height: 1.08; }
.feature-text .indent { padding-left: 104px; }
.pair-head h3 { font-size: clamp(28px, 2.6vw, 36px); }
.band-title { font-size: clamp(48px, 5.2vw, 76px); letter-spacing: .08em; }
.v2-cta .display { font-size: clamp(36px, 5.4vw, 84px); line-height: 1.12; letter-spacing: -.01em; }
.footer-mark { font-size: clamp(64px, 12vw, 190px); }
.nf-main h3 { font-size: clamp(22px, 2.2vw, 30px); }
@media (max-width: 820px) {
  .hero-title { top: auto; bottom: 312px; font-size: clamp(38px, 11vw, 48px); }
  html[lang="en"] .hero-title { font-size: clamp(34px, 9.6vw, 44px); }
  .feature-text { margin: -40px 0 0; }
  .feature-text .indent { padding-left: 0; }
  .band-title { font-size: clamp(40px, 11vw, 56px); }
  html[lang="en"] .band-title { font-size: clamp(34px, 9.5vw, 48px); }
}

/* 字體預覽面板（網址加上 ?fonts 才會出現） */
.font-picker { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.35); display: grid; gap: 6px; font-size: 14px; }
.font-picker b { font-size: 13px; }
.font-picker button { text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 15px; }
.font-picker button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.font-picker small { color: var(--muted); font-size: 11px; }

/* =========================================================
   v3 首頁：主標題固定、右側照片輪播、團隊經歷、為什麼選擇
   ========================================================= */
.v3-hero { position: relative; min-height: clamp(760px, 100svh, 940px); margin-top: calc(-1 * var(--header-h)); display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
.v3-hero .slides { position: relative; display: block; min-height: inherit; }
.v3-hero .slide { position: absolute; inset: 0; }
.v3-hero .hero-photo { left: 0; right: 16px; width: auto; }
.v3-hero .hero-photo { clip-path: inset(0 0 100% 0 round 28px); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1); }
.v3-hero .slide.is-active .hero-photo { clip-path: inset(0 0 0 0 round 28px); }
.v3-hero .hero-photo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 5; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, #F3D9A4, transparent); box-shadow: 0 0 18px 4px rgba(243,217,164,.45); }
.v3-hero .slide.is-active .hero-photo::after { animation: sweep 1.1s cubic-bezier(.6,0,.2,1) 1; }
.v3-hero .hero-card { opacity: 0; transform: translateY(12px); transition: opacity .6s ease .7s, transform .6s ease .7s; }
.v3-hero .slide.is-active .hero-card { opacity: 1; transform: none; }
.v3-hero .photo-art .machine { left: 18%; top: 10%; width: 64%; height: 70%; }
.v3-hero .photo-art .floor { left: 14%; top: 6%; width: 70%; height: 70%; }
.v3-hero .hero-card { right: 7%; top: 112px; }

.hero-copy3 { position: relative; z-index: 4; padding: calc(var(--header-h) + 56px) 40px 48px var(--gutter); display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.hero-h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.5vw, 54px); line-height: 1.22; letter-spacing: .01em; }
html[lang="en"] .hero-h1 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.12; letter-spacing: -.01em; }
.hero-lead { margin: 0; font-size: 16px; line-height: 1.85; color: #3A3D40; max-width: 30em; }
.kw-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.kw-tags li { font-family: var(--mono); font-size: 12px; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.kw-tags li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); margin-left: -8px; }

.slide-tabs { display: grid; border-top: 1px solid var(--ink); margin-top: 8px; }
.slide-tab { display: flex; align-items: center; gap: 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; min-height: 48px; font-size: 16px; color: var(--muted); cursor: pointer; transition: color .2s; }
.slide-tab .mono { transition: color .2s; }
.slide-tab:hover, .slide-tab[aria-selected="true"] { color: var(--ink); }
.slide-tab[aria-selected="true"] { font-weight: 700; }
.slide-tab[aria-selected="true"] .mono { color: var(--brass); }
.slide-tab[aria-selected="true"]::after { content: ""; margin-left: auto; width: 28px; height: 1px; background: var(--ink); }

.slide-cap { position: absolute; z-index: 4; left: 28px; bottom: 28px; width: min(420px, calc(100% - 56px)); background: rgba(247,245,241,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; padding: 16px 20px; display: grid; gap: 8px; }
.slide-cap p { margin: 0; font-size: 15px; line-height: 1.7; }
.slide-cap .text-link { font-size: 14px; }
.v3-hero .slide-cap { opacity: 0; transform: translateY(10px); transition: opacity .5s ease .8s, transform .5s ease .8s; }
.v3-hero .slide.is-active .slide-cap { opacity: 1; transform: none; }

.note-card { width: 230px; background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: 0 24px 48px -24px rgba(20,20,20,.45); display: grid; gap: 10px; }
.note-card .mono { color: var(--brass); }
.note-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note-card li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; padding-top: 8px; border-top: 1px solid var(--line); }
.note-card li::before { content: "✓"; color: var(--run); font-weight: 700; }

/* 團隊經歷 */
.v3-trust { padding: clamp(56px, 7vw, 88px) var(--gutter) 0; display: grid; gap: 28px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.trust-item { padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.trust-item + .trust-item { padding-left: 28px; border-left: 1px solid var(--line); }
.trust-item b { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.trust-item b small { font-family: var(--sans); font-size: 18px; font-weight: 500; }
.trust-item p { margin: 0; color: #3A3D40; line-height: 1.7; max-width: 20em; }
.trust-note { margin: 0; font-size: 13px; color: var(--muted); }

/* 為什麼選擇 */
.v3-why { padding: 0 var(--gutter) clamp(96px, 11vw, 150px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.why-head { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.why-head .display { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.2; }
.why-list { grid-column: 6 / span 7; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.why-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-list .mono { color: var(--brass); padding-top: 8px; grid-row: span 2; }
.why-list h3 { font-family: var(--sans); font-weight: 700; font-size: 21px; }
.why-list p { margin: 0; color: #3A3D40; line-height: 1.8; }

@media (max-width: 1100px) {
  .v3-hero { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .hero-copy3 { padding-right: 28px; }
  .v3-hero .hero-card { display: none; }
}
@media (max-width: 820px) {
  .v3-hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy3 { padding: calc(var(--header-h) + 32px) var(--gutter) 28px; gap: 18px; }
  .hero-h1 { font-size: clamp(30px, 8.4vw, 38px); }
  html[lang="en"] .hero-h1 { font-size: clamp(28px, 7.6vw, 34px); }
  .hero-lead { font-size: 15px; }
  .hero-copy3 .btn-row .btn { flex: 1; }
  .slide-tabs { order: 10; }
  .v3-hero .slides { min-height: 0; height: 420px; margin: 0 8px; }
  .v3-hero .hero-photo { inset: 0; border-radius: 22px; }
  .v3-hero .hero-photo::before { display: none; }
  .v3-hero .hero-card { display: block; top: 20px; right: 16px; }
  .v3-hero .hero-card .readout, .v3-hero .hero-card .dash-float, .note-card { width: 190px; }
  .note-card { padding: 12px 14px; gap: 6px; }
  .note-card li { font-size: 13px; padding-top: 6px; }
  .v3-hero .photo-art .machine { left: 4%; top: 18%; width: 60%; height: 52%; }
  .v3-hero .photo-art .floor { left: 0; top: 10%; width: 70%; height: 56%; }
  .slide-cap { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px; }
  .slide-cap p { font-size: 14px; }
  .v3-hero .hero-vertical { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item + .trust-item { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .why-head, .why-list { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-hero .hero-photo { clip-path: none !important; }
  .v3-hero .hero-card, .v3-hero .slide-cap { opacity: 1; transform: none; }
}
.hero-h1 { font-size: clamp(30px, 3.1vw, 46px); }
.hero-h1 > span { display: block; white-space: nowrap; }
html[lang="en"] .hero-h1 { font-size: clamp(28px, 2.9vw, 44px); }
@media (max-width: 820px) {
  .hero-h1 { font-size: clamp(26px, 8.2vw, 34px); }
  html[lang="en"] .hero-h1 { font-size: clamp(25px, 7.4vw, 32px); }
}
.kw-tags li + li::before { content: none; }
.kw-tags li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); flex: none; }
.kw-tags li { gap: 8px; }
@media (max-width: 820px) {
  html[lang="en"] .hero-h1 > span { display: inline; white-space: normal; }
  html[lang="en"] .hero-h1 > span::after { content: " "; }
  .hero-copy3 .btn-row { flex-wrap: nowrap; }
  .hero-copy3 .btn-row .btn { white-space: nowrap; padding-inline: 12px; font-size: 15px; }
  html[lang="en"] .hero-copy3 .btn-row .btn { font-size: 14px; }
}
.kw-tags li + li::before { content: ""; margin-left: 0; }
html[lang="en"] .hero-h1 { font-size: clamp(26px, 2.7vw, 40px); line-height: 1.15; }
html[lang="en"] .hero-h1 > span { display: inline; white-space: normal; }
html[lang="en"] .hero-h1 > span::after { content: " "; }
.v3-hero #slide-3 .hero-card { inset: auto; right: 7%; top: 112px; display: block; }
@media (max-width: 1100px) { .v3-hero #slide-3 .hero-card { display: none; } }
@media (max-width: 820px) { .v3-hero #slide-3 .hero-card { display: block; top: 20px; right: 16px; } }
.v3-hero .hero-photo .photo-label { left: 28px; right: auto; top: 84px; bottom: auto; }
@media (max-width: 820px) { .v3-hero .hero-photo .photo-label { display: block; top: auto; bottom: 120px; left: 20px; } }

/* 照片佔位的編號只留在 README 對照，畫面上不顯示 */
.photo-label { display: none !important; }

/* 換行整理：標題平均分行，段落避免最後一行只剩一兩個字 */
h1, h2, h3, .display, .band-title, .nf-title, .slide-tab { text-wrap: balance; }
p, li, .slide-cap p { text-wrap: pretty; }
body { line-break: strict; }
.why-head { grid-column: 1 / span 5; }
.why-list { grid-column: 7 / span 6; }
@media (max-width: 820px) {
  .why-head, .why-list { grid-column: 1 / -1; }
}
.nob { white-space: nowrap; }
p, li, .slide-cap p { text-wrap: wrap; }
@media (max-width: 820px) { .why-list li { grid-template-columns: 32px minmax(0, 1fr); } }

/* =========================================================
   v4：四方案卡片、訂單旅程、產品頁
   ========================================================= */
.quote-card, .chat-card { width: 240px; background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: 0 24px 48px -24px rgba(20,20,20,.45); display: grid; gap: 10px; }
.quote-card .mono { color: var(--brass); }
.qc-file { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--line); border-radius: 8px; padding: 10px; font-size: 14px; }
.qc-file svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; flex: none; }
.qc-file em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--run); white-space: nowrap; }
.qc-row { display: flex; justify-content: space-between; font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.qc-row span, .qc-price span { color: var(--muted); }
.qc-price { display: flex; justify-content: space-between; align-items: baseline; background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.qc-price b { font-family: var(--mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.quote-card small, .chat-note { font-size: 11px; color: var(--muted); }
.chat-badge { justify-self: start; font-size: 12px; font-weight: 700; color: var(--brass); background: var(--brass-soft); border-radius: 999px; padding: 4px 10px; }
.chat-q { justify-self: end; max-width: 88%; background: var(--ink); color: var(--bg); border-radius: 12px 12px 2px 12px; padding: 8px 12px; font-size: 14px; line-height: 1.55; }
.chat-a { max-width: 92%; background: var(--bg); border-radius: 12px 12px 12px 2px; padding: 8px 12px; font-size: 14px; line-height: 1.55; display: grid; gap: 6px; }
.chat-a small { font-size: 11px; color: var(--muted); }
.v3-hero .hero-card.card-readout .readout { width: 220px; }

/* 一張訂單的旅程 */
.v4-journey { padding: 0 var(--gutter) clamp(96px, 11vw, 150px); display: grid; gap: 40px; }
.journey-head { display: grid; gap: 16px; }
.journey-head .display { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.2; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--ink); }
.journey li { position: relative; display: grid; gap: 10px; align-content: start; padding: 40px 20px 0 0; }
.journey li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.journey li:hover::before { background: var(--brass); border-color: var(--brass); }
.journey .mono { color: var(--brass); }
.journey b { font-size: 19px; line-height: 1.45; }
.journey a { font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); justify-self: start; padding-bottom: 2px; }
.journey a:hover { color: var(--ink); border-color: var(--ink); }

/* 產品頁 */
.pv4-hero { padding: calc(var(--header-h) * 0 + clamp(48px, 7vw, 96px)) var(--gutter) clamp(56px, 7vw, 88px); display: grid; gap: 22px; }
.pv4-hero .display { font-size: clamp(40px, 5vw, 72px); }
.pv4-hero .hero-lead { max-width: 36em; }
.stage-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stage-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; }
.stage-nav a:hover { border-color: var(--ink); }
.stage-nav .mono { color: var(--brass); }
.pv4-journey { padding-bottom: clamp(72px, 9vw, 120px); }
.stage { padding: clamp(56px, 7vw, 96px) var(--gutter); border-top: 1px solid var(--ink); display: grid; gap: 40px; scroll-margin-top: 80px; }
.stage-head { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.stage-no { font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 8vw, 120px); line-height: .85; color: var(--brass); }
.stage-title { display: grid; gap: 8px; }
.stage-title h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; }
.dev-badge { justify-self: start; font-size: 13px; font-weight: 700; color: var(--brass); background: var(--brass-soft); border-radius: 999px; padding: 6px 12px; }
.stage-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stage-problem { display: grid; gap: 8px; padding: 20px 22px; background: var(--surface); border-radius: 14px; margin-bottom: 8px; }
.stage-problem p { margin: 0; font-size: 17px; line-height: 1.75; }
.stage-items { list-style: none; margin: 0 0 28px; padding: 0; }
.stage-items li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.stage-items h4 { margin: 0; font-size: 19px; }
.stage-items p { margin: 0; color: #3A3D40; line-height: 1.8; }
.stage-note { margin: -12px 0 24px; font-size: 14px; color: var(--brass); }
.stage-visual { min-height: 420px; border-radius: 24px; display: grid; place-items: center; padding: 32px; position: sticky; top: 96px; }
.stage-visual .dash-mock { width: min(440px, 100%); }
.stage-featured .stage-visual { min-height: 480px; }
.pv4-subsidy { margin: clamp(48px, 6vw, 80px) var(--gutter); padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--panel-dark); color: var(--panel-dark-ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.pv4-subsidy > div:first-child { display: grid; gap: 14px; max-width: 40em; }
.pv4-subsidy .display { font-size: clamp(28px, 3vw, 44px); line-height: 1.2; }
.pv4-subsidy p { margin: 0; color: #C9CCCF; line-height: 1.8; }
.pv4-subsidy .btn { background: var(--panel-dark-ink); color: var(--panel-dark); border-color: var(--panel-dark-ink); }
.pv4-subsidy .btn-ghost { background: transparent; color: var(--panel-dark-ink); }

@media (max-width: 1100px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } .journey::before { display: none; } }
@media (max-width: 820px) {
  .journey { grid-template-columns: 1fr; row-gap: 0; padding-left: 6px; }
  .journey::before { display: block; left: 13px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .journey li { padding: 0 0 26px 36px; }
  .journey li::before { left: 0; top: 2px; }
  .stage-body { grid-template-columns: 1fr; }
  .stage-visual { position: static; min-height: 340px; padding: 20px; }
  .stage-head { gap: 16px; }
  .v3-hero .hero-card .quote-card, .v3-hero .hero-card .chat-card { width: 200px; padding: 12px 14px; gap: 7px; }
  .qc-row, .qc-file, .chat-q, .chat-a { font-size: 13px; }
}
.quote-card, .chat-card { width: 260px; }
.qc-price { gap: 12px; flex-wrap: wrap; }
.qc-price b { font-size: 16px; white-space: nowrap; }
.chat-a { display: block; }
.chat-a small { display: block; margin-top: 6px; }

/* v5：補助申請優先 */
.hero-h1 { font-size: clamp(28px, 2.9vw, 42px); }
@media (max-width: 820px) { .hero-h1 { font-size: clamp(24px, 7.4vw, 32px); } }
.part-head { padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.part-head .display { font-size: clamp(36px, 4.4vw, 64px); }
.part-head p { margin: 0; max-width: 36em; color: #3A3D40; line-height: 1.8; }
.flow-card { width: min(320px, 100%); background: var(--surface); border-radius: 14px; padding: 20px 22px; box-shadow: 0 24px 48px -24px rgba(20,20,20,.4); display: grid; gap: 12px; }
.flow-card .mono { color: var(--brass); }
.flow-card ol { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.flow-card ol::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.flow-card li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 16px; }
.flow-card li span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; flex: none; z-index: 1; }
.v3-hero .hero-card .flow-card { width: 230px; }
.trust-item b { white-space: nowrap; font-size: clamp(40px, 4.4vw, 64px); }
html[lang="en"] .trust-item b { font-size: clamp(34px, 3.6vw, 54px); }

/* Logo */
.brand { gap: 12px; }
.brand-mark { height: 28px; width: auto; display: block; }
.brand-mark-d { display: none; }
@media (prefers-color-scheme: dark) { .brand-mark-l { display: none; } .brand-mark-d { display: block; } }
.brand > span { padding-left: 12px; border-left: 1px solid var(--line); letter-spacing: .12em; }

/* =========================================================
   v6：品牌 logo、子頁面新版（2026-11）
   子頁面一律用：大標題首屏 → 左標題右內容的段落 → 細線列表
   不用一格一格的色塊卡片；深色只用在試算面板與滿版照片帶
   ========================================================= */

/* ---------- Logo（向量，跟著文字色與 --brass 換色） ---------- */
.brand { gap: 12px; color: var(--ink); }
.brand-mark { height: 26px; width: auto; color: var(--ink); flex: none; }
.brand-brass { fill: var(--brass); }
.brand > span.brand-word { display: grid; gap: 5px; padding-left: 12px; border-left: 1px solid var(--line); letter-spacing: 0; line-height: 1; }
.brand-word b { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .3em; margin-right: -.3em; }
.brand-word i { font-style: normal; font-family: "Montserrat", var(--sans); font-weight: 600; font-size: 8.5px; letter-spacing: .46em; color: var(--muted); margin-right: -.46em; }
.brand-lg .brand-mark { height: 34px; }
.brand-lg .brand-word b { font-size: 18px; }
.brand-lg .brand-word i { font-size: 10px; }
.footer-about { margin-top: 18px; max-width: 26em; line-height: 1.85; }
.footer-status { font-style: normal; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.trust-item b small.pre { margin-right: 2px; }

/* ---------- 子頁首屏 ---------- */
.sp-hero {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--ink);
}
.sp-meta { grid-column: 1 / -1; display: flex; gap: 10px 28px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-meta .mono:first-child { color: var(--brass); }
.sp-meta .mono:last-child { margin-left: auto; }
.sp-title { grid-column: 1 / span 8; margin: clamp(24px, 5vw, 72px) 0 0; font-family: var(--serif); font-weight: 600; font-size: clamp(60px, 10vw, 164px); line-height: .96; letter-spacing: -.02em; }
.sp-side { grid-column: 9 / span 4; display: grid; gap: 24px; padding-bottom: 12px; }
.sp-lead { margin: 0; font-size: 16px; line-height: 1.9; color: var(--muted); }
.sp-hero .mark { position: absolute; font-size: 16px; line-height: 1; color: var(--muted); }
.sp-hero .mark-tr { right: var(--gutter); top: clamp(28px, 4vw, 56px); transform: translate(50%, -50%); }

/* ---------- 子頁段落：左標題、右內容 ---------- */
.sp-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; scroll-margin-top: 80px; }
.sp-sec-head { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; align-self: start; position: sticky; top: 104px; }
.sp-sec-head > .mono:first-child { color: var(--brass); }
.sp-sec-head h2 { font-size: clamp(32px, 3.3vw, 50px); line-height: 1.15; letter-spacing: 0; }
.sp-sec-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 22em; }
.sp-sec-head .text-link { margin-top: 6px; }
.sp-sec-body { grid-column: 6 / span 7; border-top: 1px solid var(--ink); min-width: 0; }
.sp-sec-body.flush { border-top: 0; }
.sp-sec.wide .sp-sec-head { grid-column: 1 / span 7; position: static; }
.sp-sec.wide .sp-sec-body { grid-column: 1 / -1; }
.sp-sec:last-of-type { padding-bottom: clamp(72px, 9vw, 128px); }

/* 細線列表 */
.sp-rows { list-style: none; margin: 0; padding: 0; }
.sp-rows > li, .sp-rows > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sp-rows .no { font-family: var(--mono); font-size: 12px; color: var(--brass); padding-top: 5px; }
.sp-rows h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: .01em; line-height: 1.5; }
.sp-rows p { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.85; }
.sp-rows .tag-dev { justify-self: start; font-size: 12px; font-weight: 700; color: var(--brass); }
.sp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.sp-pair > div > .mono { display: block; padding: 18px 0 0; }

/* 定義列表（公司資訊、聯絡資料） */
.sp-dl { margin: 0; }
.sp-dl > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sp-dl dt { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.sp-dl dd { margin: 0; font-size: 17px; }
.sp-dl dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.sp-dl dd a:hover { border-color: var(--ink); color: var(--brass); }
.sp-dl .pending { color: var(--muted); }

/* 大段文字 */
.sp-prose { display: grid; gap: 20px; padding-top: 28px; }
.sp-prose p { margin: 0; font-size: 17px; line-height: 1.95; max-width: 38em; }
.sp-prose .big { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.5; letter-spacing: 0; }

/* 滿版照片帶 */
.sp-band { position: relative; margin-top: clamp(72px, 9vw, 128px); min-height: clamp(420px, 46vw, 680px); display: grid; align-content: end; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: clamp(40px, 5vw, 72px) var(--gutter); color: #F7F5F1; }
.sp-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,26,23,.78) 0%, rgba(28,26,23,.12) 70%); pointer-events: none; }
.sp-band > * { position: relative; }
.sp-band .band-title { grid-column: 1 / span 9; margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6.6vw, 104px); line-height: 1.06; letter-spacing: -.01em; }
.sp-band .band-side { grid-column: 10 / span 3; display: grid; gap: 12px; align-self: end; }
.sp-band .band-side .mono { color: #CDAA6E; }
.sp-band .band-side p { margin: 0; font-size: 15px; line-height: 1.85; color: #E9E6E0; }

/* ---------- 補助專區 ---------- */
.sp .notice-list { gap: 0; }
.sp .notice { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 26px 0; gap: 6px 24px; }
.sp .notice h3 { font-size: 20px; }
.sp .notice-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.sp .notice .countdown { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.sp .notice p { font-size: 15px; }
.sp .notice-list > .empty, .sp .notice-list > p { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; padding: 26px 0; }

.sp .steps { border-top: 1px solid var(--ink); }
.sp .steps li { border-top: 0; padding: 28px 24px 8px 0; }
.sp .steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.sp .steps li::before { content: counter(step, decimal-leading-zero); font-size: clamp(44px, 4.4vw, 68px); line-height: 1; font-weight: 600; margin-bottom: 18px; }
.sp .steps li strong { font-size: 18px; }
.sp .steps li p { font-size: 15px; line-height: 1.8; }
@media (max-width: 920px) {
  .sp .steps li, .sp .steps li + li { padding: 20px 0 20px 76px; border-left: 0; border-bottom: 1px solid var(--line); }
  .sp .steps li::before { font-size: 40px; top: 18px; }
}

/* 試算：石墨面板，整頁唯一的深色區塊 */
.sp .calc {
  max-width: none; margin: 0; border: 0; border-radius: 24px;
  background: var(--panel-dark); color: var(--panel-dark-ink);
  padding: clamp(24px, 4vw, 52px);
  --line: rgba(255,255,255,.14); --muted: #A9ACAF; --bg: #1C1E20; --surface: #2B2E32; --ink: #F7F5F1; --brass: #CDAA6E; --brass-soft: rgba(205,170,110,.14);
}
.sp .calc .calc-progress { height: 2px; }
.sp .calc .calc-stepcount { font-family: var(--mono); font-size: 12px; }
.sp .calc-step h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; }
.sp .calc .option { color: var(--ink); background: transparent; border-color: rgba(255,255,255,.2); }
.sp .calc .option:hover { border-color: rgba(255,255,255,.5); }
.sp .calc .option[aria-pressed="true"] { background: #F7F5F1; color: #1C1E20; border-color: #F7F5F1; box-shadow: none; }
.sp .calc .field { background: transparent; border-color: rgba(255,255,255,.25); }
.sp .calc .btn { background: #F7F5F1; color: #1C1E20; border-color: #F7F5F1; }
.sp .calc .btn:hover { background: transparent; color: #F7F5F1; }
.sp .calc .btn-ghost { background: transparent; color: #F7F5F1; border-color: rgba(255,255,255,.4); }
.sp .calc .btn-ghost:hover { background: #F7F5F1; color: #1C1E20; }
.sp .calc .calc-error { color: #E89A8F; }
.sp .calc .tag { background: rgba(205,170,110,.16); color: #CDAA6E; }
.calc-aside { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.calc-aside div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.75; color: var(--muted); }
.calc-aside .mono { color: var(--brass); padding-top: 3px; }

.sp .faq details { padding: 22px 0; }
.sp .faq summary { font-size: 18px; }

/* ---------- 產品與服務：問題框改成左側黃銅細線 ---------- */
.stage-problem { background: none; border-radius: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--brass); margin-bottom: 12px; }
.stage-problem p { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.6; }
.stage-note { margin: -4px 0 24px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.stage:first-of-type { border-top: 0; }

/* ---------- 產業資訊：細線列表 ---------- */
.sp .filters { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sp .filter-group { gap: 4px 24px; }
.sp .filter-group > span { width: auto; font-family: var(--mono); font-size: 11px; margin-right: 8px; }
.sp .chip { border: 0; border-radius: 0; padding: 6px 0; background: none; color: var(--muted); font-size: 15px; }
.sp .chip:hover { color: var(--ink); }
.sp .chip[aria-pressed="true"] { background: none; color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.news-rows { display: grid; }
.news-row { display: grid; grid-template-columns: 7.5em 7em minmax(0, 1fr) 28px; gap: 8px 24px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.news-row time, .news-row .cat { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.news-row .cat { color: var(--brass); }
.news-row h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.4; letter-spacing: 0; }
.news-row p { grid-column: 3; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; max-width: 40em; }
.news-row .arrow { grid-column: 4; grid-row: 1; justify-self: end; font-size: 18px; color: var(--muted); transition: transform .2s, color .2s; }
a.news-row:hover h3 { color: var(--brass); }
a.news-row:hover .arrow { color: var(--ink); transform: translateX(4px); }
.sp .empty { border: 0; text-align: left; padding: 30px 0; border-radius: 0; }

/* ---------- 客戶案例 ---------- */
.sector-list { list-style: none; margin: 0; padding: 0; }
.sector-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sector-list b { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; }
.sector-list .mono { white-space: nowrap; }
.case-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.case-template > div { padding: 24px 20px 24px 0; display: grid; gap: 10px; align-content: start; }
.case-template > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.case-template .mono { color: var(--brass); }
.case-template p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* ---------- 聯絡我們 ---------- */
.contact-big { display: grid; gap: 0; }
.contact-big a, .contact-big > div { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-big .mono { color: var(--muted); }
.contact-big .v { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.contact-big .v-sm { font-size: clamp(18px, 1.8vw, 24px); font-family: var(--sans); font-weight: 500; word-break: break-all; }
.contact-big a:hover .v { color: var(--brass); }
.contact-big small { font-size: 13px; color: var(--muted); }
.sp-form { display: grid; gap: 4px; }
.sp-form label { display: grid; gap: 2px; padding: 18px 0 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); font-weight: 500; transition: border-color .2s; }
.sp-form label:focus-within { border-color: var(--ink); color: var(--ink); }
.sp-form input, .sp-form select, .sp-form textarea { font: inherit; font-family: var(--sans); font-size: 17px; letter-spacing: .01em; color: var(--ink); background: transparent; border: 0; padding: 6px 0; border-radius: 0; outline: none; }
.sp-form textarea { min-height: 96px; resize: vertical; }
.sp-form select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6064' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.sp-form .consent { display: flex; gap: 10px; align-items: flex-start; padding: 20px 0 8px; border: 0; font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.sp-form .consent input { margin-top: 5px; accent-color: #1C1E20; }
.sp-form .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.sp-form .form-foot small { color: var(--muted); font-size: 13px; }
.sp-form .form-msg { font-size: 14px; color: var(--brass); min-height: 1.4em; }

/* ---------- 隱私權 ---------- */
.legal { display: grid; gap: 0; }
.legal section { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal .no { font-family: var(--mono); font-size: 12px; color: var(--brass); padding-top: 6px; }
.legal h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; }
.legal p, .legal ul { grid-column: 2; margin: 0; color: var(--muted); line-height: 1.9; font-size: 15px; }
.legal ul { padding-left: 1.2em; }
.draft-note { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--brass); border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px; }

/* ---------- 子頁 RWD ---------- */
@media (max-width: 1100px) {
  .sp-title { grid-column: 1 / -1; }
  .sp-side { grid-column: 1 / span 8; }
  .sp-sec-head { grid-column: 1 / span 5; }
  .sp-sec-body { grid-column: 6 / -1; }
}
@media (max-width: 820px) {
  .sp-side, .sp-sec-head, .sp-sec-body, .sp-sec.wide .sp-sec-head { grid-column: 1 / -1; }
  .sp-sec-head { position: static; }
  .sp-sec { row-gap: 24px; }
  .sp-meta .mono:last-child { margin-left: 0; }
  .sp-band .band-title, .sp-band .band-side { grid-column: 1 / -1; }
  .sp-band .band-side { margin-top: 24px; }
  .sp-pair { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: auto 1fr 20px; gap: 6px 16px; padding: 24px 0; }
  .news-row h3, .news-row p { grid-column: 1 / -1; }
  .news-row .arrow { grid-column: 3; grid-row: 1; }
  .case-template { grid-template-columns: 1fr 1fr; }
  .case-template > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .case-template > div { border-bottom: 1px solid var(--line); }
  .sp-dl > div { grid-template-columns: 1fr; gap: 4px; }
  .sector-list li { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .sp-rows > li, .sp-rows > div, .legal section { grid-template-columns: 40px minmax(0, 1fr); }
  .brand-word b { font-size: 14px; letter-spacing: .22em; margin-right: -.22em; }
}

/* v6 修正 */
[hidden] { display: none !important; }
.site-header .wrap, .site-footer .wrap { width: auto; margin-inline: var(--gutter); }
.sp-sec-head .text-link { justify-self: start; }
.sp .v2-cta { margin-top: clamp(72px, 9vw, 128px); }
.sp-band .band-title { writing-mode: horizontal-tb; position: relative; inset: auto; transform: none; text-orientation: mixed; }
.sector-list .mono { flex: none; }
.sp-band .band-side { position: relative; left: auto; right: auto; bottom: auto; max-width: none; }
html[lang="en"] .sp-band .band-title { text-align: left; bottom: auto; right: auto; top: auto; }
html[lang="en"] .sp-title { letter-spacing: -.03em; }

/* ===== 補助專區：找補助 ===== */
.anchor { position: relative; top: -90px; }
.finder { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.finder-filters { position: sticky; top: 96px; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px 18px; max-height: calc(100vh - 116px); overflow: auto; }
.ff-top { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ff-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 0 12px; }
.ff-search:focus-within { border-color: var(--ink); }
.ff-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.ff-search input { border: 0; background: transparent; font: inherit; font-size: 15px; padding: 11px 0; width: 100%; color: var(--ink); min-width: 0; }
.ff-search input:focus { outline: none; }
.ff-toggle { display: none; }
.ff-group { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ff-group legend { padding: 0; margin-bottom: 9px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.ff-group legend small { font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.ff-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-group .chips button { font: inherit; font-size: 13.5px; line-height: 1.2; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ff-group .chips button:hover { border-color: var(--ink); }
.ff-group .chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ff-group .chips button:focus-visible, .ff-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.ff-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.ff-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.ff-reset { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; cursor: pointer; color: var(--muted); font: inherit; font-size: 14px; }
.ff-done { display: none; }

.finder-results { min-width: 0; display: grid; gap: 18px; }
.fr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.fr-count { margin: 0; font-size: 15px; color: var(--muted); }
.fr-count b { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin: 0 2px; }
.fr-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fr-sort select { font: inherit; font-size: 13.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; }
.fr-list { display: grid; gap: 14px; }
.fr-empty { display: grid; gap: 10px; justify-items: center; }
.fr-empty p { margin: 0; }

.fcard { position: relative; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px 20px; }
.fcard::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brass); }
.fcard.is-upcoming::before { background: var(--line); }
.fcard.is-closed { background: transparent; }
.fcard.is-closed::before { display: none; }
.fc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.fc-status { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--brass-soft); color: var(--brass); }
.is-rolling .fc-status { background: transparent; box-shadow: inset 0 0 0 1px var(--brass); }
.is-upcoming .fc-status { background: var(--surface-2); color: var(--muted); }
.is-closed .fc-status { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.fc-agency em { font-style: normal; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); }
.fc-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.fc-title h3 { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.4; letter-spacing: .01em; }
.fc-title p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.fc-amount { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 4px; text-align: right; padding-left: 18px; border-left: 1px solid var(--line); white-space: nowrap; }
.fc-amount .mono { grid-column: 1 / -1; justify-self: end; color: var(--brass); }
.fc-amount b { font-family: var(--mono); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.fc-amount span:last-child { font-size: 13px; color: var(--muted); }
.is-closed .fc-amount b { color: var(--muted); }
.fc-deadline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.fc-when { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.is-upcoming .fc-when, .is-closed .fc-when { font-family: var(--sans); color: var(--muted); }
.fc-fit { display: flex; flex-wrap: wrap; gap: 6px; }
.fit { font-size: 12.5px; line-height: 1.2; padding: 5px 10px; border-radius: 999px; }
.fit.ok { background: var(--brass-soft); color: var(--ink); }
.fit.ok::before { content: "✓ "; color: var(--brass); font-weight: 700; }
.fit.ask { border: 1px dashed var(--line); color: var(--muted); }
.fc-notice { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--brass-soft); }
.fc-more { border-top: 1px solid var(--line); padding-top: 12px; }
.fc-more summary { cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
.fc-more summary::-webkit-details-marker { display: none; }
.fc-more summary::after { content: "+"; font-family: var(--mono); color: var(--brass); }
.fc-more[open] summary::after { content: "−"; }
.fc-more dl { margin: 14px 0 0; display: grid; gap: 12px; }
.fc-more dl > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.75; }
.fc-more dt { color: var(--muted); }
.fc-more dd { margin: 0; }
.fc-more dd small { display: block; color: var(--muted); font-size: 13px; }
.fc-more ul { margin: 0; padding-left: 1.1em; }
.fc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-verified { margin: 12px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.fr-hidden { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 14px 20px; }
.fr-hidden summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.fr-hidden ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.fr-hidden li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.fr-hidden li em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 8px; }
.fr-hidden small { color: var(--muted); font-size: 13px; }
.fr-disclaimer { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .finder-filters { position: static; max-height: none; overflow: visible; padding: 16px; }
  .ff-top { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 0; border-bottom: 0; }
  .ff-toggle { display: inline-flex; align-items: center; gap: 2px; font: inherit; font-size: 14px; font-weight: 500; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--bg); cursor: pointer; }
  .ff-groups { display: none; margin-top: 6px; }
  .filters-open .ff-groups { display: block; }
  .ff-done { display: inline-flex; }
}
@media (max-width: 560px) {
  .fcard { padding: 18px 18px 16px; }
  .fc-main { grid-template-columns: 1fr; }
  .fc-amount { text-align: left; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: start; }
  .fc-amount .mono { justify-self: start; }
  .fc-more dl > div { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================
   v7：首頁改以「製造業官網方案」為主打（2026-12）
   ========================================================= */
.journey .journey-sub { font-size: 14px; color: var(--muted); }
.next-head { padding: clamp(96px, 11vw, 150px) var(--gutter) 0; display: grid; gap: 16px; }
.next-head .display { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.2; }
.next-pair { padding-top: clamp(40px, 5vw, 64px); }
.outreach-card .qc-price b { font-family: inherit; font-size: 15px; color: var(--brass); }
.nw { white-space: nowrap; display: inline-block; }
