/* ============================================
   糖心vlog - 原创样式表
   品牌色系：珊瑚粉 #FF6B6B / 琥珀金 #FFB347 / 深空灰 #2D3436 / 暖白 #FFF8F0
   ============================================ */

/* === 基础重置 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #2D3436; background: #FFF8F0; line-height: 1.8; }
a { color: #FF6B6B; text-decoration: none; transition: color .3s; }
a:hover { color: #FFB347; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; color: #2D3436; }

/* === 容器 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: #fff; }

/* === 头部导航 === */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255,248,240,.97); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.06); transition: all .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 42px; width: auto; }
.logo-wrap .brand-text { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, #FF6B6B, #FFB347); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 14px; font-size: 15px; color: #2D3436; border-radius: 8px; transition: all .3s; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { background: linear-gradient(135deg, #FF6B6B, #FFB347); color: #fff; }

.search-box { display: flex; align-items: center; background: #f0ebe4; border-radius: 24px; padding: 6px 16px; margin-left: 12px; }
.search-box input { border: none; background: transparent; outline: none; font-size: 14px; width: 140px; color: #2D3436; }
.search-box button { border: none; background: none; cursor: pointer; color: #FF6B6B; font-size: 18px; padding: 0 4px; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: #2D3436; }

/* === Banner 区 === */
.hero-banner { position: relative; width: 100%; min-height: 520px; background-size: cover; background-position: center; background-repeat: no-repeat; margin-top: 62px; display: flex; align-items: center; justify-content: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,52,54,.7), rgba(255,107,107,.3)); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 40px 20px; max-width: 800px; }
.hero-content h1 { font-size: 42px; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero-content p { font-size: 18px; margin-bottom: 24px; opacity: .95; }
.hero-btn { display: inline-block; padding: 14px 36px; background: linear-gradient(135deg, #FF6B6B, #FFB347); color: #fff; border-radius: 30px; font-size: 16px; font-weight: 600; transition: transform .3s, box-shadow .3s; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,107,107,.4); color: #fff; }

/* === 面包屑 === */
.breadcrumb { padding: 14px 0; font-size: 14px; color: #888; }
.breadcrumb a { color: #FF6B6B; }
.breadcrumb span { margin: 0 6px; }

/* === 区块标题 === */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(135deg, #FF6B6B, #FFB347); border-radius: 2px; }
.section-title p { color: #888; font-size: 16px; margin-top: 16px; }

/* === 视频卡片 === */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; cursor: pointer; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(255,107,107,.15); }
.video-card .thumb { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; }
.video-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .thumb img { transform: scale(1.08); }
.video-card .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 64px; height: 64px; background: rgba(255,107,107,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s; z-index: 3; }
.video-card .play-btn::after { content: ''; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1); }
.video-card .card-body { padding: 16px; }
.video-card .card-body h3 { font-size: 16px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card .card-body .meta { display: flex; gap: 14px; font-size: 13px; color: #999; }
.video-card .card-body .meta span { display: flex; align-items: center; gap: 4px; }
.video-card .tag { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #FF6B6B, #FFB347); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 12px; z-index: 3; }

/* === 功能模块卡片 === */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: 14px; padding: 30px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.05); transition: transform .3s, box-shadow .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255,107,107,.12); }
.feature-card .icon { width: 64px; height: 64px; margin: 0 auto 16px; background: linear-gradient(135deg, #FF6B6B, #FFB347); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.feature-card h4 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: #777; line-height: 1.7; }

/* === 大图+文字模块 === */
.media-block { display: flex; align-items: center; gap: 40px; margin-bottom: 40px; }
.media-block.reverse { flex-direction: row-reverse; }
.media-block .media-img { flex: 1; border-radius: 16px; overflow: hidden; }
.media-block .media-img img { width: 100%; border-radius: 16px; }
.media-block .media-text { flex: 1; }
.media-block .media-text h3 { font-size: 24px; margin-bottom: 14px; }
.media-block .media-text p { color: #666; margin-bottom: 12px; }

/* === 专家卡片 === */
.expert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.expert-card { display: flex; gap: 24px; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); transition: transform .3s; }
.expert-card:hover { transform: translateY(-4px); }
.expert-card .avatar { width: 120px; height: 120px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.expert-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card .info h4 { font-size: 18px; margin-bottom: 6px; }
.expert-card .info .title { color: #FF6B6B; font-size: 14px; margin-bottom: 8px; }
.expert-card .info p { font-size: 14px; color: #777; margin-bottom: 10px; }
.expert-card .info .btns { display: flex; gap: 10px; }
.expert-card .info .btns a { padding: 6px 16px; border-radius: 20px; font-size: 13px; border: 1px solid #FF6B6B; color: #FF6B6B; transition: all .3s; }
.expert-card .info .btns a:hover { background: #FF6B6B; color: #fff; }

/* === FAQ 手风琴 === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden; }
.faq-item .faq-q { padding: 18px 24px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s; }
.faq-item .faq-q:hover { background: #fff5f0; }
.faq-item .faq-q .arrow { transition: transform .3s; font-size: 14px; color: #FF6B6B; }
.faq-item.active .faq-q .arrow { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; color: #666; font-size: 15px; line-height: 1.8; }
.faq-item.active .faq-a { padding: 0 24px 18px; max-height: 500px; }

/* === 用户评论 === */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.review-card .stars { color: #FFB347; font-size: 16px; margin-bottom: 10px; }
.review-card .text { font-size: 15px; color: #555; margin-bottom: 14px; line-height: 1.8; }
.review-card .author { display: flex; align-items: center; gap: 10px; }
.review-card .author .avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #FF6B6B, #FFB347); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.review-card .author .name { font-size: 14px; font-weight: 600; }
.review-card .author .date { font-size: 12px; color: #999; }

/* === 合作品牌 === */
.brand-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; padding: 20px 0; }
.brand-wall .brand-item { width: 140px; height: 60px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-size: 14px; font-weight: 600; color: #999; transition: all .3s; }
.brand-wall .brand-item:hover { box-shadow: 0 4px 16px rgba(255,107,107,.15); color: #FF6B6B; }

/* === 联系我们 === */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card { background: #fff; border-radius: 14px; padding: 30px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.contact-card h4 { font-size: 17px; margin-bottom: 12px; }
.contact-card p { font-size: 14px; color: #666; margin-bottom: 6px; }
.contact-card img { max-width: 160px; margin: 12px auto 0; border-radius: 8px; }

/* === 社交分享 === */
.share-bar { display: flex; justify-content: center; gap: 16px; padding: 20px 0; }
.share-bar a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; transition: transform .3s; }
.share-bar a:hover { transform: scale(1.15); color: #fff; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #161823; }
.share-bilibili { background: #00A1D6; }

/* === 页脚 === */
.site-footer { background: #2D3436; color: #ccc; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h5 { color: #fff; font-size: 16px; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.footer-col h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: linear-gradient(135deg, #FF6B6B, #FFB347); border-radius: 2px; }
.footer-col p, .footer-col a { font-size: 14px; color: #aaa; display: block; margin-bottom: 8px; transition: color .3s; }
.footer-col a:hover { color: #FF6B6B; }
.footer-col .qr-img { width: 120px; border-radius: 8px; margin-top: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #888; }
.footer-bottom .update-time { margin-top: 6px; font-size: 12px; color: #777; }

/* === 内页通用 === */
.page-hero { background: linear-gradient(135deg, #FF6B6B, #FFB347); color: #fff; padding: 80px 0 40px; margin-top: 62px; text-align: center; }
.page-hero h1 { font-size: 36px; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: .9; }
.page-content { padding: 40px 0 60px; }
.page-content h2 { font-size: 26px; margin-bottom: 16px; color: #2D3436; }
.page-content h3 { font-size: 20px; margin: 24px 0 12px; color: #2D3436; }
.page-content p { margin-bottom: 16px; color: #555; }
.page-content .article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.page-content .article-tags span { padding: 4px 14px; background: #fff5f0; color: #FF6B6B; border-radius: 16px; font-size: 13px; }

/* === 侧边栏推荐 === */
.sidebar-recommend { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.sidebar-recommend h4 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #FF6B6B; }
.sidebar-recommend .rec-item { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.sidebar-recommend .rec-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-recommend .rec-item .rec-thumb { width: 80px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.sidebar-recommend .rec-item .rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recommend .rec-item .rec-info h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-recommend .rec-item .rec-info .rec-meta { font-size: 12px; color: #999; }

/* === 响应式 === */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  .main-nav.show { display: flex; }
  .mobile-menu-btn { display: block; }
  .search-box { width: 100%; margin: 10px 0 0; }
  .search-box input { width: 100%; }
  .hero-banner { min-height: 380px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content p { font-size: 15px; }
  .section-title h2 { font-size: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .media-block { flex-direction: column; }
  .media-block.reverse { flex-direction: column; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .share-bar a { width: 38px; height: 38px; font-size: 16px; }
}

/* === 动画 === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp .6s ease forwards; opacity: 0; }

/* === 懒加载占位 === */
.lazy-placeholder { background: linear-gradient(135deg, #f0ebe4, #e8e0d8); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* === How-To 指南 === */
.howto-steps { counter-reset: step; max-width: 700px; margin: 0 auto; }
.howto-step { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.howto-step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; background: linear-gradient(135deg, #FF6B6B, #FFB347); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.howto-step .step-content h4 { font-size: 16px; margin-bottom: 6px; }
.howto-step .step-content p { font-size: 14px; color: #666; }

/* === 内页两栏布局 === */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
