/* 基础主题与变量 */
:root {
  --bg: #0b0f1a;
  --text: #dbe3ff;
  --muted: #9aa8c7;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --primary: #6ea8ff;
  --secondary: #9f7aea;
  --accent: #22d3ee;
  --gradient-1: #6ea8ff;
  --gradient-2: #9f7aea;
  --gradient-3: #22d3ee;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Microsoft YaHei, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #142039 0%, transparent 40%),
              radial-gradient(900px 700px at 90% -20%, #1a1533 0%, transparent 35%),
              var(--bg);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(5,10,18,.8), rgba(5,10,18,.6));
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 800;
  letter-spacing: .5px;
  text-decoration: none;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
}

/* 渐变文字与动画（仿 www.qx96.cn 风格，但原创实现）*/
.gradient-text {
  background-image: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}
/* Fallback：当浏览器不支持 text 背景裁剪时，使用纯色提高可读性 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    background: none;
    -webkit-text-fill-color: initial;
    color: #eaf0ff;
    text-shadow: 0 2px 10px rgba(0,0,0,.45);
    animation: none;
  }
}

/* JS 检测不可见时的强制回退 */
.text-fallback {
  background: none !important;
  -webkit-text-fill-color: #eaf0ff !important;
  color: #eaf0ff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.45) !important;
  animation: none !important;
}

.gradient-sheen {
  position: relative;
  display: inline-block;
}
.gradient-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.25) 40%, transparent 60%);
  filter: blur(6px);
  animation: sheen 3.5s linear infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes sheen {
  0% { transform: translateX(-20%); opacity: .6; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* 英雄区域 */
.hero {
  position: relative;
  padding: 86px 0 46px;
}
.bg-orbs {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(200px 200px at 20% 30%, rgba(110,168,255,.25), transparent 60%),
              radial-gradient(240px 240px at 80% 20%, rgba(159,122,234,.2), transparent 65%),
              radial-gradient(180px 180px at 60% 70%, rgba(34,211,238,.18), transparent 60%);
  filter: blur(40px);
  animation: floatOrbs 12s ease-in-out infinite;
}
@keyframes floatOrbs {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-6px) translateX(6px); }
}
.hero-content {
  text-align: center;
}
/* 英雄区左右双列布局 */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px;
}
.hero-copy { text-align: left; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual .visual-box {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 8px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(120,120,180,0.15) inset, 0 10px 30px rgba(0,0,0,0.35);
}
.hero-visual .visual-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
.headline {
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.subhead {
  font-size: clamp(16px, 3.2vw, 22px);
  color: var(--muted);
  margin: 0 0 24px;
}
.keywords {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 14px;
  margin: 6px 0 20px;
  position: relative;
}
.kw {
  font-size: clamp(22px, 4.6vw, 40px);
  font-weight: 900;
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  position: relative;
  /* 注意使用 background-color，避免覆盖 .gradient-text 的 background-image */
  background-color: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 28px rgba(110,168,255,.14), inset 0 0 10px rgba(255,255,255,.05);
  text-shadow: 0 4px 20px rgba(110,168,255,.25);
  transition: transform .18s ease, filter .18s ease;
}
.kw:hover { transform: translateY(-2px); filter: brightness(1.08); }
.kw-1 { filter: drop-shadow(0 0 10px rgba(110,168,255,.25)); }
.kw-2 { filter: drop-shadow(0 0 10px rgba(159,122,234,.22)); }
.kw-3 { filter: drop-shadow(0 0 10px rgba(34,211,238,.22)); }

/* 在深色屏幕/对比度较低设备上进一步强化可读性 */
@media (prefers-contrast: more) {
  .kw { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
}
.cta { display: flex; justify-content: center; width: 100%; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; transition: .2s ease;
  background: rgba(255,255,255,.04);
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.25); }
.btn-primary { background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2)); border: none; }
.btn-secondary { background: rgba(255,255,255,.06); }
.btn-outline { background: transparent; }
.btn-large { height: 46px; padding: 0 20px; font-weight: 600; }

.hero-highlights {
  list-style: none; padding: 0; margin: 22px auto 0; display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 10px; max-width: 560px;
  color: var(--muted);
}
.hero-highlights li { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }

/* 英雄区：两行按钮布局 */
.hero-actions { margin: 16px 0 0; display: grid; gap: 10px; justify-items: center; }
.actions-row { display: flex; gap: 12px; justify-content: center; }
.hero-actions .btn { min-width: 140px; }

/* 特色卡片 */
.section { padding: 54px 0; }
.section-title { font-weight: 800; font-size: 24px; letter-spacing: .6px; margin: 0 0 22px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  min-height: 160px;
}
.card .icon { font-size: 24px; }
.card-title { margin: 8px 0; font-size: 20px; font-weight: 800; }
.card-desc { margin: 0; color: var(--muted); line-height: 1.6; }

/* 演示区 */
.demo-box { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.video-placeholder {
  height: 260px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, rgba(110,168,255,.18), rgba(159,122,234,.14));
  color: var(--muted);
}
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  z-index: -1; filter: blur(8px); opacity: .5;
}
.demo-points { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.demo-points li { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); margin-bottom: 10px; }

/* 客服联系区块样式 */
.contact-card {
  display: grid;
  place-items: center;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255,255,255,.03);
}
.contact-img {
  width: 100%;
  max-width: min(160px, 70vw);
  height: auto;
  border-radius: 12px;
  cursor: zoom-in;
}

/* 专业客服售后区块样式 */
/* 联系方式说明文字（嵌入到联系区块） */
.contact-info { text-align: center; margin-top: 8px; }
.contact-info p { margin: 4px 0; color: var(--muted); }

/* CTA 区域 */
.cta-section { text-align: center; }
.cta-sub { color: var(--muted); margin: 6px 0 16px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; background: rgba(0,0,0,.25); }
.footer-content { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.footer-content .links a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.brand-small { font-weight: 800; }
.copyright { color: var(--muted); font-size: 12px; text-align: right; }

/* 通用隐藏类 */
.hidden { display: none !important; }

/* 模态框样式 */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,10,18,.6); backdrop-filter: blur(2px); }
.modal-content {
  position: relative; z-index: 101;
  width: min(460px, 90vw); border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.modal-close { position: absolute; top: 10px; right: 12px; height: 32px; width: 32px; border: none; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; }
.modal-desc { color: var(--muted); margin: 4px 0 16px; }
.modal-actions { display: flex; gap: 12px; }
.modal-note { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* 图片预览模态框样式 */
.image-modal-content {
  width: auto;
  max-width: 96vw;
  padding: 0;
}
.image-modal-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(920px, 96vw);
  max-height: 80vh;
  border-radius: 12px;
}

/* 弹窗垂直按钮布局（用于 OBS 多版本） */
.modal-actions-column { flex-direction: column; }
.modal-actions-column .btn { width: 100%; }

/* 状态文案样式 */
.status.hidden { display: none; }
.status[data-type="info"] { color: var(--muted); }
.status[data-type="success"] { color: #a7f3d0; }
.status[data-type="error"] { color: #ffb4b4; }

/* 进入动画 */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.in-view { animation: fadeUp .4s ease forwards; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .demo-box { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .hero-highlights { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-copy { text-align: center; }
  .hero-visual .visual-box { max-width: 520px; }
  .actions-row { flex-direction: column; }
}