/* 糖心Vlog 全站外部CSS样式表 */
/* 版权所有 © 2026 糖心Vlog */

/* ===== 基础变量 ===== */
:root {
    --primary-color: #ff007f;
    --secondary-color: #00f0ff;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --dark-bg: #1a1a2e;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* ===== 重置样式 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== 布局 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 导航栏 ===== */
header { background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; font-weight: 900; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 1px; }
.logo a { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 15px; color: #444; padding: 5px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

/* ===== 搜索框 ===== */
.search-bar-container { background: #fff; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.search-box { display: flex; max-width: 600px; margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1.5px solid #eee; transition: box-shadow 0.3s; }
.search-box:focus-within { box-shadow: 0 4px 20px rgba(255,0,127,0.15); border-color: var(--primary-color); }
.search-input { flex: 1; padding: 12px 22px; border: none; outline: none; font-size: 15px; background: transparent; color: var(--text-color); }
.search-btn { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; border: none; padding: 0 32px; cursor: pointer; font-weight: bold; font-size: 15px; transition: opacity 0.3s; white-space: nowrap; }
.search-btn:hover { opacity: 0.88; }

/* ===== 按钮 ===== */
.btn-primary { display: inline-block; padding: 14px 40px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; border-radius: 30px; font-size: 17px; font-weight: bold; transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(255,0,127,0.3); color: white; }
.tag-btn { padding: 8px 22px; border: 1.5px solid #ddd; border-radius: 20px; background: white; cursor: pointer; font-size: 14px; transition: var(--transition); color: #555; }
.tag-btn:hover, .tag-btn.active { background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); color: white; border-color: transparent; }

/* ===== 首屏Banner ===== */
.hero { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(26,26,46,0.75), rgba(255,0,127,0.35)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 20px; }
.hero h1 { font-size: 48px; margin-bottom: 20px; text-shadow: 0 2px 15px rgba(0,0,0,0.4); font-weight: 900; }
.hero p { font-size: 20px; margin-bottom: 35px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); opacity: 0.95; }

/* ===== 通用模块 ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 55px; position: relative; color: #222; }
.section-title::after { content: ''; position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); border-radius: 2px; }

/* ===== 视频卡片 ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.video-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.3s, box-shadow 0.3s; position: relative; cursor: pointer; }
.video-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #f0f0f0; }
.video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.28); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.video-card:hover .play-btn-overlay { opacity: 1; }
.play-icon { width: 62px; height: 62px; background: rgba(255,255,255,0.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 22px; box-shadow: 0 0 25px rgba(255,0,127,0.5); transition: transform 0.2s; }
.play-icon:hover { transform: scale(1.1); }
.video-info { padding: 18px 20px; }
.video-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #222; line-height: 1.5; }
.video-meta { display: flex; justify-content: space-between; color: #999; font-size: 13px; flex-wrap: wrap; gap: 5px; }

/* ===== 专家卡片 ===== */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.expert-card { text-align: center; background: white; padding: 35px 30px; border-radius: 16px; box-shadow: var(--card-shadow); transition: transform 0.3s; }
.expert-card:hover { transform: translateY(-8px); }
.expert-avatar { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 22px; overflow: hidden; border: 4px solid transparent; background: linear-gradient(white, white) padding-box, linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 评价卡片 ===== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.review-card { background: white; padding: 28px; border-radius: 16px; box-shadow: var(--card-shadow); position: relative; transition: transform 0.3s; }
.review-card:hover { transform: translateY(-5px); }
.review-card::before { content: '"'; position: absolute; top: 15px; right: 25px; font-size: 70px; color: #f5f5f5; font-family: Georgia, serif; line-height: 1; pointer-events: none; }

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 14px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); transition: box-shadow 0.3s; }
.faq-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.faq-q { padding: 20px 25px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #333; user-select: none; }
.faq-q:hover { color: var(--primary-color); }
.faq-a { padding: 0 25px 20px; color: #666; line-height: 1.8; font-size: 15px; }

/* ===== 页脚 ===== */
footer { background: var(--dark-bg); color: white; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 45px; }
.footer-col h3 { font-size: 18px; margin-bottom: 20px; color: var(--secondary-color); }
.footer-links { padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaa; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); color: #777; font-size: 14px; }

/* ===== 页面Banner ===== */
.page-banner { padding: 60px 0; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 38px; }
    .section-title { font-size: 28px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { min-height: 380px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .section { padding: 55px 0; }
    .section-title { font-size: 24px; }
    .video-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .expert-grid, .review-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
}
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn-primary { padding: 12px 28px; font-size: 15px; }
}

/* ===== 动画 ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-left { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
.fade-in { animation: fadeInUp 0.6s ease forwards; }
