/* =====================================================================
 * 即時開票 - 前台共用與群組列表（白色主題）
 * 群組即時票數頁（電視版面）樣式見 vote-tv.css
 * ===================================================================== */
:root {
    --vote-bg: #f4f6fa;
    --vote-surface: #ffffff;
    --vote-border: #e3e8ef;
    --vote-text: #1f2937;
    --vote-muted: #6b7280;
    --vote-primary: #2563eb;
    --vote-radius: 16px;
    --vote-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.vote-body {
    min-height: 100vh;
    background: var(--vote-bg);
    color: var(--vote-text);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.vote-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

.vote-main {
    padding-top: 24px;
    padding-bottom: 48px;
}

/* ===== 頁首 ===== */
.vote-header {
    background: var(--vote-surface);
    border-bottom: 1px solid var(--vote-border);
}

.vote-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.vote-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.vote-title i {
    margin-right: 12px;
    color: var(--vote-primary);
}

.vote-back {
    flex: 0 0 100%;
    color: var(--vote-muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.vote-back:hover {
    color: var(--vote-primary);
}

.vote-back i {
    margin-right: 6px;
}

/* ===== 空資料 ===== */
.vote-empty {
    padding: 48px 16px;
    border: 1px dashed var(--vote-border);
    border-radius: var(--vote-radius);
    background: var(--vote-surface);
    color: var(--vote-muted);
    text-align: center;
}

/* ===== 群組列表 ===== */
.vote-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.vote-group-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--vote-border);
    border-radius: var(--vote-radius);
    background: var(--vote-surface);
    box-shadow: var(--vote-shadow);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vote-group-card:hover,
.vote-group-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--vote-primary);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.vote-group-card-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.vote-group-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    color: var(--vote-muted);
    font-size: 0.95rem;
}

.vote-group-card-meta i {
    margin-right: 6px;
}

.vote-group-card-go {
    margin-top: auto;
    color: var(--vote-primary);
    font-weight: 700;
}

.vote-group-card-go i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.vote-group-card:hover .vote-group-card-go i {
    transform: translateX(4px);
}

/* 使用者設定減少動態效果 */
@media (prefers-reduced-motion: reduce) {
    .vote-group-card,
    .vote-group-card-go i {
        transition: none;
    }
}
