/* 糖心vlog - 外部样式表 */
/* 域名: dfnyeb.cn */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部导航 */
.header { background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #8b5cf6 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px 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: 24px; font-weight: 700; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { color: #fff; font-size: 16px; font-weight: 500; padding: 8px 16px; border-radius: 20px; transition: all 0.3s ease; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,0.2); }

/* 搜索框 */
.search-bar { background: rgba(255,255,255,0.95); padding: 15px 0; border-bottom: 1px solid #eee; }
.search-form { display: flex; max-width: 600px; margin: 0 auto; background: #f5f5f5; border-radius: 30px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.search-form input { flex: 1; padding: 12px 25px; border: none; background: transparent; font-size: 15px; outline: none; }
.search-form button { padding: 12px 30px; background: linear-gradient(135deg, #ff6b9d, #8b5cf6); color: #fff; border: none; cursor: pointer; font-size: 15px; font-weight: 500; transition: opacity 0.3s ease; }
.search-form button:hover { opacity: 0.9; }

/* Hero区域 */
.hero { background: linear-gradient(135deg, rgba(255,107,157,0.9), rgba(139,92,246,0.9)), url('../images/hero-bg.jpg') center/cover; padding: 80px 0; text-align: center; color: #fff; }
.hero h1 { font-size: 48px; font-weight: 700; margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 30px; opacity: 0.95; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 35px; border-radius: 30px; font-size: 16px; font-weight: 600; transition: all 0.3s ease; cursor: pointer; }
.btn-primary { background: #fff; color: #ff6b9d; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #ff6b9d; }

/* 视频卡片 */
.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 { color: #666; font-size: 16px; }
.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 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.video-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.1); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 60px; height: 60px; background: rgba(255,107,157,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; opacity: 0; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.play-btn::after { content: ''; width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px 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-info h3 { font-size: 16px; color: #333; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 15px; color: #999; font-size: 13px; }
.video-meta span { display: flex; align-items: center; gap: 4px; }

/* 分类标签 */
.category-tabs { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.category-tab { padding: 10px 25px; background: #f5f5f5; border-radius: 25px; font-size: 14px; color: #666; cursor: pointer; transition: all 0.3s ease; }
.category-tab:hover, .category-tab.active { background: linear-gradient(135deg, #ff6b9d, #8b5cf6); color: #fff; }

/* 专家展示 */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.expert-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); display: flex; gap: 20px; transition: all 0.3s ease; }
.expert-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.expert-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid #ff6b9d; }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-info h3 { font-size: 18px; color: #333; margin-bottom: 5px; }
.expert-title { color: #ff6b9d; font-size: 14px; margin-bottom: 10px; }
.expert-desc { color: #666; font-size: 13px; line-height: 1.6; margin-bottom: 15px; }
.expert-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.expert-tag { padding: 4px 12px; background: #f0f0f0; border-radius: 15px; font-size: 12px; color: #666; }
.expert-btns { display: flex; gap: 10px; }
.expert-btn { padding: 8px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all 0.3s ease; }
.expert-btn-primary { background: linear-gradient(135deg, #ff6b9d, #8b5cf6); color: #fff; border: none; }
.expert-btn-outline { background: transparent; color: #ff6b9d; border: 1px solid #ff6b9d; }

/* 功能模块 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.feature-card { background: linear-gradient(135deg, #fff 0%, #fafafa 100%); border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.feature-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #ff6b9d, #8b5cf6); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 30px; }
.feature-card h3 { font-size: 18px; color: #333; margin-bottom: 10px; }
.feature-card p { color: #666; font-size: 14px; line-height: 1.6; }

/* 用户评价 */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }
.review-card { background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.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, #ff6b9d, #8b5cf6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 600; }
.review-user h4 { font-size: 16px; color: #333; }
.review-user span { font-size: 13px; color: #999; }
.review-stars { color: #ffc107; font-size: 14px; margin-bottom: 10px; }
.review-content { color: #666; font-size: 14px; line-height: 1.7; }

/* 合作伙伴 */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px; align-items: center; }
.partner-logo { padding: 20px; background: #f9f9f9; border-radius: 12px; text-align: center; transition: all 0.3s ease; }
.partner-logo:hover { background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

/* 联系我们 */
.contact-section { background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.contact-card { background: #fff; border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.contact-card h3 { font-size: 18px; color: #333; margin-bottom: 15px; }
.contact-card p { color: #666; font-size: 14px; line-height: 1.8; }
.contact-qr { width: 120px; height: 120px; margin: 15px auto; border-radius: 12px; overflow: hidden; }
.contact-qr img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.faq-question { padding: 20px 25px; font-size: 16px; font-weight: 500; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease; }
.faq-question:hover { background: #f9f9f9; }
.faq-question::after { content: '+'; font-size: 24px; color: #ff6b9d; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.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: #666; font-size: 14px; line-height: 1.7; }

/* 页脚 */
.footer { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 15px; }
.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: #ff6b9d; transform: translateY(-3px); }
.footer-links h4 { font-size: 16px; margin-bottom: 20px; color: #fff; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.3s ease; }
.footer-links ul li a:hover { color: #ff6b9d; }
.footer-qr { display: flex; gap: 20px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 8px; }
.footer-qr-item span { font-size: 12px; color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 10px; }
.footer-bottom .update-time { color: rgba(255,255,255,0.5); font-size: 12px; }

/* 面包屑 */
.breadcrumb { padding: 15px 0; background: #f8f9fa; }
.breadcrumb-list { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.breadcrumb-list a { color: #666; }
.breadcrumb-list a:hover { color: #ff6b9d; }
.breadcrumb-list span { color: #999; }
.breadcrumb-list .current { color: #ff6b9d; }

/* 社区功能 */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.community-card { background: linear-gradient(135deg, #fff 0%, #fef9ff 100%); border-radius: 16px; padding: 25px; text-align: center; border: 1px solid #f0e6f5; transition: all 0.3s ease; }
.community-card:hover { border-color: #ff6b9d; box-shadow: 0 10px 30px rgba(255,107,157,0.15); }
.community-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #ff6b9d, #8b5cf6); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 24px; color: #fff; }
.community-card h4 { font-size: 16px; color: #333; margin-bottom: 8px; }
.community-card p { font-size: 13px; color: #666; }

/* AI功能 */
.ai-features { background: linear-gradient(135deg, #f8f0ff 0%, #fff0f5 100%); border-radius: 20px; padding: 40px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.ai-card { background: #fff; border-radius: 16px; padding: 30px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.ai-card h4 { font-size: 18px; color: #333; margin-bottom: 10px; }
.ai-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* 媒体报道 */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.media-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.media-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.media-source { color: #ff6b9d; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.media-card h4 { font-size: 16px; color: #333; margin-bottom: 10px; line-height: 1.5; }
.media-card p { color: #666; font-size: 14px; line-height: 1.6; }

/* 成功案例 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.case-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.case-image { height: 200px; overflow: hidden; }
.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover .case-image img { transform: scale(1.1); }
.case-content { padding: 25px; }
.case-content h4 { font-size: 18px; color: #333; margin-bottom: 10px; }
.case-content p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.case-stats { display: flex; gap: 20px; }
.case-stat { text-align: center; }
.case-stat .num { font-size: 24px; font-weight: 700; color: #ff6b9d; }
.case-stat .label { font-size: 12px; color: #999; }

/* 响应式设计 */
@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .expert-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .header-inner { flex-direction: column; gap: 15px; } .nav-menu { flex-wrap: wrap; justify-content: center; gap: 10px; } .nav-menu a { font-size: 14px; padding: 6px 12px; } .hero h1 { font-size: 32px; } .hero p { font-size: 16px; } .section-title h2 { font-size: 26px; } .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-social { justify-content: center; } .footer-qr { justify-content: center; } .expert-card { flex-direction: column; text-align: center; } .expert-avatar { margin: 0 auto; } .expert-tags { justify-content: center; } .expert-btns { justify-content: center; } }
@media (max-width: 480px) { .container { padding: 0 15px; } .hero { padding: 50px 0; } .hero h1 { font-size: 26px; } .section { padding: 40px 0; } .video-grid { grid-template-columns: 1fr; } .review-grid { grid-template-columns: 1fr; } }

/* 懒加载和动画 */
.lazy { opacity: 0; transition: opacity 0.3s ease; }
.lazy.loaded { opacity: 1; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
