/* zatepos.com 共用樣式：淺色收據紙語言，主色沿用產品零售藍 */
:root {
  --zt-bg: #F3F5F9;
  --zt-surface: #FFFFFF;
  --zt-ink: #111827;
  --zt-muted: #475569;
  --zt-subtle: #566579;
  --zt-line: #E2E6EE;
  --zt-primary: #2563EB;
  --zt-primary-dark: #1D4ED8;
  --zt-clock: #B45309;
  --zt-clock-light: #F59E0B;
  --zt-clock-bg: #FEF3C7;
  --zt-ok: #166534;
  --zt-ok-bg: #DCFCE7;
  --zt-alert: #DC2626;
  --zt-alert-bg: #FEE2E2;
  --zt-pro: #5B21B6;
  --zt-pro-bg: #EDE9FE;
  --zt-font: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --zt-mono: 'IBM Plex Mono', 'Noto Sans TC', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--zt-bg); color: var(--zt-ink); font-family: var(--zt-font); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zt-primary); }
a:hover { color: var(--zt-primary-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section-white { background: var(--zt-surface); }
.mono { font-family: var(--zt-mono); font-variant-numeric: tabular-nums; }

/* 頁首 */
html { scroll-padding-top: 88px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 249, 0.94); border-bottom: 1px solid var(--zt-line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 14px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--zt-ink); text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: 0.04em; }
.site-brand span { background: var(--zt-primary); color: #FFFFFF; border-radius: 8px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1 1 auto; font-size: 16px; }
.site-nav a { color: var(--zt-muted); text-decoration: none; }
.site-brand:hover { color: var(--zt-ink); }
.site-nav a:hover { color: var(--zt-ink); }
.site-nav a[aria-current="page"] { color: var(--zt-ink); font-weight: 700; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; font-size: 17px; }
.btn-primary { background: var(--zt-primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--zt-primary-dark); color: #FFFFFF; }
.btn-primary:disabled { opacity: 0.55; cursor: wait; }
.btn-ghost { background: transparent; color: var(--zt-ink); text-decoration: underline; text-underline-offset: 5px; }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 19px; font-weight: 900; }

/* 首頁開場 */
.hero .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 64px 88px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; }
.hero-text h1 em { font-style: normal; color: var(--zt-primary); }
.hero-text p { font-size: 20px; color: var(--zt-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-text .hero-meta { font-size: 15px; color: var(--zt-subtle); }
.hero-scene { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.sign { background: var(--zt-surface); border: 3px solid var(--zt-ink); border-radius: 14px; padding: 14px 36px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12); }
.sign small { font-size: 15px; color: var(--zt-subtle); letter-spacing: 0.3em; }
.sign strong { font-size: 44px; font-weight: 900; line-height: 1.2; color: var(--zt-primary); }
.sign-string { width: 2px; height: 34px; background: #94A3B8; }
.big-clock { margin-top: 28px; font-family: var(--zt-mono); font-weight: 600; font-size: clamp(64px, 9vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.big-clock .colon { color: var(--zt-clock-light); }
.printer-slot { margin-top: 26px; width: 100%; max-width: 300px; height: 14px; background: #CBD5E1; border-radius: 8px; }
.time-chip { display: inline-flex; align-self: flex-start; font-family: var(--zt-mono); font-weight: 600; color: var(--zt-clock); background: var(--zt-clock-bg); border-radius: 6px; padding: 0 8px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 999px; padding: 4px 14px 4px 6px; font-size: 15px; color: var(--zt-muted); }

/* 章節 */
.chapter .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.chapter-reverse .container { flex-wrap: wrap-reverse; }
.chapter-text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chapter-text h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; font-weight: 900; }
.chapter-text p { color: var(--zt-muted); }
.chapter-demo { flex: 1.3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.chapter-head { display: flex; align-items: center; gap: 12px; }
.chapter-head .time-chip { align-self: center; }
.glyph { width: 48px; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 26px; color: #FFFFFF; background: var(--glyph, var(--zt-primary)); }
.chapter-no { font-family: var(--zt-mono); color: var(--zt-subtle); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.chip { border: 1px solid #CBD5E1; border-radius: 999px; padding: 2px 12px; }
.chip-pro { border-color: transparent; background: var(--zt-pro-bg); color: var(--zt-pro); font-weight: 700; }
.scene { background: var(--zt-bg); border-radius: 18px; padding: 22px; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.section-white .scene { background: var(--zt-bg); }
.section:not(.section-white) .scene { background: var(--zt-surface); border: 1px solid var(--zt-line); }
.panel { flex: 1 1 260px; min-width: 0; background: var(--zt-surface); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 8px; }
.total { border-top: 1px dashed #CBD5E1; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.total strong { font-family: var(--zt-mono); font-size: 30px; font-weight: 600; color: var(--zt-primary); }
.ok-bar { display: flex; justify-content: space-between; background: #ECFDF5; color: #065F46; border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.warn-bar { background: var(--zt-clock-bg); color: #713F12; border-radius: 8px; padding: 8px 12px; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.status-off { background: var(--zt-alert-bg); color: #991B1B; }
.status-on { background: var(--zt-ok-bg); color: var(--zt-ok); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.note { font-size: 13px; color: var(--zt-subtle); }
.swap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.swap-card { flex: 1 1 200px; min-width: 0; background: var(--zt-surface); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; border-top: 6px solid var(--card-edge, var(--zt-ink)); }
.swap-arrow { font-size: 40px; font-weight: 900; color: #7C3AED; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; width: 100%; }
.stat { background: var(--zt-surface); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 14px; color: var(--zt-subtle); }
.stat strong { font-family: var(--zt-mono); font-size: 32px; font-weight: 600; }
.stat-ok { background: var(--zt-ok-bg); }
.stat-ok span, .stat-ok strong { color: var(--zt-ok); }
.progress { height: 10px; background: var(--zt-line); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; width: 100%; background: var(--zt-primary); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 15px; width: 100%; }
.tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; font-size: 15px; width: 100%; }
.tags span { background: var(--zt-bg); border-radius: 10px; padding: 8px 12px; }

/* 收據 */
.receipt { background: #FFFFFF; color: #111827; font-family: var(--zt-mono); font-size: 14px; line-height: 1.8; padding: 16px 16px 0; box-shadow: 0 16px 28px rgba(17, 24, 39, 0.14); width: 100%; max-width: 280px; }
.receipt-tilt-left { transform: rotate(-1.5deg); transform-origin: top center; }
.receipt-tilt-right { transform: rotate(1.5deg); transform-origin: top center; }
.receipt .center { text-align: center; }
.receipt .muted { color: #4B5563; }
.receipt hr { border: 0; border-top: 1px dashed #9CA3AF; margin: 8px 0; }
.receipt .stamp { text-align: center; border: 1.5px solid #111827; font-weight: 600; margin: 6px 0; }
.receipt .powered { text-align: center; color: #4B5563; font-size: 12px; padding: 8px 0 10px; }
.receipt-zig { height: 10px; margin: 0 -16px; background: linear-gradient(-45deg, var(--zig-bg, var(--zt-bg)) 6px, transparent 0), linear-gradient(45deg, var(--zig-bg, var(--zt-bg)) 6px, transparent 0); background-size: 12px 12px; background-repeat: repeat-x; background-position: left bottom; }

/* 店型與結尾 */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; font-weight: 900; }
.section-head p { max-width: 460px; color: var(--zt-muted); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.store-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.store-grid img { border-radius: 12px; border: 1px solid var(--zt-line); }
.store-grid figcaption { font-weight: 700; }
.closing .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 104px; }
.closing-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.closing-text h2 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.12; font-weight: 900; }
.closing-text h2 em { font-style: normal; color: var(--zt-primary); }
.fit { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; color: var(--zt-muted); padding-top: 12px; border-top: 1px solid var(--zt-line); }
.fit b { color: var(--zt-ink); }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--zt-line); color: var(--zt-subtle); font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-block: 28px 96px; }
.site-footer a { color: var(--zt-subtle); }
.site-footer a:hover { color: var(--zt-ink); }
.site-footer .brand { font-weight: 900; color: var(--zt-ink); }
.site-footer .source { flex-basis: 100%; font-size: 13px; }

/* 營業時間軸（固定在畫面底部） */
.day-timeline { position: sticky; bottom: 0; z-index: 15; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--zt-line); box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.06); }
.day-timeline .container { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.day-clock { display: flex; flex-direction: column; line-height: 1.2; min-width: 84px; }
.day-clock span { font-size: 12px; color: var(--zt-subtle); }
.day-clock strong { font-family: var(--zt-mono); font-weight: 600; font-size: 24px; color: var(--zt-clock); }
.day-clock em { display: none; font-style: normal; font-size: 13px; color: var(--zt-muted); white-space: nowrap; }
.day-track { flex: 1 1 auto; min-width: 0; position: relative; height: 44px; }
.day-rail, .day-fill { position: absolute; top: 20px; height: 4px; border-radius: 999px; }
.day-rail { left: 0; right: 0; background: var(--zt-line); }
.day-fill { left: 0; width: 0; background: var(--zt-clock-light); }
.day-head { position: absolute; top: 0; left: 0; width: 3px; height: 44px; background: var(--zt-clock); border-radius: 2px; }
.day-mark { position: absolute; top: 6px; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 8px; background: var(--glyph, var(--zt-primary)); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; text-decoration: none; }
.day-mark:hover { color: #FFFFFF; }

/* 方案頁 */
.page-head { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; font-weight: 900; }
.page-head p { font-size: 19px; color: var(--zt-muted); max-width: 720px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.plan-card { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-card-free { border: 2px solid var(--zt-primary); }
.plan-card h2 { font-size: 22px; font-weight: 900; }
.plan-price { font-family: var(--zt-mono); font-size: 30px; font-weight: 600; }
.plan-price small { font-size: 15px; color: var(--zt-subtle); }
.plan-card ul { margin: 0; padding-left: 1.2em; color: var(--zt-muted); display: flex; flex-direction: column; gap: 4px; }
.badge-soon { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--zt-clock); background: var(--zt-clock-bg); border-radius: 999px; padding: 1px 10px; }
.promise { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.compare-wrap { position: relative; overflow-x: auto; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 16px; }
.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 10px 14px; border-bottom: 1px solid var(--zt-line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--zt-bg); }
.compare tbody th[scope="row"] { font-weight: 400; }
.compare .group td, .compare .group th { background: var(--zt-bg); font-weight: 900; text-align: left; }

/* 下載頁 */
.download-box { background: var(--zt-surface); border: 2px solid var(--zt-primary); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--zt-muted); font-size: 15px; }
.download-status { min-height: 1.75em; color: var(--zt-muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { border-top: 4px solid var(--zt-primary); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps b { font-size: 19px; }
.notice { background: var(--zt-surface); border: 1px solid var(--zt-line); border-left: 4px solid var(--zt-clock-light); border-radius: 12px; padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.notice ol { margin: 0; padding-left: 1.3em; }
details.advanced { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 12px; padding: 14px 20px; }
details.advanced summary { cursor: pointer; font-weight: 700; }
.sha { font-family: var(--zt-mono); font-size: 13px; word-break: break-all; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* 手機選單（640px 以下取代橫向導覽） */
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--zt-line); border-radius: 10px; background: var(--zt-surface); font-weight: 700; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu[open] summary { border-color: var(--zt-primary); color: var(--zt-primary); }
.site-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 12px; box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12); padding: 8px; display: flex; flex-direction: column; }
.site-menu nav a { padding: 10px 14px; border-radius: 8px; color: var(--zt-ink); text-decoration: none; }
.site-menu nav a[aria-current="page"] { background: var(--zt-bg); font-weight: 700; }

/* 內容頁（教學、硬體、常見問題、已知問題、回報、隱私權） */
.page-main { padding-block: 56px 96px; gap: 32px; }
.page-main > .page-head { padding-block: 0; }
.prose { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 900; }
.prose h3 { font-size: 20px; line-height: 1.4; font-weight: 700; }
.prose p, .prose li { color: var(--zt-muted); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.prose code, .prose kbd { font-family: var(--zt-mono); font-size: 0.9em; background: var(--zt-bg); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--zt-ink); text-decoration: none; }
a.card:hover { border-color: var(--zt-primary); color: var(--zt-ink); }
.card h2, .card h3 { font-size: 20px; font-weight: 900; line-height: 1.35; }
.card p { color: var(--zt-muted); font-size: 16px; }
.card-tag { align-self: flex-start; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: var(--zt-bg); color: var(--zt-muted); }
.card-tag-ok { background: var(--zt-ok-bg); color: var(--zt-ok); }
.card-tag-warn { background: var(--zt-clock-bg); color: var(--zt-clock); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 12px; padding: 14px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list details[open] summary { margin-bottom: 8px; }
.faq-list details p, .faq-list details li { color: var(--zt-muted); }
.table-wrap { position: relative; overflow-x: auto; background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 16px; }
.data-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.data-table th, .data-table td { padding: 10px 14px; border-bottom: 1px solid var(--zt-line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--zt-bg); }
.forum { display: flex; flex-direction: column; gap: 10px; }
.forum-item { background: var(--zt-surface); border: 1px solid var(--zt-line); border-radius: 14px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.forum-item h3 { font-size: 18px; font-weight: 700; }
.forum-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.forum-tags span { border-radius: 999px; padding: 1px 10px; background: var(--zt-bg); color: var(--zt-muted); font-weight: 700; }
.forum-vote { display: flex; align-items: center; gap: 10px; }
.forum-vote strong { font-family: var(--zt-mono); font-size: 24px; font-weight: 600; }
.forum-vote button { min-height: 40px; padding: 6px 16px; border-radius: 10px; border: 1px solid var(--zt-primary); background: var(--zt-surface); color: var(--zt-primary); font: inherit; font-weight: 700; cursor: pointer; }
.forum-vote button:disabled { opacity: 0.6; cursor: default; }
.forum-empty { background: var(--zt-surface); border: 1px dashed #CBD5E1; border-radius: 14px; padding: 18px 20px; color: var(--zt-muted); }
.store-picks { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed #CBD5E1; padding-top: 14px; }
.store-picks p { color: var(--zt-muted); font-size: 15px; }
.store-picks div { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-store { min-height: 44px; padding: 8px 18px; border-radius: 10px; border: 1px solid var(--zt-line); background: var(--zt-bg); color: var(--zt-ink); font: inherit; font-weight: 700; cursor: pointer; }
.btn-store:hover { border-color: var(--zt-primary); color: var(--zt-primary); }
.btn-store:disabled { opacity: 0.55; cursor: wait; }
.screenshot-pending { background: var(--zt-bg); border: 1px dashed #CBD5E1; border-radius: 12px; padding: 18px; color: var(--zt-subtle); font-size: 15px; text-align: center; }

/* 動畫 */
@keyframes zt-print { 0% { clip-path: inset(0 0 100% 0); } 35%, 100% { clip-path: inset(0 0 0 0); } }
/* 四列依序淡入：每列在同一個 6 秒循環內，先隱藏到自己的起點才出現，之後一直顯示到循環結束 */
@keyframes zt-in-1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 13%, 100% { opacity: 1; transform: none; } }
@keyframes zt-in-2 { 0%, 15% { opacity: 0; transform: translateY(8px); } 25%, 100% { opacity: 1; transform: none; } }
@keyframes zt-in-3 { 0%, 27% { opacity: 0; transform: translateY(8px); } 37%, 100% { opacity: 1; transform: none; } }
@keyframes zt-in-4 { 0%, 38% { opacity: 0; transform: translateY(8px); } 48%, 100% { opacity: 1; transform: none; } }
@keyframes zt-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
@keyframes zt-flip { 0% { transform: perspective(600px) rotateX(-95deg); } 60% { transform: perspective(600px) rotateX(12deg); } 100% { transform: perspective(600px) rotateX(0); } }
.anim-print { animation: zt-print 6s steps(12, end) infinite; }
.anim-in-1 { animation: zt-in-1 6s infinite both; }
.anim-in-2 { animation: zt-in-2 6s infinite both; }
.anim-in-3 { animation: zt-in-3 6s infinite both; }
.anim-in-4 { animation: zt-in-4 6s infinite both; }
.anim-blink { animation: zt-blink 1.2s steps(1) infinite; }
.anim-flip { animation: zt-flip 1.1s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: top center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-print, .anim-in-1, .anim-in-2, .anim-in-3, .anim-in-4, .anim-blink, .anim-flip { animation: none; }
}

@media (max-width: 640px) {
  .day-clock em { display: block; }
  body { font-size: 16px; }
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .container { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .site-nav { display: none; }
  .site-menu { display: block; margin-left: auto; }
  .site-cta { display: none; }
  .prose { padding: 20px; }
  .day-track { display: none; }
  .day-timeline .container { justify-content: space-between; }
  .grid-3 { font-size: 14px; }
  .closing .container { padding-block: 72px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 會員頁：/styles.css 仍負責會員內容；以下擋住它的舊頁首／頁尾元素選擇器，避免蓋掉共用頁首頁尾 */
.site-header .site-nav { position: static; z-index: auto; border-bottom: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-footer .brand { display: inline; gap: 0; }
.member-session-bar { display: flex; justify-content: flex-end; padding-top: 16px; }
.member-page .actions a.button:not(.secondary) { background: var(--zt-surface); color: var(--zt-primary); border: 1px solid var(--zt-primary); }
.member-page .actions a.button.secondary { background: var(--zt-surface); color: var(--zt-ink); border: 1px solid var(--zt-line); }
.h2-compact { font-size: 22px; font-weight: 900; }
.forum-main { display: flex; flex-direction: column; gap: 6px; }
.member-page .actions a.button:not(.secondary):hover { background: var(--zt-primary); color: #fff; }
.member-page .actions a.button.secondary:hover { border-color: var(--zt-primary); color: var(--zt-primary); }
