/* ============================================================
   VibeKnow SEO 静态页面统一样式
   沿用 VibeKnow 设计系统（主色 #5F5BF6、毛玻璃、4px 间距等）
   ============================================================ */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: #F7F5FA;
  color: #161242;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 背景装饰 blob（和主站一致） ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blobs::before,
.bg-blobs::after {
  content: ""; position: absolute; border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  filter: blur(70px); opacity: 0.22;
}
.bg-blobs::before {
  top: -120px; left: -180px; width: 500px; height: 600px;
  background: conic-gradient(from 180deg, #8C5EF6, #5F5BF6 90deg, #0093FF 180deg, #CC72F2 270deg, #8C5EF6);
}
.bg-blobs::after {
  bottom: -160px; right: -140px; width: 420px; height: 480px;
  background: conic-gradient(from 270deg, #CC72F2, #8C5EF6 120deg, #5F5BF6 240deg, #CC72F2);
}

/* ---------- 顶部导航 ---------- */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(22, 18, 66, 0.06);
  height: 60px;
}
.top-nav-inner {
  max-width: 1200px; height: 100%; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
}
.top-nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.top-nav-logo img { height: 28px; }
.top-nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.top-nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(22, 18, 66, 0.65);
  transition: color 0.2s;
  white-space: nowrap;
}
.top-nav-links a:hover { color: #161242; }
.top-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #000; color: #fff;
  padding: 10px 22px; border-radius: 22px;
  font-size: 13px; font-weight: 500;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.top-nav-cta:hover { opacity: 0.85; }
@media (max-width: 640px) {
  .top-nav-inner { padding: 0 20px; gap: 24px; }
  .top-nav-links { display: none; }
}

/* ---------- 容器 ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 60px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .container { padding: 24px 20px 48px; }
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; margin-bottom: 24px;
  font-size: 13px;
}
.breadcrumb a { color: rgba(22, 18, 66, 0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: #5F5BF6; }
.breadcrumb .sep { color: rgba(22, 18, 66, 0.25); font-size: 12px; }
.breadcrumb .current { color: #161242; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { margin-bottom: 40px; }
.hero h1 {
  font-size: 40px; font-weight: 800; line-height: 1.2;
  color: #1a1028; margin-bottom: 14px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}
.hero .subtitle {
  font-size: 16px; line-height: 1.8;
  color: rgba(22, 18, 66, 0.55);
  max-width: 720px;
}
@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 26px; }
  .hero .subtitle { font-size: 15px; }
}

/* ---------- SEO 介绍段 ---------- */
.seo-section { margin-bottom: 48px; }
.seo-section h2 {
  font-size: 22px; font-weight: 700;
  color: #161242; line-height: 1.4;
  margin-bottom: 14px;
}
.seo-section h2:not(:first-child) { margin-top: 32px; }
.seo-section p {
  font-size: 15px; line-height: 1.85;
  color: rgba(22, 18, 66, 0.7);
  margin-bottom: 12px;
}
.seo-section strong { color: #161242; font-weight: 600; }

/* ---------- 通用卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ---------- 教程卡片（学习中心） ---------- */
.tutorial-card {
  background: #fff;
  border: 1px solid #f0edf5;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(96, 82, 255, 0.1);
}
.tutorial-card .cover {
  aspect-ratio: 16/9;
  background: #f5f3ff;
  position: relative;
  overflow: hidden;
}
.tutorial-card .cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.tutorial-card .badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 5px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.5px;
}
.tutorial-card .badge.article { background: rgba(255, 255, 255, 0.9); color: #6052FF; }
.tutorial-card .badge.video { background: linear-gradient(135deg, #6052FF, #9C53FF); color: #fff; }
.tutorial-card .play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.15);
}
.tutorial-card .play-icon .dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #6052FF; font-size: 18px;
}
.tutorial-card .body { padding: 14px 16px 16px; }
.tutorial-card .title {
  font-size: 15px; font-weight: 700;
  color: #1a1028; line-height: 1.4;
  margin-bottom: 6px;
}
.tutorial-card .desc {
  font-size: 13px; color: #9a90a8;
  line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tutorial-card .meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: #b0a8be;
}

/* ---------- 作品卡片（showcase） ---------- */
.work-card {
  background: #fff; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.work-card .cover {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #1a1028;
}
.work-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.work-card .cover .duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
}
.work-card .cover .badge-exp {
  position: absolute; top: 8px; left: 10px;
  padding: 2px 7px; border-radius: 5px;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #fff; font-size: 9px; font-weight: 600; letter-spacing: 0.5px;
}
.work-card .body { padding: 14px 16px; }
.work-card .title {
  font-size: 15px; font-weight: 600;
  color: #161242;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.work-card .subtitle {
  font-size: 13px; color: rgba(22, 18, 66, 0.5);
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.work-card .author {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(22, 18, 66, 0.45);
}
.work-card .avatar {
  width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- 作品分组 ---------- */
.work-group { margin-bottom: 40px; }
.work-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600;
  color: #161242; margin-bottom: 16px;
}
.work-group-title .tag {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #fff; letter-spacing: 0.5px;
}

/* ---------- 分类标签筛选（纯展示，不交互） ---------- */
.tag-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.tag-filters a {
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  background: #f5f3ff;
  color: #7a7189;
  transition: all 0.2s;
}
.tag-filters a:hover { background: rgba(95, 91, 246, 0.1); color: #5F5BF6; }
.tag-filters a.current {
  background: linear-gradient(135deg, #6052FF, #9C53FF);
  color: #fff;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 15px;
  padding: 20px 24px;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.03);
}
.faq-item h3 {
  font-size: 16px; font-weight: 600;
  color: #161242; line-height: 1.5;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px; line-height: 1.85;
  color: rgba(22, 18, 66, 0.65);
}

/* ---------- 相关链接 ---------- */
.related-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.related-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 32px rgba(95, 91, 246, 0.1);
}
.related-card .text .label {
  font-size: 15px; font-weight: 600;
  color: #161242; margin-bottom: 4px;
}
.related-card .text .desc {
  font-size: 12px; color: rgba(22, 18, 66, 0.55);
}
.related-card .arrow {
  color: #5F5BF6; font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}

/* ---------- 底部 CTA 卡片 ---------- */
.cta-box {
  text-align: center; padding: 56px 32px; margin-top: 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(95, 91, 246, 0.08), rgba(140, 94, 246, 0.05));
  border: 1px solid rgba(95, 91, 246, 0.15);
}
.cta-box h2 {
  font-size: 24px; font-weight: 700;
  color: #161242; margin-bottom: 12px;
}
.cta-box p {
  font-size: 15px; color: rgba(22, 18, 66, 0.6);
  margin-bottom: 24px;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #5F5BF6, #8C5EF6);
  color: #fff;
  padding: 12px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(95, 91, 246, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(95, 91, 246, 0.35);
}

/* ---------- 教程详情：封面图 + 步骤 ---------- */
.tutorial-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(22, 18, 66, 0.45);
  margin-bottom: 28px;
}
.tutorial-meta .tag {
  padding: 2px 10px; border-radius: 4px;
  font-weight: 500;
}
.tutorial-meta .tag.article { background: rgba(95, 91, 246, 0.1); color: #5F5BF6; }
.tutorial-meta .tag.video { background: rgba(244, 63, 94, 0.1); color: #F43F5E; }

.tutorial-cover {
  width: 100%; border-radius: 12px;
  margin-bottom: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.tutorial-step { margin-bottom: 40px; }
.tutorial-step h2 {
  font-size: 22px; font-weight: 600;
  color: #5F5BF6; margin-bottom: 12px;
}
.tutorial-step p {
  font-size: 15px; line-height: 1.85;
  color: rgba(22, 18, 66, 0.72);
  white-space: pre-line;
  margin-bottom: 16px;
}
.tutorial-step img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- 视频教程播放器 ---------- */
.tutorial-video-wrap {
  width: 100%; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
  background: #000;
}
.tutorial-video-wrap video { width: 100%; display: block; }

/* ---------- 视频播放 Modal ---------- */
.vk-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: vkModalFadeIn 0.2s ease-out;
}
.vk-video-modal.open { display: flex; }
.vk-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.vk-video-modal-inner {
  position: relative;
  width: min(960px, 100%);
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  animation: vkModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vk-video-modal-video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}
.vk-video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.vk-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
@keyframes vkModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes vkModalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 640px) {
  .vk-video-modal { padding: 12px; }
  .vk-video-modal-close { top: -44px; }
}

/* 有视频的卡片 hover 时显示播放图标 */
.work-card[data-video] { cursor: pointer; }
.work-card[data-video] .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
  z-index: 1;
}
.work-card[data-video]:hover .cover::before {
  background: rgba(0, 0, 0, 0.3);
}
.work-card[data-video] .cover::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #5F5BF6;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 2;
  padding-left: 3px;
}
.work-card[data-video]:hover .cover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- 底部 Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  margin-top: 80px;
  padding: 48px 32px 32px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(22, 18, 66, 0.08);
}
.site-footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer .top {
  display: flex; flex-wrap: wrap; gap: 48px;
  margin-bottom: 40px;
}
.site-footer .brand {
  flex: 1 1 280px; max-width: 340px;
}
.site-footer .brand img { height: 32px; margin-bottom: 16px; }
.site-footer .brand p {
  font-size: 14px; line-height: 1.7;
  color: rgba(22, 18, 66, 0.55);
}
.site-footer .col {
  min-width: 120px;
}
.site-footer .col h3 {
  font-size: 14px; font-weight: 600;
  color: #161242; margin-bottom: 14px;
}
.site-footer .col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer .col a {
  font-size: 13px; color: rgba(22, 18, 66, 0.6);
  transition: color 0.2s;
}
.site-footer .col a:hover { color: #5F5BF6; }
.site-footer .bottom {
  border-top: 1px solid rgba(22, 18, 66, 0.06);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}
.site-footer .bottom .meta { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .bottom .meta span,
.site-footer .bottom .meta a {
  font-size: 12px; color: rgba(22, 18, 66, 0.4);
}
.site-footer .bottom .wechat { font-size: 12px; color: rgba(22, 18, 66, 0.5); }
.site-footer .bottom .wechat strong { color: #161242; }
@media (max-width: 640px) {
  .site-footer { padding: 32px 20px 24px; margin-top: 56px; }
  .site-footer .top { gap: 32px; }
}
