/* HALU 官網共用樣式（HALU 幼兒園／HALU PET 各複製一份）
   品牌色取自 brand/README.md：主綠 #17A24B、珊瑚 #F87A6E、黃 #F7C948 */
:root {
  --green: #17A24B;
  --green-dark: #0F7A37;
  --green-wash: #EAF7EF;
  --coral: #F87A6E;
  --coral-wash: #FFF0EE;
  --yellow: #F7C948;
  --yellow-wash: #FFF8E1;
  --ink: #1F2A24;
  --ink-soft: #4A564F;
  --muted: #7C877F;
  --line: #E3E8E4;
  --bg: #FBFCFA;
  --paper: #FFFFFF;
  --r: 20px;
  --r-sm: 12px;
  --sh: 0 10px 30px rgba(23, 60, 38, .08);
  --sh-lg: 0 24px 60px rgba(23, 60, 38, .14);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- 導覽 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 250, .88);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav-links a:hover { background: var(--green-wash); color: var(--green-dark); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--sh); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(23, 162, 75, .28); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- 區塊 ---------- */
section { padding: 88px 0; }
.section-soft { background: linear-gradient(180deg, #F3F9F5, #FBFCFA); }
.eyebrow { display: inline-block; color: var(--green-dark); background: var(--green-wash); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; letter-spacing: .06em; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; margin-top: 14px; }
h3 { font-size: 21px; font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); margin: 18px 0 0; }
.center { text-align: center; }
.center .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.hl { color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--ink-soft); font-size: 15px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges i { color: var(--green); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}

/* 手機外框（純 CSS 示意畫面，不是真實截圖，不會露出任何真實資料） */
.phone {
  width: 280px; border-radius: 40px; background: #111; padding: 12px; box-shadow: var(--sh-lg);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #111; border-radius: 999px; z-index: 2; }
.screen { background: var(--bg); border-radius: 30px; overflow: hidden; height: 560px; padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; }
.mock-head img { width: 30px; height: 30px; }
.mock-card { background: var(--paper); border-radius: 16px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-size: 13.5px; line-height: 1.55; }
.mock-card b { display: block; font-size: 14.5px; }
.mock-card small { color: var(--muted); }
.mock-row { display: flex; align-items: center; gap: 10px; }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; font-size: 14px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.tag-g { background: var(--green-wash); color: var(--green-dark); }
.tag-c { background: var(--coral-wash); color: #C2493D; }
.tag-y { background: var(--yellow-wash); color: #8A6A00; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.hero-visual .phone:nth-child(2) { position: absolute; right: 0; top: 70px; transform: rotate(6deg) scale(.9); opacity: .97; }
.hero-visual .phone:first-child { transform: rotate(-3deg); z-index: 1; margin-right: 120px; }
@media (max-width: 900px) {
  .hero-visual { min-height: 0; }
  .hero-visual .phone:nth-child(2) { display: none; }
  .hero-visual .phone:first-child { margin: 0; transform: none; }
}

/* ---------- 卡片格 ---------- */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g3, .g4, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card h3 { margin-top: 14px; }
.card p { color: var(--ink-soft); margin: 8px 0 0; font-size: 16px; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; }
.ic-g { background: var(--green-wash); color: var(--green); }
.ic-c { background: var(--coral-wash); color: var(--coral); }
.ic-y { background: var(--yellow-wash); color: #C99A10; }

/* 步驟 */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 30px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 26px; font-weight: 900; font-size: 15px; color: var(--green); letter-spacing: .1em; }

/* 兩支 App */
.app-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
@media (max-width: 860px) { .app-split { grid-template-columns: 1fr; } }
.app-card { border-radius: 28px; padding: 32px; background: var(--paper); border: 1px solid var(--line); }
.app-card header { display: flex; align-items: center; gap: 14px; }
.app-card header img { width: 64px; height: 64px; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 6px; }
.app-card ul { list-style: none; padding: 0; margin: 20px 0 0; }
.app-card li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.app-card li i { color: var(--green); margin-top: 6px; width: 18px; text-align: center; }

/* 價格 */
.price { position: relative; }
.price.featured { border: 2px solid var(--green); box-shadow: var(--sh); }
.price .amount { font-size: 38px; font-weight: 900; margin-top: 10px; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 18px 0 0; }
.price li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-soft); font-size: 16px; }
.price li i { color: var(--green); margin-top: 6px; }
.price li.no i { color: #C4CBC6; }
.ribbon { position: absolute; top: -13px; right: 20px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* CTA 色帶 */
.cta-band { background: var(--green); color: #fff; border-radius: 32px; padding: 56px 32px; text-align: center; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.9); margin: 14px auto 0; max-width: 620px; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); box-shadow: none; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* 頁尾 */
footer { padding: 48px 0 40px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer a { color: var(--ink-soft); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* 文章頁（家長教學） */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 40px; }
.doc aside { position: sticky; top: 90px; align-self: start; }
.doc aside a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-size: 15px; }
.doc aside a:hover { background: var(--green-wash); text-decoration: none; }
.doc article h2 { font-size: 28px; margin: 52px 0 12px; padding-top: 10px; scroll-margin-top: 90px; }
.doc article h2:first-child { margin-top: 0; }
.doc article ol, .doc article ul { padding-left: 1.3em; }
.doc article li { margin: 6px 0; }
.note { background: var(--yellow-wash); border-radius: var(--r-sm); padding: 14px 18px; color: #5E4A00; font-size: 16px; margin: 14px 0; }
.kbd { display: inline-block; background: var(--green-wash); color: var(--green-dark); border-radius: 8px; padding: 0 8px; font-weight: 700; font-size: 15px; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .doc aside { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .doc aside a { background: var(--paper); border: 1px solid var(--line); }
}

/* 進場動畫（尊重減少動態設定） */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
