/* =========================================================
   吉航 7 週年活動頁 /anniversary
   手刻 CSS，不使用任何前端框架；手機優先（mobile first）
   視覺：深藍＋燙金的週年慶典風；內容區米白，方便長輩閱讀
   ========================================================= */

/* ---------- 色彩與共用變數 ---------- */
:root {
    --navy-900: #2a0166;
    --navy-800: #3d0296;
    --navy-700: #5003c0;
    --navy-600: #6a1fd1;
    --gold-300: #f6dc96;
    --gold-400: #e9c46a;
    --gold-500: #d4a442;   /* 深色底上的金色 */
    --gold-700: #8a5a00;   /* 淺色底上的金色文字，對比 ≥ 4.5:1 */
    --gold-grad: linear-gradient(135deg, #fbe7a6 0%, #e2b252 45%, #b7832a 70%, #f3d58a 100%);
    --cream: #fff6f0;
    --cream-2: #ffe9f0;
    --ink: #222222;
    --muted: #555555;
    --red: #d6125e;
    --red-dark: #ab03a9;
    --line: #f5d3e0;
    --white: #ffffff;
    --footer: #3d0296;     /* 與官網 footer 同色 */

    --serif: "Noto Serif TC", "PMingLiU", serif;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(80, 3, 192, .10);
    --shadow-lg: 0 16px 40px rgba(80, 3, 192, .18);
    --gutter: 16px;
    --max: 1120px;
}

/* ---------- 基本設定 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy-600);
}

h1,
h2,
h3,
h4,
p,
figure {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 3px solid var(--gold-400);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.small {
    font-size: .9rem;
    color: var(--muted);
}

/* 只給螢幕報讀與搜尋引擎看的文字 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    padding: 10px 16px;
    background: var(--white);
    color: var(--navy-800);
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* ---------- 按鈕（可點區域至少 44×44px） ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 44px;
    padding: 10px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(.98);
}

/* 金色按鈕：深色字壓在金色上 */
.btn--gold {
    background: var(--gold-grad);
    color: var(--navy-900);
    box-shadow: 0 6px 18px rgba(212, 164, 66, .35);
}

.btn--ghost {
    border-color: rgba(246, 220, 150, .8);
    color: var(--gold-300);
}

.btn--ghost:hover {
    background: rgba(246, 220, 150, .12);
}

.btn--primary {
    background: var(--red);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--red-dark);
}

.btn--outline {
    background: var(--white);
    border-color: var(--navy-800);
    color: var(--navy-800);
}

.btn--outline:hover {
    background: var(--navy-800);
    color: var(--white);
}

.btn--tour {
    background: var(--navy-800);
    color: var(--white);
    min-height: 44px;
    padding: 8px 22px;
}

.btn--tour::after {
    content: "›";
    margin-left: 8px;
    font-size: 1.2em;
    line-height: 1;
}

.btn--tour:hover {
    background: var(--navy-600);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ---------- 導覽列 ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 8px var(--gutter) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-header__logo img {
    height: 34px;
    width: auto;
}

.site-header__nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.site-header__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    color: var(--ink);
    font-size: .95rem;
    text-decoration: none;
}

.site-header__nav a:hover {
    color: #015a86;
    text-decoration: underline;
}

/* =========================================================
   主視覺
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 18px var(--gutter) 64px;
    color: var(--white);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, .30), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(80, 3, 192, .9), transparent 50%),
        linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

/* 放射光芒 */
.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 120px;
    width: 1200px;
    height: 1200px;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg, rgba(246, 220, 150, .07) 0deg 6deg, transparent 6deg 18deg);
    border-radius: 50%;
    pointer-events: none;
}

/* 金色紙花與星光 */
.hero__sparkle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(246, 220, 150, .9) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(255, 255, 255, .7) 0 1.5px, transparent 2.5px),
        radial-gradient(circle, rgba(233, 196, 106, .7) 0 2.5px, transparent 3.5px);
    background-size: 140px 160px, 90px 110px, 220px 190px;
    background-position: 10px 20px, 50px 70px, 120px 40px;
    opacity: .55;
}

/* 底部波浪，接到米白內容區 */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 36px;
    background: var(--cream);
    clip-path: ellipse(75% 100% at 50% 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

/* 麵包屑 */
.breadcrumb {
    font-size: .8rem;
    color: rgba(255, 255, 255, .75);
    text-align: left;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 8px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .85);
}

/* 週年徽章：圓形金框＋大 7 */
.emblem {
    position: relative;
    width: 168px;
    height: 168px;
    margin: 18px auto 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, var(--navy-700) 0 58%, transparent 59%),
        var(--gold-grad);
    box-shadow: 0 0 0 6px rgba(233, 196, 106, .18), 0 12px 40px rgba(0, 0, 0, .35);
}

.emblem::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px dashed rgba(246, 220, 150, .6);
}

.emblem__num {
    font-family: var(--serif);
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    margin-top: -10px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.emblem__th {
    position: absolute;
    top: 46px;
    right: 40px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 18px;
    color: var(--gold-300);
}

.emblem__word {
    position: absolute;
    bottom: 34px;
    font-size: 11px;
    letter-spacing: .25em;
    color: var(--gold-300);
}

.hero__eyebrow {
    display: inline-block;
    margin-top: 18px;
    padding: 4px 18px;
    border: 1px solid var(--gold-400);
    border-radius: 999px;
    color: var(--gold-300);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.hero__title {
    margin-top: 12px;
    line-height: 1.3;
}

.hero__title-main {
    display: block;
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: .06em;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--gold-400);
    -webkit-text-fill-color: transparent;
}

/* 緞帶副標 */
.hero__ribbon {
    position: relative;
    display: inline-block;
    margin-top: 12px;
    padding: 0 18px;
}

.hero__ribbon > span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(180deg, #ff467a, var(--red-dark));
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

/* 緞帶兩側的燕尾 */
.hero__ribbon::before,
.hero__ribbon::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 30px;
    height: 100%;
    background: #7a0278;
    z-index: 0;
}

.hero__ribbon::before {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 35% 50%);
}

.hero__ribbon::after {
    right: 0;
    clip-path: polygon(0 0, 100% 0, 65% 50%, 100% 100%, 0 100%);
}

.hero__lead {
    margin-top: 18px;
    font-size: 1.05rem;
}

.hero__lead span {
    display: block;
}

.hero__lead span:first-child {
    color: var(--gold-300);
    font-weight: 700;
}

.hero__date {
    margin-top: 12px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .85);
}

.hero__status:empty {
    display: none;
}

.hero__status {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(246, 220, 150, .5);
    color: var(--white);
    font-weight: 700;
}

.hero__status strong {
    color: var(--gold-300);
    font-size: 1.35em;
    margin: 0 2px;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 22px auto 0;
}

/* =========================================================
   活動重點摘要
   ========================================================= */
.summary {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: -28px auto 0;
    padding: 0 var(--gutter);
}

.highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.highlights li {
    padding: 14px 8px 12px;
    background: var(--white);
    border-radius: 14px;
    border-top: 4px solid var(--gold-500);
    box-shadow: var(--shadow);
    text-align: center;
}

.highlights b {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--navy-800);
}

.highlights span {
    display: block;
    margin-top: 4px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--muted);
}

.summary__card {
    margin-top: 14px;
    padding: 18px 20px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.summary__label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 12px;
    border-radius: 6px;
    background: var(--cream-2);
    color: var(--gold-700);
    font-size: .85rem;
    font-weight: 700;
}

.summary__text {
    font-size: 1rem;
}

/* =========================================================
   頁籤列（手機上黏在畫面頂端）
   ========================================================= */
.tabs-top {
    height: 28px;
}

.tabbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 246, 240, .96);
    border-bottom: 1px solid var(--line);
}

.tabbar__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 10px var(--gutter);
    display: flex;
    gap: 6px;
}

.tabbar__tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 50px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 2px solid var(--navy-800);
    background: var(--white);
    color: var(--navy-800);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: background-color .2s, color .2s;
}

.tabbar__icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: currentColor;
}

.tabbar__tab[aria-selected="true"] {
    background: var(--navy-800);
    color: var(--gold-300);
    box-shadow: 0 6px 16px rgba(80, 3, 192, .25);
}

/* 有 JS 時才隱藏非作用中的頁籤；內容始終寫在 HTML 裡 */
.js .panel {
    display: none;
}

.js .panel.is-active {
    display: block;
}

html:not(.js) .tabbar__tab[aria-selected="true"] {
    background: var(--white);
    color: var(--navy-800);
}

.panel {
    padding: 32px 0 48px;
}

.panel__head {
    text-align: center;
    margin-bottom: 28px;
}

.panel__kicker {
    color: var(--gold-700);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .06em;
}

.panel__title {
    margin-top: 6px;
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1.45;
    color: var(--navy-800);
    font-weight: 900;
}

.panel__source {
    margin-top: 10px;
    font-size: .85rem;
    color: var(--muted);
}

/* 區塊標題：金色裝飾線 */
.rank__title,
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--navy-800);
    text-align: center;
}

.rank__title::before,
.rank__title::after,
.section-title::before,
.section-title::after {
    content: "";
    flex: 1 1 24px;
    max-width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500));
}

.rank__title::after,
.section-title::after {
    background: linear-gradient(90deg, var(--gold-500), transparent);
}

.rank__tag {
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--navy-800);
    color: var(--gold-300);
    font-family: "Noto Sans TC", sans-serif;
    font-size: .85rem;
}

/* =========================================================
   排行榜
   ========================================================= */
.rank {
    scroll-margin-top: 80px;
}

.rank + .rank {
    margin-top: 52px;
}

.rank__list {
    list-style: none;
    display: grid;
    gap: 14px;
}

/* 行程卡：4–7 名為「左圖右文」精簡卡 */
.tour {
    position: relative;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.tour:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tour__media {
    position: relative;
}

.tour__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: var(--cream-2);
}

.tour__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.tour__honor {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--gold-grad);
    color: var(--navy-900);
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.tour__name {
    margin-top: 2px;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--navy-800);
}

.tour__sub {
    margin-top: 2px;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--muted);
}

/* 人氣條＋報名人次 */
.tour__heat {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour__bar {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--cream-2);
    overflow: hidden;
}

.tour__bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold-500), var(--red));
}

.tour__count {
    flex: none;
    font-size: .82rem;
    color: var(--muted);
}

.tour__count b {
    color: var(--red);
    font-size: 1.05rem;
}

.tour__price {
    margin-top: 4px;
    font-size: .9rem;
    color: var(--ink);
}

.tour__price b {
    color: var(--red);
    font-size: 1.25rem;
    font-weight: 900;
}

.tour .btn {
    margin-top: 10px;
}

/* 名次獎牌 */
.medal {
    position: absolute;
    left: -6px;
    top: -6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--navy-800);
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
    border: 2px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    z-index: 2;
}

.medal small {
    font-family: "Noto Sans TC", sans-serif;
    font-size: .5rem;
    letter-spacing: .05em;
    margin-bottom: 1px;
}

.medal--1,
.medal--2,
.medal--3 {
    width: 64px;
    height: 64px;
    left: 10px;
    top: 10px;
    font-size: 1.9rem;
    border: 3px solid rgba(255, 255, 255, .9);
}

.medal--1 {
    background: radial-gradient(circle at 35% 30%, #fff3c4, #e2b252 45%, #a8741c 100%);
    color: #4a3000;
}

.medal--2 {
    background: radial-gradient(circle at 35% 30%, #ffffff, #c4ccd6 45%, #7d8794 100%);
    color: #2b323b;
}

.medal--3 {
    background: radial-gradient(circle at 35% 30%, #ffe0c4, #c98a55 45%, #8a4f22 100%);
    color: #3d1e08;
}

/* 獎牌下的緞帶 */
.medal--1::after,
.medal--2::after,
.medal--3::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    width: 28px;
    height: 22px;
    transform: translateX(-50%);
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
    z-index: -1;
}

/* 前三名：大卡（圖在上、文在下） */
.tour--1,
.tour--2,
.tour--3 {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
}

.tour--1 .tour__media img,
.tour--2 .tour__media img,
.tour--3 .tour__media img {
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.tour--1 .tour__body,
.tour--2 .tour__body,
.tour--3 .tour__body {
    padding: 14px 18px 18px;
}

.tour--1 .tour__name,
.tour--2 .tour__name,
.tour--3 .tour__name {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-top: 6px;
}

.tour--1 .btn,
.tour--2 .btn,
.tour--3 .btn {
    align-self: stretch;
}

/* 冠軍卡：深藍金框 */
.tour--1 {
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    border: 2px solid var(--gold-500);
    color: var(--white);
}

.tour--1 .tour__name {
    color: var(--gold-300);
}

.tour--1 .tour__sub,
.tour--1 .tour__count,
.tour--1 .tour__price {
    color: rgba(255, 255, 255, .88);
}

.tour--1 .tour__count b,
.tour--1 .tour__price b {
    color: var(--gold-300);
}

.tour--1 .tour__bar {
    background: rgba(255, 255, 255, .15);
}

.tour--1 .tour__bar i {
    background: var(--gold-grad);
}

.tour--1 .btn--tour {
    background: var(--gold-grad);
    color: var(--navy-900);
}

/* =========================================================
   頁籤一底部：報名就抽（票券造型）
   ========================================================= */
.ticket {
    position: relative;
    margin-top: 52px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 0%, rgba(233, 196, 106, .35), transparent 50%),
        linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* 票券兩側缺口 */
.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--cream);
}

.ticket::before {
    left: -14px;
}

.ticket::after {
    right: -14px;
}

.ticket__main {
    margin: 10px;
    padding: 28px 18px;
    border-radius: 12px;
}

.ticket__kicker {
    color: var(--gold-300);
    font-weight: 700;
    letter-spacing: .1em;
}

.ticket__title {
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.5;
}

.ticket__date {
    margin-top: 10px;
    color: var(--gold-300);
    font-weight: 700;
    font-size: 1.05rem;
}

.ticket__note {
    margin-top: 8px;
    font-size: .95rem;
}

.ticket .btn {
    margin-top: 20px;
    min-width: 230px;
}

.ticket__small {
    margin-top: 14px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
}

/* =========================================================
   頁籤二：吉航朋友抽大獎
   ========================================================= */

/* 依日期顯示／隱藏 */
[data-phase] {
    display: none;
}

.phase-closed [data-phase~="closed"],
.phase-announced [data-phase~="announced"] {
    display: block;
}

.phase-announced [data-hide-phase~="announced"] {
    display: none;
}

/* 得獎名單 */
.winners {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff9ea, var(--white));
    border: 2px solid var(--gold-400);
    text-align: center;
}

.winners__title {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--navy-800);
}

.winners__title::before {
    content: "🏆 ";
}

.winners p {
    margin-top: 6px;
}

.winners__pending {
    color: var(--muted);
    font-size: .95rem;
}

.winners__closed {
    font-weight: 700;
    color: var(--red);
}

.winners__list {
    list-style: none;
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.winners__list li {
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.winners__list span {
    display: inline-block;
    margin-right: 10px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--navy-800);
    color: var(--gold-300);
    font-size: .85rem;
    font-weight: 700;
}

/* 報名組／回饋組 */
.groups {
    display: grid;
    gap: 16px;
}

.group {
    overflow: hidden;
    padding: 0 20px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.group__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 -20px 14px;
    padding: 16px 20px;
    color: var(--white);
}

.group--apply .group__head {
    background: linear-gradient(135deg, #ff467a, var(--red-dark));
}

.group--thanks .group__head {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
}

.group__no {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-grad);
    color: var(--navy-900);
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 900;
}

.group__tag {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gold-300);
}

.group__title {
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.3;
}

.group__sub {
    color: var(--muted);
    font-weight: 700;
}

.checks {
    list-style: none;
    margin: 12px 0 10px;
}

.checks li {
    position: relative;
    padding-left: 32px;
}

.checks li + li {
    margin-top: 10px;
}

.checks li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-size: .75rem;
}

.group--thanks .checks li::before {
    background: var(--navy-700);
}

/* 抽獎玩法：編號步驟 */
.rules,
.prize,
.terms {
    margin-top: 44px;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 14px;
}

.step {
    position: relative;
    padding: 18px 18px 18px 70px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy-800);
    color: var(--gold-300);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 900;
}

.step__title {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--navy-800);
}

.step ul {
    margin-top: 6px;
    padding-left: 20px;
}

.step li + li {
    margin-top: 4px;
}

/* 獎品：住宿券造型 */
.voucher {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--navy-800);
    color: var(--white);
}

.voucher__main {
    position: relative;
    padding: 28px 22px 24px;
    text-align: center;
    background:
        radial-gradient(circle at 0% 0%, rgba(233, 196, 106, .3), transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
        linear-gradient(160deg, var(--navy-700), var(--navy-900));
}

.voucher__main::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(246, 220, 150, .45);
    border-radius: 10px;
    pointer-events: none;
}

.voucher__brand {
    font-size: .72rem;
    letter-spacing: .22em;
    color: var(--gold-300);
}

.voucher__name {
    margin-top: 8px;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.4;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--gold-400);
    -webkit-text-fill-color: transparent;
}

.voucher__note {
    margin-top: 10px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
}

/* 存根（撕線） */
.voucher__stub {
    position: relative;
    padding: 20px;
    background: var(--gold-grad);
    color: var(--navy-900);
    text-align: center;
    border-top: 3px dashed rgba(80, 3, 192, .45);
}

.voucher__stub::before,
.voucher__stub::after {
    content: "";
    position: absolute;
    top: -14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cream);
}

.voucher__stub::before {
    left: -13px;
}

.voucher__stub::after {
    right: -13px;
}

.voucher__count {
    font-weight: 700;
}

.voucher__count strong {
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
    margin: 0 6px;
}

.voucher__split {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.voucher__split li {
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--navy-800);
    color: var(--gold-300);
    font-size: .88rem;
    font-weight: 700;
}

/* 注意事項（可收合） */
.fold {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.fold summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 48px 12px 16px;
    font-weight: 700;
    color: var(--navy-800);
    cursor: pointer;
    list-style: none;
}

.fold summary::-webkit-details-marker {
    display: none;
}

.fold summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold-700);
}

.fold[open] summary::after {
    content: "−";
}

.fold ol {
    padding: 0 18px 18px 40px;
}

.fold li + li {
    margin-top: 8px;
}

/* 防詐提醒 */
.alert {
    margin-top: 24px;
    padding: 14px 18px 14px 56px;
    position: relative;
    border-radius: 12px;
    background: #ffe9f0;
    border: 1px solid #ffc2d4;
    font-size: .95rem;
}

.alert::before {
    content: "!";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
}

.alert strong {
    display: block;
    color: var(--red-dark);
}

.alert a {
    color: var(--red-dark);
    font-weight: 700;
}

/* 資料更新日 */
.updated {
    padding: 0 var(--gutter) 28px;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

/* ---------- footer（與官網一致的配色） ---------- */
.site-footer {
    background: var(--footer);
    color: var(--white);
}

.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px var(--gutter) 24px;
    display: grid;
    gap: 20px;
    justify-items: center;
    text-align: center;
}

.site-footer__logo img {
    width: 180px;
}

.site-footer__company p {
    font-size: .95rem;
}

.site-footer__name {
    font-weight: 700;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .6);
}

.site-footer a {
    color: var(--white);
}

.site-footer__social {
    display: flex;
    gap: 12px;
}

.site-footer__social img {
    width: 44px;
    height: 44px;
}

.site-footer__copy {
    margin: 0;
    padding: 8px var(--gutter);
    background: #060803;
    color: #b0b0b0;
    font-size: .85rem;
    text-align: center;
}

/* =========================================================
   平板以上
   ========================================================= */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    .site-header__inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px var(--gutter);
    }

    .site-header__logo img {
        height: 40px;
    }

    .site-header__nav {
        width: auto;
        gap: 8px;
    }

    .hero {
        padding: 22px var(--gutter) 96px;
    }

    .emblem {
        width: 200px;
        height: 200px;
    }

    .emblem__num {
        font-size: 116px;
    }

    .emblem__th {
        top: 54px;
        right: 46px;
        font-size: 20px;
    }

    .emblem__word {
        bottom: 40px;
    }

    .hero__title-main {
        font-size: 3.8rem;
    }

    .hero__ribbon > span {
        font-size: 1.5rem;
        padding: 10px 30px;
    }

    .hero__lead {
        font-size: 1.2rem;
    }

    .hero__cta {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .summary {
        margin-top: -44px;
    }

    .highlights {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .panel__title {
        font-size: 2rem;
    }

    /* 排行榜：冠軍整列、亞季軍並排、4–7 名兩兩排 */
    .rank__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .tour--1 {
        grid-column: 1 / -1;
        grid-template-columns: 1.15fr 1fr;
        align-items: stretch;
    }

    .tour--1 .tour__media img {
        height: 100%;
        aspect-ratio: auto;
        min-height: 320px;
    }

    .tour--1 .tour__body {
        justify-content: center;
        padding: 28px 32px;
    }

    .tour--1 .tour__name {
        font-size: 1.8rem;
    }

    .tour--1 .btn {
        align-self: flex-start;
        min-width: 200px;
    }

    .medal--1 {
        width: 80px;
        height: 80px;
        font-size: 2.4rem;
    }

    .tour {
        grid-template-columns: 140px 1fr;
    }

    .tour--1,
    .tour--2,
    .tour--3 {
        grid-template-columns: 1fr;
    }

    .tour--1 {
        grid-template-columns: 1.15fr 1fr;
    }

    .ticket__main {
        padding: 40px 32px;
    }

    .ticket__title {
        font-size: 1.75rem;
    }

    .groups {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .voucher {
        grid-template-columns: 1.6fr 1fr;
    }

    .voucher__main {
        padding: 40px 32px;
    }

    .voucher__name {
        font-size: 2.2rem;
    }

    .voucher__stub {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-top: 0;
        border-left: 3px dashed rgba(80, 3, 192, .45);
    }

    .voucher__stub::before,
    .voucher__stub::after {
        left: -14px;
        right: auto;
    }

    .voucher__stub::before {
        top: -13px;
    }

    .voucher__stub::after {
        top: auto;
        bottom: -13px;
    }

    .site-footer__inner {
        grid-template-columns: auto 1fr 1fr auto;
        align-items: center;
        text-align: left;
        justify-items: start;
    }
}

/* 桌機：4–7 名卡片圖片放大 */
@media (min-width: 1024px) {
    .tour {
        grid-template-columns: 170px 1fr;
        padding: 14px;
    }

    .tour--1 {
        grid-template-columns: 1.2fr 1fr;
        padding: 0;
    }

    .tour--2,
    .tour--3 {
        grid-template-columns: 1fr;
        padding: 0;
    }
}



/* =========================================================
   高級感裝飾（全部為 CSS＋自繪 SVG，無外部素材）
   ========================================================= */

/* 頁面底：米白＋淡金色裝飾藝術扇形紋 */
body {
    background-color: var(--cream);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, .10), transparent 60%),
        url(../img/deco/fan.svg);
    background-size: 100% 1200px, 96px 96px;
    background-repeat: no-repeat, repeat;
}

/* ---------- 主視覺 ---------- */
/* 金色雙線外框 */
.hero__frame {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 44px;
    border: 1px solid rgba(233, 196, 106, .45);
    border-radius: 4px;
    box-shadow: inset 0 0 0 5px rgba(42, 1, 102, .0), inset 0 0 0 6px rgba(233, 196, 106, .18);
    pointer-events: none;
    z-index: 0;
}

/* 麵包屑往內縮，避開外框 */
.hero .breadcrumb {
    padding: 4px 8px 0;
}

/* 外框四角的裝飾 */
.hero__frame::before,
.hero__frame::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--gold-400);
}

.hero__frame::before {
    left: -2px;
    top: -2px;
    border-right: 0;
    border-bottom: 0;
}

.hero__frame::after {
    right: -2px;
    top: -2px;
    border-left: 0;
    border-bottom: 0;
}

/* 主視覺下緣的青海波 */
.hero__sparkle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: url(../img/deco/wave.svg) repeat-x bottom / 60px 30px;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
    mask-image: linear-gradient(to top, #000 30%, transparent);
}

/* 閃爍星光 */
.twinkle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: url(../img/deco/star.svg) center / contain no-repeat;
    animation: twinkle 3.2s ease-in-out infinite;
}

.t1 { left: 12%; top: 16%; }
.t2 { left: 84%; top: 12%; width: 20px; height: 20px; animation-delay: .8s; }
.t3 { left: 8%; top: 52%; width: 10px; height: 10px; animation-delay: 1.6s; }
.t4 { left: 90%; top: 46%; animation-delay: 2.2s; }
.t5 { left: 22%; top: 78%; width: 18px; height: 18px; animation-delay: 1.1s; }
.t6 { left: 76%; top: 72%; width: 10px; height: 10px; animation-delay: 2.8s; }

@keyframes twinkle {
    0%, 100% { opacity: .15; transform: scale(.6) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* 徽章外圈的月桂葉 */
.emblem-wrap {
    width: 250px;
    height: 229px;
    margin: 8px auto 0;
    display: grid;
    place-items: center;
    background: url(../img/deco/laurel.svg) center / contain no-repeat;
}

.emblem-wrap .emblem {
    margin: 0 0 6px;
}

/* 燙金標題緩慢流光 */
.hero__title-main,
.emblem__num {
    background-size: 220% auto;
    animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

/* ---------- 頁籤一：浮水印大「7」 ---------- */
.panel {
    position: relative;
    overflow: hidden;
}

.panel > .container {
    position: relative;
    z-index: 1;
}

.panel--top7::before,
.panel--lucky::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.panel--top7::before {
    content: "7";
    top: 10px;
    right: -60px;
    font-family: var(--serif);
    font-size: 460px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(212, 164, 66, .22);
}

/* 頁籤二：淡淡的月桂葉環 */
.panel--lucky::before {
    top: 0;
    left: 50%;
    width: 560px;
    height: 513px;
    transform: translateX(-50%);
    background: url(../img/deco/laurel.svg) center / contain no-repeat;
    opacity: .14;
}

/* 標題下的金色分隔紋 */
.panel__head::after {
    content: "";
    display: block;
    width: 320px;
    max-width: 100%;
    height: 24px;
    margin: 14px auto 0;
    background: url(../img/deco/divider.svg) center / contain no-repeat;
}

/* 國內與國外之間的分隔紋 */
.rank + .rank {
    margin-top: 36px;
    padding-top: 52px;
    background: url(../img/deco/divider.svg) top center / 320px 24px no-repeat;
}

/* ---------- 行程卡 ---------- */
/* 亞軍、季軍卡頂部的銀、銅色線 */
.tour--2 {
    border-top: 4px solid #a9b3bf;
}

.tour--3 {
    border-top: 4px solid #c98a55;
}

/* 冠軍卡：照片上緩慢掃過的光澤 */
.tour--1 .tour__media {
    overflow: hidden;
}

.tour--1 .tour__media::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-12deg);
    animation: gloss 5.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gloss {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

/* 冠軍卡內側金色細框 */
.tour--1::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(233, 196, 106, .45);
    border-radius: 12px;
    pointer-events: none;
}

/* ---------- 深色區塊加上青海波紋 ---------- */
.ticket,
.voucher__main,
.tour--1 {
    background-image:
        url(../img/deco/wave.svg),
        radial-gradient(circle at 90% 0%, rgba(233, 196, 106, .3), transparent 50%),
        linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
    background-size: 60px 30px, auto, auto;
}

.group__head {
    position: relative;
    overflow: hidden;
}

.group__head::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/deco/wave.svg) 0 0 / 60px 30px;
    pointer-events: none;
}

.group__head > * {
    position: relative;
    z-index: 1;
}

/* 摘要小卡：頂端金線改漸層並加星芒 */
.highlights li {
    position: relative;
    border-top: 0;
    overflow: hidden;
}

.highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--gold-grad);
}

.highlights li::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 10px;
    width: 12px;
    height: 12px;
    background: url(../img/deco/star.svg) center / contain no-repeat;
    filter: brightness(.85) saturate(1.4);
}

/* 頁籤列底部金線 */
.tabbar {
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(212, 164, 66, .5), 0 6px 16px rgba(80, 3, 192, .06);
}

/* footer 頂端金色漸層線 */
.site-footer {
    border-top: 4px solid transparent;
    border-image: var(--gold-grad) 1;
}

@media (min-width: 768px) {
    .hero__frame {
        left: 24px;
        right: 24px;
        top: 18px;
        bottom: 70px;
    }

    .hero__frame::before,
    .hero__frame::after {
        width: 44px;
        height: 44px;
    }

    .emblem-wrap {
        width: 300px;
        height: 275px;
    }

    .twinkle {
        width: 18px;
        height: 18px;
    }

    .panel--top7::before {
        font-size: 720px;
        right: -40px;
        top: -40px;
    }

    .panel--lucky::before {
        width: 900px;
        height: 825px;
    }
}


/* =========================================================
   區塊鋪底（提升閱讀性）
   ========================================================= */

/* 國內／國外排行榜各自一塊淺底 */
.rank {
    padding: 24px 12px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 6px rgba(255, 246, 240, .9);
}

.rank + .rank {
    margin-top: 28px;
    padding-top: 24px;
    background: rgba(255, 255, 255, .72);
}

/* 國外區塊改用淡藍灰底，和國內區分 */
#overseas {
    background:
        linear-gradient(180deg, rgba(80, 3, 192, .07), rgba(80, 3, 192, .02)),
        rgba(255, 255, 255, .72);
}

/* 抽獎玩法：淡金色鋪底＋扇形紋 */
.rules {
    padding: 26px 14px 18px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(247, 234, 208, .95), rgba(247, 234, 208, .75)),
        url(../img/deco/fan.svg);
    background-size: auto, 96px 96px;
    border: 1px solid #f8c9d9;
}

/* 獎品：深藍鋪底，讓住宿券浮出來 */
.prize {
    padding: 26px 14px 22px;
    border-radius: 20px;
    background:
        url(../img/deco/wave.svg),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
    background-size: 60px 30px, auto;
}

.prize .section-title {
    color: var(--gold-300);
}

.prize .voucher {
    box-shadow: 0 0 0 1px rgba(233, 196, 106, .5), 0 16px 40px rgba(0, 0, 0, .35);
}

/* 住宿券存根的缺口要配合深藍鋪底 */
.prize .voucher__stub::before,
.prize .voucher__stub::after {
    background: var(--navy-800);
}

/* 注意事項：白底卡片 */
.terms {
    padding: 26px 14px 18px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.terms .fold {
    border: 0;
    background: transparent;
}

.terms .fold ol li {
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--line);
}

.terms .fold ol li:last-child {
    border-bottom: 0;
}

/* 抽獎次數重點框 */
.group__chance {
    margin: 4px 0 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--gold-soft, #fff0b8);
    background: #fff0b8;
    border-left: 4px solid var(--gold-500);
    font-size: .95rem;
}

.group__chance b {
    display: block;
    color: var(--navy-800);
    font-size: 1.05rem;
}

/* ---------- 2026 已售罄 ---------- */
.tour--soldout .tour__media img {
    filter: grayscale(.35) brightness(.85);
}

.soldout-stamp {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-top: 2px;
    border: 3px double #fff;
    background: rgba(214, 18, 94, .92);
    color: #fff;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
    transform: rotate(-12deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.soldout-note {
    margin-top: 12px;
    align-self: stretch;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px dashed rgba(246, 220, 150, .7);
    color: var(--gold-300);
    font-weight: 700;
    text-align: center;
}

@media (min-width: 768px) {
    .rank,
    .rules,
    .prize,
    .terms {
        padding: 32px 28px 26px;
    }

    .tour--1 .soldout-note {
        align-self: flex-start;
        min-width: 200px;
    }

    .soldout-stamp {
        width: 110px;
        height: 110px;
        font-size: 1.15rem;
    }
}
/* =========================================================
   第三版改版（11/4）：金屬立體 7th、飄動絲帶、背景漂移、硬邊陰影
   ========================================================= */

/* ---------- 硬邊陰影（沒有模糊的實心位移陰影） ---------- */
:root {
    --hard: 0 6px 0 0 #f7b6cb;
    --hard-hover: 4px 10px 0 0 #d4a442;
    --hard-navy: 0 7px 0 0 #2a0166;
    --shadow: var(--hard);
    --shadow-lg: var(--hard-navy);
}

.highlights li,
.summary__card,
.group,
.step,
.winners,
.terms {
    box-shadow: var(--hard);
}

.tour {
    box-shadow: var(--hard);
    transition: transform .18s, box-shadow .18s;
}

.tour:hover {
    transform: translate(-2px, -4px);
    box-shadow: var(--hard-hover);
}

.tour--1 {
    box-shadow: var(--hard-navy);
}

.tour--1:hover {
    box-shadow: 4px 11px 0 0 #ff467a;
}

.ticket,
.voucher {
    box-shadow: var(--hard-navy);
}

.prize .voucher {
    box-shadow: 0 0 0 1px rgba(233, 196, 106, .6), 0 8px 0 0 #b7832a;
}

/* 按鈕：實心底部陰影，按下去會「壓下去」 */
.btn {
    transition: transform .12s, box-shadow .12s, background-color .2s, color .2s;
}

.btn--gold {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 5px 0 0 #8a5a00;
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 7px 0 0 #8a5a00;
}

.btn--tour {
    box-shadow: 0 4px 0 0 #2a0166;
}

.btn--primary {
    box-shadow: 0 4px 0 0 #7a0278;
}

.btn--outline {
    box-shadow: 0 4px 0 0 var(--navy-800);
}

.btn--ghost {
    box-shadow: 0 4px 0 0 rgba(233, 196, 106, .55);
}

.btn--tour:hover,
.btn--primary:hover,
.btn--outline:hover,
.btn--ghost:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 0 #2a0166;
}

.tabbar__tab {
    box-shadow: 0 4px 0 0 var(--navy-800);
    transition: transform .12s, box-shadow .12s, background-color .2s, color .2s;
}

.tabbar__tab[aria-selected="true"] {
    box-shadow: 0 4px 0 0 #2a0166;
}

.tabbar__tab:hover {
    transform: translateY(-2px);
}

/* ---------- 背景：扇形紋緩慢往下漂移（參考 skm online 週年慶頁） ---------- */
body {
    background-image: radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, .10), transparent 60%);
    background-size: 100% 1200px;
    background-repeat: no-repeat;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url(../img/deco/fan.svg) 0 0 / 96px 96px repeat;
    animation: bg-drift 100s linear infinite;
    pointer-events: none;
}

@keyframes bg-drift {
    from { background-position: 0 0; }
    to { background-position: 0 960px; }
}

/* =========================================================
   主視覺：拿掉方框，改成聚光＋飄動絲帶＋金屬立體 7th
   ========================================================= */
.hero {
    background:
        radial-gradient(ellipse at 50% 38%, rgba(80, 3, 192, .55), transparent 60%),
        linear-gradient(180deg, #16224f 0%, #0b1330 100%);
}

/* 右上角的聚光 */
.hero::before {
    left: auto;
    right: -380px;
    top: -380px;
    width: 900px;
    height: 900px;
    transform: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 236, 180, .55) 0%, rgba(233, 196, 106, .18) 22%, transparent 55%),
        repeating-conic-gradient(from 200deg at 50% 50%, rgba(255, 233, 170, .10) 0deg 4deg, transparent 4deg 14deg);
}

/* 散景光點 */
.hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 30%, rgba(246, 220, 150, .35) 0 18px, transparent 40px),
        radial-gradient(circle at 86% 62%, rgba(246, 220, 150, .25) 0 26px, transparent 60px),
        radial-gradient(circle at 24% 82%, rgba(255, 255, 255, .14) 0 14px, transparent 34px),
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, .12) 0 10px, transparent 26px),
        radial-gradient(circle at 92% 88%, rgba(233, 196, 106, .3) 0 34px, transparent 80px);
    filter: blur(2px);
}

.hero__confetti {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 飄動絲帶：遠景小而清楚，近景大而模糊 */
.ribbons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ribbon {
    position: absolute;
    height: auto;
    animation: ribbon-float 11s ease-in-out infinite alternate;
    will-change: transform;
}

.ribbon--far {
    width: 96px;
    opacity: .85;
}

.ribbon--mid {
    width: 150px;
    filter: blur(1.5px);
    opacity: .9;
}

.ribbon--near {
    width: 260px;
    filter: blur(7px);
    opacity: .8;
}

.r1 { left: 6%; top: 22%; animation-duration: 12s; }
.r2 { right: 3%; bottom: 20%; animation-duration: 10s; animation-delay: -3s; }
.r3 { left: 62%; top: 6%; animation-duration: 14s; animation-delay: -6s; }
.r4 { left: -70px; bottom: 14%; animation-duration: 13s; animation-delay: -2s; }
.r5 { right: -90px; top: 2%; animation-duration: 15s; animation-delay: -8s; }

@keyframes ribbon-float {
    0% { transform: translate(0, 0) rotate(-6deg); }
    50% { transform: translate(14px, -18px) rotate(4deg); }
    100% { transform: translate(-10px, 12px) rotate(-2deg); }
}

/* ---------- 金屬立體 7th（以多層硬陰影堆出厚度） ---------- */
.seventh {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    margin-top: 22px;
    line-height: 1;
}

.seventh__num,
.seventh__th {
    font-family: "Montserrat", "Arial Black", sans-serif;
    font-weight: 900;
    background: linear-gradient(180deg, #fffbe6 0%, #f6dc96 16%, #e2b252 36%, #9a6508 54%, #f0c766 72%, #fff3c4 90%, #c99231 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 2px 0 #c18a22)
        drop-shadow(0 2px 0 #9c6a10)
        drop-shadow(0 2px 0 #7a4f05)
        drop-shadow(0 2px 0 #5c3a00)
        drop-shadow(0 14px 16px rgba(0, 0, 0, .55));
}

.seventh__num {
    font-size: 170px;
    letter-spacing: -.04em;
}

.seventh__th {
    margin-top: 26px;
    margin-left: 2px;
    font-size: 60px;
    font-style: italic;
}

.seventh__word {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    font-size: .8rem;
    letter-spacing: .45em;
    color: var(--gold-300);
    white-space: nowrap;
}

/* 主標美術字：同樣的金屬立體效果 */
.hero__title-main {
    filter:
        drop-shadow(0 2px 0 #9c6a10)
        drop-shadow(0 2px 0 #6b4300)
        drop-shadow(0 8px 10px rgba(0, 0, 0, .5));
    background: linear-gradient(180deg, #fffbe6 0%, #f6dc96 20%, #e2b252 45%, #a8741c 60%, #f3d58a 85%, #fff3c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: none;
}

.hero__eyebrow {
    margin-top: 30px;
}

/* 拿掉舊徽章相關裝飾 */
.hero__frame,
.hero__sparkle,
.emblem-wrap {
    display: none;
}

/* =========================================================
   區塊標題框：深藍緞帶＋燕尾
   ========================================================= */
.rank__title,
.section-title {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: 0 auto 22px;
    padding: 10px 24px;
    gap: 8px;
    background: linear-gradient(180deg, #6a1fd1, var(--navy-800));
    border-top: 2px solid var(--gold-400);
    border-bottom: 2px solid var(--gold-400);
    color: var(--gold-300);
    font-size: 1.2rem;
    box-shadow: 0 4px 0 0 #2a0166;
}

.rank__title::before,
.rank__title::after,
.section-title::before,
.section-title::after {
    content: "";
    position: absolute;
    top: 8px;
    flex: none;
    max-width: none;
    width: 22px;
    height: calc(100% + 0px);
    background: #2a0166;
}

.rank__title::before,
.section-title::before {
    left: -22px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%);
}

.rank__title::after,
.section-title::after {
    right: -22px;
    clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%);
}

.rank__tag {
    background: var(--gold-grad);
    color: var(--navy-900);
}

/* 深藍鋪底上的標題改成金色緞帶 */
.prize .section-title {
    background: var(--gold-grad);
    color: var(--navy-900);
    border-color: #fff3c4;
    box-shadow: 0 4px 0 0 #8a5a00;
}

.prize .section-title::before,
.prize .section-title::after {
    background: #a8741c;
}

/* ---------- 頁尾插畫 ---------- */
.footer-illust {
    height: 110px;
    background: url(../img/deco/footer-illust.svg) center bottom / auto 100% no-repeat;
}

/* ---------- 右下角懸浮按鈕 ---------- */
.fab {
    position: fixed;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab__btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
    font: 700 .7rem/1 "Noto Sans TC", sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, opacity .25s;
}

.fab__btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.fab__btn--cs {
    background: var(--gold-grad);
    color: var(--navy-900);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 4px 0 0 #8a5a00;
}

.fab__btn--top {
    background: var(--navy-800);
    color: var(--gold-300);
    box-shadow: inset 0 0 0 2px rgba(233, 196, 106, .6), 0 4px 0 0 #2a0166;
    opacity: 0;
    visibility: hidden;
}

.fab__btn--top.is-show {
    opacity: 1;
    visibility: visible;
}

.fab__btn:hover {
    transform: translateY(-2px);
}

.fab__btn:active {
    transform: translateY(3px);
}

@media (min-width: 768px) {
    .seventh__num {
        font-size: 230px;
    }

    .seventh__th {
        margin-top: 34px;
        font-size: 82px;
    }

    .seventh__word {
        font-size: .95rem;
        bottom: -24px;
    }

    .ribbon--far { width: 130px; }
    .ribbon--mid { width: 210px; }
    .ribbon--near { width: 380px; filter: blur(9px); }

    .rank__title,
    .section-title {
        font-size: 1.4rem;
        padding: 12px 34px;
    }

    .footer-illust {
        height: 190px;
    }

    .fab {
        right: 20px;
        bottom: 24px;
    }

    .fab__btn {
        width: 64px;
        height: 64px;
    }
}


/* 手機上標題緞帶不換行 */
.rank__title,
.section-title {
    white-space: nowrap;
}

.rank__tag {
    white-space: nowrap;
}

@media (max-width: 420px) {
    .rank__title,
    .section-title {
        font-size: 1.02rem;
        padding: 9px 16px;
    }
}
/* =========================================================
   第四版（11/5）：配色改為 紫 #5003C0／桃紅 #AB03A9／粉紅 #FF467A／黃 #FFD51E
   BN 改用彩紙背景圖＋升起的氣球；footer 上方加吉祥物插圖與飛機
   ========================================================= */
:root {
    --navy-900: #2a0166;
    --navy-800: #3d0296;
    --navy-700: #5003c0;
    --navy-600: #6a1fd1;
    --gold-300: #ffe27a;
    --gold-400: #ffd51e;
    --gold-500: #ffc400;
    --gold-700: #ab03a9;          /* 淺色底上的強調字 */
    --gold-grad: linear-gradient(135deg, #fff6b8 0%, #ffd51e 42%, #ffad0d 72%, #ffe878 100%);
    --red: #d6125e;
    --red-dark: #ab03a9;
    --cream: #fff6f0;
    --cream-2: #ffe9f0;
    --line: #f5d3e0;
    --footer: #3d0296;
    --hard: 0 6px 0 0 #f7b6cb;
    --hard-hover: 4px 10px 0 0 #ff467a;
    --hard-navy: 0 7px 0 0 #2a0166;
}

body {
    background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 70, 122, .10), transparent 60%);
}

/* 黃色按鈕的陰影改深黃 */
.btn--gold,
.fab__btn--cs {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 5px 0 0 #c98a00;
}

.btn--gold:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 7px 0 0 #c98a00;
}

.prize .section-title {
    box-shadow: 0 4px 0 0 #c98a00;
}

.prize .section-title::before,
.prize .section-title::after {
    background: #e0a100;
}

/* 人氣條：黃→粉→桃紅 */
.tour__bar i {
    background: linear-gradient(90deg, #ffd51e, #ff467a 60%, #ab03a9);
}

/* ---------- BN（主視覺）：多層次 ---------- */
.hero {
    background: #5003c0;
    padding-bottom: 80px;
}

.hero::before {
    display: none;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url(../img/bn/hero-bg.webp) center / cover no-repeat;
    animation: bg-zoom 24s ease-in-out infinite alternate;
    transform-origin: 60% 40%;
}

@keyframes bg-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* 中央壓暗＋下緣轉紫，讓金色 7th 與白字清楚 */
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 48%, rgba(80, 3, 192, .62), rgba(80, 3, 192, .15) 70%, transparent),
        linear-gradient(180deg, rgba(171, 3, 169, .15) 0%, transparent 35%, rgba(80, 3, 192, .55) 100%);
}

.hero__glow {
    background:
        radial-gradient(circle at 14% 26%, rgba(255, 213, 30, .45) 0 16px, transparent 40px),
        radial-gradient(circle at 84% 64%, rgba(255, 255, 255, .3) 0 24px, transparent 60px),
        radial-gradient(circle at 26% 84%, rgba(255, 213, 30, .3) 0 14px, transparent 34px),
        radial-gradient(circle at 72% 16%, rgba(255, 255, 255, .25) 0 10px, transparent 26px);
}

.ribbons {
    display: none;
}

/* 氣球 */
.balloons {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.balloons--front {
    z-index: 2;
}

.balloon {
    position: absolute;
    bottom: 0;
    opacity: 0;
    animation: balloon-rise var(--dur, 18s) linear var(--delay, 0s) infinite;
    will-change: transform, opacity;
}

.balloon img {
    display: block;
    width: 100%;
    height: auto;
    animation: balloon-sway var(--sway, 5s) ease-in-out infinite alternate;
}

.balloons--front .balloon img {
    filter: blur(5px);
}

@keyframes balloon-rise {
    0% { transform: translateY(105%); opacity: 0; }
    10% { opacity: var(--op, 1); }
    85% { opacity: var(--op, 1); }
    100% { transform: translateY(calc(-1 * var(--rise, 900px))); opacity: 0; }
}

@keyframes balloon-sway {
    from { transform: translateX(-10px) rotate(-5deg); }
    to { transform: translateX(10px) rotate(5deg); }
}

/* 文字區要在前景氣球之上 */
.hero__inner {
    z-index: 3;
}

.hero__eyebrow {
    border-color: #ffd51e;
    color: #fff;
    background: rgba(171, 3, 169, .45);
}

.hero__lead span:first-child {
    color: #ffe27a;
}

.hero__status {
    background: rgba(42, 1, 102, .55);
    border-color: rgba(255, 213, 30, .7);
}

/* 緞帶副標改粉紅 */
.hero__ribbon > span {
    background: linear-gradient(180deg, #ff467a, #d6125e);
}

.hero__ribbon::before,
.hero__ribbon::after {
    background: #ab03a9;
}

.hero::after {
    background: var(--cream);
}

/* ---------- footer 上方插圖＋飛機 ---------- */
.footer-illust {
    position: relative;
    height: auto;
    background: none;
    overflow: hidden;
    margin-top: 8px;
}

.footer-illust__art {
    width: 100%;
    height: auto;
}

.footer-illust__plane {
    position: absolute;
    top: 4%;
    left: 47%;                    /* 飛機中心約落在 60% */
    width: 26%;
    height: auto;
    transform: translateX(260%);   /* 起點：畫面右側外；離開畫面時瞬間回到這裡 */
}

/* 捲到插圖時（JS 加上 is-in）：花 5.5 秒飛到定點，停住後不再浮動 */
.footer-illust.is-in .footer-illust__plane {
    transform: translateX(0);
    transition: transform 5.5s cubic-bezier(.16, .8, .3, 1);
}

/* 沒有 JS 或關閉動態效果：飛機直接停在定點 */
html:not(.js) .footer-illust__plane {
    transform: none;
}

@media (min-width: 768px) {
    .hero {
        padding-bottom: 110px;
    }
}


/* =========================================================
   第五版（11/5）：獎牌插圖、票券造型
   ========================================================= */

/* ---------- 前三名獎牌改用插圖 ---------- */
.medal--1,
.medal--2,
.medal--3 {
    width: 64px;
    height: 75px;
    left: 10px;
    top: 6px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: center / contain no-repeat;
    color: transparent;           /* 文字保留給報讀軟體，畫面上隱藏 */
    font-size: 0;
    filter: drop-shadow(0 4px 0 rgba(42, 1, 102, .35));
}

.medal--1 { background-image: url(../img/medal/medal-1.png); }
.medal--2 { background-image: url(../img/medal/medal-2.png); }
.medal--3 { background-image: url(../img/medal/medal-3.png); }

.medal--1::after,
.medal--2::after,
.medal--3::after {
    display: none;
}

@media (min-width: 768px) {
    .medal--1 {
        width: 86px;
        height: 100px;
    }
}

/* ---------- 報名就抽：票券造型 ---------- */
.ticket {
    background: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 7px 0 #2a0166);
}

.ticket::before,
.ticket::after {
    display: none;
}

.ticket__main {
    --stub: 64px;                 /* 存根寬度 */
    --notch: 14px;                /* 存根上下缺口半徑 */
    --scallop: 7px;               /* 左右鋸齒半徑 */
    position: relative;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr var(--stub);
    border-radius: 16px;
    background:
        url(../img/deco/wave.svg),
        radial-gradient(circle at 90% 0%, rgba(255, 213, 30, .35), transparent 50%),
        linear-gradient(160deg, #6a1fd1 0%, #3d0296 100%);
    background-size: 60px 30px, auto, auto;
    /* 左右鋸齒邊＋存根上下半圓缺口（四層遮罩取交集） */
    -webkit-mask:
        radial-gradient(circle at 0 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at 100% 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)),
        radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px));
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle at 0 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at 100% 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)),
        radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px));
    mask-composite: intersect;
}

.ticket__body {
    padding: 30px 14px 28px 26px;
    text-align: center;
}

/* 存根：虛線撕線＋條碼 */
.ticket__stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0;
    border-left: 2px dashed rgba(255, 213, 30, .75);
    background: rgba(42, 1, 102, .35);
}

.ticket__barcode {
    width: 26px;
    flex: 1 1 auto;
    max-height: 170px;
    min-height: 90px;
    background: repeating-linear-gradient(180deg,
            #fff 0 2px, transparent 2px 4px,
            #fff 4px 5px, transparent 5px 8px,
            #fff 8px 11px, transparent 11px 13px,
            #fff 13px 14px, transparent 14px 17px);
    opacity: .9;
}

.ticket__serial {
    writing-mode: vertical-rl;
    font-size: .62rem;
    letter-spacing: .18em;
    color: var(--gold-300);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .ticket__main {
        --stub: 120px;
        --notch: 18px;
        --scallop: 9px;
    }

    .ticket__body {
        padding: 44px 32px;
    }

    .ticket__barcode {
        width: 46px;
        max-height: 200px;
    }

    .ticket__serial {
        font-size: .72rem;
    }
}
/* =========================================================
   第六版（11/5 下午）
   ========================================================= */

/* 票券、獎牌不要陰影 */
.ticket,
.medal--1,
.medal--2,
.medal--3 {
    filter: none;
}

/* 頁籤列：透明、無底線 */
.tabbar {
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
}

/* 兩個頁籤背景統一：拿掉大「7」與月桂葉浮水印 */
.panel--top7::before,
.panel--lucky::before {
    display: none;
}

/* ---------- BN：標準字圖＋粗體副標 ---------- */
.hero {
    padding-top: 28px;
}

.hero__logo {
    display: block;
    width: min(94%, 600px);
    height: auto;
    margin: 0 auto;
}

.hero__title {
    margin-top: 10px;
}

/* 副標只留粗體字，不要框也不要緞帶 */
.hero__ribbon {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-shadow: 0 2px 0 rgba(80, 3, 192, .55);
}

.hero__ribbon::before,
.hero__ribbon::after {
    display: none;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 36px;
    }

    .hero__ribbon {
        font-size: 2rem;
    }
}

/* ---------- footer 插圖：雲上下微微浮動 ---------- */

.footer-illust__cloud {
    position: absolute;
    height: auto;
    animation: float-y 5s ease-in-out infinite alternate;
}

.c1 { left: 4.12%; top: 11.56%; width: 22.69%; animation-duration: 5.5s; }
.c2 { left: 68.56%; top: 20.56%; width: 17.19%; animation-duration: 4.6s; animation-delay: -1.5s; }
.c3 { left: 51%; top: 28.89%; width: 12.81%; animation-duration: 5s; animation-delay: -3s; }
.c4 { left: 30%; top: 30.22%; width: 12.5%; animation-duration: 6s; animation-delay: -.8s; }

@keyframes float-y {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}


/* ---------- 上方導覽列：hover 時變成圓角按鈕（主配色） ---------- */
.site-header__nav {
    gap: 4px;
}

.site-header__nav a {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #3d0296;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, color .2s, box-shadow .15s, transform .15s;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
    background: linear-gradient(135deg, #5003c0, #ab03a9);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 0 0 #ff467a;
    transform: translateY(-1px);
}

.site-header__nav a:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 0 #ff467a;
}

@media (max-width: 420px) {
    .site-header__nav a {
        padding: 0 12px;
    }
}
/* ---------- 即時倒數（天／時／分／秒，每秒更新） ---------- */
.hero__status {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 14px;
    border-radius: 18px;
    background: rgba(42, 1, 102, .6);
    border: 2px solid rgba(255, 213, 30, .75);
    box-shadow: 0 5px 0 0 #ff467a;
}

.cd__label {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
}

.cd {
    display: flex;
    gap: 8px;
}

.cd__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 6px 4px 4px;
    border-radius: 12px;
    background: linear-gradient(180deg, #5003c0, #3d0296);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 3px 0 0 #2a0166;
}

.cd__unit b {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffd51e;
    font-variant-numeric: tabular-nums;   /* 數字等寬，跳動時不會左右晃 */
}

.cd__unit i {
    font-style: normal;
    font-size: .78rem;
    color: #ffe9f0;
}

.cd__unit b.is-tick {
    animation: cd-pop .35s ease-out;
}

@keyframes cd-pop {
    0% { transform: translateY(-6px) scale(1.12); opacity: .4; }
    100% { transform: none; opacity: 1; }
}

@media (min-width: 768px) {
    .cd {
        gap: 12px;
    }

    .cd__unit {
        min-width: 76px;
    }

    .cd__unit b {
        font-size: 2.5rem;
    }

    .cd__label {
        font-size: 1.05rem;
    }
}


/* =========================================================
   第七版（11/5 下午）
   ========================================================= */

/* ---------- 倒數：只顯示天數，數字由 0 跳到目標 ---------- */
.hero__status {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 10px 22px;
    border-radius: 999px;
}

.hero__status > span[aria-hidden] {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.cd__days {
    display: inline-block;
    min-width: 1.2em;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: #ffd51e;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 3px 0 #ab03a9;
}

/* 跳完之後每隔幾秒輕輕彈一下 */
.cd__days.is-done {
    animation: cd-beat 2.8s ease-in-out infinite;
}

@keyframes cd-beat {
    0%, 70%, 100% { transform: scale(1); }
    80% { transform: scale(1.18); }
    90% { transform: scale(.96); }
}

.cd__unit-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

@media (min-width: 768px) {
    .cd__days {
        font-size: 3rem;
    }
}



/* ---------- 獎品住宿券：跟報名就抽一樣的票券外框 ---------- */
.voucher {
    --stub: 116px;
    --notch: 14px;
    --scallop: 7px;
    grid-template-columns: 1fr var(--stub);
    border-radius: 16px;
    box-shadow: none;
    -webkit-mask:
        radial-gradient(circle at 0 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at 100% 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)),
        radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px));
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle at 0 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at 100% 50%, transparent var(--scallop), #000 calc(var(--scallop) + .5px)) 0 0 / 100% 22px repeat-y,
        radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)),
        radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px));
    mask-composite: intersect;
}

.prize .voucher {
    box-shadow: none;
}

.voucher__main {
    padding: 28px 12px 24px 22px;
}

/* 內側細框拿掉，避免和鋸齒邊打架 */
.voucher__main::after {
    display: none;
}

.voucher__stub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 6px;
    border-top: 0;
    border-left: 2px dashed rgba(61, 2, 150, .55);
}

.voucher__stub::before,
.voucher__stub::after {
    display: none;
}

.voucher__count strong {
    font-size: 2.4rem;
}

.voucher__split {
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.voucher__split li {
    font-size: .78rem;
    padding: 2px 10px;
}

/* 票券上的字改白色 */
.voucher__brand,
.voucher__name,
.voucher__note {
    color: #fff;
}

.voucher__name {
    background: none;
    -webkit-text-fill-color: #fff;
}

@media (min-width: 768px) {
    .voucher {
        --stub: 170px;
        --notch: 18px;
        --scallop: 9px;
        grid-template-columns: 1fr var(--stub);
    }

    .voucher__main {
        padding: 40px 32px;
    }

    .voucher__stub {
        border-left: 2px dashed rgba(61, 2, 150, .55);
    }

    .voucher__count strong {
        font-size: 3rem;
    }
}

/* ---------- 頁籤列：往下捲動黏住時變成霧面玻璃 ---------- */
.tabbar {
    transition: background-color .25s, box-shadow .25s;
}

.tabbar.is-stuck {
    background: rgba(255, 246, 240, .62);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 8px 18px rgba(80, 3, 192, .08);
}
/* ---------- 獎品區塊：外框與背景跟「抽獎玩法」統一 ---------- */
.prize {
    background:
        linear-gradient(180deg, rgba(247, 234, 208, .95), rgba(247, 234, 208, .75)),
        url(../img/deco/fan.svg);
    background-size: auto, 96px 96px;
    border: 1px solid #f8c9d9;
}

/* 淺色底上，標題緞帶也跟抽獎玩法一樣用紫色 */
.prize .section-title {
    background: linear-gradient(180deg, #6a1fd1, #3d0296);
    color: #ffe27a;
    border-color: #ffd51e;
    box-shadow: 0 4px 0 0 #2a0166;
}

.prize .section-title::before,
.prize .section-title::after {
    background: #2a0166;
}
/* 手機上住宿券名稱縮小一點，避免「店」單獨掉到下一行 */
@media (max-width: 767px) {
    .voucher__name {
        font-size: 1.4rem;
    }
}
/* 獎品區塊：拿掉外框與底色，住宿券直接放在頁面上 */
.prize {
    background: none;
    border: 0;
    padding-left: 0;
    padding-right: 0;
}
/* 說明文字斷行平均分配，避免最後一行只剩一個字 */
.voucher__note,
.voucher__name,
.ticket__title,
.ticket__note {
    text-wrap: balance;
}
@media (max-width: 767px) {
    .voucher__note {
        font-size: .78rem;
    }
}
/* =========================================================
   第八版（11/5 傍晚）：主視覺更熱鬧、飛機飛入改回來
   ========================================================= */

/* ---------- 標準字：進場彈出＋之後輕輕上下浮動 ---------- */
.hero__logo-wrap {
    position: relative;
    width: min(94%, 600px);
    margin: 0 auto;
}

.hero__logo {
    width: 100%;
    animation:
        logo-pop .9s cubic-bezier(.2, 1.4, .4, 1) both,
        logo-float 4s ease-in-out .9s infinite alternate;
}

@keyframes logo-pop {
    0% { transform: scale(.4) rotate(-6deg); opacity: 0; }
    70% { transform: scale(1.06) rotate(1deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes logo-float {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* 標準字周圍的閃爍星光 */
.spark {
    position: absolute;
    width: 26px;
    height: 26px;
    background: url(../img/deco/star.svg) center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(255, 213, 30, .9));
    animation: spark-twinkle 2.2s ease-in-out infinite;
    pointer-events: none;
}

.s1 { left: -2%; top: 8%; animation-delay: 0s; }
.s2 { right: 0; top: -2%; width: 34px; height: 34px; animation-delay: .5s; }
.s3 { right: -3%; bottom: 18%; animation-delay: 1s; }
.s4 { left: 8%; bottom: 0; width: 18px; height: 18px; animation-delay: 1.5s; }
.s5 { left: 46%; top: -6%; width: 20px; height: 20px; animation-delay: .8s; }

@keyframes spark-twinkle {
    0%, 100% { transform: scale(.3) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

@media (min-width: 768px) {
    .spark {
        width: 34px;
        height: 34px;
    }

    .s2 {
        width: 44px;
        height: 44px;
    }
}
/* =========================================================
   第九版（11/5 晚）：BN 改用整張主圖，只保留標準字周圍 5 顆星光
   ========================================================= */
.hero {
    padding: 0 0 72px;
    background: linear-gradient(180deg, #ab03a9 0%, #5003c0 100%);
}

.hero__banner {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero__banner-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero__inner {
    padding: 18px var(--gutter) 0;
}

.hero__date {
    margin-top: 0;
    color: #fff;
}

/* 星光：位置以 BN 圖的寬高百分比對準上方「吉航旅遊 7 週年慶」標準字 */
.hero__banner .spark {
    width: clamp(16px, 2.6vw, 44px);
    height: clamp(16px, 2.6vw, 44px);
}

.hero__banner .s1 { left: 30%; top: 8%; }
.hero__banner .s2 { left: 67%; top: 3%; width: clamp(20px, 3.2vw, 54px); height: clamp(20px, 3.2vw, 54px); }
.hero__banner .s3 { left: 68.5%; top: 33%; }
.hero__banner .s4 { left: 31%; top: 34%; width: clamp(12px, 2vw, 32px); height: clamp(12px, 2vw, 32px); }
.hero__banner .s5 { left: 49%; top: 0; width: clamp(12px, 2vw, 32px); height: clamp(12px, 2vw, 32px); }

@media (min-width: 768px) {
    .hero {
        padding-bottom: 100px;
    }

    .hero__inner {
        padding-top: 26px;
    }
}
/* =========================================================
   第十版：三張卡片壓在 BN 圖上（參考示意圖排版）
   ========================================================= */
.hero__inner {
    display: none;   /* 舊結構已移除，保險起見隱藏 */
}

.hero__cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: -22px 10px 0;
    line-height: 1.5;
}

.hero-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid #ab03a9;
    border-radius: 14px;
    background: #fff;
    color: #3d0296;
    text-decoration: none;
    box-shadow: 0 5px 0 0 #5003c0;
    transition: transform .15s, box-shadow .15s;
}

.hero-card__tag {
    display: block;
    margin: 0;
    padding: 5px 4px;
    background: linear-gradient(90deg, #5003c0, #ab03a9);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.hero-card__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px 10px;
    text-align: center;
}

.hero-card--count .hero-card__body {
    flex-direction: column;
    gap: 2px;
}

.hero-card__main {
    font-size: .88rem;
    font-weight: 900;
    line-height: 1.35;
}

.hero-card__go {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffd51e;
    color: #3d0296;
    font-weight: 900;
    line-height: 1;
}

.hero-card__sub {
    margin: 0;
    font-size: .68rem;
    color: #666;
}

/* 可點的卡片：滑上去往上浮，陰影改粉紅 */
.hero-card--link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 0 #ff467a;
}

.hero-card--link:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 0 #5003c0;
}

/* 倒數放進卡片：拿掉原本的膠囊底 */
.hero-card .hero__status {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 4px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #3d0296;
}

.hero-card .hero__status > span[aria-hidden] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 4px;
}

.hero-card .cd__label {
    width: 100%;
    font-size: .7rem;
    color: #3d0296;
}

.hero-card .cd__days {
    font-size: 1.9rem;
    color: #ff467a;
    text-shadow: 0 2px 0 #ffd51e;
}

.hero-card .cd__unit-text {
    font-size: .85rem;
    color: #3d0296;
}

/* 平板以上：卡片壓在 BN 圖下緣 */
@media (min-width: 768px) {
    .hero__cards {
        position: absolute;
        left: 50%;
        bottom: 3.5%;
        width: min(94%, 1100px);
        margin: 0;
        transform: translateX(-50%);
        gap: 18px;
    }

    .hero-card {
        border-width: 4px;
        border-radius: 18px;
        box-shadow: 0 6px 0 0 #5003c0;
    }

    .hero-card__tag {
        padding: 7px 8px;
        font-size: 1.05rem;
    }

    .hero-card__body {
        gap: 10px;
        padding: 12px 10px 14px;
    }

    .hero-card__main {
        font-size: 1.3rem;
    }

    .hero-card__go {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .hero-card__sub {
        font-size: .85rem;
    }

    .hero-card .cd__label {
        width: auto;
        font-size: 1rem;
    }

    .hero-card .cd__days {
        font-size: 2.6rem;
    }

    .hero-card .cd__unit-text {
        font-size: 1.1rem;
    }

    .hero {
        padding-bottom: 70px;
    }
}
/* 手機直式 BN：星光位置改對準直式圖上的標準字 */
@media (max-width: 767px) {
    .hero__banner picture {
        display: block;
    }

    .hero__banner .spark {
        width: 24px;
        height: 24px;
    }

    .hero__banner .s1 { left: 15%; top: 8%; }
    .hero__banner .s2 { left: 77%; top: 2.5%; width: 30px; height: 30px; }
    .hero__banner .s3 { left: 79%; top: 22%; }
    .hero__banner .s4 { left: 17%; top: 24%; width: 18px; height: 18px; }
    .hero__banner .s5 { left: 48%; top: 0; width: 18px; height: 18px; }
}
/* =========================================================
   建議 A：拿掉主視覺底部保留的空間與深紫底色，圖片直接接下面的內容
   ========================================================= */
.hero {
    padding-bottom: 12px;          /* 只留卡片硬邊陰影的空間 */
    background: none;
}

/* 原本接在主視覺下緣的米白弧形不需要了 */
.hero::after {
    display: none;
}

/* 活動重點原本往上疊進主視覺，改成正常間距 */
.summary {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .hero {
        padding-bottom: 0;
    }

    .summary {
        margin-top: 32px;
    }
}
/* 三張卡片整個放在 BN 圖範圍內（手機、桌機都是），不超出圖片 */
.hero__cards {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 3%;
    margin: 0;
    gap: 6px;
}

/* 卡片的硬邊陰影也要留在圖片裡 */
.hero {
    padding-bottom: 0;
}

@media (max-width: 767px) {
    .hero-card__tag {
        padding: 4px 2px;
        font-size: .72rem;
    }

    .hero-card__body {
        padding: 6px 3px 7px;
    }

    .hero-card__main {
        font-size: .82rem;
    }

    .hero-card .cd__days {
        font-size: 1.6rem;
    }

    .hero-card__sub {
        font-size: .62rem;
    }
}

@media (min-width: 768px) {
    .hero__cards {
        left: 50%;
        right: auto;
        bottom: 6%;
        width: min(94%, 1100px);
        transform: translateX(-50%);
        gap: 18px;
    }
}
/* 平板寬度（768～1023px）卡片縮小，避免蓋到圖上的「新朋友、老朋友抽…」 */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero__cards {
        bottom: 4%;
        gap: 12px;
    }

    .hero-card {
        border-width: 3px;
    }

    .hero-card__tag {
        padding: 4px 6px;
        font-size: .85rem;
    }

    .hero-card__body {
        padding: 6px 8px 8px;
        gap: 6px;
    }

    .hero-card__main {
        font-size: 1rem;
    }

    .hero-card__go {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .hero-card .cd__label {
        font-size: .8rem;
    }

    .hero-card .cd__days {
        font-size: 1.8rem;
    }

    .hero-card__sub {
        font-size: .72rem;
    }
}
/* =========================================================
   第九版（11/6）：獎品改成兩張券（住宿券 4 張＋1000 元禮券 10 張）
   ========================================================= */
.prize .voucher + .voucher {
    margin-top: 18px;
}

/* 1000 元禮券：桃紅色，跟住宿券的紫色區分 */
.voucher--gift .voucher__main {
    background-image:
        url(../img/deco/wave.svg),
        radial-gradient(circle at 90% 0%, rgba(255, 213, 30, .28), transparent 50%),
        linear-gradient(160deg, #e0287a 0%, #a3125a 100%);
    background-size: 60px 30px, auto, auto;
}

.voucher--gift .voucher__stub {
    border-left-color: rgba(163, 18, 90, .55);
}

@media (min-width: 768px) {
    .prize .voucher + .voucher {
        margin-top: 24px;
    }
}

/* 11/6 新 BN 圖：「新朋友、老朋友抽…＆1000 元禮券」在圖高 64%～69%，
   768～1279px 寬度卡片往下貼、縮一點，避免蓋到這行字 */
@media (min-width: 768px) and (max-width: 1279px) {
    .hero__cards {
        bottom: 2%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero__cards {
        bottom: 1.5%;
    }

    .hero-card__tag {
        padding: 3px 6px;
    }

    .hero-card__body {
        padding: 4px 8px 5px;
    }
}

/* 抽獎組別標題：獎項名稱整段不拆行（避免「1000」被切開） */
.group__title .nowrap {
    white-space: nowrap;
}
