/* 糖心vlog - 外部CSS样式文件 */
/* 域名: mrwjb.cn */
/* 版本: 1.0.0 */

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

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

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: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
}

/* ===== 头部导航 ===== */
.header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 50%, #6b5bff 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.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: 1.5rem;
    font-weight: bold;
    color: #fff;
}

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

.nav-menu a {
    color: #fff;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== 搜索框 ===== */
.search-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255,107,157,0.3);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 100%);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

/* ===== Hero Banner ===== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,157,0.8) 0%, rgba(196,76,255,0.8) 50%, rgba(107,91,255,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
}

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

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

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

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px 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.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.85rem;
}

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

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

/* ===== 服务模块 ===== */
.services {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

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

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.service-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #666;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== 专家团队 ===== */
.experts {
    background: #fff;
}

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

.expert-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 30px auto 20px;
    overflow: hidden;
    border: 4px solid #ff6b9d;
}

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

.expert-info {
    padding: 0 20px 30px;
}

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

.expert-info h4 {
    font-size: 1rem;
    color: #ff6b9d;
    margin-bottom: 10px;
}

.expert-info h5 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.expert-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.expert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

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

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

.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.testimonial-user h4 {
    font-size: 1rem;
    color: #333;
}

.testimonial-user span {
    font-size: 0.85rem;
    color: #999;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.testimonial-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== 合作伙伴 ===== */
.partners {
    background: #fff;
    text-align: center;
}

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

.partner-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

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

/* ===== FAQ模块 ===== */
.faq {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

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

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #ff6b9d;
}

.faq-answer {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.7;
}

/* ===== 联系我们 ===== */
.contact {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 50%, #6b5bff 100%);
    color: #fff;
}

.contact .section-title h2,
.contact .section-title p {
    color: #fff;
}

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

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

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.qrcode-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

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

.qrcode-item img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.qrcode-item p {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ff6b9d;
}

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

.footer-col ul li a {
    color: #aaa;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ff6b9d;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ff6b9d;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

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

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

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

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

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

.breadcrumb-list span {
    color: #333;
}

/* ===== 社交分享 ===== */
.social-share {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-share a:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .qrcode-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 懒加载占位 ===== */
.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;
    }
}

/* ===== 工具类 ===== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ===== 页面特定样式 ===== */
.page-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 50%, #6b5bff 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-content {
    padding: 40px 0;
}

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

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.tool-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #ff6b9d;
}

.tool-card p {
    color: #666;
    margin-bottom: 20px;
}

.tool-btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44cff 100%);
    color: #fff;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

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

/* ===== 社区话题 ===== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.topic-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #ff6b9d;
}

.topic-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.topic-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.85rem;
}
