/* 液态风格基础变量 */
:root {
    --scq-bg: #fff;
    --scq-glass: rgba(255,255,255,0.6);
    --scq-blur: blur(18px);
    --scq-radius: 22px;
    --scq-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    --scq-primary: #1677ff;
    --scq-secondary: #a5b4fc;
    --scq-text: #222;
    --scq-muted: #6b7280;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f7f8fa;
    overflow-x: hidden;
    max-width: 100vw;
}

/* 顶部区域 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.user-avatar-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.user-info {
    flex: 1;
    margin-left: 8px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.user-id {
    font-size: 11px;
    color: #999;
}

.user-points {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 4px 8px;
    margin-left: 16px;
}

.points-icon {
    color: #ff6b00;
    margin-right: 4px;
    font-size: 12px;
}

.points-value {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b00;
}

.points-label {
    font-size: 12px;
    color: #666;
    margin-left: 2px;
}

/* 主要内容区域 */
.container {
    margin-top: 44px;
    padding: 4px;
    padding-bottom: 80px;
}

/* 综合信息区域 - 简化样式 */
.lucky-draw-unified {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    overflow: hidden;
    padding: 8px;
    border: 1px solid #f0f0f0;
}

/* 抽奖数据统计 */
.draw-statistics {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
}

.stat-item:last-child {
    border-right: none;
}

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

.stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* 抽奖动态播报 */
.broadcast-section {
    padding-top: 4px;
    position: relative;
}

.broadcast-title {
    display: none; /* 隐藏中奖播报标题 */
}

.broadcast-container {
    position: relative;
    height: 52px;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.broadcast-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 6px 0;
    animation: scrollBroadcast 12s linear infinite; /* 固定12秒循环 */
}

@keyframes scrollBroadcast {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.broadcast-item {
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 28px;
    line-height: 28px;
    transition: all 0.3s ease;
}

.broadcast-item:hover {
    background-color: #f0f0f0;
}

.broadcast-item:before {
    content: '•';
    color: #ff6b00;
    margin-right: 5px;
}

.broadcast-item .username {
    color: #ff6b00;
    font-weight: 500;
    margin-right: 3px;
}

.broadcast-item .prize {
    color: #ff4d4f;
    font-weight: 500;
    margin: 0 3px;
    padding: 0 2px;
    background: rgba(255, 77, 79, 0.1);
    border-radius: 2px;
}

.broadcast-item .time {
    color: #999;
    font-size: 11px;
    margin-left: 5px;
}

/* 九宫格抽奖区域 - 橙色毛玻璃效果 */
.lucky-draw-container {
    background: rgba(255, 107, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.15);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    aspect-ratio: 1/1;
    margin-bottom: 8px;
}

.grid-item {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.grid-item.active {
    border-color: #ff6b00;
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

/* 中间LOGO容器 - 橙色毛玻璃效果 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.9), rgba(255, 77, 79, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
    padding: 10px;
    border-radius: 12px;
}

.logo-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 奖品图片样式 - 增大尺寸 */
.prize-img {
    width: 95%;
    height: 75%;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.1);
}

.prize-img img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.prize-name {
    font-size: 13px;
    line-height: 1.2;
    color: #ff6b00;
    text-align: center;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 8px;
    border-radius: 6px;
    width: 95%;
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: 0 1px 4px rgba(255, 107, 0, 0.1);
}

.prize-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    height: 100%;
    box-sizing: border-box;
}

/* 中奖高亮效果 - 橙色毛玻璃 */
.grid-item.active .prize-img {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    border-color: #ff6b00;
    background: rgba(255, 255, 255, 0.95);
}

.grid-item.active .prize-img img {
    transform: scale(1.15);
}

.grid-item:hover .prize-img img {
    transform: scale(1.08);
}

/* 抽奖按钮区域 */
.draw-button-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0 0;
}

.draw-btn {
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.3);
    transition: all 0.3s ease;
    min-width: 160px;
    outline: none;
    position: relative;
    overflow: hidden;
}

.draw-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.draw-btn:hover:not(.disabled):before {
    left: 150%;
}

.draw-btn:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 77, 79, 0.4);
}

.draw-btn:active:not(.disabled) {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

.draw-btn.disabled,
.draw-btn:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.8;
}

.draw-chances {
    display: none; /* 隐藏今日剩余抽奖次数 */
}

/* 额外抽奖机会区域 */
.extra-chances {
    background-color: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
    border: 1px solid #f0f0f0;
}

.extra-title {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ff6b00;
    font-size: 14px;
    font-weight: 600;
}

.extra-title i {
    margin-right: 8px;
}

.extra-item {
    display: flex;
    align-items: center;
    padding: 6px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 6px;
}

.extra-item:last-child {
    margin-bottom: 0;
}

.extra-icon {
    width: 32px;
    height: 32px;
    background-color: #ffdc9c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b00;
    margin-right: 8px;
    flex-shrink: 0;
}

.extra-info {
    flex: 1;
}

.extra-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1px;
}

.extra-desc {
    font-size: 11px;
    color: #666;
}

/* 我的奖品记录区域 */
.my-rewards {
    background-color: #fff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 5px;
    border: 1px solid #f0f0f0;
}

.rewards-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 6px;
}

.rewards-title span {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b00;
}

.rewards-title a {
    font-size: 12px;
    color: #1677ff;
    text-decoration: none;
    background-color: #f0f9ff;
    padding: 2px 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.rewards-title a:hover {
    background-color: #e6f4ff;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 60px;
}

.reward-item {
    display: flex;
    align-items: center;
    padding: 6px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.reward-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.reward-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 8px;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.reward-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reward-item-info {
    flex: 1;
}

.reward-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #ff6b00;
    margin-bottom: 2px;
}

.reward-item-time {
    font-size: 11px;
    color: #999;
}

.empty-rewards {
    text-align: center;
    color: #999;
    padding: 20px 0;
    font-size: 14px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-top: 4px;
}

/* 底部导航栏 - 使用首页样式 */
.bottom-nav {
    position: fixed;
    left: 0; 
    right: 0; 
    bottom: 0;
    width: 100vw;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--scq-glass);
    backdrop-filter: var(--scq-blur);
    border-radius: var(--scq-radius) var(--scq-radius) 0 0;
    box-shadow: 0 -2px 16px rgba(22, 119, 255, 0.08);
    padding: 8px 0 4px 0;
    z-index: 20;
}

.nav-item {
    flex: 1;
    text-align: center;
    color: var(--scq-muted);
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: color 0.2s;
    padding: 6px 0;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--scq-primary);
}

.nav-item:hover {
    color: var(--scq-primary);
}

/* 中奖弹窗 - 毛玻璃效果 */
.reward-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.reward-popup.show {
    display: flex;
}

.reward-popup-content {
    width: 80%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.reward-header {
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.congrats-title {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.close-btn i {
    color: #666;
    font-size: 16px;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.close-btn:hover i {
    color: #ff4d4f;
}

.reward-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reward-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.1);
}

.reward-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.reward-name {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b00;
    margin-bottom: 8px;
}

.reward-desc {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.reward-footer {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.confirm-btn {
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4);
}

/* 抽奖次数用完弹窗 - 毛玻璃效果 */
.limit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.limit-popup.show {
    display: flex;
}

.limit-popup-content {
    width: 80%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.limit-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.limit-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.limit-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.limit-icon {
    font-size: 48px;
    color: #ff6b00;
    margin-bottom: 16px;
}

.limit-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.limit-subtext {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.limit-footer {
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.read-btn {
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    transition: all 0.3s ease;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4);
}

.cancel-btn {
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #666;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cancel-btn:hover {
    background: rgba(245, 245, 245, 1);
    transform: translateY(-2px);
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 动画效果 - 简化 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 抽奖动画效果 */
.grid-item.highlight {
    animation: pulse 0.5s ease infinite;
}

/* 响应式调整 */
@media (max-width: 520px) {
    .container {
        padding: 8px;
    }
    
    .grid-container {
        gap: 6px;
    }
    
    .prize-img {
        width: 90%;
        height: 70%;
    }
    
    .prize-name {
        font-size: 12px;
    }
    
    .draw-btn {
        padding: 10px 30px;
        font-size: 15px;
        min-width: 140px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .records-popup-content {
        width: 95%;
    }
    
    /* 底部导航栏响应式 */
    .bottom-nav {
        max-width: 100vw;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 8px;
    }
    
    .grid-container {
        gap: 4px;
    }
    
    .prize-img {
        width: 88%;
        height: 68%;
        padding: 6px;
    }
    
    .prize-name {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .draw-btn {
        padding: 8px 25px;
        font-size: 14px;
        min-width: 130px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .records-popup-content {
        width: 95%;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 自定义字体图标 - fa-books 修复 */
.fa-books:before {
    content: "\f02d";
    transform: translateX(-2px);
}

.fa-books:after {
    content: "\f02d";
    position: absolute;
    transform: translateX(2px);
}

/* Prize rotation for animation */
@keyframes rotateItems {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rotate-animation {
    animation: rotateItems 0.5s linear infinite;
}

/* 所有记录弹窗 - 毛玻璃效果 */
.records-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.records-popup.show {
    display: flex;
}

.records-popup-content {
    width: 90%;
    max-width: 350px;
    height: 80%;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.records-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.records-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.records-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.records-tabs {
    display: flex;
    background: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: #ff6b00;
    border-bottom: 2px solid #ff6b00;
    background: rgba(255, 255, 255, 0.5);
}

.records-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.record-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.record-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.record-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.record-prize-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px;
}

.record-prize-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.record-info {
    flex: 1;
}

.record-prize-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}

.record-time {
    font-size: 12px;
    color: #999;
}

.record-count {
    min-width: 28px;
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 12px;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

/* 紧凑布局样式 */
.compact-layout {
    max-width: 100%;
    padding: 4px;
    padding-bottom: 80px;
    margin-top: 44px;
}

/* 折叠区域 */
.collapsed-sections {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 媒体查询优化 */
@media (max-width: 360px) {
    .container {
        padding: 3px;
        padding-bottom: 80px;
    }
    
    .lucky-draw-unified {
        padding: 6px;
        margin-bottom: 4px;
    }
    
    .lucky-draw-container {
        padding: 6px;
        margin-bottom: 4px;
    }
    
    .grid-container {
        gap: 4px;
    }
    
    .extra-chances,
    .my-rewards {
        padding: 6px;
        margin-bottom: 4px;
    }
}

@media (min-width: 400px) {
    .compact-layout {
        max-width: 380px;
        margin: 44px auto 0;
    }
}

/* 文章列表样式 */
.article-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

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

.article-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #f0f0f0;
}

.article-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-source {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
}

.article-source-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 4px;
}

.article-date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.article-status {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    z-index: 5;
    font-weight: bold;
}

.article-status.read {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.article-loading {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

/* 文章详情弹窗 - 毛玻璃效果 */
.article-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.article-popup.show {
    display: flex;
}

.article-popup-content {
    width: 90%;
    max-width: 500px;
    height: 80%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-header {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.8);
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.article-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
}

.article-footer {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
}

.read-complete-btn {
    background: linear-gradient(135deg, #ff6b00, #ff4d4f);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.read-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 79, 0.4);
}

.read-complete-btn.disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: none;
} 