/* 糖心vlog网站 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 头部样式 */
.txv-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.txv-header.txv-scrolled {
    padding: 10px 0;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
}

.txv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.txv-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.txv-logo {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.txv-nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.txv-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 16px;
}

.txv-nav a:hover {
    opacity: 0.8;
}

/* 移动端菜单 */
.txv-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.txv-mobile-menu {
    display: none;
}

/* 主内容区 */
.txv-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 轮播图区域 */
.txv-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.txv-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: txvPulse 15s ease-in-out infinite;
}

@keyframes txvPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.txv-hero-content {
    position: relative;
    z-index: 1;
}

.txv-hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.txv-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 视频网格 */
.txv-section {
    padding: 60px 0;
    background: white;
}

.txv-section:nth-child(even) {
    background: #f9f9f9;
}

.txv-section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.txv-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

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

.txv-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.txv-video-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #e0e0e0;
    overflow: hidden;
}

.txv-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.txv-video-card:hover .txv-video-thumb img {
    transform: scale(1.1);
}

.txv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
    transition: all 0.3s;
}

.txv-video-card:hover .txv-play-btn {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.txv-video-info {
    padding: 20px;
}

.txv-video-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.txv-video-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

/* 分类标签 */
.txv-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.txv-cat-tag {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.txv-cat-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* 特色区域 */
.txv-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.txv-feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.txv-feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #667eea;
}

.txv-feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.txv-feature-desc {
    color: #666;
    line-height: 1.8;
}

/* 页脚 */
.txv-footer {
    background: #2d3748;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.txv-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.txv-footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

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

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

.txv-footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.txv-footer-links a:hover {
    color: white;
}

.txv-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #cbd5e0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .txv-nav {
        display: none;
    }

    .txv-menu-toggle {
        display: block;
    }

    .txv-mobile-menu {
        display: block;
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background: rgba(102, 126, 234, 0.98);
        transition: left 0.3s;
        padding: 30px;
    }

    .txv-mobile-menu.txv-active {
        left: 0;
    }

    .txv-mobile-menu ul {
        list-style: none;
    }

    .txv-mobile-menu li {
        margin-bottom: 20px;
    }

    .txv-mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
    }

    .txv-hero h2 {
        font-size: 32px;
    }

    .txv-hero p {
        font-size: 16px;
    }

    .txv-section-title {
        font-size: 28px;
    }

    .txv-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}
