/* 糖心vlog - 全站样式表 */
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* 搜索框 */
.search-section {
    background: #f8f9fa;
    padding: 20px 0;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ff9a9e;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #ff6b8a;
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff9a9e, #ff6b8a);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff6b8a, #ff5277);
}

/* 主横幅 */
.hero-banner,
.page-hero {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 60px 0;
    text-align: center;
}

.hero-banner h1,
.page-hero h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255,255,255,0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #ff6b8a;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #ff6b8a;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 主要内容区 */
.main-content {
    padding: 40px 0;
}

/* 视频区块 */
.video-section,
.media-section,
.entertainment-section,
.ai-section,
.expert-section,
.review-section,
.guide-section,
.contact-section,
.share-section,
.service-section,
.process-section,
.level-section,
.resource-section,
.case-section,
.community-section,
.topic-section,
.activity-section,
.rules-section,
.join-section,
.tool-section,
.editor-section,
.tutorial-section,
.about-section,
.vision-section,
.history-section,
.team-section,
.partner-section,
.policy-section,
.terms-section,
.category-section {
    margin-bottom: 50px;
}

.video-section h2,
.media-section h2,
.entertainment-section h2,
.ai-section h2,
.expert-section h2,
.review-section h2,
.guide-section h2,
.contact-section h2,
.share-section h2,
.service-section h2,
.process-section h2,
.level-section h2,
.resource-section h2,
.case-section h2,
.community-section h2,
.topic-section h2,
.activity-section h2,
.rules-section h2,
.join-section h2,
.tool-section h2,
.editor-section h2,
.tutorial-section h2,
.about-section h2,
.vision-section h2,
.history-section h2,
.team-section h2,
.partner-section h2,
.policy-section h2,
.terms-section h2,
.category-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

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

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

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

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

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,107,138,0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-card:hover .play-btn {
    opacity: 1;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b8a, #ff9a9e);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.video-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.video-tags span {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* 媒体网格 */
.media-grid,
.entertainment-grid,
.ai-grid,
.expert-grid,
.service-grid,
.level-grid,
.resource-grid,
.case-grid,
.feature-grid,
.activity-grid,
.tool-grid,
.editor-grid,
.tutorial-grid,
.vision-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.media-card,
.ent-card,
.ai-card,
.expert-card,
.service-card,
.level-card,
.resource-card,
.case-card,
.feature-card,
.activity-card,
.tool-card,
.editor-card,
.tutorial-card,
.vision-card,
.team-card {
    background: linear-gradient(135deg, #fff 0%, #ffecd2 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.media-card:hover,
.ent-card:hover,
.ai-card:hover,
.expert-card:hover,
.service-card:hover,
.level-card:hover,
.resource-card:hover,
.case-card:hover,
.feature-card:hover,
.activity-card:hover,
.tool-card:hover,
.editor-card:hover,
.tutorial-card:hover,
.vision-card:hover,
.team-card:hover {
    transform: translateY(-5px);
}

.media-card h3,
.ent-card h3,
.ai-card h3,
.expert-card h3,
.service-card h3,
.level-card h3,
.resource-card h3,
.case-card h3,
.feature-card h3,
.activity-card h3,
.tool-card h3,
.editor-card h3,
.tutorial-card h3,
.vision-card h3,
.team-card h3 {
    font-size: 18px;
    color: #ff6b8a;
    margin-bottom: 10px;
}

.media-card p,
.ent-card p,
.ai-card p,
.expert-card p,
.service-card p,
.level-card p,
.resource-card p,
.case-card p,
.feature-card p,
.activity-card p,
.tool-card p,
.editor-card p,
.tutorial-card p,
.vision-card p,
.team-card p {
    font-size: 14px;
    color: #666;
}

.service-card ul,
.tool-card ul,
.level-card ul {
    text-align: left;
    margin-top: 15px;
}

.service-card li,
.tool-card li,
.level-card li {
    padding: 5px 0;
    font-size: 13px;
    color: #666;
}

.service-card li::before,
.tool-card li::before,
.level-card li::before {
    content: '✓';
    color: #ff6b8a;
    margin-right: 8px;
}

.level-card.featured {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
}

.level-card.featured h3 {
    color: #fff;
}

.level-card.featured p,
.level-card.featured li {
    color: rgba(255,255,255,0.9);
}

.level-card.featured li::before {
    color: #fff;
}

.resource-count {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #ff6b8a;
    font-weight: bold;
}

.activity-status {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

.activity-status.ongoing {
    background: #4CAF50;
    color: #fff;
}

.expert-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #ff6b8a;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
}

.expert-link:hover {
    background: #ff5277;
}

/* 评价区块 */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #ff6b8a;
}

.review-content p {
    font-size: 15px;
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-size: 14px;
    color: #999;
    text-align: right;
}

/* 指南区块 */
.guide-steps,
.process-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.step,
.process-step {
    text-align: center;
    max-width: 200px;
}

.step-num,
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9a9e, #ff6b8a);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3,
.process-step h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.step p,
.process-step p {
    font-size: 14px;
    color: #666;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.faq-item h4 {
    font-size: 16px;
    color: #ff6b8a;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 14px;
    color: #666;
}

/* 话题列表 */
.topic-list {
    max-width: 800px;
    margin: 0 auto;
}

.topic-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.topic-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.topic-tag.hot {
    background: #ff6b8a;
    color: #fff;
}

.topic-tag.new {
    background: #4CAF50;
    color: #fff;
}

.topic-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.topic-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.topic-meta {
    font-size: 13px;
    color: #999;
}

.topic-meta span {
    margin-right: 15px;
}

/* 联系区块 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-card,
.contact-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.contact-card h3,
.contact-item h3 {
    font-size: 18px;
    color: #ff6b8a;
    margin-bottom: 15px;
}

.contact-card p,
.contact-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* 分享按钮 */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn {
    padding: 12px 30px;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.05);
}

.share-btn.wechat {
    background: #07C160;
}

.share-btn.weibo {
    background: #E6162D;
}

.share-btn.douyin {
    background: #000;
}

.share-btn.bilibili {
    background: #00A1D6;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: 2px solid #ff6b8a;
    background: #fff;
    color: #ff6b8a;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #ff6b8a;
    color: #fff;
}

/* 时间线 */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 30px;
    border-left: 2px solid #ff6b8a;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-item .year {
    position: absolute;
    left: -50px;
    top: 0;
    background: #ff6b8a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.timeline-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: #666;
}

/* 加入社区 */
.join-content {
    text-align: center;
}

.join-content > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.join-channels {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.channel-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    min-width: 250px;
}

.channel-item h3 {
    font-size: 16px;
    color: #ff6b8a;
    margin-bottom: 10px;
}

.channel-item p {
    font-size: 14px;
    color: #666;
}

/* 规则内容 */
.rules-content {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.rule-item h3 {
    font-size: 16px;
    color: #ff6b8a;
    margin-bottom: 8px;
}

.rule-item p {
    font-size: 14px;
    color: #666;
}

/* 关于内容 */
.about-content,
.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p,
.guide-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.guide-content h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 10px;
}

/* 政策和条款内容 */
.policy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2,
.terms-content h2 {
    font-size: 20px;
    color: #333;
    margin: 30px 0 15px;
    text-align: left;
}

.policy-content p,
.terms-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.policy-content ul,
.terms-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.policy-content li,
.terms-content li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    list-style: disc;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 20px;
    font-weight: bold;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-qrcode {
    display: flex;
    gap: 20px;
}

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

.qr-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .media-grid,
    .entertainment-grid,
    .ai-grid,
    .expert-grid,
    .service-grid,
    .level-grid,
    .resource-grid,
    .tool-grid,
    .editor-grid,
    .tutorial-grid,
    .vision-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-banner h1,
    .page-hero h1 {
        font-size: 28px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .media-grid,
    .entertainment-grid,
    .ai-grid,
    .expert-grid,
    .service-grid,
    .level-grid,
    .resource-grid,
    .case-grid,
    .feature-grid,
    .activity-grid,
    .tool-grid,
    .editor-grid,
    .tutorial-grid,
    .vision-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-steps,
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .join-channels {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-item .year {
        left: -35px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner h1,
    .page-hero h1 {
        font-size: 24px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 25px;
        border-right: 2px solid #ff9a9e;
        margin-bottom: 10px;
    }
    
    .search-btn {
        border-radius: 25px;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}
