/* 糖心视频 - 热门内容页面专用样式 */

/* 基础设置和变量 */
:root {
    --primary-color: #ff6b8a;
    --secondary-color: #ff8fab;
    --accent-color: #ffa8cc;
    --text-primary: #2d1b29;
    --text-secondary: #6b4c57;
    --bg-primary: #ffffff;
    --bg-secondary: #fef7f9;
    --bg-gradient: linear-gradient(135deg, #ff6b8a 0%, #ff8fab 50%, #ffa8cc 100%);
    --shadow-sweet: 0 15px 40px rgba(255, 107, 138, 0.25);
    --shadow-hover: 0 25px 50px rgba(255, 107, 138, 0.35);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* 基础容器居中系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* CSS重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
}

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sweet);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    font-size: 28px;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.slogan {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
}

.nav-item.cta-btn {
    background: var(--bg-gradient);
    color: white;
    font-weight: 600;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding-top: 80px;
}

/* 页面头部 */
.page-hero {
    background: var(--bg-gradient);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><circle cx="200" cy="50" r="25"/><rect x="500" y="30" width="40" height="40" rx="10"/><polygon points="800,20 820,60 780,60"/></svg>');
    opacity: 0.3;
    animation: sweetFloat 18s ease-in-out infinite;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* 热门内容主要区域 */
.trending-main {
    padding: 80px 0;
    background: var(--bg-primary);
}

.trending-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sweet);
}

/* 标签页内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 热门内容网格 */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.trending-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sweet);
    transition: var(--transition);
    position: relative;
}

.trending-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.trending-card.rank-1 {
    border: 3px solid #FFD700;
    transform: scale(1.05);
}

.trending-card.rank-2 {
    border: 3px solid #C0C0C0;
    transform: scale(1.02);
}

.trending-card.rank-3 {
    border: 3px solid #CD7F32;
    transform: scale(1.01);
}

.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.trending-status {
    position: absolute;
    bottom: 210px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.trending-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 200px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.trending-card:hover .trending-overlay {
    opacity: 1;
}

.play-trending-btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.play-trending-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sweet);
}

.trending-info {
    padding: 20px;
}

.trending-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.creator-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.trending-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.trending-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: var(--bg-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.tag.rank-1 {
    background: #FFD700;
    color: #333;
}

.tag.rank-2 {
    background: #C0C0C0;
    color: #333;
}

.tag.rank-3 {
    background: #CD7F32;
    color: white;
}

.trending-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat {
    background: var(--bg-secondary);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* 其他标签页内容 */
.tab-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 40px 0;
}

.week-stats, .month-highlights {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sweet);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.highlights-list {
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sweet);
}

.highlight-rank {
    font-size: 24px;
}

.highlight-name {
    font-weight: 600;
    color: var(--text-primary);
}

.highlight-data {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 底部样式 */
.main-footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* 动画效果 */
@keyframes sweetFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .trending-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}