/*
  public 端（銷售頁）樣式。共用 token 與元件在 aih.css；本檔只作用於 body.aih-public 內的 pub-* 類別。
  CSP 為 style-src 'self'：不可使用 style="" 行內樣式，也不可載入外部字型。
  設計：森林綠＋帶綠調紙色＋蜂蜜金（呼應產品內的琥珀色按鈕）；全頁只有主視覺派工單一個進場動畫。
*/

.aih-public {
  --p-forest: #23402f;
  --p-forest-2: #2d4a37;
  --p-moss: #4f7a5d;
  --p-sage: #dfe6dc;
  --p-paper: #f3f3ec;
  --p-paper-2: #eaebe1;
  --p-card: #ffffff;
  --p-ink: #1c2b22;
  --p-text: #33463a;
  --p-quiet: #56695c;
  --p-line: #d9dccf;
  --p-honey: #e3ac3e;
  --p-honey-deep: #c98f1f;
  --p-on-dark: #eef2ea;
  --p-on-dark-quiet: #b9c8bb;
  --p-wrap: 1180px;

  background: var(--p-paper);
  color: var(--p-text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Heiti TC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
.aih-public h1, .aih-public h2, .aih-public h3 { color: var(--p-ink); letter-spacing: .01em; }
.aih-public a { color: var(--p-moss); text-underline-offset: 3px; }
.aih-public code { background: var(--p-paper-2); color: var(--p-ink); }

.pub-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; }
.pub-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--p-honey); color: var(--p-ink) !important; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.pub-skip:focus { top: 12px; }
.pub-wrap { width: 100%; max-width: var(--p-wrap); margin: 0 auto; padding: 0 24px; }
.pub-main { flex: 1; display: block; }

/* ── 按鈕 ─────────────────────────────── */
.pub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.3;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.aih-public .pub-btn-primary { background: var(--p-forest); color: #fff; }
.aih-public .pub-btn-primary:hover { background: var(--p-moss); }
.aih-public .pub-btn-honey { background: var(--p-honey); color: var(--p-ink); }
.aih-public .pub-btn-honey:hover { background: #edbd59; }
.aih-public .pub-btn-ghost { background: transparent; color: var(--p-forest); border-color: #9fb0a2; }
.aih-public .pub-btn-ghost:hover { border-color: var(--p-forest); background: rgba(35, 64, 47, .05); }
.aih-public .pub-btn-ghost-dark { background: transparent; color: var(--p-on-dark); border-color: rgba(238, 242, 234, .4); }
.aih-public .pub-btn-ghost-dark:hover { border-color: var(--p-on-dark); background: rgba(255, 255, 255, .06); }
.pub-btn-block { width: 100%; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── 版頭 ─────────────────────────────── */
.pub-header { background: var(--p-forest); color: var(--p-on-dark); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pub-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.aih-public .pub-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.pub-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--p-honey); color: var(--p-forest); display: grid; place-items: center; flex: none; }
.pub-brand-mark svg { width: 22px; height: 22px; }
.pub-brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; line-height: 1.2; letter-spacing: .02em; }
.pub-brand-text small { font-weight: 400; font-size: 12px; color: var(--p-on-dark-quiet); letter-spacing: .04em; }
.pub-nav { display: flex; align-items: center; gap: 6px; }
.aih-public .pub-nav-link { color: var(--p-on-dark); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.aih-public .pub-nav-link:hover { background: rgba(255, 255, 255, .08); }
.aih-public .pub-nav-link[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.pub-nav .pub-btn { min-height: 40px; padding: 8px 18px; margin-left: 8px; }

/* ── 首頁主視覺 ───────────────────────── */
.pub-hero { background: var(--p-forest); color: var(--p-on-dark); overflow: hidden; position: relative; }
.pub-hero::after { /* 地面：讓房卡與手機「放在」櫃台上 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: var(--p-paper);
}
.pub-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; position: relative; z-index: 1; }
.pub-hero-text { padding-bottom: 110px; }
.aih-public .pub-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.24; font-weight: 900; letter-spacing: .005em; margin: 0 0 22px; }
.pub-hero h1 > span, .pub-showcase-copy h2 > span { display: block; }
.pub-nowrap { white-space: nowrap; }
.pub-hero-lead { font-size: 1.1rem; line-height: 1.85; color: var(--p-on-dark); max-width: 34em; margin: 0 0 30px; }
.pub-hero .pub-actions { margin-bottom: 30px; }
.pub-hero .pub-btn { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.pub-hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--p-on-dark-quiet); font-size: 14.5px; }
.pub-hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.pub-hero-points svg { width: 16px; height: 16px; color: var(--p-honey); flex: none; }

/* 主視覺組合：房卡＋手機＋派工單 */
.pub-scene { position: relative; height: 560px; }
.pub-roomcard {
  position: absolute; left: 0; bottom: 72px; width: 230px; padding: 22px 22px 20px;
  background: #fbfaf4; color: var(--p-ink); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transform: rotate(-5deg);
}
.pub-roomcard-hotel { font-size: 12px; color: var(--p-quiet); margin: 0; letter-spacing: .06em; }
.pub-roomcard-no { font-size: 46px; line-height: 1; font-weight: 900; letter-spacing: .02em; margin: 6px 0 14px; color: var(--p-forest); font-variant-numeric: tabular-nums; }
.pub-roomcard-no small { font-size: 16px; font-weight: 700; margin-left: 4px; }
.pub-roomcard svg { display: block; width: 100%; height: auto; color: var(--p-forest); }
.pub-roomcard-hint { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--p-forest); text-align: center; }

.pub-phone {
  position: absolute; right: 24px; top: 0; width: 270px; padding: 10px; border-radius: 40px;
  background: #111a14; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6), inset 0 0 0 1.5px #3b4a3f;
}
.pub-phone-screen { border-radius: 31px; overflow: hidden; aspect-ratio: 390 / 820; background: #fffbf0; }
.pub-phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.pub-ticket {
  position: absolute; left: 24px; top: 28px; width: 270px; z-index: 2;
  background: #fff; color: var(--p-ink); border-radius: 14px; padding: 14px 16px 14px 18px;
  border-left: 5px solid var(--p-honey); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5);
  animation: pub-ticket-in .7s cubic-bezier(.2, .8, .2, 1) .5s both;
}
.pub-ticket-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--p-quiet); }
.pub-ticket-top b { color: var(--p-forest); }
.pub-ticket-what { margin: 2px 0 8px; font-weight: 800; font-size: 17px; }
.pub-ticket-who { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--p-text); }
.pub-ticket-who svg { width: 16px; height: 16px; color: var(--p-moss); flex: none; }
@keyframes pub-ticket-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* ── 共用區塊 ─────────────────────────── */
.pub-section { padding: 88px 0; }
.pub-section-tight { padding-top: 40px; }
.pub-section-alt { background: var(--p-card); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.pub-section-head { max-width: 640px; margin-bottom: 44px; }
.aih-public .pub-section-head h2, .aih-public .pub-split-aside h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.3; font-weight: 900; margin: 0 0 12px; }
.pub-section-head p, .pub-split-aside p { color: var(--p-quiet); margin: 0; font-size: 1.05rem; }

/* 左標題、右內容 */
.pub-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.pub-split-aside { position: sticky; top: 108px; }
.pub-split-aside .pub-btn { margin-top: 26px; }

/* 功能清單（非卡片：以分隔線排列） */
.pub-features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-line); }
.pub-feature { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--p-line); }
.pub-feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--p-sage); color: var(--p-forest); display: grid; place-items: center; }
.pub-feature-icon svg { width: 26px; height: 26px; }
.aih-public .pub-feature h3 { font-size: 1.18rem; margin: 2px 0 6px; font-weight: 800; }
.pub-feature p { margin: 0; color: var(--p-text); }

/* 流程：真正有順序，才用編號 */
.pub-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.pub-flow li { counter-increment: step; position: relative; padding: 0 28px 0 0; }
.pub-flow li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--p-forest); color: #fff; font-weight: 900; font-size: 18px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--p-card);
}
.pub-flow li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; border-top: 2px dashed #b9c4b5; }
.pub-flow li:last-child::after { display: none; }
.pub-flow li:last-child::before { background: var(--p-honey); color: var(--p-ink); }
.pub-flow strong { display: block; color: var(--p-ink); font-size: 1.15rem; margin: 18px 0 6px; }
.pub-flow span { display: block; color: var(--p-text); font-size: 15px; }

/* 管理端展示 */
.pub-showcase { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
.pub-showcase-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.3; font-weight: 900; margin: 0 0 14px; }
.pub-showcase-copy p { color: var(--p-quiet); margin: 0 0 18px; }
.pub-checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.pub-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.pub-checks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--p-moss); }

/* 瀏覽器外框 */
.pub-browser { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--p-line); box-shadow: 0 30px 60px -30px rgba(35, 64, 47, .35); }
.pub-browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--p-paper-2); border-bottom: 1px solid var(--p-line); }
.pub-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cdbf; }
.pub-browser-bar span { margin-left: 12px; flex: 1; max-width: 280px; height: 18px; border-radius: 9px; background: #fff; }
.pub-browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* 結尾行動帶 */
.pub-cta { background: var(--p-forest); color: var(--p-on-dark); border-radius: 28px; padding: 56px 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.aih-public .pub-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; font-weight: 900; margin: 0 0 10px; }
.pub-cta p { margin: 0; color: var(--p-on-dark-quiet); max-width: 36em; }
.pub-cta code { background: rgba(255, 255, 255, .12); color: #fff; }
.pub-cta .pub-btn { min-height: 52px; padding: 12px 28px; }

/* ── 內頁標題 ─────────────────────────── */
.pub-pagehead { padding-top: 64px; padding-bottom: 40px; }
.aih-public .pub-pagehead h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.25; font-weight: 900; margin: 0 0 12px; }
.pub-pagehead p { color: var(--p-quiet); margin: 0; max-width: 40em; font-size: 1.05rem; }
.pub-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--p-quiet); background: var(--p-paper-2); border-radius: 10px; padding: 12px 16px; margin-top: 20px; max-width: 46em; }
.pub-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--p-moss); }

/* ── 系統畫面 ─────────────────────────── */
.pub-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-bottom: 88px; }
.pub-screen { margin: 0; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.pub-screen-stage { height: 380px; background: var(--p-paper-2); display: flex; align-items: flex-start; justify-content: center; padding: 32px 32px 0; overflow: hidden; }
.pub-screen-stage .pub-browser { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 20px 40px -24px rgba(35, 64, 47, .4); }
.pub-screen-stage .pub-browser img { aspect-ratio: auto; height: 330px; }
.pub-screen-stage .pub-phone-mini { width: 210px; padding: 8px 8px 0; border-radius: 30px 30px 0 0; background: #111a14; }
.pub-phone-mini img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: top; border-radius: 23px 23px 0 0; }
.pub-screen figcaption { padding: 22px 26px 26px; }
.aih-public .pub-screen figcaption strong { display: block; color: var(--p-ink); font-size: 1.15rem; margin-bottom: 4px; }
.pub-screen figcaption span { color: var(--p-text); }

/* ── 方案 ─────────────────────────────── */
.pub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.pub-plan { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; }
.aih-public .pub-plan h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.pub-plan-desc { color: var(--p-quiet); margin: 0 0 22px; min-height: 3.5em; }
.pub-plan-price { text-wrap: balance; font-size: 1.5rem; line-height: 1.35; font-weight: 900; color: var(--p-ink); margin: 0 0 24px; font-variant-numeric: tabular-nums; }
.pub-plan .pub-btn { margin-bottom: 26px; }
.pub-plan-specs { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--p-line); display: grid; gap: 12px; }
.pub-plan-specs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.pub-plan-specs svg { width: 20px; height: 20px; margin-top: 4px; color: var(--p-moss); }
.pub-plan-specs .pub-off { color: var(--p-quiet); }
.pub-plan-specs .pub-off svg { color: #a3aa9c; }
.pub-plan-specs b { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.pub-plan-featured { background: var(--p-forest); border-color: var(--p-forest); color: var(--p-on-dark); }
.aih-public .pub-plan-featured h2, .pub-plan-featured .pub-plan-price, .pub-plan-featured .pub-plan-specs b { color: #fff; }
.pub-plan-featured .pub-plan-desc, .pub-plan-featured .pub-plan-specs .pub-off { color: var(--p-on-dark-quiet); }
.pub-plan-featured .pub-plan-specs { border-top-color: rgba(255, 255, 255, .15); }
.pub-plan-featured .pub-plan-specs svg { color: var(--p-honey); }
.pub-plans-after { padding: 40px 0 88px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.pub-plans-after p { margin: 0; color: var(--p-quiet); }

/* ── 常見問題 ─────────────────────────── */
.pub-faq-layout { padding-bottom: 88px; }
.pub-faq { border-top: 1px solid var(--p-line); }
.pub-faq-item { border-bottom: 1px solid var(--p-line); }
.pub-faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-weight: 800; font-size: 1.08rem; color: var(--p-ink);
}
.pub-faq-item summary::-webkit-details-marker { display: none; }
.pub-faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--p-sage);
  background-image: linear-gradient(var(--p-forest), var(--p-forest)), linear-gradient(var(--p-forest), var(--p-forest));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
}
.pub-faq-item[open] summary::after { background-size: 12px 2px, 0 0; background-color: var(--p-honey); }
.pub-faq-item summary:hover { color: var(--p-moss); }
.pub-faq-answer { padding: 0 48px 24px 4px; white-space: pre-line; color: var(--p-text); }
.pub-empty { background: var(--p-card); border: 1px dashed #b9c4b5; border-radius: 20px; padding: 44px 32px; text-align: center; }
.pub-empty svg { width: 44px; height: 44px; color: var(--p-moss); }
.aih-public .pub-empty h2 { font-size: 1.25rem; margin: 12px 0 6px; }
.pub-empty p { color: var(--p-quiet); margin: 0 0 22px; }
.pub-empty-page { margin-bottom: 88px; }

/* ── 條款／隱私 ───────────────────────── */
.pub-prose { max-width: 760px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 20px; padding: 40px 48px; margin-bottom: 88px; }
.aih-public .pub-prose h2 { font-size: 1.15rem; font-weight: 800; margin: 1.8rem 0 .5rem; }
.pub-prose h2:first-child { margin-top: 0; }
.pub-prose p { margin: 0 0 1rem; }

/* ── 註冊 ─────────────────────────────── */
.pub-register { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; padding-bottom: 88px; }
.pub-register-aside { position: sticky; top: 108px; }
.aih-public .pub-register-aside h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 18px; }
.pub-steps { list-style: none; margin: 0; padding: 0; counter-reset: rs; }
.pub-steps li { counter-increment: rs; position: relative; padding: 0 0 26px 52px; }
.pub-steps li::before { content: counter(rs); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-card); border: 2px solid var(--p-forest); color: var(--p-forest); font-weight: 900; font-size: 15px; }
.pub-steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; border-left: 2px dashed #b9c4b5; }
.pub-steps li:last-child { padding-bottom: 0; }
.pub-steps li:last-child::after { display: none; }
.pub-steps li.pub-step-now::before { background: var(--p-forest); color: #fff; }
.pub-steps li.pub-step-done::before { content: "✓"; background: var(--p-moss); border-color: var(--p-moss); color: #fff; }
.pub-steps strong { display: block; color: var(--p-ink); line-height: 34px; }
.pub-steps strong .pub-sr-only { line-height: normal; }
.pub-steps span { display: block; color: var(--p-quiet); font-size: 14.5px; }
.pub-form-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 22px; padding: 12px 36px 36px; }
.pub-form fieldset { border: 0; border-bottom: 1px solid var(--p-line); padding: 24px 0 28px; margin: 0; min-width: 0; }
.pub-form legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-weight: 900; font-size: 1.15rem; color: var(--p-ink); }
.pub-form legend + * { clear: both; }
.aih-public .pub-form label { font-weight: 700; color: var(--p-ink); margin: 1.1rem 0 .4rem; font-size: 15px; }
.aih-public .pub-form input, .aih-public .pub-form select { min-height: 48px; padding: 11px 14px; border: 1.5px solid #c9cfc0; border-radius: 10px; background: #fff; color: var(--p-ink); }
.aih-public .pub-form input:hover, .aih-public .pub-form select:hover { border-color: #a3ad9b; }
.aih-public .pub-form input:focus, .aih-public .pub-form select:focus { border-color: var(--p-moss); }
.aih-public .pub-form .input-validation-error { border-color: var(--red); background: #fffafa; }
.pub-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pub-help { font-size: 13.5px; color: var(--p-quiet); margin: .45rem 0 0; }
.pub-slug { display: flex; align-items: stretch; }
.pub-slug-prefix { background: var(--p-paper-2); border: 1.5px solid #c9cfc0; border-right: 0; border-radius: 10px 0 0 10px; padding: 0 12px; display: flex; align-items: center; font-size: 14px; color: var(--p-quiet); white-space: nowrap; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.aih-public .pub-slug input { border-radius: 0 10px 10px 0; min-width: 0; flex: 1 1 auto; width: auto; }
.pub-slug-status { min-height: 1.4em; margin: .35rem 0 0; font-size: 14px; }
.pub-slug-status.pub-ok { color: var(--teal); font-weight: 700; }
.pub-slug-status.pub-bad { color: var(--red); font-weight: 700; }
.pub-agree { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 4px; }
.aih-public .pub-agree input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; flex: none; accent-color: var(--p-forest); padding: 0; }
.aih-public .pub-agree label { margin: 0; font-weight: 400; color: var(--p-text); }
.aih-public .pub-submit { width: 100%; min-height: 54px; margin-top: 20px; font-size: 16.5px; }
.pub-form .aih-alert-error { border-radius: 10px; margin-top: 20px; }

/* ── 完成／驗證 ───────────────────────── */
.pub-result { max-width: 640px; margin: 64px auto 88px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 24px; padding: 44px 44px 36px; }
.pub-result-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--p-sage); color: var(--p-forest); margin-bottom: 20px; }
.pub-result-icon svg { width: 30px; height: 30px; }
.pub-result-icon.pub-warn { background: #f6ead2; color: var(--amber); }
.aih-public .pub-result h1 { font-size: 1.75rem; font-weight: 900; line-height: 1.35; margin: 0 0 12px; }
.pub-result p { margin: 0 0 14px; }
.pub-result code { word-break: break-all; }
.pub-future-url { background: var(--p-paper); border: 1px solid var(--p-line); border-radius: 12px; padding: 14px 18px; margin: 4px 0 18px; }
.pub-future-url span { display: block; font-size: 13px; color: var(--p-quiet); }
.aih-public .pub-future-url code { background: none; padding: 0; font-size: 1.1rem; font-weight: 700; color: var(--p-forest); word-break: break-all; }
.pub-result .pub-steps { margin: 26px 0 30px; padding-top: 24px; border-top: 1px solid var(--p-line); }

/* ── 頁尾 ─────────────────────────────── */
.pub-sitefoot { background: var(--p-ink); color: var(--p-on-dark-quiet); padding: 48px 0 36px; font-size: 14.5px; }
.pub-sitefoot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.pub-sitefoot .pub-brand-text { color: #fff; }
.pub-sitefoot p { margin: 12px 0 0; max-width: 28em; }
.pub-sitefoot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.aih-public .pub-sitefoot a { color: var(--p-on-dark); text-decoration: none; }
.aih-public .pub-sitefoot a:hover { text-decoration: underline; }
.aih-public .aih-footer { background: var(--p-ink); color: #93a596; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ── 焦點、動態偏好 ───────────────────── */
.aih-public .pub-btn:focus-visible, .aih-public .pub-nav-link:focus-visible, .pub-faq-item summary:focus-visible { outline: 3px solid var(--p-honey); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .pub-ticket { animation: none; }
  .pub-btn { transition: none; }
}

/* ── 響應式 ───────────────────────────── */
@media (max-width: 1020px) {
  .pub-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 56px; }
  .pub-hero-text { padding-bottom: 24px; }
  .pub-scene { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .pub-split, .pub-showcase, .pub-register { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pub-split-aside, .pub-register-aside { position: static; }
  .pub-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pub-flow li:nth-child(2)::after { display: none; }
  .pub-screens { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .aih-public { font-size: 15.5px; }
  .pub-wrap { padding: 0 16px; }
  .pub-header-inner { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 8px; min-height: 0; }
  .pub-nav { width: 100%; overflow-x: auto; gap: 2px; margin: 0 -6px; padding: 0 6px 2px; scrollbar-width: none; }
  .aih-public .pub-nav-link { padding: 6px 12px; font-size: 14.5px; }
  .pub-nav .pub-btn { margin-left: auto; min-height: 36px; padding: 6px 16px; font-size: 14px; }
  .pub-header { position: static; }
  .pub-hero-inner { padding-top: 40px; }
  .pub-hero .pub-actions .pub-btn { flex: 1 1 auto; }
  .pub-scene { height: 470px; }
  .pub-phone { width: 210px; right: 0; border-radius: 32px; padding: 8px; }
  .pub-phone-screen { border-radius: 25px; }
  .pub-roomcard { width: 176px; padding: 16px; bottom: 64px; }
  .pub-roomcard-no { font-size: 36px; }
  .pub-ticket { left: 0; top: 20px; width: min(240px, 70%); }
  .pub-hero::after { height: 64px; }
  .pub-section { padding: 64px 0; }
  .pub-section-head { margin-bottom: 32px; }
  .pub-feature { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .pub-feature-icon { width: 44px; height: 44px; border-radius: 12px; }
  .pub-flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pub-flow li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: 0 0 28px; }
  .pub-flow li::before { grid-row: span 2; }
  .pub-flow li::after, .pub-flow li:nth-child(2)::after { display: block; top: 52px; bottom: 0; left: 23px; right: auto; border-top: 0; border-left: 2px dashed #b9c4b5; }
  .pub-flow li:last-child::after { display: none; }
  .pub-flow strong { margin: 10px 0 4px; }
  .pub-cta { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; border-radius: 20px; }
  .pub-cta .pub-actions .pub-btn { flex: 1 1 auto; }
  .pub-pagehead { padding-top: 40px; padding-bottom: 28px; }
  .pub-screen-stage { height: 300px; padding: 22px 18px 0; }
  .pub-screen-stage .pub-browser img { height: 260px; }
  .pub-phone-mini img { height: 270px; }
  .pub-screen-stage .pub-phone-mini { width: 170px; }
  .pub-prose { padding: 28px 22px; border-radius: 16px; }
  .pub-form-card { padding: 4px 20px 28px; border-radius: 18px; }
  .pub-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pub-result { margin: 32px auto 64px; padding: 32px 22px 28px; border-radius: 18px; }
  .pub-faq-answer { padding-right: 4px; }
}
