/* 糖心vlog - 全站样式表 */
/* 域名: dlrurd.cn */
/* 品牌: 糖心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", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* ===== 品牌色彩 ===== */
:root {
    --primary-color: #ff6b9d;
    --primary-dark: #e85a8a;
    --primary-light: #ffb3cc;
    --secondary-color: #ff9a56;
    --accent-color: #a855f7;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #fafafa;
    --bg-pink: #fff5f8;
    --border-color: #eee;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== 头部导航 ===== */
.header {
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    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: 10px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

/* ===== 搜索框 ===== */
.search-bar {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

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

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

/* ===== Banner轮播 ===== */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-pink) 0%, #fff 100%);
}

.banner-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.banner-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-content {
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 40px 0;
}

.banner-text {
    flex: 1;
    padding-right: 40px;
}

.banner-text h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.banner-text h1 span {
    color: var(--primary-color);
}

.banner-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.banner-image {
    flex: 1;
}

.banner-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-dots span.active {
    background: var(--primary-color);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

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

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

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

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

.video-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.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);
}

.video-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;
}

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

.video-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: 4px;
}

.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: 12px;
}

.video-info {
    padding: 15px;
}

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

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

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

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

.video-tag {
    background: var(--bg-pink);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* ===== 功能特性 ===== */
.features {
    background: var(--bg-light);
}

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

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}

.feature-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-gray);
}

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

.expert-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

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

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

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

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

.expert-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

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

/* ===== 用户评价 ===== */
.testimonials {
    background: linear-gradient(135deg, var(--bg-pink) 0%, #fff 100%);
}

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

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-light);
}

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

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== 合作品牌 ===== */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

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

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

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.qrcode-grid {
    display: flex;
    gap: 30px;
}

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

.qrcode-item img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
}

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

/* ===== 页脚 ===== */
.footer {
    background: var(--text-dark);
    color: #fff;
    padding: 50px 0 20px;
}

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

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

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-links ul li a:hover {
    color: var(--primary-color);
}

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

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

.footer-social a:hover {
    background: var(--primary-color);
}

.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.5);
}

.update-time {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

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

.breadcrumb-list .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== 内页标题 ===== */
.page-header {
    background: linear-gradient(135deg, var(--bg-pink) 0%, #fff 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.category-tab {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===== 社区功能 ===== */
.community-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.community-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.community-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.community-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.community-card p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===== 工具卡片 ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tool-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.tool-image {
    width: 200px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.tool-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-content h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.tool-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* ===== 关于我们 ===== */
.about-intro {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-year {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .banner-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .feature-grid,
    .expert-grid,
    .testimonial-grid,
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        flex-direction: column;
    }
    
    .tool-image {
        width: 100%;
        height: 200px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .qrcode-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== 动画效果 ===== */
@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; }
}
