@charset "utf-8";
 
 * { 
 	 padding: 0; 
 	 margin: 0; 
 } 
 
 body { 
 	 font-family: 'PingFang SC', 'Microsoft YaHei', Arial, 'helvetica neue', 'hiragino sans gb', sans-serif; 
 } 
 
 .new-KJ-TabBox-box { 
 	 font-size: 16px; 
 	 box-sizing: border-box; 
 	 color: #333; 
 	 padding: 8px; 
 	 font-family: 'PingFang SC', 'microsoft yahei', arial, 'helvetica neue', 'hiragino sans gb', sans-serif; 
 } 
 
 .new-KJ-TabBox-box a { 
 	 text-decoration: none; 
 } 
 
 .new-KJ-TabBox-box .kj-font-red { 
 	 color: #f00 !important; 
 } 
 
 .new-KJ-TabBox-box-tit { 
 	 display: flex; 
 	 align-items: center; 
 	 height: 17px; 
 	 line-height: 17px; 
 	 font-size: 17px; 
 } 
 
 .new-KJ-TabBox-box-tit-l {} 
 
 .new-KJ-TabBox-box-tit-m { 
 	 flex: 1; 
 	 text-align: center; 
 	 font-weight: bold; 
 } 
 
 .new-KJ-TabBox-box-tit-r {} 
 
 .new-KJ-TabBox-box-con { 
 	 display: flex; 
 	 margin: 8px 0; 
 } 
 
 .new-KJ-TabBox-box-con .kj-ball { 
 	 flex: 1; 
 	 display: flex; 
 	 align-items: center; 
 	 justify-content: center; 
 	 height: 61px; 
 	 text-align: center; 
 	 border-radius: 4px; 
 	 margin-right: 6px; 
 	 box-sizing: border-box; 
 	 flex-direction: column; 
 } 
 
 .new-KJ-TabBox-box-con .kj-ball:last-child { 
 	 margin-right: 0; 
 } 
 
 .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) { 
 	 margin-right: 6px; 
 } 
 
 .new-KJ-TabBox-box-con .kj-ball h2 { 
 	 margin: 0; 
 	 padding: 0; 
 	 color: #fff; 
 	 line-height: 24px; 
 	 font-size: 28px; 
 	 font-weight: 900; 
 	 font-family: Tahoma, Geneva, sans-serif; 
 } 
 
 .new-KJ-TabBox-box-con .kj-ball .whsx { 
 	 display: inline-block; 
 	 height: 19px; 
 	 line-height: 19px; 
 	 margin-top: 6px; 
 	 padding: 0 6px; 
 	 border-radius: 2px; 
 	 color: #333; 
 	 font-size: 14px; 
 	 background: #fff; 
 } 
 
 .new-KJ-TabBox-box-con .kj-add { 
 	 display: flex; 
 	 align-items: center; 
 	 margin-right: 8px; 
 	 font-size: 32px; 
 	 font-weight: bold; 
 } 
 
 .new-KJ-TabBox-box-foot { 
 	 display: flex; 
 	 align-items: center; 
 	 font-size: 16px; 
 } 
 
 .new-KJ-TabBox-box-foot-l { 
 	 flex: 1; 
 } 
 
 .new-KJ-TabBox-box-foot-r { 
     margin-left: auto; 
 } 
 
 .new-KJ-TabBox-box-foot-r-sx { 
 	 display: inline-block; 
 	 width: 40px; 
 	 height: 20px; 
 	 line-height: 20px; 
 	 text-align: center; 
 	 color: #fff; 
 	 border-radius: 4px; 
 	 background: #FF9900; 
 } 
 
 .kj-ball-red { background: #E71607; }
.kj-ball-blue { background: #2389E9; }
.kj-ball-green { background: #1FB61D; }
.kj-ball-gray { background: #999999; }

 @media screen and (max-width: 650px) { 
 	 .new-KJ-TabBox-box { 
 	 	 font-size: 14px; 
 	 } 
 
 	 .new-KJ-TabBox-box-tit { 
 	 	 font-size: 16px; 
 	 } 
 
 	 .new-KJ-TabBox-box-con .kj-ball { 
 	 	 margin-right: 4px; 
 	 } 
 
 	 .new-KJ-TabBox-box-con .kj-ball:nth-last-child(3) { 
 	 	 margin-right: 4px; 
 	 } 
 
 	 .new-KJ-TabBox-box-con .kj-ball h2 { 
 	 	 font-size: 24px; 
 	 } 
 
 	 .new-KJ-TabBox-box-con .kj-ball .whsx { 
 	 	 margin-top: 4px; 
 	 	 padding: 0 2px; 
 	 	 font-size: 12px; 
 	 } 
 
 	 .new-KJ-TabBox-box-con .kj-add { 
 	 	 margin-right: 4px; 
 	 } 
 
 	 .new-KJ-TabBox-box-con .kj-add { 
 	 	 font-size: 24px; 
 	 } 
 
 	 .new-KJ-TabBox-box-foot { 
 	 	 font-size: 15px; 
 	 } 
 } 
 
 @media screen and (max-width:450px) { 
 	 .new-KJ-TabBox-box-tit-m .kj-lotto-tit2 span:first-child { 
 	 	 display: none; 
 	 } 
 } 
 
 .new-KJ-TabBox-box-foot { 
 	 flex-wrap: wrap; 
 } 
 
 .new-KJ-TabBox-box-foot-l { 
 	 white-space: nowrap; 
 } 
 
 @media screen and (max-width: 380px) { 
 	 .new-KJ-TabBox-box-tit, 
 	 .new-KJ-TabBox-box-foot { 
 	 	 font-size: 14px; 
 	 } 
 } 
 
 @media screen and (max-width: 340px) { 
 	 .new-KJ-TabBox-box-tit { 
 	 	 font-size: 13px; 
 	 } 
 }
 
/* 历史记录页面样式 */
.history-container {
    min-height: 100vh;
    background: #f5f5f5;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    max-width: 768px;
    margin: 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.back-btn {
    width: 33px;
    height: 33px;
    background: #ddd;
    clip-path: path('M12.5 25V17.5h5v7.5h6.25V15h3.75L15 3.75 2.5 15h3.75v10z');
    cursor: pointer;
    flex-shrink: 0;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.year-selector {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background: #fff;
    cursor: pointer;
}

.history-tabs {
    display: flex;
    background: #fff;
}

.tab-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-item.active {
    color: #1FB61D;
    border-bottom-color: #1FB61D;
    background: #F0FFF0;
}

.history-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
}

.sort-bar {
    display: flex;
    gap: 16px;
}

.sort-btn {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sort-btn.active {
    color: #1FB61D;
    background: #F0FFF0;
}

/* 日历样式 */
.calendar-view {
    background: #fff;
    margin: 8px 10px;
    border-radius: 8px;
    padding: 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-prev, .calendar-next {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-prev:hover, .calendar-next:hover {
    background: #fff0f0;
    color: #E71607;
}

.calendar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.calendar-weekdays span {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.kj-date {
    border-radius: 50%;
}

.calendar-day.kj-date .day-number {
    background: #1FB61D;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-day.kj-date:hover .day-number {
    background: #ff4444;
}

.calendar-day.kj-done {
    border-radius: 50%;
}

.calendar-day.kj-done .day-number {
    background: #e4e5ea;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-day.kj-done:hover .day-number {
    background: #F0FFF0;
}

.calendar-day.today .day-number {
    position: relative;
}

.calendar-day.today .day-number::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ff9800;
    border-radius: 50%;
}

.calendar-day.today.kj-date .day-number::after,
.calendar-day.today.kj-done .day-number::after {
    bottom: -4px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.kj-date-dot {
    background: #1FB61D;
}

.legend-dot.kj-done-dot {
    background: #e4e5ea;
}

.legend-text {
    font-size: 14px;
    color: #666;
}

.day-number {
    font-size: 16px;
    color: #333;
}

@media screen and (min-width: 769px) {
    .calendar-weekdays span {
        height: 50px;
        font-size: 18px;
    }

    .calendar-day.kj-date .day-number,
    .calendar-day.kj-done .day-number {
        width: 40px;
        height: 40px;
    }

    .day-number {
        font-size: 18px;
    }

    .legend-item {
        gap: 8px;
    }

    .legend-dot {
        width: 16px;
        height: 16px;
    }

    .legend-text {
        font-size: 16px;
    }
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

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

.date-label {
    font-size: 14px;
    color: #999;
}

.item-balls {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.item-ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 1px;
    border-radius: 4px;
    flex: 1;
    min-width: 0;
    max-width: calc((100% - 18px) / 7);
}

.ball-number {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    font-family: Tahoma, Geneva, sans-serif;
    line-height: 1.2;
}

.ball-info {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1px;
    line-height: 1.2;
    text-align: center;
}

.ball-add {
    font-size: 16px;
    font-weight: bold;
    color: #999;
    margin: 0 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.loading, .empty {
    text-align: center;
    color: #999;
    font-size: 16px;
    padding: 20px;
}

/* 响应式调整 - 手机端 */
@media screen and (max-width: 480px) {
    .history-header {
        padding: 10px 12px;
    }
    
    .header-title {
        font-size: 17px;
    }
    
    .year-selector {
        padding: 4px 8px;
        font-size: 14px;
    }
    
    .tab-item {
        padding: 10px 8px;
        font-size: 15px;
    }
    
    .item-ball {
        min-width: 0;
        padding: 5px 4px;
    }
    
    .ball-number {
        font-size: 22px;
    }
    
    .ball-info {
        font-size: 12px;
    }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #999999;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, background 0.3s;
    border: none;
}

.back-to-top:hover {
    background: #666666;
}