/* 糖心vlog - 主样式表 */
/* 品牌色彩系统 */
:root {
    --primary-pink: #ff6b9d;
    --primary-purple: #9b59b6;
    --gradient-start: #ff6b9d;
    --gradient-end: #9b59b6;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-medium);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img {
    height: 45px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-menu a {
    color: #fff;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 搜索框 */
.search-bar {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-pink);
}

.search-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

/* 热门标签 */
.hot-tags {
    max-width: 600px;
    margin: 10px auto 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.hot-tags a {
    display: inline-block;
    margin: 0 8px;
    color: var(--primary-pink);
    transition: color 0.3s ease;
}

.hot-tags a:hover {
    color: var(--primary-purple);
}

/* 公司资质展示 */
.credential-section {
    background: linear-gradient(135deg, #fff5f8, #f8f5ff);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.credential-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.credential-icon {
    font-size: 1.2rem;
}

/* Banner区域 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.7), rgba(155, 89, 182, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: var(--primary-pink);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 15px;
}

/* 视频卡片区域 */
.video-section {
    padding: 60px 0;
    background: var(--bg-white);
}

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

.video-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 157, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

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

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

.video-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
}

.video-stats {
    display: flex;
    gap: 15px;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分类模块 */
.category-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff5f8, #f8f5ff);
}

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

.category-card {
    background: var(--bg-white);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

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

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 专家展示 */
.expert-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.expert-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: transform 0.3s ease;
}

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

.expert-avatar {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.expert-info {
    padding: 20px;
}

.expert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-pink);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.expert-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.credential-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fff5f8, #f8f5ff);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--text-dark);
}

.expert-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.expert-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    padding: 8px 20px;
    border: 2px solid var(--primary-pink);
    color: var(--primary-pink);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: #fff;
}

/* AI赋能区域 */
.ai-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.ai-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.ai-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 社区功能 */
.community-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff5f8, #f8f5ff);
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.community-item {
    background: var(--bg-white);
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

.community-item:hover {
    transform: translateY(-5px);
}

.community-icon {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.community-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.community-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 成功案例 */
.case-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.case-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.case-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.case-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 合作伙伴 */
.partner-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff5f8, #f8f5ff);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logos img {
    max-height: 80px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logos img:hover {
    opacity: 1;
}

/* 用户评价 */
.review-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.review-rating {
    color: #f1c40f;
    font-size: 0.9rem;
}

.review-content {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* FAQ区域 */
.faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff5f8, #f8f5ff);
}

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

.faq-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #fff5f8;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-pink);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* 联系我们 */
.contact-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-pink);
}

.contact-card p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-card img {
    max-width: 120px;
    margin-top: 10px;
    border-radius: 8px;
}

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

.footer-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-desc {
    flex: 1;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 500px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-pink);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-qr {
    display: flex;
    gap: 10px;
}

.footer-qr img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.social-share {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-share a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: var(--primary-pink);
}

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

.footer-bottom p {
    margin-bottom: 5px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9rem;
}

.breadcrumb-list li::after {
    content: '>';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: var(--primary-pink);
}

.breadcrumb-list li:last-child {
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .credential-bar {
        gap: 15px;
    }
    
    .credential-item {
        font-size: 0.8rem;
    }
    
    .video-grid,
    .category-grid,
    .expert-grid,
    .ai-grid,
    .community-features,
    .case-grid,
    .review-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-qr {
        justify-content: center;
    }
    
    .social-share {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .hot-tags {
        font-size: 0.8rem;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .expert-credentials {
        justify-content: center;
    }
}
