/* Bumplington — bumplington.com 第二版（tools/site/build.py 複製到 dist/assets/site.css）
   規則：所有 animation 都寫在 @media (prefers-reduced-motion:no-preference) 裡（tools/test_site.py 會查）；
   transition 由檔尾的 reduce 區塊統一關掉。 */
@font-face{font-family:"Fredoka";font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/fredoka-latin.woff2) format("woff2")}
@font-face{font-family:"Nunito";font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/nunito-latin.woff2) format("woff2")}

:root{
  /* 品牌色 */
  --yellow:#ffc93c;--navy:#1f2a44;--sky:#8fd0ff;--green:#5bc66b;--red:#e5484d;--cream:#fffbf2;
  /* 文字用（對比 ≥ 4.5） */
  --ink:#1f2a44;--ink-soft:#4a5470;--amber:#a34a06;--link:#1b62bb;--red-btn:#d1373c;--red-edge:#9f2327;--green-ink:#1a7f37;
  /* 底色與粉彩 */
  --sand:#fff1cf;--sky-soft:#e4f3ff;--line:#efe4cc;
  --t-sky:#d9eeff;--t-butter:#ffefc2;--t-mint:#dcf3de;--t-peach:#ffe2d4;--t-lilac:#eae3fb;
  --road:#59627a;--grass:#5bc66b;
  /* 圓角：小 14／中 22／大 30／特大 40／膠囊 */
  --r-sm:14px;--r-md:22px;--r-lg:30px;--r-xl:40px;--pill:999px;
  /* 陰影：貼紙（硬邊＋柔影）兩級 */
  --sh-1:0 3px 0 rgba(31,42,68,.07),0 14px 26px -16px rgba(31,42,68,.30);
  --sh-2:0 5px 0 rgba(31,42,68,.08),0 26px 38px -20px rgba(31,42,68,.38);
  --spring:cubic-bezier(.34,1.56,.64,1);
  --display:"Fredoka","Nunito",ui-rounded,system-ui,sans-serif;
  --body:"Nunito",ui-rounded,system-ui,-apple-system,"Segoe UI",sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.55;overflow-x:hidden}
img,svg{max-width:100%}
img{height:auto}
a{color:var(--link);text-underline-offset:.18em}
a:hover{color:#124a92}
:focus-visible{outline:3px solid var(--link);outline-offset:3px;border-radius:8px}
.wrap{max-width:1248px;margin:0 auto;padding-left:32px;padding-right:32px}
.skip{position:absolute;left:-9999px;top:0}
.skip:focus{left:12px;top:12px;z-index:50;background:#fff;padding:12px 16px;border-radius:var(--r-sm)}
h1,h2,h3,h4{font-family:var(--display);font-weight:700;margin:0;letter-spacing:.005em}
p{margin:0}
ul{margin:0;padding:0}
.sprite{position:absolute}
.ico{width:1.1em;height:1.1em;fill:currentColor;flex:none}

/* ---------- 按鈕 ---------- */
.btn{--edge:#c5d3e2;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 24px;border-radius:var(--pill);
  font-weight:800;font-size:16px;line-height:1;text-decoration:none;white-space:nowrap;box-shadow:0 4px 0 var(--edge);
  transition:transform .18s var(--spring),box-shadow .18s ease,background-color .18s ease}
.btn:hover{transform:translateY(-2px);box-shadow:0 6px 0 var(--edge)}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 var(--edge)}
.btn:focus-visible{border-radius:var(--pill)}
.btn-red{--edge:var(--red-edge);background:var(--red-btn);color:#fff}.btn-red:hover{color:#fff;background:#c22f34}
.btn-white{background:#fff;color:var(--ink)}.btn-white:hover{color:var(--ink)}
.btn-navy{--edge:#0f172b;background:var(--navy);color:#fff}.btn-navy:hover{color:#fff;background:#2a3859}
.btn-lg{min-height:56px;padding:0 30px;font-size:18px}
.btn .ico{width:18px;height:18px}

/* ---------- 導覽 ---------- */
.site-header{background:rgba(255,251,242,.95);border-bottom:1px solid var(--line);z-index:30}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 28px;padding-top:10px;padding-bottom:10px}
.brand{display:flex;align-items:center;text-decoration:none;min-height:48px;order:1;border-radius:var(--r-sm)}
.brand img{display:block;width:auto;height:54px;transition:transform .3s var(--spring)}
.brand:hover img{transform:rotate(-2deg) scale(1.03)}
.nav{order:2;margin-left:auto;display:flex;flex-wrap:wrap;gap:0 6px;font-weight:800;font-size:16px}
.nav a{color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:var(--pill);transition:background-color .18s ease}
.nav a:hover{background:var(--sand);color:var(--ink)}
.site-header .btn{order:3}
@media (min-width:861px){
  .site-header{position:sticky;top:0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
  [id]{scroll-margin-top:92px}
}
@media (max-width:860px){
  .site-header .wrap{gap:2px 12px;padding-top:8px;padding-bottom:6px}
  .brand img{height:46px}
  .site-header .btn{order:2;margin-left:auto;min-height:44px;padding:0 16px;font-size:15px}
  .nav{order:3;margin-left:0;width:100%;gap:0;font-size:15px;justify-content:space-between}
  .nav a{padding:0 8px}
}
@media (max-width:480px){.site-header .btn .long{display:none}}
@media (max-width:400px){.nav{font-size:14px}.nav a{padding:0 2px}}

/* ---------- 主視覺 ---------- */
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#86cbff 0%,#b9e1ff 62%,#d6eeff 100%);padding:34px 0 150px}
.sky{position:absolute;inset:0;pointer-events:none}
.sun{position:absolute;right:max(2.5%,calc(50% - 690px));top:30px;width:92px;height:92px;border-radius:50%;background:#ffd95a;box-shadow:0 0 0 14px rgba(255,217,90,.32),0 0 0 32px rgba(255,217,90,.16)}
.cloud{position:absolute;fill:#fff;width:150px;height:75px;opacity:.95}
.cloud.c1{left:max(3%,calc(50% - 640px));top:64px}
.cloud.c2{left:max(16%,calc(50% - 470px));top:196px;width:96px;height:48px;opacity:.8}
.cloud.c3{right:max(14%,calc(50% - 500px));top:176px;width:120px;height:60px;opacity:.85}
.cloud.c4{right:-30px;top:300px;width:170px;height:85px;opacity:.9}
.cloud.c5{left:-40px;top:330px;width:130px;height:65px;opacity:.8}
.hero-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;text-align:center}
.hero h1{font-size:clamp(40px,5.4vw,76px);line-height:1.04}
.hero h1 .y{color:var(--yellow);-webkit-text-stroke:.11em var(--navy);paint-order:stroke fill;text-shadow:0 .075em 0 var(--navy);padding:0 .06em}
.hero .tag{margin-top:10px;font-family:var(--display);font-weight:600;font-size:clamp(20px,2.1vw,28px);line-height:1.2}
.hero .intro{margin-top:14px;max-width:660px;font-size:18px;line-height:1.55;color:#26334f}
.actions{margin-top:24px;display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.hero-stage{position:relative;z-index:2;margin-top:34px}
.frame{border:8px solid #fff;border-radius:var(--r-xl);background:#fff;box-shadow:0 6px 0 rgba(31,42,68,.10),0 34px 54px -26px rgba(31,42,68,.50);overflow:hidden}
.frame img{display:block;width:100%;height:auto;border-radius:calc(var(--r-xl) - 8px)}
.wave{display:block;position:absolute;left:0;width:100%;pointer-events:none;fill:currentColor}
.hero .wave-hill{bottom:60px;height:170px;color:var(--grass);z-index:1}
.hero::after{content:"";position:absolute;left:-10%;right:40%;bottom:60px;height:120px;border-radius:50% 50% 0 0/100% 100% 0 0;background:#7ad487;z-index:0}

/* 道路與車隊 */
.road{position:relative;height:64px;background:
  linear-gradient(90deg,#ffd75e 0 44px,transparent 44px 88px) 0 calc(50% + 3px)/88px 5px repeat-x,
  linear-gradient(180deg,#eef1f6 0 6px,var(--road) 6px)}
.hero>.road{position:absolute;left:0;right:0;bottom:0;z-index:3}
.convoy{position:absolute;left:0;right:0;bottom:0;height:200px;overflow:hidden;pointer-events:none}
.convoy{--dur:64s;--gap:7s;--extra:700px}
.car{position:absolute;bottom:20px;left:calc(9% + var(--i)*27%);width:128px}
.car img{display:block;width:100%;height:auto}
@media (max-width:767px){
  .hero{padding:28px 0 118px}
  .hero h1{font-size:clamp(40px,12.4vw,60px)}
  .hero h1 .y{display:block;margin-top:.04em}
  .hero .tag{font-size:21px}
  .hero .intro{font-size:17px}
  .hero-stage{margin-top:30px;padding-left:16px;padding-right:16px}
  .frame{border-width:6px;border-radius:var(--r-lg)}
  .frame img{border-radius:calc(var(--r-lg) - 6px)}
  .sun{width:54px;height:54px;top:-8px;right:-14px;box-shadow:0 0 0 9px rgba(255,217,90,.32),0 0 0 20px rgba(255,217,90,.16)}
  .cloud.c1{left:-34px;top:10px;width:104px;height:52px}
  .cloud.c2,.cloud.c3{display:none}
  .cloud.c4{top:390px;width:120px;height:60px}
  .cloud.c5{top:330px;width:100px;height:50px}
  .hero .wave-hill{bottom:52px;height:110px}
  .hero::after{height:80px;bottom:52px}
  .road{height:56px}
  .convoy{--dur:34s;--gap:5.5s;--extra:420px}
  .car{width:92px;bottom:18px;left:calc(4% + var(--i)*33%)}
  .actions{gap:10px;flex-wrap:nowrap;width:100%}
  .actions .btn{flex:1 1 auto;min-height:52px;padding:0 14px;font-size:16px}
}

@media (max-width:400px){.actions{gap:8px}.actions .btn{padding:0 10px;font-size:15px;gap:6px}.sun{top:-16px;right:-22px}}

/* ---------- 數字 ---------- */
.stats{padding-top:44px}
.stats ul{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.stats li{background:#fff;border-radius:var(--r-md);box-shadow:var(--sh-1);padding:16px 22px;display:flex;align-items:center;gap:14px;font-weight:700;line-height:1.3;color:var(--ink-soft)}
.stats b{font-family:var(--display);font-weight:700;font-size:44px;line-height:1;min-width:1.15em;text-align:center}
.s-red b{color:var(--red-btn)}.s-green b{color:var(--green-ink)}.s-blue b{color:var(--link)}.s-amber b{color:var(--amber)}
@media (max-width:900px){.stats ul{grid-template-columns:repeat(2,1fr);gap:12px}}
@media (max-width:600px){.stats{padding-top:28px}.stats li{padding:12px 14px;gap:10px;font-size:14.5px}.stats b{font-size:34px}}

/* ---------- 區塊共用 ---------- */
.section{position:relative;padding:80px 0 128px}
.section-head{display:flex;flex-wrap:wrap;gap:14px 40px;align-items:flex-end;justify-content:space-between;margin-bottom:40px}
.eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-weight:800;font-size:14px;letter-spacing:.14em;color:var(--amber);text-transform:uppercase}
.eyebrow::before{content:"";width:26px;height:4px;border-radius:2px;background:var(--yellow);flex:none}
.section h2{font-size:clamp(34px,4.2vw,50px);line-height:1.1}
.lede{max-width:430px;color:var(--ink-soft);font-size:18px;font-weight:600}
.section .wave{top:-63px;height:64px}
.trucks{padding-top:72px}
@media (max-width:600px){
  .wrap{padding-left:16px;padding-right:16px}
  .section{padding:56px 0 92px}
  .section-head{margin-bottom:28px}
  .section .wave{top:-39px;height:40px}
  .trucks{padding-top:52px}
  .lede{font-size:17px}
}

/* ---------- 角色 ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:var(--pill);background:#fff;box-shadow:inset 0 0 0 2px var(--line);color:var(--ink);font-weight:800;text-decoration:none;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
.chips a:hover{background:var(--navy);color:#fff;box-shadow:inset 0 0 0 2px var(--navy)}
.group+.group{margin-top:64px}
.group-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:40px}
.group-head h3{font-size:30px;line-height:1.15}
.group-head .count{font-weight:800;font-size:14px;color:var(--amber);background:var(--sand);border-radius:var(--pill);padding:5px 12px}
.group-head p{color:var(--ink-soft);font-weight:600;flex-basis:100%}
.cards{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:44px 24px}
.card{flex:0 0 calc((100% - 72px)/4);min-width:0;background:#fff;border-radius:var(--r-lg);padding:8px;box-shadow:var(--sh-1);display:flex;flex-direction:column;transition:box-shadow .25s ease}
.stage{position:relative;border-radius:var(--r-md);aspect-ratio:620/465;background:var(--t-sky)}
.t-butter .stage{background:var(--t-butter)}.t-mint .stage{background:var(--t-mint)}.t-peach .stage{background:var(--t-peach)}.t-lilac .stage{background:var(--t-lilac)}
.stage::before{content:"";position:absolute;left:16%;right:16%;bottom:5%;height:11%;border-radius:50%;background:rgba(31,42,68,.20);filter:blur(7px)}
.stage img{position:absolute;left:3%;bottom:2%;display:block;width:94%;height:auto;transform-origin:50% 90%;transition:transform .45s var(--spring)}
.card:hover{box-shadow:var(--sh-2)}
.card:hover .stage img{transform:translateY(-7px) rotate(-2.5deg)}
.card .body{padding:14px 14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.card h4{font-size:25px;line-height:1.15}
.card .kind{font-weight:800;font-size:13.5px;line-height:1.2;color:var(--amber);background:var(--sand);border-radius:var(--pill);padding:5px 11px}
.card p{margin-top:2px;color:var(--ink-soft);line-height:1.5;font-size:15.5px}
@media (max-width:1000px){.card{flex-basis:calc((100% - 48px)/3)}}
@media (max-width:600px){
  .group+.group{margin-top:48px}
  .group-head{margin-bottom:30px}
  .group-head h3{font-size:26px}
  .cards{gap:30px 12px}
  .card{flex-basis:calc((100% - 12px)/2);border-radius:var(--r-md);padding:6px}
  .stage{border-radius:17px}
  .card .body{padding:10px 8px 12px;gap:5px}
  .card h4{font-size:21px}
  .card .kind{font-size:12.5px;padding:4px 9px}
  .card p{font-size:14px;line-height:1.45}
}

/* 探頭的角色（裝飾） */
.peek{display:block;position:absolute;pointer-events:none;height:auto}
.peek-divider{right:max(40px,calc(50% - 560px));top:-166px;width:170px;z-index:0}
.section .wave{z-index:1}
.section>.wrap{position:relative;z-index:2}
@media (max-width:600px){.peek-divider{width:112px;top:-102px;right:18px}}

/* ---------- 集數 ---------- */
.episodes{background:var(--sand)}.episodes>.wave{color:var(--sand)}
.eps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 30px}
.eps a{display:flex;flex-direction:column;text-decoration:none;color:var(--ink);border-radius:var(--r-md)}
.thumb{position:relative;display:block;border:6px solid #fff;border-radius:var(--r-lg);overflow:hidden;background:#fff;box-shadow:var(--sh-1);transition:transform .4s var(--spring),box-shadow .25s ease}
.thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:calc(var(--r-lg) - 6px)}
.eps li:nth-child(3n+1) .thumb{transform:rotate(-.9deg)}
.eps li:nth-child(3n+2) .thumb{transform:rotate(.6deg)}
.eps li:nth-child(3n) .thumb{transform:rotate(-.4deg)}
.eps a:hover .thumb,.eps a:focus-visible .thumb{transform:rotate(0) translateY(-4px) scale(1.015);box-shadow:var(--sh-2)}
.play{position:absolute;left:12px;bottom:12px;width:46px;height:46px;border-radius:50%;background:var(--red-btn);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 var(--red-edge);transition:transform .35s var(--spring)}
.play .ico{width:22px;height:22px;margin-left:2px}
.eps a:hover .play{transform:scale(1.14)}
.dur{position:absolute;right:12px;bottom:12px;background:rgba(31,42,68,.92);color:#fff;font-weight:800;font-size:13.5px;line-height:1;padding:7px 10px;border-radius:var(--pill)}
.eps .meta{margin-top:16px;font-weight:800;color:var(--amber);font-size:13.5px;letter-spacing:.12em;text-transform:uppercase}
.eps .t{margin-top:2px;font-family:var(--display);font-weight:600;font-size:23px;line-height:1.25}
.eps a:hover .t{color:var(--link)}
.more{margin-top:52px;text-align:center}
@media (max-width:900px){.eps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.eps{grid-template-columns:1fr;gap:30px}.thumb{border-width:5px;border-radius:var(--r-md)}.thumb img{border-radius:17px}.more{margin-top:40px}}

/* ---------- 學習 ---------- */
.learn{background:var(--cream)}.learn>.wave{color:var(--cream)}
.series{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:104px 30px;padding-top:78px}
.series>li{position:relative;display:flex}
.peek-card{right:34px;top:-92px;width:140px;z-index:0}
.series-card{position:relative;z-index:1;flex:1;background:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-1);padding:8px;display:flex;flex-direction:column}
.series-card h3{font-size:28px;line-height:1.15;background:var(--t-butter);border-radius:var(--r-md) var(--r-md) 0 0;padding:14px 20px 0}
.series-card h3 a{color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;min-height:46px}
.series-card h3 a:hover{color:var(--link)}
.series-card>p{background:var(--t-butter);border-radius:0 0 var(--r-md) var(--r-md);padding:0 20px 18px;color:#3d4763;font-weight:600}
.k1 .series-card h3,.k1 .series-card>p{background:var(--t-sky)}
.k2 .series-card h3,.k2 .series-card>p{background:var(--t-mint)}
.k3 .series-card h3,.k3 .series-card>p{background:var(--t-peach)}
.series-card ul{list-style:none;display:flex;flex-direction:column;padding:8px 12px 0}
.series-card li+li{border-top:2px dashed #f0e8d6}
.series-card li a{display:flex;gap:12px;align-items:center;padding:8px;min-height:52px;font-weight:700;font-size:16px;line-height:1.35;text-decoration:none;color:var(--ink);border-radius:var(--r-sm);transition:background-color .18s ease}
.series-card li a .ico{width:28px;height:28px;padding:7px;border-radius:50%;background:var(--red-btn);color:#fff;transition:transform .3s var(--spring)}
.series-card li a:hover{background:var(--cream);color:var(--link)}
.series-card li a:hover .ico{transform:scale(1.15)}
.series-card .all{margin:auto 12px 6px;padding:0 8px;min-height:48px;display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-weight:800;text-decoration:none}
.series-card .all .ico{width:20px;height:20px;transition:transform .3s var(--spring)}
.series-card .all:hover .ico{transform:translateX(4px)}
.series>li:last-child:nth-child(odd){grid-column:1/-1}
.series>li:last-child:nth-child(odd) .series-card ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
.series>li:last-child:nth-child(odd) .series-card li:nth-child(2){border-top:0}
@media (max-width:860px){.series{grid-template-columns:1fr;gap:88px}.series>li:last-child:nth-child(odd) .series-card ul{display:flex}.series>li:last-child:nth-child(odd) .series-card li:nth-child(2){border-top:2px dashed #f0e8d6}}
@media (max-width:600px){.series{padding-top:70px;gap:92px}.peek-card{width:124px;top:-82px;right:22px}.series-card h3{font-size:25px;padding:10px 14px 0}.series-card>p{padding:0 14px 14px}.series-card ul{padding:6px 4px 0}.series-card .all{margin-left:4px}}

/* ---------- 家長 ---------- */
.parents{background:var(--sky-soft);padding-bottom:0}.parents>.wave{color:var(--sky-soft)}
.points{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.points li{background:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-1);padding:26px 24px 28px}
.badge{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--yellow);color:var(--navy);margin-bottom:16px;box-shadow:0 3px 0 #e0a81a}
.badge .ico{width:30px;height:30px;fill:none}
.badge-abc{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:.02em}
.points h3{font-size:23px;line-height:1.2;margin-bottom:8px}
.points p{color:var(--ink-soft);line-height:1.6}
.promise{margin-top:28px;display:flex;gap:16px;align-items:center;background:var(--navy);color:#eef2fa;border-radius:var(--r-lg);padding:20px 26px;line-height:1.55}
.promise .ico{width:40px;height:40px;fill:none;color:var(--yellow)}
.promise strong{color:#fff}
.promise a{color:var(--yellow);font-weight:800;display:inline-block;padding:10px 0;margin:-10px 0}
.promise a:hover{color:#fff}
.promise a:focus-visible{outline-color:var(--yellow)}
@media (max-width:1000px){.points{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.points{grid-template-columns:1fr;gap:14px}.points li{display:grid;grid-template-columns:56px 1fr;column-gap:16px;padding:18px 18px 20px;border-radius:var(--r-md)}.badge{grid-row:1/3;margin:0}.points h3{font-size:21px;margin-bottom:4px}.promise{flex-direction:column;align-items:flex-start;gap:10px;padding:20px;border-radius:var(--r-md)}}

/* 結尾：Beepy 在小山丘上 */
.outro{position:relative;margin-top:72px;padding-bottom:26px;overflow:hidden}
.outro .wave-hill{bottom:0;top:auto;height:190px;color:var(--grass);z-index:0}
.outro-in{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:center;gap:44px}
.beepy{position:relative;display:block;flex:none;width:300px}
.beepy img{display:block;width:100%;height:auto}
.lid{position:absolute;background:#547399;border-radius:50%;transform:scaleY(0);transform-origin:50% 0;display:none}
.lid-l{left:33.1%;top:5.2%;width:18.9%;height:29%}
.lid-r{left:55.7%;top:4.1%;width:20.9%;height:30.2%}
.outro-copy{position:relative;background:#fff;border-radius:var(--r-lg);box-shadow:var(--sh-1);padding:28px 34px 32px;margin-bottom:96px;max-width:460px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.outro-copy::before{content:"";position:absolute;left:-13px;bottom:46px;width:30px;height:30px;background:#fff;border-radius:6px;transform:rotate(45deg)}
.outro-copy h2{font-size:clamp(32px,4vw,44px);line-height:1.1;position:relative}
.outro-copy p{color:var(--ink-soft);font-weight:600;font-size:18px;position:relative}
.outro-copy .btn{margin-top:10px}
@media (max-width:760px){
  .outro{margin-top:56px;padding-bottom:16px}
  .outro-in{flex-direction:column-reverse;align-items:center;gap:26px}
  .outro-copy{margin-bottom:0;padding:22px 22px 26px;align-items:center;text-align:center;border-radius:var(--r-md)}
  .outro-copy::before{left:calc(50% - 15px);bottom:-13px}
  .beepy{width:200px}
  .outro .wave-hill{height:130px}
}

/* ---------- 頁尾 ---------- */
.site-footer{background:var(--navy);color:#d7deee}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.1fr;gap:36px 40px;padding-top:56px;padding-bottom:40px}
.foot-brand .brand img{height:76px}
.foot-brand p{margin-top:14px;max-width:320px;line-height:1.6}
.foot-col h2{font-size:18px;font-weight:600;color:var(--yellow);margin-bottom:6px;letter-spacing:.02em}
.foot-col ul{list-style:none}
.foot-col a{display:inline-flex;align-items:center;min-height:44px;color:#eef2fa;font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.foot-col a:hover{color:var(--yellow);text-decoration:underline}
.site-footer :focus-visible{outline-color:var(--yellow)}
.foot-base{border-top:1px solid rgba(255,255,255,.14);padding-top:20px;padding-bottom:32px}
.foot-base small{font-size:14.5px;color:#c3cce0}
@media (max-width:860px){.foot-grid{grid-template-columns:1fr 1fr;padding-top:44px}.foot-brand,.foot-col:last-child{grid-column:1/-1}}
@media (max-width:420px){.foot-brand .brand img{height:64px}.foot-grid{gap:28px 20px}}

/* ---------- 政策頁與 404 ---------- */
.page{position:relative;isolation:isolate;padding:104px 16px 96px;background:linear-gradient(180deg,var(--sky-soft) 0,var(--cream) 420px)}
.paper{position:relative;max-width:840px;margin:0 auto}
.paper .prose{position:relative;z-index:1;background:#fff;border-radius:var(--r-xl);box-shadow:var(--sh-1);padding:52px 60px 60px}
.peek-paper{right:48px;top:-72px;width:124px;z-index:0}
.prose h1{font-size:clamp(32px,5vw,46px);line-height:1.12;margin-bottom:14px}
.prose h2{font-size:25px;line-height:1.25;margin:36px 0 10px}
.prose p{margin:0 0 14px}
.prose p,.prose li{line-height:1.7}
.prose ul,.prose ol{margin:0 0 14px;padding-left:1.3em}
.prose li{margin-bottom:6px}
.prose a{overflow-wrap:anywhere;font-weight:700}
.prose p a,.prose li a{display:inline-block;padding:11px 0;margin:-11px 0}
.prose p a.btn{display:inline-flex;padding:0 24px;margin:10px 0 0;font-weight:800}
.prose pre{white-space:pre-wrap;background:var(--cream);border-radius:var(--r-sm);padding:18px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.notfound{text-align:center;display:flex;flex-direction:column;align-items:center}
.notfound .beepy{width:220px;margin-bottom:18px}
.notfound p{max-width:440px}
@media (max-width:600px){.page{padding:88px 12px 72px}.paper .prose{padding:32px 22px 36px;border-radius:var(--r-lg)}.peek-paper{right:24px;width:108px;top:-63px}}

/* ---------- 動畫（只在使用者沒有要求減少動態效果時） ---------- */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  /* 進場（site.js 幫還沒捲到的 .reveal 加 .pre，捲到時加 .in） */
  .reveal.pre{opacity:0;transform:translateY(22px)}
  .reveal.pre.in{opacity:1;transform:none;transition:opacity .7s ease,transform .8s cubic-bezier(.22,1,.36,1)}
  .cards .reveal.pre.in:nth-child(4n+2),.eps .reveal.pre.in:nth-child(3n+2),.points .reveal.pre.in:nth-child(2),.stats .reveal.pre.in:nth-child(2){transition-delay:.08s}
  .cards .reveal.pre.in:nth-child(4n+3),.eps .reveal.pre.in:nth-child(3n),.points .reveal.pre.in:nth-child(3),.stats .reveal.pre.in:nth-child(3){transition-delay:.16s}
  .cards .reveal.pre.in:nth-child(4n),.points .reveal.pre.in:nth-child(4),.stats .reveal.pre.in:nth-child(4){transition-delay:.24s}
  /* 主視覺載入 */
  .hero-copy>*{animation:rise .8s cubic-bezier(.22,1,.36,1) both}
  .hero-copy>:nth-child(2){animation-delay:.08s}.hero-copy>:nth-child(3){animation-delay:.16s}.hero-copy>:nth-child(4){animation-delay:.24s}
  .frame{animation:settle 1s cubic-bezier(.22,1,.36,1) both}
  /* 天空 */
  .cloud{animation:drift 26s ease-in-out infinite alternate}
  .cloud.c2{animation-duration:34s;animation-delay:-8s}.cloud.c3{animation-duration:30s;animation-delay:-15s}
  .cloud.c4{animation-duration:38s;animation-delay:-4s}.cloud.c5{animation-duration:32s;animation-delay:-20s}
  .sun{animation:glow 7s ease-in-out infinite alternate}
  /* 車隊：從右往左慢慢開過（車頭朝左），每台差 7 秒；車身輕輕顛一下 */
  .car{left:100%;animation:drive var(--dur) linear infinite;animation-delay:calc(var(--dur)*-.42 + var(--i)*var(--gap))}
  .car img{animation:bump 1.6s ease-in-out infinite;animation-delay:calc(var(--i)*-.5s)}
  /* 探頭的角色：輕輕上下 */
  .peek-divider{animation:bob 5s ease-in-out infinite alternate}
  .peek-card,.peek-paper{animation:bob 6s ease-in-out infinite alternate}
  .series>li:nth-child(2n) .peek-card{animation-delay:-3s}
  /* Beepy 眨眼＋輕彈 */
  .lid{display:block;animation:blink 5.5s ease-in-out infinite}
  .beepy{animation:idle 4.5s ease-in-out infinite alternate;transform-origin:50% 100%}
  @keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
  @keyframes settle{from{transform:translateY(26px) scale(.985)}to{transform:none}}
  @keyframes drift{from{transform:translateX(-18px)}to{transform:translateX(46px)}}
  @keyframes glow{from{box-shadow:0 0 0 14px rgba(255,217,90,.32),0 0 0 32px rgba(255,217,90,.16)}to{box-shadow:0 0 0 20px rgba(255,217,90,.30),0 0 0 44px rgba(255,217,90,.13)}}
  @keyframes drive{from{transform:translateX(0)}to{transform:translateX(calc(-100vw - var(--extra)))}}
  @keyframes bump{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
  @keyframes bob{from{transform:translateY(0)}to{transform:translateY(-7px)}}
  @keyframes blink{0%,93%,100%{transform:scaleY(0)}96%,97.5%{transform:scaleY(1)}}
  @keyframes idle{from{transform:scaleY(1)}to{transform:scaleY(1.012)}}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
  .btn:hover,.btn:active,.card:hover .stage img,.brand:hover img,.eps a:hover .play,.series-card li a:hover .ico,.series-card .all:hover .ico{transform:none}
  .eps a:hover .thumb,.eps a:focus-visible .thumb{transform:rotate(0)}
}
@media print{.reveal.pre{opacity:1!important;transform:none!important}.convoy,.sky{display:none}}
