/* 學姊系統 行銷站共用樣式。色票與字級依 docs/ui-redesign/前端改版規劃.md §4（淺色版）。 */

/* 字體由各頁 <head> 的 Google Fonts 連結載入（Noto Sans TC 400/600、Noto Serif TC 700，display=swap）。
   沒載入時退回系統字型，版面不會跳動太多。 */

:root {
  --paper: #ffffff;
  --text: #1d1d1b;
  --muted: #55524b;
  --line: #e6e1d8;
  --tint: #f1eee8;
  --brand: #f2a23c;
  --brand-ink: #1d1406;
  --accent: #a5560a;
  --acc-tint: #f7e9d9;
  --warn-bg: #fff1c7;
  --ok: #2e7d4f;
  --err: #b3261e;

  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --serif: "Noto Serif TC", "PMingLiU", "Songti TC", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.75 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; }
h1, .display { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.4; }
h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; }
h3 { font-weight: 600; font-size: 18px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin-bottom: 6px; }
small, .small { font-size: 13px; line-height: 20px; color: var(--muted); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.prose > * { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- 頁首 ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.brand { order: 1; margin-right: auto; padding: 8px 0; min-height: 56px; display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.header-cta { order: 2; }
.site-nav { order: 3; flex: 0 0 100%; display: flex; gap: 4px; overflow-x: auto; padding: 0 0 8px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--acc-tint); font-weight: 600; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #e9962a; }
.btn-secondary { background: var(--tint); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: #e9e5dd; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-disabled { background: var(--tint); color: #8a857b; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 區塊 ---------- */
section.block { padding: 40px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.lead { font-size: 17px; color: var(--muted); }
.hero { padding: 40px 0 32px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { max-width: 640px; margin-bottom: 24px; }
.page-title { padding-top: 32px; padding-bottom: 8px; }
.page-title p { color: var(--muted); max-width: 640px; }

.grid { display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); box-shadow: 0 1px 2px rgba(29, 29, 27, .04); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--accent); background: var(--acc-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.io { font-size: 14px; line-height: 22px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.io b { color: var(--text); font-weight: 600; }
.flow-arrow { display: none; }

/* ---------- 範例畫面佔位（之後換成實際截圖） ---------- */
.shot { aspect-ratio: 16 / 10; border: 2px dashed #cfc8ba; border-radius: var(--radius); background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; line-height: 22px; }
.shot b { color: var(--text); font-weight: 600; font-size: 15px; }

/* ---------- 待確認標記（上線前必須清掉，清單見 site/待確認事項.md） ---------- */
mark.todo { background: var(--warn-bg); color: #5c4300; border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.todo-block { background: var(--warn-bg); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; color: #5c4300; font-size: 14px; line-height: 22px; }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--accent); line-height: 1.4; }
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 0 16px; color: var(--text); }

/* ---------- 方案卡 ---------- */
.price { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.3; margin: 8px 0; }
.plan ul { color: var(--muted); }

/* ---------- 條文頁 ---------- */
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc h3 { margin-top: 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 22px; margin-bottom: 16px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { font-weight: 600; background: var(--tint); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 600px; }

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 32px 0 40px; margin-top: 48px; font-size: 14px; line-height: 22px; color: var(--muted); }
.site-footer .cols { display: grid; gap: 24px; }
.site-footer h4 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a, .site-footer button.linklike { color: var(--muted); display: inline-block; padding: 8px 0; min-height: 44px; line-height: 28px; }
.site-footer a:hover, .site-footer button.linklike:hover { color: var(--accent); }
button.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 同意橫幅（vanilla-cookieconsent）配色 ---------- */
#cc-main {
  --cc-font-family: var(--sans);
  --cc-bg: #ffffff;
  --cc-primary-color: #1d1d1b;
  --cc-secondary-color: #55524b;
  --cc-btn-primary-bg: #f2a23c;
  --cc-btn-primary-color: #1d1406;
  --cc-btn-primary-border-color: #f2a23c;
  --cc-btn-primary-hover-bg: #e9962a;
  --cc-btn-primary-hover-color: #1d1406;
  --cc-btn-primary-hover-border-color: #e9962a;
  --cc-btn-secondary-bg: #f1eee8;
  --cc-btn-secondary-color: #1d1d1b;
  --cc-btn-secondary-border-color: #e6e1d8;
  --cc-btn-secondary-hover-bg: #e9e5dd;
  --cc-btn-secondary-hover-color: #1d1d1b;
  --cc-btn-secondary-hover-border-color: #e6e1d8;
  --cc-toggle-on-bg: #a5560a;
  --cc-toggle-off-bg: #8a857b;
  --cc-separator-border-color: #e6e1d8;
  --cc-cookie-category-block-bg: #f1eee8;
  --cc-cookie-category-block-border: #e6e1d8;
  --cc-cookie-category-block-hover-bg: #e9e5dd;
  --cc-cookie-category-block-hover-border: #e6e1d8;
  --cc-section-category-border: #e6e1d8;
  --cc-modal-border-radius: 16px;
  --cc-btn-border-radius: 10px;
}

/* ---------- 桌機 ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  h1, .display { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding: 72px 0 56px; }
  section.block { padding: 56px 0; }
  .brand { order: 1; margin-right: 0; min-height: 64px; }
  .site-nav { order: 2; flex: 1; padding: 0; overflow: visible; justify-content: flex-end; }
  .header-cta { order: 3; margin-left: 12px; }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-nav, .site-footer, #cc-main { display: none !important; }
}
