/* =========================================================
   駿騰智能 — Redesign (JOYZO-inspired)
   清爽白底 · teal 主色 · 幾何無襯線 · 卡片式留白
   ========================================================= */

:root {
  /* 色票 */
  --bg:        #ffffff;
  --bg-soft:   #f4f6fc;
  --bg-teal:   #eceffb;
  --ink:       #101832;   /* 近黑炭灰（帶青底） */
  --ink-2:     #3b4763;
  --ink-3:     #6b7690;   /* 次要文字 */
  --line:      #e5e8f2;
  --teal:      #22336e;   /* 主色 */
  --teal-deep: #172449;
  --teal-ink:  #111a3a;
  --coral:     #ff6a5a;   /* 次要點綴（少量） */
  --amber:     #ffb020;

  /* 尺寸 */
  --wrap: 1120px;
  --gap:  clamp(20px, 4vw, 40px);
  --radius:   20px;
  --radius-s: 14px;

  /* 陰影 */
  --shadow-s: 0 2px 8px rgba(16, 34, 43, .05);
  --shadow-m: 0 10px 30px rgba(16, 34, 43, .08);
  --shadow-l: 0 24px 60px rgba(16, 34, 43, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-feature-settings: "tnum"; }

/* =========================================================
   全頁浮動背景：日式光暈（緩慢呼吸的光暈 + 円相細圈）
   ========================================================= */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; will-change: transform, opacity; }
/* 光暈：柔和發光、緩慢呼吸 */
.glow { filter: blur(8px); }
.glow.moon { width: 540px; height: 540px; top: -140px; right: -90px;
  background: radial-gradient(circle at 50% 50%, rgba(52, 96, 200, .16), rgba(34, 51, 110, .06) 42%, transparent 66%);
  animation: breathe 15s ease-in-out infinite; }
.glow.g2 { width: 380px; height: 380px; top: 40%; left: -130px; filter: blur(30px);
  background: radial-gradient(circle at 50% 50%, rgba(120, 96, 205, .12), transparent 66%);
  animation: breathe 19s ease-in-out infinite 2.5s; }
.glow.g3 { width: 340px; height: 340px; bottom: 0; right: 8%; filter: blur(26px);
  background: radial-gradient(circle at 50% 50%, rgba(52, 96, 200, .11), transparent 66%);
  animation: breathe 17s ease-in-out infinite 1.2s; }
/* 円相：兩個圈跟著捲動位置移動（左圈往右＋落下走拋物線、右圈往下），像在水面上緩緩滑 */
/* 外層：只負責定位 + 捲動軌跡（清脆跟隨）；perspective 給內層錢幣 3D 旋轉用 */
.enso { will-change: transform; transition: transform .55s cubic-bezier(.22, .61, .36, 1); perspective: 700px; }
.enso.e1 { width: 320px; height: 320px; top: 8%; right: 8%;
  transform: translate(calc(var(--sc, 0) * -60px), calc(var(--sc, 0) * 40vh)); }
.enso.e2 { width: 220px; height: 220px; top: 60%; left: 4%;
  transform: translate(calc(var(--sc, 0) * (1 - var(--sc, 0)) * 150px), calc(var(--sc, 0) * -46vh)); }
/* 內層錢幣：碰一下會以正中為軸轉圈（3D 旋轉，起轉快、收尾慢，時序由 JS 加 .spin 觸發）
   插畫式古錢（天圓地方）：銅色漸層錢身、浮雕內外郭、方孔雙緣
   右上素面無字；左下鑄錢文「駿騰智能」上下右左 */
.enso .ball { position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g' cx='38%25' cy='32%25' r='75%25'%3E%3Cstop offset='0%25' stop-color='%23f7efdf'/%3E%3Cstop offset='55%25' stop-color='%23eadcbb'/%3E%3Cstop offset='100%25' stop-color='%23d8c191'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' fill-opacity='.6' fill-rule='evenodd' d='M100 3a97 97 0 1 0 .01 0Z M76 76h48v48H76Z'/%3E%3Ccircle cx='100' cy='100' r='96' fill='none' stroke='%23886c40' stroke-opacity='.55' stroke-width='2.5'/%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23fffbe8' stroke-opacity='.5' stroke-width='1.2'/%3E%3Ccircle cx='100' cy='100' r='85' fill='none' stroke='%23886c40' stroke-opacity='.28' stroke-width='1.2'/%3E%3Crect x='76' y='76' width='48' height='48' fill='none' stroke='%23886c40' stroke-opacity='.5' stroke-width='2.5'/%3E%3Crect x='81' y='81' width='38' height='38' fill='none' stroke='%23fffbe8' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  will-change: transform; }
.enso .ball.spin { animation: coinSpin 1.35s cubic-bezier(.18, .74, .3, 1); }
@keyframes coinSpin { from { transform: rotateY(0deg); } to { transform: rotateY(1080deg); } }
.enso.e2 .ball { opacity: .82;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g' cx='38%25' cy='32%25' r='75%25'%3E%3Cstop offset='0%25' stop-color='%23f7efdf'/%3E%3Cstop offset='55%25' stop-color='%23eadcbb'/%3E%3Cstop offset='100%25' stop-color='%23d8c191'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' fill-opacity='.6' fill-rule='evenodd' d='M100 3a97 97 0 1 0 .01 0Z M76 76h48v48H76Z'/%3E%3Ccircle cx='100' cy='100' r='96' fill='none' stroke='%23886c40' stroke-opacity='.55' stroke-width='2.5'/%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='%23fffbe8' stroke-opacity='.5' stroke-width='1.2'/%3E%3Ccircle cx='100' cy='100' r='85' fill='none' stroke='%23886c40' stroke-opacity='.28' stroke-width='1.2'/%3E%3Crect x='76' y='76' width='48' height='48' fill='none' stroke='%23886c40' stroke-opacity='.5' stroke-width='2.5'/%3E%3Crect x='81' y='81' width='38' height='38' fill='none' stroke='%23fffbe8' stroke-opacity='.45' stroke-width='1.2'/%3E%3Cg fill='%23775d33' fill-opacity='.62' font-family='Songti TC,Noto Serif TC,serif' font-size='30' font-weight='700' text-anchor='middle'%3E%3Ctext x='100' y='57'%3E%E9%A7%BF%3C/text%3E%3Ctext x='100' y='166'%3E%E9%A8%B0%3C/text%3E%3Ctext x='159' y='111'%3E%E6%99%BA%3C/text%3E%3Ctext x='41' y='111'%3E%E8%83%BD%3C/text%3E%3C/g%3E%3C/svg%3E"); }
@keyframes breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .8; }
  50%      { transform: scale(1.14) translate(-16px, 14px); opacity: 1; }
}
/* 祥雲：線描如意雲，像雲一樣緩緩橫過畫面（中式元素，呼應 101） */
.scloud { position: absolute; left: 0; background-repeat: no-repeat; background-size: contain;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cg fill='none' stroke='%2322336e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M46 50 C30 56 16 46 18 33 C20 20 34 12 45 18 C53 22 55 33 47 38 C41 42 33 37 35 30'/%3E%3Cpath d='M52 30 C74 12 104 8 132 16 C152 21 166 21 180 14 C193 8 208 13 207 25 C206 35 194 39 187 32'/%3E%3Cpath d='M86 36 C96 26 112 26 122 34'/%3E%3C/g%3E%3C/svg%3E"); }
.scloud.c1 { top: 12%; width: 400px; height: 133px; opacity: .17;
  animation: cloudpass 130s linear -30s infinite; }
.scloud.c2 { top: 44%; width: 540px; height: 180px; opacity: .12;
  animation: cloudpass 180s linear -100s infinite; }
.scloud.c3 { top: 70%; width: 300px; height: 100px; opacity: .1;
  animation: cloudpass 220s linear -155s infinite; }
.scloud.c4 { top: 30%; width: 340px; height: 113px; opacity: .13;
  animation: cloudpass 155s linear -70s infinite; }
.scloud.c5 { top: 57%; width: 240px; height: 80px; opacity: .08;
  animation: cloudpass 195s linear -20s infinite; }
@keyframes cloudpass { from { transform: translateX(-110%); } to { transform: translateX(110vw); } }

/* 窗花角飾：層疊窗框線＋回紋步階＋小方孔（呼應古錢），補首屏左上的留白 */
.lattice { position: absolute; top: clamp(96px, 12vw, 150px); left: clamp(16px, 3.4vw, 52px);
  width: clamp(120px, 15vw, 195px); aspect-ratio: 1; pointer-events: none;
  background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%2322336e' stroke-opacity='.4' stroke-width='2'%3E%3Cpath d='M6 216 L6 6 L216 6'/%3E%3Cpath d='M20 216 L20 20 L216 20'/%3E%3Cpath d='M48 6 V48 H6'/%3E%3Cpath d='M76 20 V76 H20'/%3E%3Crect x='30' y='30' width='12' height='12'/%3E%3C/g%3E%3C/svg%3E"); }
/* 右下角：與左上對稱（180° 點對稱） */
.lattice.lattice-br { top: auto; left: auto;
  bottom: clamp(20px, 4vw, 60px); right: clamp(16px, 3.4vw, 52px);
  transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) { .ambient span { animation: none !important; } }

/* 內容疊在浮動背景之上 */
main, .footer { position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* =========================================================
   導覽列
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: #f6f3e9; /* 米色（與郵票紙同色），下緣一條銅金細線 */
  border-bottom: 1px solid rgba(151, 124, 72, .3);
  box-shadow: 0 4px 16px rgba(16, 22, 50, .06);
}
.nav-inner {
  width: min(100% - 44px, var(--wrap)); margin-inline: auto;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .seal {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 6px 16px rgba(34, 51, 110, .35);
}
.brand .seal svg { width: 24px; height: 24px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 800; font-size: 22px; color: var(--teal); text-align: justify; text-align-last: justify; }
.brand-en { font-size: 10px; letter-spacing: .18em; color: rgba(34, 51, 110, .55); font-weight: 600; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.nav-links .nav-cta {
  background: var(--teal); color: #fff; padding: 10px 20px; border-radius: 999px;
  transition: transform .2s, background .2s, color .2s;
}
.nav-links .nav-cta:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; }

/* =========================================================
   共用區塊
   ========================================================= */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-soft { background: var(--bg-soft); }

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 16px;
}
.sec-label::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--teal);
}
.sec-head.center .sec-label::before { display: none; }
.sec-title { font-size: clamp(26px, 4.2vw, 40px); color: var(--ink); text-wrap: balance; }
.sec-sub { margin-top: 16px; font-size: 17px; color: var(--ink-3); }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .22s var(--ease);
}
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(34, 51, 110, .32); }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34, 51, 110, .4); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--teal-ink); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-line-oa { background: #06c755; color: #fff; }
.btn-line-oa:hover { filter: brightness(.95); transform: translateY(-2px); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(120px, 16vw, 172px) 0 clamp(60px, 8vw, 96px); }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 64px); align-items: center;
}
.hero-copy { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s);
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(34, 51, 110, .18); }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); margin: 22px 0 0; letter-spacing: -.02em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--teal), var(--teal-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dot { color: var(--coral); }
.hero-lead { margin-top: 22px; font-size: clamp(16px, 2.1vw, 18.5px); color: var(--ink-2); max-width: 30em; }
.hero-pains { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-pains li {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-teal); border: 1px solid #d5ddf6; padding: 7px 14px; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero — 簡潔標語版（整屏置中大字，仿 Cybozu / JOYZO） */
.hero-simple { min-height: 86vh; display: flex; align-items: center; text-align: center;
  padding: 120px 0 clamp(70px, 10vw, 120px); }
.hero-simple .wrap { width: min(100% - 44px, 900px); }
.hero-simple .hero-badge { margin-inline: auto; }
.hero-simple h1 { font-size: clamp(33px, 6.4vw, 64px); margin: 28px auto 0; line-height: 1.24; }
.hero-simple .hero-lead { margin: 26px auto 0; max-width: 32em; font-size: clamp(16px, 2.1vw, 19px); color: var(--ink-2); }
.hero-simple .hero-actions { justify-content: center; margin-top: 38px; }

/* Hero 公司介紹卡 */
.hero-about { min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3.4vw, 38px); box-shadow: var(--shadow-l); }
.ha-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 16px; }
.ha-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--teal); }
.ha-lead { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.ha-lead strong { color: var(--ink); font-weight: 700; }
.ha-principle { margin: 22px 0; padding: 22px 24px; border-radius: var(--radius-s);
  background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff;
  font-size: 15.5px; font-weight: 700; line-height: 1.7; font-style: normal; }
.ha-principle cite { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 600;
  font-style: normal; color: rgba(255, 255, 255, .68); }
.ha-scope { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-scope li { font-size: 13px; font-weight: 600; color: var(--teal-ink);
  background: var(--bg-teal); border: 1px solid #d5ddf6; padding: 7px 13px; border-radius: 999px; }

/* Hero 產品畫面 */
.product { position: relative; min-width: 0; }
.product-window {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l); overflow: hidden; transform: rotate(.4deg);
}
.pw-chrome {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.pw-dot { width: 11px; height: 11px; border-radius: 50%; background: #d3dde2; }
.pw-dot:nth-child(1) { background: #ff6a5a; } .pw-dot:nth-child(2) { background: #ffb020; } .pw-dot:nth-child(3) { background: #24c07a; }
.pw-url { margin-left: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.pw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pw-search { flex: 1; min-width: 120px; font-size: 12.5px; color: var(--ink-3); background: var(--bg-soft); padding: 7px 12px; border-radius: 8px; }
.pw-tag { font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 8px; background: var(--bg-teal); color: var(--teal-ink); }
.pw-tag.due { background: #fff1ec; color: #d24a2f; }
.pw-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pw-table th { text-align: left; font-weight: 700; color: var(--ink-3); padding: 10px 14px; background: var(--bg-soft); }
.pw-table td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pw-table tr.due td { background: #fffaf6; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chip-ok { background: var(--bg-teal); color: var(--teal-ink); }
.chip-due { background: #fff1ec; color: #d24a2f; }
.pw-foot { padding: 11px 16px; font-size: 11.5px; color: var(--ink-3); background: var(--bg-soft); border-top: 1px solid var(--line); }
.pw-float {
  position: absolute; right: -14px; bottom: 26px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-m);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.pw-float .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 14px; }

/* =========================================================
   數據列
   ========================================================= */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(56px, 8vw, 90px);
}
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-s); }
.stat-num { font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: var(--teal-deep); letter-spacing: -.02em; }
.stat-unit { font-size: 16px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.stat p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* =========================================================
   痛點卡
   ========================================================= */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* 四角尖＋墨黑細框（與成功案例卡同語彙），hover 保留頂端滑線 */
.pain-card {
  background: #fff; border: 1.5px solid var(--ink); border-radius: 0; padding: 30px 26px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.pain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.pain-mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-teal); color: var(--teal-deep); font-weight: 800; font-size: 17px; margin-bottom: 18px;
}
.pain-card h3 { font-size: 18px; margin-bottom: 10px; }
.pain-card p { font-size: 14.5px; color: var(--ink-3); }

/* =========================================================
   服務方案
   ========================================================= */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s;
  overflow: hidden;
}
.solution-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.solution-card:hover::before { transform: scaleX(1); }
.sc-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-teal), #dbe2f8); color: var(--teal-deep); margin-bottom: 20px;
}
.sc-icon svg { width: 28px; height: 28px; }
.solution-for { font-size: 12.5px; font-weight: 700; color: var(--coral); margin-bottom: 12px; letter-spacing: .01em; }
.solution-card h3 { font-size: 21px; margin-bottom: 12px; }
.solution-card > p { font-size: 14.5px; color: var(--ink-3); margin-bottom: 20px; }
.sc-list { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sc-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); }
.sc-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2322336e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* =========================================================
   案例
   ========================================================= */
.case-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.case-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-s); }
.case-eyebrow { font-size: 13px; font-weight: 700; color: var(--teal-deep); letter-spacing: .04em; margin-bottom: 14px; }
.case-lead { font-size: 15.5px; color: var(--ink-2); margin-bottom: 26px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-col { border-radius: var(--radius-s); padding: 22px; border: 1px solid var(--line); }
.ba-col.before { background: var(--bg-soft); }
.ba-col.after { background: var(--bg-teal); border-color: #d5ddf6; }
.ba-col h4 { font-size: 14px; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 7px; }
.ba-col.before h4 { color: var(--ink-3); }
.ba-col.after h4 { color: var(--teal-ink); }
.ba-col ul { display: flex; flex-direction: column; gap: 9px; }
.ba-col li { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.ba-col.before li::before { content: "–"; position: absolute; left: 2px; color: var(--ink-3); }
.ba-col.after li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-deep); font-weight: 800; font-size: 12px; }
.principle { margin: 26px 0 0; padding: 22px 26px; background: var(--ink); color: #fff; border-radius: var(--radius-s); }
.principle p { font-size: 17px; font-weight: 700; line-height: 1.6; }
.principle cite { display: block; margin-top: 10px; font-size: 13px; color: #a9b8ee; font-style: normal; }

.case-facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-s); position: sticky; top: 96px; }
.case-facts dl { display: flex; flex-direction: column; gap: 0; margin: 0; }
.case-facts dl > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.case-facts dl > div:first-child { border-top: none; }
.case-facts dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.case-facts dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }

.case2 { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-s); }
.case2-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.case2-head h3 { font-size: 20px; }
.p-chip { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg-teal); color: var(--teal-ink); }
.case2-lead { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.case2-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case2-points li { font-size: 14px; color: var(--ink-2); }
.case2-points strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* =========================================================
   服務方案：成果轉變卡（舊狀態 → 新狀態）
   ========================================================= */
.outcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.outcome-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s; }
.outcome-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.oc-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-teal), #dbe2f8); color: var(--teal-deep); margin-bottom: 22px; }
.oc-icon svg { width: 27px; height: 27px; }
.oc-flow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.oc-from { font-size: 15px; font-weight: 600; color: var(--ink-3);
  text-decoration: line-through; text-decoration-color: rgba(107, 118, 144, .4); }
.oc-arrow { color: var(--teal); flex-shrink: 0; }
.oc-to { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.outcome-card > p { font-size: 14.5px; color: var(--ink-3); line-height: 1.75; }

/* hover 從左滑入的頂線：問題卡・成果卡・流程步驟共用（成功案例卡不套用） */
.pain-card, .outcome-card, .step { position: relative; overflow: hidden; }
.pain-card::before, .outcome-card::before, .step::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.pain-card:hover::before, .outcome-card:hover::before, .step:hover::before { transform: scaleX(1); }

/* 服務方案：一整塊置中面板（呼應駿騰的目標，但白底、四角偏尖／直角） */
.services-panel { max-width: 1000px; margin: 0 auto; position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: 0;
  padding: clamp(46px, 6vw, 80px) clamp(34px, 5vw, 72px);
  box-shadow: 0 26px 64px rgba(16, 22, 50, .10); }
/* 內框線（呼應目標方塊，直角） */
.services-panel::before { content: ""; position: absolute; inset: clamp(14px, 1.7vw, 22px);
  border: 1.5px solid rgba(34, 51, 110, .16); pointer-events: none; }
.services-panel > * { position: relative; }
/* 面板內的成果卡：拿掉卡片外觀，變成三欄內容（保留 hover 頂線） */
.services-panel .outcome-grid { gap: clamp(18px, 2.6vw, 30px); }
.services-panel .outcome-card { background: none; border: none; box-shadow: none; padding: 6px 10px; }
.services-panel .outcome-card:hover { transform: none; box-shadow: none; }
.services-panel .solution-grid { gap: clamp(18px, 2.6vw, 30px); }
.services-panel .solution-card { background: none; border: none; box-shadow: none; padding: 6px 10px; }
.services-panel .solution-card:hover { transform: none; box-shadow: none; }
.services-panel .steps { gap: clamp(8px, 1.4vw, 16px); }
.services-panel .step { background: none; border: none; box-shadow: none; padding: 6px 8px; overflow: visible; }
.services-panel .step:hover { transform: none; box-shadow: none; }
/* 面板內的扁平欄位不需要 hover 滑線（保留給「你遇到的問題」卡片） */
.services-panel .outcome-card::before,
.services-panel .solution-card::before,
.services-panel .step::before { display: none; }
/* 合作流程：步驟數字之間的虛線引導（把五步串成一條流程） */
.services-panel .step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 56px; right: -10px; height: 3px;
  background-image: radial-gradient(circle, rgba(34, 51, 110, .3) 1.5px, transparent 1.6px);
  background-size: 11px 3px; background-repeat: repeat-x; background-position: 0 50%; }

/* 米色面板（產品）：與導覽列、郵票同一張紙——米底、藍墨文字、小方孔點綴（呼應古錢） */
.services-panel.panel-beige {
  background: radial-gradient(130% 130% at 50% -12%, rgba(255, 255, 255, .55), rgba(0, 0, 0, 0) 55%) #f6f3e9;
  border-color: rgba(151, 124, 72, .35);
  box-shadow: 0 26px 64px rgba(16, 22, 50, .1); }
.services-panel.panel-beige::before { border-color: rgba(34, 51, 110, .24); }
.panel-beige .sec-label { color: var(--teal-deep); }
.panel-beige .sec-label::before { background: var(--teal-deep); }
.panel-beige .sec-title { color: var(--teal); }
.panel-beige .sec-sub { color: var(--ink-2); }
.panel-beige .solution-card h3 { color: var(--teal-deep); }
.panel-beige .solution-card h3::before { content: ""; display: inline-block; width: 9px; height: 9px;
  border: 1.5px solid rgba(151, 124, 72, .6); margin-right: 9px; transform: translateY(-1px); }
.panel-beige .solution-card > p { color: var(--ink-2); }

/* =========================================================
   我們的目標：置中的午夜藍方塊（兩側留白給背景）
   ========================================================= */
/* 陰影放在外層 wrap（filter 會沿著齒孔的形狀描邊，齒邊在淺底上才讀得出來） */
#goal .wrap { filter: drop-shadow(0 22px 40px rgba(16, 22, 50, .16)) drop-shadow(0 4px 10px rgba(16, 22, 50, .07)); }
.goal-box { --notch: 7px; --gap: 18px;
  max-width: 1000px; margin: 0 auto; position: relative; color: var(--ink-2);
  background: radial-gradient(130% 130% at 50% -12%, rgba(255, 255, 255, .55), rgba(0, 0, 0, 0) 55%) #f6f3e9;
  padding: clamp(50px, 6.4vw, 88px) clamp(40px, 6vw, 82px);
  /* 明信片／郵票的細緻圓齒邊：四邊各咬出半圓缺口，再取交集 */
  -webkit-mask:
    radial-gradient(var(--notch) at 50% 0,    #0000 96%, #000) 50% 0    / var(--gap) 100% repeat-x,
    radial-gradient(var(--notch) at 50% 100%, #0000 96%, #000) 50% 100% / var(--gap) 100% repeat-x,
    radial-gradient(var(--notch) at 0 50%,    #0000 96%, #000) 0 50%    / 100% var(--gap) repeat-y,
    radial-gradient(var(--notch) at 100% 50%, #0000 96%, #000) 100% 50% / 100% var(--gap) repeat-y;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(var(--notch) at 50% 0,    #0000 96%, #000) 50% 0    / var(--gap) 100% repeat-x,
    radial-gradient(var(--notch) at 50% 100%, #0000 96%, #000) 50% 100% / var(--gap) 100% repeat-x,
    radial-gradient(var(--notch) at 0 50%,    #0000 96%, #000) 0 50%    / 100% var(--gap) repeat-y,
    radial-gradient(var(--notch) at 100% 50%, #0000 96%, #000) 100% 50% / 100% var(--gap) repeat-y;
  mask-composite: intersect; }
/* 郵票內框線（雙細線，像印在紙上的邊框） */
.goal-box::before { content: ""; position: absolute; inset: clamp(16px, 1.9vw, 24px);
  border: 1.5px solid rgba(34, 51, 110, .42); box-shadow: inset 0 0 0 3.5px rgba(34, 51, 110, .13);
  pointer-events: none; }
.goal-box > * { position: relative; }
.goal-box .sec-head { margin-bottom: clamp(22px, 3vw, 32px); }
.goal-box .sec-label { color: var(--teal-deep); font-size: 16px; }
.goal-box .sec-label::before { background: var(--teal-deep); }
.goal-box .sec-title { color: var(--teal); }
.goal-lead { max-width: 42em; margin: 0 auto; text-align: center;
  font-size: clamp(15px, 2vw, 17px); line-height: 1.9; color: var(--ink-2); }
/* 方塊內底部的總結句 */
.goal-note { max-width: 40em; margin: clamp(26px, 3vw, 36px) auto 0;
  padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid rgba(34, 51, 110, .22);
  text-align: center; font-size: clamp(16px, 2vw, 19px); font-weight: 700; line-height: 1.7; color: var(--teal); }

/* =========================================================
   案例卡（首頁入口）
   ========================================================= */
/* 成功案例：陳列木框（參考玉飾陳列照）——只有框是胡桃木＋金色內緣線，內部維持淺色 */
.case-frame { position: relative; margin: 0 auto;
  background: #fcfaf4;
  border: clamp(14px, 1.8vw, 20px) solid;
  border-image: linear-gradient(160deg, #756555, #57493c) 1;
  padding: clamp(36px, 5vw, 58px) clamp(26px, 4vw, 54px);
  box-shadow: 0 24px 56px rgba(16, 22, 50, .16); }
.case-frame::before { content: ""; position: absolute; inset: 0;
  border: 1.5px solid rgba(201, 168, 107, .85); pointer-events: none; }
.case-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 22px; justify-content: center; }
/* 直式卡：四角尖、黑框（呼應面板的直角語彙） */
.case-card { background: #fff; border: 1.5px solid var(--ink); border-radius: 0;
  padding: 28px 24px 26px; text-align: center; box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
/* 客戶 logo（點了連客戶官網） */
.cc-logo { display: grid; place-items: center; width: 100%; height: 128px; border-radius: var(--radius-s);
  background: #fff; margin-bottom: 16px; overflow: hidden; }
.cc-logo img { max-width: 78%; max-height: 86px; object-fit: contain; }
.cc-logo-ph { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: .04em; color: var(--teal);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-logo-ph svg { width: 46px; height: 46px; color: var(--teal); opacity: .55; }
/* 公司名（點了連客戶官網） */
.cc-name { font-size: 16px; font-weight: 700; color: var(--teal-deep); margin-bottom: 16px; transition: color .2s; }
.cc-name:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
/* 成功案例 按鈕（點了看完整案例） */
.cc-casebtn { margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #fff; background: var(--teal);
  padding: 9px 20px; border-radius: 999px; transition: background .2s, transform .2s; }
.cc-casebtn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.cc-casebtn svg { width: 15px; height: 15px; transition: transform .2s; }
.cc-casebtn:hover svg { transform: translateX(3px); }

/* =========================================================
   案例詳細頁
   ========================================================= */
.case-hero { padding: clamp(108px, 14vw, 148px) 0 clamp(28px, 4vw, 44px); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--ink-3); margin-bottom: 22px; transition: color .2s, gap .2s; }
.back-link:hover { color: var(--teal-deep); gap: 9px; }
.back-link svg { width: 16px; height: 16px; }
.case-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--teal-deep); margin-bottom: 14px; }
.case-hero h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -.02em; }
.case-hero .lead { margin-top: 18px; font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); max-width: 44em; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.case-meta span { font-size: 13px; font-weight: 600; background: var(--bg-teal); color: var(--teal-ink);
  padding: 7px 14px; border-radius: 999px; }
.case-cta { background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff;
  border-radius: var(--radius); padding: clamp(32px, 5vw, 52px); text-align: center; }
.case-cta h2 { font-size: clamp(22px, 3.4vw, 30px); color: #fff; }
.case-cta p { margin: 14px auto 26px; color: rgba(255, 255, 255, .84); max-width: 34em; font-size: 15.5px; }
.case-cta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.case-cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* =========================================================
   合作流程
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 26px 22px; box-shadow: var(--shadow-s); }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-3); }

/* =========================================================
   聯絡
   ========================================================= */
/* 聯絡：一封「信」（表單）凸出於下方午夜藍公司資訊之上 */
.contact-sec { padding-top: clamp(70px, 9vw, 120px); }
.letter { position: relative; z-index: 3; max-width: 1000px; margin: 0 auto -56px;
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 54px); align-items: center;
  background: #fff; border-radius: 8px; padding: clamp(30px, 4.4vw, 50px) clamp(28px, 4.4vw, 52px);
  box-shadow: 0 40px 80px rgba(16, 22, 50, .3), 0 6px 18px rgba(16, 22, 50, .12); }
.letter > * { position: relative; min-width: 0; }
.letter-head { text-align: left; }
.letter-head .sec-label { justify-content: flex-start; color: var(--teal-deep); }
.letter-head .sec-label::before { display: none; }
.letter-title { font-size: clamp(23px, 2.9vw, 31px); color: var(--ink); }
.letter-lead { margin: 15px 0 0; max-width: none; font-size: 15px; line-height: 1.8; color: var(--ink-3); }
.letter .lead-form { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.contact-alt { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.contact-alt-label { font-size: 13px; color: var(--ink-3); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; justify-content: flex-start; }

/* 送出後：整格被信封封起來（封緘動畫）+ 已送出訊息 */
.letter { perspective: 1100px; }
.env-seal { position: absolute; inset: 0; z-index: 6; border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(34, 51, 110, .05), rgba(34, 51, 110, 0) 60%), #f2e8d4;
  opacity: 0; visibility: hidden; transition: opacity .3s ease; }
/* 信封下半的口袋接縫（兩條斜線交會於中心） */
.env-seal::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - .8px), rgba(34, 51, 110, .12) 50%, transparent calc(50% + .8px)) left bottom / 50% 66% no-repeat,
    linear-gradient(to top left,  transparent calc(50% - .8px), rgba(34, 51, 110, .12) 50%, transparent calc(50% + .8px)) right bottom / 50% 66% no-repeat; }
.env-flap { position: absolute; top: 0; left: 0; width: 100%; height: 60%; z-index: 2;
  transform-origin: top center; transform: rotateX(180deg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(to bottom, #efe2c9, #e7d7b6);
  box-shadow: 0 10px 16px rgba(34, 51, 110, .14); }
.env-msg { position: relative; z-index: 3; text-align: center; opacity: 0; color: var(--teal); }
.env-tick { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(34, 51, 110, .3); }
.env-tick svg { width: 22px; height: 22px; }
.env-msg strong { display: block; font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; letter-spacing: .03em; }
.env-thanks { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-3); }
.letter.sent .env-seal { opacity: 1; visibility: visible; }
.letter.sent .env-flap { animation: envSeal .75s cubic-bezier(.5, .05, .3, 1) forwards; }
.letter.sent .env-msg { animation: envMsg .5s ease .72s forwards; }
@keyframes envSeal { from { transform: rotateX(180deg); } to { transform: rotateX(0deg); } }
@keyframes envMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .letter.sent .env-flap { animation: none; transform: rotateX(0deg); }
  .letter.sent .env-msg { animation: none; opacity: 1; }
}

/* 深木色：公司資訊（素面深木、無紋路，上緣一條金色細邊） */
.company-bar { color: rgba(244, 238, 228, .9);
  background: linear-gradient(180deg, #4a3d30, #352a20);
  border-top: 2px solid rgba(201, 168, 107, .65);
  padding: clamp(94px, 11vw, 122px) 0 clamp(40px, 5vw, 60px); }
.company-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 28px 50px;
  padding-bottom: clamp(28px, 3.4vw, 40px); border-bottom: 1px solid rgba(232, 213, 176, .2); }
.company-brand .brand-name { color: #f6f1e6; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.company-brand .brand-en { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .18em; color: rgba(246, 241, 230, .55); font-weight: 600; }
.company-info { display: grid; grid-template-columns: repeat(2, auto); gap: 18px 48px; margin: 0; }
.company-info dt { font-size: 12px; font-weight: 600; color: rgba(232, 213, 176, .65); margin-bottom: 3px; }
.company-info dd { margin: 0; font-size: 15px; color: #f6f1e6; }
.company-info a { color: #f6f1e6; border-bottom: 1px solid rgba(246, 241, 230, .35); }
.company-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(24px, 3vw, 34px); }
.company-bottom .mono { font-size: 13px; color: rgba(240, 232, 216, .58); }
.company-bottom nav { display: flex; gap: 22px; }
.company-bottom nav a { font-size: 14px; color: rgba(246, 241, 230, .78); transition: color .2s; }
.company-bottom nav a:hover { color: #fff; }

.lead-form { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); color: var(--ink); box-shadow: var(--shadow-l); }
.lf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.lf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.lf-field input, .lf-field textarea { min-width: 0; }
.lf-field span { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.lf-field b { color: var(--coral); }
.lf-field input, .lf-field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
.lf-field input:focus, .lf-field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.lf-field textarea { resize: vertical; }
.lf-hp { position: absolute; left: -9999px; }
.lf-submit { width: 100%; margin-top: 4px; }
.lf-status { margin-top: 12px; font-size: 14px; text-align: center; min-height: 1.2em; }

/* =========================================================
   頁尾
   ========================================================= */
.footer { background: #0a1130; color: #8791ac; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner .mono { font-size: 13px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { font-size: 14px; color: #b7c0da; transition: color .2s; }
.footer nav a:hover { color: var(--teal); }

/* =========================================================
   進場動畫
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   響應式
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .product { order: -1; max-width: 460px; }
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-facts { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services-panel .step::after { display: none; }
  .company-top { flex-direction: column; gap: 26px; }
  .letter { grid-template-columns: 1fr; align-items: start; gap: 4px; }
  .letter .lead-form { margin-top: 26px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: #f6f3e9; border-bottom: 1px solid rgba(151, 124, 72, .3); padding: 16px 22px 24px;
    box-shadow: 0 12px 30px rgba(16, 22, 50, .14); transform: translateY(-120%); transition: transform .32s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid rgba(34, 51, 110, .12); }
  .nav-links .nav-cta { text-align: center; border-bottom: none; margin-top: 8px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
    width: 44px; height: 44px; border: 1px solid rgba(34, 51, 110, .3); border-radius: 12px; background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain-grid { grid-template-columns: 1fr; }
  .outcome-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .case2-points { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lf-row { grid-template-columns: 1fr; }
  .pw-float { display: none; }
  .lattice { display: none; }
  .company-info { grid-template-columns: 1fr; gap: 14px 0; }
  .company-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .letter { margin-bottom: -44px; }
}
