/* =============================================
   糖心Vlog 工具平台官网 - 主样式文件
   域名: https://www.bobcpmz.cn
   ============================================= */

/* --- CSS 变量 --- */
:root {
  --primary: #6C3EF5;
  --primary-d: #5530D4;
  --primary-l: #EEE8FF;
  --secondary: #3B82F6;
  --accent: #F59E0B;
  --success: #10B981;
  --dark: #0F172A;
  --text: #1E293B;
  --text-m: #475569;
  --text-l: #94A3B8;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --bg2: #F1F5F9;
  --border: #E2E8F0;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(108,62,245,.12);
  --shadow-lg: 0 10px 40px rgba(108,62,245,.18);
  --trans: .25s ease;
  --grad: linear-gradient(135deg, #6C3EF5 0%, #3B82F6 100%);
  --grad-soft: linear-gradient(135deg, #EEE8FF 0%, #DBEAFE 100%);
}

/* --- 重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- 容器 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* --- 导航 --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav-wrap { display: flex; align-items: center; height: 64px; gap: 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--primary); flex-shrink: 0; margin-right: 32px; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-menu a { padding: 6px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-m); transition: all var(--trans); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--primary-l); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-nav { padding: 8px 20px; background: var(--grad); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; transition: all var(--trans); box-shadow: 0 2px 8px rgba(108,62,245,.3); }
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,62,245,.4); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--text); }

/* --- 搜索框 --- */
.search-bar-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.search-bar-inner {
  display: flex; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; padding: 0 20px;
}
.search-input-wrap {
  flex: 1; display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--border); border-radius: 24px; padding: 0 16px; transition: border-color var(--trans);
}
.search-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,62,245,.1); }
.search-input-wrap svg { color: var(--text-l); flex-shrink: 0; }
.search-input-wrap input { flex: 1; border: none; outline: none; padding: 9px 10px; font-size: 14px; background: transparent; color: var(--text); }
.search-input-wrap input::placeholder { color: var(--text-l); }
.btn-search { padding: 9px 22px; background: var(--grad); color: #fff; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; transition: all var(--trans); }
.btn-search:hover { opacity: .9; }

/* --- 面包屑 --- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 13px; color: var(--text-l); }
.breadcrumb .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-m); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* --- 按钮 --- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: 24px; font-size: 14px; font-weight: 600; border: none; transition: all var(--trans); cursor: pointer; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 2px 12px rgba(108,62,245,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,62,245,.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-l); }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 28px; }
.btn-sm { padding: 6px 16px; font-size: 12px; border-radius: 16px; }

/* --- Section 通用 --- */
.section { padding: 72px 0; }
.section-gray { background: var(--bg); }
.section-dark { background: var(--dark); color: #fff; }
.section-grad { background: var(--grad); color: #fff; }
.sec-header { margin-bottom: 48px; }
.sec-header.center { text-align: center; }
.sec-label { display: inline-block; background: var(--primary-l); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; letter-spacing: .5px; text-transform: uppercase; }
.sec-label-white { background: rgba(255,255,255,.2); color: #fff; }
.sec-title { font-size: 32px; font-weight: 800; color: var(--dark); line-height: 1.3; margin-bottom: 14px; }
.sec-title.white { color: #fff; }
.sec-sub { font-size: 16px; color: var(--text-m); line-height: 1.8; max-width: 640px; }
.sec-sub.white { color: rgba(255,255,255,.85); }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }

/* --- Hero Banner --- */
.hero {
  background: var(--grad);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.2); }
.hero h1 { font-size: 42px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,.88); line-height: 1.8; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.7); }
.hero-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.hero-img img { width: 100%; height: 320px; object-fit: cover; }

/* --- 功能卡片 --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform var(--trans);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 52px; height: 52px; background: var(--grad-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-m); line-height: 1.7; }

/* --- 视频卡片 --- */
.video-grid { display: grid; gap: 20px; }
.vg-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vg-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.video-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--trans); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vc-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg2); }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .vc-thumb img { transform: scale(1.05); }
.vc-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(108,62,245,.35); opacity: 0; transition: opacity var(--trans); }
.video-card:hover .vc-play { opacity: 1; }
.play-btn { width: 52px; height: 52px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform var(--trans); }
.video-card:hover .play-btn { transform: scale(1.1); }
.play-btn svg { fill: var(--primary); }
.vc-cat { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; }
.vc-dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.vc-body { padding: 14px 16px; }
.vc-title { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-l); }
.vc-stats { display: flex; gap: 10px; }

/* --- 步骤流程 --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; position: relative; }
.step-card { text-align: center; padding: 28px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--trans); }
.step-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.step-num { width: 48px; height: 48px; background: var(--grad); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 16px; }
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-m); line-height: 1.7; }

/* --- 更新日志 --- */
.changelog-list { display: flex; flex-direction: column; gap: 0; }
.changelog-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.changelog-item:last-child { border-bottom: none; }
.changelog-ver { font-size: 13px; font-weight: 700; color: var(--primary); }
.changelog-date { font-size: 12px; color: var(--text-l); margin-top: 4px; }
.changelog-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 6px; }
.badge-new { background: #DCFCE7; color: #16A34A; }
.badge-fix { background: #FEF3C7; color: #D97706; }
.badge-opt { background: #DBEAFE; color: #2563EB; }
.changelog-content h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.changelog-content ul { display: flex; flex-direction: column; gap: 6px; }
.changelog-content li { font-size: 14px; color: var(--text-m); padding-left: 16px; position: relative; }
.changelog-content li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--dark); background: var(--white); transition: background var(--trans); user-select: none; }
.faq-q:hover { background: var(--bg); }
.faq-q.open { color: var(--primary); background: var(--primary-l); }
.faq-icon { font-size: 18px; transition: transform var(--trans); flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 16px; font-size: 14px; color: var(--text-m); line-height: 1.8; border-top: 1px solid var(--border); padding-top: 14px; }
.faq-a.open { display: block; }

/* --- 评价 --- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all var(--trans); }
.review-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.review-stars { color: #F59E0B; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: var(--text-m); line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.review-role { font-size: 12px; color: var(--text-l); }

/* --- 内页Hero --- */
.inner-hero { background: var(--grad); padding: 48px 0; text-align: center; }
.inner-hero h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.inner-hero p { font-size: 16px; color: rgba(255,255,255,.85); }

/* --- 数字统计 --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat-card { text-align: center; padding: 28px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-num { font-size: 36px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13px; color: var(--text-m); margin-top: 6px; }

/* --- 下载卡片 --- */
.download-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: all var(--trans); }
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }

/* --- 标签云 --- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; background: var(--bg); border: 1px solid var(--border); color: var(--text-m); font-size: 12px; padding: 5px 14px; border-radius: 20px; transition: all var(--trans); }
.tag:hover { background: var(--primary-l); border-color: var(--primary); color: var(--primary); }

/* --- Toast --- */
.tx-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--dark); color: #fff; padding: 12px 24px; border-radius: 24px; font-size: 14px; z-index: 9999; opacity: 0; transition: all .35s ease; pointer-events: none; white-space: nowrap; }
.tx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- 懒加载 --- */
img[loading="lazy"] { opacity: 0; transition: opacity .4s ease; }
img[loading="lazy"].loaded { opacity: 1; }

/* --- 动画 --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- 页脚 --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-brand .logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--trans); }
.footer-col li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.update-time { font-size: 12px; color: rgba(255,255,255,.35); }

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
  .hero h1 { font-size: 28px; }
  .sec-title { font-size: 24px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .changelog-item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 16px; }
}
