@charset "gb2312";
body {
    font-family: "Microsoft YaHei", "Î¢ÈíÑÅºÚ", Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.sidebar {
    min-height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 1rem;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.main-content {
    min-height: calc(100vh - 60px);
}

.lottery-input-box {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background-color: #fff;
    color: #333;
    padding: 0;
    text-align: center;
    transition: all 0.2s ease;
}

.lottery-input-box:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    background-color: #f8f9fa;
}

.lottery-input-box.lottery-input-red {
    border-color: #dc3545;
    color: #dc3545;
}

.lottery-input-box.lottery-input-red:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.lottery-input-box.lottery-input-blue {
    border-color: #0d6efd;
    color: #0d6efd;
}

.lottery-input-box.lottery-input-blue:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.lottery-input-box::placeholder {
    color: #adb5bd;
    font-weight: normal;
}

.lottery-form .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lottery-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rules-box {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #666;
}

.rules-box p {
    padding-left: 1rem;
    position: relative;
}

.rules-box p::before {
    content: "¡¤";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    font-weight: bold;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td, .table th {
    vertical-align: middle;
}

 

.alert-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.ball-3d {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 50%;
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ball-red {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    border-radius: 50%;
    margin: 0 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ball-blue {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border-radius: 50%;
    margin: 0 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-agree {
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-agree:hover {
    transform: scale(1.2);
}

.btn-agree.agreed {
    color: #198754 !important;
    cursor: default;
}

.btn-agree.agreed:hover {
    transform: none;
}

.chart-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px 10px;
    border: 1px solid #dee2e6;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 4px;
}

.bar-chart-red {
    height: 100px;
}

.bar-chart-blue {
    height: 100px;
}

.bar-chart-small {
    height: 100px;
}

.bar-chart-small .bar-item {
    max-width: 20px;
}

.bar-chart-small .bar {
    min-height: 1px;
}

.bar-chart-small .bar-label {
    font-size: 8px;
}

.bar-chart-small .bar::after {
    font-size: 8px;
    top: -14px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 28px;
    position: relative;
	height: 90px;
    justify-content: flex-end;

}

.bar {
    width: 100%;
    min-height: 2px;
    background: linear-gradient(180deg, #0d6efd 0%, #6ea8fe 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
    transform-origin: bottom;
}

.bar::after {
    content: attr(data-count);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    color: #333;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bar:hover::after {
    opacity: 1;
}

.bar-hot {
    background: linear-gradient(180deg, #dc3545 0%, #f5a6a6 100%);
}

.bar-chart-red .bar {
    background: linear-gradient(180deg, #dc3545 0%, #f5a6a6 100%);
}

.bar-chart-red .bar-hot {
    background: linear-gradient(180deg, #ff6b35 0%, #ffb347 100%);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.bar-chart-blue .bar {
    background: linear-gradient(180deg, #0d6efd 0%, #6ea8fe 100%);
}

.bar-chart-blue .bar-hot {
    background: linear-gradient(180deg, #6610f2 0%, #a370f7 100%);
    box-shadow: 0 0 8px rgba(102, 16, 242, 0.5);
}

.bar-label {
    font-size: 9px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
        border-end: 1px solid #dee2e6;
        border-bottom: 1px solid #dee2e6;
    }
    
    .lottery-input-box {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
