/* =========================================================================
   妥妥預約 - Tuotuo Booking | 一頁式 Landing Page
   styles.css
   ------------------------------------------------------------------------
   區塊對照：
     1. Header / Nav          .site-header
     2. Hero                  #hero
     3. Stats Bar             #stats
     4. Pain Points           #pain
     5. Solutions             #solutions
     6. Industries            #industries
     7. Apply Form            #apply
     8. Footer                .site-footer
   特效：CSS-first（scroll reveal / 金色光束 / hover 浮起 / CTA 光澤掃過）
         全部 prefers-reduced-motion 下停用
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --gold:        #c9a45c;
  --gold-bright: #e3c585;
  --gold-deep:   #a8843f;
  --ink:         #0d0d0f;   /* 最深黑底 */
  --ink-2:       #15151a;   /* 次深，區塊交替 */
  --ink-3:       #1d1d24;   /* 卡片底 */
  --cream:       #f5f2ec;   /* 淺色區塊底 */
  --cream-2:     #ece7dd;
  --text:        #ffffff;
  --text-mut:    #b9b4ab;   /* 深底上的次要文字 */
  --text-dim:    #8a857c;
  --text-dark:   #2a2722;   /* 淺底上的主文字 */
  --text-dark-mut:#6b6459;  /* 淺底上的次要文字 */
  --line:        rgba(201,164,92,.22);
  --line-soft:   rgba(255,255,255,.08);

  --maxw: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Noto Serif TC", "Songti TC", serif;
  --font-body: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* build-rules：用 clip 不用 hidden，保 sticky */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* 區段標題共用 */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.3;
}
.section-head .sub { margin-top: 14px; font-size: 1rem; }

/* 金色按鈕（CTA 光澤掃過） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 8px; font-size: .98rem; font-weight: 600;
  letter-spacing: .04em; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #2a1f08; box-shadow: 0 8px 22px rgba(201,164,92,.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,164,92,.42); }
.btn-gold::after {                 /* 光澤掃過 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-gold:hover::after { transform: translateX(130%); }
.btn-outline {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid rgba(255,255,255,.28);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

/* =========================================================================
   1. Header / Nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,15,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px; height: 42px; border: 2px solid var(--gold);
  display: grid; place-items: center; color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -1px;
}
.brand .name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; }
.brand .name small { display:block; font-family: var(--font-body); font-size:.62rem; letter-spacing:.18em; color: var(--text-dim); font-weight:400; }
.nav-menu { display: flex; gap: 34px; }
.nav-menu a { font-size: .94rem; color: var(--text-mut); transition: color .25s; position: relative; }
.nav-menu a::after {
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }
.nav-cta { padding: 11px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); display: block; }

/* =========================================================================
   2. Hero
   ========================================================================= */
#hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #1c1814 0%, var(--ink) 55%);
  padding: 80px 0 70px;
}
/* 金色光束（流動） */
#hero .beam {
  position: absolute; pointer-events: none; filter: blur(2px); opacity: .6;
}
#hero .beam-1 {
  top: -10%; right: 6%; width: 60%; height: 130%;
  background: linear-gradient(115deg, transparent 42%, rgba(227,197,133,.22) 50%, transparent 58%);
  animation: beamSlide 9s ease-in-out infinite;
}
#hero .beam-2 {
  top: -10%; right: 18%; width: 50%; height: 130%;
  background: linear-gradient(115deg, transparent 46%, rgba(201,164,92,.16) 50%, transparent 54%);
  animation: beamSlide 11s ease-in-out infinite reverse;
}
@keyframes beamSlide {
  0%,100% { transform: translateX(0) rotate(0deg); opacity:.4; }
  50%     { transform: translateX(-24px) rotate(.5deg); opacity:.7; }
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-copy .eyebrow { color: var(--text-mut); font-size: 1.02rem; margin-bottom: 14px; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.18;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
.hero-copy h1 .ln2 { color: var(--text); -webkit-text-fill-color: var(--text); }
.hero-copy .lead { color: var(--text-mut); font-size: 1.05rem; max-width: 460px; margin-bottom: 34px; }

.hero-feats { display: flex; gap: 30px; margin-bottom: 38px; }
.hero-feats .feat { text-align: center; max-width: 110px; }
.hero-feats .feat .ic {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 12px;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold);
  background: rgba(201,164,92,.05);
}
.hero-feats .feat .ic svg { width: 28px; height: 28px; }
.hero-feats .feat b { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.hero-feats .feat span { font-size: .74rem; color: var(--text-dim); line-height: 1.5; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero 視覺（筆電 + 手機 mockup，純 CSS 高擬真，無外部依賴） */
.hero-visual { position: relative; padding-bottom: 30px; }

/* --- Macbook --- */
.mock-laptop { position: relative; z-index: 2; }
.mock-laptop .lid {
  background: linear-gradient(160deg, #3a3a42, #232328);
  border-radius: 16px 16px 6px 6px; padding: 10px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.mock-laptop .screen {
  position: relative;
  background: linear-gradient(160deg, #f4f5f7, #e7e9ee); border-radius: 7px; aspect-ratio: 16/10.2;
  overflow: hidden; display: flex; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.mock-laptop .notch {                       /* 鏡頭點 */
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #1a1a1f; z-index: 5;
}
.mock-laptop .screen .side { width: 30%; background: #1b1b22; padding: 12px 9px; }
.mock-laptop .screen .side .logo-row { display:flex; gap:5px; align-items:center; margin-bottom:14px; }
.mock-laptop .screen .side .logo-row b { width:14px; height:14px; border:1.5px solid var(--gold); border-radius:3px; }
.mock-laptop .screen .side .logo-row i { flex:1; height:5px; background:rgba(255,255,255,.2); border-radius:3px; }
.mock-laptop .screen .side .row { height: 7px; background: rgba(255,255,255,.14); border-radius: 3px; margin-bottom: 10px; }
.mock-laptop .screen .side .row.act { background: rgba(201,164,92,.55); width: 80%; }
.mock-laptop .screen .main { flex: 1; padding: 13px 14px; }
.mock-laptop .screen .main .top { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.mock-laptop .screen .main .top .bar { height: 9px; background: #c9cdd5; border-radius: 4px; width: 42%; }
.mock-laptop .screen .main .top .pill { height: 16px; width: 50px; background: linear-gradient(135deg,var(--gold-bright),var(--gold)); border-radius: 5px; }
.mock-laptop .screen .main .wk { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin-bottom:7px; }
.mock-laptop .screen .main .wk span { height:7px; background:#d4d7dd; border-radius:2px; }
.mock-laptop .screen .main .cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.mock-laptop .screen .main .cal i { aspect-ratio: 1; background: #eceef2; border-radius: 4px; display:block; position:relative; }
.mock-laptop .screen .main .cal i.on { background: rgba(95,158,160,.4); }
.mock-laptop .screen .main .cal i.on2 { background: rgba(201,164,92,.45); }
.mock-laptop .screen .main .cal i.dot::after { content:""; position:absolute; left:3px; bottom:3px; width:4px; height:4px; border-radius:50%; background:var(--gold-deep); }
.mock-laptop .deck {                        /* 底座（C 面） */
  height: 14px; margin: 0 -4px;
  background: linear-gradient(180deg,#4a4a52,#2c2c32);
  border-radius: 0 0 12px 12px; position: relative;
}
.mock-laptop .deck::before {                /* 凹槽 */
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:18%; height:5px; background:#1c1c20; border-radius:0 0 6px 6px;
}

/* --- iPhone --- */
.mock-phone {
  position: absolute; right: -4px; bottom: -8px; width: 27%; z-index: 3;
  background: linear-gradient(160deg,#3a3a42,#1f1f24);
  border-radius: 26px; padding: 6px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 50px rgba(0,0,0,.6);
}
.mock-phone .pscreen { position: relative; background: linear-gradient(160deg,#f4f5f7,#e7e9ee); border-radius: 20px; aspect-ratio: 9/19.5; overflow: hidden; }
.mock-phone .pnotch { position:absolute; top:7px; left:50%; transform:translateX(-50%); width:34%; height:11px; background:#16161a; border-radius:7px; z-index:5; }
.mock-phone .pscreen .ptop { height: 34%; background: linear-gradient(150deg,var(--gold) ,var(--gold-deep)); position: relative; }
.mock-phone .pscreen .ptop::after { content:""; position:absolute; left:10px; bottom:10px; width:46%; height:6px; background:rgba(255,255,255,.5); border-radius:3px; box-shadow:0 10px 0 rgba(255,255,255,.35); }
.mock-phone .pscreen .pbody { padding: 10px; }
.mock-phone .pscreen .pbody .pl { height: 6px; background: #d4d7dd; border-radius: 3px; margin-bottom: 8px; }
.mock-phone .pscreen .pbody .pl:nth-child(2){ width: 65%; }
.mock-phone .pscreen .pbody .pcard { background:#fff; border:1px solid #e3e5ea; border-radius:8px; padding:8px; margin-top:6px; box-shadow:0 4px 12px rgba(0,0,0,.05); }
.mock-phone .pscreen .pbody .pcard .pc-row { display:flex; gap:6px; align-items:center; margin-bottom:6px; }
.mock-phone .pscreen .pbody .pcard .pc-row b { width:18px; height:18px; border-radius:50%; background:rgba(201,164,92,.3); }
.mock-phone .pscreen .pbody .pcard .pc-row i { flex:1; height:5px; background:#d4d7dd; border-radius:3px; }
.mock-phone .pscreen .pbody .pbtn { height:22px; background:linear-gradient(135deg,var(--gold-bright),var(--gold)); border-radius:6px; margin-top:8px; }

/* =========================================================================
   3. Stats Bar
   ========================================================================= */
#stats { background: var(--ink-2); border-block: 1px solid var(--line-soft); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { display: flex; align-items: center; gap: 16px; justify-content: center; }
.stat .ic { color: var(--gold); }
.stat .ic svg { width: 38px; height: 38px; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.1rem); font-weight: 700; color: var(--gold-bright); line-height: 1.1; }
.stat .lbl { font-size: .86rem; color: var(--text-mut); }

/* =========================================================================
   4. Pain Points (light)
   ========================================================================= */
#pain {
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box;
  background-color: var(--cream);
  color: var(--text-dark); padding: 84px 0;
  position: relative;
}
#pain::before { /* 淺色大理石微紋理 */
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 50% at 20% 0%, rgba(201,164,92,.06), transparent),
              radial-gradient(50% 40% at 90% 100%, rgba(201,164,92,.05), transparent);
  pointer-events:none;
}
#pain .section-head h2 { color: var(--text-dark); }
.pain-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 26px; position: relative; }
.pain-item { text-align: center; padding: 10px; }
.pain-item .ic {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-deep);
  border: 1.5px solid rgba(168,132,63,.3); background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pain-item .ic svg { width: 28px; height: 28px; }
.pain-item:hover .ic { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(168,132,63,.18); }
.pain-item b { display: block; font-family: var(--font-display); font-size: 1.04rem; margin-bottom: 10px; color: var(--text-dark); }
.pain-item p { font-size: .82rem; color: var(--text-dark-mut); line-height: 1.7; }

/* =========================================================================
   5. Solutions (dark)
   ========================================================================= */
#solutions { background: var(--ink); padding: 84px 0; }
.sol-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 18px; }
.sol-card {
  background: linear-gradient(160deg, var(--ink-3), #141419);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 18px; text-align: center;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.sol-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.sol-card .ic {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(201,164,92,.08); border: 1px solid var(--line);
}
.sol-card .ic svg { width: 28px; height: 28px; }
.sol-card b { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 12px; }
.sol-card p { font-size: .8rem; color: var(--text-mut); line-height: 1.7; }

/* =========================================================================
   6. Industries（橫向自動跑馬燈）
   ========================================================================= */
#industries { background: var(--cream-2); color: var(--text-dark); padding: 76px 0; overflow: hidden; }
#industries .section-head h2 { color: var(--text-dark); }
.ind-marquee {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ind-track {
  display: flex; gap: 14px; width: max-content;
  animation: indScroll 36s linear infinite;
}
.ind-marquee:hover .ind-track { animation-play-state: paused; }
@keyframes indScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* 兩份項目，跑一半即無縫接回 */
}
.ind-item {
  flex: 0 0 auto; width: 116px; text-align: center; padding: 14px 6px; border-radius: 12px;
  transition: background .3s var(--ease);
}
.ind-item:hover { background: rgba(168,132,63,.08); }
.ind-item .ic {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-deep);
  border: 1.5px solid rgba(168,132,63,.35);
  transition: transform .3s var(--ease);
}
.ind-item:hover .ic { transform: translateY(-4px) scale(1.05); }
.ind-item .ic svg { width: 26px; height: 26px; }
.ind-item span { font-size: .85rem; font-weight: 600; color: var(--text-dark); }

/* =========================================================================
   7. Apply Form (dark + white form card)
   ========================================================================= */
#apply { background: var(--ink-2); padding: 80px 0; }
#apply .apply-head { text-align: center; margin-bottom: 50px; }
#apply .apply-head h2 { font-size: clamp(1.6rem,3vw,2.2rem); }
#apply .apply-head .sub { color: var(--text-mut); margin-top: 12px; }
.apply-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: start; }

.apply-steps h3 { font-size: 1.5rem; color: var(--gold-bright); margin-bottom: 8px; }
.apply-steps .intro { color: var(--text-mut); font-size: .92rem; margin-bottom: 32px; }
.step { display: flex; gap: 16px; margin-bottom: 26px; }
.step .ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(201,164,92,.08); border: 1px solid var(--line);
}
.step .ic svg { width: 22px; height: 22px; }
.step b { display: block; font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .85rem; color: var(--text-mut); }
.apply-steps .note { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--text-dim); line-height: 1.7; }

/* 白色表單卡 */
.form-card { background: #fff; border-radius: 18px; padding: 36px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: #3a352c; margin-bottom: 7px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .9rem; padding: 12px 14px; border-radius: 8px;
  border: 1px solid #d8d2c6; background: #fbfaf7; color: #2a2722;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #a8a094; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,.15);
}
.field textarea { resize: vertical; min-height: 46px; }
.agree { grid-column: 1/-1; display: flex; align-items: center; gap: 9px; font-size: .82rem; color: #6b6459; margin-top: 4px; }
.agree a { color: var(--gold-deep); text-decoration: underline; }
.form-submit { grid-column: 1/-1; }
.form-submit .btn { width: 100%; padding: 16px; font-size: 1rem; }
.form-demo-note { grid-column:1/-1; text-align:center; font-size:.74rem; color:#a8a094; margin-top:-4px; }

/* =========================================================================
   8. Footer
   ========================================================================= */
.site-footer { background: var(--ink); padding: 60px 0 28px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 30px; margin-bottom: 40px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: .85rem; color: var(--text-mut); max-width: 280px; }
.foot-social { display: flex; gap: 12px; margin-top: 20px; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-soft);
  display: grid; place-items: center; color: var(--text-mut); transition: all .25s;
}
.foot-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.foot-social a svg { width: 16px; height: 16px; }
.foot-col h4 { font-size: .92rem; color: var(--gold-bright); margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.foot-col ul li { margin-bottom: 11px; }
.foot-col ul li a { font-size: .85rem; color: var(--text-mut); transition: color .25s; }
.foot-col ul li a:hover { color: var(--text); }
.foot-contact .ci { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-mut); margin-bottom: 13px; }
.foot-contact .ci svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 16px; }
.foot-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--text-dim); }

/* =========================================================================
   Scroll Reveal（CSS-first，JS 只加 .in）
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); 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; }
.reveal.d5 { transition-delay: .40s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 540px; margin: 0 auto; }
  .mock-phone { bottom: -20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .pain-grid { grid-template-columns: repeat(3,1fr); gap: 30px 20px; }
  .sol-grid { grid-template-columns: repeat(3,1fr); }
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .nav { height: 64px; }
  .nav-menu { display: none; }
  .nav-cta { display: none; }            /* 手機收起 CTA，只留漢堡 */
  .nav-toggle { display: flex; }
  .brand .name { font-size: 1.05rem; }
  .brand .logo { width: 38px; height: 38px; }
  .hero-feats { gap: 14px; }
  .hero-feats .feat span { font-size: .7rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }

  /* Stats：照附圖二——icon 左、數字+標籤右、四項垂直均勻置中 */
  .stats-grid { grid-template-columns: 1fr; gap: 26px; max-width: 260px; margin-inline: auto; }
  .stat { justify-content: flex-start; gap: 20px; padding-left: 0; }
  .stat .ic svg { width: 34px; height: 34px; }
  .stat .num { font-size: 1.7rem; }

  /* 痛點：手機改橫向 scroll-snap 滑動，卡片突破框架（溢出視窗右緣） */
  #pain .pain-grid {
    display: flex; grid-template-columns: none;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: -18px; padding: 4px 18px 14px;
  }
  #pain .pain-grid::-webkit-scrollbar { display: none; }
  .pain-item {
    flex: 0 0 72%; scroll-snap-align: center;
    background: #fff; border-radius: 16px; padding: 28px 18px;
    box-shadow: 0 10px 28px rgba(168,132,63,.12);
  }

  .sol-grid { grid-template-columns: repeat(2,1fr); }
  .form-card { padding: 22px 16px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Footer：緊湊化——連結區 2 欄並排、縮間距 */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-contact { grid-column: 1 / -1; }
  .foot-col ul li { margin-bottom: 9px; }
  .site-footer { padding: 44px 0 24px; }

  .section-head { margin-bottom: 36px; }
  /* 同意條款 */
  .agree { align-items: flex-start; flex-wrap: wrap; line-height: 1.7; }
  .agree input { margin-top: 3px; }

  /* 產業跑馬燈卡片在手機略縮 */
  .ind-item { width: 104px; }
  .ind-track { animation-duration: 28s; }
}

/* =========================================================================
   prefers-reduced-motion（build-rules 全站政策：停所有動畫）
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  /* 跑馬燈停止後改為可手動橫滑，避免靜止溢出 */
  .ind-marquee { overflow-x: auto; }
  .ind-track { transform: none !important; }
}
