/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* 顶部图片样式 */
.top-image {
    width: 100%;
    text-align: center;
    padding: 5px 0;
    background: white;
}

.top-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 顶部导航样式 */
.nav-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
}

.tab.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.tab-icon {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tab span {
    font-size: 14px;
    font-weight: 500;
}

/* 开奖信息样式 */
.lottery-info {
    padding: 15px;
    background: white;
}

.current-draw h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.winning-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.number-block {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
    flex-shrink: 0;
    background-image: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0.15) 100%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15), 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.number-block .number {
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.number-block .zodiac {
    font-size: 10px;
    margin-top: 3px;
    background-color: #8e9297;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* 倒计时样式 */
.countdown-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.countdown-info {
    flex: 1;
}

.countdown-info span {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.draw-time {
    font-size: 12px;
    color: #666;
}

.countdown-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.official-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.countdown-timer {
    background: #6c757d;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

/* 广告图片样式 */
.banner-image {
    margin: 10px;
    text-align: center;
    position: relative;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* 预测表格样式 */
.prediction-table {
    margin: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.prediction-table table {
    width: 100%;
    border-collapse: collapse;
}

.prediction-table th {
    background: #007bff;
    color: white;
    padding: 12px 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.prediction-table td {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.prediction-table td strong {
    font-weight: 700;
}

.prediction-table td .unknown {
    font-weight: 700;
    color: #666;
}

.prediction-table tr:last-child td {
    border-bottom: none;
}

.prediction-table tr:nth-child(even) {
    background: #f8f9fa;
}

.get-btn {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
}

.result-accurate {
    color: #dc3545;
    font-weight: 700;
    font-size: 15px;
}

/* 中奖轮播样式 */
.announcement-carousel {
    margin: 10px;
    background: linear-gradient(135deg, #9e9e9e, #9e9e9e);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.carousel-container {
    position: relative;
    height: 50px;
    overflow: hidden;
}

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

.announcement-item {
    flex-shrink: 0;
    padding: 15px 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    min-width: 100%;
    position: relative;
}

.announcement-item::before {
    content: '🎉';
    margin-right: 8px;
    font-size: 16px;
}

.announcement-item::after {
    content: '🎉';
    margin-left: 8px;
    font-size: 16px;
}

/* 轮播动画 */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 暂停动画（鼠标悬停时） */
.announcement-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .announcement-carousel {
        margin: 8px;
    }
    
    .carousel-container {
        height: 45px;
    }
    
    .announcement-item {
        padding: 12px 15px;
        font-size: 13px;
    }
}

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

.number-block:hover {
    animation: pulse 0.3s ease-in-out;
}

.tab:hover {
    background: rgba(0, 123, 255, 0.05);
}

.official-btn:hover,
.claim-btn:hover,
.get-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 评论区域样式 */
.comments-section {
    margin: 15px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.comments-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.comments-header h3 {
    margin: 0 0 5px 0;
    color: #ff6b35;
    font-size: 20px;
    font-weight: 700;
}

.comments-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
    font-weight: 600;
}

.comments-list {
    padding: 0;
}

.comment-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.comment-item:hover {
    background-color: #f8f9fa;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-username {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 6px;
}

.comment-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
    font-weight: 600;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
}

.comment-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.comment-likes:hover {
    color: #ff6b35;
}

.comment-likes-icon {
    font-size: 14px;
}

.comment-replies {
    margin-top: 10px;
    margin-left: 52px;
}

.comment-reply {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.comment-reply:last-child {
    border-bottom: none;
}

.comment-reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-reply-content {
    flex: 1;
    min-width: 0;
}

.comment-reply-username {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-reply-text {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .comments-header {
        padding: 12px 15px;
    }
    
    .comments-header h3 {
        font-size: 18px;
    }
    
    .comment-item {
        padding: 12px 15px;
    }
    
    .comment-main {
        gap: 10px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
    }
    
    .comment-username {
        font-size: 15px;
    }
    
    .comment-text {
        font-size: 15px;
    }
    
    .comment-replies {
        margin-left: 45px;
    }
    
    .comment-reply-avatar {
        width: 25px;
        height: 25px;
    }
    
    .comment-reply-username {
        font-size: 13px;
    }
    
    .comment-reply-text {
        font-size: 13px;
    }
}
