* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #905720;
    overflow-x: hidden;
    max-width: 768px;
    margin: 0 auto;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(90deg, #e0a86f, #fbd2b2);
    padding: 15px 10px;
    color: #905720;
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; */
}

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

.back-btn {
    font-size: 20px;
    cursor: pointer;
    color: #905720;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    flex: 1;
    text-align: center;
    color: #905720;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-right-placeholder {
    width: 24px;
}

.header-title::before {
    content: '🏆';
    font-size: 20px;
}

.header-subtitle {
    text-align: center;
    font-size: 14px;
    color: #905720;
    margin-bottom: 0px;
}



.icon {
    font-size: 20px;
    cursor: pointer;
    color: #905720;
}



.language-select {
    padding: 4px 8px;
    border: 1px solid #b9883c;
    border-radius: 4px;
    background-color: #f0e6c9;
    color: #905720;
    cursor: pointer;
    font-size: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.language-select:hover {
    background-color: #e0d0a8;
}

.language-select option {
    background-color: #f0e6c9;
    color: #905720;
}

/* 统计信息 */
.stats-section {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    background: linear-gradient(135deg, #eed1b3, #ddb087);
    /* margin-top: 65px; */
    border-bottom: 1px solid #b9883c;
}

.stat-item {
    text-align: center;
    flex: 1;
    background-color: rgba(144, 87, 32, 0.1);
    border: 1px solid #b9883c;
    border-radius: 8px;
    padding: 10px;
    margin: 0 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #905720;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #905720;
    opacity: 0.8;
}



/* 筛选栏 */
.filter-bar {
    background: linear-gradient(135deg, #d4a071, #b88c5a);
    padding: 10px 0;
    position: sticky;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #b9883c;
}

.filter-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.filter-item {
    font-size: 14px;
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
    color: #905720;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-item.active {
    color: #905720;
    /* font-weight: bold; */
}

.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #905720;
    border-radius: 1px;
}

/* 排序箭头 */
.sort-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* 主内容区 */
.main-content {
    display: flex;
    margin-bottom: 45px;
    overflow-x: hidden;
    /* background: linear-gradient(180deg, #eed1b3, #ddb087); */
    background-color: #ddb087;
    min-height: calc(100vh - 100px);
    position: relative;
}

/* 左侧分类 */
.category-sidebar {
    /* position: sticky;
    top: 0px;
    left: 0px; */
    width: 100px;
    background: linear-gradient(180deg, #eed1b3, #ddb087);
    overflow-y: auto;
    overflow-x: hidden;
    /* border-right: 1px solid #b9883c; */
    height: 100vh;
    max-height: 100vh;
    align-self: flex-start;
}

/* 未领取徽章 */
.unclaimed-badge {
    position: fixed;
    top: 48px;
    left: 0px;
    width: 100px;
    background: linear-gradient(180deg, #eed1b3, #ddb087);
    z-index: 10;
    height:100vh;
    padding: 0;
    margin: 0;
    list-style: none;
}


/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background-color: #45a049;
    transform: translateY(-5px);
}

.category-list {
    list-style: none;
}

.category-item {
    padding: 15px 10px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    border-left: 3px solid transparent;
    color: #905720;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.category-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.category-item.active {
    background-color: #f0e6c9;
    border-left-color: #905720;
    font-weight: bold;
    color: #905720;
}

/* 右侧商品列表 */
.goods-container {
    min-height: 100vh;
    border-left: 1px solid #b9883c;
    flex: 1;
    padding: 10px;
    overflow-x: hidden;
    background: linear-gradient(135deg, #eed1b3, #ddb087);
}

/* 商品列表 */
.goods-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goods-item {
    background-color: #f0e6c9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #b9883c;
    position: relative;
    overflow: hidden;
}

.goods-image {
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

.goods-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 商品图片 */
.goods-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    /* border-radius: 6px 6px; */
    background-color: #fff;
    border: 1px solid #b9883c;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goods-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* border: 1px solid #b9883c; */
}

.goods-item:hover .goods-image img {
    transform: scale(1.05);
}

/* 商品标签 */
.goods-badge {
    position: absolute;
    z-index: 9;
    top: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
}

.new-badge {
    background-color: #4CAF50;
    color: white;
}

.hot-badge {
    background-color: #FF5722;
    color: white;
}



/* 期号信息 */
.issue-number {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 商品信息 */
.goods-info {
    text-align: left;
    padding: 15px;
}

.goods-title {
    font-size: 18px;
    font-weight: bold;
    color: #905720;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* 商品价格信息 */
.goods-price-section {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.lottery-value, .lottery-ticket-price {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    background-color: white;
    border: 1px solid #b9883c;
}

.lottery-value {
    background-color: #f8e1c3;
}

.lottery-ticket-price {
    background-color: #e6d9f0;
}

.lottery-value label, .lottery-ticket-price label {
    display: block;
    font-size: 12px;
    color: #905720;
    opacity: 0.8;
    margin-bottom: 5px;
}

.lottery-value .value, .lottery-ticket-price .price {
    font-size: 16px;
    font-weight: bold;
    color: #905720;
}

/* 抽奖信息样式 */
.lottery-info {
    margin: 15px 0;
}

.lottery-progress {
    margin: 10px 0 15px 0;
    font-size: 14px;
    color: #905720;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 倒计时样式 */
.countdown {
    background-color: #905720;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

/* 收藏按钮 */
.favorite-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 101;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn .favorite-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.favorite-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #905720;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0e6c9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #b9883c;
}

.progress-fill {
    height: 100%;
    background-color: #905720;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* 底部按钮区域 */
.goods-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.lottery-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lottery-btn:hover {
    background-color: #45a049;
}



/* 倒计时 */
.countdown {
    font-size: 12px;
    color: #905720;
    background-color: #f0e6c9;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #b9883c;
}

/* 底部导航 */
.footer {
    background: linear-gradient(90deg, #e0a86f, #fbd2b2);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px 0;
    margin: 0 auto;
    max-width: 768px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #b9883c;
}

.footer-list {
    display: flex;
    z-index: 11;
    justify-content: space-around;
    list-style: none;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: #905720;
}

.footer-item.active {
    color: #905720;
    font-weight: bold;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-item span {
    font-size: 12px;
}

/* 滚动条样式 */
.category-sidebar::-webkit-scrollbar,
.goods-container::-webkit-scrollbar {
    width: 5px;
}

.category-sidebar::-webkit-scrollbar-track,
.goods-container::-webkit-scrollbar-track {
    background: #f0e6c9;
    border-radius: 10px;
}

.category-sidebar::-webkit-scrollbar-thumb,
.goods-container::-webkit-scrollbar-thumb {
    background: #b9883c;
    border-radius: 10px;
}

.category-sidebar::-webkit-scrollbar-thumb:hover,
.goods-container::-webkit-scrollbar-thumb:hover {
    background: #905720;
}

/* 滚动播放中奖信息 */
.winner-scroll {
    background: linear-gradient(135deg, #f8d4a4, #e6b88a);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #b9883c;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.winner-content {
    display: flex;
    animation: scroll 10s linear infinite;
    white-space: nowrap;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 50px;
    font-size: 14px;
    color: #905720;
    font-weight: 500;
}

.winner-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #905720;
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-item .winner-name {
    font-weight: bold;
    color: #905720;
}

.winner-item .winner-prize {
    font-weight: bold;
    color: #4CAF50;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.winner-scroll:hover .winner-content {
    animation-play-state: paused;
}