/* 樂透工具 - 共用樣式（威力彩 / 大樂透） */

body {
    font-family: 'Noto Sans TC', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

/* 卡片 */
.card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 按鈕 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.6);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(148, 163, 184, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}
.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.9);
}

/* 輸入框 */
input[type="text"],
input[type="number"],
textarea,
select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

textarea {
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
}

label {
    display: block;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

/* 結果區域 */
.result-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 600px;
    overflow-y: auto;
}

/* 中獎高亮 */
.prize-hit {
    color: #fbbf24;
    font-weight: 700;
}
.prize-miss {
    color: #64748b;
}
.prize-jackpot {
    color: #f43f5e;
    font-weight: 700;
    font-size: 1.1em;
}

/* 號碼球 */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0.15rem;
}
.ball-first {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}
.ball-second {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    color: white;
}
.ball-match {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
}

/* 導航 */
.nav-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #e2e8f0;
}

/* 首頁卡片 */
.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}
.feature-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* 統計表格 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}
.stats-table th,
.stats-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.stats-table th {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.stats-table td {
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* 複製按鈕回饋 */
.copied {
    background: #22c55e !important;
    border-color: #22c55e !important;
}
