/* 糖心vlog - 主样式文件 */
/* 品牌：糖心vlog | 域名：zklvhui.cn */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ff8fab;
    --accent-color: #ffc3d8;
    --dark-color: #2d2d2d;
    --light-color: #fff5f8;
    --text-color: #333;
    --text-light: #666;
    --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 50%, #ffc3d8 100%);
    --shadow-light: 0 2px 10px rgba(255, 107, 157, 0.15);
    --shadow-medium: 0 4px 20px rgba(255, 107, 157, 0.2);
    --shadow-heavy: 0 8px 30px rgba(255, 107, 157, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

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

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

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

/* Header Navigation */
.header {
    background: #fff;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.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;
    list-style: none;
    gap: 30px;
}

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

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Search Box */
.search-container {
    background: var(--light-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--accent-color);
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.search-box input {
    flex: 1;
    padding: 12px 25px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    padding: 12px 30px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    opacity: 0.9;
}

/* Hero Section */
.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.7) 0%, rgba(255, 143, 171, 0.5) 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: 20px;
}

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

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

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

/* Section Styles */
.section {
    padding: 60px 0;
}

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

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

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-title .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Video Card Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

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

.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.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: var(--transition);
}

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

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

.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: 0.85rem;
}

.video-info {
    padding: 15px;
}

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

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
}

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

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

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.category-tag {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Expert Section */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.expert-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.expert-card:hover {
    box-shadow: var(--shadow-medium);
}

.expert-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

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

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

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

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn-secondary {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Partners Section */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.partner-logo {
    height: 60px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

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

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.review-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
}

.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: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.review-author h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.review-rating {
    color: #ffc107;
}

.review-content {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

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

.contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* QR Code Section */
.qrcode-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

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

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

.qrcode-item p {
    font-weight: 500;
    color: var(--text-color);
}

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

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

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

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

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

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

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

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

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

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

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

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

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-qrcodes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

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

.footer-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.footer-qrcode p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--light-color);
}

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

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-light);
}

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

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

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

.breadcrumb-list li:last-child {
    color: var(--primary-color);
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    background: var(--gradient-primary);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

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

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

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

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Tool Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tool-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.tool-card:hover {
    box-shadow: var(--shadow-medium);
}

.tool-image {
    height: 180px;
    overflow: hidden;
}

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

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-content {
    padding: 20px;
}

.tool-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

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

.tool-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Community Section */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.community-feature {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.community-feature h4 {
    margin-top: 15px;
    font-size: 1rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

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

.stat-label {
    color: var(--text-light);
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .expert-card {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-actions {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Lazy Loading Placeholder */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.share-wechat {
    background: #07c160;
}

.share-weibo {
    background: #e6162d;
}

.share-douyin {
    background: #000;
}

.share-bilibili {
    background: #00a1d6;
}

/* Update Time */
.update-time {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-top: 15px;
}
