/* 好运兔门店端 - 公共样式 */

/* CSS 变量 */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.75);
    --border: rgba(148,163,184,0.15);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --success: #34d399;
    --danger: #ef4444;
    --warning: #f97316;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 13px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(251,191,36,0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom right, rgba(16,185,129,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container { max-width: 1400px; margin: 0 auto; padding: 10px; position: relative; z-index: 1; }

/* 页头样式 */
.top-bar {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
}

.top-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; flex-wrap: wrap; gap: 10px; }

/* 财务信息 */
.finance-section { display: flex; gap: 20px; align-items: center; }
.finance-group { display: flex; flex-direction: column; gap: 8px; }
.finance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.finance-item { display: flex; flex-direction: column; align-items: center; }
.finance-label { font-size: 11px; color: #94a3b8; }
.finance-value { font-size: 15px; font-weight: 600; font-family: 'Courier New', monospace; color: #e2e8f0; }
.finance-value.orange { color: #fbbf24; }
.finance-value.red { color: #f87171; }
.finance-value.green { color: #34d399; }

/* 彩种倒计时 */
.lottery-section { display: flex; gap: 8px; }
.lottery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(30,41,59,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    min-width: 120px;
}
.lottery-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.lottery-status { font-size: 9px; font-weight: 500; color: #e2e8f0; margin-bottom: 2px; }
.lottery-period { font-size: 13px; font-weight: 600; color: #fbbf24; margin: 2px 0; background: rgba(251,191,36,0.15); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(251,191,36,0.3); }
.countdown-value { font-size: 16px; font-weight: 700; font-family: monospace; color: var(--accent); }
.countdown-label { font-size: 9px; color: var(--text-secondary); }

/* 导航按钮 */
.nav-menu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(30,41,59,0.4);
    backdrop-filter: blur(4px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-btn:hover::before { opacity: 1; }
.nav-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #1e293b; border-color: var(--accent); box-shadow: var(--shadow-md); }
.nav-btn.out { background: linear-gradient(135deg, var(--danger), #dc4a4a); color: white; border-color: var(--danger); }
.nav-btn.out:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(239,68,68,0.3); }

/* 响应式 */
@media (max-width: 768px) {
    .top-row { flex-direction: column; align-items: stretch; }
    .finance-section { flex-wrap: wrap; justify-content: center; }
    .lottery-section { flex-wrap: wrap; justify-content: center; }
    .nav-menu { width: 100%; justify-content: center; }
}
