/* 站点样式（全部中文注释） */

:root {
  /* 优化配色方案 - 更现代、更有层次 */
  --bg: #fafbfc;
  --bg-secondary: #f4f6f9;
  --panel: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  --success: #10b981;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --panel: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: #1e1b4b;
  --accent: #22d3ee;
  --accent-light: #0c4a6e;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .bg-anim {
  background:
    radial-gradient(circle 1200px at 15% 25%, rgba(99,102,241,0.08), transparent 55%),
    radial-gradient(circle 900px at 85% 15%, rgba(34,211,238,0.06), transparent 55%),
    radial-gradient(circle 1400px at 50% 95%, rgba(139,92,246,0.05), transparent 65%),
    radial-gradient(circle 800px at 75% 55%, rgba(236,72,153,0.04), transparent 50%),
    linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.95) 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--accent) 50%,
    #8b5cf6 100%
  );
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/* 暗色模式下的进度条 */
[data-theme="dark"] .scroll-progress {
  background: linear-gradient(90deg,
    #6366f1 0%,
    #22d3ee 50%,
    #a855f7 100%
  );
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.6);
}

/* 背景简洁动画：增强动态渐变 */
.bg-anim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 1200px at 15% 25%, rgba(79,70,229,0.12), transparent 55%),
    radial-gradient(circle 900px at 85% 15%, rgba(6,182,212,0.10), transparent 55%),
    radial-gradient(circle 1400px at 50% 95%, rgba(139,92,246,0.08), transparent 65%),
    radial-gradient(circle 800px at 75% 55%, rgba(236,72,153,0.06), transparent 50%),
    linear-gradient(135deg,
      rgba(79,70,229,0.03) 0%,
      rgba(6,182,212,0.04) 25%,
      rgba(139,92,246,0.03) 50%,
      rgba(236,72,153,0.02) 75%,
      rgba(79,70,229,0.03) 100%
    );
  background-size: 140% 140%, 120% 120%, 160% 160%, 100% 100%, 300% 300%;
  background-position: 15% 25%, 85% 15%, 50% 95%, 75% 55%, 0% 50%;
  animation:
    bgShift 20s ease-in-out infinite alternate,
    bgRotate 40s linear infinite,
    bgPulse 8s ease-in-out infinite;
}

@keyframes bgShift {
  0% {
    background-position: 15% 25%, 85% 15%, 50% 95%, 75% 55%, 0% 50%;
    transform: translate3d(0,0,0);
  }
  100% {
    background-position: 20% 30%, 80% 20%, 45% 90%, 70% 60%, 100% 50%;
    transform: translate3d(0,-25px,0);
  }
}

@keyframes bgRotate {
  0% { background-size: 140% 140%, 120% 120%, 160% 160%, 100% 100%, 300% 300%; }
  33% { background-size: 150% 150%, 130% 130%, 150% 150%, 110% 110%, 350% 350%; }
  66% { background-size: 130% 130%, 110% 110%, 170% 170%, 90% 90%, 280% 280%; }
  100% { background-size: 140% 140%, 120% 120%, 160% 160%, 100% 100%, 300% 300%; }
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-anim { animation: none; }
}

/* 背景轻量浮动字符特效 - 增强动画 */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx .f {
  position: absolute;
  font-weight: 700;
  color: rgba(79,70,229,0.18);
  text-shadow: 0 6px 16px rgba(79,70,229,0.08);
  user-select: none;
  filter: blur(0.3px);
}
.bg-fx .f1 { top: 18%; left: 8%; font-size: 36px; animation: floatUpRotate 14s ease-in-out infinite; }
.bg-fx .f2 { top: 26%; left: 78%; font-size: 28px; animation: floatUpRotate 16s ease-in-out infinite reverse; animation-delay: -2s; }
.bg-fx .f3 { top: 44%; left: 12%; font-size: 32px; animation: floatUpScale 18s ease-in-out infinite; animation-delay: -4s; }
.bg-fx .f4 { top: 60%; left: 72%; font-size: 30px; animation: floatUpRotate 19s ease-in-out infinite reverse; animation-delay: -6s; }
.bg-fx .f5 { top: 72%; left: 18%; font-size: 26px; animation: floatUpScale 17s ease-in-out infinite; animation-delay: -3s; }
.bg-fx .f6 { top: 12%; left: 56%; font-size: 24px; animation: floatUpRotate 20s ease-in-out infinite reverse; animation-delay: -5s; }
.bg-fx .f7 { top: 84%; left: 52%; font-size: 28px; animation: floatUpScale 21s ease-in-out infinite; animation-delay: -7s; }
.bg-fx .f8 { top: 36%; left: 88%; font-size: 26px; animation: floatUpRotate 23s ease-in-out infinite reverse; animation-delay: -1s; }

@keyframes floatUpRotate {
  0%   { transform: translate3d(0, 30px, 0) rotate(-3deg) scale(0.95); opacity: .12; }
  50%  { transform: translate3d(0, -15px, 0) rotate(3deg) scale(1.05); opacity: .28; }
  100% { transform: translate3d(0, 30px, 0) rotate(-3deg) scale(0.95); opacity: .12; }
}

@keyframes floatUpScale {
  0%   { transform: translate3d(0, 25px, 0) scale(0.9); opacity: .14; }
  50%  { transform: translate3d(0, -12px, 0) scale(1.1); opacity: .26; }
  100% { transform: translate3d(0, 25px, 0) scale(0.9); opacity: .14; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-fx .f { animation: none; }
}

/* Markdown 代码横向滚动背景 - 优化颜色 */
.bg-code { position: fixed; inset: 0; z-index: 0; pointer-events: none; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; opacity: .7; }
.bg-code { -webkit-mask-image: linear-gradient(to right, transparent 0, black 15%, black 85%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, black 15%, black 85%, transparent 100%); }
.bg-code .code-row { position: absolute; left: 0; white-space: nowrap; will-change: transform; animation: codeMarquee var(--dur, 40s) linear infinite; transform: translate3d(100%,0,0); color: rgba(79, 70, 229, 0.08); font-size: 13px; }
.bg-code .code-row span { padding-right: 48px; }
.bg-code .r1 { top: 22%; animation-duration: 36s; }
.bg-code .r2 { top: 40%; animation-duration: 44s; }
.bg-code .r3 { top: 58%; animation-duration: 52s; }
.bg-code .r4 { top: 76%; animation-duration: 40s; }

@keyframes codeMarquee {
  0%   { transform: translate3d(100%, 0, 0); }
  100% { transform: translate3d(-120%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-code .code-row { animation: none; }
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* 顶部导航栏 - 现代化设计 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand a {
  color: inherit;
  text-decoration: none;
}

/* 主导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
}
.main-nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
}
.lang-toggle {
  color: var(--text-secondary);
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.lang-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* 主题切换按钮 */
.theme-toggle {
  padding: 8px 10px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 10px;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.theme-toggle:active {
  transform: translateY(0);
}

/* 右侧工具组 */
.right-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Hero 区域 - 现代化设计 */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-secondary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.hero {
  padding: 140px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.logo-hero {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: inline-block;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}
.logo-hero:hover {
  transform: scale(1.05) rotate(2deg);
}
.title {
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 36px;
  font-weight: 500;
  line-height: 1.6;
}
.cta-row {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 按钮设计 - 现代化 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}
.btn.primary:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  transform: translateY(-3px);
}

/* 平台下载区块 */
.dl-alt {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.dl-caption { display: none; }
.dl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.dl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}
.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.dl-card .dl-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}
.dl-card:hover .dl-link {
  color: var(--primary);
}
.dl-card .os {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.2s ease;
}
.dl-card:hover .os {
  background: var(--primary);
  border-color: var(--primary);
}
.dl-card .os img {
  width: 22px;
  height: 22px;
  display: block;
  transition: filter 0.2s ease;
}
.dl-card:hover .os img {
  filter: brightness(0) invert(1);
}
.dl-card .title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  color: inherit;
}

/* 即将到来样式 */
.dl-card.coming-soon {
  opacity: 0.7;
  position: relative;
}
.dl-card.coming-soon .dl-link {
  cursor: default;
  pointer-events: none;
}
.dl-card.coming-soon .badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  margin-left: auto;
  white-space: nowrap;
}

/* 移除滚动提示（不再展示） */

/* Section Header - 通用章节标题 */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* Demo 演示区域 - 美化布局 */
.demo {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.demo .media-frame {
  margin-top: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.demo video, .demo img { width: 100%; display: block; }
.hidden { display: none; }
.muted { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Video Badge - 视频角标 */
.video-badge {
  position: absolute;
  top: 48px;
  right: 16px;
  padding: 6px 14px;
  background: rgba(79, 70, 229, 0.95);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 5;
  backdrop-filter: blur(8px);
  animation: badgePulse 2s ease-in-out infinite;
}

.ai-badge {
  background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(236,72,153,0.95));
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Demo 布局：左图右文 */
.demo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.media-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.media-left {
  width: 100%;
  max-width: 760px;
  margin: 0;
  aspect-ratio: 16 / 9;
  position: relative;
}
.media-left video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.media-ai {
  width: 100%;
  max-width: 760px;
  margin: 0;
  aspect-ratio: 16 / 9;
  position: relative;
}

.media-ai video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* 窗口外观 - 优化设计 */
.media-left.window, .media-ai.window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.media-left.window::before, .media-ai.window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 38px;
  background: linear-gradient(180deg, #f8f9fb, #f1f3f7);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
  z-index: 2;
}
.media-left.window::after, .media-ai.window::after {
  content: "\25CF  \25CF  \25CF";
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 11px;
  letter-spacing: 7px;
  color: #ff5f56;
  text-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #27c93f;
  z-index: 3;
  pointer-events: none;
}
.media-left.window video {
  position: absolute;
  inset: 38px 0 0 0;
  width: 100%;
  height: calc(100% - 38px);
}
.media-ai.window video {
  position: absolute;
  inset: 38px 0 0 0;
  width: 100%;
  height: calc(100% - 38px);
}

/* Feature Header - 特性列表头部 */
.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.feature-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.feature-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* 特性列表 - 增强设计 */
.feature-list { padding: 0; }
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.bullets li:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateX(6px);
  box-shadow: var(--shadow);
}
.bullets .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.bullets .icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}
.bullets li:hover .icon {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(-5deg) scale(1.08);
  box-shadow: var(--shadow);
}
.bullets li:hover .icon img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

/* Feature Content - 特性内容 */
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.feature-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s ease;
  line-height: 1.4;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.bullets li:hover .feature-title {
  color: var(--primary);
}

.bullets li:hover .feature-desc {
  color: var(--primary-hover);
}

/* 两列网格（仍用于许可区块布局时可复用） */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid h3 { margin-top: 0; }

/* 开发者板块样式 */
#developers {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

#developers h2 {
  text-align: center;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 48px;
  font-weight: 500;
}

.developers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.developer-card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.developer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.developer-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.developer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.developer-card:hover .developer-avatar {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.developer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.developer-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  transition: color 0.3s ease;
}

.developer-card:hover .developer-name {
  color: var(--primary);
}

.developer-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.developer-github {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.developer-github::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E");
  background-size: contain;
  transition: all 0.3s ease;
}

.developer-card:hover .developer-github::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234f46e5'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E");
}

.developer-card:hover .developer-github {
  color: var(--primary);
}

/* 底部 Footer - 优化设计 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-inner a:hover {
  color: var(--primary);
}
.footer-inner .github-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}
.footer-inner a:hover .github-icon {
  transform: scale(1.15) rotate(5deg);
}
.footer-inner .dot {
  margin: 0 12px;
  color: var(--border);
}

/* 确保内容浮在背景动画上层 */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* 移动端适配 - 优化响应式 */
@media (max-width: 960px) {
  .hero {
    padding: 100px 0 80px;
    min-height: 80vh;
  }
  .hero-inner .title {
    font-size: clamp(36px, 9vw, 52px);
  }
  .subtitle {
    font-size: 18px;
  }
  .logo-hero {
    width: 80px;
    height: 80px;
  }
  .cta-row {
    width: 100%;
    flex-direction: column;
  }
  .btn {
    width: 100%;
    max-width: 320px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .media-column {
    gap: 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .section-subtitle {
    font-size: 16px;
  }

  .video-badge {
    top: 42px;
    right: 12px;
    font-size: 12px;
    padding: 5px 12px;
  }

  .feature-header {
    margin-bottom: 16px;
  }

  .feature-header h3 {
    font-size: 20px;
  }

  .feature-count {
    min-width: 44px;
    height: 28px;
    font-size: 14px;
  }

  .gif-left { max-width: 100%; }
  .bullets { gap: 10px; }
  .bullets li {
    padding: 14px;
  }
  .bullets .icon {
    width: 44px;
    height: 44px;
  }
  .bullets .icon img {
    width: 26px;
    height: 26px;
  }
  .feature-title {
    font-size: 14px;
  }
  .feature-desc {
    font-size: 12px;
  }
  .media-left {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .media-ai {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  .dl-grid {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .dl-card {
    width: 100%;
  }
  .dl-card .dl-link {
    justify-content: flex-start;
    padding: 14px 18px;
  }

  /* 移动端导航栏适配 */
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand {
    width: 100%;
    text-align: center;
    font-size: 17px;
  }
  .right-tools {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
    gap: 12px;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .main-nav a {
    padding: 7px 12px;
    font-size: 14px;
  }
  .lang-switch {
    margin-top: 4px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    width: min(1120px, 90%);
  }

  /* 开发者板块移动端适配 */
  .developers-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .developer-link {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .developer-avatar {
    width: 72px;
    height: 72px;
  }

  .developer-name {
    font-size: 20px;
  }

  .developer-role {
    font-size: 13px;
  }

  .section-intro {
    font-size: 14px;
    margin-bottom: 32px;
  }

  /* DOCS 页面移动端适配 */
  article {
    padding: 16px !important;
  }

  article pre {
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
  }

  article code {
    word-break: break-all;
    white-space: pre-wrap;
  }

  article pre code {
    word-break: normal;
    white-space: pre;
  }

  article img,
  article video {
    max-width: 100% !important;
    height: auto !important;
  }

  .panel {
    padding: 12px !important;
    overflow-x: auto;
  }
}

/* 历史块样式 */
.history-block { margin: 20px 0 28px; }
.history-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.history-block ul {
  margin: 12px 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}
