/* 糖心vlog - 第三版设计 - 深紫色主题 */
/* 域名: flenoh.cn */

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

:root {
    --primary: #7C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #A78BFA;
    --secondary: #EC4899;
    --accent: #F472B6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

/* 头部导航 */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-wrap .logo-img {
    height: 45px;
    width: auto;
}

.main-menu .menu-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.menu-item a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.menu-item a:hover,
.menu-item.active a {
    color: var(--primary);
}

.menu-item.active a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.header-btns {
    display: flex;
    gap: 12px;
}

.btn-outline {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    padding: 10px 22px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
}

/* 搜索栏 */
.search-section {
    background: var(--gradient);
    padding: 25px 0;
}

.search-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.search-field {
    flex: 1;
    padding: 16px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-submit {
    padding: 16px 25px;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-submit:hover {
    background: var(--primary-dark);
}

.hot-tags {
    margin-top: 15px;
    text-align: center;
}

.tag-label {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.hot-tag {
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin: 0 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    transition: background 0.3s;
}

.hot-tag:hover {
    background: rgba(255,255,255,0.35);
}

/* Hero区域 */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.7) 0%, rgba(236, 72, 153, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    color: white;
}

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

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 16px;
    max-width: 650px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.btn-hero-primary {
    padding: 14px 35px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

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

.btn-hero-outline {
    padding: 14px 35px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary);
}

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

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

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
}

/* 分类导航 */
.category-section {
    padding: 30px 0;
    background: white;
    border-bottom: 1px solid #E5E7EB;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 25px;
    background: #F3F4F6;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn:hover {
    background: #E5E7EB;
}

.cat-btn.active {
    background: var(--gradient);
    color: white;
}

/* 视频区域 */
.video-section {
    padding: 60px 0;
    background: #F9FAFB;
}

.section-head {
    text-align: center;
    margin-bottom: 45px;
}

.section-title {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
}

.view-all {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

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

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

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

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

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

.play-btn {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-btn svg {
    fill: var(--primary);
    margin-left: 5px;
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-info {
    padding: 18px;
}

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

.video-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-tags .tag {
    padding: 4px 10px;
    background: #F3E8FF;
    color: var(--primary);
    font-size: 12px;
    border-radius: 12px;
}

/* 服务区域 */
.services-section {
    padding: 70px 0;
    background: white;
}

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

.service-item {
    text-align: center;
    padding: 35px 25px;
    background: #FAFAFA;
    border-radius: 16px;
    transition: all 0.3s;
}

.service-item:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.service-item:hover .service-name,
.service-item:hover .service-desc {
    color: white;
}

.service-icon {
    font-size: 45px;
    margin-bottom: 18px;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.service-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    transition: color 0.3s;
}

/* 专家区域 */
.experts-section {
    padding: 70px 0;
    background: #F9FAFB;
}

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

.expert-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

.expert-avatar {
    height: 220px;
    overflow: hidden;
}

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

.expert-info {
    padding: 22px;
}

.expert-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.expert-title {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
}

.expert-bio {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.expert-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

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

.btn-sm {
    padding: 8px 18px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.3s;
}

.btn-sm:hover {
    transform: translateY(-2px);
}

.btn-sm-outline {
    padding: 8px 18px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-sm-outline:hover {
    background: var(--primary);
    color: white;
}

/* 社区区域 */
.community-section {
    padding: 70px 0;
    background: var(--gradient);
}

.section-head.light .section-title,
.section-head.light .section-subtitle {
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.community-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.community-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
}

.community-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.community-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.community-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.community-cta {
    text-align: center;
}

.btn-community {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

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

/* 评价区域 */
.reviews-section {
    padding: 70px 0;
    background: white;
}

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

.review-card {
    background: #F9FAFB;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.review-stars {
    font-size: 18px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-title {
    font-size: 13px;
    color: var(--gray);
}

/* FAQ区域 */
.faq-section {
    padding: 70px 0;
    background: #F9FAFB;
}

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

.faq-item {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.faq-a {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* 联系区域 */
.contact-section {
    padding: 70px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-company {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 25px;
}

.contact-item {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 12px;
}

.contact-item strong {
    color: var(--dark);
}

.studio-img {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.studio-img img {
    width: 100%;
    height: auto;
}

.contact-qrcodes {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

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

.qrcode-item img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qrcode-item p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--gray);
}

/* 合作伙伴 */
.partners-section {
    padding: 50px 0;
    background: #F9FAFB;
    text-align: center;
}

.partners-title {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 25px;
}

.partners-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-item {
    font-size: 15px;
    color: var(--gray);
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 页脚 */
.site-footer {
    background: var(--dark);
    color: white;
}

.footer-main {
    padding: 60px 0 40px;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

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

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 5px 0;
}

/* 社交悬浮按钮 */
.social-float {
    position: fixed;
    right: 25px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
}

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

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

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

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-list a {
    color: var(--gray);
    text-decoration: none;
}

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

.breadcrumb-list span {
    color: var(--dark);
}

/* 页面头部 */
.page-header {
    background: var(--gradient);
    padding: 50px 0;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* 响应式 */
@media (max-width: 1024px) {
    .video-grid,
    .services-grid,
    .experts-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    .main-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .menu-list {
        justify-content: center;
        gap: 20px;
    }
    
    .header-btns {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 0 0 45%;
    }
    
    .video-grid,
    .services-grid,
    .experts-grid,
    .reviews-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-qrcodes {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .partners-list {
        flex-direction: column;
        gap: 15px;
    }
}
