/* WoodCNC 台中木工CNC — 網站樣式
   色彩沿用原網站：海軍藍 #0f172a／#102136、品牌藍 #1559ed、石板灰 #3A4F66／#64748b、淺灰白 #f2f5f7，銅木色 #c8935a 點綴。
   字型：Plus Jakarta Sans（英數）＋ Noto Sans TC（中文）。深色區塊使用工程藍圖格線。 */

:root {
  --bg: #fafbfc;
  --bg-2: #f2f5f7;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #3a4f66;
  --muted: #64748b;
  --line: #e1e8ed;
  --navy: #102136;
  --navy-2: #192a3d;
  --navy-3: #0b1626;
  --accent: #1559ed;
  --accent-2: #2872fa;
  --accent-light: #7ea6ff;
  --accent-soft: rgba(21, 89, 237, .08);
  --bronze: #c8935a;
  --line-green: #06c755;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 28px 56px -16px rgba(15, 23, 42, .22);
  --container: 1400px;
  --font: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --grid: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.85 var(--font); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(21, 89, 237, .35); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .6em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
@media (max-width: 600px) { .container { padding: 0 18px; } }
.narrow { max-width: 820px; }

/* ---------- 標籤與按鈕 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 700 .74rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.85; color: var(--ink-2); max-width: 44em; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 30px; border-radius: 6px; border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--font); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--line { background: var(--ink); color: #fff; }
.btn--line svg { color: var(--line-green); }
.btn--line:hover { background: var(--accent); color: #fff; }
.btn--line:hover svg { color: #fff; }
.on-dark .btn--line, .hero .btn--line, .page-hero .btn--line, .cta-band .btn--line, .section--dark .btn--line, .aside-cta .btn--line, .statement .btn--line { background: #fff; color: var(--ink); }
.on-dark .btn--line:hover, .hero .btn--line:hover, .page-hero .btn--line:hover, .cta-band .btn--line:hover, .section--dark .btn--line:hover, .aside-cta .btn--line:hover { background: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(21, 89, 237, .8); }
.btn--accent:hover { background: #0f4fd8; color: #fff; }
.btn--ghost { border-color: rgba(15, 23, 42, .2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn--ghost, .section--dark .btn--ghost, .cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover, .cta-band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.text-link::after { content: "→"; transition: transform .3s var(--ease); }
.text-link:hover::after { transform: translateX(5px); }

/* ---------- 頁首 ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
/* 毛玻璃放在偽元素上：直接加在 header 會讓手機選單（position:fixed）被限制在 header 內 */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
/* 頁面頂端是深色主視覺：頁首透明、Logo 與選單反白 */
.site-header:not(.is-scrolled):not(.is-solid) .brand-logo { filter: invert(1); }
.site-header:not(.is-scrolled):not(.is-solid) .nav > ul > li > a,
.site-header:not(.is-scrolled):not(.is-solid) .nav > ul > li > .nav-parent,
.site-header:not(.is-scrolled):not(.is-solid) .menu-toggle { color: #fff; }
.site-header:not(.is-scrolled):not(.is-solid) .nav > .btn--line { background: #fff; color: var(--ink); }
.site-header:not(.is-scrolled):not(.is-solid) .nav > ul > li > a:hover,
.site-header:not(.is-scrolled):not(.is-solid) .nav > ul > li > .nav-parent:hover { color: var(--accent-light); }
.brand-logo { transition: filter .35s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -12px rgba(15, 23, 42, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 50px; width: auto; display: block; }
.site-footer .brand-logo { height: 72px; filter: invert(1); }
@media (max-width: 600px) { .site-header .brand-logo { height: 42px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav ul a, .nav button.nav-parent {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 10px;
  font: 600 .95rem var(--font); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; letter-spacing: .02em;
}
.nav ul a:hover, .nav button.nav-parent:hover, .nav ul a[aria-current="page"] { color: var(--accent); }
.nav .chev { width: 14px; height: 14px; transition: transform .25s; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; list-style: none; margin: 0; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub.open .chev { transform: rotate(180deg); }
.nav .submenu a { padding: 10px 14px; display: block; border-radius: 12px; }
.nav .submenu a:hover { background: var(--bg-2); }
.submenu a small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.5; margin-top: 2px; }
.nav .btn { min-height: 44px; padding: 8px 20px; margin-left: 10px; font-size: .92rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 10px; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 22px 36px; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; visibility: hidden;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav ul a, .nav button.nav-parent { font-size: 1.08rem; padding: 16px 4px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; display: none; min-width: 0; }
  .has-sub::after { display: none; }
  .has-sub.open .submenu { display: block; }
  .nav .submenu a { border-bottom: 1px dashed var(--line); border-radius: 0; }
  .nav .submenu a:hover { background: none; }
  .nav .btn { margin: 22px 0 0; min-height: 54px; }
}

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; color: #fff; background: var(--navy-3); overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(11, 22, 38, .95) 0%, rgba(11, 22, 38, .7) 36%, rgba(11, 22, 38, .1) 70%, rgba(11, 22, 38, 0) 100%), linear-gradient(0deg, rgba(11, 22, 38, .8) 0%, transparent 35%); }
.hero-media img { filter: saturate(1.05) contrast(1.05) brightness(1.15); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--grid); background-size: 56px 56px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero .container { position: relative; z-index: 2; padding-top: 160px; padding-bottom: clamp(36px, 5vw, 56px); }
.hero h1 { color: #fff; max-width: 12em; font-size: clamp(2.9rem, 7.4vw, 7rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .4em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7ea6ff, #c9d8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 36px; }
.hero .eyebrow { color: var(--accent-light); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-stats div { padding: 22px 24px 4px 0; position: relative; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero-stats b { display: block; font: 800 clamp(1.4rem, 2.4vw, 2.1rem)/1.25 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .86rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 22, 38, .75) 0%, rgba(11, 22, 38, .92) 60%, rgba(11, 22, 38, .98) 100%); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats div, .hero-stats div + div { padding: 18px 12px 6px 0; border-left: 0; }
  .hero-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- 內頁主視覺 ---------- */
.page-hero { position: relative; padding: 124px 0 clamp(64px, 9vw, 128px); background: var(--navy-3); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 75%); }
.page-hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(21, 89, 237, .35), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.015em; }
.page-hero-grid h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); }
.page-hero .lead { color: rgba(255, 255, 255, .75); }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.page-hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-media { position: relative; }
.page-hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.page-hero-media .tag {
  position: absolute; left: -16px; bottom: 28px; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 14px;
  font: 600 .84rem/1.4 var(--font); box-shadow: var(--shadow-lg); z-index: 1;
}
.page-hero-media .tag b { color: var(--accent); font-weight: 800; }
.page-hero--simple { padding-bottom: clamp(48px, 6vw, 80px); }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.page-hero .checks li { color: rgba(255, 255, 255, .88); }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media { order: -1; }
  .page-hero-media--after { order: 0; }
  .page-hero-media .tag { left: 12px; }
}

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 32px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .4; }
.breadcrumb a { text-decoration: none; }
.page-hero .breadcrumb, .article-head .breadcrumb { color: rgba(255, 255, 255, .55); }
.page-hero .breadcrumb a:hover, .article-head .breadcrumb a:hover { color: #fff; }

/* ---------- 區塊 ---------- */
.section { padding: clamp(88px, 12vw, 176px) 0; }
.section--tight-top { padding-top: 0; }
.section--alt { background: var(--bg-2); }
.section--dark { position: relative; background: var(--navy-3); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.section--dark > .container { position: relative; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent-light); }
.section--dark .lead, .section--dark .muted { color: rgba(255, 255, 255, .65); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head > div:last-child:not(:first-child) { display: grid; gap: 18px; justify-items: start; }
.section-head > div { max-width: none; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-head > div:last-child:not(:first-child) p { margin: 0; }
.section-head > .text-link { justify-self: end; }
.section--dark .section-head p { color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } .section-head > .text-link { justify-self: start; } }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--card); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font: 800 .76rem var(--font); color: var(--accent); letter-spacing: .18em; display: block; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.section--alt .card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.section--dark .card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); box-shadow: none; }
.section--dark .card p, .section--dark .card ul { color: rgba(255, 255, 255, .7); }

/* 服務：雜誌式大圖＋標題 */
.svc-grid { counter-reset: svc; gap: clamp(48px, 6vw, 80px) clamp(20px, 2.4vw, 36px); }
.svc-card { display: block; text-decoration: none; color: var(--ink); counter-increment: svc; }
.svc-card figure { position: relative; margin: 0 0 24px; aspect-ratio: 4 / 4.6; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-2); }
.svc-card figure::after { content: "0" counter(svc); position: absolute; top: 18px; left: 20px; font: 800 .78rem var(--font); letter-spacing: .18em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); margin-bottom: .4em; transition: color .3s; }
.svc-card:hover h3 { color: var(--accent); }
.svc-card .body p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
@media (max-width: 600px) { .svc-card figure { aspect-ratio: 4 / 3; } }

/* 為什麼選我們 */
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.features { counter-reset: f; gap: 0 clamp(32px, 4vw, 64px); }
.features .feature { grid-template-columns: 1fr; padding: 32px 0 40px; counter-increment: f; }
.features .feature::before { content: counter(f, decimal-leading-zero); font: 800 clamp(2.6rem, 4vw, 3.6rem)/1 var(--font); color: transparent; -webkit-text-stroke: 1px rgba(21, 89, 237, .55); margin-bottom: 22px; }
.section--dark .features .feature::before { -webkit-text-stroke-color: rgba(126, 166, 255, .6); }
.features .feature .ico { display: none; }
.features .feature h3 { font-size: 1.3rem; }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.section--dark .feature { border-top-color: rgba(255, 255, 255, .1); }
.section--dark .feature .ico { background: rgba(126, 166, 255, .12); color: var(--accent-light); }
.feature h3 { margin-bottom: .3em; font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.section--dark .feature p { color: rgba(255, 255, 255, .62); }

/* 形象大圖橫幅 */
.statement { position: relative; min-height: clamp(460px, 62vw, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-3); }
.statement figure { position: absolute; inset: 0; margin: 0; }
.statement img { width: 100%; height: 100%; object-fit: cover; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 22, 38, .92) 0%, rgba(11, 22, 38, .35) 55%, rgba(11, 22, 38, .1) 100%); }
.statement .container { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 96px); }
.statement h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.6rem); max-width: 16em; }
.statement p { color: rgba(255, 255, 255, .8); max-width: 38em; font-size: 1.08rem; }
.statement .eyebrow { color: var(--accent-light); }

/* 流程 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 24px 6px 0; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--accent); color: var(--accent); font: 800 1rem var(--font); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); opacity: .35; }
.steps li:last-child::after { display: none; }
.section--alt .steps li::before { background: var(--bg-2); }
.section--dark .steps li::before { background: var(--navy-3); border-color: var(--accent-light); color: var(--accent-light); }
.section--dark .steps li::after { background: repeating-linear-gradient(90deg, var(--accent-light) 0 6px, transparent 6px 12px); }
.steps h3 { font-size: 1.1rem; margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .94rem; }
.section--dark .steps p { color: rgba(255, 255, 255, .62); }
@media (max-width: 600px) {
  .steps { gap: 4px; }
  .steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; padding: 0 0 18px; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .steps li::after { top: 52px; bottom: 0; left: 26px; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); }
  .section--dark .steps li::after { background: repeating-linear-gradient(180deg, var(--accent-light) 0 6px, transparent 6px 12px); }
}

/* 規格表 */
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec th, .spec td { text-align: left; padding: 20px 28px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 28%; font: 700 .9rem/1.6 var(--font); color: var(--ink); background: linear-gradient(90deg, var(--bg-2), transparent); }
.spec th::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); margin-right: 10px; vertical-align: middle; }
.spec td { color: var(--ink-2); }
@media (max-width: 600px) {
  .spec th, .spec td { display: block; width: 100%; padding: 16px 20px; }
  .spec th { border-bottom: 0; padding-bottom: 2px; background: none; }
  .spec td { padding-top: 4px; }
}

/* 標籤雲 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 10px 18px; background: transparent; border-radius: 4px; font-size: .94rem; font-weight: 600; box-shadow: 0 0 0 1px rgba(15, 23, 42, .14); }

/* 兩欄文字＋圖片 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { position: relative; isolation: isolate; }
.split-media img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split--rev .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split--rev .split-media { order: 0; } }

/* 相簿 */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: .88rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(11, 22, 38, .85)); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* 案例卡 */
.case-card { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .35s, transform .35s var(--ease); }
.case-card:hover { box-shadow: var(--shadow-lg); color: var(--ink); transform: translateY(-3px); }
.case-card figure { margin: 0; min-height: 360px; overflow: hidden; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case-card:hover img { transform: scale(1.04); }
.case-card .body { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.case-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.case-card .meta span { font: 600 .78rem var(--font); color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.case-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; }
.case-card p { color: var(--muted); }
.grid > .case-card:nth-child(even) { grid-template-columns: .85fr 1.15fr; }
.grid > .case-card:nth-child(even) figure { order: 2; }
@media (max-width: 760px) {
  .case-card, .grid > .case-card:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .case-card figure, .grid > .case-card:nth-child(even) figure { min-height: 0; aspect-ratio: 4 / 3; order: 0; }
}

/* 文章卡 */
.post-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.post-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-card .body { padding: 22px 24px 26px; }
.post-card .cat { font: 700 .74rem var(--font); letter-spacing: .1em; color: var(--accent); }
.post-card h3 { font-size: 1.08rem; margin: 8px 0 10px; line-height: 1.55; }
.post-card p { font-size: .9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 分類篩選 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a { padding: 9px 18px; border-radius: 999px; background: var(--card); text-decoration: none; font-size: .9rem; font-weight: 600; box-shadow: 0 0 0 1px var(--line); transition: .2s; }
.filters a:hover { box-shadow: 0 0 0 1px var(--accent); }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq { gap: 0; border-top: 1px solid rgba(15, 23, 42, .14); }
.faq details { border-bottom: 1px solid rgba(15, 23, 42, .14); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 64px 26px 0; font-weight: 700; font-size: 1.1rem; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 500 1.3rem/1 var(--font); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq .answer { padding: 0 64px 28px 0; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* CTA */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-3); color: #fff; border-radius: var(--radius); padding: clamp(48px, 8vw, 128px) clamp(28px, 6vw, 96px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 36px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0 0 0 45%; z-index: -1; background: url("../img/spiral-wood-surface-sm.webp") center/cover no-repeat; opacity: .55; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid); background-size: 48px 48px; }
.cta-band h2 { color: #fff; margin-bottom: .35em; font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1.15; }
.cta-band p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 34em; }
.cta-band .line-id { font: 700 .86rem var(--font); letter-spacing: .06em; color: var(--accent-light); margin-top: 14px; display: block; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band::before { inset: 40% 0 0 0; mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); } }

/* ---------- 文章 ---------- */
.article-head { position: relative; padding: 124px 0 96px; background: var(--navy-3); color: #fff; overflow: hidden; }
.article-head::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 15% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 15% 20%, #000, transparent 70%); }
.article-head .container { position: relative; }
.article-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); max-width: 20em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 .86rem var(--font); color: rgba(255, 255, 255, .6); }
.article-meta a { color: var(--accent-light); text-decoration: none; margin-right: 8px; }
.article-cover { margin: -48px 0 56px; position: relative; }
.article-cover img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-top: 56px; }
.article-cover + .article-layout { padding-top: 0; }
.article-aside { position: sticky; top: 104px; display: grid; gap: 20px; }
.toc { background: var(--card); border-radius: var(--radius); padding: 24px 26px; font-size: .9rem; box-shadow: var(--shadow); }
.toc b { font: 700 .74rem var(--font); letter-spacing: .18em; color: var(--accent); display: block; margin-bottom: 12px; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.aside-cta { position: relative; overflow: hidden; background: var(--navy-3); color: #fff; border-radius: var(--radius); padding: 28px; }
.aside-cta::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 32px 32px; }
.aside-cta > * { position: relative; }
.aside-cta h3 { color: #fff; font-size: 1.12rem; }
.aside-cta p { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.aside-cta .btn { width: 100%; }
@media (max-width: 1023px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } .toc { display: none; } }

.prose { font-size: 1.05rem; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { color: var(--ink); margin: 2.2em 0 .7em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose h2::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: var(--accent); margin-bottom: 18px; }
.prose h3 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); font-weight: 600; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-sm); width: 100%; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 10px; }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; color: var(--ink); }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.prose th, .prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--bg); }
.prose .faq { margin-top: 1em; }
@media (max-width: 600px) {
  .prose table { min-width: 0; font-size: .86rem; }
  .prose th, .prose td { padding: 10px 8px; }
}

/* ---------- 聯絡 ---------- */
.contact-card { display: grid; gap: 20px; }
.contact-row { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
.contact-row .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-row .ico svg { width: 22px; height: 22px; }
.contact-row b { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.page-hero .card { color: var(--ink); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--bg-2); position: relative; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.page-hero .text-link { color: var(--accent-light); }
.qr { width: 170px; border-radius: 16px; background: #fff; padding: 10px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- 頁尾 ---------- */
.site-footer { position: relative; background: var(--navy-3); color: rgba(255, 255, 255, .62); padding: 88px 0 32px; font-size: .93rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 56px 56px; mask-image: linear-gradient(0deg, #000, transparent); -webkit-mask-image: linear-gradient(0deg, #000, transparent); }
.site-footer .container { position: relative; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer h3 { color: #fff; font: 700 .74rem var(--font); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { margin-bottom: 20px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .45); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* 手機底部 LINE 按鈕 */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px; font-size: .95rem; box-shadow: none; }
  .mobile-bar .btn--line { background: var(--line-green); color: #fff; }
  .mobile-bar .btn--line svg { color: #fff; }
  body { padding-bottom: 78px; }
}

/* 進場動畫（尊重減少動態設定） */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-media img { animation: none; transform: none; } }

/* ---------- 首頁：大字宣言 ---------- */
.manifesto { padding-bottom: clamp(72px, 9vw, 128px); }
.manifesto-text { font: 700 clamp(1.7rem, 3.6vw, 3.2rem)/1.45 var(--font); letter-spacing: -.005em; color: var(--ink); max-width: 22em; margin: 0 0 clamp(48px, 6vw, 88px); text-wrap: pretty; }
.manifesto-text em { font-style: normal; color: var(--accent); }
.manifesto-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.manifesto-meta div { border-top: 2px solid var(--ink); padding-top: 20px; }
.manifesto-meta b { display: block; font-size: 1.12rem; margin-bottom: 6px; }
.manifesto-meta span { color: var(--muted); }
@media (max-width: 760px) { .manifesto-meta { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- 首頁：滿版案例 ---------- */
.showcase { display: grid; gap: clamp(16px, 2vw, 24px); padding: 0 clamp(0px, 2vw, 24px); }
.showcase-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: min(80vh, 760px); background: var(--bg-2); text-decoration: none; color: var(--ink); overflow: hidden; border-radius: var(--radius-sm); }
.showcase-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.showcase-item:nth-child(even) figure { order: 2; }
.showcase-item figure { margin: 0; overflow: hidden; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.showcase-item:hover img { transform: scale(1.04); }
.showcase-body { padding: clamp(32px, 5vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.showcase-num { font: 800 clamp(4rem, 9vw, 8.5rem)/.95 var(--font); letter-spacing: -.04em; color: var(--ink); margin-bottom: 28px; }
.showcase-num small { font-size: .26em; letter-spacing: 0; margin-left: 10px; color: var(--accent); font-weight: 700; }
.showcase-body h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.showcase-body p { color: var(--muted); max-width: 28em; margin-bottom: 24px; }
.showcase-item:hover { color: var(--ink); }
@media (max-width: 860px) {
  .showcase-item, .showcase-item:nth-child(even) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .showcase-item figure, .showcase-item:nth-child(even) figure { order: 0; aspect-ratio: 4 / 3; }
}

/* ---------- 首頁：滿版作品拼貼 ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(200px, 24vw, 420px)); gap: 4px; background: var(--navy-3); }
.mosaic a { position: relative; overflow: hidden; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.mosaic a:hover img { transform: scale(1.05); opacity: .85; }
.mosaic span { position: absolute; left: 20px; bottom: 16px; color: #fff; font-weight: 600; font-size: .92rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.mosaic .m-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic .m-f { display: none; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 42vw; }
  .mosaic .m-a { grid-column: 1 / 3; grid-row: auto; height: 70vw; }
  .mosaic .m-f { display: block; }
}

/* ---------- 流程（直式列表） ---------- */
.steps--list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.steps--list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps--list li::before { margin: 0; grid-row: span 2; width: 44px; height: 44px; font-size: .9rem; }
.steps--list li::after { display: none; }
.steps--list h3 { margin: 0 0 .2em; }
.steps--list p { margin: 0; }

/* ---------- FAQ 兩欄 ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-layout > div:first-child { position: sticky; top: 120px; }
.faq-layout > div:first-child .btn { margin-top: 12px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout > div:first-child { position: static; } }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .center { text-align: center; } .mt-32 { margin-top: 32px; }
