/* 糖心vlog - 全新原创设计样式表 */
/* 域名：kangzenghui.cn */

/* ========== CSS变量定义 ========== */
:root {
    --primary-color: #ff6b9d;
    --primary-dark: #e85a8a;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-light: #fdf2f8;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* ========== 容器布局 ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 顶部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 15px 0;
    background: var(--bg-light);
    margin-top: 70px;
}

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

.breadcrumb-item {
    color: var(--text-light);
}

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

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========== Hero区域 ========== */
.hero {
    margin-top: 70px;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(-15deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--text-white);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 5%;
    bottom: 0;
    max-width: 45%;
    z-index: 1;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-white);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ========== 搜索框 ========== */
.search-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: var(--bg-white);
    padding: 8px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

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

.search-btn {
    padding: 15px 35px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ========== 功能卡片网格 ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ========== 功能卡片 ========== */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 2rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== 视频卡片 ========== */
.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--bg-white);
}

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

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

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid var(--text-white);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

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

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.video-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.video-info {
    padding: 20px;
}

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

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.video-tag {
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
}

/* ========== 专家团队 ========== */
.expert-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.expert-avatar {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.expert-card:hover .expert-avatar img {
    transform: scale(1.05);
}

.expert-info {
    padding: 25px 20px;
    text-align: center;
}

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

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

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

.expert-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.credential-tag {
    padding: 4px 10px;
    background: var(--bg-light);
    color: var(--secondary-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

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

.expert-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.expert-btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
}

.expert-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* ========== 合作品牌 ========== */
.partners-section {
    background: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    height: 80px;
    transition: var(--transition);
}

.partner-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ========== 加入社区指南 ========== */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.guide-step {
    text-align: center;
    position: relative;
}

.guide-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.guide-step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ========== FAQ常见问题 ========== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

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

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

/* ========== 用户评价 ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
}

.review-author {
    flex: 1;
}

.review-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

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

.review-rating {
    color: var(--accent-color);
    font-size: 1rem;
}

.review-content {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== 分享按钮 ========== */
.share-section {
    text-align: center;
    padding: 50px 0;
    background: var(--bg-light);
}

.share-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #000000; }
.share-bilibili { background: #00a1d6; }
.share-qq { background: #12b7f5; }

/* ========== 联系我们 ========== */
.contact-section {
    background: var(--bg-dark);
    color: var(--text-white);
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    line-height: 1.8;
}

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

.contact-qrcode h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    margin: 0 auto;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-logo img {
    height: 35px;
}

.footer-logo span {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-align: center;
}

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

.footer-link {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

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

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .card-grid-3,
    .card-grid-4,
    .card-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-step::after {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .card-grid,
    .card-grid-3,
    .card-grid-4,
    .card-grid-6 {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    
    .search-btn {
        width: 100%;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========== 图片懒加载 ========== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
