/* 糖心vlog - qidigroup.com.cn 原创样式 */
/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; color: #333; background: #fff; }

/* 主色调 */
:root {
    --primary: #ff6b9d;
    --secondary: #c44569;
    --accent: #f8a5c2;
    --light: #ffeef4;
    --dark: #2d3436;
    --gradient: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

/* 头部导航 */
.header { background: var(--gradient); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(255,107,157,0.3); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 45px; border-radius: 50%; }
.logo-text { color: #fff; font-size: 1.5rem; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.nav { display: flex; gap: 25px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; 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-bar { background: var(--light); padding: 15px 0; }
.search-container { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.search-box { display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 12px 20px; border: 2px solid var(--accent); border-radius: 25px; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.search-box input:focus { border-color: var(--primary); }
.search-box button { padding: 12px 25px; background: var(--gradient); color: #fff; border: none; border-radius: 25px; cursor: pointer; font-weight: bold; transition: transform 0.3s; }
.search-box button:hover { transform: scale(1.05); }

/* Hero区域 */
.hero { background: var(--gradient); padding: 60px 20px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../images/hero-banner.png') center/cover; opacity: 0.3; }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { color: #fff; font-size: 1.2rem; margin-bottom: 30px; opacity: 0.95; }
.hero-btn { display: inline-block; padding: 15px 40px; background: #fff; color: var(--primary); border-radius: 30px; text-decoration: none; font-weight: bold; transition: all 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* 通用容器 */
.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: var(--dark); margin-bottom: 10px; }
.section-title p { color: #666; font-size: 1.1rem; }

/* 视频卡片 */
.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.1); transition: all 0.3s; position: relative; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,107,157,0.2); }
.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.3s; }
.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: 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-info { padding: 15px; }
.video-info h3 { font-size: 1rem; margin-bottom: 8px; color: var(--dark); line-height: 1.4; }
.video-stats { display: flex; gap: 15px; color: #999; font-size: 0.85rem; }
.video-stats span { display: flex; align-items: center; gap: 5px; }

/* 服务模块 */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.service-card { background: var(--light); padding: 30px; border-radius: 15px; text-align: center; transition: all 0.3s; }
.service-card:hover { background: #fff; box-shadow: 0 10px 30px rgba(255,107,157,0.15); }
.service-icon { width: 70px; height: 70px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: #fff; }
.service-card h3 { color: var(--dark); margin-bottom: 10px; }
.service-card p { color: #666; font-size: 0.95rem; }

/* 专家团队 */
.experts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.expert-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: center; }
.expert-card img { width: 100%; height: 250px; object-fit: cover; }
.expert-info { padding: 20px; }
.expert-info h3 { color: var(--dark); margin-bottom: 5px; }
.expert-info .title { color: var(--primary); font-size: 0.9rem; margin-bottom: 10px; }
.expert-info p { color: #666; font-size: 0.9rem; line-height: 1.6; }

/* 用户评价 */
.reviews-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); border-left: 4px solid var(--primary); }
.review-card .stars { color: #ffc107; margin-bottom: 10px; }
.review-card p { color: #555; font-style: italic; margin-bottom: 15px; line-height: 1.7; }
.review-card .author { color: var(--dark); font-weight: bold; }

/* 联系模块 */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.contact-card { background: var(--light); padding: 25px; border-radius: 15px; text-align: center; }
.contact-card img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 15px; border-radius: 10px; }
.contact-card h3 { color: var(--dark); margin-bottom: 10px; }
.contact-card p { color: #666; font-size: 0.9rem; }

/* 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; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: var(--dark); }
.faq-question:hover { background: var(--light); }
.faq-answer { padding: 0 20px 20px; color: #666; display: none; }
.faq-item.active .faq-answer { display: block; }

/* 页脚 */
.footer { background: var(--dark); color: #fff; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-col a { display: block; color: #aaa; text-decoration: none; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: #aaa; font-size: 0.9rem; line-height: 1.8; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links 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; text-decoration: none; transition: background 0.3s; }
.social-links a:hover { background: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #aaa; font-size: 0.9rem; }

/* 面包屑 */
.breadcrumb { background: var(--light); padding: 15px 0; }
.breadcrumb-list { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.breadcrumb-list a { color: var(--primary); text-decoration: none; }
.breadcrumb-list span { color: #666; }

/* 响应式 */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .nav { justify-content: center; }
    .hero h1 { font-size: 1.8rem; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 1.5rem; }
}

/* 懒加载占位 */
.lazy { opacity: 0; transition: opacity 0.3s; }
.lazy.loaded { opacity: 1; }
