:root {
    --neon-green: #00ffcc;
    --ticket-bg: #eceae6; /* 仿實體復古高質感票券底色 */
    --bg-dark: #0a0a0a;
    --text-dark: #1a1a1a;
    --text-muted: #666;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    /* 🟢 核心修改 1：採用動態視窗高度 dvh，實時扣除 LINE 底部功能列的真正高度，並掛載 JS 備用精算防線 */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    background-color: #3d3d3d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
}

/* 滿版縱向全畫面滾動容器 */
.scroller-container {
    width: 100%;
    /* 🟢 核心修改 2：容器同步使用動態視窗高度，避免高度在手機版被寫死而撐破 */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: 500px;
    margin: 0 auto;
}

/* 隱藏滾動條 */
.scroller-container::-webkit-scrollbar {
    display: none;
}

/* 每一場演出的直式滿版畫面 */
.page-section {
    width: 100%;
    /* 🟢 核心修改 3：每一頁卡片錨點區塊強制完美契合 LINE 動態視窗，絕不側漏或爆框 */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
    position: relative;
    padding: 2vh 4vw; /* 自動適應各種手機螢幕比例的內距 */
}

/* 頂部全站標題小提示 (輕量化呈現，不干擾卡片) */
.top-brand {
    position: absolute;
    top: 2vh;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    z-index: 10;
    pointer-events: none;
}

/* 💡 復古實體票券卡片本體設計 */
.ticket-card {
    width: 100%;
    height: 100%;
    background-color: var(--ticket-bg);
    border-radius: 24px;
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);*/
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease;
}

/* 點擊時的物理微縮回饋，提升單手點擊快感 */
.ticket-card:active:not(.card-soldout) {
    transform: scale(0.98);
}

.ticket-card.card-soldout {
    filter: grayscale(0.6) brightness(0.8);
}

/* 1. 上半部：主視覺區塊 */
.ticket-header {
    width: 100%;
    height: 48%; /* 固定佔比確保完美視覺分配 */
    position: relative;
    background-color: transparent; /* 移除原本的深色底，改為透明 */
    padding: 8px 8px 0 8px;     /* 🟢 核心修改：幫上、左、右加上內距，形成白框 */
    box-sizing: border-box;
}

.artist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;            /* 🟢 核心修改：幫相片加上圓角，符合範本質感 */
}

.style-badge {
    position: absolute;
    top: 28px;  /* 往下挪一點 */
    left: 28px; /* 往右挪一點 */
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 仿附圖的设计美學橘點 */
.design-dot-top {
    position: absolute;
    top: 28px;   /* 往下挪一點 */
    right: 28px;  /* 往左挪一點 */
    width: 14px;
    height: 14px;
    background-color: #ff5533;
    border-radius: 50%;
}

/* 2. 中半部：核心日期與藝術字體區塊 */
.ticket-body {
    flex-grow: 1;
    padding: 2.5vh 20px 1.5vh 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    background-color: #fff;
}

/* 仿附圖：大氣橫向交叉日期編排 */
.date-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5vh;
}

.date-day {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: -1px;
}

.date-line {
    flex-grow: 0.2;
    height: 1px;
    background-color: #aaa;
}

.date-month-year {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}

/* 仿附圖：經典大文字襯線/無襯線音樂家大名 */
.artist-name {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 5px 0;
    color: #000;
    word-break: break-all;
}

.time-slot {
    font-size: 1.2rem;
    font-weight: 400;
    color: #000000;
    padding: 0px 10px 10px 10px;
    border-radius: 6px;
    margin: 10px 0px;
}

.artist-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

/* 仿附圖置中的第二顆美學裝飾橘點 */
.design-dot-mid {
    position: absolute;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background-color: #ff5533;
    border-radius: 50%;
    z-index: 5;
}

/* 3. 🎫 核心精髓：虛線打孔剪票線 */
.ticket-perforation {
    width: 100%;
    height: 2px;
    border-top: 2px dashed #b5b2ad;
    position: relative;
}

/* 左右內凹剪票口半圓 */
.ticket-perforation::before, .ticket-perforation::after {
    content: '';
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    background-color: #3d3d3d;
    border-radius: 50%;
}
.ticket-perforation::before { left: -11px; }
.ticket-perforation::after { right: -11px; }

/* 4. 下半部：票根簽到存根聯 */
.ticket-footer {
    height: 24%;
    padding: 2vh 20px;
    background-color: #e3e0da;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 狀態標籤提示 */
.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 模擬實體國際條碼編排 */
.barcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 0.85;
}

.barcode-lines {
    width: 160px;
    height: 38px;
    background: repeating-linear-gradient(
        90deg,
        #111,
        #111 2px,
        transparent 2px,
        transparent 5px,
        #111 5px,
        #111 8px,
        transparent 8px,
        transparent 9px,
        #111 9px,
        #111 10px
    );
}

.barcode-num {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* 線上索票動態按鈕 */
.action-button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-available {
    background-color: #06C755;
    color: #fff;
}

.btn-soldout-style {
    background-color: #ccc;
    color: #777;
    text-decoration: line-through;
    box-shadow: none;
}

/* 上下滑動引導提示 */
.scroll-hint {
    position: absolute;
    bottom: 1.2vh;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

@keyframes pulse {
    0% { opacity: 0.2; transform: translate(-50%, 0); }
    50% { opacity: 0.7; transform: translate(-50%, -5px); }
    100% { opacity: 0.2; transform: translate(-50%, 0); }
}

/* 無資料防呆狀態 */
.no-data-view {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
a.about-sunwood {
    color: #000;
    margin-bottom: 10px;
}
a.about-sunwood:visited {
    color: #000;
}