* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    background: #0a1428;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.site-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.language-selector {
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 12px;
}

.announcement {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 8px 20px;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Right Side Element */
.right-side-element {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    /* height: calc(100vh - 80px); */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.banner-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.content-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 300px;
    padding-bottom: 40px;
}

/* Main Title */
.main-title {
    text-align: center;
    margin-bottom: 40px;
}

.main-title h1 {
    font-size: 100px;
    font-weight: 700;
    color: white;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    letter-spacing: 6px;
}

.subtitle {
    font-size: 20px;
    color: white;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

/* Results Section */
.results-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 45px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    min-width: 220px;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.small-flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.countdown-label {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.time-digit {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 30px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.time-label {
    color: white;
    font-size: 14px;
    font-weight: 400;
}

.draw-info {
    color: #ccc;
    font-size: 14px;
}

/* Lottery Results */
.lottery-results {
    text-align: center;
    min-width: 300px;
}

.results-header {
    margin-bottom: 20px;
}

.results-label {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.result-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.number-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: black;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Number-specific backgrounds */
.number-ball[data-number="0"] {
    background-image: url('images/icon/0.png');
}

.number-ball[data-number="1"] {
    background-image: url('images/icon/1.png');
}

.number-ball[data-number="2"] {
    background-image: url('images/icon/2.png');
}

.number-ball[data-number="3"] {
    background-image: url('images/icon/3.png');
}

.number-ball[data-number="4"] {
    background-image: url('images/icon/4.png');
}

.number-ball[data-number="5"] {
    background-image: url('images/icon/5.png');
}

.number-ball[data-number="6"] {
    background-image: url('images/icon/6.png');
}

.number-ball[data-number="7"] {
    background-image: url('images/icon/7.png');
}

.number-ball[data-number="8"] {
    background-image: url('images/icon/8.png');
}

.number-ball[data-number="9"] {
    background-image: url('images/icon/9.png');
}

.current-result {
    color: #ccc;
    font-size: 14px;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .results-section {
        flex-direction: column;
        gap: 40px;
        padding: 30px 40px;
    }
    
    .main-title h1 {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 20px;
    }
    
    .main-title h1 {
        font-size: 60px;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .results-section {
        margin: 0 20px;
        padding: 20px 30px;
    }
    
    .time-digit {
        font-size: 28px;
        padding: 10px 15px;
        min-width: 60px;
    }
    
    .number-ball {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-title h1 {
        font-size: 40px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .results-section {
        margin: 0 10px;
        padding: 15px 20px;
    }
    
    .result-numbers {
        gap: 10px;
    }
    
    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Historical Results Section */
.historical-results {
    background: #003;
    margin-top: 50px;
    padding: 40px 0;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.results-header-section {
    margin-bottom: 30px;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.date-selectors {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-selectors label {
    font-weight: 500;
    color: #333;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.period-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.period-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Data and Pagination Container */
.data-and-pagination-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Results Table */
.results-table {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.table-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: #f1f3f4;
    border-bottom: 2px solid #e0e0e0;
}

.header-cell {
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.header-cell:last-child {
    border-right: none;
}

.table-body {
    /* 移除高度限制，让内容自然展开 */
}

.table-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.cell {
    padding: 15px 20px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.cell:last-child {
    border-right: none;
}

.period-cell {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.period-number {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.period-date {
    font-size: 12px;
    color: #666;
}

.numbers-cell {
    justify-content: center;
}

.lottery-balls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: black;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Ball number-specific backgrounds */
.ball[data-number="0"] {
    background-image: url('images/icon/0.png');
}
.ball[data-number="1"] {
    background-image: url('images/icon/1.png');
}

.ball[data-number="2"] {
    background-image: url('images/icon/2.png');
}

.ball[data-number="3"] {
    background-image: url('images/icon/3.png');
}

.ball[data-number="4"] {
    background-image: url('images/icon/4.png');
}

.ball[data-number="5"] {
    background-image: url('images/icon/5.png');
}

.ball[data-number="6"] {
    background-image: url('images/icon/6.png');
}

.ball[data-number="7"] {
    background-image: url('images/icon/7.png');
}

.ball[data-number="8"] {
    background-image: url('images/icon/8.png');
}

.ball[data-number="9"] {
    background-image: url('images/icon/9.png');
}

/* 保留原有的颜色类作为备用 */
.ball.red {
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.ball.blue {
    background: linear-gradient(135deg, #3742fa, #2f3542);
}

.ball.green {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
}

.ball.yellow {
    background: linear-gradient(135deg, #ffa502, #ff6348);
}

.ball.purple {
    background: linear-gradient(135deg, #a55eea, #8854d0);
}

.ball.orange {
    background: linear-gradient(135deg, #ff9f43, #ff7675);
}

.ball.cyan {
    background: linear-gradient(135deg, #26d0ce, #1dd1a1);
}

.ball.pink {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.ball.black {
    background: linear-gradient(135deg, #2f3640, #57606f);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e0e0;
    gap: 15px;
}

.pagination-info {
    font-weight: 500;
    color: #333;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-page {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-container {
        padding: 0 10px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-selectors {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 120px 1fr;
    }
    
    .ball {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .lottery-balls {
        gap: 6px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: center;
    }
}

/* Feature Introduction Section */
.feature-introduction {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.data-and-pagination-container .feature-introduction {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.feature-introduction:first-of-type {
    margin-top: 30px;
}

.feature-introduction:last-of-type {
    margin-bottom: 20px;
}

.feature-introduction h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
}

.feature-introduction h3:not(:first-child) {
    margin-top: 25px;
}

.feature-introduction h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.feature-introduction p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    text-align: justify;
}

.feature-introduction p:last-child {
    margin-bottom: 0;
}

/* Responsive design for feature introduction */
@media (max-width: 768px) {
    .feature-introduction {
        padding: 15px;
        margin-top: 15px;
    }
    
    .feature-introduction h3 {
        font-size: 16px;
    }
    
    .feature-introduction h4 {
        font-size: 14px;
    }
    
    .feature-introduction p {
        font-size: 13px;
    }
}