
.viral-cases-container {
position: relative;
overflow: hidden;
padding: 20px 0;
}

.viral-cases-slider {
display: flex;
transition: transform 0.5s ease;
gap: 20px;
}

.viral-case-item {
flex: 0 0 300px;
}

.viral-case-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
cursor: pointer;
}

.viral-case-card:hover {
transform: translateY(-5px);
}

.viral-case-card img {
width: 100%;
height: 300px;
object-fit: cover;
}

.viral-case-placeholder {
width: 100%;
height: 300px;
background-color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
color: #999;
}

.viral-case-content {
padding: 15px;
}

.viral-case-platform {
display: inline-block;
padding: 3px 8px;
border-radius: 4px;
font-size: 12px;
margin-bottom: 10px;
}

.viral-case-platform.douyin {
background-color: #ff6b6b;
color: white;
}

.viral-case-platform.xiaohongshu {
background-color: #ff69b4;
color: white;
}

.viral-case-content h3 {
margin: 0 0 10px 0;
font-size: 16px;
color: #333;
}

.viral-case-content p {
margin: 0 0 15px 0;
font-size: 14px;
color: #666;
line-height: 1.4;
}

.viral-case-link {
display: inline-block;
padding: 6px 12px;
background-color: #ff6b9d;
color: white;
border-radius: 4px;
font-size: 14px;
text-decoration: none;
transition: background-color 0.3s ease;
}

.viral-case-link:hover {
background-color: #feca57;
}

.viral-case-copy {
display: inline-block;
padding: 6px 12px;
background-color: #4ecdc4;
color: white;
border: none;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.viral-case-copy:hover {
background-color: #45b7aa;
}

.viral-cases-prev,
.viral-cases-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
background-color: rgba(255, 107, 157, 0.8);
color: white;
border: none;
border-radius: 50%;
font-size: 20px;
cursor: pointer;
z-index: 10;
transition: background-color 0.3s ease;
}

.viral-cases-prev:hover,
.viral-cases-next:hover {
background-color: #ff6b9d;
}

.viral-cases-prev {
left: 10px;
}

.viral-cases-next {
right: 10px;
}

.viral-case-empty {
flex: 0 0 100%;
text-align: center;
padding: 40px;
background-color: #f8f9fa;
border-radius: 12px;
color: #666;
}


.ranking-item {
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
background: #f8f9fa;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
height: 100%;
}

.ranking-item:hover {
transform: translateY(-5px);
box-shadow: 0 4px 16px rgba(255, 107, 157, 0.2);
}

.ranking-rank {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1rem;
font-weight: bold;
margin-bottom: 0.8rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ranking-rank.top1 {
background: linear-gradient(135deg, #ffd700, #ffed4e);
color: white;
box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.ranking-rank.top2 {
background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
color: white;
box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.ranking-rank.top3 {
background: linear-gradient(135deg, #cd7f32, #f0b27a);
color: white;
box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.ranking-rank.other {
background: linear-gradient(135deg, #f0f0f0, #f8f8f8);
color: #666;
}

.ranking-username {
font-size: 1rem;
font-weight: 500;
color: #333;
margin-bottom: 0.5rem;
text-align: center;
word-break: break-word;
}

.ranking-amount {
font-size: 0.9rem;
color: #ff6b9d;
font-weight: bold;
text-shadow: 0 1px 2px rgba(255, 107, 157, 0.3);
}

.ranking-empty {
text-align: center;
padding: 3rem 1rem;
color: #666;
font-size: 1rem;
background-color: #f8f9fa;
border-radius: 12px;
margin: 1rem 0;
}


@media (max-width: 768px) {
.viral-case-item {
flex: 0 0 250px;
}

.viral-cases-prev,
.viral-cases-next {
width: 30px;
height: 30px;
font-size: 16px;
}
}

@media (max-width: 480px) {
.ranking-bar-content {
padding: 1rem;
}

.ranking-carousel-inner > div {
flex: 0 0 50% !important;
padding: 0.5rem;
}

.ranking-item {
padding: 0.8rem;
}

.ranking-rank {
width: 32px;
height: 32px;
font-size: 0.9rem;
margin-bottom: 0.5rem;
}

.ranking-username {
font-size: 0.9rem;
}

.ranking-amount {
font-size: 0.8rem;
}

.ranking-carousel-prev,
.ranking-carousel-next {
width: 30px;
height: 30px;
font-size: 1rem;
}
}


.task-card {
position: relative;
padding-bottom: 4rem;
cursor: pointer;
transition: transform 0.3s ease;
}

.task-card:hover {
transform: translateY(-5px);
}


.lazy-load {
opacity: 0;
transition: opacity 0.3s ease;
}

.lazy-load.loaded {
opacity: 1;
}


.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}

.stats-card {
background: linear-gradient(135deg, #ff6b9d, #feca57);
color: white;
padding: 2rem;
border-radius: 16px;
text-align: center;
box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.stats-card h3 {
margin-bottom: 1rem;
font-size: 1.1rem;
font-weight: 500;
}

.stats-card .value {
font-size: 2.5rem;
font-weight: bold;
}


.welcome-section {
text-align: center;
margin: 3rem 0;
}

.welcome-section h2 {
font-size: 2rem;
font-weight: bold;
color: #ff6b9d;
text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.3);
margin-bottom: 1rem;
}

.welcome-section p {
font-size: 1.1rem;
color: #666;
max-width: 800px;
margin: 0 auto;
}


.bottom-tips {
margin-top: 4rem;
text-align: center;
padding: 2rem;
background-color: #fff5f8;
border-radius: 12px;
}

.bottom-tips h3 {
color: #ff6b9d;
margin-bottom: 1rem;
}

.tips-grid {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin-top: 2rem;
}

.tip-item {
flex: 1;
min-width: 200px;
margin: 1rem;
}

.tip-item .number {
font-size: 2rem;
color: #ff6b9d;
margin-bottom: 0.5rem;
}

.tip-item h4 {
color: #333;
margin-bottom: 0.5rem;
}

.tip-item p {
color: #666;
font-size: 0.9rem;
}