/* =========================================================================
   第三屆萊爾富盟友之星 · 報名頁（handoff 設計落地）
   命名空間 as-*，獨立於既有 style.css。對齊 AGENTS.md / spec SSOT。
   色票註記 CIS 落差（CiC）：CIS 正色 紅#e60000 綠#00868f 粉#eb87a0；
   本頁忠於 handoff 取色（紅#E1241B 綠#176a6e 粉#d8285f），待業主裁示是否校正。
   ========================================================================= */

:root {
  --as-red: #e60000;        /* 萊爾富 CIS 正紅 */
  --as-red-d: #a10000;      /* 深紅（按鈕陰影） */
  --as-red-ink: #c20a00;    /* 紅文字 */
  --as-teal: #176a6e;       /* 區段底 / band */
  --as-teal2: #126E6E;      /* 標題 / 邊框 / 時間軸 */
  --as-teal-d: #0E5A5A;
  --as-pink: #d8285f;       /* 區段底 */
  --as-pink2: #E23A6B;      /* tag / 重點 */
  --as-cream: #F2E8D4;
  --as-cream2: #F7EFDF;     /* 撕紙邊緣亮色 */
  --as-paper-field: #FCFAF4;
  --as-ink: #221F1B;
  --as-muted: #7A6E55;
  --as-muted2: #A99F88;
  --as-line: #D9CEB4;
  --as-gold: #E0A53A;
  --as-sand: #FFD9C2;
  --as-font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --as-display: "Anton", "Noto Sans TC", sans-serif;
  --as-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--as-cream);
  color: var(--as-ink);
  font-family: var(--as-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- 讀取進度條 ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  z-index: 1000; background: linear-gradient(90deg, var(--as-red), #d8285f, var(--as-teal));
  box-shadow: 0 0 8px rgba(225, 36, 27, .4);
}

/* ---- 回到頂部 ---- */
.as-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 950;
  width: 50px; height: 50px; border: none; border-radius: 50%;
  background: var(--as-teal); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
  display: flex; align-items: center; justify-content: center;
}
.as-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.as-top:hover { background: var(--as-teal-d); transform: translateY(-3px) scale(1.05); }
.as-top:active { transform: scale(.94); }

/* ---- Toast（site.js 用） ---- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 980; background: var(--as-ink); color: #fff;
  font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =======================  HEADER / NAV  ======================= */
.as-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242, 232, 212, .86); backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(18, 110, 110, .22);
}
.as-header-inner {
  max-width: var(--as-max); margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.as-brand { display: flex; align-items: center; text-decoration: none; }
.as-brand img { height: clamp(30px, 4vw, 40px); width: auto; }
.as-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 30px); }
.as-nav > a { font-weight: 700; font-size: 15px; color: var(--as-teal2); text-decoration: none; letter-spacing: .04em; position: relative; }
.as-nav > a:not(.as-nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 2.5px; border-radius: 2px; background: var(--as-red); transition: right .28s ease;
}
.as-nav > a:not(.as-nav-cta):hover::after { right: 0; }
.as-nav-cta {
  font-weight: 900; color: #fff !important; background: var(--as-red);
  padding: 9px 20px; border-radius: 999px; letter-spacing: .06em;
  box-shadow: 0 4px 0 var(--as-red-d); white-space: nowrap;
}
.as-nav-cta::after { display: none; }
.as-status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(225, 36, 27, .12); color: var(--as-red-ink);
  font-weight: 900; font-size: 13px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.as-status-chip-sm { font-size: 12px; padding: 6px 11px; gap: 6px; }
.as-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--as-red); animation: hlTwinkle 1.4s ease-in-out infinite; }
.as-status-chip[data-status-ended] { background: rgba(122, 110, 85, .16); color: var(--as-muted); }
.as-status-chip[data-status-ended] .as-status-dot { background: var(--as-muted2); animation: none; }

.as-burger-wrap { display: none; align-items: center; gap: 10px; }
.as-burger { cursor: pointer; border: none; background: transparent; width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.as-burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--as-teal2); transition: .25s; }
.as-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.as-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.as-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.as-mobile-nav { display: flex; flex-direction: column; padding: 6px 16px 16px; gap: 2px; border-top: 1.5px solid rgba(18, 110, 110, .16); }
.as-mobile-nav[hidden] { display: none; }
.as-mobile-nav a { font-weight: 700; font-size: 16px; color: var(--as-teal2); text-decoration: none; padding: 13px 8px; border-bottom: 1px solid rgba(18, 110, 110, .1); }
.as-mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 760px) {
  .as-nav { display: none; }
  .as-burger-wrap { display: flex; }
}

/* =======================  HERO  ======================= */
.as-hero { position: relative; background: var(--as-cream); overflow: hidden; }

/* === 完整 KV hero（原始定稿圖 + 輕量動態，取代分層 hero） === */
.as-herofull { display: block; position: relative; width: 100%; max-width: 1672px; margin: 0 auto; cursor: pointer; line-height: 0; overflow: hidden; }
.as-herofull-kv { width: 100%; height: auto; display: block; will-change: transform; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.as-herofull-spot { position: absolute; inset: 0; opacity: 0; mix-blend-mode: soft-light; transition: opacity .5s ease; pointer-events: none; }
.as-herofull-floats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.as-herofull-float { position: absolute; width: clamp(24px, 3.2vw, 52px); height: auto; will-change: transform; }
.as-hf-1 { left: 4%; top: 13%; animation: hlTwinkle 3.6s ease-in-out infinite; }
.as-hf-2 { left: 2%; top: 46%; animation: hlFloat2 6s ease-in-out infinite; }
.as-hf-3 { left: 9%; bottom: 14%; animation: hlTwinkle 4.2s ease-in-out infinite; }
@media (max-width: 820px) { .as-herofull { max-width: 853px; } .as-hf-2, .as-hf-3 { display: none; } }

/* === 舊分層 hero（已停用，保留樣式不影響新 hero） === */
.as-hero-desktop { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; aspect-ratio: 1920 / 1088; overflow: hidden; background: #EDE4D3; display: block; }
.as-hero-mobile { position: relative; width: 100%; max-width: 941px; margin: 0 auto; aspect-ratio: 941 / 1672; overflow: hidden; background: #EFE7D6; display: none; }
.as-hero-stage { position: absolute; left: 0; top: 0; transform-origin: top left; }
.as-hero-desktop .as-hero-stage { width: 1920px; height: 1088px; }
.as-hero-mobile .as-hero-stage { width: 941px; height: 1672px; }
.as-hero-stage [data-hero-cta] { cursor: pointer; }

@media (max-width: 820px) {
  .as-hero-desktop { display: none; }
  .as-hero-mobile { display: block; }
}

/* 桌機圖層（畫布 1920×1088） */
.as-l-bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1088px; z-index: 1; }
.as-l-glow { position: absolute; left: 1320px; top: 540px; width: 1000px; height: 1000px; z-index: 2; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 120, .5), rgba(255, 150, 90, .16) 55%, transparent 72%); transform: translate(-50%, -50%); animation: hlGlow 5.5s ease-in-out infinite; mix-blend-mode: screen; }
.as-l-spot { position: absolute; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .5s ease; mix-blend-mode: soft-light; }
.as-l-stripes { position: absolute; left: 0; top: 0; width: 62px; height: 113px; transform: matrix(-1, 0, 0, 1, 89, 257); transform-origin: 0 0; z-index: 6; }
.as-l-stripes img { width: 100%; height: 100%; animation: hlBob 5s ease-in-out infinite; }
.as-l-globe { position: absolute; left: 0; top: 0; width: 74px; height: 75px; transform: matrix(-1, 0, 0, 1, 95, 381); transform-origin: 0 0; z-index: 6; }
.as-l-globe img { width: 100%; height: 100%; animation: hlSway 7s ease-in-out infinite; }
.as-l-sparkcircle { position: absolute; left: 0; top: 0; width: 76px; height: 77px; transform: matrix(-1, 0, 0, 1, 96, 470); transform-origin: 0 0; z-index: 6; }
.as-l-sparkcircle img { width: 100%; height: 100%; animation: hlTwinkle 4s ease-in-out infinite; }
.as-l-chev { position: absolute; left: 0; top: 0; width: 46px; height: 104px; transform: matrix(-1, 0, 0, 1, 82, 560); transform-origin: 0 0; z-index: 6; }
.as-l-chev img { width: 100%; height: 100%; animation: hlBob 4.5s ease-in-out infinite reverse; }
.as-l-swoosh { position: absolute; left: 0; top: 0; width: 187.269px; height: 65.708px; transform: matrix(.992, .123, -.123, .992, 189.075, 628.092); transform-origin: 0 0; z-index: 4; }
.as-l-swoosh img { width: 100%; height: 100%; animation: hlSway 9s ease-in-out infinite; }
.as-l-brush { position: absolute; left: 72px; top: 26px; width: 836px; height: 85px; z-index: 4; }
.as-l-brush2 { position: absolute; left: 0; top: 0; width: 152.776px; height: 36.902px; transform: matrix(.922, -.387, .387, .922, 1082, 472.074); transform-origin: 0 0; z-index: 4; }
.as-l-brush2 img { width: 100%; height: 100%; animation: hlFloat2 7s ease-in-out infinite; }
.as-l-title { position: absolute; left: 120px; top: 39px; width: 1106px; height: 579px; z-index: 6; overflow: hidden; background: url(../assets/ally-star/kv-title.png) 0% 50% / 97.131% 139.139% no-repeat; }
.as-l-subhead { position: absolute; left: 366px; top: 506px; width: 704px; height: 258px; z-index: 7; background: url(../assets/ally-star/kv-subhead.png) center / 100% 100% no-repeat; }
.as-l-model { position: absolute; left: 1012px; top: -50px; width: 640px; height: 1138px; z-index: 9; background: center / 100% 100% no-repeat; filter: drop-shadow(-18px 16px 30px rgba(0, 0, 0, .22)); }
.as-l-cta { position: absolute; left: 395px; top: 731px; width: 687px; height: 260px; z-index: 8; display: block; }
.as-l-cta-img { display: block; width: 100%; height: 100%; background: url(../assets/ally-star/kv-cta.png) 50% 44.711% / 100% 198.173% no-repeat; transform-origin: center; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.as-l-cta:hover .as-l-cta-img { transform: scale(1.06); }
.as-l-badge { position: absolute; left: 1568px; top: 39px; width: 282px; height: 288px; z-index: 10; }
.as-l-badge img { width: 100%; height: 100%; transform-origin: center; animation: hlBreath 3.6s ease-in-out infinite; }
.as-l-ticket { position: absolute; left: 0; top: 0; width: 166.066px; height: 299.173px; transform: matrix(.952, -.305, .305, .952, 1652, 676.623); transform-origin: 0 0; z-index: 7; }
.as-l-ticket img { width: 100%; height: 100%; transform-origin: 50% 8%; animation: hlHang 4.5s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .18)); }
.as-l-bracket { position: absolute; left: 20px; top: 17px; width: 205px; height: 217px; z-index: 6; }
.as-l-spk1 { position: absolute; left: 293px; top: 749px; width: 73px; height: 71px; z-index: 10; }
.as-l-spk1 img { width: 100%; height: 100%; animation: hlTwinkle 3.6s ease-in-out infinite; }
.as-l-spk2 { position: absolute; left: 163px; top: 113px; width: 124px; height: 121px; z-index: 10; }
.as-l-spk2 img { width: 100%; height: 100%; animation: hlFloat2 6s ease-in-out infinite; }
.as-l-spk3 { position: absolute; left: 1037px; top: 125px; width: 89px; height: 89px; z-index: 3; }
.as-l-spk3 img { width: 100%; height: 100%; animation: hlFloat2 5.5s ease-in-out infinite; }
.as-l-spk4 { position: absolute; left: 1050px; top: 449px; width: 110px; height: 115px; z-index: 3; }
.as-l-spk4 img { width: 100%; height: 100%; animation: hlTwinkle 4.2s ease-in-out infinite; }

/* 手機圖層（畫布 941×1672） */
.as-l-bgm { position: absolute; left: 0; top: 0; width: 941px; height: 1672px; z-index: 1; }
.as-l-mcol { position: absolute; left: 58px; top: 836px; width: 85px; height: 437px; overflow: hidden; z-index: 6; }
.as-l-mcol-stripes { position: absolute; left: 0; top: 0; width: 66px; height: 122px; transform: matrix(-1, 0, 0, 1, 76, 0); transform-origin: 0 0; }
.as-l-mcol-globe { position: absolute; left: 0; top: 0; width: 80px; height: 81px; transform: matrix(-1, 0, 0, 1, 80, 133); transform-origin: 0 0; }
.as-l-mcol-globe img { animation: hlSway 7s ease-in-out infinite; }
.as-l-mcol-spark { position: absolute; left: 0; top: 0; width: 82px; height: 82px; transform: matrix(-1, 0, 0, 1, 85, 229); transform-origin: 0 0; }
.as-l-mcol-spark img { animation: hlTwinkle 4s ease-in-out infinite; }
.as-l-mcol-chev { position: absolute; left: 0; top: 0; width: 49px; height: 112px; transform: matrix(-1, 0, 0, 1, 67, 325); transform-origin: 0 0; }
.as-l-mcol > div img { width: 100%; height: 100%; }
.as-l-mswoosh { position: absolute; left: 0; top: 0; width: 174.976px; height: 61.395px; transform: matrix(.992, .123, -.123, .992, 18.545, 596); transform-origin: 0 0; z-index: 4; }
.as-l-mswoosh img { width: 100%; height: 100%; }
.as-l-mbrush { position: absolute; left: 104px; top: 48px; width: 647px; height: 66px; z-index: 4; }
.as-l-mbrush img { width: 100%; height: 100%; }
.as-l-mbrush2 { position: absolute; left: 0; top: 0; width: 118.249px; height: 28.563px; transform: matrix(.871, -.491, .491, .871, 806, 420.049); transform-origin: 0 0; z-index: 4; }
.as-l-mbrush2 img { width: 100%; height: 100%; }
.as-l-mtitle { position: absolute; left: 40px; top: 69px; width: 868px; height: 454px; z-index: 6; overflow: hidden; background: url(../assets/ally-star/kv-title.png) 0% 50% / 97.131% 139.139% no-repeat; }
.as-l-msubhead { position: absolute; left: 54px; top: 420px; width: 826px; height: 303px; z-index: 7; background: url(../assets/ally-star/kv-subhead.png) center / cover no-repeat; }
.as-l-mmodel { position: absolute; left: 122px; top: 647px; width: 577px; height: 1026px; z-index: 5; background: center / 100% 100% no-repeat; filter: drop-shadow(-14px 14px 24px rgba(0, 0, 0, .2)); }
.as-l-mbadge { position: absolute; left: 699px; top: 1211px; width: 231px; height: 236px; z-index: 8; }
.as-l-mbadge img { width: 100%; height: 100%; animation: hlBreath 3.6s ease-in-out infinite; }
.as-l-mticket { position: absolute; left: 0; top: 0; width: 166.066px; height: 299.173px; transform: matrix(.987, .158, -.158, .987, 759.273, 825); transform-origin: 0 0; z-index: 7; }
.as-l-mticket img { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .18)); }
.as-l-mbracket { position: absolute; left: 20px; top: 11px; width: 205px; height: 217px; z-index: 6; }
.as-l-mbracket img { width: 100%; height: 100%; }
.as-l-mcta { position: absolute; left: 77px; top: 1354px; width: 741px; height: 280px; z-index: 8; display: block; }
.as-l-mcta-img { display: block; width: 100%; height: 100%; background: url(../assets/ally-star/kv-cta.png) 50% 44.711% / 100% 198.173% no-repeat; animation: hlBob 3.4s ease-in-out infinite; transform-origin: center; }
.as-l-mspark1 { position: absolute; left: 818px; top: 101px; width: 73px; height: 71px; z-index: 10; }
.as-l-mspark1 img { animation: hlTwinkle 3.6s ease-in-out infinite; }
.as-l-mspark2 { position: absolute; left: 20px; top: 247px; width: 97px; height: 97px; z-index: 10; }
.as-l-mspark2 img { animation: hlFloat2 5.5s ease-in-out infinite; }
.as-l-mspark3 { position: absolute; left: 215px; top: 870px; width: 111px; height: 116px; z-index: 10; }
.as-l-mspark3 img { animation: hlTwinkle 4.2s ease-in-out infinite; }
.as-hero-mobile [class^="as-l-mspark"] img { width: 100%; height: 100%; }

/* glint 掃光（只裁在主標字體 alpha，不讓半透明矩形壓到背景） */
/* 注意：不可在此設 [data-glint]{position:relative}，會覆蓋 .as-l-title/.as-l-subhead 的 absolute 定位、害圖層掉進 normal flow。圖層本身已是 absolute，glint ::after 直接以它為定位父即可。 */
[data-glint]::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 45%, rgba(255, 255, 255, .4) 50%, transparent 55%);
  background-size: 300% 100%;
  animation: hlGlint 6.6s ease-in-out 1.2s infinite; mix-blend-mode: screen; pointer-events: none;
}
.as-l-title[data-glint]::after,
.as-l-mtitle[data-glint]::after {
  -webkit-mask: url(../assets/ally-star/kv-title.png) 0% 50% / 97.131% 139.139% no-repeat;
  mask: url(../assets/ally-star/kv-title.png) 0% 50% / 97.131% 139.139% no-repeat;
}
.as-l-subhead[data-glint]::after { content: none; }

/* =======================  狀態 / 倒數 BAND  ======================= */
.as-band {
  position: relative; color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--as-teal) url(../assets/ally-star/teal-paper.png) top center / 100% 264px repeat-y;
  padding: clamp(30px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(34px, 5vw, 60px); overflow: hidden;
}
@supports (width: 100dvw) {
  .as-band {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}
.as-band-inner { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.as-band-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--as-red); padding: 7px 20px; border-radius: 999px; font-weight: 900; letter-spacing: .1em; font-size: clamp(14px, 1.6vw, 18px); box-shadow: 0 4px 0 var(--as-red-d); }
.as-band-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: hlTwinkle 1.4s ease-in-out infinite; }
.as-band-sub { margin: 14px 0 2px; font-weight: 700; font-size: clamp(15px, 1.8vw, 20px); opacity: .95; }
.as-countdown { display: flex; gap: clamp(8px, 2vw, 22px); margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.as-countdown[hidden] { display: none; }
.as-cd-cell { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 12px clamp(14px, 2.4vw, 28px); min-width: 74px; }
.as-cd-num { font-family: var(--as-display); font-size: clamp(34px, 5vw, 58px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.as-cd-num-accent { color: var(--as-sand); }
.as-cd-unit { font-size: 13px; letter-spacing: .18em; opacity: .85; margin-top: 6px; }
.as-band-foot { margin: 16px 0 0; font-weight: 700; letter-spacing: .06em; font-size: clamp(14px, 1.5vw, 17px); }

/* =======================  撕紙分隔  ======================= */
.as-tear { position: relative; height: 0; z-index: 6; pointer-events: none; }
.as-tear span { position: absolute; left: 0; right: 0; bottom: -2px; display: block; }
.as-tear-top {
  height: 56px; background: var(--as-cream2);
  clip-path: polygon(0% 52%, 1.56% 56.29%, 3.13% 60.37%, 4.69% 64.07%, 6.25% 67.21%, 7.81% 69.64%, 9.38% 71.25%, 10.94% 71.97%, 12.5% 71.75%, 14.06% 70.62%, 15.63% 68.63%, 17.19% 65.86%, 18.75% 62.45%, 20.31% 58.55%, 21.88% 54.35%, 23.44% 50.04%, 25% 45.82%, 26.56% 41.89%, 28.13% 38.42%, 29.69% 35.59%, 31.25% 33.52%, 32.81% 32.31%, 34.38% 32.02%, 35.94% 32.65%, 37.5% 34.18%, 39.06% 36.54%, 40.63% 39.62%, 42.19% 43.27%, 43.75% 47.33%, 45.31% 51.61%, 46.88% 55.9%, 48.44% 60.01%, 50% 63.76%, 51.56% 66.95%, 53.13% 69.45%, 54.69% 71.14%, 56.25% 71.94%, 57.81% 71.81%, 59.38% 70.76%, 60.94% 68.84%, 62.5% 66.14%, 64.06% 62.78%, 65.63% 58.92%, 67.19% 54.74%, 68.75% 50.43%, 70.31% 46.19%, 71.88% 42.23%, 73.44% 38.71%, 75% 35.82%, 76.56% 33.68%, 78.13% 32.38%, 79.69% 32%, 81.25% 32.55%, 82.81% 34.01%, 84.38% 36.29%, 85.94% 39.31%, 87.5% 42.92%, 89.06% 46.95%, 90.63% 51.21%, 92.19% 55.52%, 93.75% 59.65%, 95.31% 63.44%, 96.88% 66.69%, 98.44% 69.25%, 100% 71.02%, 100% 100%, 0% 100%);
}
.as-tear-bot {
  height: 50px;
  clip-path: polygon(0% 67.59%, 1.56% 71.13%, 3.13% 74.06%, 4.69% 76.24%, 6.25% 77.57%, 7.81% 78%, 9.38% 77.5%, 10.94% 76.09%, 12.5% 73.84%, 14.06% 70.85%, 15.63% 67.27%, 17.19% 63.25%, 18.75% 59%, 20.31% 54.69%, 21.88% 50.54%, 23.44% 46.74%, 25% 43.46%, 26.56% 40.85%, 28.13% 39.04%, 29.69% 38.12%, 31.25% 38.12%, 32.81% 39.04%, 34.38% 40.84%, 35.94% 43.44%, 37.5% 46.71%, 39.06% 50.52%, 40.63% 54.66%, 42.19% 58.97%, 43.75% 63.23%, 45.31% 67.24%, 46.88% 70.83%, 48.44% 73.82%, 50% 76.07%, 51.56% 77.49%, 53.13% 78%, 54.69% 77.58%, 56.25% 76.25%, 57.81% 74.07%, 59.38% 71.15%, 60.94% 67.61%, 62.5% 63.63%, 64.06% 59.39%, 65.63% 55.08%, 67.19% 50.91%, 68.75% 47.06%, 70.31% 43.73%, 71.88% 41.06%, 73.44% 39.17%, 75% 38.16%, 76.56% 38.08%, 78.13% 38.91%, 79.69% 40.64%, 81.25% 43.17%, 82.81% 46.39%, 84.38% 50.15%, 85.94% 54.28%, 87.5% 58.58%, 89.06% 62.85%, 90.63% 66.89%, 92.19% 70.52%, 93.75% 73.58%, 95.31% 75.9%, 96.88% 77.4%, 98.44% 77.99%, 100% 77.66%, 100% 100%, 0% 100%);
}
.as-tear-teal-cream .as-tear-bot { background: var(--as-cream) url(../assets/ally-star/cream-paper.png) top center / 100% 560px repeat-y; }
.as-tear-cream-teal .as-tear-bot { background: var(--as-teal) url(../assets/ally-star/teal-paper.png) top center / 100% 264px repeat-y; }
.as-tear-cream-pink .as-tear-bot { background: var(--as-pink) url(../assets/ally-star/pink-paper.png) top center / 100% 238px repeat-y; }
.as-tear-pink-cream .as-tear-bot { background: var(--as-cream) url(../assets/ally-star/cream-paper.png) top center / 100% 560px repeat-y; }

/* =======================  SECTION 通用  ======================= */
.as-section { position: relative; padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 40px); overflow: hidden; }
.as-bg-cream { background: var(--as-cream) url(../assets/ally-star/cream-paper.png) top center / 100% 560px repeat-y; }
.as-bg-teal { background: var(--as-teal) url(../assets/ally-star/teal-paper.png) top center / 100% 264px repeat-y; color: #fff; }
.as-bg-pink { background: var(--as-pink) url(../assets/ally-star/pink-paper.png) top center / 100% 238px repeat-y; color: #fff; }
.as-wrap { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.as-wrap-narrow { max-width: 720px; }
.as-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); position: relative; }
.as-no { display: inline-block; position: relative; font-family: var(--as-display); color: #fff; font-size: clamp(30px, 5vw, 52px); line-height: .9; letter-spacing: .04em; padding: 4px 18px; }
.as-no::before { content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-3deg); width: 170px; height: 48px; background: url(../assets/ally-star/brush-slant.png) center / 100% 100% no-repeat; opacity: .85; z-index: -1; }
.as-no-teal::before { background-image: url(../assets/ally-star/brush-block.png); opacity: .9; }
.as-h2 { margin: 10px 0 0; font-weight: 900; font-size: clamp(26px, 3.6vw, 44px); letter-spacing: .04em; display: flex; align-items: center; justify-content: center; gap: 14px; }
.as-h2-teal { color: var(--as-teal2); }
.as-spk { width: .7em; height: .7em; }
.as-lead { margin: 8px 0 0; color: var(--as-muted); font-weight: 500; }
.as-c-white { color: #fff; }
.as-c-white-70 { color: rgba(255, 255, 255, .82); }
.as-c-red { color: var(--as-red-ink); }
.as-c-teal { color: var(--as-teal2); }
.as-c-pink { color: var(--as-pink2); }
.as-c-cream { color: var(--as-sand); }

/* 區段裝飾 */
.as-deco { position: absolute; z-index: 1; }
.as-deco img { width: 100%; height: 100%; object-fit: contain; }
.as-deco-ticket { right: 5%; top: 8%; width: clamp(46px, 5vw, 86px); transform: rotate(-8deg); filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .12)); animation: hlFloat 6.5s ease-in-out infinite; }
.as-deco-globe { left: 3%; bottom: 8%; width: clamp(62px, 7vw, 108px); transform: rotate(-6deg); filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .2)); animation: hlFloat 6.5s ease-in-out infinite; }
.as-deco-spk { right: 3%; top: 7%; width: clamp(66px, 8vw, 116px); filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .12)); animation: hlFloat 6s ease-in-out infinite; }
.as-bg-pink .as-deco-globe { left: 3%; top: 6%; transform: rotate(-10deg); animation: hlFloat2 7s ease-in-out infinite; }

/* =======================  01 時間軸  ======================= */
.as-tl { position: relative; display: flex; justify-content: space-between; gap: 14px; max-width: 1000px; margin: 0 auto; }
.as-tl::before { content: ""; position: absolute; left: 11%; right: 11%; top: 42px; height: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--as-teal2) 0 16px, transparent 16px 27px); z-index: 0; }
.as-tl-node { position: relative; z-index: 1; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.as-tl-dot { width: 84px; height: 84px; flex: none; border-radius: 50%; background: #fff; border: 4px solid var(--as-teal2); box-shadow: 5px 6px 0 rgba(18, 110, 110, .2); display: flex; align-items: center; justify-content: center; font-family: var(--as-display); color: var(--as-teal2); font-size: 25px; letter-spacing: .02em; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.as-tl-dot-sm { font-size: 19px; }
.as-tl-dot-red { background: var(--as-red); border-color: var(--as-red); color: #fff; box-shadow: 5px 6px 0 rgba(158, 20, 22, .28); }
.as-tl-node:hover .as-tl-dot { transform: translateY(-7px) scale(1.07) rotate(-3deg); }
.as-tl-t { font-weight: 900; font-size: 18px; color: var(--as-teal2); }
.as-tl-node p { margin: 4px 0 0; color: var(--as-muted); font-size: 13.5px; line-height: 1.6; }

/* =======================  02 超星任務  ======================= */
.as-task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(10px, 1.6vw, 16px); }
.as-task { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 16px 20px; }
.as-task-no { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--as-red); display: flex; align-items: center; justify-content: center; font-family: var(--as-display); color: #fff; font-size: 22px; }
.as-task p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.4; }
.as-task small { display: block; font-weight: 500; opacity: .72; font-size: 13px; margin-top: 2px; }
.as-task-plan { background: var(--as-red); border-color: var(--as-red); }
.as-task-plan-t { margin: 0; font-weight: 900; font-size: 15px; letter-spacing: .04em; }
.as-task-plan-b { margin: 6px 0 0 !important; font-size: 13.5px; opacity: .95; line-height: 1.5; font-weight: 500 !important; }

/* =======================  03 福利  ======================= */
.as-feat { max-width: 900px; margin: 0 auto clamp(20px, 3vw, 34px); }
.as-feat img { width: 100%; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .12)); }
.as-float { animation: hlFeatFloat 6s ease-in-out infinite; }
.as-float:hover { animation-play-state: paused; }
.as-perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.as-perk { background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: 6px 8px 0 rgba(18, 110, 110, .14); }
.as-perk-red { border-top: 6px solid var(--as-red); }
.as-perk-teal { border-top: 6px solid var(--as-teal2); }
.as-perk-pink { border-top: 6px solid var(--as-pink2); }
.as-perk-dark { background: var(--as-teal2); color: #fff; box-shadow: 6px 8px 0 rgba(14, 90, 90, .3); }
.as-perk-ic { width: 66px; height: 66px; margin-bottom: 12px; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .14)); }
.as-perk-ic svg { width: 100%; height: 100%; }
.as-perk-no { font-weight: 900; letter-spacing: .1em; font-size: 14px; }
.as-perk-t { margin: 10px 0 0; font-weight: 900; font-size: 19px; }
.as-perk-d { margin: 8px 0 0; color: var(--as-muted); font-size: 14px; line-height: 1.7; }
.as-perk-dark .as-perk-d { color: rgba(255, 255, 255, .9); }

/* =======================  04 海選流程 + 獎金  ======================= */
.as-flow-grid { display: flex; gap: clamp(16px, 3vw, 30px); flex-wrap: wrap; }
.as-stage { flex: 1 1 320px; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 20px; padding: 30px 28px; }
.as-stage-tag { display: inline-block; font-weight: 900; padding: 6px 18px; border-radius: 999px; letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
.as-stage-tag-pink { background: #fff; color: var(--as-pink2); }
.as-stage-tag-teal { background: var(--as-teal2); color: #fff; }
.as-stage-t { margin: 14px 0 4px; font-weight: 900; font-size: 22px; }
.as-stage-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.as-stage-step { display: flex; gap: 12px; align-items: flex-start; }
.as-stage-step > span { font-family: var(--as-display); font-size: 24px; color: var(--as-sand); line-height: 1; }
.as-stage-step b { font-weight: 900; }
.as-stage-step p { margin: 2px 0 0; font-size: 14px; opacity: .9; }
.as-prize { margin-top: clamp(26px, 4vw, 40px); background: var(--as-ink); border-radius: 22px; padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; color: #fff; }
.as-prize-badge { position: absolute; right: 18px; top: -6px; width: clamp(70px, 10vw, 128px); filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, .3)); animation: hlFloat 6s ease-in-out infinite; }
.as-prize-t { margin: 0 0 18px; font-weight: 900; font-size: clamp(18px, 2.2vw, 26px); text-align: center; letter-spacing: .06em; position: relative; z-index: 1; }
.as-prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.as-prize-item { border-radius: 16px; padding: 22px 16px; text-align: center; }
.as-prize-gold { background: linear-gradient(160deg, #F7D774, var(--as-gold)); color: #3a2a00; }
.as-prize-silver { background: #E8E2D2; color: #3a3a3a; }
.as-prize-bronze { background: #E2B894; color: #3a2418; }
.as-prize-rest { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; }
.as-prize-rank { font-weight: 900; letter-spacing: .1em; font-size: 14px; }
.as-prize-amt { font-family: var(--as-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.as-prize-note { margin: 16px 0 0; text-align: center; font-size: 13px; opacity: .7; }

/* =======================  05 報名表單  ======================= */
.as-form-card { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 16px 40px rgba(0, 0, 0, .1); border: 1.5px solid rgba(18, 110, 110, .18); }
.as-lock { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; background: #FBF6EA; border: 1.5px dashed var(--as-teal2); color: var(--as-teal2); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.as-lock[hidden] { display: none; }
.as-stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.as-stepper button { flex: 1; cursor: pointer; border: none; background: transparent; text-align: center; padding: 0; }
.as-step-bar { display: block; height: 6px; border-radius: 3px; background: #E4D9BE; transition: background .3s; }
.as-stepper button.is-active .as-step-bar,
.as-stepper button.is-done .as-step-bar { background: var(--as-teal2); }
.as-step-label { display: block; margin-top: 8px; font-weight: 900; font-size: 13px; color: #B6AB92; transition: color .3s; }
.as-stepper button.is-active .as-step-label,
.as-stepper button.is-done .as-step-label { color: var(--as-teal2); }
.as-form-panel { border: none; padding: 0; margin: 0; min-width: 0; display: none; flex-direction: column; gap: 18px; }
.as-form-panel.is-active { display: flex; }
.as-field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 15px; }
.as-req { color: var(--as-red); }
.as-field input, .as-field select, .as-field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--as-line); border-radius: 12px;
  font-size: 16px; font-family: inherit; background: var(--as-paper-field); color: var(--as-ink);
}
.as-field textarea { resize: vertical; }
.as-field input::placeholder, .as-field textarea::placeholder { color: var(--as-muted2); }
.as-field input:focus, .as-field select:focus, .as-field textarea:focus {
  outline: none; border-color: var(--as-red); box-shadow: 0 0 0 3px rgba(225, 36, 27, .14);
}
.as-field .is-invalid { border-color: var(--as-red); box-shadow: 0 0 0 3px rgba(225, 36, 27, .14); }
.as-field-error { margin: 6px 0 0; color: var(--as-red); font-size: 13px; font-weight: 700; }
.as-legal-summary { background: #FBF6EA; border: 1.5px solid #E4D9BE; border-radius: 14px; padding: 18px 20px; max-height: 230px; overflow-y: auto; font-size: 13.5px; line-height: 1.75; color: #5C5443; }
.as-legal-summary-t { margin: 0 0 8px; font-weight: 900; color: var(--as-teal2); font-size: 15px; }
.as-legal-summary p { margin: 0 0 8px; }
.as-legal-summary p:last-child { margin: 0; }
.as-legal-summary a { color: var(--as-red); font-weight: 700; }
.as-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: #fff; border: 2px solid #E4D9BE; border-radius: 12px; padding: 16px 18px; }
.as-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--as-red); cursor: pointer; flex: none; }
.as-check span { font-weight: 700; font-size: 15px; line-height: 1.5; }
.as-check input.is-invalid { outline: 2px solid var(--as-red); outline-offset: 2px; }
.as-form-msg { margin: 14px 0 0; color: var(--as-red); font-size: 14px; font-weight: 700; min-height: 1em; text-align: center; }
.as-form-actions { display: flex; gap: 12px; margin-top: 18px; }
.as-btn { cursor: pointer; border: none; font-family: var(--as-font); font-weight: 900; font-size: 16px; padding: 14px 24px; border-radius: 14px; letter-spacing: .06em; transition: transform .12s ease, filter .2s ease; }
.as-btn:active { transform: translateY(2px); }
.as-btn-red { background: var(--as-red); color: #fff; box-shadow: 0 5px 0 var(--as-red-d); flex: 1; }
.as-btn-teal { background: var(--as-teal2); color: #fff; box-shadow: 0 5px 0 var(--as-teal-d); flex: 1; }
.as-btn-ghost { background: transparent; color: var(--as-teal2); border: 2px solid var(--as-teal2); }
.as-btn.is-hidden { display: none; }
.as-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* =======================  FOOTER  ======================= */
.as-footer { background: var(--as-ink); color: #fff; text-align: center; padding: clamp(36px, 6vw, 60px) 20px; }
.as-footer-logo { height: 38px; width: auto; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: .9; }
.as-footer p { margin: 6px 0; font-size: 14px; opacity: .82; line-height: 1.7; }
.as-footer a { color: var(--as-sand); }
.as-footer-links { margin-top: 14px !important; }

/* =======================  MODAL（成功 + 法務）  ======================= */
.as-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.as-modal[hidden] { display: none; }
.as-modal-backdrop { position: absolute; inset: 0; background: rgba(34, 31, 27, .6); backdrop-filter: blur(3px); }
.as-modal-card { position: relative; z-index: 1; background: var(--as-cream); max-width: 680px; width: 100%; max-height: 86vh; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); animation: hlPop .35s cubic-bezier(.34, 1.56, .64, 1); }
.as-modal-x { cursor: pointer; background: rgba(255, 255, 255, .18); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; flex: none; }
/* 成功 modal */
.as-success { max-width: 420px; text-align: center; padding: 28px 24px 30px; overflow-y: auto; }
.as-success .as-modal-x { position: absolute; top: 14px; right: 14px; background: rgba(34, 31, 27, .18); color: var(--as-ink); z-index: 2; }
.as-regcard { position: relative; max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 16; background: var(--as-cream); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); border: 3px solid var(--as-teal2); }
.as-regcard-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-regcard-head { position: absolute; top: 0; left: 0; right: 0; height: 38%; background: var(--as-teal) url(../assets/ally-star/teal-paper.png) top center / 100% 264px repeat-y; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 92%); }
.as-regcard-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 26px 22px; color: #fff; }
.as-regcard-kicker { margin: 10px 0 2px; font-family: "Oswald", sans-serif; letter-spacing: .34em; font-size: 12px; opacity: .9; }
.as-regcard-ok { margin: 6px 0 0; font-weight: 900; font-size: 22px; }
.as-regcard-badge { width: 112px; margin-top: auto; }
.as-regcard-label { margin: auto 0 0; color: var(--as-ink); font-weight: 700; font-size: 14px; }
.as-regcard-no { margin: 4px 0 0; font-family: var(--as-display); color: var(--as-red); font-size: 34px; letter-spacing: .04em; }
.as-regcard-tip { margin: 8px 0 0; color: var(--as-muted); font-size: 12px; text-align: center; }
.as-success-t { margin: 22px 0 4px; font-weight: 900; font-size: 20px; color: var(--as-teal2); }
.as-success-d { margin: 0; color: var(--as-muted); font-size: 14px; line-height: 1.6; }
.as-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.as-success-actions .as-btn { flex: none; }
/* 法務 modal */
.as-legal-card { max-width: 680px; }
.as-legal-head { background: var(--as-teal2); color: #fff; padding: 18px 26px; display: flex; justify-content: space-between; align-items: center; }
.as-legal-head h3 { margin: 0; font-weight: 900; font-size: 19px; }
.as-legal-body { overflow-y: auto; padding: 24px 28px; font-size: 13.5px; line-height: 1.85; color: #4A4232; }
.as-legal-body p { margin: 0 0 12px; }
.as-legal-body p:last-child { margin: 0; }
.as-legal-sub { font-weight: 900; color: var(--as-red-ink); margin-top: 4px; }

/* =======================  LOADER  ======================= */
.as-loader { position: fixed; inset: 0; z-index: 9999; background: var(--as-cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; animation: hlLoadOut .55s ease 1.5s forwards; }
.as-loader-badge { position: relative; width: min(46vw, 240px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.as-loader-ring { position: absolute; inset: -7%; border-radius: 50%; border: 3px solid rgba(225, 36, 27, .16); border-top-color: var(--as-red); animation: hlLoadSpin 1s linear infinite; }
.as-loader-badge img { width: 100%; height: 100%; object-fit: contain; animation: hlLoadPop .7s cubic-bezier(.34, 1.56, .64, 1) both, hlBreath 1.5s ease-in-out .7s infinite; }
.as-loader-dots { display: flex; gap: 7px; }
.as-loader-dots span { width: 9px; height: 9px; border-radius: 50%; animation: hlLoadDots 1.1s ease-in-out infinite; }
.as-loader-dots span:nth-child(1) { background: var(--as-teal); }
.as-loader-dots span:nth-child(2) { background: var(--as-red); animation-delay: .18s; }
.as-loader-dots span:nth-child(3) { background: var(--as-pink); animation-delay: .36s; }

/* =======================  卡片 3D 滑鼠傾斜（ally-star.js initCardTilt 驅動）  ======================= */
[data-card] { transform-style: preserve-3d; }
html.js [data-card] { transition: transform .34s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, opacity .6s ease !important; will-change: transform; }
@media (max-width: 680px) { [data-card]:active { transform: scale(.97); } }

/* =======================  互動微動態增強  ======================= */
/* 按鈕 / CTA 滑過掃光 */
.as-btn, .as-nav-cta { position: relative; overflow: hidden; }
.as-btn::after, .as-nav-cta::after {
  content: ""; position: absolute; top: 0; left: -135%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg); transition: left .65s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.as-btn:hover::after, .as-nav-cta:hover::after { left: 140%; }
/* 導覽報名鈕浮起 */
.as-nav-cta { transition: transform .2s ease; }
.as-nav-cta:hover { transform: translateY(-2px); }
.as-nav-cta:active { transform: translateY(1px); }
/* 區段標題裝飾星 hover 旋轉 */
.as-spk { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.as-h2:hover .as-spk { transform: rotate(200deg) scale(1.25); }
/* 流程階段標籤滑過掃光（共用上面的 ::after 規則需要的定位） */
.as-stage-tag { position: relative; overflow: hidden; }
/* HERO CTA 脈動光暈 */
@keyframes asCtaGlow {
  0%, 100% { filter: drop-shadow(0 4px 10px rgba(255, 255, 255, .24)) drop-shadow(0 8px 14px rgba(0, 0, 0, .12)); }
  50% { filter: drop-shadow(0 8px 24px rgba(255, 255, 255, .64)) drop-shadow(0 10px 18px rgba(0, 0, 0, .16)); }
}
.as-l-cta, .as-l-mcta { animation: asCtaGlow 2.4s ease-in-out infinite; }
/* 卡片 hover 光暈描邊（用 ::after，不與 JS 3D 傾斜的 inline transform/shadow 衝突） */
[data-card]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 rgba(225, 36, 27, 0); transition: box-shadow .4s ease; z-index: 3; }
[data-card]:hover::after { box-shadow: 0 0 0 2px rgba(225, 36, 27, .5), 0 0 26px rgba(225, 36, 27, .3); }
/* 福利圖示 hover 彈跳 */
@keyframes asIconBounce { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-10px) rotate(-8deg); } 60% { transform: translateY(-2px) rotate(5deg); } }
.as-perk:hover .as-perk-ic { animation: asIconBounce .6s ease; }

/* =======================  REVEAL（content-first：無 JS / reduced-motion 直接可見）  ======================= */
.as-reveal, .as-reveal-hero { opacity: 1; }
html.js .as-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
html.js .as-reveal.as-from-l { transform: translate(-58px, 20px); }
html.js .as-reveal.as-from-r { transform: translate(58px, 20px); }
html.js .as-reveal.is-in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
html.js .as-reveal-hero { opacity: 0; transition: opacity .85s ease; }
html.js .as-reveal-hero.is-shown { opacity: 1; }
/* 撕紙分隔進場：從左撕開 */
html.js .as-tear span { transform: scaleX(0); transform-origin: left center; }
html.js .as-tear.is-in span { transform: scaleX(1); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
html.js .as-tear.is-in .as-tear-bot { transition-delay: .12s; }

/* =======================  KEYFRAMES  ======================= */
@keyframes hlFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hlFloat2 { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-22px) rotate(6deg); } }
@keyframes hlTwinkle { 0%, 100% { opacity: .45; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes hlSway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes hlBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hlHang { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes hlBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes hlGlow { 0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .85; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes hlGlint { 0% { background-position: 175% 0; } 55%, 100% { background-position: -75% 0; } }
@keyframes hlFeatFloat { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-12px) rotate(.4deg); } }
@keyframes hlPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes hlPop { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hlLoadPop { 0% { opacity: 0; transform: scale(.5) rotate(-14deg); } 55% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes hlLoadSpin { to { transform: rotate(360deg); } }
@keyframes hlLoadOut { 0% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes hlLoadDots { 0%, 20% { opacity: .2; } 50% { opacity: 1; } 80%, 100% { opacity: .2; } }

@media (max-width: 820px) {
  .as-pulse { animation: hlPulse 3.6s ease-in-out 1s infinite; }
}

/* =======================  RWD  ======================= */
@media (max-width: 680px) {
  .as-tl { flex-direction: column; gap: 0; max-width: 360px; }
  .as-tl::before { left: 42px; right: auto; top: 7%; bottom: 7%; width: 5px; height: auto; background: repeating-linear-gradient(180deg, var(--as-teal2) 0 16px, transparent 16px 27px); }
  .as-tl-node { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding: 12px 0; }
  .as-hide-sm { display: none; }
  .as-form-actions { flex-wrap: wrap; }
  .as-form-actions .as-btn-ghost { width: 100%; }
}

/* =======================  REDUCED MOTION  ======================= */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html:not(.force-motion).js .as-reveal, html:not(.force-motion).js .as-reveal-hero { opacity: 1 !important; transform: none !important; }
  html:not(.force-motion) .as-loader { display: none; }
}
