/* Lingo 官网样式。品牌色与 apps/lingo/src/renderer/src/index.css 的 @theme 保持一致。 */
:root {
  --brand: #2d32fe;
  --brand-deep: #2026db;
  --brand-bright: #7b7fff;
  --bg: #0b0c12;
  --bg-2: #12141d;
  --line: #23263a;
  --text: #eceefa;
  --muted: #9aa0bd;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
header.top img.logo { height: 26px; width: auto; }
header.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
header.top nav a { color: var(--muted); }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--brand-bright); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* 首屏 */
.hero { padding: 88px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 560px; z-index: -1;
  background: radial-gradient(600px 300px at 50% 40%, rgba(45, 50, 254, .35), transparent 70%);
}
.eyebrow { color: var(--brand-bright); font-weight: 600; letter-spacing: .08em; font-size: 14px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.15; margin: 14px 0 18px; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* 播放器示意 */
.player {
  margin: 56px auto 0; max-width: 860px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 30px 80px rgba(45, 50, 254, .18);
  text-align: left;
}
.player .bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.player .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2f44; }
.screen {
  position: relative; aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    radial-gradient(70% 90% at 30% 20%, #3b4a8f, transparent 60%),
    radial-gradient(60% 80% at 80% 80%, #6a2f7a, transparent 60%),
    #151728;
}
.sub {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 88%; padding: 6px 14px; border-radius: 8px; text-align: center;
  background: rgba(0, 0, 0, .62); font-size: clamp(13px, 2.2vw, 20px); line-height: 1.5;
}
.sub.top { top: 7%; color: #ffd966; }
.sub.bottom { bottom: 8%; }
.sub small { display: block; color: #b9bdd8; font-size: .72em; }
.screen .sign {
  position: absolute; top: 28%; left: 50%; transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.55); padding: 10px 22px; border-radius: 6px;
  font-size: clamp(14px, 3vw, 28px); letter-spacing: .3em; color: rgba(255,255,255,.9);
}
.tag { position: absolute; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--brand); color: #fff; }
.tag.t1 { top: 3%; right: 2%; }
.tag.t2 { bottom: 3%; right: 2%; }
.caption-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* 区块 */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; margin: 0 0 12px; text-align: center; }
.sub-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .proof { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.card .proof b { color: var(--brand-bright); font-weight: 600; }
.num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(45, 50, 254, .22); color: var(--brand-bright); font-weight: 700; margin-bottom: 14px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { counter-increment: s; content: counter(s); display: block; font-size: 30px; font-weight: 800; color: var(--brand-bright); }
.steps h3 { margin: 4px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
ol.steps { padding: 0; margin: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.note { border-left: 3px solid var(--brand); background: var(--bg-2); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--muted); }
.note strong { color: var(--text); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--brand-bright); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }
.faq { max-width: 760px; margin: 0 auto; }

/* 下载页 */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.dl .card { text-align: center; }
.dl .card ul { text-align: left; color: var(--muted); padding-left: 20px; font-size: 15px; margin: 16px 0 22px; }
.must { max-width: 820px; margin: 0 auto 28px; border: 1px solid var(--brand); background: rgba(45, 50, 254, .12); border-radius: var(--radius); padding: 18px 22px; }
.must strong { color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer img { height: 22px; margin-bottom: 8px; }
footer .links { display: flex; gap: 18px; align-items: flex-start; }
footer .links a { color: var(--muted); }

@media (max-width: 820px) {
  .grid3, .steps, .two, .dl { grid-template-columns: 1fr; }
  header.top nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  section { padding: 52px 0; }
}

/* —— 第二版：首页收紧 —— */
.hero h1 { font-size: clamp(40px, 7vw, 72px); }
.grad { background: linear-gradient(90deg, var(--brand-bright), #b8bbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.big { padding: 15px 36px; font-size: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: rgba(45, 50, 254, .25); color: var(--brand-bright); vertical-align: middle; }
[hidden] { display: none !important; }

/* 演示切换 */
.player .bar { align-items: center; }
.seg { margin-left: auto; display: inline-flex; gap: 4px; background: #0b0c12; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg button { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0; padding: 4px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--brand); color: #fff; }
.screen .line { display: none; }
.screen[data-mode="orig"] .l-orig { display: inline; }
.screen[data-mode="sub"] .l-sub, .screen[data-mode="dub"] .l-sub { display: inline; }
.screen[data-mode="dub"] .sub.bottom { display: none; }
.wave { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); display: none; gap: 5px; align-items: flex-end; height: 44px; }
.screen[data-mode="dub"] .wave { display: flex; }
.wave i { width: 6px; background: var(--brand-bright); border-radius: 3px; animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-delay: .25s; }
.wave i:nth-child(3n) { animation-delay: .5s; }
@keyframes wv { 0%, 100% { height: 8px; } 50% { height: 40px; } }
.tag:empty { display: none; }
.tag { top: 3%; right: 2%; }

/* 价格 */
.bigprice { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin: 28px 0 8px; }
.bp { text-align: center; }
.bp .lab { color: var(--muted); }
.num2 { font-size: clamp(48px, 9vw, 84px); font-weight: 800; line-height: 1.1; background: linear-gradient(90deg, var(--brand-bright), #b8bbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num2 small { font-size: .3em; font-weight: 600; margin-left: 4px; -webkit-text-fill-color: var(--muted); }
.plan { text-align: center; }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pp { font-size: 34px; font-weight: 800; margin: 6px 0; }
.pp small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
@media (max-width: 820px) { .grid4 { grid-template-columns: 1fr 1fr; } .bigprice { gap: 28px; } }
