/* 开奖历史页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    padding-bottom: 3.5rem;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 头部 */
.kjjl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 3rem;
    border-bottom: 1px solid #eee;
}

.kjjl-back {
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    width: 2.5rem;
}

.kjjl-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.calendar-wrapper {
    position: relative;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calendar-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.year-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 标签切换 */
.tab-wrapper {
    display: flex;
    margin: 0.75rem 1rem;
    border: 1px solid #07c160;
    border-radius: 0.25rem;
    overflow: hidden;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 0.625rem;
    font-size: 1rem;
    color: #07c160;
    cursor: pointer;
    background: #fff;
}

.tab-item.active {
    background: #07c160;
    color: #fff;
}

/* 开奖列表 */
.kj-list {
    padding: 0.75rem 0.5rem;
}

.kj-item {
    margin-bottom: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: #fff;
}

.kj-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.kj-item-title {
    font-size: 0.9375rem;
    color: #333;
}

.kj-item-date {
    font-size: 0.8125rem;
    color: #999;
}

.kj-item-body {
    display: flex;
    flex-direction: column;
}

.balls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.ball-small {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    position: relative;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.ball-small-text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    color: #50637f;
    position: absolute;
    top: 46%;
    left: 47%;
    transform: translate(-50%, -50%);
}

.ball-small.red {
    background-image: url('/images3/numberbg/r.png');
}

.ball-small.green {
    background-image: url('/images3/numberbg/g.png');
}

.ball-small.blue {
    background-image: url('/images3/numberbg/b.png');
}

.plus-sign {
    font-size: 1.25rem;
    color: #50637f;
    font-weight: 500;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.zodiac-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.zodiac-item {
    width: 2.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #50637f;
    flex-shrink: 0;
}

.zodiac-item.plus-placeholder {
    width: 1.25rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #07c160;
    border-radius: 0.25rem;
    background: #fff;
    color: #07c160;
    font-size: 0.875rem;
    cursor: pointer;
}

.page-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.875rem;
    color: #666;
}

/* 加载中/无数据 */
.loading, .no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 0.875rem;
    display: none;
}

.loading.show, .no-data.show {
    display: block;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: #07c160;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.2);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0;
}

.back-to-top span {
    font-size: 0.75rem;
    font-weight: 600;
}
