﻿﻿/* 糖心vlog网页版 - 全新样式 */
:root {
    --primary: #ff4d6d;
    --primary-dark: #c9184a;
    --secondary: #ffb3c6;
    --accent: #ff8fa3;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #8d99ae;
    --gradient: linear-gradient(145deg, #ff4d6d, #c9184a);
    --shadow: 0 10px 30px rgba(255, 77, 109, 0.15);
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #fafafa;
    color: var(--dark);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* 新头部设计 */
header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 77, 109, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-circle {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transform: rotate(5deg);
    box-shadow: var(--shadow);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 12px;
    color: var(--gray);
    display: block;
    line-height: 1.2;
}

/* 新导航 */
.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-item {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    color: var(--dark);
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255, 77, 109, 0.05);
    color: var(--primary);
}

.nav-item.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
}

/* 搜索区域新设计 */
.search-section {
    margin: 30px 0;
}

.search-wrapper {
    background: #fff;
    border-radius: 60px;
    padding: 5px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

.search-wrapper input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    outline: none;
    background: transparent;
    border-radius: 60px;
}

.search-wrapper button {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.2);
}

.search-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
}

.hot-searches {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.hot-label {
    color: var(--gray);
    font-weight: 500;
}

.hot-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hot-tags a {
    color: var(--dark);
    text-decoration: none;
    padding: 3px 12px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.hot-tags a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 新hero区域 */
.hero-section {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe9ef 100%);
    border-radius: 30px;
    padding: 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    background: rgba(255, 77, 109, 0.15);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--dark);
}

.hero-content h2 span {
    color: var(--primary);
    display: block;
    font-size: 32px;
    font-weight: 500;
}

.hero-content p {
    color: #4a4e69;
    margin-bottom: 25px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item .label {
    font-size: 13px;
    color: var(--gray);
}

/* 视频卡片新样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.video-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.thumbnail {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-item:hover .thumbnail img {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-item:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon::after {
    content: '';
    border-left: 16px solid var(--primary);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    backdrop-filter: blur(5px);
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray);
    font-size: 12px;
}

.uploader {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uploader img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* 分类新样式 */
.categories-new {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    margin: 40px 0;
}

.category-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.category-item {
    background: linear-gradient(145deg, #fff, #fafafa);
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.category-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.1);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.category-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-item span {
    font-size: 11px;
    color: var(--gray);
}

/* 排行榜新样式 */
.rankings {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    margin: 40px 0;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rank-card {
    background: #fafafa;
    border-radius: 20px;
    padding: 20px;
}

.rank-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.rank-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.rank-header h4 {
    font-size: 16px;
    font-weight: 700;
}

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

.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.rank-list li:last-child {
    border-bottom: none;
}

.rank-num {
    width: 24px;
    height: 24px;
    background: #eee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
}

.rank-list li:nth-child(1) .rank-num {
    background: var(--gradient);
    color: #fff;
}

.rank-list li:nth-child(2) .rank-num {
    background: linear-gradient(145deg, #ffb3c6, #ff8fa3);
    color: #fff;
}

.rank-list li:nth-child(3) .rank-num {
    background: linear-gradient(145deg, #ffd6e0, #ffb3c6);
    color: #fff;
}

.rank-info {
    flex: 1;
}

.rank-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.rank-stats {
    font-size: 11px;
    color: var(--gray);
}

/* 新页脚 */
footer {
    background: #1e1e2f;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-radius: 40px 40px 0 0;
}

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

.footer-about h4 {
    font-size: 20px;
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links h5 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 768px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .nav-menu {
        display: none;
    }
}