/* EPAA wireframe package — shared grayscale styles.
   Base rules come from the approved homepage wireframe v2
   (design/wireframes/20260925-epaa-home-v2/wireframe.html).
   Pages may add page-scoped rules in their own <style>, prefixed with the page id
   (e.g. .p05-…). Do not edit this file from a single page task. */

*{box-sizing:border-box}
body{margin:0;background:#ececec;color:#222;font:18px/1.7 -apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif}
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{margin:0}ul,ol{padding:0;list-style:none}
a{color:inherit;text-underline-offset:4px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #111;outline-offset:3px}
button{font:inherit;cursor:pointer}

/* ---- review header (above the wire frame, not part of the page) ---- */
.review{max-width:1280px;margin:auto;padding:28px 32px 20px}
.review-top{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.review h1{font-size:26px}
.review p{font-size:15px;color:#555;margin-top:8px;max-width:60em}
.review nav{display:flex;gap:10px;flex-wrap:wrap}
.review nav a,.review button{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid #777;background:#fff;font-size:14px;text-decoration:none}
.review nav a[aria-current="page"]{background:#444;border-color:#444;color:#fff}
.review .meta-row{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:12px;font-size:13px;color:#555}
.review .meta-row b{color:#222}
.legend{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;color:#555;margin-top:14px}
.legend span::before{content:"";display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-1px;border:1px solid #666}
.legend .l-data::before{background:#ddd}
.legend .l-embed::before{background:repeating-linear-gradient(45deg,#fff 0 3px,#ccc 3px 5px)}

/* ---- frame and zones ---- */
.wire{max-width:1216px;margin:0 auto 48px;background:#fff;border:1px solid #888}
.zone{position:relative;padding:30px 38px;border-bottom:1px solid #aaa}
.zone:last-child{border-bottom:0}
.zlabel{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;margin-bottom:20px;font-size:14px;color:#555}
.zlabel strong{border:1px solid #666;padding:0 7px;color:#222;font-size:13px;background:#fff}
.zlabel .own{color:#777}
.note{margin-top:22px;padding:9px 13px;font-size:14px;color:#555;background:#f3f3f3;border-left:2px solid #999}
.note.open{border-left-style:dashed}
.note.open::before{content:"待確認｜";font-weight:600;color:#333}

/* global chrome stub: header/footer are drawn once in chrome/, pages show a stub */
.chrome-stub{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 38px;background:#f6f6f6;border-bottom:1px solid #aaa;font-size:14px;color:#666}
.chrome-stub.bottom{border-bottom:0;border-top:0}
.chrome-stub a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}

/* ---- primitives ---- */
.ph{position:relative;display:grid;place-content:center;text-align:center;min-height:180px;padding:20px;background:#e6e6e6;border:1px dashed #888;color:#555}
.ph::before{content:"";position:absolute;inset:0;background:linear-gradient(to top right,transparent calc(50% - .5px),#c8c8c8 50%,transparent calc(50% + .5px)),linear-gradient(to bottom right,transparent calc(50% - .5px),#c8c8c8 50%,transparent calc(50% + .5px))}
.ph>span{position:relative;z-index:1;display:flex;flex-direction:column;background:#e6e6e6;padding:6px 14px;font-size:15px}
.ph small{font-size:12px;color:#666}
.ph.sm{min-height:120px}.ph.xs{min-height:80px}.ph.wide{min-height:300px}
.line{height:9px;background:#ddd;margin:10px 0;max-width:380px}.line.s{width:60%}.line.full{max-width:none}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:1px solid #555;background:#fff;font-size:16px;text-decoration:none;border-radius:999px}
.btn.pri{background:#444;border-color:#444;color:#fff}
.btn.sm{min-height:44px;padding:0 14px;font-size:14px}
.btn.dis{border-style:dashed;color:#777}
.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}
.to{display:block;font-size:12px;color:#666;margin-top:4px}
.tag{display:inline-block;border:1px solid #888;border-radius:999px;padding:0 8px;font-size:13px;color:#444;background:#fff}
.tag.solid{background:#444;border-color:#444;color:#fff}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}
.sec-head h2{font-size:25px}
.sec-head p{font-size:15px;color:#666}
.box{border:1px solid #999;background:#fff;padding:16px}
.muted{color:#666;font-size:15px}
.datebox{flex:none;display:grid;place-content:center;text-align:center;width:66px;height:70px;border:1px solid #888;background:#eee;line-height:1.15;font-size:13px}
.datebox b{font-size:24px}

/* system / plugin embed placeholder (FluentBooking, Fluent Forms, Tutor, Woo) */
.embed{position:relative;padding:22px;border:1px dashed #666;background:repeating-linear-gradient(45deg,#fff 0 6px,#f1f1f1 6px 10px)}
.embed>.embed-label{display:inline-block;margin-bottom:12px;padding:2px 10px;background:#fff;border:1px solid #666;font-size:13px;color:#333}
.embed .inner{background:#fff;border:1px solid #aaa;padding:16px}

/* ---- page / archive header (F2–F5 page hero) ---- */
.crumbs{font-size:13px;color:#666;margin-bottom:14px}
.crumbs span+span::before{content:"›";margin:0 8px;color:#999}
.page-head{display:grid;grid-template-columns:1.3fr 1fr;gap:32px;align-items:center}
.page-head.solo{grid-template-columns:1fr}
.page-head h1{font-size:34px;line-height:1.35}
.page-head .lead{font-size:17px;color:#555;margin-top:10px;max-width:36em}
.page-head .ph{min-height:220px}

/* ---- F2 filters, results, card grid, pager, empty ---- */
.filterbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px;border:1px solid #999;background:#fafafa}
.seg{display:flex;border:1px solid #888;border-radius:999px;overflow:hidden;background:#fff}
.seg span{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;font-size:14px}
.seg span.on{background:#444;color:#fff}
.sel{display:inline-flex;align-items:center;min-height:44px;border:1px solid #888;border-radius:999px;padding:0 30px 0 14px;font-size:14px;position:relative;background:#fff}
.sel::after{content:"▾";position:absolute;right:12px}
.chip{display:inline-flex;align-items:center;min-height:44px;border:1px solid #888;border-radius:999px;padding:0 14px;font-size:14px;background:#fff}
.chip.on{background:#444;color:#fff;border-color:#444}
.filterbar .clear{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;font-size:14px;text-decoration:underline}
.results{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;font-size:14px;color:#555}
.grid{display:grid;gap:18px}
.grid.c2{grid-template-columns:repeat(2,1fr)}
.grid.c3{grid-template-columns:repeat(3,1fr)}
.grid.c4{grid-template-columns:repeat(4,1fr)}
.card{display:flex;flex-direction:column;border:1px solid #999;background:#fff}
.card .ph{min-height:150px;border-width:0 0 1px}
.card .body{display:flex;flex-direction:column;gap:6px;padding:14px;flex:1}
.card h3{font-size:18px;line-height:1.45}
.card .meta{font-size:14px;color:#666}
.card .foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid #ddd;font-size:14px}
.card .price{display:flex;flex-direction:column;line-height:1.35}
.card .price b{font-size:17px}
.person{align-items:center;text-align:center}
.person .avatar{width:112px;height:112px;margin:18px auto 0;border-radius:50%;border:1px dashed #888;background:#e6e6e6;display:grid;place-content:center;font-size:12px;color:#666}
.person .body{align-items:center}
.pager{display:flex;justify-content:center;gap:8px;margin-top:24px;font-size:14px}
.pager span{display:grid;place-content:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid #888;background:#fff}
.pager span.on{background:#444;color:#fff;border-color:#444}
.empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:28px;border:1px dashed #888;background:#fafafa}

/* ---- F3 detail: two columns + sticky aside ---- */
.detail{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}
.aside{border:1px solid #555;background:#fff;padding:18px;border-radius:12px}
.aside.sticky{position:sticky;top:16px}
.aside .price-big{font-size:28px;font-weight:700}
.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:15px}
.facts dt{color:#666}
.facts dd{color:#222}
.prose{max-width:42em}
.prose h2{font-size:22px;margin:24px 0 8px}
.prose h2:first-child{margin-top:0}
.toc{border:1px solid #999;padding:14px 16px;font-size:15px;background:#fafafa}
.toc li{padding:3px 0}
.curriculum li{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #bbb;border-top-width:0;font-size:15px}
.curriculum li:first-child{border-top-width:1px}
.quote{border-left:4px solid #888;padding:6px 0 6px 18px;font-size:20px;line-height:1.6}

/* ---- F4 narrative ---- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.split .ph{min-height:300px}
.split h2{font-size:26px;line-height:1.4}
.values{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.values li,.fields li{border:1px solid #999;padding:14px;font-size:14px;background:#fff}
.values li b,.fields li b{display:block;font-size:16px;margin-bottom:4px}
.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.compare{width:100%;border-collapse:collapse;font-size:15px}
.compare th,.compare td{border:1px solid #999;padding:10px 12px;text-align:left;vertical-align:top}
.compare thead th{background:#f0f0f0}
.benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.benefits li{border:1px solid #999;padding:10px;font-size:14px}
.benefits li b{display:block;font-size:15px}
.nums{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #999}
.nums div{padding:18px 8px;text-align:center;font-size:14px;color:#555}
.nums div+div{border-left:1px solid #ccc}
.nums b{display:block;font-size:26px;color:#222}

/* ---- F5 service, steps, accordion, forms ---- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;counter-reset:step}
.steps.c4{grid-template-columns:repeat(4,1fr)}
.steps li{border:1px solid #999;padding:10px;font-size:14px}
.steps li b{display:block;font-size:15px}
.rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.rules li{border:1px solid #999;padding:12px;font-size:14px;background:#fafafa}
.rules li b{display:block;font-size:16px}
.acc details{border:1px solid #999;border-top-width:0;background:#fff}
.acc details:first-child{border-top-width:1px}
.acc summary{display:flex;justify-content:space-between;gap:12px;min-height:52px;align-items:center;padding:8px 16px;font-size:17px;cursor:pointer;list-style:none}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{content:"＋";font-size:18px}
.acc details[open] summary::after{content:"－"}
.acc .ans{padding:0 16px 14px;font-size:15px;color:#555}
.form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:4px;font-size:14px}
.field.full{grid-column:1/-1}
.field .input{min-height:46px;border:1px solid #888;background:#fff;padding:10px 12px;color:#999;font-size:15px}
.field .input.area{min-height:120px}
.field small{color:#666;font-size:12px}
.check{display:flex;gap:8px;align-items:flex-start;font-size:14px}
.check::before{content:"";flex:none;width:18px;height:18px;margin-top:3px;border:1px solid #666;background:#fff}
.cta-band{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #999;padding:22px;background:#fafafa}
.cta-band h2{font-size:22px}

.mobile-note{display:none}

@media (max-width:900px){
  .review{padding:20px 16px}
  .zone{padding:22px 16px}
  .chrome-stub{padding:10px 16px}
  .mobile-note{display:block}
  .page-head,.split,.detail{grid-template-columns:1fr}
  .page-head h1{font-size:28px}
  .aside.sticky{position:static}
  .grid.c3,.grid.c4{grid-template-columns:1fr 1fr}
  .grid.c2{grid-template-columns:1fr}
  .values{grid-template-columns:1fr 1fr}
  .fields{grid-template-columns:1fr}
  .steps,.steps.c4{grid-template-columns:1fr}
  .benefits{grid-template-columns:1fr}
  .nums{grid-template-columns:1fr 1fr}
  .form{grid-template-columns:1fr}
  .cta-band,.sec-head{flex-direction:column;align-items:flex-start}
  .filterbar .clear{margin-left:0}
  .compare{font-size:14px}
}
@media (max-width:560px){
  .grid.c3,.grid.c4{grid-template-columns:1fr}
  .values{grid-template-columns:1fr}
}

/* ==== Templates F2–F5 (generated by build-pages.py) — shared slots/components ==== */
.slot-name{color:#777}
.slot-off{padding:12px 16px;border:1px dashed #aaa;background:#fafafa;font-size:14px;color:#777}
.k1-meta{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px;font-size:15px;color:#333}
.k1-meta span::before{content:"▸ ";color:#777}
.page-head .tags{margin-bottom:8px}
.k2-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.k2-chips>b{font-size:14px;font-weight:600;margin-right:4px}
.card .k3-btn{margin-left:auto}
.k5{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.k5 li{border:1px solid #999;padding:12px 14px;font-size:14px;background:#fff}
.k5 li b{display:block;font-size:16px;margin-bottom:2px}
.k5-link{margin-top:12px;font-size:15px;text-decoration:underline}
.k6-arrows{display:flex;gap:8px}
.k6-arrows span{display:grid;place-content:center;width:44px;height:44px;border:1px solid #888;border-radius:50%;background:#fff}
.k7-chips,.k7-steps{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.k7-intro{margin-bottom:16px}
.k7-intro li{background:#fafafa}
.k7-state{margin-top:10px;font-size:14px;color:#555}
.k7-state b{color:#222;margin-right:4px}
.k7-group{font-size:17px;margin:14px 0 8px}
.k7-group:first-child{margin-top:0}
.k8-list li::before{content:"• "}
.k8-list{font-size:15px;color:#555}
.k9-title{font-size:18px;margin-bottom:8px}
.k9-links li{padding:6px 0;border-bottom:1px solid #ddd;font-size:15px}
.k9-btn{display:flex;width:100%;margin-top:14px}
.k9-link{margin-top:10px;font-size:14px;text-decoration:underline}
.t3-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}
.t3-side{grid-column:2;grid-row:1}
.t3-main{grid-column:1;grid-row:1}
.t3-side .zlabel{margin-bottom:10px}
@media (max-width:900px){
  .t3-body{grid-template-columns:1fr}
  .t3-side,.t3-main{grid-column:1;grid-row:auto}
  .t3-side{position:static}
}
