/* 科技风: 固定深色, 青 + 紫双色发光 */
:root {
  --bg: #05070f;
  --bg-2: #0a0f1f;
  --fg: #e8ecf8;
  --muted: #8b95b0;
  --line: rgba(148, 163, 255, .14);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --glass: rgba(16, 22, 44, .55);
  --glow: 0 0 24px rgba(34, 211, 238, .35), 0 0 60px rgba(139, 92, 246, .25);
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
  color-scheme: dark;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.65; overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before { /* 全站细噪点暗纹 */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background: radial-gradient(1200px 600px at 80% 120%, rgba(139, 92, 246, .10), transparent 60%),
              radial-gradient(900px 500px at -10% 40%, rgba(34, 211, 238, .07), transparent 60%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
.caret { display: inline-block; width: .55em; height: 1em; margin-left: 4px; vertical-align: -.12em; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }

/* 导航 */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 7, 15, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: 1.5px; }
.brand img { filter: drop-shadow(0 0 10px rgba(34, 211, 238, .6)); }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.links a { position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s; }
.links a:hover { color: var(--fg); }
.links a:hover::after { transform: scaleX(1); }

/* 按钮: 渐变 + 流光 */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: #fff; background: var(--grad); background-size: 200% 100%; overflow: hidden; isolation: isolate;
  box-shadow: 0 8px 30px -10px rgba(139, 92, 246, .8); transition: transform .2s, box-shadow .2s, background-position .5s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); background-position: 100% 0; }
.btn:hover::after { transform: translateX(100%); transition: transform .7s; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px -6px var(--cyan); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 90px; overflow: hidden; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(34, 211, 238, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .22) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: grid-move 3s linear infinite; }
@keyframes grid-move { to { background-position: 0 60px; } }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: float 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: -8%; top: 5%; background: var(--violet); }
.aurora i:nth-child(2) { width: 440px; height: 440px; right: -6%; top: 20%; background: #0891b2; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 360px; height: 360px; left: 40%; bottom: -10%; background: #be185d; opacity: .6; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, -40px) scale(1.15); } }

.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px; font-size: 13px; color: #b9c3dd;
  background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .3); }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.1; margin: 22px 0 22px; letter-spacing: -1px; font-weight: 700; }
.rot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(139, 92, 246, .45)); }
.hero h1 .caret { height: .85em; width: .08em; vertical-align: -.06em; }
.lead { max-width: 560px; margin: 0; font-size: 18px; color: var(--muted); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.stats b { display: block; font: 700 30px/1.2 var(--display); }
.stats b, .stats em { font-style: normal; background: linear-gradient(180deg, #fff, #9fb3d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 13px; color: var(--muted); }
.stats > div { padding-left: 14px; border-left: 2px solid; border-image: var(--grad) 1; }

/* AI 对话演示窗口 */
.console { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), var(--glow); }
.console::before, .plan.hot::before { /* 旋转流光边框 */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 60%, var(--cyan), var(--violet), transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.live { display: flex; align-items: center; gap: 6px; font: 600 11px var(--mono); color: var(--cyan); letter-spacing: 1px; }
.console-body { height: 330px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 18%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; animation: msg-in .35s ease-out both; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(34, 211, 238, .25)); border: 1px solid rgba(139, 92, 246, .45); }
.msg.ai { align-self: flex-start; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.msg.ai::before { content: "YOMP AI"; display: block; font: 600 10px var(--mono); letter-spacing: 1.5px; color: var(--cyan); margin-bottom: 4px; }
.msg .meta { display: block; margin-top: 6px; font: 11px var(--mono); color: var(--muted); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.thinking { display: inline-flex; gap: 4px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: bounce 1s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; background: #6aa3f7; }
.thinking i:nth-child(3) { animation-delay: .3s; background: var(--violet); }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }
.gen-img { position: relative; width: 210px; aspect-ratio: 16 / 10; margin-top: 8px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 70% 30%, #f472b6 0 6%, transparent 7%),
              linear-gradient(180deg, #1e1b4b, #7c3aed 55%, #ec4899 75%, #0f172a 76%),
              #0f172a; }
.gen-img::before { /* 维港天际线 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 24%; height: 42%;
  background: linear-gradient(90deg, #0b1023 0 6%, transparent 6% 8%, #0b1023 8% 15%, transparent 15% 17%, #0b1023 17% 21%, transparent 21% 23%, #0b1023 23% 34%, transparent 34% 36%, #0b1023 36% 40%, transparent 40% 43%, #0b1023 43% 55%, transparent 55% 57%, #0b1023 57% 66%, transparent 66% 68%, #0b1023 68% 80%, transparent 80% 82%, #0b1023 82% 100%);
  clip-path: polygon(0 40%, 6% 40%, 6% 10%, 15% 10%, 15% 30%, 21% 30%, 21% 0, 34% 0, 34% 25%, 40% 25%, 40% 45%, 55% 45%, 55% 5%, 66% 5%, 66% 35%, 80% 35%, 80% 15%, 100% 15%, 100% 100%, 0 100%); }
.gen-img::after { /* 渲染: 暗幕带着扫描线从上往下收起 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: rgba(5, 7, 15, .96);
  border-top: 2px solid var(--cyan); box-shadow: 0 -6px 18px rgba(34, 211, 238, .8); animation: render 1.6s ease-out forwards; }
@keyframes render { 90% { opacity: 1; } to { height: 0; opacity: 0; } }
.console-input { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; min-height: 52px; }
.console-input .prompt { color: var(--cyan); font-weight: 700; }
.scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .06), transparent); height: 30%; animation: scan 5s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(400%); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px; z-index: 2; }
.scroll-hint i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* 跑马灯 */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(10, 15, 31, .6);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { padding: 0 28px; font: 500 15px var(--display); color: #aab4cf; white-space: nowrap; }
.marquee span::before { content: "◆"; margin-right: 28px; font-size: 9px; vertical-align: 2px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 区块 */
.sec { position: relative; padding: 120px 0; }
.sec-head { text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 14px; }
.sec h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.5px; }
.sub { color: var(--muted); margin: 0 auto 52px; max-width: 600px; font-size: 17px; }

/* 鼠标聚光边框 */
.spot { position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .14), transparent 45%); }
.spot:hover::after { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1000px; }
.card { border-radius: 18px; padding: 30px; transition: border-color .25s, box-shadow .25s, transform .15s ease-out; transform-style: preserve-3d; }
.card:hover { border-color: rgba(34, 211, 238, .5); box-shadow: 0 20px 50px -20px rgba(34, 211, 238, .35); }
.card h3 { margin: 20px 0 0; font-size: 20px; }
.card .en { font-size: 12px; color: var(--cyan); opacity: .75; letter-spacing: .5px; }
.card p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.ico { position: relative; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); box-shadow: 0 8px 26px -6px rgba(139, 92, 246, .8); }
.ico::after { content: ""; position: absolute; inset: 0; background: #fff; mask: var(--i) center / 24px no-repeat; -webkit-mask: var(--i) center / 24px no-repeat; }
.ico-chat  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.ico-image { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E"); }
.ico-magic { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m3 21 12-12M14 4v3M12.5 5.5h3M19 9v3M17.5 10.5h3M18 2v2M17 3h2'/%3E%3C/svg%3E"); }
.ico-voice { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.ico-doc   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.ico-api   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E"); }

/* API 区 */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: -20px 0 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--bg); background: var(--grad); }
.term { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.code { margin: 0; padding: 22px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #cbd5e1; }
.code .c { color: #5b6885; }
.code .s { color: #7dd3fc; }
.code .k { color: #c4b5fd; }
.term .code code > * , .term .code { transition: opacity .4s; }
.term-out { padding: 16px 22px 20px; border-top: 1px dashed var(--line); font-size: 13px; color: #cbd5e1; min-height: 92px; }
.term-out .ok { color: #4ade80; font-weight: 600; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { border-radius: 18px; padding: 30px; display: flex; flex-direction: column; overflow: visible; transition: transform .25s, border-color .25s; }
.plan:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .5); }
.plan.hot { background: linear-gradient(180deg, rgba(139, 92, 246, .16), rgba(16, 22, 44, .6)); box-shadow: var(--glow); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 99px; white-space: nowrap; box-shadow: var(--glow); z-index: 2; }
.plan h3 { margin: 0; font-size: 16px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; }
.price { font: 700 40px/1.1 var(--display); margin: 14px 0 6px; }
.price small { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 3px; }
.credits { font-weight: 600; font-size: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.plan li { padding: 8px 0 8px 22px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: rotate(45deg); }

/* 联系 */
.cta-box { position: relative; overflow: hidden; text-align: center; padding: 80px 24px; border-radius: 28px; }
.cta-box .sub { margin-bottom: 34px; }
.orb { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; opacity: .55; }
.orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .35); animation: spin-plain 18s linear infinite; }
.orb i:nth-child(1) { transform: rotateX(70deg); border-top-color: var(--cyan); }
.orb i:nth-child(2) { inset: 60px; border-color: rgba(139, 92, 246, .35); border-right-color: var(--violet); animation-duration: 12s; animation-direction: reverse; }
.orb i:nth-child(3) { inset: 150px; border-color: rgba(236, 72, 153, .3); border-bottom-color: var(--pink); animation-duration: 8s; }
@keyframes spin-plain { to { rotate: 360deg; } }

.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav-in .btn-sm { margin-left: auto; }
  .grid, .plans { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 64px; }
  .lead { font-size: 16px; }
  .stats { gap: 22px; }
  .stats b { font-size: 24px; }
  .console-body { height: 280px; }
  .sec { padding: 80px 0; }
  .code { font-size: 12px; padding: 16px; }
  .orb { width: 360px; height: 360px; }
  .orb i:nth-child(3) { inset: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
