/*
Theme Name: Light Children 光點兒童
Theme URI: https://www.lightchildren.org/
Author: 光點兒童網站升級專案
Description: 社團法人新北市光點兒童重症扶助協會官方網站佈景主題。極簡、直覺、全齡友善:高對比、大字體、清晰導覽。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: lightchildren
*/

/* ============================================================
   光點兒童重症扶助協會 — 新站設計稿
   理念:極簡、直覺、全齡友善(高對比、大字體、清晰導覽)
   識別:小火焰/一點光 — 暖橘、燭黃、水藍,取自協會背心與畫展主視覺
   ============================================================ */

:root {
  --paper: #FFFDF8;        /* 暖白紙面 */
  --ink: #26333E;          /* 墨藍黑,內文 */
  --ink-soft: #4E5D69;     /* 次要文字 */
  --flame: #EE8A1D;        /* 火焰橘,主行動色 */
  --flame-deep: #A85A02;   /* 深橘,小字可讀 */
  --sun: #FFD35C;          /* 燭黃 */
  --sun-soft: #FFF3D6;     /* 燭光暈 */
  --aqua: #E9F4F4;         /* 淺水藍區塊底 */
  --aqua-deep: #176675;    /* 深水藍,連結 */
  --line: #EAE2D3;         /* 分隔線 */
  --card: #FFFFFF;

  --font-body: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: "LXGW WenKai TC", "Noto Sans TC", serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(38, 51, 62, .10);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 19px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--aqua-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }

/* ---------- 一點光:網站的印記 ---------- */
.dot {
  display: inline-block;
  width: .55em; height: .55em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun), var(--flame) 75%);
  box-shadow: 0 0 .5em rgba(255, 211, 92, .9);
  vertical-align: middle;
}

/* ---------- 頁首 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 1.6rem;
  padding: .7rem 1.2rem;
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
/* 官方 Logo(頂欄用完整橫式,頁尾用火焰圖案+白字) */
.brand .logo { height: 2.9rem; width: auto; flex: none; }
.brand .logo-flame { height: 2.5rem; width: auto; flex: none; }
.brand small {
  display: block; font-family: var(--font-body);
  font-size: .62rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: .18em; line-height: 1.2;
}

nav.main { margin-left: auto; }
nav.main ul { list-style: none; display: flex; gap: .2rem; align-items: center; }
nav.main a {
  display: block; padding: .45rem .8rem;
  color: var(--ink); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  border-radius: 10px;
  white-space: nowrap;
}
nav.main a:hover { background: var(--sun-soft); }
nav.main a[aria-current="page"] { color: var(--flame-deep); font-weight: 700; }

.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem; font-weight: 700;
  text-decoration: none; text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-flame {
  background: var(--flame); color: #FFFDF8;
  box-shadow: 0 6px 18px rgba(238, 138, 29, .35);
}
.btn-flame:hover { box-shadow: 0 10px 24px rgba(238, 138, 29, .45); }
.btn-ghost {
  border-color: var(--ink); color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.topbar .btn { padding: .5rem 1.2rem; font-size: .95rem; }

/* 漢堡選單按鈕(桌機隱藏) */
.nav-toggle {
  display: none;
  width: 2.8rem; height: 2.8rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; flex: none;
}
.nav-toggle .bar {
  display: block; width: 1.2rem; height: 2.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3rem; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem;
}
.eyebrow {
  font-size: .85rem; letter-spacing: .22em;
  color: var(--ink-soft); font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.1rem;
}
h1 {
  font-family: var(--font-display);
  font-size: 3.1rem; line-height: 1.35;
  font-weight: 700; letter-spacing: .04em;
}
h1 .lit {
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
}
.hero .lead {
  margin: 1.4rem 0 2rem;
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 30em;
}
.hero .cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .cta-row .btn { font-size: 1.1rem; padding: .85rem 1.9rem; }

.hero-visual { position: relative; min-height: 430px; }
.hero-visual .glow {
  position: absolute; inset: -12% -8%;
  background: radial-gradient(closest-side at 60% 45%,
      rgba(255, 211, 92, .55), rgba(255, 211, 92, .18) 55%, transparent 75%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero-visual figure {
  position: absolute; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero-visual figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .ph-a { width: 62%; aspect-ratio: 4/3.2; left: 0; top: 6%; transform: rotate(-2.5deg); }
.hero-visual .ph-b { width: 52%; aspect-ratio: 4/3.4; right: 0; bottom: 0; transform: rotate(2deg); }
.hero-visual figcaption {
  position: absolute; left: .8rem; bottom: .5rem;
  font-size: .75rem; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

/* ---------- 區塊通用 ---------- */
section.block { padding: 4.2rem 0; }
.block-head { max-width: 34em; margin-bottom: 2.4rem; }
h2 {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 700;
  letter-spacing: .05em; line-height: 1.4;
  margin: .35rem 0 .8rem;
}
.block-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- 服務卡 ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  box-shadow: 0 4px 14px rgba(38,51,62,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .glyph {
  font-size: 2rem; line-height: 1;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  background: var(--sun-soft); border-radius: 14px;
  margin-bottom: 1.1rem;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: .5rem; letter-spacing: .04em;
}
.service p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- 畫廊 ---------- */
.gallery-band { background: var(--aqua); }
.gallery-band .block-head { margin-bottom: 1.8rem; }
.shelf {
  display: flex; gap: 1.5rem;
  overflow-x: auto; padding: 1.2rem .4rem 1.8rem;
  scroll-snap-type: x mandatory;
}
.shelf::-webkit-scrollbar { height: 10px; }
.shelf::-webkit-scrollbar-thumb { background: rgba(23,102,117,.35); border-radius: 5px; }
.artwork {
  flex: 0 0 380px; scroll-snap-align: start;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 22px rgba(23, 102, 117, .18);
  padding: 10px;
  transform: rotate(-1.2deg);
  transition: transform .18s ease;
}
.artwork:nth-child(even) { transform: rotate(1.2deg); }
.artwork:hover { transform: rotate(0) scale(1.03); }
.artwork img { border-radius: 6px; }
.artwork figcaption {
  padding: .55rem .3rem .2rem;
  font-size: .85rem; color: var(--ink-soft); text-align: center;
}
.gallery-band .cta-row { display: flex; gap: .9rem; }

/* ---------- 名人引言 ---------- */
.quote-band { text-align: center; padding: 4.6rem 1.2rem; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: 1.9rem; line-height: 1.7; font-weight: 700;
  letter-spacing: .06em; max-width: 22em; margin: 0 auto;
}
.quote-band .who { margin-top: 1.2rem; color: var(--ink-soft); font-size: .95rem; letter-spacing: .2em; }

/* ---------- 捐款 ---------- */
.donate-band { background: linear-gradient(180deg, var(--sun-soft), var(--paper) 85%); }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 2.2rem; }
.way {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.5rem;
}
.way h3 {
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .8rem;
}
.way dl { font-size: .98rem; }
.way dt { color: var(--ink-soft); font-size: .85rem; margin-top: .6rem; }
.way dd { font-weight: 500; }
.way .num {
  font-variant-numeric: tabular-nums;
  font-size: 1.12rem; font-weight: 700; letter-spacing: .04em;
}
.donate-note {
  font-size: .92rem; color: var(--ink-soft);
  border-left: 4px solid var(--sun); padding-left: 1rem;
  max-width: 44em;
}

/* ---------- 消息卡 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 1.1rem 1.3rem 1.4rem; }
.news-card time { font-size: .82rem; color: var(--flame-deep); font-weight: 700; letter-spacing: .1em; }
.news-card h3 { font-size: 1.12rem; font-weight: 700; margin-top: .3rem; line-height: 1.5; }
.news-card p { font-size: .92rem; color: var(--ink-soft); margin-top: .4rem; }

/* ---------- 頁尾 ---------- */
footer {
  background: var(--ink); color: #E8EDF1;
  padding: 3.2rem 0 2rem; margin-top: 4rem;
  font-size: .95rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.2rem;
}
footer .brand { color: #fff; margin-bottom: 1rem; }
footer .brand small { color: #B9C4CC; }
footer p, footer li { color: #C4CDD4; }
footer h4 { font-size: 1rem; color: #fff; margin-bottom: .8rem; letter-spacing: .1em; }
footer ul { list-style: none; }
footer a { color: #DCE3E8; text-decoration: none; }
footer a:hover { color: var(--sun); }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.4rem; font-size: .82rem; color: #93A1AB;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ---------- 內頁 ---------- */
.page-head {
  background: var(--aqua);
  padding: 3.2rem 0 2.8rem;
}
.page-head h1 { font-size: 2.4rem; }
.page-head p { color: var(--ink-soft); margin-top: .6rem; max-width: 36em; }

/* 捐款頁 */
.donate-page .ways { margin-top: 2.4rem; }
.copy-btn {
  margin-top: .8rem;
  font-size: .85rem; padding: .35rem .9rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink-soft); cursor: pointer;
}
.copy-btn:hover { border-color: var(--flame); color: var(--flame-deep); }
.online-cta {
  margin-top: 2.6rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.online-cta h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .5rem; }
.online-cta p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.online-cta .fine { margin: 1rem 0 0; font-size: .85rem; color: var(--ink-soft); }
.donate-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.badge-soon {
  display: inline-block; font-size: .78rem; font-weight: 700;
  background: var(--sun-soft); color: var(--flame-deep);
  padding: .15rem .7rem; border-radius: 999px; margin-left: .5rem;
  vertical-align: middle; letter-spacing: .05em;
}

/* 消息列表頁 */
.news-page .news-grid { margin-top: 2.4rem; }

/* ---------- 內文頁(關於/文章/徵信/志工) ---------- */
.prose { max-width: 40em; margin: 2.6rem auto 0; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 {
  font-size: 1.6rem; margin-top: 2.2rem;
  padding-left: .7rem; border-left: 5px solid var(--sun);
}
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figure figcaption {
  font-size: .85rem; color: var(--ink-soft);
  text-align: center; margin-top: .6rem;
}
.prose ul.checks { list-style: none; }
.prose ul.checks li {
  padding-left: 1.9rem; position: relative; margin-top: .8em;
}
.prose ul.checks li::before {
  content: ""; position: absolute; left: .2rem; top: .55em;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun), var(--flame) 75%);
  box-shadow: 0 0 .45em rgba(255, 211, 92, .9);
}
.prose .meta { color: var(--ink-soft); font-size: .9rem; }
.prose .backlink { display: inline-block; margin-top: 2.4rem; }

/* ---------- 畫廊頁 ---------- */
.art-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem; margin-top: 2.4rem;
}
.art-grid a {
  display: block; background: #fff; padding: 8px;
  border-radius: 10px; box-shadow: 0 5px 16px rgba(23,102,117,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.art-grid a:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 12px 26px rgba(23,102,117,.22); }
.art-grid img { border-radius: 5px; width: 100%; }
dialog.lightbox {
  border: none; border-radius: 12px; padding: 0;
  max-width: min(92vw, 1100px); max-height: 92vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
dialog.lightbox::backdrop { background: rgba(20, 28, 35, .82); }
dialog.lightbox img { max-height: 88vh; width: auto; max-width: 100%; margin: 0 auto; }
dialog.lightbox .close {
  position: absolute; top: .6rem; right: .6rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: none; background: rgba(38,51,62,.75); color: #fff;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}

/* ---------- 聯絡表單 ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 2.6rem; margin-top: 2.6rem; align-items: start;
}
.contact-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.7rem;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.contact-card p { margin-top: .45rem; }
.form-field { margin-top: 1.1rem; }
.form-field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: .7rem .9rem;
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid var(--sun); border-color: var(--flame);
}
.req { color: var(--flame-deep); }

@media (max-width: 960px) {
  .art-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .art-grid { grid-template-columns: 1fr; }
}

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; height: 380px; margin-top: 1rem; }
  .services, .ways, .news-grid, .foot-grid { grid-template-columns: 1fr 1fr; }

  /* ----- 行動版頂欄:品牌 + 捐款 + 漢堡;選單成為下拉面板 ----- */
  .topbar-inner { flex-wrap: wrap; gap: .7rem; padding: .6rem .9rem; }
  .nav-toggle { display: flex; margin-left: auto; }
  .topbar .btn-flame { order: 5; margin-left: auto; padding: .45rem 1rem; font-size: .9rem; }
  .nav-toggle { order: 6; margin-left: 0; }
  .brand { margin-right: auto; }

  nav.main {
    display: none;
    order: 10; width: 100%; margin-left: 0;
    border-top: 1px solid var(--line);
    padding-top: .6rem;
  }
  .menu-open nav.main { display: block; }
  nav.main ul { flex-direction: column; gap: 0; align-items: stretch; }
  nav.main a {
    padding: .85rem .6rem;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  nav.main li + li a { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
}
@media (max-width: 640px) {
  html { font-size: 17.5px; }
  h1 { font-size: 2.2rem; }
  .services, .ways, .news-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.6rem; }
  .hero-visual { height: 300px; }
  .artwork { flex-basis: 300px; }
}

/* 七個主選單項目時,確保 Logo 不被壓縮、導覽列不溢出 */
.topbar .brand { flex: none; }
@media (min-width: 961px) {
  .topbar-inner { gap: .8rem; }
  nav.main a { padding: .45rem .5rem; font-size: .9rem; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .topbar-inner { gap: .7rem; }
  .brand .logo { height: 2.5rem; }
  nav.main a { padding: .4rem .45rem; font-size: .85rem; }
  .topbar .btn-flame { padding: .55rem 1.1rem; font-size: .9rem; }
}

/* ---------- 首頁輪播 ---------- */
.banner-wrap { max-width: var(--maxw); margin: 1.4rem auto 0; padding: 0 1.2rem; }
.carousel {
  position: relative; aspect-ratio: 1577 / 600;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--sun-soft);
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.cards a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 5px solid #fff; }
.cards img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.carousel-track { position: relative; height: 100%; }
.carousel .slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.carousel .slide.is-active { opacity: 1; pointer-events: auto; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 3px 10px rgba(38,51,62,.2); z-index: 2;
}
.carousel-btn:hover { background: var(--sun); }
.carousel-btn.prev { left: .7rem; }
.carousel-btn.next { right: .7rem; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: .8rem;
  display: flex; justify-content: center; gap: .5rem; z-index: 2;
}
.carousel-dots button {
  width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #fff;
  background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
}
.carousel-dots button[aria-selected="true"] { background: var(--flame); }

/* ---------- 影片 ---------- */
.video-band { background: var(--ink); color: #fff; }
.video-band .eyebrow, .video-band .block-head p { color: rgba(255,255,255,.78); }
.video-band .eyebrow .dot { background: var(--sun); }
.video-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.video-band .btn-ghost:hover { background: #fff; color: var(--ink); }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-bottom: 1.8rem; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: .7rem; font-weight: 500; }

/* ---------- 申請協助 ---------- */
.apply-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.4rem; margin-top: 2.4rem; align-items: start; }
.apply-grid .prose { margin: 0; max-width: none; }
.apply-grid .tagline { color: var(--flame-deep); font-weight: 500; font-size: 1.1rem; }
.callout {
  display: inline-block; background: var(--flame); color: #fff; font-weight: 700;
  border-radius: 999px; padding: .55rem 1.4rem; margin: .4rem 0;
}
.apply-card {
  background: var(--sun-soft); border-radius: var(--radius); padding: 1.8rem;
  position: sticky; top: 5.5rem;
}
.apply-card .tag {
  display: inline-block; background: #fff; color: #C2415C; font-weight: 700;
  border: 2px solid #C2415C; border-radius: 999px; padding: .1rem .9rem; margin-bottom: .6rem;
}
.apply-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .8rem; }
.apply-card dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin-bottom: 1.2rem; }
.apply-card dt { color: var(--ink-soft); }
.apply-card .btn { width: 100%; text-align: center; }
.apply-card .fine, .flow-band .fine, .apply-grid .fine { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }
.flow-band { background: var(--aqua); }
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.flow li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; position: relative; counter-increment: step;
}
.flow li::before {
  content: counter(step); position: absolute; top: .9rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--flame);
}
.flow .ico { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: .8rem; }
.flow b { display: block; font-size: 1.2rem; margin-bottom: .25rem; }
.flow span:not(.ico) { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 960px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .videos, .flow, .cards { grid-template-columns: 1fr; }
  .carousel-btn { width: 2.2rem; height: 2.2rem; font-size: 1.4rem; }
  .banner-wrap { padding: 0 .6rem; }
  .carousel { border-radius: 12px; }
  .carousel-dots { bottom: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ---------- WordPress 相容 ---------- */
.entry-content { max-width: 40em; margin: 2.6rem auto 0; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2.2rem; padding-left: .7rem; border-left: 5px solid var(--sun); font-family: var(--font-display); }
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow); height: auto; }
.entry-content a { word-break: break-word; }
.entry-wide .entry-content { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--ink-soft); text-align: center; margin-top: .5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; max-width: 40em; margin: 3rem auto 0; font-size: .95rem; }
.pagination { margin-top: 2.6rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: .45rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; margin: 0 .15rem; text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--flame); border-color: var(--flame); color: #fff; }

/* ===== 聯絡表單（Contact Form 7）2026-11-06 新增 ===== */
.wpcf7 p { margin: 0 0 16px; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 6px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ddd5c7;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.6;
  color: inherit;
  box-sizing: border-box;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: #EE8A1D;
  outline: 2px solid rgba(238, 138, 29, .25);
  outline-offset: 1px;
}
.wpcf7 input[type="submit"] {
  background: #EE8A1D;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 34px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.wpcf7 input[type="submit"]:hover { background: #d97710; }
.wpcf7 .wpcf7-not-valid-tip { color: #c0392b; font-size: 15px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ddd5c7;
  background: #fffaf2;
  font-size: 16px;
}
.wpcf7 .wpcf7-spinner { margin-left: 10px; }
