/* ═══════════════════════════════════════════
   百面江湖 · 首發預購頁
   設計變量統一引用 tokens.css（品牌真相源）
   不自定義平行色系
   ═══════════════════════════════════════════ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-ui);
    line-height: 1.62;
}

a {
    color: inherit;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 4rem;
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(var(--blur-frosted));
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--color-text-bright);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.top-nav a {
    text-decoration: none;
}

.top-nav a:hover {
    color: var(--color-text-primary);
}

/* ── Hero ── */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: center;
    padding: 3rem 4rem 2.4rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-base);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/preorder_hub_banner.webp') center top / cover no-repeat;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at center, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.5) 80%, transparent 100%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.78) 50%, var(--color-bg-base) 100%);
    z-index: 1;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: block;
    margin: 0 0 0.65rem;
    color: var(--color-brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.product-kicker {
    display: block;
    margin: 0 0 0.65rem;
    color: var(--color-brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.14;
    font-family: var(--font-narrative);
}

h1 {
    font-size: 4.2rem;
    color: var(--color-text-bright);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    margin: 0.95rem 0 0;
    color: var(--color-brand-primary);
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-narrative);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-lede {
    max-width: 720px;
    margin: 1.1rem auto 0;
    color: var(--color-text-desc);
    font-size: 1.06rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* ── 倒計時 ── */
.hero-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.8rem auto 0;
    max-width: 480px;
}

.countdown-label {
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.countdown-cells {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.countdown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
}

.countdown-cell strong {
    font-size: 1.9rem;
    font-family: var(--font-narrative);
    color: var(--color-text-bright);
    line-height: 1;
}

.countdown-cell em {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-style: normal;
    color: var(--color-text-secondary);
}

/* ── 路線卡（Hero 分流入口） ── */
.hero-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.8rem;
}

.path-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--color-border-strong);
    border-left: 3px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.path-card--entry {
    border-left-color: var(--color-brand-primary);
}

.path-card--flagship {
    border-left-color: var(--color-brand-gold-dark);
}

.path-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-border-strong);
}

.path-card--entry:hover {
    border-left-color: var(--color-brand-primary);
}

.path-card--flagship:hover {
    border-left-color: var(--color-brand-gold);
}

.path-name {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-narrative);
    color: var(--color-text-bright);
}

.path-card--entry .path-name {
    color: var(--color-brand-primary);
}

.path-card--flagship .path-name {
    color: var(--color-brand-gold-dark);
}

.path-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-desc);
}

/* ── 購買按鈕（商品卡內） ── */
.preorder-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 120ms ease, box-shadow 120ms ease;
    background: var(--color-brand-primary);
    color: #1a120a;
    box-shadow: 0 14px 30px rgba(201, 169, 110, 0.22);
}

.preorder-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(201, 169, 110, 0.32);
}

.preorder-buy--quiet {
    border-color: var(--color-border-strong);
    color: var(--color-text-primary);
    background: var(--color-bg-card);
    box-shadow: none;
}

/* 旗艦金按鈕（帝王金 ≤5% 面積） */
.preorder-buy--gold {
    background: var(--color-brand-gold);
    color: #1a1208;
    box-shadow: 0 14px 30px rgba(255, 215, 0, 0.2);
}

.preorder-buy--gold:hover {
    box-shadow: 0 18px 38px rgba(255, 215, 0, 0.32);
}

.preorder-buy[data-disabled="true"] {
    background: var(--color-bg-card);
    color: var(--color-text-dim);
    border-color: var(--color-border);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ── 交付流程 ── */
.product-grid,
.notes-section {
    padding-inline: 4rem;
}

/* ── 商品卡 ── */
.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.4rem;
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
}

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-float);
    padding: 1.8rem;
    transition: border-color 180ms ease;
}

.product-card:hover {
    border-color: var(--color-border-strong);
}

/* 路線卡點擊後高亮目標商品卡 */
.product-card--spotlight {
    animation: spotlight-pulse 1.8s ease-out;
}

@keyframes spotlight-pulse {
    0% {
        border-color: var(--color-brand-gold);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4),
                    var(--shadow-float);
    }
    60% {
        border-color: var(--color-brand-gold);
        box-shadow: 0 0 0 12px rgba(255, 215, 0, 0),
                    var(--shadow-float);
    }
    100% {
        border-color: var(--color-border);
        box-shadow: var(--shadow-float);
    }
}

.product-card--spotlight--entry {
    animation: spotlight-pulse-entry 1.8s ease-out;
}

@keyframes spotlight-pulse-entry {
    0% {
        border-color: var(--color-brand-primary);
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4),
                    var(--shadow-float);
    }
    60% {
        border-color: var(--color-brand-primary);
        box-shadow: 0 0 0 12px rgba(201, 169, 110, 0),
                    var(--shadow-float);
    }
    100% {
        border-color: var(--color-border);
        box-shadow: var(--shadow-float);
    }
}

.product-card--entry {
    background:
        linear-gradient(160deg, var(--color-brand-subtle), transparent 60%),
        var(--color-bg-elevated);
}

.product-card--flagship {
    background:
        linear-gradient(160deg, rgba(255, 215, 0, 0.05), transparent 55%),
        var(--color-bg-elevated);
    border-color: var(--color-border-strong);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.product-kicker--gold {
    color: var(--color-brand-gold-dark);
}

.product-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    white-space: nowrap;
}

.product-price span {
    color: var(--color-text-bright);
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-narrative);
}

.product-price del {
    color: var(--color-text-ghost);
    font-size: 0.9rem;
}

.price-badge {
    margin-top: 0.2rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--color-brand-primary);
    border-radius: var(--radius-sm);
    color: var(--color-brand-primary);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.product-card h2 {
    font-size: 2.8rem;
    color: var(--color-text-bright);
}

.product-lede {
    margin: 0.9rem 0 0;
    color: var(--color-brand-primary);
    font-size: 1.08rem;
    font-weight: 700;
    font-family: var(--font-narrative);
}

.product-body {
    margin-top: 1.2rem;
    color: var(--color-text-body);
    flex: 1;
}

.product-body p {
    margin: 0 0 0.9rem;
}

.copy-hook {
    margin-top: 1.4rem !important;
    color: var(--color-text-bright) !important;
    font-weight: 700;
    font-family: var(--font-narrative);
}

.copy-shift {
    margin-top: 1.4rem !important;
    color: var(--color-brand-primary) !important;
    font-weight: 700;
    font-family: var(--font-narrative);
    font-size: 1.08rem !important;
}

.tool-list {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.tool-list li {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
}

.tool-list strong {
    color: var(--color-text-bright);
}

.tool-list span {
    color: var(--color-text-desc);
}

.tool-list--compact li {
    padding: 0.75rem 0.85rem;
}

.purchase-block {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border-divider);
}

.purchase-block .preorder-buy {
    width: 100%;
}

.purchase-meta {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.price-urgency {
    margin: 0;
    color: var(--color-brand-primary);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.delivery-note {
    margin: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* ── 須知 ── */
.notes-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--color-border);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.2rem;
}

.section-heading h2 {
    font-size: 2.4rem;
    color: var(--color-text-bright);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-elevated);
    padding: 0.95rem 1rem;
}

summary {
    cursor: pointer;
    font-weight: 800;
    line-height: 1.45;
    color: var(--color-text-primary);
}

details p {
    margin: 0.75rem 0 0;
    color: var(--color-text-desc);
    font-size: 0.94rem;
}

details p + p {
    margin-top: 0.5rem;
}

/* ── Footer ── */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 4rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    background: var(--color-bg-base);
}

.footer-brand {
    font-weight: 800;
    color: var(--color-text-bright);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--color-platform-discord);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 160ms ease, transform 120ms ease;
}

.discord-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.discord-btn svg {
    flex-shrink: 0;
}

.footer-email {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.footer-email:hover {
    color: var(--color-text-bright);
}

/* ── Sticky CTA（手機滾動時浮動） ── */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: none;
    padding: 0.7rem 1rem;
    background: rgba(10, 10, 10, 0.96);
    border-top: 1px solid var(--color-border-strong);
    backdrop-filter: blur(var(--blur-frosted));
}

.sticky-cta.is-visible {
    display: block;
}

.sticky-cta .preorder-buy {
    width: 100%;
}

/* ── Toast ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translate(-50%, 120%);
    width: min(calc(100vw - 2rem), 520px);
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-overlay-frosted);
    color: var(--color-text-bright);
    box-shadow: var(--shadow-float);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    z-index: 40;
}

.toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ── 手機優先斷點 ── */
@media (max-width: 980px) {
    .site-header,
    .hero-section,
    .product-grid,
    .notes-section,
    .site-footer {
        padding-inline: 1.25rem;
    }

    .hero-section,
    .product-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .hero-paths {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    h1 {
        font-size: 2.9rem;
    }

    .hero-subtitle {
        font-size: 1.18rem;
    }

    .hero-lede {
        font-size: 1rem;
    }

    .countdown-cell {
        min-width: 64px;
    }

    .countdown-cell strong {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
        padding-block: 0.65rem 0.7rem;
    }

    .top-nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
        font-size: 0.82rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero-section {
        padding-top: 1.4rem;
        padding-bottom: 1.4rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-lede {
        font-size: 0.96rem;
    }

    .hero-countdown {
        margin-top: 1.4rem;
    }

    .countdown-cells {
        gap: 0.4rem;
    }

    .countdown-cell {
        min-width: 0;
        flex: 1;
        padding: 0.5rem 0.3rem;
    }

    .countdown-cell strong {
        font-size: 1.35rem;
    }

    .product-card {
        padding: 1.2rem;
    }

    .product-card h2 {
        font-size: 2rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    /* 手機 sticky CTA 啟用，body 留底距離 */
    body.has-sticky-cta {
        padding-bottom: 72px;
    }

    .toast {
        bottom: 80px;
    }
}
