/* 历史记录占位容器 */
.lottery-history-placeholder {
    background: #f5f5f5;
    margin: 5px 0;
    padding: 0;
    border: 5px solid #cc3300;
    border-radius: 15px;
}

/* 历史记录内容容器 */
.lottery-history-container {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.lottery-history-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* 头部 */
.lh-header {
    background: #cc3300;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lh-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lh-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lh-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 工具栏 */
.lh-toolbar {
    background: #fff;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* 年份选择 */
.lh-years {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lh-year-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lh-year-btn:hover {
    border-color: #FE9F01;
    color: #FE9F01;
}

.lh-year-btn.active {
    background: #cc3300;
    color: #fff;
    border-color: #cc3300;
    box-shadow: 0 2px 6px rgba(254, 159, 1, 0.3);
}

/* 内容区域 */
.lh-content {
    flex: 1;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 600px;
    max-height: 2000px;
}
/* 加载状态 */
.lh-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FE9F01;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 列表 */
.lh-list {
}

/* 列表项 */
.lh-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}


.lh-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.item-issue {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.item-date {
    font-size: 13px;
    color: #999;
}

/* 号码球 */
.lh-item-balls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    flex-wrap: wrap;
}

/* 号码球容器 */
.lh-ball-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lh-ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 8px 6px 6px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    gap: 4px;
}

.ball-num {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

/* 属性信息 - 白色背景 */
.ball-attrs {
    background: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
}

.ball-plus {
    font-size: 20px;
    color: #999;
    margin: 0 4px;
    align-self: center;
}

/* 球色 */
.hm.redBoClass, .redBoClass {
    background-color: rgb(255, 0, 0);
}

.hm.blueBoClass, .blueBoClass {
    background-color: rgb(0, 0, 255);
}

.hm.greenBoClass, .greenBoClass {
    background-color: rgb(0, 153, 0);
}

.hm {
    background-color: rgb(153, 153, 153);
}

/* 空数据 */
.lh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #999;
    font-size: 15px;
}

/* 错误提示 */
.lh-error {
    padding: 40px 20px;
    text-align: center;
    color: #ff4444;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* 移动端适配 */
@media (max-width: 768px) {
    .lh-title {
        font-size: 16px;
    }
    
    .lh-year-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .lh-ball {
        min-width: 38px;
        padding: 6px 4px;
    }
    
    .ball-num {
        font-size: 16px;
    }
    
    .ball-sx {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .lh-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lh-fullpage {
        text-align: center;
    }
    
    .lh-ball {
        min-width: 35px;
        gap: 4px;
    }
}
