/* 云端挂机系统 Go版 - 样式 */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.header .version {
    font-size: 12px;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.server-time {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* 头部右侧 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.logout-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Header按钮组 */
.header-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn-secondary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.header-btn-secondary:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    transform: translateY(-1px);
}

.header-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.header-btn-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-1px);
}

.header-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    text-decoration: none;
    display: inline-block;
}

.header-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-1px);
}

/* ★★★ 高端开奖区域 ★★★ */
.lottery-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

/* 高端版开奖区域 */
.lottery-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 24px 28px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 背景装饰 */
.lottery-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.lottery-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.lottery-particle.p1 { top: 20%; left: 10%; animation-delay: 0s; }
.lottery-particle.p2 { top: 60%; left: 85%; animation-delay: 2s; }
.lottery-particle.p3 { top: 80%; left: 30%; animation-delay: 4s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.8; }
}

.lottery-scanline {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.08), transparent);
    animation: scanMove 4s ease-in-out infinite;
}

@keyframes scanMove {
    0% { left: -50%; }
    100% { left: 150%; }
}

.lottery-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.lottery-latest, .lottery-next {
    flex: 1;
    text-align: center;
}

.lottery-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.lottery-label-icon {
    font-size: 16px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 分隔线 */
.lottery-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}

.divider-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    animation: dotGlow 1.5s ease-in-out infinite;
}

@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.6); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 1); }
}

/* ★★★ 3D立体开奖球 ★★★ */
.lottery-balls {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.lottery-balls-3d {
    gap: 10px;
    perspective: 500px;
}

.ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* 3D立体球 */
.ball-3d {
    width: 44px;
    height: 44px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    transform-style: preserve-3d;
    animation: ballBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.ball-3d::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 35%;
    height: 25%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(1px);
}

.ball-3d::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 8px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes ballBounce {
    0% { transform: translateY(-30px) scale(0.5); opacity: 0; }
    60% { transform: translateY(5px) scale(1.1); opacity: 1; }
    80% { transform: translateY(-3px) scale(0.95); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 3D球颜色 */
.ball-3d.ball-blue {
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.ball-3d.ball-green {
    background: linear-gradient(145deg, #4ade80 0%, #22c55e 50%, #15803d 100%);
    box-shadow: 
        0 4px 15px rgba(34, 197, 94, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.ball-3d.ball-red {
    background: linear-gradient(145deg, #f87171 0%, #ef4444 50%, #b91c1c 100%);
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.ball-3d.ball-purple {
    background: linear-gradient(145deg, #c084fc 0%, #a855f7 50%, #7e22ce 100%);
    box-shadow: 
        0 4px 15px rgba(168, 85, 247, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

.ball-3d.ball-orange {
    background: linear-gradient(145deg, #fb923c 0%, #f97316 50%, #c2410c 100%);
    box-shadow: 
        0 4px 15px rgba(249, 115, 22, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* 普通球颜色保留 */
.ball-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ball-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ball-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.ball-purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.ball-orange { background: linear-gradient(135deg, #f97316, #ea580c); }

.ball-sm {
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 2px;
}

/* ★★★ 高端倒计时 ★★★ */
.countdown-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 28px;
    font-weight: bold;
}

.countdown-premium {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    min-width: 140px;
    min-height: 70px;
    overflow: hidden;
}

.countdown-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.3), transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: glowRotate 4s linear infinite;
    opacity: 0.5;
}

@keyframes glowRotate {
    100% { transform: rotate(360deg); }
}

.countdown-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border-radius: 14px;
    margin: 2px;
}

.countdown-number {
    font-size: 36px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.countdown-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 2px;
}

.countdown-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4, #22c55e);
    border-radius: 0 0 16px 16px;
    transition: width 1s linear;
    width: 100%;
}

/* 倒计时状态变化 */
.countdown-premium.warning .countdown-number {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-premium.warning .countdown-glow {
    background: conic-gradient(from 0deg, transparent, rgba(251, 191, 36, 0.4), transparent, rgba(245, 158, 11, 0.4), transparent);
}

.countdown-premium.urgent .countdown-number {
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: urgentPulse 0.5s ease-in-out infinite;
}

.countdown-premium.urgent .countdown-glow {
    background: conic-gradient(from 0deg, transparent, rgba(239, 68, 68, 0.5), transparent, rgba(248, 113, 113, 0.5), transparent);
    animation: glowRotate 2s linear infinite;
}

.countdown-premium.urgent {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* 开奖中状态 */
.countdown-premium.drawing .countdown-inner {
    flex-direction: column;
    gap: 2px;
}

.countdown-drawing-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #22d3ee, #06b6d4, #0891b2, #22d3ee);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: drawingFlow 1.5s ease-in-out infinite;
}

@keyframes drawingFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.countdown-drawing-dots {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.countdown-drawing-dots span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.countdown-drawing-dots span:nth-child(1) { animation-delay: 0s; }
.countdown-drawing-dots span:nth-child(2) { animation-delay: 0.2s; }
.countdown-drawing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; }
}

.countdown-premium.drawing .countdown-glow {
    background: conic-gradient(from 0deg, transparent, rgba(6, 182, 212, 0.5), transparent, rgba(34, 211, 238, 0.5), transparent);
    animation: glowRotate 1.5s linear infinite;
}

.countdown-premium.drawing {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

/* 旧的倒计时紧急状态兼容 */
.countdown-box.urgent {
    animation: pulse 0.5s ease-in-out infinite;
    color: var(--danger);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 页脚样式升级 */
.lottery-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    font-size: 12px;
    color: var(--text-dim);
}

.footer-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    animation: footerPulse 2s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 5px rgba(34, 197, 94, 0.5); }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(34, 197, 94, 0.8); }
}

.lottery-history {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: 8px;
}

.history-issue {
    font-size: 12px;
    color: var(--text-dim);
}

/* 用户区域 */
.users-section, .bets-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border-left: 4px solid var(--text-dim);
}

.user-card.running {
    border-left-color: var(--success);
}

.user-card.stopped {
    border-left-color: var(--danger);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.seq-no {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}

.users-count {
    text-align: center;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.users-count strong {
    color: var(--primary);
    font-size: 18px;
}

.user-meta {
    display: flex;
    gap: 8px;
}

.badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--border);
    color: var(--text-secondary);
}

.badge-running {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.badge-stopped {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.user-stats {
    display: flex;
    gap: 24px;
    margin: 0 24px;
}

/* 账号卡片网格布局 - 显示更多设置信息 */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
    margin: 12px 16px;
    padding: 12px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
}

.user-stats-grid .stat {
    text-align: center;
    padding: 4px 0;
}

.user-stats-grid .stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.user-stats-grid .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #e0e7ff;
}

.user-stats-grid .stat-value.profit {
    color: #34d399;
}

.user-stats-grid .stat-value.loss {
    color: #f87171;
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    display: block;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

.stat-value.profit {
    color: var(--success);
}

.stat-value.loss {
    color: var(--danger);
}

.user-actions {
    display: flex;
    gap: 8px;
}

/* 投注记录 */
.bets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--text-dim);
}

.bet-item.win {
    border-left-color: var(--success);
}

.bet-item.lose {
    border-left-color: var(--danger);
}

.bet-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bet-issue {
    font-weight: 600;
}

.bet-user {
    color: var(--text-secondary);
    font-size: 14px;
}

.bet-detail {
    display: flex;
    gap: 12px;
}

.bet-dir {
    font-weight: 600;
    color: var(--primary);
}

.bet-result {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.bet-result.win {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.bet-result.lose {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.bet-result.pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.win-amount {
    display: block;
    font-size: 12px;
    margin-top: 2px;
    color: var(--success);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--border);
    color: var(--text-primary);
}

.btn:hover {
    background: var(--text-dim);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--success);
    color: #0f172a;
}

.btn-warning {
    background: var(--warning);
    color: #0f172a;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
    margin-top: 16px;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 520px;
}

.modal-sm {
    max-width: 320px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    font-size: 24px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group .required {
    color: var(--danger);
}

.form-group .optional {
    color: var(--text-dim);
    font-weight: normal;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control::placeholder {
    color: var(--text-dim);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    margin-top: 6px;
    color: var(--text-dim);
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn .form-control {
    flex: 1;
}

/* 登录模式切换 */
.login-mode-tabs {
    display: flex;
    gap: 8px;
}

.mode-tab {
    flex: 1;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.mode-tab:hover {
    border-color: var(--primary);
}

.mode-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 谷歌验证码输入 */
.google-code-input {
    text-align: center;
    font-size: 28px;
    letter-spacing: 8px;
    font-weight: bold;
    margin-bottom: 16px;
}

.countdown-hint {
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--warning);
}

.hint {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.warning-text {
    font-size: 13px;
    color: var(--warning);
    margin-bottom: 16px;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 2000;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--success);
    color: #0f172a;
}

.toast-error {
    background: var(--danger);
    color: white;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
}

/* 响应式 */
@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .user-stats {
        margin: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .user-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .lottery-row {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== 量子科技通用样式 ========== */
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 量子科技面板 */
.card-quantum-panel {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
    padding: 0;
}

.card-quantum-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.08), transparent);
    animation: quantumScan 4s ease-in-out infinite;
}

@keyframes quantumScan {
    0%, 100% { left: -50%; }
    50% { left: 100%; }
}

/* 量子面板头部 */
.quantum-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.quantum-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    animation: quantumIconPulse 2s ease-in-out infinite;
}

@keyframes quantumIconPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.5), 0 0 35px rgba(6, 182, 212, 0.3); }
}

.quantum-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quantum-title-main {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #e0e7ff, #c4b5fd, #a5b4fc, #e0e7ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: quantumTitleFlow 3s linear infinite;
}

@keyframes quantumTitleFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.quantum-title-sub {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quantum-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
}

.quantum-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: quantumDotBlink 1.5s ease-in-out infinite;
}

.quantum-status-dot.pulse {
    animation: quantumDotPulse 1s ease-in-out infinite;
}

@keyframes quantumDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes quantumDotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px #22c55e; }
    50% { transform: scale(1.3); box-shadow: 0 0 15px #22c55e, 0 0 25px rgba(34, 197, 94, 0.5); }
}

.quantum-status-text {
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
}

/* 量子面板工具栏 */
.quantum-panel-toolbar {
    padding: 12px 20px;
    background: rgba(139, 92, 246, 0.05);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-right {
    display: flex;
    gap: 8px;
}

/* 访客通知样式 */
.guest-notice {
    background: rgba(251, 191, 36, 0.1);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.guest-notice .notice-icon {
    font-size: 18px;
}

.guest-notice .notice-text {
    color: var(--warning);
    font-size: 14px;
}

/* ★★★ 管理员控制中心样式 ★★★ */
.card-admin-panel {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(45, 40, 90, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.1));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.admin-icon {
    font-size: 32px;
}

.admin-title-main {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #a78bfa;
}

.admin-title-sub {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.admin-panel-content {
    padding: 20px 24px;
}

.admin-section {
    margin-bottom: 24px;
}

.admin-section:last-child {
    margin-bottom: 0;
}

/* ★★★ 管理员紧凑按钮网格 ★★★ */
.admin-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.admin-compact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.admin-compact-icon {
    font-size: 20px;
}

.admin-compact-label {
    font-size: 12px;
    font-weight: 500;
}

.admin-compact-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.admin-compact-success:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-compact-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.admin-compact-warning:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.admin-compact-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.admin-compact-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-compact-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.admin-compact-primary:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.admin-compact-secondary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.admin-compact-secondary:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 表单提示内联样式 */
.form-hint-inline {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: normal;
}

.form-hint-inline strong {
    color: #fbbf24;
}

/* 批量确认文本样式 */
.batch-confirm-text {
    font-size: 15px;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-danger {
    color: #ef4444;
}

.admin-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

/* 一键操作按钮组 */
.admin-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.admin-btn-icon {
    font-size: 16px;
}

.admin-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.admin-btn-success:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.admin-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.admin-btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.admin-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.admin-btn-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.admin-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.admin-btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ★★★ 表格式布局 ★★★ */
.admin-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-table-row {
    display: grid;
    grid-template-columns: 100px 1fr 70px;
    gap: 12px;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
}

.admin-table-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.admin-table-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-input-full {
    flex: 1;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

.admin-input-full:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.admin-table-hint {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

.admin-table-hint strong {
    color: #fbbf24;
}

.admin-table-action {
    text-align: right;
}

.admin-btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-btn-sm:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-1px);
}

.admin-btn-primary-sm {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.admin-btn-primary-sm:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

/* 旧的grid布局保留兼容 */
.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.admin-setting-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    padding: 14px;
}

.admin-setting-item.admin-setting-wide {
    grid-column: span 2;
}

.admin-setting-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.admin-setting-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

.admin-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

/* 用户卡片容器 */
.user-cards-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-card-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-dim);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* 投注追踪容器 */
.bet-tracker-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    max-height: 450px;
    overflow-y: auto;
}

.bet-tracker-container::-webkit-scrollbar {
    width: 6px;
}

.bet-tracker-container::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
}

.bet-tracker-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 3px;
}

.bet-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--text-dim);
}

.bet-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 投注卡片 - 紧凑单行布局 */
.bet-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 8px 18px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bet-card:hover {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.9));
    border-color: rgba(139, 92, 246, 0.3);
}

.bet-card-glow {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    opacity: 0.6;
}

.bet-card.win .bet-card-glow {
    background: linear-gradient(180deg, #10b981, #059669);
    opacity: 1;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.bet-card.lose .bet-card-glow {
    background: linear-gradient(180deg, #ef4444, #dc2626);
    opacity: 1;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* 投注卡片内容样式 - 单行水平 */
.bet-card-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 95px;
}

.bet-card-issue {
    font-size: 14px;
    font-weight: 700;
    color: #e0e7ff;
}

.bet-card-user {
    font-size: 11px;
    color: #64748b;
    max-width: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bet-card-type {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.bet-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.bet-type-badge.long {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.bet-type-badge.hu {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.bet-card-amount {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.bet-amt {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
}

.bet-multi {
    font-size: 10px;
    color: #94a3b8;
    background: rgba(251, 191, 36, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

.bet-card-time {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 75px;
}

.bet-time-icon {
    font-size: 11px;
}

.bet-time-text {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Courier New', monospace;
}

/* 开奖号码栏目 */
.bet-card-draw {
    display: flex;
    align-items: center;
    min-width: 85px;
}

.draw-result {
    font-size: 13px;
    font-weight: 600;
    color: #a78bfa;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.bet-card-result {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.bet-card-result.win {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.bet-card-result.lose {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.bet-card-result.pending {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    animation: pendingPulse 1.5s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.win-amt {
    font-size: 11px;
    color: #34d399;
    font-weight: 700;
}


/* 投注空状态 */
.bet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.bet-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.bet-empty-text {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.bet-empty-sub {
    font-size: 12px;
    color: #64748b;
}

/* ========== AI 量子智能分析面板 ========== */
.card-ai-panel {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(6, 182, 212, 0.25);
    position: relative;
    overflow: hidden;
}

.card-ai-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    animation: aiScan 3s ease-in-out infinite;
}

@keyframes aiScan {
    0% { left: -50%; }
    100% { left: 150%; }
}

.ai-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ai-icon {
    font-size: 28px;
    animation: aiIconPulse 2s ease-in-out infinite;
}

@keyframes aiIconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8)); }
}

.ai-title { flex: 1; }

.ai-title-main {
    display: block;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #22d3ee, #06b6d4, #0891b2, #22d3ee);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aiTitleFlow 3s linear infinite;
}

@keyframes aiTitleFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.ai-title-sub {
    display: block;
    font-size: 10px;
    color: rgba(6, 182, 212, 0.6);
    letter-spacing: 1px;
    margin-top: 2px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    background: #22d3ee;
    border-radius: 50%;
    animation: statusBlink 1s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #22d3ee; }
    50% { opacity: 0.4; box-shadow: 0 0 2px #22d3ee; }
}

.ai-status-text {
    font-size: 11px;
    color: #22d3ee;
}

.ai-panel-content {
    position: relative;
    z-index: 1;
    min-height: 80px;
}

.ai-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: rgba(6, 182, 212, 0.8);
    font-size: 13px;
}

.ai-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-top-color: #22d3ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* AI推荐卡片 */
.ai-recommend-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.ai-recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ai-recommend-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #000;
}

.ai-recommend-score {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.ai-recommend-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-recommend-position {
    font-size: 28px;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.ai-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.ai-type-icon.long {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.ai-type-icon.hu {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.ai-recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ai-info-label { color: #666; }
.ai-info-value { color: #fbbf24; font-weight: 600; }

/* AI等待/安慰面板 */
.ai-waiting-panel {
    text-align: center;
    padding: 20px;
}

.ai-waiting-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: waitingFloat 2s ease-in-out infinite;
}

@keyframes waitingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-waiting-title {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #8b5cf6, #c084fc);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: waitingTitleFlow 2s ease-in-out infinite;
    margin-bottom: 8px;
}

@keyframes waitingTitleFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-waiting-message {
    font-size: 13px;
    color: #a0a0c0;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-waiting-tips {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ai-tip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    font-size: 11px;
    color: #c4b5fd;
}

.ai-tip-icon { font-size: 14px; }

/* 量子弹窗样式 */
.modal-quantum .modal-content {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal-quantum .modal-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

/* 开奖区域底部标签 */
.lottery-footer {
    text-align: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

/* ★★★ 倍投模式说明弹窗样式 ★★★ */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.modal-lg {
    max-width: 680px !important;
}

.martingale-help-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

.help-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.help-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(30, 41, 59, 0.8);
}

.help-item:last-child {
    margin-bottom: 0;
}

.help-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.help-item p {
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0;
}

.help-desc {
    color: var(--text-primary);
}

.help-formula {
    color: #4ade80;
    font-family: 'Consolas', 'Monaco', monospace;
}

.help-example {
    color: #fbbf24;
    font-family: 'Consolas', 'Monaco', monospace;
}

.help-tip {
    color: #94a3b8;
    font-size: 13px;
    padding-top: 6px;
    border-top: 1px dashed rgba(71, 85, 105, 0.5);
    margin-top: 8px;
}

/* 滚动条美化 */
.martingale-help-content::-webkit-scrollbar {
    width: 6px;
}

.martingale-help-content::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 3px;
}

.martingale-help-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.martingale-help-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}
