/*
  玩美法郎｜page.css（大方版初稿，2026-12-03 萬象之主）

  方向：清爽、植物、乾淨。霧白底、鼠尾草綠、一點淡金；標題用宋體（柔一點、像店家），內文黑體。
  顏色是我們先定的，雪芳有喜歡的顏色就只改 :root 這一段（README 規則 2）。
  字型只准 Google Fonts；換字型時 @import 的 family 與下面 --f-body／--f-head 一起換。
  @import 必須是這個檔第一條規則（註解可以在它前面）。
*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@500;600&display=swap");

:root {
  /* 底與字 */
  --c-bg: #f3f5ef;            /* 頁面底：帶一點綠的霧白 */
  --c-tint: #e8eee5;          /* 淡綠段落底（流程、為什麼、問答） */
  --c-paper: #ffffff;         /* 卡片 */
  --c-ink: #24312c;           /* 主要字色 */
  --c-muted: #5d6b64;         /* 次要字色 */
  --c-line: #d8e0d6;          /* 細線 */

  /* 重點色 */
  --c-accent: #4c7a61;        /* 鼠尾草葉綠：按鈕、編號、小標 */
  --c-accent-soft: #dce8de;
  --c-on-accent: #f7faf6;
  --c-gold: #a88c52;          /* 一點淡金：引言、細節 */

  /* 深色段落：預約區、頁尾 */
  --c-deep: #2e463e;
  --c-on-deep: #eef3ee;
  --c-on-deep-muted: rgba(238, 243, 238, 0.74);
  --c-deep-line: rgba(238, 243, 238, 0.2);
  --c-deep-accent: #b9d6bf;

  /* 圖還沒到位時的柔和色塊 */
  --c-ph-a: #dfe8dc;
  --c-ph-b: #c7d6cc;

  /* 字型 */
  --f-body: "Noto Sans TC", system-ui, sans-serif;
  --f-head: "Noto Serif TC", "Noto Sans TC", serif;
  --w-head: 600;

  /* 形狀 */
  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1080px;

  /* 審稿記號（只在 ?review 出現，不跟品牌色走） */
  --c-todo: #d6336c;
  --c-todo-bg: rgba(214, 51, 108, 0.06);
  --c-todo-on-deep: #ff9cbf;
}

/* ---------- 底 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: var(--w-head); line-height: 1.4; letter-spacing: 0.04em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 22px; }
.narrow { width: min(760px, 100%); }

/* ---------- 初稿字樣（一直都在，細細一條） ---------- */
.draft-strip {
  padding: 5px 12px; text-align: center;
  background: var(--c-deep); color: var(--c-on-deep-muted);
  font-size: 0.72rem; letter-spacing: 0.24em;
}

/* ---------- 頁首 ---------- */
.site-head { padding: 18px 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--c-accent); }
.brand-name { font-family: var(--f-head); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.16em; }
.brand-sub { padding-left: 10px; border-left: 1px solid var(--c-line); font-size: 0.78rem; color: var(--c-muted); letter-spacing: 0.16em; }

/* ---------- 共用 ---------- */
.eyebrow { margin-bottom: 14px; font-size: 0.74rem; letter-spacing: 0.3em; color: var(--c-accent); }
.sec { padding: 72px 0; }
.sec-tint { background: var(--c-tint); }
.sec h2, .about-text h2, .learn h2, .price-card h2, .contact h2 { font-size: clamp(1.55rem, 6vw, 2.25rem); }
.sec-head { margin-bottom: 36px; }
.sec-head.center { text-align: center; }
.sec-lead { margin-top: 16px; color: var(--c-muted); }
.center .sec-lead { margin-left: auto; margin-right: auto; max-width: 30em; }
.prose p + p { margin-top: 1em; }

/* ---------- 按鈕：主行動只有 .btn 一種；.btn-line 是次要的框線樣式 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px; border-radius: 999px;
  background: var(--c-accent); color: var(--c-on-accent);
  font-weight: 700; letter-spacing: 0.12em; text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(46, 70, 62, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(46, 70, 62, 0.7); }
.btn-line { background: transparent; color: var(--c-accent); border: 1.5px solid var(--c-accent); box-shadow: none; }
.btn-line:hover { background: var(--c-accent-soft); box-shadow: none; }

/* ---------- 圖（圖檔沒到位時 page.js 加 .is-missing，留下柔和色塊） ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--c-ph-a), var(--c-ph-b));
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 9; }
.photo.is-missing img { display: none; }

/* ---------- 首屏 ---------- */
.hero { padding: 28px 0 64px; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(2rem, 8.6vw, 3.4rem); line-height: 1.35; }
.lead { margin-top: 20px; max-width: 28em; font-size: 1.02rem; color: var(--c-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.more { display: inline-flex; gap: 6px; color: var(--c-ink); font-size: 0.95rem; text-decoration: none; border-bottom: 1px solid var(--c-line); padding-bottom: 2px; }
.more:hover { border-color: var(--c-accent); color: var(--c-accent); }
.hero-photo { box-shadow: 0 30px 60px -36px rgba(46, 70, 62, 0.55); }

/* ---------- 01 處境 ---------- */
.concerns li {
  position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--c-line);
  font-size: 1.04rem;
}
.concerns li:first-child { border-top: 1px solid var(--c-line); }
.concerns li::before {
  content: ""; position: absolute; left: 4px; top: 1.45em;
  width: 12px; height: 12px; border-radius: 12px 0;
  background: var(--c-accent); opacity: 0.75;
}
.closing {
  margin-top: 32px; padding-left: 18px; border-left: 2px solid var(--c-gold);
  font-family: var(--f-head); font-size: 1.15rem; line-height: 1.8; color: var(--c-ink);
}

/* ---------- 02 流程 ---------- */
.flow-grid { display: grid; gap: 40px; }
.steps { display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 14px; align-items: start; }
.steps .no { font-family: var(--f-head); font-size: 1.7rem; line-height: 1.2; color: var(--c-accent); }
.steps h3 { font-size: 1.12rem; }
.steps p { margin-top: 4px; font-size: 0.95rem; color: var(--c-muted); }

/* ---------- 03 植物 ---------- */
.plants-photo { margin-bottom: 28px; }
.cards { display: grid; gap: 14px; }
.cards li { padding: 24px 22px; border-radius: var(--radius-sm); background: var(--c-paper); border: 1px solid var(--c-line); }
.cards h3 { font-size: 1.1rem; color: var(--c-accent); }
.cards p { margin-top: 6px; font-size: 0.95rem; color: var(--c-muted); }

/* ---------- 04 為什麼 ---------- */
.reasons { display: grid; gap: 14px; }
.reasons li { padding: 28px 24px; border-radius: var(--radius-sm); background: var(--c-paper); }
.reasons .no { display: block; margin-bottom: 10px; font-family: var(--f-head); font-size: 0.9rem; letter-spacing: 0.2em; color: var(--c-gold); }
.reasons h3 { font-size: 1.2rem; }
.reasons p { margin-top: 8px; font-size: 0.95rem; color: var(--c-muted); }

/* ---------- 05 關於 ---------- */
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-text h2 { margin-bottom: 22px; }
.about-text .prose { color: var(--c-muted); }

/* ---------- 06 學習 ---------- */
.learn {
  display: grid; gap: 26px; padding: 40px 24px;
  border-radius: var(--radius); background: var(--c-paper); border: 1px solid var(--c-line);
}
.asks { margin-bottom: 20px; }
.asks li { padding: 8px 0 8px 22px; position: relative; font-family: var(--f-head); font-size: 1.05rem; }
.asks li::before { content: "—"; position: absolute; left: 0; color: var(--c-gold); }
.learn p { color: var(--c-muted); }
.learn-action { margin-top: 26px; }

/* ---------- 07 問答 ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: grid; grid-template-columns: 1.8rem 1fr auto; gap: 10px; align-items: baseline;
  padding: 20px 2px; font-family: var(--f-head); font-size: 1.05rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--c-accent); font-family: var(--f-body); font-weight: 700; }
.faq summary::after { content: "＋"; color: var(--c-muted); }
.faq details[open] summary::after { content: "－"; }
.faq details > p { padding: 0 2px 22px 2.6rem; color: var(--c-muted); }

/* ---------- 08 價格（全頁只有這裡談價格；README 規則 5） ---------- */
.price-card {
  padding: 44px 26px; text-align: center; border-radius: var(--radius);
  background: var(--c-paper); border: 1px solid var(--c-line);
}
.price-card h2 { margin-bottom: 16px; }
.price-card p { color: var(--c-muted); }

/* ---------- 09 預約 ---------- */
.contact { padding: 80px 0; background: var(--c-deep); color: var(--c-on-deep); }
.contact .eyebrow { color: var(--c-deep-accent); }
.contact-grid { display: grid; gap: 40px; }
.contact-action { margin-top: 30px; }
.contact .btn { background: var(--c-deep-accent); color: var(--c-deep); }
.info { margin: 0; border-top: 1px solid var(--c-deep-line); }
.info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-deep-line); }
.info dt { font-size: 0.88rem; color: var(--c-on-deep-muted); }
.info dd { margin: 0; }
.info > .review-only { display: none; }

/* ---------- 頁尾 ---------- */
.site-foot { padding: 36px 0 44px; background: var(--c-deep); color: var(--c-on-deep-muted); border-top: 1px solid var(--c-deep-line); text-align: center; }
.foot-brand { font-family: var(--f-head); font-size: 1.1rem; letter-spacing: 0.2em; color: var(--c-on-deep); }
.foot-line { margin-top: 6px; font-size: 0.9rem; }
.foot-note { margin-top: 14px; font-size: 0.75rem; opacity: 0.7; }

/* ---------- 審稿模式（網址帶 ?review，page.js 在 body 加 .review） ---------- */
.todo-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 10px 14px; background: var(--c-todo); color: #fff;
  font: 500 0.88rem/1.5 var(--f-body); text-align: center;
}
.todo-bar[hidden] { display: none; }
.todo-bar button {
  padding: 4px 14px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: inherit; font: inherit; cursor: pointer;
}
.review .todo { outline: 2px dashed var(--c-todo); outline-offset: 3px; border-radius: 6px; background-color: var(--c-todo-bg); }
.review span.todo::after { content: "待"; margin-left: 3px; font: 700 0.62em/1 var(--f-body); vertical-align: super; color: var(--c-todo); }
.review div.todo { margin: 8px 0; padding: 12px; }
.review div.todo::before {
  content: "待確認｜" attr(data-todo);
  display: block; margin-bottom: 10px;
  font: 700 0.75rem/1.5 var(--f-body); letter-spacing: 0.02em; text-align: left;
  color: var(--c-todo);
}
.review figure.todo { border-radius: var(--radius); }
.review figure.todo::before {
  content: "待確認｜" attr(data-todo);
  position: absolute; left: 10px; right: 10px; top: 10px; z-index: 1;
  padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.92);
  font: 700 0.75rem/1.5 var(--f-body); color: var(--c-todo);
}
.review .contact { --c-todo: var(--c-todo-on-deep); --c-todo-bg: rgba(255, 255, 255, 0.06); }
.review .info > .review-only { display: grid; }
.review .todo-current { outline-style: solid; outline-width: 3px; }

/* ---------- 平板與電腦（手機先排，這裡才放寬） ---------- */
@media (min-width: 760px) {
  .wrap { padding: 0 40px; }
  .site-head { padding: 28px 0 8px; }
  .sec { padding: 104px 0; }
  .sec-head { margin-bottom: 48px; }
  .hero { padding: 48px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 64px; }
  .two { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .flow-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .plants-photo { aspect-ratio: 21 / 9; margin-bottom: 36px; }
  .reasons { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .learn { grid-template-columns: 0.9fr 1.1fr; gap: 56px; padding: 64px 56px; align-items: center; }
  .price-card { padding: 64px 56px; }
  .contact { padding: 112px 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}
@media (min-width: 1000px) {
  .reasons { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
