/* ============================================================
   style.css - 主樣式表(暖色懷舊雙主題系統)
   楓界 maples.tw - 新楓之谷經典版 交流交易平台
   設計概念:「回到那年的楓之谷」- 楓糖橙 / 落日紅 / 蜂蜜金 / 羊皮紙
   ============================================================ */

/* ==================== CSS 變數:明亮主題(午後楓林) ==================== */
:root,
[data-theme="light"] {
    /* 楓之谷暖色主色系 */
    --maple-amber: #e8842c;
    /* 楓糖橙 */
    --maple-sunset: #d4502e;
    /* 落日紅 */
    --maple-honey: #f6b93b;
    /* 蜂蜜金 */
    --maple-leaf: #c0392b;
    /* 楓葉紅 */
    --maple-green: #6a994e;
    /* 蘑菇森林綠 */

    --primary-color: #6b3f22;
    --primary-light: #8a5632;
    --primary-dark: #4a2a15;

    --accent-color: var(--maple-amber);
    --accent-light: #f0a458;
    --accent-dark: #c96c1a;

    /* 舊版相容別名 */
    --maple-gold: var(--maple-honey);
    --maple-orange: var(--maple-amber);
    --maple-red: var(--maple-sunset);
    --secondary-color: var(--maple-sunset);
    --secondary-light: #e2745a;
    --secondary-dark: #b03c20;

    /* 背景色(羊皮紙暖底) */
    --bg-primary: #fdf6e9;
    --bg-secondary: #f7ecd8;
    --bg-tertiary: #f0e0c4;
    --bg-card: #fffaf0;
    --bg-hover: #f5e8d0;
    --background-light: #f7ecd8;

    /* 文字色 */
    --text-primary: #3a2418;
    --text-secondary: #5c4433;
    --text-muted: #8a715c;
    --text-light: #fdf6e9;
    --text-dark: #3a2418;
    --text-on-primary: #fff8ec;

    /* 邊框與陰影(暖色調陰影) */
    --border-color: #e6d4b4;
    --border-light: #efe1c6;
    --shadow-sm: 0 2px 4px rgba(107, 63, 34, 0.08);
    --shadow-md: 0 6px 18px rgba(107, 63, 34, 0.12);
    --shadow-lg: 0 12px 32px rgba(107, 63, 34, 0.16);
    --shadow-xl: 0 22px 52px rgba(107, 63, 34, 0.2);

    /* 漸層 */
    --gradient-primary: linear-gradient(135deg, #4a2a15 0%, #8a4a20 100%);
    --gradient-accent: linear-gradient(135deg, #e8842c 0%, #d4502e 100%);
    --gradient-maple: linear-gradient(135deg, #f6b93b 0%, #e8842c 45%, #d4502e 100%);
    --gradient-hero: linear-gradient(180deg, #2e1a0e 0%, #6b3418 45%, #c96c1a 100%);

    /* 玻璃擬態 */
    --glass-bg: rgba(255, 250, 240, 0.85);
    --glass-border: rgba(232, 132, 44, 0.25);
    --glass-blur: blur(20px);

    /* 其他 */
    --navbar-height: 70px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-display: 'Noto Serif TC', 'PMingLiU', 'Microsoft JhengHei', serif;
    --font-body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', -apple-system, sans-serif;
}

/* ==================== CSS 變數:暗黑主題(深夜楓林) ==================== */
[data-theme="dark"] {
    --maple-amber: #f0964a;
    --maple-sunset: #e8663f;
    --maple-honey: #ffd166;
    --maple-leaf: #e05b4b;
    --maple-green: #8ab873;

    --primary-color: #241610;
    --primary-light: #3a2418;
    --primary-dark: #150c07;

    --accent-color: var(--maple-amber);
    --accent-light: #f5b070;
    --accent-dark: #d97a2c;

    --maple-gold: var(--maple-honey);
    --maple-orange: var(--maple-amber);
    --maple-red: var(--maple-sunset);
    --secondary-color: var(--maple-sunset);
    --secondary-light: #ef8a68;
    --secondary-dark: #c94e2c;

    /* 背景色(炭褐暖夜) */
    --bg-primary: #1a120c;
    --bg-secondary: #221810;
    --bg-tertiary: #2d2015;
    --bg-card: #261b12;
    --bg-hover: #332417;
    --background-light: #221810;

    --text-primary: #f2e6d4;
    --text-secondary: #d4bfa4;
    --text-muted: #a08a70;
    --text-light: #faf3e6;
    --text-dark: #f2e6d4;
    --text-on-primary: #fff8ec;

    --border-color: #3d2c1c;
    --border-light: #322416;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 22px 52px rgba(0, 0, 0, 0.65);

    --gradient-primary: linear-gradient(135deg, #150c07 0%, #47250f 100%);
    --gradient-accent: linear-gradient(135deg, #f0964a 0%, #e8663f 100%);
    --gradient-maple: linear-gradient(135deg, #ffd166 0%, #f0964a 45%, #e8663f 100%);
    --gradient-hero: linear-gradient(180deg, #0d0805 0%, #2e1708 55%, #7a3d14 100%);

    --glass-bg: rgba(38, 27, 18, 0.85);
    --glass-border: rgba(240, 150, 74, 0.2);
}

/* ==================== 全局基礎樣式 ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
    padding-top: var(--navbar-height);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

/* 無障礙:跳至內容連結 */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top var(--transition-base);
}

.skip-to-content:focus {
    top: 0;
    color: #fff;
}

/* ==================== 主題切換按鈕 ==================== */
.theme-toggle-btn {
    background: rgba(255, 244, 224, 0.14);
    border: 2px solid rgba(255, 244, 224, 0.22);
    color: #ffe9c4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(255, 244, 224, 0.26);
    transform: rotate(180deg) scale(1.1);
}

.theme-toggle-btn:focus {
    outline: 2px solid rgba(255, 224, 170, 0.6);
    outline-offset: 2px;
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    transition: all var(--transition-base);
    font-size: 1rem;
}

[data-theme="light"] .theme-icon-light {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

/* ============================================================
   預約主視覺(招牌區塊):巨型計數器 + EXP 經驗條
   ============================================================ */
.reserve-hero {
    position: relative;
    background: var(--gradient-hero);
    color: var(--text-light);
    text-align: center;
    padding: 4.5rem 1rem 5.5rem;
    overflow: hidden;
    isolation: isolate;
}

/* 落日光暈 */
.reserve-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -34vw;
    width: 90vw;
    height: 90vw;
    max-width: 1100px;
    max-height: 1100px;
    transform: translateX(-50%);
    background: radial-gradient(circle,
            rgba(255, 209, 102, 0.55) 0%,
            rgba(240, 150, 74, 0.35) 30%,
            rgba(212, 80, 46, 0.15) 55%,
            transparent 72%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: sunsetBreath 9s ease-in-out infinite alternate;
}

@keyframes sunsetBreath {
    from {
        opacity: 0.75;
        transform: translateX(-50%) scale(1);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1.06);
    }
}

/* 細緻格線紋理(像素遊戲回憶感) */
.reserve-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 232, 190, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 232, 190, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 25%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.reserve-hero>.container {
    position: relative;
    z-index: 2;
}

.reserve-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--maple-honey);
    border: 1px solid rgba(255, 209, 102, 0.35);
    background: rgba(255, 209, 102, 0.08);
    padding: 0.55rem 1.4rem 0.55rem 1.65rem;
    border-radius: 50px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(6px);
}

.reserve-eyebrow .dot-live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7ddf85;
    box-shadow: 0 0 0 0 rgba(125, 223, 133, 0.7);
    animation: livePing 1.8s ease-out infinite;
    flex-shrink: 0;
}

@keyframes livePing {
    0% {
        box-shadow: 0 0 0 0 rgba(125, 223, 133, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(125, 223, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(125, 223, 133, 0);
    }
}

.reserve-kicker {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: rgba(255, 240, 214, 0.85);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 巨型計數器 */
.reserve-count-giant {
    font-family: var(--font-display);
    font-size: clamp(3.8rem, 13vw, 9rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    color: #fff4dd;
    background: linear-gradient(180deg, #fff6e0 15%, #ffd166 55%, #f0964a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 6px 22px rgba(232, 132, 44, 0.45));
    margin: 0 0 0.35rem;
}

.reserve-count-unit {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255, 240, 214, 0.9);
    font-weight: 600;
    letter-spacing: 0.35em;
    margin-bottom: 2.25rem;
    padding-left: 0.35em;
}

/* EXP 經驗條(招牌元素) */
.exp-bar-wrap {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.exp-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: rgba(255, 240, 214, 0.75);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.exp-bar-label .exp-pct {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--maple-honey);
    font-variant-numeric: tabular-nums;
}

.exp-bar {
    position: relative;
    height: 22px;
    background: rgba(20, 10, 4, 0.65);
    border: 2px solid rgba(255, 209, 102, 0.4);
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(255, 209, 102, 0.12);
}

.exp-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.14) 0 6px,
            transparent 6px 12px),
        linear-gradient(180deg, #ffe08a 0%, #ffc94d 45%, #f0964a 100%);
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.7);
}

/* 經驗條流光 */
.exp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: expShine 2.6s ease-in-out infinite;
}

@keyframes expShine {
    0% {
        left: -40%;
    }

    60%,
    100% {
        left: 110%;
    }
}

.exp-bar-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 240, 214, 0.6);
    text-align: right;
    letter-spacing: 0.05em;
}

/* 預約 CTA */
.reserve-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reserve-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--gradient-maple);
    color: #3a1c08;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    border: none;
    box-shadow:
        0 10px 30px rgba(232, 132, 44, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.45);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: reservePulse 2.4s ease-in-out infinite;
}

.reserve-btn:hover,
.reserve-btn:focus {
    color: #2c1404;
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 16px 42px rgba(232, 132, 44, 0.65),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    animation-play-state: paused;
}

@keyframes reservePulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(232, 132, 44, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 0 0 0 rgba(255, 209, 102, 0.35);
    }

    50% {
        box-shadow: 0 10px 34px rgba(232, 132, 44, 0.7), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 0 0 14px rgba(255, 209, 102, 0);
    }
}

.reserve-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 244, 224, 0.08);
    border: 2px solid rgba(255, 224, 170, 0.35);
    color: #ffe9c4;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.reserve-sub-btn:hover {
    background: rgba(255, 244, 224, 0.16);
    border-color: rgba(255, 224, 170, 0.6);
    color: #fff4dd;
    transform: translateY(-3px);
}

.reserve-updated {
    margin-top: 1.4rem;
    font-size: 0.78rem;
    color: rgba(255, 240, 214, 0.5);
    letter-spacing: 0.06em;
}

/* ==================== Hero 回憶敘事區 ==================== */
.hero-section {
    position: relative;
    background:
        radial-gradient(ellipse 75% 55% at 15% 20%, rgba(246, 185, 59, 0.12), transparent 60%),
        radial-gradient(ellipse 65% 55% at 85% 75%, rgba(212, 80, 46, 0.1), transparent 60%),
        var(--bg-primary);
    padding: 5.5rem 0 4.5rem;
    overflow: hidden;
    transition: background-color var(--transition-base);
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* 漂浮楓葉 */
.maple-leaf {
    position: absolute;
    width: 28px;
    height: 28px;
    top: 0;
    opacity: 0;
    animation: mapleFall linear infinite;
    will-change: transform;
}

.maple-leaf svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(232, 132, 44, 0.35));
}

.maple-leaf:nth-child(1) {
    left: 6%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.maple-leaf:nth-child(2) {
    left: 24%;
    animation-duration: 18s;
    animation-delay: 3s;
    width: 20px;
    height: 20px;
}

.maple-leaf:nth-child(3) {
    left: 48%;
    animation-duration: 13s;
    animation-delay: 1.5s;
    width: 32px;
    height: 32px;
}

.maple-leaf:nth-child(4) {
    left: 72%;
    animation-duration: 17s;
    animation-delay: 5s;
}

.maple-leaf:nth-child(5) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 2s;
    width: 24px;
    height: 24px;
}

@keyframes mapleFall {
    0% {
        transform: translateY(-60px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    8% {
        opacity: 0.55;
    }

    50% {
        transform: translateY(50vh) rotate(320deg) translateX(30px);
    }

    88% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(105vh) rotate(680deg) translateX(-20px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--maple-sunset);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-title .title-accent {
    background: var(--gradient-maple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.main-cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-accent);
    color: #fff8ec;
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    box-shadow: 0 8px 24px rgba(212, 80, 46, 0.35);
    transition: all var(--transition-base);
    border: none;
}

.main-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(212, 80, 46, 0.5);
    color: #fff8ec;
}

.secondary-cta-button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--maple-sunset);
    padding: 0.95rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    border: 2px solid var(--maple-amber);
    transition: all var(--transition-base);
}

.secondary-cta-button:hover {
    background: var(--maple-amber);
    color: #fff8ec;
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(232, 132, 44, 0.35);
}

/* 回憶統計(拍立得風格小卡) */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--maple-amber);
    border-radius: var(--radius-md);
    padding: 1.4rem 0.75rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow-md);
}

.stat-item:nth-child(even):hover {
    transform: translateY(-6px) rotate(1deg);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--maple-sunset);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: clamp(0.75rem, 1.4vw, 0.88rem);
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ==================== 區塊通用樣式 ==================== */
.section-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(232, 132, 44, 0.1);
    color: var(--maple-sunset);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    border: 1px solid rgba(232, 132, 44, 0.25);
}

[data-theme="dark"] .section-badge {
    background: rgba(240, 150, 74, 0.12);
    border-color: rgba(240, 150, 74, 0.3);
}

/* ==================== 特色功能區塊 ==================== */
.features-section {
    background: var(--bg-secondary);
    padding: 4.5rem 0;
    transition: background-color var(--transition-base);
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-maple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--maple-amber);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff8ec;
    font-size: 1.75rem;
    transition: all var(--transition-base);
    box-shadow: 0 6px 16px rgba(212, 80, 46, 0.3);
}

.feature-card:hover .feature-icon-wrap {
    transform: rotateY(180deg);
    background: var(--gradient-maple);
    box-shadow: 0 6px 18px rgba(246, 185, 59, 0.45);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==================== 回到頂端按鈕 ==================== */
.fab-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 999;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.fab-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-maple);
    color: #3a1c08;
}

.fab-button:focus {
    outline: 3px solid rgba(232, 132, 44, 0.5);
    outline-offset: 2px;
}

/* ==================== SEO 隱藏內容 ==================== */
.seo-content {
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ==================== 動畫類別 ==================== */
.fx-fade-in {
    animation: fxFadeIn 0.8s ease-out both;
}

@keyframes fxFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fx-fade-up {
    animation: fxFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fxFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 991.98px) {
    .reserve-hero {
        padding: 3.5rem 1rem 4.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .features-section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 60px;
    }

    .reserve-hero {
        padding: 3rem 1rem 3.75rem;
    }

    .reserve-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        padding: 0.45rem 1rem 0.45rem 1.2rem;
    }

    .reserve-count-unit {
        margin-bottom: 1.75rem;
    }

    .exp-bar-wrap {
        margin-bottom: 2rem;
    }

    .reserve-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }

    .reserve-sub-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 4rem 0 3.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .main-cta-button,
    .secondary-cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .fab-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon-wrap {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .exp-bar {
        height: 18px;
    }
}

/* 列印樣式 */
@media print {

    .navbar-custom,
    .fab-button,
    .theme-toggle-btn,
    .hero-cta-group,
    .reserve-cta-group {
        display: none !important;
    }

    body {
        padding-top: 0;
        color: #000;
        background: #fff;
    }
}

/* 減少動畫偏好 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦點可見性(無障礙) */
*:focus-visible {
    outline: 3px solid var(--maple-amber);
    outline-offset: 2px;
}

/* 選取文字樣式 */
::selection {
    background: var(--maple-amber);
    color: #fff8ec;
}

/* 滾動條美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--maple-amber);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}