/* 悅時官網共用樣式（v1.16：首頁動畫、產品、行業、代設定、關於、常見問題）
   色票照「品牌設計」：奶茶 #AD947C、深咖 #4A3A2E、淺奶茶 #EDE3D7、奶白 #F5F0EA
   標題思源宋體，內文思源黑體 */
:root {
  --paper: #F5F0EA;
  --milk: #EDE3D7;
  --tea: #AD947C;
  --tea-ink: #7A6250; /* 奶茶色的字（對比夠） */
  --ink: #4A3A2E;
  --ink-soft: #6E5B4C;
  --card: #FFFCF8;
  --rule: #DCCFBF;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.4; letter-spacing: .04em; text-wrap: balance; }
p, ul, ol, dl { margin: 0; }
a { color: var(--tea-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--sans); letter-spacing: .06em; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: background-color .15s, color .15s; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #3A2D23; color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- 頁首 ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 240, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--rule); }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .zh { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .08em; }
.logo .bar { width: 1px; height: 20px; background: var(--ink); opacity: .45; }
.logo .en { font-size: 13px; letter-spacing: .32em; color: var(--tea-ink); font-weight: 300; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: 15px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--milk); }
.nav a[aria-current="page"] { color: var(--tea-ink); }
.nav .btn { margin-left: 8px; color: var(--paper); }
.nav .btn:hover { background: #3A2D23; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; font-size: 16px; }
  .nav .btn { margin: 10px 0 0; }
  .logo .en, .logo .bar { display: none; }
}

/* ---------- 首頁：主視覺（細格線、掃光、客人預約 → 後台同步） ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--milk) 100%); }
.hero .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(173,148,124,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(173,148,124,.22) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 30%, transparent 75%); animation: gridmove 18s linear infinite; }
.hero .sweep { position: absolute; top: -20%; bottom: -20%; width: 38%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255,252,248,.75), transparent); transform: skewX(-14deg); animation: sweep 7s ease-in-out infinite; }
@keyframes gridmove { to { background-position: 44px 44px, 44px 44px; } }
@keyframes sweep { 0%, 15% { left: -40%; } 55%, 100% { left: 120%; } }
.hero > .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero .kicker { font-size: 14px; color: var(--tea-ink); letter-spacing: .12em; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: .08em; line-height: 1.25; margin-top: 16px; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 20px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); letter-spacing: .06em; }
.hero .desc { margin-top: 16px; color: var(--ink-soft); max-width: 30em; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 14px; font-size: 13px; color: #8A7766; }
.rv { opacity: 0; transform: translateY(22px); animation: rv .9s cubic-bezier(.2,.7,.2,1) forwards; }
.rv2 { animation-delay: .15s; } .rv3 { animation-delay: .35s; } .rv4 { animation-delay: .5s; } .rv5 { animation-delay: .65s; }
@keyframes rv { to { opacity: 1; transform: none; } }

.stage { position: relative; width: 100%; max-width: 660px; aspect-ratio: 1 / 1.16; margin-left: auto; perspective: 1400px; }
.phone-w { position: absolute; left: 0; top: 3%; width: 44%; animation: float 6s ease-in-out infinite; }
.phone { width: 100%; aspect-ratio: 390 / 844; border-radius: 9% / 4.2%; background: #2F251D; padding: 2.4%; transform: rotateY(12deg) rotateX(3deg); box-shadow: 30px 40px 70px -30px rgba(74,58,46,.6); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 7.5% / 3.5%; overflow: hidden; background: #fff; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.scrA { animation: scrA 10s infinite; }
.scrB { position: absolute; inset: 0; background: #C9D3E0; opacity: 0; animation: scrB 10s infinite; }
.bubble { position: absolute; right: 7%; top: 6%; background: #8CD790; color: #1F3A22; font-size: clamp(10px, 1.3vw, 13px); padding: 5px 12px; border-radius: 14px 14px 2px 14px; opacity: 0; animation: bubble 10s infinite; }
.lcard { position: absolute; left: 6%; top: 15%; width: 82%; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px -10px rgba(40,40,60,.4); opacity: 0; animation: lcard 10s infinite; }
.lcard img { position: static; width: 100%; height: auto; }
.tap { position: absolute; left: 50%; top: 81.6%; width: 18%; aspect-ratio: 1; margin: -9% 0 0 -9%; border-radius: 50%; background: rgba(173,148,124,.25); border: 2px solid var(--tea); opacity: 0; animation: tap 10s infinite; }
.admin-w { position: absolute; right: 0; top: 4%; width: 47%; animation: float 6s ease-in-out -3s infinite; }
.admin { position: relative; background: var(--card); border-radius: 16px; border: 1px solid var(--rule); overflow: hidden; transform: rotateY(-10deg) rotateX(2deg); box-shadow: -24px 40px 70px -34px rgba(74,58,46,.55); }
.admin-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--milk); font-size: 12px; color: var(--ink-soft); letter-spacing: .06em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tea); flex: none; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #4F8A5B; animation: livep 1.6s infinite; }
.cal { position: relative; }
.cal img { width: 100%; height: auto; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(173,148,124,.28) 70%, rgba(173,148,124,.7) 98%, transparent); opacity: 0; animation: scan 10s infinite; }
.cell { position: absolute; left: 44.1%; top: 72.9%; width: 12.6%; height: 11.7%; border-radius: 8px; border: 2px solid #4F8A5B; background: rgba(79,138,91,.16); opacity: 0; animation: cell 10s infinite; }
.cell::after { content: ""; position: absolute; inset: -3px; border-radius: 10px; border: 2px solid #4F8A5B; animation: ring 1.4s infinite; }
.cell b { position: absolute; right: -8px; top: -10px; background: #4F8A5B; color: #fff; font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 999px; line-height: 1.6; }
.toast { position: absolute; left: 36%; top: 33%; width: 44%; display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 10px 14px; font-size: clamp(11px, 1.25vw, 13px); line-height: 1.5; box-shadow: 0 18px 30px -16px rgba(74,58,46,.8); opacity: 0; z-index: 3; animation: toast 10s infinite; }
.toast .ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #4F8A5B; display: grid; place-items: center; }
.toast b { font-weight: 500; }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.wire .base { fill: none; stroke: var(--tea); stroke-width: .35; stroke-dasharray: 1 1.4; opacity: .8; }
.wire .run { fill: none; stroke: var(--tea); stroke-width: .8; stroke-linecap: round; stroke-dasharray: 14 200; stroke-dashoffset: 14; animation: run 10s infinite; }
.log { position: absolute; right: 0; bottom: 0; width: 53%; background: rgba(253,250,246,.96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px 12px; font-size: clamp(10px, 1.15vw, 12.5px); line-height: 1.85; z-index: 2; }
.log-h { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8A7766; letter-spacing: .08em; margin-bottom: 4px; }
.ln { position: relative; display: block; white-space: nowrap; overflow: hidden; }
.ln::before { content: ""; position: absolute; left: 0; top: 50%; width: 72%; height: 7px; margin-top: -3px; border-radius: 4px; background: rgba(173,148,124,.2); }
.ln:nth-child(odd)::before { width: 58%; }
.ln .tx { position: relative; display: inline-block; padding-right: 6px; background: #FDFAF6; clip-path: inset(0 100% 0 0); animation: t1 10s steps(24) infinite; }
.ln time { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #8A7766; margin-right: 8px; font-size: .92em; }
.ln .ok { color: #3F7A4C; }
.l2 .tx { animation-name: t2; } .l3 .tx { animation-name: t3; } .l4 .tx { animation-name: t4; } .l5 .tx { animation-name: t5; } .l6 .tx { animation-name: t6; }
.stage .cap { position: absolute; left: 0; bottom: -30px; font-size: 12px; color: #8A7766; letter-spacing: .04em; }
@keyframes t1 { 0%, 33% { clip-path: inset(0 100% 0 0); } 37%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes t2 { 0%, 37% { clip-path: inset(0 100% 0 0); } 41%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes t3 { 0%, 41% { clip-path: inset(0 100% 0 0); } 45%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes t4 { 0%, 57% { clip-path: inset(0 100% 0 0); } 61%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes t5 { 0%, 64% { clip-path: inset(0 100% 0 0); } 68%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes t6 { 0%, 70% { clip-path: inset(0 100% 0 0); } 74%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scrA { 0%, 30% { opacity: 1; } 34%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scrB { 0%, 31% { opacity: 0; } 34%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes tap { 0%, 19% { opacity: 0; transform: scale(.3); } 22% { opacity: 1; transform: scale(1); } 29%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes bubble { 0%, 34% { opacity: 0; transform: translateY(8px); } 37%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes lcard { 0%, 38% { opacity: 0; transform: translateY(22px) scale(.96); } 43%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes run { 0%, 45% { stroke-dashoffset: 14; opacity: 1; } 55% { stroke-dashoffset: -60; opacity: 1; } 56%, 100% { stroke-dashoffset: -60; opacity: 0; } }
@keyframes scan { 0%, 49% { opacity: 0; top: -22%; } 50% { opacity: 1; top: -22%; } 58% { opacity: 1; top: 100%; } 59%, 100% { opacity: 0; top: 100%; } }
@keyframes cell { 0%, 55% { opacity: 0; transform: scale(.6); } 58% { opacity: 1; transform: scale(1.12); } 60%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes toast { 0%, 57% { opacity: 0; transform: translateY(-12px) scale(.96); } 61%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(79,138,91,.6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(79,138,91,0); } }
/* 主視覺不在畫面上時暫停，省電 */
.hero.paused *, .hero.paused *::after { animation-play-state: paused !important; }
@media (max-width: 900px) {
  .hero > .inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 80px; }
  .stage { margin: 0 auto; }
  .hero .sweep { display: none; }
}
.wire .m { display: none; }
@media (max-width: 600px) {
  .stage { aspect-ratio: 1 / 1.55; }
  .phone-w { width: 52%; top: 0; }
  .admin-w { width: 50%; top: 6%; }
  .toast { left: 22%; width: 74%; top: 27%; }
  .log { left: 0; width: auto; }
  .wire .d { display: none; }
  .wire .m { display: inline; }
}

/* ---------- 子頁頁首（淡格線） ---------- */
.phead { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--milk)); border-bottom: 1px solid var(--rule); }
.phead::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(173,148,124,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(173,148,124,.18) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%); mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.phead .inner { position: relative; padding-top: 64px; padding-bottom: 56px; }
.phead .kicker { font-size: 14px; color: var(--tea-ink); letter-spacing: .12em; }
.phead h1 { margin-top: 12px; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.3; letter-spacing: .06em; }
.phead .sub { margin-top: 16px; color: var(--ink-soft); max-width: 36em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; }
.chips li { list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink); font-size: 14px; transition: border-color .2s, background .2s; }
.chips a:hover { border-color: var(--tea); background: #fff; }
.crumb { font-size: 14px; color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }

/* ---------- 一筆預約的一生 ---------- */
.life { position: relative; margin-top: 56px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.life::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--rule); }
.life::after { content: ""; position: absolute; left: 0; top: 26px; height: 3px; width: 100%; background: var(--tea); transform-origin: left; transform: scaleX(0); border-radius: 3px; transition: transform 1.6s cubic-bezier(.3,.6,.2,1); }
.life.in::after { transform: scaleX(1); }
.life .beam { position: absolute; top: 22px; left: 0; width: 90px; height: 11px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,252,248,1), rgba(255,252,248,0)); animation: beam 5s linear infinite; z-index: 1; }
@keyframes beam { from { left: -90px; } to { left: 100%; } }
.life li { list-style: none; position: relative; }
.life .node { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; background: var(--card); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--tea-ink); animation: lit 5s infinite; }
.life .node svg { width: 22px; height: 22px; }
.life li:nth-child(3) .node { animation-delay: 1s; } .life li:nth-child(4) .node { animation-delay: 2s; } .life li:nth-child(5) .node { animation-delay: 3s; } .life li:nth-child(6) .node { animation-delay: 4s; }
@keyframes lit { 0%, 4% { background: var(--card); color: var(--tea-ink); box-shadow: 0 0 0 0 rgba(173,148,124,0); } 8%, 16% { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 8px rgba(173,148,124,.25); } 26%, 100% { background: var(--card); color: var(--tea-ink); box-shadow: 0 0 0 0 rgba(173,148,124,0); } }
.life .when { font-size: 13px; color: #8A7766; margin-top: 18px; }
.life h3 { font-size: 1.15rem; margin-top: 4px; }
.life p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.tag2 { display: inline-block; margin-top: 12px; font-size: 12px; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.tag2.auto { background: #E3EEE5; color: #2F5E3A; }
.tag2.you { background: #F1E4D6; color: #6B4E33; }
@media (max-width: 860px) {
  .life { grid-template-columns: 1fr; gap: 28px; padding-left: 76px; }
  .life::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .life::after { left: 26px; top: 0; width: 3px; height: 100%; transform-origin: top; transform: scaleY(0); }
  .life.in::after { transform: scaleY(1); }
  .life .node { position: absolute; left: -76px; top: 0; }
  .life .when { margin-top: 0; }
  .life .beam { display: none; }
}

/* ---------- 進場動畫（site.js 滑到時加上 .in） ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 功能速覽卡片 ---------- */
.fgrid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; }
.fgrid li { list-style: none; }
.fcard { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.fcard:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--tea); box-shadow: 0 18px 34px -22px rgba(74,58,46,.5); }
.fcard svg { width: 28px; height: 28px; color: var(--tea-ink); }
.fcard b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: .04em; }
.fcard p { color: var(--ink-soft); font-size: 15px; }
.fcard .more { margin-top: auto; font-size: 14px; color: var(--tea-ink); }
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }

/* ---------- 產品介紹：實際畫面＋數字標記 ---------- */
.feat { padding: 80px 0; }
.feat:nth-of-type(even) { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feat .inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.feat.flip .inner > :first-child { order: 2; }
.feat .no { font-size: 13px; color: #8A7766; letter-spacing: .1em; }
.feat h2 { margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: .04em; }
.feat .sub { margin-top: 14px; color: var(--ink-soft); max-width: 34em; }
.points { margin-top: 28px; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.points li { list-style: none; counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; transition: background .2s; }
.points li::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; display: grid; place-items: center; margin-top: 2px; }
.points li:hover { background: rgba(173,148,124,.12); }
.points b { display: block; font-weight: 500; }
.points p { color: var(--ink-soft); font-size: 15px; }
.shot { position: relative; width: 100%; max-width: 340px; margin: 0 auto; border-radius: 34px; background: #2F251D; padding: 10px; box-shadow: 0 30px 60px -30px rgba(74,58,46,.5); }
.shot .in-s { position: relative; border-radius: 26px; overflow: hidden; background: #fff; }
.shot img { width: 100%; height: auto; }
.shot.tall .in-s { aspect-ratio: 390 / 844; }
.shot.tall img { height: 100%; object-fit: cover; object-position: top; }
.shot.card { background: transparent; padding: 0; box-shadow: none; max-width: 300px; }
.shot.card .in-s { border-radius: 18px; box-shadow: 0 24px 50px -28px rgba(74,58,46,.55); }
.shot .in-s::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(173,148,124,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(173,148,124,.18) 1px, transparent 1px); background-size: 22px 22px; opacity: 0; z-index: 1; pointer-events: none; }
.shot .in-s::after { content: ""; position: absolute; left: 0; right: 0; height: 18%; top: -18%; background: linear-gradient(180deg, transparent, rgba(173,148,124,.3) 75%, rgba(173,148,124,.75) 98%, transparent); z-index: 1; pointer-events: none; }
.feat.in .shot .in-s::before { animation: gridin 6s infinite; }
.feat.in .shot .in-s::after { animation: sweepY 6s infinite; }
@keyframes sweepY { 0% { top: -18%; } 40%, 100% { top: 100%; } }
@keyframes gridin { 0% { opacity: 0; } 10%, 30% { opacity: 1; } 45%, 100% { opacity: 0; } }
.pin { position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(245,240,234,.9); transform: scale(0); transition: transform .2s, background .2s; }
.pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tea); animation: ring 2.4s infinite; }
.feat.in .pin { animation: pop 6s infinite; transform: scale(1); }
.feat.in .pin:nth-of-type(2) { animation-delay: .3s; } .feat.in .pin:nth-of-type(3) { animation-delay: .6s; } .feat.in .pin:nth-of-type(4) { animation-delay: .9s; }
@keyframes pop { 0% { transform: scale(0); } 6% { transform: scale(1.25); } 10%, 100% { transform: scale(1); } }
.feat:has(.points li:nth-child(1):hover) .pin:nth-of-type(1),
.feat:has(.points li:nth-child(2):hover) .pin:nth-of-type(2),
.feat:has(.points li:nth-child(3):hover) .pin:nth-of-type(3),
.feat:has(.points li:nth-child(4):hover) .pin:nth-of-type(4) { background: var(--tea); transform: scale(1.35); animation: none; }
.shot-cap { margin-top: 12px; text-align: center; font-size: 12px; color: #8A7766; }
.shot-pair { display: flex; gap: 20px; align-items: flex-end; justify-content: center; }
.shot-pair .shot { max-width: 260px; }
@media (max-width: 900px) {
  .feat { padding: 64px 0; }
  .feat .inner { grid-template-columns: 1fr; gap: 40px; }
  .feat.flip .inner > :first-child { order: 0; }
}

/* ---------- 行業 ---------- */
.ind-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 0; }
.ind-grid li { list-style: none; }
.ind-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ind-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--c, var(--tea)); }
.ind-card:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--tea); box-shadow: 0 18px 34px -22px rgba(74,58,46,.5); }
.ind-card b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: .06em; }
.ind-card p { color: var(--ink-soft); font-size: 15px; }
.ind-card .svc { font-size: 13px; color: #8A7766; }
.ind-card .more { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--tea-ink); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.box { padding: 28px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.box h3 { font-size: 1.2rem; }
.box ul { margin-top: 14px; padding-left: 1.2em; color: var(--ink-soft); display: grid; gap: 6px; }
.svc-table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: 15px; }
.svc-table th, .svc-table td { padding: 10px 4px; border-top: 1px solid var(--rule); text-align: left; }
.svc-table td:last-child, .svc-table th:last-child { text-align: right; }
.svc-table thead th { border-top: 0; color: #8A7766; font-weight: 400; font-size: 13px; }
.mini-tag { display: inline-block; margin-left: 6px; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--milk); color: var(--tea-ink); }
.cycle-line { position: relative; margin-top: 20px; padding: 0; display: flex; gap: 0; }
.cycle-line li { list-style: none; flex: 1; position: relative; padding-top: 30px; font-size: 14px; color: var(--ink-soft); min-width: 0; }
.cycle-line li::before { content: ""; position: absolute; top: 8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--tea); z-index: 1; }
.cycle-line li::after { content: ""; position: absolute; top: 14px; left: 14px; right: 0; height: 2px; background: var(--rule); }
.cycle-line li:last-child::after { display: none; }
.cycle-line b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.scene { margin-top: 20px; padding: 0; display: grid; gap: 14px; }
.scene li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.scene svg { width: 26px; height: 26px; color: var(--tea-ink); margin-top: 2px; }
.scene b { display: block; font-weight: 500; }
.scene p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 代設定流程 ---------- */
.flow { margin-top: 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: f; }
.flow li { list-style: none; position: relative; counter-increment: f; padding: 28px 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--rule); }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 18px; }
.flow li::after { content: ""; position: absolute; top: 47px; right: -21px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--tea) 0 4px, transparent 4px 8px); background-size: 16px 2px; animation: dash 1s linear infinite; }
.flow li:last-child::after { display: none; }
@keyframes dash { to { background-position: 16px 0; } }
.flow .who { display: inline-block; margin-top: 14px; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--milk); color: var(--tea-ink); }
.flow h3 { margin-top: 10px; font-size: 1.1rem; }
.flow p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: block; top: auto; bottom: -21px; left: 41px; right: auto; width: 2px; height: 22px; background: repeating-linear-gradient(180deg, var(--tea) 0 4px, transparent 4px 8px); background-size: 2px 16px; animation: dashY 1s linear infinite; }
  .flow li:nth-child(2)::after { display: block; }
  .flow li:last-child::after { display: none; }
}
@keyframes dashY { to { background-position: 0 16px; } }
.check { margin-top: 20px; padding: 0; display: grid; gap: 10px; }
.check li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-soft); }
.check li::before { content: ""; width: 14px; height: 8px; margin-top: 8px; border-left: 2px solid #4F8A5B; border-bottom: 2px solid #4F8A5B; transform: rotate(-45deg); }

/* ---------- 關於悅時 ---------- */
.story { max-width: 720px; margin: 0 auto; padding: 72px 20px 96px; }
.story .mark { width: 72px; height: 72px; }
.story h1 { margin-top: 28px; font-size: clamp(2rem, 4.4vw, 2.8rem); letter-spacing: .08em; }
.story p { margin-top: 22px; font-size: 1.08rem; line-height: 2; color: var(--ink); }
.story .belief { margin-top: 36px; padding: 28px 0 28px 24px; border-left: 2px solid var(--tea); font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.9; letter-spacing: .04em; }
.story .slogan { margin-top: 40px; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.6rem); letter-spacing: .1em; text-align: center; }
.story .sign { margin-top: 40px; text-align: right; color: var(--ink-soft); letter-spacing: .08em; }

/* ---------- 常見問題頁 ---------- */
.faq-group { padding-top: 48px; }
.faq-group h2 { font-size: 1.35rem; letter-spacing: .06em; }
.faq-group .faq { margin-top: 16px; }

/* ---------- 減少動態效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero .grid, .phone-w, .admin-w, .live i, .cell::after, .life .node, .pin::after, .flow li::after { animation: none !important; }
  .hero .sweep, .tap, .wire .run, .scan, .scrA, .life .beam { display: none; }
  .scrB, .bubble, .lcard, .cell, .toast { animation: none; opacity: 1; transform: none; }
  .ln .tx { animation: none; clip-path: none; }
  .rv { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .life::after { transform: none; transition: none; }
  .feat.in .shot .in-s::before, .feat.in .shot .in-s::after { animation: none; }
  .pin, .feat.in .pin { animation: none; transform: scale(1); }
  .fcard, .ind-card, .chips a, .points li { transition: none; }
}

/* ---------- 區塊 ---------- */
.sec { padding: 80px 0; }
.sec + .sec { padding-top: 0; }
.sec h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: .08em; }
.sec .sub { margin-top: 10px; color: var(--ink-soft); max-width: 36em; }
.band { background: var(--milk); }
.band.sec + .sec, .sec + .band.sec { padding-top: 80px; }

/* 三大賣點：大字、左邊一條奶茶色細線 */
.promise { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.promise li { list-style: none; padding-top: 18px; border-top: 2px solid var(--tea); }
.promise b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: .06em; line-height: 1.5; }
.promise p { margin-top: 10px; color: var(--ink-soft); }
.promise ul { padding: 0; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; gap: 28px; } }

/* 功能：兩欄清單 */
.feats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; padding: 0; }
.feats li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.feats svg { width: 28px; height: 28px; color: var(--tea-ink); margin-top: 2px; }
.feats b { font-weight: 500; font-size: 1.05rem; }
.feats p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 700px) { .feats { grid-template-columns: 1fr; } }

/* 三步驟：真的是順序，用大數字 */
.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; counter-reset: s; }
.steps li { list-style: none; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--tea); margin-bottom: 14px; }
.steps b { display: block; font-size: 1.1rem; font-weight: 500; }
.steps p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps li { display: grid; grid-template-columns: 56px 1fr; } .steps li::before { margin: 0; font-size: 2.6rem; } }

/* 方案摘要（首頁）＋方案頁 */
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border: 2px solid var(--ink); }
.plan h3 { font-size: 1.4rem; letter-spacing: .1em; }
.plan .fit { color: var(--ink-soft); font-size: 15px; min-height: 3.4em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price b { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; letter-spacing: .02em; }
.plan .price span { color: var(--ink-soft); font-size: 15px; }
.plan .save { color: #3E6B4F; font-size: 14px; min-height: 1.6em; }
.plan ul { padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plan li { list-style: none; display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--tea); }
.plan .btn { margin-top: auto; }
.plan .tag { align-self: flex-start; font-size: 13px; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); letter-spacing: .06em; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan .fit { min-height: 0; } }

.cycle { margin-top: 28px; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--milk); border: 1px solid var(--rule); }
.cycle button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.founder { margin-top: 28px; padding: 28px 24px; border-radius: 20px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.founder h3 { font-size: 1.3rem; letter-spacing: .08em; }
.founder p { color: #E2D3C2; margin-top: 6px; }
.founder .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.notes { margin-top: 28px; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); font-size: 15px; }
.notes li { list-style: none; padding-left: 18px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--tea-ink); }
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
@media (max-width: 560px) { .table-wrap table { font-size: 14px; } .table-wrap th, .table-wrap td { padding: 11px 8px; } .table-wrap th:first-child, .table-wrap td:first-child { padding-left: 14px; } }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: center; border-top: 1px solid var(--rule); }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap thead th { border-top: 0; font-weight: 500; background: var(--milk); }
.table-wrap .no { color: #A89584; }

/* 常見問題 */
.faq { margin-top: 28px; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 500; font-size: 1.02rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .btn { transition: none; } }

.closing { text-align: center; }
.closing .btn { margin-top: 24px; }

/* ---------- 條款類文章 ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: .1em; }
.doc .meta { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.doc .intro { margin-top: 24px; }
.doc h2 { margin-top: 40px; font-size: 1.25rem; letter-spacing: .06em; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc h3 { margin-top: 20px; font-family: var(--sans); font-weight: 500; font-size: 1.02rem; letter-spacing: 0; }
.doc p, .doc ul, .doc ol { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li + li { margin-top: 6px; }
.doc .eg { margin-top: 12px; padding: 14px 18px; border-radius: 12px; background: var(--milk); font-size: 15px; }
.doc .eg b { font-weight: 500; }

/* 聯絡我們 */
.contact { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact .item { padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.contact .item b { display: block; font-weight: 500; }
.contact .item span { color: var(--ink-soft); font-size: 15px; overflow-wrap: anywhere; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--milk); border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 14px; color: var(--ink-soft); }
.foot .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--ink); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.foot nav a:hover { text-decoration: underline; }
.foot .who { display: flex; flex-direction: column; gap: 4px; }
.foot .who a { color: var(--ink-soft); }
