/* ========================================
   糖心vlog 全站样式表
   品牌色系：糖心粉 #E84393 / 梦幻紫 #6C5CE7 / 清新青 #00CEC9
   ======================================== */

/* CSS Reset & Base */
*, *::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: #F8F9FA; line-height: 1.7; overflow-x: hidden; }
a { color: #E84393; text-decoration: none; transition: color .3s; }
a:hover { color: #6C5CE7; }
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.3; color: #1A1A2E; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }

/* ========== Header / Navigation ========== */
.site-header { background: linear-gradient(135deg, #1A1A2E 0%, #2D1B69 100%); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; max-width: 1200px; margin: 0 auto; height: 70px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: #fff; font-size: 1.3rem; font-weight: 700; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a { color: rgba(255,255,255,.85); padding: 0 16px; font-size: .95rem; height: 70px; display: flex; align-items: center; transition: all .3s; position: relative; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(232,67,147,.2); }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: linear-gradient(90deg, #E84393, #6C5CE7); transition: width .3s; border-radius: 2px; }
.main-nav a:hover::after, .main-nav a.active::after { width: 60%; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 10px; }

/* Search Bar - 首页深色背景 */
.search-bar { background: linear-gradient(135deg, #2D1B69 0%, #1A1A2E 100%); border-bottom: 1px solid rgba(255,255,255,.06); }
.search-bar-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: center; }
.search-box { display: flex; align-items: center; width: 100%; max-width: 600px; background: rgba(255,255,255,.1); border-radius: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); transition: all .3s; }
.search-box:focus-within { background: rgba(255,255,255,.15); border-color: #E84393; box-shadow: 0 0 15px rgba(232,67,147,.2); }
.search-box input { flex: 1; background: transparent; border: none; color: #fff; padding: 10px 20px; font-size: .9rem; outline: none; }
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box button { background: linear-gradient(135deg, #E84393, #6C5CE7); border: none; color: #fff; padding: 10px 24px; cursor: pointer; font-size: .9rem; transition: opacity .3s; }
.search-box button:hover { opacity: .85; }

/* ========== Hero Section ========== */
.hero-section { position: relative; height: 520px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.85) 0%, rgba(108,92,231,.5) 50%, rgba(232,67,147,.4) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px; }
.hero-content h1 { font-size: 2.8rem; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.4); color: #fff; }
.hero-content h1 .brand-highlight { color: #E84393; }
.hero-content p { font-size: 1.15rem; opacity: .9; max-width: 650px; margin: 0 auto 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-tags span { background: rgba(255,255,255,.15); backdrop-filter: blur(10px); padding: 6px 18px; border-radius: 20px; font-size: .85rem; border: 1px solid rgba(255,255,255,.2); }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #E84393, #6C5CE7); color: #fff; padding: 14px 36px; border-radius: 30px; font-size: 1.05rem; font-weight: 600; margin-top: 24px; transition: transform .3s, box-shadow .3s; box-shadow: 0 4px 20px rgba(232,67,147,.4); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,67,147,.5); color: #fff; }

/* ========== Section Titles ========== */
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 2rem; margin-bottom: 12px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(90deg, #E84393, #6C5CE7); margin: 12px auto 0; border-radius: 2px; }
.section-title p { color: #636e72; font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ========== Video Card Grid ========== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; cursor: pointer; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.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(232,67,147,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s, transform .3s; z-index: 2; cursor: pointer; }
.play-btn::after { content: ''; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.video-card:hover .play-btn { opacity: 1; }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.75); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .75rem; z-index: 2; }
.video-info { padding: 16px; }
.video-info h3 { font-size: 1rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; align-items: center; gap: 16px; color: #b2bec3; font-size: .8rem; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.video-tags span { background: #f0f0f5; color: #6C5CE7; padding: 2px 10px; border-radius: 12px; font-size: .75rem; }
.video-author { display: none; }

/* ========== News Grid ========== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); transition: transform .3s; border-left: 4px solid #E84393; }
.news-card:hover { transform: translateY(-4px); }
.news-date { font-size: .8rem; color: #E84393; font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: .88rem; color: #636e72; line-height: 1.7; margin-bottom: 10px; }
.news-meta { display: flex; gap: 16px; font-size: .78rem; color: #b2bec3; }

/* ========== Feature Modules ========== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: 12px; padding: 30px 24px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.05); transition: transform .3s; border-top: 3px solid transparent; }
.feature-card:hover { transform: translateY(-4px); border-top-color: #E84393; }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: linear-gradient(135deg, #E84393, #6C5CE7); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: #636e72; }
/* Dark theme feature card */
.feature-card.dark-card { background: rgba(255,255,255,.08); border-top-color: rgba(232,67,147,.3); }
.feature-card.dark-card:hover { border-top-color: #E84393; background: rgba(255,255,255,.12); }
.feature-card.dark-card h4 { color: #fff; }
.feature-card.dark-card p { color: rgba(255,255,255,.7); }

/* ========== Expert Section ========== */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); text-align: center; transition: transform .3s; }
.expert-card:hover { transform: translateY(-4px); }
.expert-avatar { width: 100%; aspect-ratio: 1; object-fit: cover; }
.expert-info { padding: 20px; }
.expert-info h4 { font-size: 1.05rem; margin-bottom: 4px; }
.expert-info .expert-title { color: #E84393; font-size: .85rem; margin-bottom: 8px; }
.expert-info p { font-size: .85rem; color: #636e72; margin-bottom: 12px; }
.expert-links { display: flex; gap: 8px; justify-content: center; }
.expert-links a { padding: 6px 16px; border-radius: 20px; font-size: .8rem; border: 1px solid #E84393; color: #E84393; transition: all .3s; }
.expert-links a:hover { background: #E84393; color: #fff; }

/* ========== Partners ========== */
.partner-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.partner-item { background: #fff; padding: 16px 28px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.05); font-weight: 600; color: #636e72; font-size: .95rem; transition: transform .3s; }
.partner-item:hover { transform: scale(1.05); color: #E84393; }

/* ========== FAQ Section ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden; }
.faq-question { padding: 18px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .98rem; transition: background .3s; }
.faq-question:hover { background: #fafafa; }
.faq-question .arrow { transition: transform .3s; color: #E84393; font-size: 1.2rem; }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; color: #636e72; font-size: .92rem; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* ========== Reviews ========== */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #E84393, #6C5CE7); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.review-name { font-weight: 600; font-size: .95rem; }
.review-date { font-size: .8rem; color: #b2bec3; }
.review-stars { color: #fdcb6e; font-size: .9rem; margin-bottom: 8px; }
.review-text { font-size: .9rem; color: #636e72; line-height: 1.7; }

/* ========== Contact Section ========== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-card { background: #fff; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.contact-card h4 { font-size: 1.05rem; margin-bottom: 16px; color: #1A1A2E; }
.contact-card p { font-size: .9rem; color: #636e72; margin-bottom: 8px; }
.contact-card img { max-width: 160px; margin: 12px auto; border-radius: 8px; }

/* ========== How-To Guide ========== */
.howto-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.howto-step { text-align: center; position: relative; }
.step-number { width: 48px; height: 48px; background: linear-gradient(135deg, #E84393, #6C5CE7); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.2rem; margin: 0 auto 12px; }
.howto-step h5 { font-size: .95rem; margin-bottom: 6px; }
.howto-step p { font-size: .82rem; color: #636e72; }

/* ========== Social Share ========== */
.share-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 25px; color: #fff; font-size: .88rem; font-weight: 500; transition: transform .3s, opacity .3s; }
.share-btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.share-btn.wechat { background: #07C160; }
.share-btn.weibo { background: #E6162D; }
.share-btn.douyin { background: #161823; }
.share-btn.bilibili { background: #00A1D6; }

/* ========== Footer ========== */
.site-footer { background: linear-gradient(135deg, #1A1A2E 0%, #2D1B69 100%); color: rgba(255,255,255,.7); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .88rem; line-height: 1.8; margin-top: 12px; }
.footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: #E84393; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .88rem; padding: 4px 0; transition: color .3s; }
.footer-col a:hover { color: #E84393; }
.footer-qr { display: flex; gap: 20px; margin-top: 16px; }
.footer-qr img { width: 100px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ========== Breadcrumb ========== */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: #b2bec3; }
.breadcrumb a { color: #636e72; }
.breadcrumb a:hover { color: #E84393; }
.breadcrumb span { margin: 0 6px; }

/* ========== Inner Page Banner ========== */
.inner-banner { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.inner-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inner-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,46,.8), rgba(108,92,231,.5)); }
.inner-banner .banner-text { position: relative; z-index: 2; text-align: center; color: #fff; }
.inner-banner .banner-text h1 { font-size: 2.2rem; margin-bottom: 10px; color: #fff; }
.inner-banner .banner-text p { font-size: 1rem; opacity: .85; }

/* ========== Content Area ========== */
.content-area { padding: 40px 0 60px; }
.content-area h2 { font-size: 1.6rem; margin-bottom: 16px; }
.content-area h3 { font-size: 1.3rem; margin: 24px 0 12px; color: #6C5CE7; }
.content-area p { margin-bottom: 16px; color: #444; line-height: 1.8; }

/* ========== Author Info Block (EEAT) ========== */
.author-block { display: flex; align-items: center; gap: 16px; padding: 20px; background: #f8f9fa; border-radius: 10px; margin: 24px 0; border-left: 4px solid #E84393; }
.author-block img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-block .author-detail { flex: 1; }
.author-block .author-name { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.author-block .author-title { font-size: .82rem; color: #E84393; margin-bottom: 4px; }
.author-block .author-desc { font-size: .82rem; color: #636e72; }
.article-meta-bar { display: flex; gap: 20px; font-size: .82rem; color: #b2bec3; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #eee; }

/* ========== Alternate BG ========== */
.bg-light { background: #F8F9FA; }
.bg-dark { background: linear-gradient(135deg, #1A1A2E, #2D1B69); color: #fff; }
.bg-dark .section-title h2 { color: #fff; }
.bg-dark .section-title p { color: rgba(255,255,255,.7); }

/* ========== Responsive ========== */
@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: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #1A1A2E; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
  .main-nav.open { display: flex; }
  .main-nav a { height: 50px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .menu-toggle { display: block; }
  .hero-section { height: 400px; }
  .hero-content h1 { font-size: 1.8rem; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .howto-steps { grid-template-columns: 1fr; }
  .section-padding { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .author-block { flex-direction: column; text-align: center; }
}

/* ========== Lazy Load ========== */
img[data-src] { opacity: 0; transition: opacity .5s; }
img[data-src].loaded { opacity: 1; }

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