/* ==========================================
   六合彩信用投注系统 - 极致尊贵黑金美学样式表
   ========================================== */

:root {
    --primary-color: #e5c158;      /* 奢华亮金色 */
    --primary-dark: #b89230;       /* 暗金色 */
    --accent-red: #e74c3c;         /* 红波 */
    --accent-blue: #3498db;        /* 蓝波 */
    --accent-green: #2ecc71;       /* 绿波 */
    --bg-dark: #121212;            /* 纯深黑背景 */
    --panel-dark: #1f1f1f;         /* 磨砂黑面板 */
    --border-dark: #333333;        /* 细微深黑边框 */
    --text-white: #f5f6fa;         /* 柔和白字 */
    --text-gray: #a4b0be;          /* 细腻灰字 */
    --font-stack: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-stack);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ================= 头部导航栏 ================= */
header {
    background: linear-gradient(135deg, #1f1f1f 0%, #151515 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #121212;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(229, 193, 88, 0.4);
    font-weight: bold;
}

/* ================= 语言切换器 ================= */
.lang-selector {
    display: flex;
    gap: 6px;
}

.lang-flag {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    text-decoration: none;
    font-size: 18px;
}

.lang-flag:hover, .lang-flag.active {
    opacity: 1;
    transform: scale(1.15);
}

/* ================= 主布局 ================= */
.main-container {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: 15px;
    padding: 15px;
    max-width: 1680px;
    margin: 0 auto;
}

/* 左侧栏样式 */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 信息面板 */
.info-panel {
    background: var(--panel-dark);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.countdown-box {
    text-align: center;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.countdown-title {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 8px;
}

.countdown-timer {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    font-family: monospace;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-dark);
}

.user-info-row:last-child {
    border-bottom: none;
}

.user-info-label {
    color: var(--text-gray);
}

.user-info-value {
    font-weight: bold;
    font-size: 15px;
}

.user-info-value.credit-rem {
    color: var(--primary-color);
}

/* ================= 玩法网格与投注面板 ================= */
.middle-content {
    background: var(--panel-dark);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 玩法大类导航 */
.play-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 10px;
}

.play-tab {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    background: #252525;
    border: 1px solid var(--border-dark);
    transition: all 0.3s;
    font-weight: 600;
}

.play-tab.active, .play-tab:hover {
    background: var(--primary-color);
    color: #121212;
    border-color: var(--primary-color);
}

/* 彩球网格设计 */
.ball-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.ball-card {
    background: #1a1a1a;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.ball-card:hover {
    border-color: var(--primary-color);
    background: #222;
}

/* 球的圆形设计 */
.lhc-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    box-shadow: inset -2px -2px 6px rgba(0,0,0,0.4), 0 3px 6px rgba(0,0,0,0.4);
}

.ball-red {
    background: radial-gradient(circle at 10px 10px, #ff6b6b, #c0392b);
}

.ball-blue {
    background: radial-gradient(circle at 10px 10px, #54a0ff, #2980b9);
}

.ball-green {
    background: radial-gradient(circle at 10px 10px, #1dd1a1, #27ae60);
}

.ball-odds {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 14px;
}

.ball-input {
    width: 55px;
    background: #121212;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--primary-color);
    text-align: center;
    padding: 4px;
    font-weight: 700;
    font-size: 14px;
}

.ball-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 两面针/其他下注网格 */
.side-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid var(--border-dark);
    padding-top: 15px;
}

.side-card {
    background: #1a1a1a;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-label {
    font-weight: bold;
    font-size: 14px;
}

/* 快速过滤器 */
.quick-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #181818;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
}

.filter-btn {
    background: #252525;
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 底部操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181818;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    margin-top: auto;
}

.quick-amount-input {
    background: #121212;
    border: 1px solid var(--border-dark);
    color: #fff;
    padding: 8px;
    width: 100px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-submit {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #121212;
    font-weight: 800;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

.btn-clear {
    background: #e74c3c;
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

/* ================= 右侧栏历史路单 ================= */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-panel {
    background: var(--panel-dark);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    height: 100%;
}

.history-title {
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.road-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.road-row {
    background: #161616;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.road-period {
    color: var(--text-gray);
    font-size: 12px;
}

.road-balls {
    display: flex;
    gap: 4px;
}

.road-ball-sm {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

/* ================= 客服系统悬浮窗 ================= */
.customer-service-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(229,193,88,0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.customer-service-widget:hover {
    transform: scale(1.1) rotate(15deg);
}

.customer-service-icon {
    font-size: 28px;
    color: #121212;
}

/* ================= 模拟直播摇奖机组件 ================= */
.live-stream-panel {
    background: #0d0d0d;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(229, 193, 88, 0.15);
}

.lhc-machine-container {
    height: 180px;
    background: radial-gradient(circle, #252525 0%, #0c0c0c 100%);
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #222;
}

.lottery-machine {
    width: 90px;
    height: 90px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    background: rgba(229, 193, 88, 0.05);
    box-shadow: 0 0 15px rgba(229, 193, 88, 0.2);
}

.machine-balls {
    position: absolute;
    width: 100%;
    height: 100%;
}

.machine-ball {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 40px;
    left: 40px;
}

/* 物理摇奖搅拌滚动特效 */
.spinning .machine-ball {
    animation: bounceAround 0.8s infinite alternate ease-in-out;
}

.spinning .machine-ball:nth-child(1) { animation-delay: 0.1s; transform: rotate(45deg) translate(25px) rotate(-45deg); }
.spinning .machine-ball:nth-child(2) { animation-delay: 0.2s; transform: rotate(90deg) translate(25px) rotate(-90deg); }
.spinning .machine-ball:nth-child(3) { animation-delay: 0.3s; transform: rotate(135deg) translate(25px) rotate(-135deg); }
.spinning .machine-ball:nth-child(4) { animation-delay: 0.4s; transform: rotate(180deg) translate(25px) rotate(-180deg); }
.spinning .machine-ball:nth-child(5) { animation-delay: 0.5s; transform: rotate(225deg) translate(25px) rotate(-225deg); }
.spinning .machine-ball:nth-child(6) { animation-delay: 0.6s; transform: rotate(270deg) translate(25px) rotate(-270deg); }
.spinning .machine-ball:nth-child(7) { animation-delay: 0.7s; transform: rotate(315deg) translate(25px) rotate(-315deg); }

@keyframes bounceAround {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    20% { transform: scale(1.05) translate(-15px, 20px) rotate(45deg); }
    40% { transform: scale(1.1) translate(20px, -15px) rotate(90deg); }
    60% { transform: scale(1.05) translate(-20px, -20px) rotate(180deg); }
    80% { transform: scale(1.1) translate(15px, 15px) rotate(270deg); }
    100% { transform: scale(1) translate(0, 0) rotate(360deg); }
}

.draw-result-balls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    min-height: 36px;
}

.plus-sign {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* ================= 响应式手机 APP 投注版 ================= */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar, .right-sidebar {
        display: none; /* 手机端隐藏电脑侧边栏 */
    }
    
    .ball-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    header {
        padding: 10px;
    }
    
    .logo-title {
        font-size: 20px;
    }
}

/* ================= 后台高级侧边栏布局 (Bootstrap Dashboard Sidebar Menu Style) ================= */
.admin-dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
}

.admin-sidebar-menu {
    background: #151515;
    border-right: 1px solid var(--border-dark);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.admin-menu-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary-color);
}

.admin-menu-item.active {
    background: rgba(229, 193, 88, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-content-pane {
    padding: 25px 30px;
    overflow-y: auto;
    background: #0d0d0d;
}

/* ==========================================================================
   紧张刺激倒计时组件 (Stunning Countdown & Live Timer System)
   ========================================================================== */

/* 会员大厅 - 物理直播倒计时牌 */
.live-countdown-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 30, 30, 0.65);
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* 渐变流光边框动画 */
.live-countdown-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(229, 193, 88, 0.1), transparent);
    transition: none;
}

.live-countdown-banner.betting-phase:hover::before {
    animation: flowLight 2.5s infinite linear;
}

@keyframes flowLight {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* 状态角标与呼吸点 */
.live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.green-dot {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: simplePulse 1.8s infinite ease-in-out;
}

.red-dot-pulse {
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    animation: dangerPulse 0.8s infinite alternate ease-in-out;
}

@keyframes simplePulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes dangerPulse {
    0% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 4px var(--accent-red); }
    100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px var(--accent-red), 0 0 20px rgba(231, 76, 60, 0.5); }
}

/* 状态样式定制 */
.live-countdown-banner.betting-phase {
    border-color: rgba(46, 204, 113, 0.3);
}

.live-countdown-banner.closed-phase {
    border-color: rgba(231, 76, 60, 0.55);
    background: linear-gradient(135deg, rgba(35, 10, 10, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
}

.live-countdown-banner.drawing-phase {
    border-color: rgba(229, 193, 88, 0.6);
    background: linear-gradient(135deg, rgba(40, 32, 10, 0.7) 0%, rgba(15, 15, 15, 0.85) 100%);
}

/* 数字值样式 */
.live-timer-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Outfit', monospace;
    text-shadow: 0 0 10px rgba(229, 193, 88, 0.25);
    transition: all 0.3s ease;
}

.live-countdown-banner.closed-phase .live-timer-value {
    color: var(--accent-red);
    text-shadow: 0 0 12px rgba(231, 76, 60, 0.45);
}

.live-countdown-banner.drawing-phase .live-timer-value {
    color: #ffffff;
    background: linear-gradient(to right, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    animation: goldenSparkle 1.5s infinite alternate ease-in-out;
}

@keyframes goldenSparkle {
    0% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 8px rgba(229, 193, 88, 0.7)); }
}

/* 紧张刺激：心跳搏动闪烁动画 */
.heartbeat-pulse {
    animation: heartbeat 0.8s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.06); }
    28% { transform: scale(1); }
    42% { transform: scale(1.06); }
    70% { transform: scale(1); }
}

/* 封单期的全卡闪烁氛围感 */
.pulsing-alert {
    animation: bannerAlert 2s infinite ease-in-out;
}

@keyframes bannerAlert {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 0px rgba(231, 76, 60, 0); }
    50% { box-shadow: 0 4px 22px rgba(231, 76, 60, 0.25), inset 0 0 15px rgba(231, 76, 60, 0.15); border-color: rgba(231, 76, 60, 0.8); }
}

/* 后台管理面板倒计时定制 */
.admin-timer-card {
    background: linear-gradient(135deg, #1c1c1c 0%, #151515 100%);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.admin-timer-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-timer-status-text {
    font-size: 13px;
    color: var(--text-gray);
}

.admin-timer-time {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', monospace;
    color: var(--primary-color);
}

/* 后台紧急警告条 */
.admin-warning-strip {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.2) 0%, rgba(231, 76, 60, 0.05) 100%);
    border-left: 4px solid var(--accent-red);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #fce4d6;
    margin-top: 12px;
    animation: alertPulse 1.5s infinite alternate ease-in-out;
}

@keyframes alertPulse {
    0% { border-left-color: rgba(231, 76, 60, 0.4); background-color: rgba(231, 76, 60, 0.1); }
    100% { border-left-color: rgba(231, 76, 60, 1); background-color: rgba(231, 76, 60, 0.25); }
}

