/* 喜翻親子感統遊戲空間 官網樣式（跟 /css/style.css 那份會員系統管理後台樣式分開，避免互相影響） */
:root {
  --primary: #e07575;
  --primary-dark: #c45c5c;
  --primary-light: #f9eded;
  --accent: #6dba98;
  --accent-light: #eaf6f0;
  --ink: #3a3230;
  --muted: #8a7f7c;
  --bg: #fffaf6;
  --card: #ffffff;
  --border: #f0e3dd;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── 導覽列 ── */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: var(--max-width); margin: 0 auto;
}
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-link img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand-link span { font-weight: 800; font-size: 1.05rem; }
nav.main-nav { display: flex; gap: 4px; align-items: center; }
nav.main-nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink);
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { background: var(--primary-light); color: var(--primary-dark); }
nav.main-nav a.cta { background: var(--primary); color: #fff; }
nav.main-nav a.cta:hover { background: var(--primary-dark); }
.nav-toggle { display: none; }
/* 常駐登入鈕：桌機在選單右側，手機在漢堡鈕左邊，永遠看得到 */
.login-btn {
  margin-left: 8px; padding: 8px 18px; border-radius: 999px; text-decoration: none;
  background: var(--ink); color: #fff; font-size: .92rem; font-weight: 700; white-space: nowrap;
  min-height: 40px; display: inline-flex; align-items: center;
}
.login-btn:hover { background: #000; color: #fff; }
@media (max-width: 720px) {
  .login-btn { order: 1; margin-left: auto; padding: 8px 16px; }
  .nav-toggle { order: 2; }
  nav.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--card); padding: 10px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 16px rgba(0,0,0,.06); }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: 4px 8px; }
}

/* ── Hero ── */
.hero {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.hero-text { flex: 1 1 320px; }
.hero-text h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 12px; color: var(--primary-dark); }
.hero-text p { font-size: 1.05rem; color: var(--muted); margin: 0 0 20px; }
.hero-photos { flex: 1 1 280px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-photos img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; box-shadow: 0 8px 20px rgba(224,117,117,.18); }
.hero-photos img:first-child { grid-row: span 2; aspect-ratio: 1/2; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 0.98rem; border: none; cursor: pointer;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--primary); }
.btn.secondary:hover { background: var(--primary-light); }

/* ── 一般區塊 ── */
section { padding: 40px 0; }
section h2 { font-size: 1.5rem; color: var(--primary-dark); margin: 0 0 8px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 10px;
}
.tag-note {
  background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 0.92rem; text-align: center; margin: 0 auto 28px; max-width: 640px;
}

/* ── 相片牆 ── */
.photo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.photo-wall img { border-radius: var(--radius-sm); aspect-ratio: 1/1; object-fit: cover; }

/* ── 表單 ── */
.form-card { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-card label { display: block; font-size: 0.9rem; font-weight: 600; margin: 14px 0 6px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-msg { display: none; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.92rem; border-left: 3px solid; }
.form-msg.error { display: block; background: #fef2f2; color: #c0392b; border-color: #c0392b; }
.form-msg.success { display: block; background: #f0fdf4; color: #2f7a4d; border-color: #2f7a4d; }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 32px; }
.contact-info-grid .card { text-align: center; }

/* ── 知識庫 ── */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-row {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; text-decoration: none; color: var(--ink);
}
.article-row:hover { border-color: var(--primary); }
.article-row .cat { font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.article-row h3 { margin: 4px 0; font-size: 1.05rem; color: var(--ink); }
.article-row p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.article-body { max-width: 720px; margin: 0 auto; }
.article-body h1 { color: var(--primary-dark); font-size: 1.6rem; }
.article-body h2 { text-align: left; font-size: 1.2rem; margin-top: 28px; }
.article-body p { margin: 0 0 16px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }

/* ── 頁尾 ── */
footer.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer.site-footer h4 { margin: 0 0 10px; font-size: 0.9rem; color: var(--primary-dark); }
footer.site-footer a { display: block; color: var(--muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 6px; }
footer.site-footer a:hover { color: var(--primary-dark); }
.footer-bottom { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.social-links { display: flex; gap: 10px; margin-top: 6px; }
.social-links a { display: flex; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); align-items: center; justify-content: center; color: var(--primary-dark); }

@media (max-width: 480px) {
  .nav-row { padding: 10px 16px; }
  section { padding: 28px 0; }
}

/* ── 近日課程公告列（內容來自 /schedule.json）── */
.notice-bar { background: var(--primary); color: #fff; font-size: .9rem; }
.notice-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 8px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
}
.notice-inner strong { background: #fff; color: var(--primary-dark); border-radius: 999px; padding: 0 10px; font-size: .82rem; }
.notice-inner span { flex: 1 1 220px; line-height: 1.5; }
.notice-inner a {
  color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  min-height: 32px; display: inline-flex; align-items: center;
}

/* ── 排版精修（v2.2.2）：標題行距、避免孤字、手機卡片兩欄、頁首不折行 ── */
h1, h2, h3 { line-height: 1.4; text-wrap: balance; }
p, li { text-wrap: pretty; }
.hero-text h1 { line-height: 1.35; }
.brand-link { min-width: 0; }
.brand-link span { white-space: nowrap; }
@media (max-width: 600px) {
  .hero { padding: 28px 0 20px; }
  .hero .wrap { gap: 22px; }
  .hero-text h1 { font-size: 1.9rem; }
  .hero-text p { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 140px; text-align: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .card p { font-size: .86rem; line-height: 1.65; }
  section h2 { font-size: 1.35rem; }
}
@media (max-width: 400px) {
  .brand-link span { font-size: .8rem; }
  .brand-link { gap: 6px; }
  .brand-link img { width: 34px; height: 34px; }
  .login-btn { padding: 8px 12px; font-size: .85rem; }
  .nav-toggle { padding: 4px 4px; }
}

/* ── 活動剪影 ── */
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.event { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.event img { width: 120px; height: 120px; flex: none; border-radius: var(--radius-sm); object-fit: cover; }
.event .cat { font-size: .78rem; color: var(--accent); font-weight: 700; }
.event h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.event p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
@media (max-width: 400px) { .event { flex-direction: column; align-items: stretch; } .event img { width: 100%; height: 200px; } }

/* 斷行整理用：數字加單位、段落最後幾個字不拆開（由 main.js 加上） */
.nb { white-space: nowrap; }

/* ── 怎麼找到我們（聯絡頁）── */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 32px; }
.loc-grid figure { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.loc-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.loc-grid figcaption { padding: 10px 14px; font-size: .88rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) { .loc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .loc-grid figcaption { padding: 8px 10px; font-size: .82rem; } }

/* ── 專業把關（首頁證書區）與主視覺徽章 ── */
.trust-chip { margin: 14px 0 0; }
.trust-chip a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--accent-light); color: #2f7a4d; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid #cfe8dc; }
.cert-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cert-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.cert-img { flex: 0 1 300px; display: block; }
.cert-img img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.cert-text { flex: 1 1 320px; max-width: 560px; }
.cert-kicker { margin: 0 0 4px; color: var(--accent); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
.cert-text h2 { text-align: left; margin: 0 0 12px; }
.cert-note { color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) { .cert-img { flex-basis: 220px; margin: 0 auto; } .cert-text { text-align: left; } }

/* ══ Landing page 風格（v2.8.0，參考鴻綸官網的首頁語言）══ */
.lp-kicker { text-align: center; letter-spacing: .3em; font-size: .82rem; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.lp-kicker.left { text-align: left; }
.lp-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 56px 0 28px; text-align: center; }
.lp-title { font-size: clamp(2.1rem, 6.4vw, 3.8rem); font-weight: 500; line-height: 1.3; margin: 8px 0 18px; color: var(--ink); letter-spacing: .02em; text-wrap: balance; }
.lp-title .hl { background: linear-gradient(90deg, var(--primary), #f0a35e); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 700; }
.lp-sub { max-width: 640px; margin: 0 auto 24px; color: var(--muted); font-size: 1.05rem; }
.lp-cta { justify-content: center; }
.lp-hero .trust-chip { margin: 18px 0 0; }
.lp-scroll { margin: 36px 0 28px; font-size: .9rem; font-weight: 700; letter-spacing: .06em; color: var(--ink); animation: lpBob 2.4s ease-in-out infinite; }
@keyframes lpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.lp-card { position: relative; display: block; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.16); text-decoration: none; aspect-ratio: 16 / 9; background: #eee; }
.lp-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.lp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.62) 100%); }
.lp-card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 32px; text-align: left; color: #fff; }
.lp-card-text h2 { color: #fff; text-align: left; margin: 0 0 4px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.lp-card-text p { margin: 0 0 14px; opacity: .92; }
.lp-chips { display: flex; gap: 12px; overflow-x: auto; padding: 22px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.lp-chips a { flex: 0 0 auto; min-width: 170px; scroll-snap-align: start; text-decoration: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; text-align: left; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.lp-chips strong { display: block; color: var(--ink); font-size: .95rem; }
.lp-chips span { display: block; color: var(--muted); font-size: .8rem; }
.lp-space { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.lp-space img { flex: 1 1 320px; max-width: 520px; width: 100%; border-radius: 22px; object-fit: cover; aspect-ratio: 4 / 3; box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.lp-space > div { flex: 1 1 320px; }
.lp-space h2 { text-align: left; }
.lp-end { text-align: center; background: var(--primary-light); }
section.reveal { padding: 64px 0; }
@media (max-width: 600px) {
  .lp-hero { padding: 36px 0 20px; }
  .lp-card { aspect-ratio: 4 / 5; border-radius: 22px; }
  .lp-card-text { padding: 20px; }
  section.reveal { padding: 44px 0; }
}
/* 捲動浮現（沒有 JS 或減少動態時一律直接顯示）*/
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .lp-scroll { animation: none; } }

/* 右下角固定「線上諮詢」圖示條 */
.fab-contact { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 16px; box-shadow: 0 8px 28px rgba(0,0,0,.16); }
.fab-contact > span { font-weight: 800; font-size: .85rem; color: var(--ink); white-space: nowrap; }
.fab-contact a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; margin: 0; }
.fab-contact svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .fab-contact > span { display: none; } .fab-contact { padding: 6px; gap: 6px; } .fab-contact a { width: 38px; height: 38px; } }

/* 三欄頁尾 */
footer.site-footer .wrap.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 32px; align-items: start; }
footer.site-footer .f-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
footer.site-footer .f-logo img { border-radius: 50%; }
footer.site-footer .f-brand p { color: var(--muted); font-size: .88rem; margin: 0 0 8px; max-width: 320px; }
@media (max-width: 720px) { footer.site-footer .wrap.footer-grid { grid-template-columns: 1fr; gap: 22px; } }

.lp-title .hl { white-space: nowrap; }

/* Google 地圖嵌入 */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: #eee; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.lp-space .map-wrap { flex: 1 1 320px; max-width: 520px; aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .map-wrap { aspect-ratio: 4 / 3; } }

/* ── 捲動導覽（仿鴻綸首頁：往下捲，照片慢慢變淡並帶出各個主題）── */
.tour { background: var(--bg); }
.tour-stage { position: relative; width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.tour-slide { position: relative; margin: 0 0 16px; border-radius: 28px; overflow: hidden; height: 460px; background: #222; box-shadow: 0 18px 44px rgba(0,0,0,.16); }
.tour-bg { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(26px) brightness(.85) saturate(1.1); }
.tour-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tour-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 32px 26px; color: #fff; text-align: left; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.66)); }
.tour-cap h2 { color: #fff; text-align: left; margin: 0 0 4px; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: .04em; }
.tour-cap p { margin: 0 0 14px; opacity: .92; }
.tour-dots { display: none; }
/* 有 JS 才啟用固定卡片＋交叉淡入；沒有 JS 或減少動態時就是一張張直排的卡片 */
.tour-live .tour-sticky { position: sticky; top: var(--hdr, 120px); height: calc(100vh - var(--hdr, 120px)); display: flex; align-items: center; justify-content: center; padding: 10px 0 18px; }
.tour-live .tour-track { height: calc(var(--n, 5) * 72vh + 28vh); position: relative; }
.tour-live .tour-stage { height: min(100%, 680px); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.2); background: #222; }
.tour-live .tour-slide { position: absolute; inset: 0; margin: 0; height: auto; border-radius: 0; box-shadow: none; opacity: 0; pointer-events: none; will-change: opacity; }
.tour-live .tour-slide.is-active { pointer-events: auto; }
.tour-live .tour-fg { will-change: transform; }
.tour-live .tour-dots { display: flex; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 8px; z-index: 3; }
.tour-dots i { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.55); transition: height .3s, background .3s; display: block; }
.tour-dots i.on { height: 22px; background: #fff; }
.lp-chips-sec { padding: 12px 0 36px; background: var(--bg); }
@media (max-width: 600px) { .tour-slide { height: 420px; } .tour-cap { padding: 32px 20px 20px; } .tour-live .tour-stage { border-radius: 22px; } }

/* 累計瀏覽人次 */
.visit-counter { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.visit-counter strong { color: var(--primary-dark); font-size: 1rem; letter-spacing: .04em; }

/* ── 數字橫幅（仿鴻綸 statBanner）── */
.stat-banner { position: relative; overflow: hidden; color: #fff; padding: 72px 0; text-align: center; background: #3a3230; }
.stat-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: brightness(.42) saturate(1.1); transform: scale(1.08); will-change: transform; }
.stat-banner .wrap { position: relative; z-index: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px 20px; margin-top: 18px; }
.stat-num { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; line-height: 1.15; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 6px; font-size: .95rem; opacity: .9; letter-spacing: .06em; }
@media (max-width: 600px) { .stat-banner { padding: 52px 0; } .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* 常見問題（可展開）*/
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 48px; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); }

/* 家長學堂：主題分頁 */
.kn-tabs { display: flex; gap: 8px; margin: 0 0 20px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.kn-tabs::-webkit-scrollbar { display: none; }
.kn-tabs a { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); background: var(--card); color: var(--ink); border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.kn-tabs a span { margin-left: 6px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.kn-tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.kn-tabs a.on span { color: rgba(255,255,255,.85); }

