:root {
  --purple: #7b2ff7;
  --violet: #5b3df5;
  --cyan: #18d4e8;
  --ink: #0b1020;
  --ink-2: #131a33;
  --text: #1f2640;
  --muted: #5d6685;
  --line: #e4e7f2;
  --bg-alt: #f5f6fb;
  --grad: linear-gradient(120deg, var(--purple), var(--cyan));
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(40, 30, 120, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(20, 20, 60, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { height: 44px; width: auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-name strong { font-size: 17px; color: var(--ink); letter-spacing: .04em; white-space: nowrap; }
.brand-name small { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1280px) { .brand-name small { display: none; } }
@media (max-width: 1200px) and (min-width: 1001px) { .brand-name { display: none; } }
@media (max-width: 1260px) and (min-width: 1001px) { html[lang="en"] .brand-name { display: none; } }
@media (max-width: 420px) { .brand-name strong { font-size: 14px; } .brand-logo { height: 36px; } }
.menu { display: flex; gap: 28px; align-items: center; }
.menu a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.menu a:hover, .menu a.active { color: var(--purple); }
.menu .menu-cta { padding: 8px 18px; border-radius: 999px; background: var(--grad); color: #fff; }
.menu .menu-cta:hover { color: #fff; }
.menu .lang-switch { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; margin-left: -10px; }
.menu .lang-switch:hover { border-color: var(--purple); }
html[lang="en"] .menu { gap: 22px; }
html[lang="en"] .brand-name strong { font-size: 15px; letter-spacing: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(123, 47, 247, .7); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Typography */
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.15; color: #fff; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; margin-bottom: 16px; color: var(--ink); }
h3 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #b8bed6; font-size: 17px; margin-top: 22px; max-width: 560px; }

/* Hero */
.hero { position: relative; background: var(--ink); padding: 140px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(123, 47, 247, .35), transparent 70%),
    radial-gradient(500px 380px at 70% 85%, rgba(24, 212, 232, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 48px 48px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats strong { display: block; font-size: 30px; color: #fff; line-height: 1.1; }
.hero-stats span { color: #8d94b3; font-size: 14px; }
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-product { width: 74%; position: relative; z-index: 2; border-radius: 26px; background: #fff; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 8px rgba(255, 255, 255, .06), 0 0 80px rgba(123, 47, 247, .45); animation: float 6s ease-in-out infinite; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); }
.orbit-1 { inset: 6%; animation: spin 40s linear infinite; }
.orbit-2 { inset: 20%; border-style: solid; border-color: rgba(24, 212, 232, .25); box-shadow: 0 0 80px rgba(123, 47, 247, .25) inset; }
.float-card {
  position: absolute; z-index: 3; padding: 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); color: #fff; display: flex; flex-direction: column; line-height: 1.3;
}
.float-card b { font-size: 16px; }
.float-card span { font-size: 12px; color: #aab0cc; }
.fc-1 { top: 10%; left: 0; animation: float 7s ease-in-out infinite; }
.fc-2 { top: 44%; right: -2%; animation: float 8s ease-in-out infinite .6s; }
.fc-3 { bottom: 8%; left: 10%; animation: float 7.5s ease-in-out infinite 1.2s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #b8bed6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--muted); }
.section-head.light p:last-child { color: #9aa1bf; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.about-grid b { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tags span { padding: 6px 14px; border-radius: 999px; background: #f0ecff; color: var(--violet); font-size: 14px; font-weight: 600; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-cards > * { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 420px) {
  .mini-card { padding: 20px 16px; }
  html[lang="en"] .about-cards { grid-template-columns: 1fr; }
  html[lang="en"] .brand-name { display: none; }
}
.mini-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .25s, box-shadow .25s; }
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-card p { font-size: 14px; margin: 0; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; font-style: normal; font-size: 20px; margin-bottom: 14px; }

/* Products */
.chip { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #ebe6ff; color: var(--violet); margin-bottom: 12px; }
.flagship {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
  background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); margin-bottom: 32px;
}
.flagship-media { background: radial-gradient(circle at 50% 45%, #efeaff, #f7f8fc 70%); border-radius: 20px; padding: 30px; }
.flagship-media img { margin: auto; max-height: 380px; object-fit: contain; }
.flagship h3 { font-size: 28px; }
.flagship-copy > p { color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.spec-grid li { background: var(--bg-alt); border-radius: 12px; padding: 12px; text-align: center; }
.spec-grid b { display: block; color: var(--ink); font-size: 15px; }
.spec-grid span { font-size: 12px; color: var(--muted); }
.check-list { margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 6px; font-size: 15px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 800; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px -12px rgba(20, 20, 60, .2); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pc-media { display: grid; gap: 6px; background: #f2f3f8; height: 240px; padding: 6px; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: #fff; min-height: 0; }
.pc-media > a { display: block; min-height: 0; height: 100%; }
.pc-media-1 { grid-template-columns: 1fr; }
.pc-media-1 img { object-fit: contain; }
.pc-media-2 { grid-template-columns: 1fr 1fr; }
.pc-media-contain img { object-fit: contain; }
.pc-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.pc-body p { color: var(--muted); font-size: 15px; flex: 1; }
.link { margin-top: 16px; font-weight: 700; color: var(--violet); }
.link-row { display: flex; gap: 24px; flex-wrap: wrap; }
.link:hover { color: var(--purple); }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap { padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .25s, transform .25s; }
.cap:hover { border-color: rgba(123, 47, 247, .6); transform: translateY(-4px); }
.cap p { font-size: 15px; }
.cap-no { display: block; font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.process { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 64px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 21px; left: 10%; right: 10%; height: 2px; background: var(--grad); opacity: .5; }
.process li { text-align: center; position: relative; counter-increment: step; }
.process li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; position: relative; }
.process b { display: block; color: #fff; }
.process span { font-size: 13px; color: #8d94b3; }

/* Cases */
.case-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -24px 0 40px; }
.case-tabs button { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .2s; }
.case-tabs button:hover { border-color: var(--purple); color: var(--purple); }
.case-tabs button.active { background: var(--grad); border-color: transparent; color: #fff; }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card.hide { display: none; }
.case-gallery { background: #f2f3f8; padding: 10px; }
.case-main { width: 100%; height: 280px; object-fit: contain; background: #fff; border-radius: 14px; }
.case-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.case-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .55; border: 2px solid transparent; transition: .2s; background: #fff; }
.case-thumbs img:hover, .case-thumbs img.on { opacity: 1; border-color: var(--purple); }
.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.case-cat { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--purple); margin-bottom: 6px; }
.case-scene { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.case-scene b, .case-body .check-list b { color: var(--ink); }
.case-body .check-list { margin-bottom: 16px; flex: 1; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.case-more { margin-top: 32px; text-align: center; color: var(--muted); font-size: 14px; }

/* Sub page (Spot) */
.page-hero { padding: 130px 0 70px; }
.page-hero .hero-grid { grid-template-columns: 1fr 1fr; }
.breadcrumb { font-size: 14px; color: #8d94b3; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.pcb-frame { background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 80px rgba(123, 47, 247, .4); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge-row span { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #d6daf0; font-size: 13px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.spec-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.spec-table { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table h3 { padding: 16px 22px; margin: 0; font-size: 17px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.spec-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 11px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { width: 34%; color: var(--muted); white-space: nowrap; }
.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.io-card { background: var(--ink-2); border-radius: var(--radius); padding: 26px; border: 1px solid rgba(255, 255, 255, .07); }
.io-card li { font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); color: #c3c8e0; }
.io-card li:last-child { border-bottom: 0; }
.code-box { background: #0b1020; color: #d6daf0; border-radius: 14px; padding: 20px 22px; font-family: Consolas, "SFMono-Regular", monospace; font-size: 14px; line-height: 1.8; overflow-x: auto; margin-top: 18px; white-space: pre; }
.code-box .c { color: #6f7694; }
.repo-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--grad); color: #fff; border-radius: 22px; padding: 32px 36px; margin-top: 40px; }
.repo-card h3 { color: #fff; margin: 0; }
.repo-card p { opacity: .9; margin: 0; }
.repo-card .btn { background: #fff; color: var(--violet); }

/* Feedback */
.feedback-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.feedback-intro > p { color: var(--muted); }
.contact-list { margin-top: 30px; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; padding: 16px 20px; background: #fff; border-radius: 14px; border-left: 4px solid var(--purple); }
.contact-list span { font-size: 12px; color: var(--muted); }
.contact-list a, .contact-list em { font-style: normal; font-weight: 600; color: var(--ink); word-break: break-all; }
.feedback-form { background: #fff; padding: 36px; border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.feedback-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feedback-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.feedback-form label i { color: #e5484d; font-style: normal; }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--text);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fafbfe;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.feedback-form textarea { resize: vertical; min-height: 120px; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(123, 47, 247, .12); background: #fff; }
.feedback-form .invalid { border-color: #e5484d; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 22px; font-size: 14px; text-align: center; }
.form-status.ok { color: #12a150; }
.form-status.err { color: #e5484d; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-card { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 32px; }
.contact-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 14px 18px; }
.contact-card dt { color: #8d94b3; font-size: 14px; }
.contact-card dd { color: #fff; font-weight: 500; word-break: break-all; }
.contact-card a:hover { color: var(--cyan); }

/* Footer */
.footer { background: #fff; color: var(--muted); padding: 30px 0; font-size: 14px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 40px; }
.to-top:hover { color: var(--purple); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .flagship, .feedback-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-list, .spec-tables, .io-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; padding: 8px 0 18px; display: none; box-shadow: 0 12px 24px -12px rgba(20, 20, 60, .25);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; width: 100%; text-align: center; }
  .menu .menu-cta { width: auto; margin-top: 8px; padding: 8px 28px; }
  .menu .lang-switch { width: auto; margin: 12px 0 0; padding: 6px 22px; }
  html[lang="en"] .menu { gap: 0; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 60px; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 24px; }
  .product-grid, .cap-grid, .feat-grid { grid-template-columns: 1fr; }
  .case-main { height: 220px; }
  .spec-table td:first-child { white-space: normal; }
  .flagship { padding: 22px; }
  .feedback-form { padding: 24px; }
  .feedback-form .row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 18px; }
  .process::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .float-card { display: none; }
}
