.detail-container {
    width: calc(100% - 40px);
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.info-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.prize-amount {
    color: #e54d42;
}

.prize-pool {
    color: #f5a623;
}

.numbers-display {
    text-align: center;
    margin: 25px 0;
}

.ball-group {
    display: inline-flex;
    gap: 8px;
    margin: 10px 0;
}

.ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.ball.red {
    background: #e54d42;
}

.ball.blue {
    background: #0081ff;
}

.ball.special {
    background: linear-gradient(135deg, #ffa600, #ff8b00);
    position: relative;
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.prize-table th,
.prize-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #eee;
}

.prize-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 500;
}

.prize-table td {
    color: #666;
}

.prize-table .prize-name {
    color: #e54d42;
    font-weight: 500;
}

.prize-table .prize-money {
    color: #f5a623;
    font-weight: bold;
}

.lottery-header {
    text-align: center;
    margin-bottom: 20px;
}

.lottery-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.period-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #666;
    font-size: 15px;
}

.period-info .period-num {
    color: #1890ff;
    font-weight: 500;
}

.prize-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 15px 0 25px;
    color: #666;
    font-size: 14px;
}

.prize-info span {
    color: #e54d42;
    font-weight: 500;
    margin-left: 5px;
}

.period-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.period-arrow {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    color: #666;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.period-arrow:hover {
    background: #f8f9fa;
    color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.period-arrow:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.period-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.klb-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.klb-balls .ball {
    margin: 0;
}

@media (max-width: 768px) {
    .detail-container {
        width: calc(100% - 20px);
        padding: 15px;
        margin: 10px auto;
    }

    .info-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item {
        padding: 10px;
    }

    .prize-table th,
    .prize-table td {
        padding: 8px;
        font-size: 13px;
    }

    .ball {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .lottery-header {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .lottery-title {
        font-size: 18px;
        margin-bottom: 0;
    }

    .period-info {
        flex-direction: column;
        gap: 5px;
        font-size: 14px;
    }

    .prize-info {
        flex-direction: column;
        gap: 10px;
    }

    .period-nav {
        margin: 0;
    }

    .klb-balls {
        gap: 6px;
    }

    .klb-balls .ball {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}
