/* 糖心Vlog 社区门户 - 主样式 | www.ucwqebp.cn */
:root {
  --primary: #ff4757;
  --primary-dark: #e8394a;
  --text-dark: #1a1a2e;
  --text-light: #666;
  --border: #eee;
  --bg: #f8f9fa;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(255,71,87,0.18);
  --radius: 10px;
  --radius-lg: 16px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text-dark); background: #fff; line-height: 1.6; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-size: 14px; font-weight: 800; cursor: pointer; border: none; transition: all .25s; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,71,87,0.35); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== 导航 ===== */
#site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: var(--text-dark); flex-shrink: 0; }
.logo em { color: var(--primary); font-style: normal; }
.logo-icon { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-light); transition: all .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: rgba(255,71,87,0.06); }
.header-right { flex-shrink: 0; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all .3s; }
.search-bar-row { background: var(--bg); border-top: 1px solid var(--border); padding: 10px 0; }
.search-form { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: 50px; padding: 8px 16px; max-width: 600px; }
.search-input { flex: 1; border: none; outline: none; font-size: 14px; color: var(--text-dark); background: transparent; }
.search-btn { background: var(--primary); color: #fff; border: none; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* ===== 首屏 ===== */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.65) 60%, rgba(26,26,46,0.3) 100%); }
.hero .container { position: relative; z-index: 2; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hero-inner { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; }
.hero-content { color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,71,87,0.2); border: 1px solid rgba(255,71,87,0.4); color: rgba(255,255,255,0.9); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.hero-content h1 { font-size: 40px; font-weight: 900; line-height: 1.2; margin-bottom: 18px; }
.hero-content .highlight { color: var(--primary); }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 22px; font-weight: 900; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); }
.hero-visual { }
.hero-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); padding: 16px; }
.hero-card-title { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.hero-video-preview { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.hero-video-preview img { width: 100%; height: 200px; object-fit: cover; }
.hero-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); transition: .2s; }
.hero-video-preview:hover .hero-video-play { background: rgba(0,0,0,0.5); }
.hero-play-btn { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hero-play-btn::after { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); font-size: 11px; padding: 3px 10px; border-radius: 50px; }

/* ===== 统计条 ===== */
.stats-bar { background: var(--primary); padding: 20px 0; }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; }
.stat-num { font-size: 22px; font-weight: 900; color: #fff; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.75); }

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section-white { background: #fff; }
.section-dark { background: #1a1a2e; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-header-center { justify-content: center; text-align: center; }
.section-tag { display: inline-block; background: rgba(255,71,87,0.1); color: var(--primary); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 50px; margin-bottom: 8px; }
.section-tag-dark { background: rgba(255,71,87,0.2); }
.section-title { font-size: 28px; font-weight: 900; color: var(--text-dark); }
.section-title span { color: var(--primary); }
.section-title-lg { font-size: 32px; }
.section-desc { font-size: 14px; color: var(--text-light); margin-top: 8px; }
.view-more { font-size: 13px; color: var(--primary); font-weight: 700; white-space: nowrap; }
.view-more:hover { text-decoration: underline; }

/* ===== 视频卡片 ===== */
.video-grid { display: grid; gap: 20px; }
.video-grid-4 { grid-template-columns: repeat(4, 1fr); }
.video-grid-3 { grid-template-columns: repeat(3, 1fr); }
.video-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: all .3s; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0); transition: background .3s; }
.video-card:hover .video-play-overlay { background: rgba(0,0,0,0.35); }
.play-circle { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.7); transition: all .3s; }
.play-circle::after { content: ''; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 3px; }
.video-card:hover .play-circle { opacity: 1; transform: scale(1); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.video-cat { position: absolute; top: 8px; left: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.video-hot { position: absolute; top: 8px; right: 8px; background: #ff6348; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.video-info { padding: 12px 14px; }
.video-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); }

/* ===== 排行榜 ===== */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.rank-num { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
.rank-1 { background: #ff4757; color: #fff; }
.rank-2 { background: #ff7f50; color: #fff; }
.rank-3 { background: #ffa502; color: #fff; }
.rank-n { background: var(--bg); color: var(--text-light); }
.rank-thumb { width: 80px; height: 54px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-meta { font-size: 12px; color: var(--text-light); }

/* ===== 专题卡片 ===== */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.topic-color { height: 6px; }
.topic-body { padding: 20px; }
.topic-tag { font-size: 12px; font-weight: 800; margin-bottom: 8px; display: block; }
.topic-title { font-size: 15px; font-weight: 900; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.topic-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.topic-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-light); }

/* ===== 创作者卡片 ===== */
.creator-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.creator-card { background: #fff; border-radius: var(--radius-lg); padding: 20px 14px; text-align: center; box-shadow: var(--shadow); transition: all .3s; }
.creator-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.creator-avatar { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), #ff6b7a); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; margin: 0 auto 8px; }
.creator-verified { font-size: 11px; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.creator-name { font-size: 14px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; }
.creator-type { font-size: 11px; color: var(--text-light); margin-bottom: 12px; line-height: 1.4; }
.creator-stats { display: flex; justify-content: space-around; border-top: 1px solid var(--border); padding-top: 10px; }
.creator-stat-num { font-size: 13px; font-weight: 900; color: var(--primary); }
.creator-stat-label { font-size: 11px; color: var(--text-light); }

/* ===== 内容卡片 ===== */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; }
.content-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.content-img { aspect-ratio: 16/9; overflow: hidden; }
.content-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.content-card:hover .content-img img { transform: scale(1.05); }
.content-body { padding: 14px; }
.content-tag { display: inline-block; background: rgba(255,71,87,0.1); color: var(--primary); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.content-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); flex-wrap: wrap; }
.content-card-row { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; transition: all .3s; }
.content-card-row:hover { box-shadow: var(--shadow-hover); }
.content-img-row { width: 200px; height: 130px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.content-img-row img { width: 100%; height: 100%; object-fit: cover; }
.content-title-lg { font-size: 15px; font-weight: 800; color: var(--text-dark); line-height: 1.5; margin-bottom: 8px; }
.content-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 帮助中心 ===== */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.help-card { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); transition: all .3s; cursor: pointer; }
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.help-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.help-title { font-size: 14px; font-weight: 900; color: var(--text-dark); margin-bottom: 6px; }
.help-desc { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ===== 用户评价 ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); position: relative; }
.review-quote { font-size: 48px; color: rgba(255,71,87,0.1); font-family: Georgia, serif; line-height: 1; position: absolute; top: 12px; right: 16px; }
.review-stars { color: #ffa502; font-size: 14px; margin-bottom: 10px; }
.review-text { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 38px; height: 38px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; flex-shrink: 0; }
.review-name { font-size: 13px; font-weight: 800; color: var(--text-dark); }
.review-verified { font-size: 11px; color: var(--primary); font-weight: 700; margin-left: 6px; }
.review-role { font-size: 11px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text-dark); transition: color .2s; }
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 20px; color: var(--primary); font-weight: 400; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; padding: 0 22px; font-size: 14px; color: var(--text-light); line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 22px 18px; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-label { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.contact-value { font-size: 15px; font-weight: 700; color: var(--text-dark); }

/* ===== 侧边栏 ===== */
.main-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.sidebar-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-title { font-size: 15px; font-weight: 900; color: var(--text-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { background: var(--bg); color: var(--text-light); font-size: 12px; padding: 4px 12px; border-radius: 50px; cursor: pointer; transition: all .2s; }
.tag-item:hover { background: var(--primary); color: #fff; }

/* ===== 内页 Hero ===== */
.page-hero { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%); padding: 48px 0; }
.page-hero h1 { font-size: 32px; font-weight: 900; color: #fff; margin: 10px 0 10px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.65); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== 时间轴 ===== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(255,71,87,0.1)); }
.timeline-item { position: relative; padding: 0 0 28px 24px; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 4px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(255,71,87,0.2); }
.timeline-year { font-size: 12px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.timeline-title { font-size: 15px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== 页脚 ===== */
#site-footer { background: #1a1a2e; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-social { display: flex; gap: 8px; }
.social-link { width: 30px; height: 30px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: all .2s; }
.social-link:hover { background: var(--primary); color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 999; }
  .main-nav.open { display: flex; }
  .header-right { display: none; }
  .hero-content h1 { font-size: 28px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .section-title-lg { font-size: 24px; }
  .video-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .video-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .main-with-sidebar { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-card-row { flex-direction: column; }
  .content-img-row { width: 100%; height: 180px; }
  .stats-grid { gap: 20px; }
}
@media (max-width: 480px) {
  .video-grid-4, .video-grid-3 { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .hero-actions { flex-direction: column; }
}
