/* 
 * 糖心vlog - etermyun.com 原创样式
 * 版本: 1.0.0
 * 创建日期: 2025-12-20
 */

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

html {
    font-size: 16px;
    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: linear-gradient(135deg, #fff5f8 0%, #ffeef3 50%, #fff0f5 100%);
    min-height: 100vh;
}

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

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

ul, ol {
    list-style: none;
}

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

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #e75a7c;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #ffa8c5);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==================== 头部导航 ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(231, 90, 124, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

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

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e75a7c, #ff8fab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e75a7c, #ff8fab);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #e75a7c;
}

/* ==================== 搜索框 ==================== */
.search-bar {
    background: linear-gradient(135deg, #fff0f5, #ffe8ef);
    padding: 20px 0;
    border-bottom: 1px solid rgba(231, 90, 124, 0.1);
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ffc0d0;
    border-radius: 30px;
    font-size: 1rem;
    background: white;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #e75a7c;
    box-shadow: 0 0 20px rgba(231, 90, 124, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #e75a7c, #ff8fab);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ==================== Hero区域 ==================== */
.hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e75a7c, #ff6b9d, #ffa8c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e75a7c;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(231, 90, 124, 0.3);
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e75a7c, #ff8fab);
    color: white;
    box-shadow: 0 8px 25px rgba(231, 90, 124, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 90, 124, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e75a7c;
    color: #e75a7c;
}

.btn-outline:hover {
    background: #e75a7c;
    color: white;
}

/* ==================== 视频卡片 ==================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

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

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

.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: 60px;
    height: 60px;
    background: rgba(231, 90, 124, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

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

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

.video-info {
    padding: 18px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    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.85rem;
    color: #888;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== 分类标签 ==================== */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.category-tag {
    padding: 10px 24px;
    background: white;
    border: 2px solid #ffc0d0;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #e75a7c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover,
.category-tag.active {
    background: linear-gradient(135deg, #e75a7c, #ff8fab);
    border-color: transparent;
    color: white;
}

/* ==================== 专家团队 ==================== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.expert-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(231, 90, 124, 0.15);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid #ffc0d0;
}

.expert-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.expert-role {
    font-size: 0.9rem;
    color: #e75a7c;
    margin-bottom: 15px;
}

.expert-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ==================== 用户评价 ==================== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc0d0, #ffb3c6);
}

.review-author {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.review-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* ==================== 合作伙伴 ==================== */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-logo {
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #2d2d3a, #1a1a24);
    color: #ccc;
    padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #999;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #999;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #999;
}

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

.footer-bottom p {
    font-size: 0.9rem;
    color: #777;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e75a7c;
    color: white;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.5);
}

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

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: #ccc;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: #666;
}

.breadcrumb-list a:hover {
    color: #e75a7c;
}

.breadcrumb-list .current {
    color: #e75a7c;
}

/* ==================== 内容页面 ==================== */
.page-header {
    background: linear-gradient(135deg, #fff0f5, #ffe8ef);
    padding: 50px 0;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e75a7c;
    margin-bottom: 15px;
}

.page-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.content-section h2 {
    font-size: 1.5rem;
    color: #e75a7c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffc0d0;
}

.content-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 25px 0 15px;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #555;
}

.content-section ul li::before {
    content: '♥';
    position: absolute;
    left: 0;
    color: #e75a7c;
}

/* ==================== 工具卡片 ==================== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    border-color: #ffc0d0;
    transform: translateY(-5px);
}

.tool-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fff0f5, #ffe8ef);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.tool-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tool-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .content-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

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

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

/* ==================== 懒加载占位 ==================== */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


/* ==================== 专家团队样式 ==================== */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.expert-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
}

.expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.expert-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.expert-role {
    font-size: 0.9rem;
    color: #ff6b95;
    margin-bottom: 10px;
}

.expert-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}
