/* ═══════════════════════════════════════════════════════════════
   創辰地產 Chong Sun Properties — 官網設計稿 V1
   深墨綠 × 香檳金 × 米白 · 高端金融地產質感
   A 代理產出：僅樣式，無 JavaScript、無外部資源
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. 設計令牌 ─────────────────────────────────────────────── */
:root {
  --pine:      #0E332A;   /* 主色 · 深墨綠 */
  --pine-deep: #082019;   /* 更深 · hero/footer 底 */
  --pine-soft: #1A4638;   /* 層次綠 */
  --gold:      #C6A15B;   /* 香檳金 · 強調 */
  --gold-soft: #E3CE9E;   /* 淺金 · 深底上的文字 */
  --gold-deep: #9A7B3F;   /* 深金 · 淺底上的金文字（輔助令牌） */
  --cream:     #F7F4ED;   /* 淺米 · 區塊底 */
  --paper:     #FFFFFF;
  --mist:      #E7E2D6;   /* 邊框 */
  --ink:       #20241F;   /* 正文 */
  --muted:     #6E6F65;   /* 次要文字 */

  --serif: "Noto Serif TC","Noto Serif SC","Songti TC","STSong","SimSun",serif;
  --sans:  -apple-system,BlinkMacSystemFont,"PingFang TC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;

  --r: 14px;
  --shadow-sm: 0 2px 12px rgba(8,32,25,.06);
  --shadow-md: 0 12px 32px rgba(8,32,25,.10);
  --shadow-lg: 0 22px 52px rgba(8,32,25,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── 2. 基礎 ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--gold); color: var(--pine-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1200px, 92%); margin: 0 auto; }

section[id] { scroll-margin-top: 86px; }

.section { padding: 112px 0; }

/* ── 3. 通用文字元件 ─────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 30px;
  height: 1.5px;
  background: var(--gold);
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--pine);
}

.sec-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-head .sec-title { margin-bottom: 14px; }
.sec-sub {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.sub-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--pine);
  margin-bottom: 34px;
}
.sub-title::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--gold);
}

/* ── 4. 按鈕 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s, color .3s, border-color .3s;
}

.btn-gold {
  background: linear-gradient(135deg, #D6B473, var(--gold));
  color: var(--pine-deep);
  box-shadow: 0 10px 26px rgba(198,161,91,.32);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(198,161,91,.45);
}

.btn-ghost {
  border-color: rgba(247,244,237,.55);
  color: #F7F4ED;
  background: rgba(8,32,25,.22);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: #F7F4ED;
  background: rgba(247,244,237,.12);
}

.btn-block { width: 100%; }

/* ── 5. 佔位標記 .ph ─────────────────────────────────────────── */
.ph {
  position: relative;
  display: inline-block;
  padding: .12em .5em;
  border: 1.5px dashed rgba(198,161,91,.55);
  border-radius: 8px;
  background: rgba(198,161,91,.06);
  color: inherit;
}
.ph::after {
  content: "待補";
  position: absolute;
  top: -9px;
  right: -10px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--gold);
  color: var(--pine-deep);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}
[data-lang="en"] .ph::after { content: "TBD"; }

.ph-inline {
  padding: .18em .7em;
  font-size: .92em;
  border-radius: 6px;
}

/* ── 6. 頂欄 ─────────────────────────────────────────────────── */
#siteHeader {
  --hd-ink: #F7F4ED;
  --hd-sub: rgba(247,244,237,.72);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color .35s, box-shadow .35s;
}
#siteHeader.scrolled {
  --hd-ink: var(--pine);
  --hd-sub: var(--muted);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 6px 28px rgba(8,32,25,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: 78px;
}

/* 字標 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hd-ink);
  transition: color .35s;
}
.brand-seal {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--gold);
  transition: transform .35s var(--ease);
}
.brand:hover .brand-seal { transform: scale(1.06) rotate(-3deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-zh {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
}
.brand-en {
  margin-top: 2px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--hd-sub);
  transition: color .35s;
}

/* 主導航 */
.main-nav { display: flex; gap: 30px; }
.nav-link {
  position: relative;
  padding: 6px 2px;
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--hd-sub);
  transition: color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--hd-ink); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

#langToggle {
  padding: 7px 16px;
  border: 1px solid rgba(198,161,91,.65);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  transition: background-color .3s, color .3s, transform .3s;
}
#langToggle:hover {
  background: var(--gold);
  color: var(--pine-deep);
  transform: translateY(-1px);
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
  text-decoration: none;
}
.cta-label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--hd-sub);
  transition: color .35s;
}
.cta-num {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--hd-ink);
  transition: color .3s;
}
.header-cta:hover .cta-num { color: var(--gold); }

/* 漢堡（默認隱藏，≤760 顯示） */
#navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
#navToggle .bar {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--hd-ink);
  transition: transform .35s var(--ease), opacity .3s, background-color .35s;
}
body.nav-open #navToggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open #navToggle .bar:nth-child(2) { opacity: 0; }
body.nav-open #navToggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }
body.nav-open #siteHeader {
  --hd-ink: #F7F4ED;
  --hd-sub: rgba(247,244,237,.72);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ── 7. 首屏 HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--pine-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url(../assets/hk1.jpg) center/cover no-repeat;
}
/* SPEC 指定遮罩 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,32,25,.94), rgba(8,32,25,.55) 55%, rgba(8,32,25,.2));
}
/* 底部漸隱，銜接下一區 */
.hero-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8,32,25,0), rgba(8,32,25,.6));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 150px 0 120px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--gold-soft);
}
.kicker-line {
  flex: none;
  width: 34px;
  height: 1.5px;
  background: var(--gold);
}
.hero-kicker .ph {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--gold-soft);
  background: rgba(8,32,25,.4);
}

.hero-title {
  margin: 26px 0 22px;
  font-family: var(--serif);
  font-size: clamp(42px, 6.6vw, 70px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .04em;
  color: #F7F4ED;
  text-shadow: 0 2px 34px rgba(8,32,25,.55);
}

.hero-lead {
  max-width: 640px;
  font-size: 16.5px;
  line-height: 2.05;
  color: rgba(247,244,237,.84);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 40px;
}
.chip {
  padding: 9px 19px;
  border: 1px solid rgba(227,206,158,.4);
  border-radius: 999px;
  background: rgba(227,206,158,.07);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--gold-soft);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover {
  background: rgba(227,206,158,.16);
  border-color: rgba(227,206,158,.7);
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 46px;
}

/* 進場動效（純 CSS，不依賴 JS） */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker  { animation: heroUp .9s var(--ease) .05s both; }
.hero-title   { animation: heroUp .9s var(--ease) .18s both; }
.hero-lead    { animation: heroUp .9s var(--ease) .32s both; }
.hero-chips   { animation: heroUp .9s var(--ease) .46s both; }
.hero-cta     { animation: heroUp .9s var(--ease) .6s both; }

/* ── 8. 關於我們 ─────────────────────────────────────────────── */
.about { background: var(--paper); }

.about-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 76px;
}
.about-p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--muted);
}

/* 全鏈路流程鏈 */
.chain-block { margin-bottom: 96px; }

.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
/* 金色連接線：貫穿四個序號圓心 */
.chain::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(198,161,91,.2), var(--gold) 12%, var(--gold) 88%, rgba(198,161,91,.2));
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(198,161,91,.6);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--gold-deep);
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
}
.step-card {
  width: 100%;
  margin-top: 14px;
  padding: 24px 20px 22px;
  border: 1px solid var(--mist);
  border-radius: var(--r);
  background: var(--cream);
  transition: border-color .4s, box-shadow .4s, background-color .4s, transform .4s var(--ease);
}
.step-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--pine);
}
.step-card p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}
.step.active .step-no {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--pine-deep);
  box-shadow: 0 8px 20px rgba(198,161,91,.4);
}
.step.active .step-card {
  background: var(--paper);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow-md);
  transform: translateY(-4px);
}

/* 集團生態 */
.eco {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 60px;
  align-items: center;
}
.eco-media {
  position: relative;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}
.eco-media img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: var(--r);
}
.eco-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(227,206,158,.4);
  border-radius: 8px;
  pointer-events: none;
}
.eco-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D6B473, var(--gold));
  color: var(--pine-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 10px 24px rgba(8,32,25,.3);
}

.eco-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--mist);
}
.eco-item:last-child { border-bottom: none; }
.eco-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(198,161,91,.12);
  color: var(--gold-deep);
  transition: background-color .35s, transform .35s var(--ease);
}
.eco-ic svg { width: 24px; height: 24px; }
.eco-item:hover .eco-ic {
  background: rgba(198,161,91,.2);
  transform: translateY(-2px);
}
.eco-txt h4 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--pine);
}
.eco-txt p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ── 9. 核心業務 ─────────────────────────────────────────────── */
.services { background: var(--cream); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.svc-card {
  position: relative;
  padding: 34px 30px 32px;
  border: 1px solid var(--mist);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  width: 54px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198,161,91,.45);
  box-shadow: var(--shadow-md);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(198,161,91,.1);
  color: var(--gold-deep);
  transition: background-color .35s, transform .35s var(--ease);
}
.svc-ic svg { width: 27px; height: 27px; }
.svc-card:hover .svc-ic {
  background: rgba(198,161,91,.18);
  transform: translateY(-2px);
}

.svc-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--pine);
  margin-bottom: 10px;
}
.svc-card p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ── 10. 實績數據 ────────────────────────────────────────────── */
.stats {
  position: relative;
  padding: 96px 0;
  background: var(--pine);
  color: var(--cream);
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/night.jpg) center/cover no-repeat;
  opacity: .12;
  filter: saturate(.6);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  position: relative;
  padding: 8px 24px;
  text-align: center;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 1px;
  background: rgba(247,244,237,.15);
}

.num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: .08em;
  color: rgba(247,244,237,.72);
}

/* ── 11. 精選案例（佔位） ────────────────────────────────────── */
.cases { background: var(--cream); }

.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 8px 20px;
  border: 1.5px dashed rgba(198,161,91,.7);
  border-radius: 999px;
  background: rgba(198,161,91,.08);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-deep);
}
.ph-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 28px 42px;
  border: 1.5px dashed rgba(198,161,91,.6);
  border-radius: var(--r);
  background: rgba(255,255,255,.6);
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s, background-color .35s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.85);
}
.case-ic {
  width: 76px;
  height: 56px;
  margin-bottom: 22px;
  color: #B9B3A2;
}
.case-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #7C7D73;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .05em;
  color: rgba(110,111,101,.85);
}
.case-meta .dot { color: var(--gold); }

/* ── 12. 聯絡我們 ────────────────────────────────────────────── */
.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 30px;
  align-items: stretch;
}

/* 左：深綠信息卡 */
.info-card {
  position: relative;
  padding: 38px 34px;
  border-radius: var(--r);
  border-top: 3px solid var(--gold);
  background: linear-gradient(168deg, var(--pine-soft) 0%, var(--pine) 46%, var(--pine-deep) 100%);
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(247,244,237,.12);
}
.info-list li:first-child { padding-top: 4px; }
.info-list li:last-child { border-bottom: none; }
.info-list .k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--gold);
}
.info-list .v {
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(247,244,237,.92);
}
.v-link { text-decoration: none; transition: color .3s; }
.v-link:hover { color: var(--gold-soft); }
.info-list .ph {
  align-self: flex-start;
  color: var(--gold-soft);
  background: rgba(8,32,25,.35);
}

/* 社媒圖標 */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}
.social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed rgba(198,161,91,.55);
  background: rgba(198,161,91,.06);
  color: rgba(247,244,237,.85);
  padding: 0;
  transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.social a svg { width: 18px; height: 18px; }
.social a::after {
  top: -8px;
  right: -13px;
  font-size: 9px;
  padding: 2px 5px;
}
.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--pine-deep);
  transform: translateY(-3px);
}

/* 右：白表單卡 */
.form-card {
  padding: 38px 34px;
  border: 1px solid var(--mist);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--pine);
}
.req {
  font-style: normal;
  font-weight: 700;
  color: #B08A45;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: #FCFBF8;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field input::placeholder,
.field textarea::placeholder { color: #A8A69C; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(198,161,91,.18);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: 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 1.5l5 5 5-5' fill='none' stroke='%23C6A15B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
}

.form-card .btn { margin-top: 4px; }

.form-note {
  margin-top: 15px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .03em;
  line-height: 1.8;
  color: var(--muted);
}

/* ── 13. 頁腳 ────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  padding: 62px 0 26px;
  background: var(--pine-deep);
  color: rgba(247,244,237,.65);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,161,91,.55), transparent);
}

.ft-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 44px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247,244,237,.1);
}
.ft-brand .brand { --hd-ink: #F7F4ED; color: #F7F4ED; }
.ft-brand .brand-en { color: rgba(247,244,237,.5); }
.ft-tagline {
  margin-top: 16px;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: rgba(247,244,237,.58);
}
.ft-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  text-align: right;
}
.ft-member {
  display: inline-block;
  padding: 6px 15px;
  border: 1px solid rgba(198,161,91,.45);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold-soft);
}
.ft-draft { font-size: 13px; color: rgba(247,244,237,.55); }
.ft-eaa {
  font-size: 12.5px;
  color: rgba(247,244,237,.75);
  background: rgba(198,161,91,.05);
}

.ft-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(247,244,237,.42);
}

/* ── 14. 佔位清單：懸浮鈕 + 面板 ─────────────────────────────── */
#draftToggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(140deg, #D8B676, var(--gold) 58%, #B18F4C);
  color: var(--pine-deep);
  box-shadow: 0 12px 30px rgba(8,32,25,.3), 0 0 0 5px rgba(198,161,91,.16);
  transition: transform .3s var(--ease), box-shadow .3s;
}
#draftToggle svg { width: 20px; height: 20px; }
#draftToggle span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}
#draftToggle:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 38px rgba(8,32,25,.36), 0 0 0 5px rgba(198,161,91,.24);
}

#draftPanel {
  position: fixed;
  right: 22px;
  bottom: 100px;
  z-index: 1190;
  width: min(340px, 88vw);
  padding: 24px;
  border: 1px solid rgba(198,161,91,.4);
  border-radius: var(--r);
  background: linear-gradient(168deg, #124434, var(--pine) 46%, var(--pine-deep));
  box-shadow: 0 24px 60px rgba(8,32,25,.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
#draftPanel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.dp-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold-soft);
}
.dp-sub {
  margin: 6px 0 18px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(247,244,237,.55);
}
.dp-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}
.dp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(247,244,237,.85);
}
.dp-no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1.5px dashed rgba(198,161,91,.65);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
}

/* ── 15. Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 1300;
  max-width: min(92vw, 520px);
  padding: 15px 28px;
  border: 1px solid rgba(198,161,91,.5);
  border-radius: 12px;
  background: rgba(8,32,25,.96);
  color: #F7F4ED;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(8,32,25,.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .4s, transform .4s var(--ease), visibility .4s;
}
.toast::before {
  content: "✓";
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}
.toast p { display: inline; margin: 0; line-height: 1.75; }
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ── 16. 滾動顯現 ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════
   響應式：1020–761 平板（柵格降 2 列）
   ═════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
  .section { padding: 88px 0; }

  .about-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 60px;
  }

  .chain { gap: 20px; }
  .chain-block { margin-bottom: 72px; }

  .eco {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  /* 數據 5 → 3 列，改為上緣分隔線 */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 42px;
  }
  .stat { border-top: 1px solid rgba(247,244,237,.14); padding-top: 30px; }
  .stat + .stat::before { display: none; }
}

/* 平板窄欄：頂欄緊湊 */
@media (max-width: 940px) {
  .brand-en { display: none; }
  .main-nav { gap: 20px; }
  .nav-link { font-size: 13px; }
  .cta-label { display: none; }
  .header-cta { align-items: center; }
}

/* ═══════════════════════════════════════════════════════════
   響應式：≤760 手機（單列、漢堡全屏菜單、流程鏈縱向）
   ═════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 42px; }

  /* 頂欄 */
  .header-inner { height: 66px; gap: 14px; }
  .brand-zh { font-size: 17px; }
  .brand-seal { width: 34px; height: 34px; }
  .header-cta { display: none; }
  #langToggle { padding: 6px 13px; font-size: 11px; }
  #navToggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 990;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    background: linear-gradient(170deg, var(--pine) 0%, var(--pine-deep) 100%);
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.77, 0, .18, 1);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav .nav-link {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .14em;
    color: rgba(247,244,237,.88);
    padding: 8px 4px;
  }
  .main-nav .nav-link::after { height: 3px; bottom: 0; }

  /* Hero */
  .hero-inner { padding: 128px 0 96px; }
  .hero-title { font-size: clamp(37px, 10.5vw, 52px); }
  .hero-lead { font-size: 15.5px; }
  .chip { padding: 8px 15px; font-size: 12.5px; }
  .hero-cta .btn { width: 100%; }

  /* 流程鏈縱向 */
  .chain { grid-template-columns: 1fr; gap: 18px; }
  .chain::before {
    top: 46px;
    bottom: 60px;
    left: 21px;
    right: auto;
    width: 1.5px;
    height: auto;
    background: linear-gradient(180deg, rgba(198,161,91,.2), var(--gold) 15%, var(--gold) 85%, rgba(198,161,91,.2));
  }
  .step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    text-align: left;
  }
  .step-no { width: 44px; height: 44px; font-size: 14px; }
  .step-card { margin-top: 0; padding: 18px 20px; }
  .step-card h4 { font-size: 16.5px; }
  .step-card p { font-size: 13px; }
  .step.active .step-card { transform: none; }

  .eco-media::after { inset: 10px; }
  .eco-badge { left: 16px; bottom: 16px; padding: 8px 16px; font-size: 12px; }

  .svc-grid,
  .case-grid { grid-template-columns: 1fr; }

  /* 數據 2 列，末項跨滿 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
  .stat:last-child { grid-column: 1 / -1; }

  .info-card,
  .form-card { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .ft-side { align-items: flex-start; text-align: left; }
  .ft-top { flex-direction: column; gap: 30px; }

  #draftPanel { bottom: 96px; }
}

/* ═══════════════════════════════════════════════════════════
   動效降級：prefers-reduced-motion
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-kicker,
  .hero-title,
  .hero-lead,
  .hero-chips,
  .hero-cta { opacity: 1; transform: none; }
}
