/* 灵绘 AI 主页 —— 金灰色高端品牌风格 */
@import url("fonts/fonts.css");
:root {
  --bg: #0d0c0b;
  --panel: rgba(255, 248, 235, .035);
  --line: rgba(230, 210, 170, .12);
  --text: #f4efe6;
  --muted: #a8a196;
  --dim: #736d64;
  --brand: #c9a465;
  --brand-2: #e6cc98;
  --cyan: #f0dcae;
  --grad: linear-gradient(100deg, #fff3d9 0%, #e2c48a 45%, #9c8f7c 100%);
  --radius: 22px;
  /* 字体：标题用思源宋体（衬线，庄重大气），正文用系统无衬线（清晰易读） */
  --font-display: "Noto Serif SC Variable", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-latin: "Didot", "Bodoni 72", "Noto Serif SC Variable", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); overflow-x: hidden;
  font-family: var(--font-body); font-weight: 400;
  -webkit-font-smoothing: antialiased; line-height: 1.75; letter-spacing: .02em;
}
h1, h2, h3, h4, .brand, .num, .hero-meta b { font-family: var(--font-display); }
h1, h2 { font-feature-settings: "palt"; }
a { color: inherit; text-decoration: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 背景：极光 + 网格 */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 720px; height: 720px; left: -180px; top: -240px; background: #6b5636; }
.aurora i:nth-child(2) { width: 620px; height: 620px; right: -200px; top: 120px; background: #4a4742; opacity: .45; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 520px; height: 520px; left: 35%; top: 60%; background: #7a6240; opacity: .22; animation-delay: -12s; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.12); } }
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 0%, transparent 75%);
}

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px;
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(13, 12, 11, .62); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: .12em; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: url(assets/logo-256.png) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(226,196,138,.35), 0 6px 20px rgba(201,164,101,.3); }
.brand-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 34px; margin-left: auto; font-size: 14px; letter-spacing: .16em; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-primary { color: #1c1610; background: linear-gradient(135deg, #f0d9a8, #b98d4f); box-shadow: 0 10px 30px rgba(201, 164, 101, .4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 164, 101, .55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; min-height: calc(100vh - 70px); padding: 60px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-latin); font-size: 12px; letter-spacing: .42em; color: var(--brand-2); font-weight: 500; text-transform: uppercase; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { font-size: clamp(44px, 6vw, 82px); line-height: 1.16; font-weight: 800; letter-spacing: .06em; margin: 26px 0 30px; }
.lead { font-size: 17px; font-weight: 300; color: var(--muted); max-width: 470px; line-height: 1.95; letter-spacing: .06em; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-meta { display: flex; gap: 44px; list-style: none; margin-top: 54px; color: var(--dim); font-size: 13px; letter-spacing: .16em; }
.hero-meta li { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-meta li:first-child { padding-left: 0; border-left: 0; }
.hero-meta b { display: block; font-size: 28px; color: var(--text); font-weight: 700; letter-spacing: .08em; line-height: 1.3; }

/* 首屏画布插画 */
.hero-canvas { position: relative; }
.canvas-frame { border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(28,26,23,.92), rgba(15,14,13,.92)); box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(201,164,101,.08), 0 0 120px rgba(201,164,101,.18); overflow: hidden; transform: perspective(1600px) rotateY(-8deg) rotateX(4deg); transition: transform .6s; }
.hero-canvas:hover .canvas-frame { transform: perspective(1600px) rotateY(-3deg) rotateX(2deg); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3d3a35; }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 10px; }
.frame-body { position: relative; overflow: hidden; aspect-ratio: 640 / 420; background: #100f0e; }
/* 画布背景图：轻微模糊 + 降低不透明度，让节点更突出 */
.frame-body::after { content: ""; position: absolute; inset: -16px; background: url(assets/canvas-bg.jpg) center / cover no-repeat; filter: blur(5px); opacity: .45; pointer-events: none; z-index: 0; }
.frame-body::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; z-index: 1; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.wires path { fill: none; stroke: #c9a465; stroke-width: 2; stroke-dasharray: 6 6; opacity: .85; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.node { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 150px; border-radius: 14px; background: rgba(32,30,27,.95); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: 12px; }
.node em { font-style: normal; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: var(--brand-2); background: rgba(201,164,101,.16); flex: none; }
.node b { display: block; font-size: 13px; font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; }
.node small { color: var(--dim); }
.node .port { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #100f0e; border: 2px solid var(--brand); }
.node .port.out { right: -6px; } .node .port.in { left: -6px; }
.node.hot { border-color: rgba(201,164,101,.7); box-shadow: 0 0 0 4px rgba(201,164,101,.12), 0 14px 40px rgba(201,164,101,.3); }
.node .bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.node .bar i { display: block; height: 100%; width: 72%; background: var(--grad); animation: load 3s ease-in-out infinite; }
@keyframes load { 0% { width: 12%; } 70% { width: 92%; } 100% { width: 92%; } }
.n1 { left: 3%; top: 16%; } .n2 { left: 3%; top: 63%; }
.n3 { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.n4 { right: 3%; top: 19%; } .n5 { right: 3%; top: 63%; }
.float-card { position: absolute; padding: 12px 16px; border-radius: 14px; background: rgba(28,26,23,.9); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,.5); font-size: 12px; animation: bob 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--dim); }
.fc1 { left: -28px; bottom: -22px; } .fc2 { right: -18px; top: -26px; animation-delay: -3s; }
.fc1 b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 8px; box-shadow: 0 0 10px var(--cyan); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* 通用区块 */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2, .final h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.32; font-weight: 700; letter-spacing: .06em; margin-top: 20px; }
.sub { color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.9; letter-spacing: .06em; margin-top: 20px; }

/* 能力卡片 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s; }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(rgba(201,164,101,.25), transparent 70%); opacity: 0; transition: opacity .4s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(201,164,101,.45); }
.feature:hover::after { opacity: 1; }
.ficon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,164,101,.14); border: 1px solid rgba(201,164,101,.3); }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 21px; font-weight: 700; letter-spacing: .08em; margin: 24px 0 10px; }
.feature p { color: var(--muted); font-size: 14.5px; font-weight: 300; line-height: 1.9; }

/* 工作流模板 */
.flows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.flow { padding: 24px 26px; border-radius: 18px; background: linear-gradient(135deg, rgba(201,164,101,.08), rgba(255,255,255,.02)); border: 1px solid var(--line); }
.flow h4 { font-size: 18px; font-weight: 700; letter-spacing: .08em; margin-bottom: 14px; }
.flow p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow span { padding: 6px 12px; border-radius: 10px; font-size: 13px; color: #efe2c6; background: rgba(201,164,101,.12); border: 1px solid rgba(201,164,101,.25); }
.flow i { width: 22px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--cyan)); position: relative; }
.flow i::after { content: ""; position: absolute; right: -2px; top: -3px; border: 4px solid transparent; border-left-color: var(--cyan); }

/* 步骤 */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 40px 32px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps .num { font-family: var(--font-latin); font-size: 60px; font-weight: 400; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px rgba(226,196,138,.65); }
.steps h3 { font-size: 22px; font-weight: 700; letter-spacing: .08em; margin: 22px 0 10px; }
.steps p { color: var(--muted); font-size: 14.5px; font-weight: 300; line-height: 1.9; }

/* 场景 */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene { padding: 36px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(201,164,101,.16), transparent 60%), var(--panel); }
.scene h3 { font-size: 24px; font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; }
.scene p { color: var(--muted); font-weight: 300; line-height: 1.9; }

/* 结尾 */
.final { text-align: center; margin: 40px 0 120px; padding: 90px 24px; border-radius: 32px; border: 1px solid rgba(201,164,101,.3); background: radial-gradient(60% 80% at 50% 0%, rgba(201,164,101,.28), transparent 70%), rgba(255,255,255,.02); }
.final .btn { margin-top: 40px; }

/* 页脚 */
.footer { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 32px 24px 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; letter-spacing: .08em; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 24px; }

/* ========== 专业版引导 ========== */
.pro-tag { display: inline-grid; place-items: center; padding: 2px 7px; border-radius: 5px; font-family: var(--font-latin); font-size: 10px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; color: #1c1610; background: linear-gradient(135deg, #f3e0b6, #c39a5c); }

/* 顶部公告条 */
.announce { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 20px; font-size: 13px; letter-spacing: .06em; color: #e9dcc2; background: linear-gradient(90deg, rgba(201,164,101,.04), rgba(201,164,101,.16), rgba(201,164,101,.04)); border-bottom: 1px solid rgba(201,164,101,.22); }
.announce b { color: var(--brand-2); font-weight: 600; }
.announce-go { color: var(--brand-2); white-space: nowrap; }
.announce:hover .announce-go { color: #fff3d9; }

/* 导航 */
.nav-pro { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2) !important; }
.nav-actions { display: flex; gap: 10px; }
.nav-links + .nav-actions { margin-left: 8px; }

/* 首屏的专业版提示 */
.hero-pro { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.hero-pro:hover { color: var(--brand-2); border-bottom-color: rgba(226,196,138,.4); }

/* 专业版区块 */
.pro { position: relative; }
.pro::before { content: ""; position: absolute; left: 50%; top: 40px; width: min(1100px, 100vw); height: 520px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(201,164,101,.16), transparent 70%); pointer-events: none; z-index: -1; }
.pro .eyebrow .pro-tag { margin-right: 4px; }

.pro-show { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.pro-window { border-radius: 20px; overflow: hidden; border: 1px solid rgba(226,196,138,.22); background: #141311; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 80px rgba(201,164,101,.14); }
.pro-window img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 100%; }
.pro-hosts { display: grid; gap: 14px; }
.host { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.host b { grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: "Bahnschrift", "Segoe UI", sans-serif; font-size: 24px; font-weight: 700; border: 2px solid currentColor; }
.host span { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.host small { color: var(--muted); font-size: 13px; font-weight: 300; }
.host.ps b { color: #31a8ff; background: #001e36; }
.host.ai b { color: #ff9a00; background: #330000; }
.host.cdr b { color: #5fd068; background: #0f2412; font-size: 20px; }
.pro-loop { text-align: center; margin-top: 6px; font-size: 14px; letter-spacing: .14em; color: var(--brand-2); }
.pro-loop i { font-style: normal; color: var(--dim); margin: 0 6px; }

.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pro-card { border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.pro-card:hover { transform: translateY(-4px); border-color: rgba(201,164,101,.45); }
.pro-shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #141311; }
.pro-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.25); transform-origin: 30% 10%; transition: transform .6s; }
.pro-card:hover .pro-shot img { transform: scale(1.32); }
.pro-card h3 { font-size: 18px; font-weight: 700; letter-spacing: .06em; margin: 20px 20px 8px; }
.pro-card p { margin: 0 20px 22px; color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.85; }

/* 版本对比表 */
.compare { margin-top: 72px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,248,235,.02); overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 170px 200px; align-items: center; }
.compare-head { padding: 26px 0 18px 30px; border-bottom: 1px solid var(--line); }
.compare-head div { text-align: center; }
.compare-head b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .06em; }
.compare-head small { color: var(--dim); font-size: 12px; letter-spacing: .14em; }
.compare-head .is-pro b { color: var(--brand-2); }
.compare-row { padding: 16px 0 16px 30px; border-bottom: 1px solid rgba(230,210,170,.06); font-size: 15px; }
.compare-row:last-child { border-bottom: 0; }
.compare-row span { color: #ddd5c7; font-weight: 300; }
.compare-row i { font-style: normal; text-align: center; font-size: 18px; }
.compare-row i.yes { color: var(--brand-2); }
.compare-row i.no { color: #4c4842; }
.compare-head .is-pro, .compare-row i:last-child { position: relative; }
.compare-row i:last-child { background: rgba(201,164,101,.06); margin: -16px 0; padding: 16px 0; }

/* 专业版好处 */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.perk { position: relative; padding: 30px 26px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(201,164,101,.08), rgba(255,248,235,.015)); }
.perk:first-child { border-color: rgba(226,196,138,.45); background: radial-gradient(120% 120% at 0% 0%, rgba(201,164,101,.26), transparent 65%), rgba(255,248,235,.02); }
.perk-num { font-family: var(--font-latin); font-size: 13px; letter-spacing: .3em; color: var(--brand-2); }
.perk h3 { font-size: 21px; font-weight: 700; letter-spacing: .08em; margin: 14px 0 10px; }
.perk:first-child h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perk p { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.85; }

/* 对比表里的价格行 */
.compare-row.is-key span { color: var(--text); font-weight: 500; }
.compare-row i.std { font-size: 13px; color: var(--dim); }
.compare-row.is-key i.yes { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; }

/* 升级卡 */
.upgrade { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 32px; padding: 40px 44px; border-radius: 26px; border: 1px solid rgba(201,164,101,.35); background: radial-gradient(80% 140% at 0% 0%, rgba(201,164,101,.2), transparent 60%), rgba(255,248,235,.025); }
.upgrade-main { display: flex; align-items: center; gap: 24px; }
.upgrade-logo { flex: none; display: block; width: 92px; height: 92px; border-radius: 50%; background: url(assets/logo-256.png) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(226,196,138,.4), 0 14px 40px rgba(0,0,0,.5), 0 0 50px rgba(201,164,101,.25); }
.upgrade h3 { font-size: 28px; font-weight: 700; letter-spacing: .08em; margin: 8px 0 6px; }
.upgrade-meta { color: var(--muted); font-size: 14px; letter-spacing: .06em; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }

/* 升级弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,4,.72); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-card { position: relative; width: min(420px, 100%); padding: 40px 34px 30px; border-radius: 26px; text-align: center; border: 1px solid rgba(226,196,138,.35); background: radial-gradient(90% 70% at 50% 0%, rgba(201,164,101,.22), transparent 70%), #151412; box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
.modal-card .upgrade-logo { width: 76px; height: 76px; margin: 0 auto; }
.modal-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .1em; margin: 20px 0 10px; }
.modal-sub { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.8; }
.wechat { margin: 24px 0 20px; padding: 18px; border-radius: 16px; border: 1px dashed rgba(226,196,138,.45); background: rgba(201,164,101,.07); }
.wechat small { display: block; color: var(--dim); font-size: 12px; letter-spacing: .2em; }
.wechat b { display: block; margin-top: 6px; font-family: "Bahnschrift", "Segoe UI", sans-serif; font-size: 32px; font-weight: 600; letter-spacing: .12em; color: var(--brand-2); user-select: all; }
.modal-copy { width: 100%; justify-content: center; }
.modal-tip { margin-top: 14px; color: var(--dim); font-size: 13px; }
.modal-tip.ok { color: var(--brand-2); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-close:hover { color: var(--text); border-color: rgba(226,196,138,.4); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.final .final-cta .btn { margin-top: 0; }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* 响应式 */
@media (max-width: 1180px) {
  .nav-links { gap: 22px; }
  .pro-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .canvas-frame { transform: none; }
  .features, .steps, .scenes { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .pro-show { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .announce { gap: 8px; padding: 8px 12px; font-size: 12px; }
  .announce > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding: 0 16px; }
  .lead { font-size: 16px; }
  .hero-meta { gap: 22px; }
  .features, .steps, .scenes, .flows, .pro-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .node { min-width: 0; padding: 8px 10px; gap: 6px; font-size: 10px; }
  .node em { width: 22px; height: 22px; font-size: 10px; }
  .node b { font-size: 11px; }
  .node small { display: none; }
  .float-card { display: none; }
  .final { padding: 60px 18px; }
  .compare-head, .compare-row { grid-template-columns: 1fr 64px 76px; }
  .compare-head, .compare-row { padding-left: 16px; padding-right: 0; }
  .compare-row { font-size: 13px; }
  .compare-head b { font-size: 14px; }
  .compare-head small { display: none; }
  .perks { grid-template-columns: 1fr; }
  .upgrade { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .upgrade .btn { width: 100%; justify-content: center; }
  .upgrade-main { flex-direction: column; align-items: flex-start; }
  .upgrade h3 { font-size: 22px; }
  .footer-links { width: 100%; }
}

/* ===== 越南站：语言切换、Zalo 二维码 ===== */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { color: #1c1610; background: linear-gradient(135deg, #f0d9a8, #b98d4f); font-weight: 600; }
.modal-card { max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-card h3 { margin-top: 4px; }
.zalo { margin: 20px auto 0; width: 190px; }
.zalo img { display: block; width: 100%; height: auto; padding: 10px; border-radius: 14px; background: #fff; }
.zalo small { display: block; margin-top: 8px; color: var(--dim); font-size: 12px; }
.modal-card .wechat { margin-top: 16px; padding: 12px 14px; }
.modal-card .wechat b { font-size: 26px; }
@media (max-width: 680px) { .lang-switch button { padding: 4px 8px; } .zalo { width: 170px; } }

/* ===== 越南语：换成带越南语声调的字体（思源宋体子集不含越南语），字距收紧，大标题缩小 ===== */
html[lang="vi"] {
  --font-display: "Noto Serif", "Times New Roman", Times, serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  --font-latin: "Noto Serif", "Times New Roman", Times, serif;
}
html[lang="vi"] body { letter-spacing: 0; }
html[lang="vi"] .hero h1 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: 0; line-height: 1.2; }
html[lang="vi"] .section-head h2, html[lang="vi"] .final h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: 0; }
html[lang="vi"] .eyebrow { letter-spacing: .16em; }
html[lang="vi"] .nav-links { gap: 26px; letter-spacing: .04em; }
html[lang="vi"] .btn { letter-spacing: .03em; }
html[lang="vi"] .lead, html[lang="vi"] .sub, html[lang="vi"] .hero-meta, html[lang="vi"] .announce, html[lang="vi"] .pro-loop,
html[lang="vi"] .footer, html[lang="vi"] .upgrade-meta, html[lang="vi"] .compare-head small, html[lang="vi"] .wechat small { letter-spacing: .02em; }
html[lang="vi"] h3, html[lang="vi"] h4, html[lang="vi"] .node b, html[lang="vi"] .host span, html[lang="vi"] .compare-head b,
html[lang="vi"] .hero-meta b, html[lang="vi"] .brand, html[lang="vi"] .compare-row.is-key i.yes { letter-spacing: .01em; }
.nav-topup { display: inline-flex; align-items: center; gap: 6px; }
.nav-topup::before { content: "⚡"; font-size: 12px; }
@media (max-width: 680px) { .nav-topup { padding: 8px 12px; } }

/* ===== 首页充值窗口（home-topup.js） ===== */
.topup-modal .topup-card { width: min(480px, 100%); padding: 30px 28px 24px; text-align: left; }
.tp-head { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.tp-head .upgrade-logo { flex: none; width: 46px; height: 46px; margin: 0; }
.tp-head h3 { margin: 0 !important; font-size: 20px !important; letter-spacing: .02em !important; text-align: left; }
.tp-balance { margin: 2px 0 0; color: var(--dim); font-size: 12px; }
.tp-balance b { color: var(--brand-2); }
.tp-badge { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(226,196,138,.35); color: var(--brand-2); font-size: 11px; font-style: normal; white-space: nowrap; }
.tp-steps { list-style: none; display: flex; gap: 6px; margin: 18px 0 4px; padding: 0; }
.tp-steps li { flex: 1; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; min-width: 0; }
.tp-steps li span { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 1px solid rgba(255,255,255,.16); }
.tp-steps li em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-steps li.current { color: var(--brand-2); }
.tp-steps li.current span { color: #1c1610; border-color: transparent; background: linear-gradient(135deg, #f0d9a8, #c39a5c); }
.tp-steps li.done span { color: var(--brand-2); border-color: rgba(226,196,138,.5); }
.tp-sub { margin: 16px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tp-form { margin-top: 8px; }
.tp-field { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }
.tp-field input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); outline: 0; color: var(--text); background: rgba(0,0,0,.3); font: inherit; font-size: 15px; box-sizing: border-box; }
.tp-field input:focus { border-color: rgba(226,196,138,.5); }
.tp-field input.invalid { border-color: rgba(239,107,107,.65); }
.tp-error { display: block; margin: 6px 0 0; color: #ef8b8b; font-size: 12px; }
.tp-submit { width: 100%; justify-content: center; margin-top: 18px; }
.tp-submit:disabled { opacity: .6; cursor: default; }
.tp-hint { margin: 12px 0 0; color: var(--dim); font-size: 12px; line-height: 1.6; text-align: center; }
.tp-hint a, .tp-link { color: var(--brand-2); white-space: nowrap; }
.tp-hint b { color: var(--brand-2); }
.tp-account { margin-top: 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(226,196,138,.22); background: rgba(201,164,101,.07); display: flex; align-items: baseline; gap: 10px; }
.tp-account small { color: var(--dim); font-size: 12px; }
.tp-account strong { color: var(--text); font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.tp-link { margin-left: auto; border: 0; background: none; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.tp-label { margin-top: 16px; color: var(--muted); font-size: 13px; }
.tp-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.tp-presets button { height: 68px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; }
.tp-presets button strong { font-size: 19px; font-weight: 700; }
.tp-presets button span { color: var(--dim); font-size: 12px; }
.tp-presets button:hover, .tp-presets button.on { border-color: rgba(226,196,138,.6); background: rgba(201,164,101,.1); }
.tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-qr { position: relative; width: 220px; height: 220px; margin: 16px auto 0; padding: 8px; border-radius: 14px; background: #fff; }
.tp-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tp-qr-mask { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.94); color: #2a2620; font-size: 13px; font-weight: 600; text-align: center; }
.tp-qr-mask[hidden] { display: none; }
.tp-qr-mask p { margin: 0; }
.tp-countdown { min-height: 18px; margin: 10px 0 0; color: var(--dim); font-size: 12px; text-align: center; }
.tp-countdown b { color: var(--brand-2); font-variant-numeric: tabular-nums; }
.tp-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.tp-loading { min-height: 120px; }
.tp-warn { margin: 4px 0 0; color: #d9a35f; font-size: 12px; text-align: center; }
.tp-spin { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(226,196,138,.25); border-top-color: var(--brand-2); animation: tp-spin .8s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-info { margin: 14px 0 0; padding: 2px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tp-info > div { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; min-height: 38px; border-bottom: 1px solid rgba(255,255,255,.05); }
.tp-info > div:last-child { border-bottom: 0; }
.tp-info > div.key { margin: 0 -12px; padding: 0 12px; background: rgba(201,164,101,.08); }
.tp-info dt { color: var(--dim); font-size: 12px; }
.tp-info dd { margin: 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.tp-info code { color: var(--brand-2); font-size: 15px; font-weight: 700; }
.tp-amount { color: var(--brand-2); font-size: 17px; }
.tp-copy { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(226,196,138,.35); color: var(--brand-2); background: transparent; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.tp-copy.done { color: #8fd6a0; border-color: rgba(143,214,160,.5); }
.tp-done { margin-top: 18px; text-align: center; }
.tp-done-icon { width: 62px; height: 62px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #1c1610; font-size: 28px; font-weight: 700; background: linear-gradient(135deg, #f0d9a8, #c39a5c); }
.tp-done h4 { margin: 14px 0 4px; font-size: 19px; }
.tp-done > p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.tp-ok { color: #8fd6a0 !important; }
@media (max-width: 520px) {
  .topup-modal .topup-card { padding: 26px 18px 20px; }
  .tp-row { grid-template-columns: 1fr; }
  .tp-badge { display: none; }
  .tp-steps li em { font-size: 11px; }
}
.tp-info code { white-space: nowrap; }
.tp-steps li em { white-space: normal; line-height: 1.25; }
@media (max-width: 520px) { .tp-info > div { grid-template-columns: 82px 1fr auto; } .tp-info code { font-size: 13px; } }
