/* 糖心vlog 主样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: #f8f9fa; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header */
.header { background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); padding: 15px 0; 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; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 50px; width: auto; }
.logo h1 { color: #fff; font-size: 24px; font-weight: 700; }
.nav { display: flex; gap: 25px; }
.nav a { color: #fff; font-size: 16px; font-weight: 500; padding: 8px 15px; border-radius: 20px; transition: all 0.3s; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,0.2); }

/* Search */
.search-section { background: #fff; padding: 20px 0; border-bottom: 1px solid #eee; }
.search-box { display: flex; max-width: 600px; margin: 0 auto; }
.search-box input { flex: 1; padding: 12px 20px; border: 2px solid #ff6b9d; border-radius: 25px 0 0 25px; font-size: 16px; outline: none; }
.search-box button { padding: 12px 30px; background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); color: #fff; border: none; border-radius: 0 25px 25px 0; cursor: pointer; font-size: 16px; }

/* Banner */
.banner { position: relative; height: 500px; overflow: hidden; }
.banner-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.banner-content h2 { font-size: 48px; margin-bottom: 20px; }
.banner-content p { font-size: 20px; margin-bottom: 30px; }
.btn-primary { display: inline-block; padding: 15px 40px; background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); color: #fff; border-radius: 30px; font-size: 18px; transition: transform 0.3s; }
.btn-primary:hover { transform: scale(1.05); }

/* Section */
.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 h3 { font-size: 28px; color: #ff6b9d; margin-bottom: 10px; }
.section-title p { color: #666; font-size: 16px; }

/* Video Cards */
.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: 0 5px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px 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; }
.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; }
.play-btn::after { content: ''; 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; }
.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-tag { position: absolute; top: 10px; left: 10px; background: #ff6b9d; color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.video-info { padding: 15px; }
.video-info h4 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; 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: 13px; }
.video-stats { display: flex; gap: 15px; }
.video-stats span { display: flex; align-items: center; gap: 4px; }
.video-labels { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.video-labels span { background: #f0f0f0; color: #666; padding: 2px 8px; border-radius: 3px; font-size: 11px; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.category-card { background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); color: #fff; padding: 30px 20px; border-radius: 15px; text-align: center; transition: transform 0.3s; }
.category-card:hover { transform: scale(1.05); }
.category-card i { font-size: 40px; margin-bottom: 15px; display: block; }
.category-card h4 { font-size: 18px; }
.category-card p { font-size: 12px; opacity: 0.9; margin-top: 5px; }

/* Expert */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.expert-card { background: #fff; border-radius: 15px; padding: 30px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.expert-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid #ff6b9d; }
.expert-card h4 { font-size: 20px; margin-bottom: 5px; }
.expert-card .title { color: #ff6b9d; font-size: 14px; margin-bottom: 10px; }
.expert-card .credentials { background: #f8f9fa; padding: 10px; border-radius: 8px; margin-bottom: 15px; }
.expert-card .credentials p { color: #666; font-size: 12px; margin: 3px 0; }
.expert-card .experience { color: #666; font-size: 14px; margin-bottom: 15px; line-height: 1.6; }
.expert-card .btn-small { display: inline-block; padding: 8px 20px; background: #ff6b9d; color: #fff; border-radius: 20px; font-size: 14px; margin: 5px; }

/* Partners */
.partners { background: #fff; }
.partner-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; }
.partner-logos img { max-height: 60px; opacity: 0.7; transition: opacity 0.3s; }
.partner-logos img:hover { opacity: 1; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.review-card { background: #fff; padding: 25px; border-radius: 15px; box-shadow: 0 5px 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 0%, #ff8a80 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; }
.review-name { font-weight: 600; }
.review-stars { color: #ffc107; }
.review-text { color: #666; line-height: 1.8; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; margin-bottom: 15px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.faq-question { padding: 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { background: #f8f9fa; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s; }
.faq-item.active .faq-answer { padding: 0 20px 20px; max-height: 500px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.contact-card { background: #fff; padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.contact-card h4 { color: #ff6b9d; margin-bottom: 15px; font-size: 18px; }
.contact-card p { color: #666; margin-bottom: 10px; }
.contact-card img { max-width: 150px; margin-top: 15px; }

/* Company Info */
.company-info { background: #fff; padding: 40px 0; border-top: 1px solid #eee; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.company-card { padding: 20px; }
.company-card h4 { color: #ff6b9d; margin-bottom: 15px; font-size: 18px; }
.company-card p { color: #666; margin-bottom: 8px; font-size: 14px; }

/* Footer */
.footer { background: #2d3436; 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: 18px; margin-bottom: 20px; color: #ff6b9d; }
.footer-col h5 { font-size: 16px; margin-bottom: 15px; color: #ff6b9d; }
.footer-col a { display: block; color: #b2bec3; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #b2bec3; font-size: 13px; margin-bottom: 5px; }
.footer-qr { display: flex; gap: 20px; }
.footer-qr img { width: 100px; height: 100px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; color: #b2bec3; }
.footer-bottom p { margin-bottom: 5px; font-size: 13px; }
.footer-links { margin-top: 15px; }
.footer-links a { color: #b2bec3; margin: 0 10px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: #444; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.3s; }
.social-links a:hover { background: #ff6b9d; }

/* Breadcrumb */
.breadcrumb { padding: 15px 0; color: #666; font-size: 14px; }
.breadcrumb a { color: #ff6b9d; }

/* Page Title */
.page-title { text-align: center; padding: 40px 0; }
.page-title h2 { font-size: 36px; color: #333; margin-bottom: 10px; }
.page-title p { color: #666; font-size: 16px; }

/* Filter Tabs */
.filter-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-tabs a, .filter-tabs span { padding: 10px 25px; background: #fff; border-radius: 25px; color: #666; transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); cursor: pointer; }
.filter-tabs a:hover, .filter-tabs a.active, .filter-tabs span:hover, .filter-tabs span.active { background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); color: #fff; }

/* Load More */
.load-more { text-align: center; padding: 40px 0; }
.load-more button { padding: 15px 50px; background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); color: #fff; border: none; border-radius: 30px; font-size: 16px; cursor: pointer; transition: transform 0.3s; }
.load-more button:hover { transform: scale(1.05); }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.feature-card { background: #fff; border-radius: 15px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.feature-card h4 { color: #ff6b9d; font-size: 20px; margin-bottom: 15px; }
.feature-card p { color: #666; line-height: 1.8; }
.feature-card ul { margin-top: 15px; padding-left: 20px; }
.feature-card ul li { color: #666; margin-bottom: 8px; }

/* Tool Grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.tool-card { background: #fff; border-radius: 15px; padding: 30px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: transform 0.3s; }
.tool-card:hover { transform: translateY(-5px); }
.tool-card i { font-size: 50px; margin-bottom: 20px; display: block; }
.tool-card h4 { font-size: 18px; margin-bottom: 10px; color: #333; }
.tool-card p { color: #666; font-size: 14px; margin-bottom: 15px; }
.tool-card .btn-tool { display: inline-block; padding: 10px 25px; background: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 100%); color: #fff; border-radius: 20px; font-size: 14px; }

/* Community */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.community-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.community-card img { width: 100%; height: 200px; object-fit: cover; }
.community-card .info { padding: 20px; }
.community-card h4 { font-size: 18px; margin-bottom: 10px; }
.community-card p { color: #666; font-size: 14px; }

/* Live Grid */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.live-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); position: relative; }
.live-card .live-badge { position: absolute; top: 10px; left: 10px; background: #ff4757; color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 12px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.live-card img { width: 100%; height: 180px; object-fit: cover; }
.live-card .info { padding: 15px; }
.live-card h4 { font-size: 16px; margin-bottom: 8px; }
.live-card .host { display: flex; align-items: center; gap: 10px; color: #666; font-size: 13px; }
.live-card .viewers { color: #ff6b9d; }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .banner { height: 300px; }
    .banner-content h2 { font-size: 28px; }
    .page-title h2 { font-size: 28px; }
}
