:root {
  --primary: #4f6bff;
  --primary-dark: #3a54d6;
  --accent: #8b5cf6;
  --grad: linear-gradient(135deg, #4f6bff 0%, #8b5cf6 100%);
  --bg: #ffffff;
  --bg-alt: #eef8fd;
  --page-bg: linear-gradient(180deg, #eef8fd 0%, #ffffff 32%, #f1f9fe 66%, #ffffff 100%);
  --text: #1f2437;
  --text-sub: #667085;
  --border: #e5e9f5;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #151a2e;
  --footer-text: #9aa3b8;
  --hero-bg: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  --soft-bg: #eef1ff;
  --carousel-bg: #eef0f8;
  --card-shadow: 0 10px 30px rgba(79, 107, 255, 0.08);
  --radius: 14px;
  --header-h: 64px;
}

html[data-theme="cyan"] {
  --page-bg: linear-gradient(180deg, #ecf9ff 0%, #ffffff 100%);
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --accent: #2563eb;
  --grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --bg-alt: #f0f9ff;
  --border: #dbeafe;
  --hero-bg: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
  --soft-bg: #e0f2fe;
  --footer-bg: #0c1a2b;
  --footer-text: #9fc3d9;
}

html[data-theme="orange"] {
  --page-bg: linear-gradient(180deg, #fff7ef 0%, #ffffff 100%);
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --accent: #ef4444;
  --grad: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  --bg-alt: #fff7ed;
  --border: #ffedd5;
  --hero-bg: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  --soft-bg: #ffedd5;
  --footer-bg: #1c0f0a;
  --footer-text: #c9a99b;
}

html[data-theme="green"] {
  --page-bg: linear-gradient(180deg, #eefbf6 0%, #ffffff 100%);
  --primary: #059669;
  --primary-dark: #047857;
  --accent: #14b8a6;
  --grad: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  --bg-alt: #ecfdf5;
  --border: #d1fae5;
  --hero-bg: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  --soft-bg: #d1fae5;
  --footer-bg: #0a1f17;
  --footer-text: #9cc7b4;
}

html[data-theme="dark"] {
  --page-bg: linear-gradient(180deg, #10161f 0%, #0f1420 55%, #161d30 100%);
  --bg: #0f1420;
  --bg-alt: #151b2c;
  --text: #e8ecf8;
  --text-sub: #9aa5c0;
  --border: #283249;
  --card-bg: #171e30;
  --header-bg: rgba(15, 20, 32, 0.92);
  --hero-bg: linear-gradient(180deg, #101828 0%, #0f1420 100%);
  --soft-bg: #232b42;
  --carousel-bg: #12182a;
  --footer-bg: #0a0e17;
  --footer-text: #7f8aa3;
  --primary: #7c8cff;
  --primary-dark: #5f6ff5;
  --accent: #a78bfa;
  --grad: linear-gradient(135deg, #7c8cff 0%, #a78bfa 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(79, 107, 255, 0.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-slogan {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-sub);
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
  transition: color 0.25s, transform 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--primary); transform: translateY(-1px); }
.nav-link:hover::after,
.nav-link.active::after { width: 70%; }
.nav-link.active { color: var(--primary); }
.nav-icon { width: 18px; height: 18px; }
.nav-service {
  margin-left: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(79, 107, 255, 0.28);
  transition: filter 0.25s, box-shadow 0.25s, transform 0.25s;
}
.nav-service:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(79, 107, 255, 0.4);
}
.nav-service::after,
.nav-service:hover::after { display: none; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ---------- 首屏主图区 ---------- */
.hero {
  background: var(--hero-bg);
  padding: 36px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: stretch;
}
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--carousel-bg);
  min-height: 320px;
}
.carousel-track { display: flex; height: 100%; transition: height 0.3s ease; }
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}
.carousel-slide.active { display: flex; }
.carousel-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: 0.2s;
  z-index: 5;
}
.carousel-btn:hover { background: #fff; color: var(--primary); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: 0.2s;
}
.carousel-dot.active { background: var(--primary); width: 24px; border-radius: 6px; }

/* ---------- 主图右侧竖排 5 项 ---------- */
.side-panel { display: flex; flex-direction: column; gap: 12px; }
.side-item-wrap { position: relative; }
.side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.side-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(79, 107, 255, 0.16);
}
.side-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--soft-bg);
  border-radius: 10px;
}
.side-label { font-weight: 600; }
.side-arrow { margin-left: auto; color: var(--text-sub); font-size: 12px; }
.dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  z-index: 60;
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: 0.15s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--soft-bg); color: var(--primary); }
.dropdown-empty { padding: 14px 16px; color: var(--text-sub); font-size: 14px; text-align: center; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-sub); margin-bottom: 36px; }

/* ---------- 软件介绍 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature-title { font-size: 20px; margin-bottom: 10px; }
.feature-text { color: var(--text-sub); }

/* ---------- 音色模板 ---------- */
.timbre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timbre-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}
.timbre-card:hover { transform: translateY(-4px); }
.timbre-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #f4f6fb; }
.timbre-name { padding: 12px; text-align: center; font-weight: 600; }

/* ---------- 联系我们 ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.contact-label { flex: 0 0 80px; color: var(--text-sub); }
.contact-value { font-weight: 500; word-break: break-all; }
.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}
.form-title { font-size: 20px; margin-bottom: 18px; }
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.12);
}
.form-tip { font-size: 14px; color: #16a34a; min-height: 20px; margin-top: 6px; }
.form-tip.error { color: #dc2626; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: filter 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--card-bg); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 26px 0; text-align: center; font-size: 14px; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay#video-modal {
  background: rgba(4, 6, 14, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal {
  background: var(--card-bg);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}
.modal-sm { max-width: 480px; }
.modal-title { font-size: 20px; margin-bottom: 16px; padding-right: 30px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--soft-bg);
  font-size: 16px;
  color: var(--text);
}
.modal-close:hover { background: var(--border); }
.video-box video { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; }
.empty-tip { color: var(--text-sub); text-align: center; padding: 40px 0; }
.video-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.video-list button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  transition: 0.15s;
}
.video-list button:hover { border-color: var(--primary); }
.video-list button.active { border-color: var(--primary); color: var(--primary); background: var(--soft-bg); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.confirm-name { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.confirm-notice {
  color: var(--text-sub);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  white-space: pre-line;
}

/* ---------- 教程子页 ---------- */
.page-tutorial { background: var(--bg-alt); }
.tutorial-section { padding-top: 48px; min-height: 70vh; }
.tutorial-container { max-width: 820px; }
.tutorial-title { font-size: 30px; text-align: center; margin-bottom: 34px; }
.tutorial-block { margin-bottom: 30px; }
.tutorial-block h3 { font-size: 20px; margin-bottom: 8px; }
.tutorial-block p { color: var(--text-sub); white-space: pre-line; }
.tutorial-block img { border-radius: 12px; border: 1px solid var(--border); }
.tutorial-block video { width: 100%; border-radius: 12px; background: #000; }
.tutorial-empty { color: var(--text-sub); text-align: center; padding: 60px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .side-panel { flex-direction: row; flex-wrap: wrap; }
  .side-item-wrap { flex: 1 1 30%; }
  .dropdown { left: 0; right: auto; width: 220px; }
  .timbre-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { padding: 12px 14px; }
  .brand-slogan { display: none; }
  .nav-service { margin-left: 0; justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .timbre-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .section { padding: 48px 0; }
  .side-item-wrap { flex: 1 1 100%; }
  .hero { padding: 24px 0 40px; }
}
@media (max-width: 480px) {
  .timbre-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carousel { min-height: 220px; }
}

/* ---------- 在线客服：悬浮按钮 + 聊天窗尺寸 ---------- */
.service-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 107, 255, 0.35);
  cursor: pointer;
  z-index: 999999990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(79, 107, 255, 0.45);
}
.service-fab svg {
  width: 28px;
  height: 28px;
}
/* 隐藏客服 SDK 自带的悬浮图标，使用我们自己的按钮 */
#blzxMinChatWindowDiv,
#blzxMinChatWindowDiv_yuan {
  display: none !important;
}
/* 桌面端：加大客服聊天窗 */
@media (min-width: 768px) {
  #wolive-talk,
  #loading {
    width: 440px !important;
    height: 660px !important;
    right: 24px !important;
    bottom: 24px !important;
    margin: 0 !important;
  }
  #wolive-iframe {
    border-radius: 14px !important;
  }
}
/* 移动端：聊天窗尽量占满屏幕 */
@media (max-width: 767px) {
  #wolive-talk,
  #loading {
    height: 82vh !important;
    bottom: 0 !important;
    right: 0 !important;
    margin: 0 !important;
  }
}

/* ---------- 客服悬浮按钮：呼吸动画 ---------- */
.service-fab {
  animation: service-fab-breathe 2.2s ease-in-out infinite;
}
.service-fab:hover {
  animation: none;
}
@keyframes service-fab-breathe {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(79, 107, 255, 0.35), 0 0 0 0 rgba(79, 107, 255, 0.45);
  }
  50% {
    box-shadow: 0 6px 20px rgba(79, 107, 255, 0.35), 0 0 0 16px rgba(79, 107, 255, 0);
  }
}

/* ---------- 客服聊天窗：桌面端居中显示并加大 ---------- */
@media (min-width: 768px) {
  #wolive-talk,
  #loading {
    width: 500px !important;
    height: 720px !important;
    max-height: 92vh !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
  }
  #wolive-iframe {
    border-radius: 14px !important;
  }
}

/* ---------- 客服聊天窗：改回右下角显示（保留加大尺寸） ---------- */
@media (min-width: 768px) {
  #wolive-talk,
  #loading {
    left: auto !important;
    top: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    transform: none !important;
    margin: 0 !important;
  }
}

/* ---------- 首屏标语区（参考大饼AI主页优化） ---------- */
.hero-copy {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 34px;
  padding-top: 8px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 26px;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-btn {
  padding: 14px 34px;
  font-size: 17px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(79, 107, 255, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn.btn-ghost { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-stat {
  min-width: 112px;
  padding: 14px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}
.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-label { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

/* ---------- 底部下载横幅（CTA） ---------- */
.cta-section { padding: 16px 0 72px; }
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  border-radius: 22px;
  text-align: center;
  padding: 56px 30px;
  color: #fff;
  box-shadow: 0 18px 44px rgba(79, 107, 255, 0.28);
}
.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.cta-box::before { width: 260px; height: 260px; top: -110px; left: -70px; }
.cta-box::after { width: 200px; height: 200px; bottom: -90px; right: -50px; }
.cta-title { position: relative; font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.cta-subtitle { position: relative; font-size: 16px; opacity: 0.92; margin-bottom: 28px; }
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-dark);
  border: none;
  padding: 14px 40px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }

@media (max-width: 768px) {
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .hero-stats { gap: 12px; }
  .hero-stat { min-width: 42%; }
  .cta-title { font-size: 24px; }
  .cta-subtitle { font-size: 14px; }
  .cta-box { padding: 40px 20px; }
}

/* ---------- 右侧导航空状态 ---------- */
.side-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 22px 12px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
}

/* ---------- 移动端全面自适应 ---------- */
html, body { overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 8px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; letter-spacing: 0.5px; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero { padding: 20px 0 32px; }
  .hero-copy { margin-bottom: 24px; padding-top: 0; }
  .hero-title { font-size: 26px; margin-bottom: 10px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { gap: 10px; }
  .hero-btn { padding: 12px 22px; font-size: 15px; flex: 1 1 auto; max-width: 46%; white-space: nowrap; }
  .hero-stats { gap: 10px; margin-top: 22px; }
  .hero-stat { min-width: 45%; padding: 12px 12px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 12px; }
  .carousel { min-height: 220px; }
  .carousel-btn { width: 32px; height: 32px; font-size: 15px; }
  .carousel-dot { width: 8px; height: 8px; }
  .side-panel { gap: 10px; }
  .side-item { padding: 13px 12px; gap: 10px; }
  .side-item .side-icon { width: 40px; height: 40px; font-size: 20px; }
  .dropdown { width: 100%; left: 0; right: 0; }
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 14px; margin-bottom: 26px; }
  .feature-grid { gap: 16px; }
  .feature-card { padding: 22px; }
  .feature-icon { font-size: 34px; margin-bottom: 10px; }
  .feature-title { font-size: 18px; margin-bottom: 8px; }
  .timbre-grid { gap: 12px; }
  .timbre-name { padding: 10px; font-size: 14px; }
  .contact-inner { gap: 28px; }
  .contact-form-card { padding: 20px; }
  .cta-box { padding: 34px 18px; border-radius: 16px; }
  .cta-title { font-size: 22px; }
  .cta-subtitle { font-size: 13px; margin-bottom: 20px; }
  .btn-cta { padding: 12px 30px; font-size: 15px; }
  .site-footer { padding: 20px 0; font-size: 13px; }
  .modal-overlay { padding: 12px; }
  .modal { padding: 16px; border-radius: 12px; max-height: 92vh; }
  .modal-title { font-size: 17px; margin-bottom: 12px; }
  .video-box video { max-height: 46vh; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .tutorial-section { padding-top: 28px; }
  .tutorial-title { font-size: 24px; margin-bottom: 24px; }
  .tutorial-block { margin-bottom: 22px; }
  .tutorial-block h3 { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-btn { max-width: none; width: 100%; }
  .hero-stats { justify-content: space-between; }
  .hero-stat { min-width: 46%; }
  .timbre-grid { gap: 10px; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-label { flex: none; }
  .video-list button { flex: 1 1 44%; text-align: center; }
  .carousel-dots { gap: 6px; }
  .confirm-name { font-size: 16px; }
}

/* 客服悬浮按钮：手机端安全区适配 */
@media (max-width: 768px) {
  .service-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 支持的游戏&App 滚动图 ---------- */
.games-section { padding: 56px 0 72px; }
.games-head { text-align: center; margin-bottom: 30px; }
.marquee-apps { display: flex; flex-direction: column; gap: 14px; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 38s linear infinite; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-img { display: block; height: 90px; width: auto; margin-right: 24px; flex: 0 0 auto; object-fit: contain; }
.marquee-empty { color: var(--text-sub); text-align: center; padding: 20px 0; }
@media (max-width: 640px) {
  .games-section { padding: 40px 0 52px; }
  .marquee-img { height: 56px; margin-right: 14px; }
}

/* ---------- 效果展示弹窗（无边框大图样式） ---------- */
.modal.modal-video {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 920px;
  max-height: none;
  overflow: visible;
}
.modal-video .modal-title {
  color: #fff;
  text-align: center;
  padding-right: 0;
  margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.modal-video .video-box video {
  max-height: 74vh;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.modal-video .video-list { justify-content: center; }
.modal-video .video-list button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.modal-video .video-list button:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.modal-video .video-list button.active { border-color: var(--primary); background: rgba(255, 255, 255, 0.18); color: #fff; }
.modal-video .empty-tip { color: #fff; }
.modal-video-actions { display: flex; justify-content: center; margin-top: 18px; }
.btn-video-close {
  min-width: 132px;
  padding: 10px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-video-close:hover { background: rgba(255, 255, 255, 0.26); border-color: #fff; }
@media (max-width: 640px) {
  .modal-video .video-box video { max-height: 56vh; border-radius: 10px; }
  .modal-video-actions { margin-top: 14px; }
  .btn-video-close { min-width: 108px; padding: 9px 26px; font-size: 14px; }
}

.video-list[hidden] { display: none; }

/* ---------- 效果展示：视频加载美化 ---------- */
.modal-video .video-box { position: relative; min-height: 300px; }
.video-error {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 14px;
  z-index: 2;
}
.video-error[hidden] { display: none; }

.video-error {
  background: rgba(10, 15, 36, 0.78);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}
.video-error-open {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.video-error-open:hover { color: #fff; }
.video-error-retry {
  margin-top: 4px;
  padding: 8px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.video-error-retry:hover { background: rgba(255, 255, 255, 0.24); border-color: #fff; }
@media (max-width: 640px) {
  .modal-video .video-box { min-height: 200px; }
  .video-error { border-radius: 10px; font-size: 13px; }
}

/* ---------- 客服悬浮按钮：手机版加文字 ---------- */
.service-fab-text { display: none; }
@media (max-width: 768px) {
  .service-fab {
    width: auto;
    height: 46px;
    padding: 0 18px 0 12px;
    border-radius: 999px;
    gap: 7px;
  }
  .service-fab svg { width: 22px; height: 22px; }
  .service-fab-text {
    display: inline;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}
