/* 灵曜Ai智剪 官网 · 深色科技风 */

:root {
  --bg: #08090f;
  --bg-soft: #0e1019;
  --card: #12141f;
  --card-2: #171a28;
  --border: #232739;
  --border-soft: #1b1e2c;
  --text: #eef0f8;
  --text-dim: #9ba1b8;
  --text-mute: #626883;
  --brand: #6c8cff;
  --brand-2: #a06bff;
  --accent: #35e0c8;
  --radius: 16px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景层：网格 + 网状渐变光晕 */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 78%);
}
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 18% 6%, rgba(108,140,255,.20), transparent 60%),
    radial-gradient(560px 360px at 82% 10%, rgba(160,107,255,.18), transparent 62%),
    radial-gradient(700px 420px at 50% 42%, rgba(53,224,200,.06), transparent 60%);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }

/* 滚动淡入（渐进增强：无 JS 时不隐藏） */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,15,.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 18px rgba(108,140,255,.35); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.nav-links > a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff !important; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px rgba(108,140,255,.3);
}
.nav-cta:hover { filter: brightness(1.08); }
.lang-toggle {
  padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text-dim);
  background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--brand); background: var(--bg-soft); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s, filter .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px rgba(108,140,255,.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(108,140,255,.5); filter: brightness(1.05); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.03); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* Hero */
.hero { position: relative; padding: 92px 0 70px; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px; padding: 7px 15px; font-size: 13px; letter-spacing: .6px;
  color: #cfe9e3; border: 1px solid rgba(53,224,200,.28); border-radius: 999px;
  background: rgba(53,224,200,.06);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-title {
  margin: 0 0 22px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; font-weight: 850;
  letter-spacing: -1px;
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 52%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 620px; margin: 0 auto 32px; font-size: 18px; color: var(--text-dim); }
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--text-mute); }
.hero-glow {
  position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 620px;
  background: radial-gradient(circle at center, rgba(108,140,255,.20), rgba(160,107,255,.09) 42%, transparent 68%);
  filter: blur(24px); z-index: 0; pointer-events: none;
}

/* 产品界面 mockup */
.mockup {
  position: relative; z-index: 2; margin: 60px auto 0; max-width: 940px;
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #14172400, #0c0e17), var(--card);
  box-shadow: 0 40px 120px rgba(8,10,25,.7), 0 0 0 1px rgba(108,140,255,.08),
              inset 0 1px 0 rgba(255,255,255,.04);
}
.mockup::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
  background: linear-gradient(120deg, rgba(108,140,255,.10), transparent 30%, transparent 70%, rgba(160,107,255,.10));
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border-soft);
}
.tl { width: 12px; height: 12px; border-radius: 50%; background: #3a3f55; }
.tl:nth-child(1) { background: #ff5f57; } .tl:nth-child(2) { background: #febc2e; } .tl:nth-child(3) { background: #28c840; }
.mockup-title { margin-left: 14px; font-size: 13px; color: var(--text-dim); font-weight: 600; }
.mockup-badge {
  margin-left: auto; font-size: 11px; color: var(--accent);
  border: 1px solid rgba(53,224,200,.3); border-radius: 999px; padding: 3px 10px;
}
.mockup-body { display: flex; min-height: 340px; }
.mockup-side {
  width: 92px; flex-shrink: 0; padding: 14px 8px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,255,255,.015); border-right: 1px solid var(--border-soft);
}
.ms-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px;
  border-radius: 10px; color: var(--text-mute); font-size: 11px;
}
.ms-item svg { width: 20px; height: 20px; }
.ms-item.active { color: var(--text); background: linear-gradient(135deg, rgba(108,140,255,.2), rgba(160,107,255,.14)); }
.ms-item.active svg { stroke: var(--brand); }
.mockup-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mockup-preview {
  position: relative; flex: 1; min-height: 180px; border-radius: 12px; border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(108,140,255,.28), transparent 55%),
    radial-gradient(120% 120% at 80% 90%, rgba(160,107,255,.28), transparent 55%),
    #0b0d16;
  display: grid; place-items: center; overflow: hidden;
}
.mp-play {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.mp-play svg { width: 26px; height: 26px; margin-left: 3px; }
.mp-tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; color: #dfe4ff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 3px 9px;
}
.mp-sub {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .5px;
  text-shadow: 0 2px 10px rgba(0,0,0,.6); padding: 4px 12px;
  background: rgba(0,0,0,.28); border-radius: 6px;
}
.mockup-timeline { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tl-row { display: flex; align-items: center; gap: 12px; }
.tl-lab { width: 34px; flex-shrink: 0; font-size: 11px; color: var(--text-mute); text-align: right; }
.tl-track {
  flex: 1; height: 26px; border-radius: 7px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border-soft); display: flex; align-items: center; gap: 5px; padding: 0 5px; overflow: hidden;
}
.clip { height: 16px; border-radius: 4px; }
.clip.c1 { flex: 3; background: linear-gradient(90deg, #6c8cff, #8a7bff); }
.clip.c2 { flex: 2; background: linear-gradient(90deg, #a06bff, #c06bff); }
.clip.c3 { flex: 4; background: linear-gradient(90deg, #6c8cff, #35e0c8); }
.clip.c4 { flex: 2; background: linear-gradient(90deg, #7b8cff, #a06bff); }
.wave { width: 100%; height: 18px; color: var(--accent); opacity: .8; }
.wave path { stroke: currentColor; stroke-width: 1.6; fill: none; }
.sub-cap { height: 14px; border-radius: 4px; background: rgba(53,224,200,.22); border: 1px solid rgba(53,224,200,.4); }
.sub-cap.s1 { flex: 2; } .sub-cap.s2 { flex: 3; margin-left: 30px; } .sub-cap.s3 { flex: 2; margin-left: 24px; }
.playhead { position: absolute; top: 0; bottom: 0; left: 46%; width: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* 数据强调条 */
.stats { padding: 8px 0 20px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  padding: 22px 20px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border-soft);
}
.stat-t {
  display: block; font-size: 20px; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-d { display: block; margin-top: 4px; font-size: 13px; color: var(--text-dim); }

/* 区块通用 */
.section-title { text-align: center; margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 38px); font-weight: 850; letter-spacing: -.5px; }
.section-sub { text-align: center; margin: 0 0 46px; color: var(--text-dim); font-size: 17px; }

/* 功能 */
.features { padding: 80px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .28s var(--ease), border-color .28s, background .28s, box-shadow .28s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, rgba(108,140,255,.6), rgba(160,107,255,.4), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .28s;
}
.card:hover { transform: translateY(-5px); background: var(--card-2); box-shadow: 0 20px 44px rgba(8,10,25,.55); }
.card:hover::before { opacity: 1; }
.card-ic {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(108,140,255,.2), rgba(160,107,255,.14));
  border: 1px solid rgba(108,140,255,.28);
}
.card-ic svg { width: 24px; height: 24px; stroke: var(--brand); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* 通用 SVG 线条 */
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 下载 */
.download { padding: 40px 0 100px; }
.download-panel {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  padding: 56px 40px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(108,140,255,.16), transparent 60%),
    var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(8,10,25,.5);
}
.download-panel .section-sub { margin-bottom: 30px; }
.dl-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.dl-btn.is-active { outline: 2px solid rgba(53,224,200,.55); outline-offset: 3px; }
.dl-btn[aria-disabled="true"] {
  background: var(--card); color: var(--text-mute); box-shadow: none;
  border: 1px solid var(--border); pointer-events: none; cursor: not-allowed; transform: none; filter: none;
}
.dl-btn[aria-disabled="true"] svg { stroke: var(--text-mute); }
.dl-hint { margin: 20px 0 0; font-size: 14px; color: var(--text-dim); min-height: 20px; }
.release-notes {
  max-width: 560px; margin: 28px auto 0; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px;
}
.release-notes h3 { margin: 0 0 10px; font-size: 14px; color: var(--text-dim); font-weight: 700; }
.release-notes pre { margin: 0; font-family: inherit; font-size: 14px; color: var(--text); white-space: pre-wrap; word-break: break-word; }

/* 页脚 */
.footer { border-top: 1px solid var(--border-soft); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--text-mute); font-size: 13px; }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer .brand-name { color: var(--text-dim); font-size: 15px; }

/* 窄屏兜底（非移动端优化，仅保证不崩） */
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; } .nav-cta { display: none; }
  .mockup-side { width: 64px; } .ms-item i { display: none; }
}
