/* ==========================================================
   云衍链科技 官网样式
   主色：深海蓝 #0A2A5E   点缀：科技青 #00C2FF   强调：#1F5BFF
   ========================================================== */
:root {
  --navy-900: #061633;
  --navy-800: #0A2A5E;
  --navy-700: #12397A;
  --blue: #1F5BFF;
  --cyan: #00C2FF;
  --grad: linear-gradient(135deg, #00C2FF 0%, #1F5BFF 100%);
  --ink: #0F1B2D;
  --ink-2: #44526A;
  --ink-3: #7A869A;
  --line: #E3E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 42, 94, .08);
  --shadow-lg: 0 20px 50px rgba(10, 42, 94, .14);
  --max: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy-900); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--blue);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.dark .eyebrow { color: var(--cyan); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: 36px; margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.dark .section-head p { color: rgba(255,255,255,.7); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(31, 91, 255, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 91, 255, .4); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.link-arrow { color: var(--blue); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px;
  transition: background .3s, box-shadow .3s, color .3s; color: #fff;
}
.header.scrolled, .header.solid { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; height: 100%; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 20px; letter-spacing: .08em; }
.brand-text small { font-size: 9.5px; letter-spacing: .26em; opacity: .65; margin-top: 3px; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 0 14px; line-height: 72px; font-size: 15px; opacity: .88; transition: opacity .2s; }
.nav > li > a:hover, .nav > li > a.active { opacity: 1; }
.nav > li > a.active { box-shadow: inset 0 -3px 0 var(--cyan); }
.dropdown {
  position: absolute; top: 72px; left: -20px; width: 520px; padding: 18px;
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 12px 14px; border-radius: 10px; transition: background .2s; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown b { display: block; font-size: 15px; }
.dropdown span { display: block; font-size: 12.5px; color: var(--ink-3); }
.dropdown a.featured b::after { content: "主打"; margin-left: 8px; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--grad); color: #fff; font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .tel { font-size: 14px; opacity: .85; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; cursor: pointer; padding: 8px; margin-left: auto; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 760px; padding: 160px 0 120px; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% 20%, rgba(31,91,255,.35), transparent 60%),
              radial-gradient(900px 500px at 10% 90%, rgba(0,194,255,.18), transparent 60%),
              linear-gradient(180deg, #061633 0%, #0A2A5E 100%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: 13.5px; margin-bottom: 28px;
}
.hero-badge em { font-style: normal; background: var(--grad); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.hero h1 { font-size: 58px; letter-spacing: .02em; max-width: 820px; }
.hero h1 .grad-text { display: inline-block; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.75); max-width: 640px; margin: 24px 0 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 88px; max-width: 880px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats b { display: block; font-size: 34px; font-weight: 700; }
.hero-stats b small { font-size: 16px; margin-left: 2px; opacity: .8; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.6); }

/* ---------- Capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cap {
  padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: all .25s;
}
.cap:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,194,255,.14), rgba(31,91,255,.14)); color: var(--blue); margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }
.cap h3 { font-size: 19px; margin-bottom: 10px; }
.cap p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Flagship spotlight ---------- */
.spotlight {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.spotlight h2 { font-size: 38px; margin: 14px 0 18px; }
.spotlight .desc { color: rgba(255,255,255,.72); font-size: 16.5px; margin-bottom: 28px; }
.check-list { display: grid; gap: 14px; margin-bottom: 36px; }
.check-list li { display: flex; gap: 12px; font-size: 15.5px; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--grad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.check-list b { color: #fff; }
.check-list span { color: rgba(255,255,255,.7); }
.light .check-list b { color: var(--ink); }
.light .check-list span { color: var(--ink-2); }

/* mock console */
.mock {
  border-radius: 16px; background: linear-gradient(180deg, #0F2550, #0B1D40);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden;
}
.mock-bar { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock-bar span { margin-left: 12px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-row {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
}
.mock-row .ft { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.mock-row b { display: block; font-size: 14px; color: #fff; font-weight: 600; }
.mock-row small { display: block; font-size: 12px; color: rgba(255,255,255,.5); font-family: ui-monospace, Menlo, monospace; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.tag-pub { background: rgba(0,194,255,.15); color: #5DDCFF; }
.tag-ctl { background: rgba(255,176,32,.15); color: #FFC35A; }
.tag-pri { background: rgba(255,92,124,.15); color: #FF8DA4; }
.mock-chain {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px;
  background: rgba(0,194,255,.08); border: 1px dashed rgba(0,194,255,.35); font-size: 12.5px; color: #8BE6FF;
  font-family: ui-monospace, Menlo, monospace; overflow: hidden; white-space: nowrap;
}
.mock-chain .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BE08B; box-shadow: 0 0 0 4px rgba(43,224,139,.2); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(43,224,139,0); } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: all .25s; overflow: hidden;
}
.product::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product:hover::before { transform: scaleX(1); }
.product .cn { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 4px; }
.product h3 { font-size: 21px; margin-bottom: 12px; }
.product p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.product .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 22px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); }
.product.featured { background: linear-gradient(160deg, #0A2A5E, #12397A); color: #fff; border: 0; }
.product.featured p { color: rgba(255,255,255,.72); }
.product.featured .cn { color: var(--cyan); }
.product.featured .chip { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.product.featured .link-arrow { color: var(--cyan); }
.product.featured .icon { background: rgba(255,255,255,.1); color: var(--cyan); }
.ribbon { position: absolute; top: 20px; right: 20px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; }

/* ---------- Base layer (pluggable chains) ---------- */
.base-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.base-wrap h2 { font-size: 36px; margin: 12px 0 16px; }
.base-wrap .desc { color: var(--ink-2); margin-bottom: 28px; }
.stack { display: grid; gap: 12px; }
.stack-layer { border-radius: 12px; padding: 16px 20px; border: 1px solid var(--line); background: #fff; }
.stack-layer h4 { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; margin-bottom: 10px; }
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-items span { font-size: 13.5px; padding: 6px 12px; border-radius: 8px; background: var(--bg-soft); }
.stack-layer.adapter { background: var(--grad); color: #fff; border: 0; text-align: center; padding: 14px; font-weight: 600; letter-spacing: .04em; }
.stack-layer.adapter small { display: block; font-weight: 400; opacity: .85; font-size: 12.5px; }
.engines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.engine { border-radius: 12px; padding: 16px 10px; text-align: center; background: #fff; border: 1px solid var(--line); }
.engine b { display: block; font-size: 15px; }
.engine small { font-size: 12px; color: var(--ink-3); }
.engine.own { border: 2px solid var(--blue); background: linear-gradient(180deg, rgba(31,91,255,.06), #fff); }
.engine.own b { color: var(--blue); }

/* ---------- Solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol {
  position: relative; min-height: 300px; padding: 30px 26px; border-radius: var(--radius); overflow: hidden;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .3s;
}
.sol:hover { transform: translateY(-6px); }
.sol .num { position: absolute; top: 22px; right: 24px; font-size: 54px; font-weight: 800; opacity: .12; line-height: 1; }
.sol h3 { font-size: 20px; margin-bottom: 10px; }
.sol p { font-size: 14px; opacity: .8; }
.sol-1 { background: linear-gradient(160deg, #0A2A5E, #1F5BFF); }
.sol-2 { background: linear-gradient(160deg, #063A57, #0090C8); }
.sol-3 { background: linear-gradient(160deg, #1A2650, #4B4FD8); }
.sol-4 { background: linear-gradient(160deg, #0B3047, #0FA3A3); }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.adv { padding: 36px 32px; background: var(--navy-900); }
.adv .k { font-size: 40px; font-weight: 700; margin-bottom: 6px; }
.adv h3 { font-size: 18px; margin-bottom: 8px; }
.adv p { font-size: 14.5px; color: rgba(255,255,255,.62); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about h2 { font-size: 36px; margin: 12px 0 20px; }
.about .desc p { color: var(--ink-2); margin-bottom: 14px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.timeline b { font-size: 18px; color: var(--blue); }
.timeline p { color: var(--ink-2); font-size: 15px; }

/* ---------- CTA / Contact ---------- */
.cta {
  border-radius: 24px; padding: 64px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(600px 300px at 90% 0%, rgba(0,194,255,.35), transparent 60%), linear-gradient(135deg, #0A2A5E, #1F5BFF);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cta h2 { font-size: 34px; margin-bottom: 14px; }
.cta > div > p { color: rgba(255,255,255,.78); margin-bottom: 28px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.contact-list svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 32px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.form h3 { font-size: 20px; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-soft); transition: border .2s, background .2s;
}
.form textarea { height: 90px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form .btn { width: 100%; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.65); padding: 72px 0 28px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- Product page ---------- */
.page-hero {
  padding: 150px 0 90px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 10%, rgba(31,91,255,.4), transparent 60%), linear-gradient(180deg, #061633, #0A2A5E);
}
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.crumb { font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-size: 46px; margin-bottom: 8px; }
.page-hero .sub { font-size: 20px; color: var(--cyan); margin-bottom: 20px; font-weight: 600; }
.page-hero .lead { color: rgba(255,255,255,.75); font-size: 17px; margin-bottom: 36px; }

.subnav { position: sticky; top: 72px; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { padding: 0 16px; line-height: 56px; font-size: 15px; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--blue); border-bottom-color: var(--blue); }
[id] { scroll-margin-top: 140px; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pain .q { font-size: 13px; color: #E0475F; font-weight: 600; margin-bottom: 10px; letter-spacing: .06em; }
.pain h3 { font-size: 20px; margin-bottom: 12px; }
.pain p { color: var(--ink-2); font-size: 14.5px; }
.pain .a { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--ink); }
.pain .a b { color: var(--blue); }

/* architecture */
.arch { display: grid; gap: 12px; max-width: 1040px; margin: 0 auto; }
.arch-layer { display: grid; grid-template-columns: 130px 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.arch-label { display: flex; flex-direction: column; justify-content: center; padding: 16px; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 15px; }
.arch-label small { font-weight: 400; font-size: 11.5px; opacity: .6; letter-spacing: .08em; }
.arch-cells { display: grid; gap: 10px; padding: 14px; grid-template-columns: repeat(var(--n, 5), 1fr); }
.arch-cells > div { padding: 12px 10px; border-radius: 10px; background: var(--bg-soft); text-align: center; font-size: 14px; font-weight: 600; }
.arch-cells > div small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.arch-cells > div.hl { background: linear-gradient(135deg, rgba(0,194,255,.14), rgba(31,91,255,.14)); color: var(--blue); }
.arch-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arch-split .arch-layer { grid-template-columns: 110px 1fr; }
.arch-bind { text-align: center; font-size: 13px; color: var(--blue); font-weight: 600; }
.arch-bind span { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(31,91,255,.08); }

/* modules */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mod { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.mod .no { font-size: 13px; color: var(--blue); font-weight: 700; letter-spacing: .1em; }
.mod h3 { font-size: 20px; margin: 6px 0 14px; }
.mod ul { display: grid; gap: 8px; }
.mod li { font-size: 14.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.mod li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); }
.mod.wide { grid-column: span 1; background: linear-gradient(160deg, #0A2A5E, #12397A); color: #fff; border: 0; }
.mod.wide li { color: rgba(255,255,255,.78); }
.mod.wide .no { color: var(--cyan); }

/* flow */
.flow-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
.flow-tabs button { font: inherit; font-size: 15px; font-weight: 600; height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: rgba(255,255,255,.7); cursor: pointer; transition: .2s; }
.flow-tabs button.on { background: var(--grad); color: #fff; border-color: transparent; }
.flow { display: none; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.flow.on { display: grid; }
.step { position: relative; padding: 26px 20px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 28px; font-weight: 800; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 38px; width: 10px; height: 10px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: rotate(45deg); }
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: rgba(255,255,255,.62); }
.step .onchain { display: inline-block; margin-top: 12px; font-size: 11.5px; padding: 2px 8px; border-radius: 4px; background: rgba(43,224,139,.14); color: #5BE7A4; }

/* security & xinchuang */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.sec h3 { font-size: 17px; margin-bottom: 8px; }
.sec p { font-size: 14px; color: var(--ink-2); }
.xc { margin-top: 48px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.xc-row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.xc-row:last-child { border-bottom: 0; }
.xc-row b { padding: 16px 20px; background: var(--bg-soft); font-size: 14.5px; }
.xc-row div { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* metrics */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { text-align: center; padding: 32px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.metric b { display: block; font-size: 38px; line-height: 1.2; }
.metric span { font-size: 14px; color: var(--ink-2); }

/* deploy */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deploy { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.deploy h3 { font-size: 19px; margin-bottom: 10px; }
.deploy p { color: var(--ink-2); font-size: 14.5px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta .tel { display: none; }
  .menu-toggle { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .header .container { gap: 16px; }
  .nav.open {
    display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px);
    background: #fff; color: var(--ink); padding: 12px 24px; overflow-y: auto; gap: 0;
  }
  .nav.open > li > a { line-height: 54px; border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; width: auto; box-shadow: none; padding: 6px 0 12px; grid-template-columns: 1fr; }
  .cap-grid, .sol-grid, .sec-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .mod-grid, .pain-grid, .deploy-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight, .base-wrap, .about, .cta, .page-hero .container { grid-template-columns: 1fr; gap: 48px; }
  .flow { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { right: 50%; top: auto; bottom: -13px; transform: rotate(135deg); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .header-cta .btn { display: none; }
  .hero { min-height: auto; padding: 120px 0 72px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .hero-stats b { font-size: 28px; }
  .section-head h2, .spotlight h2, .base-wrap h2, .about h2 { font-size: 28px; }
  .section-head { margin-bottom: 36px; }
  .cap-grid, .product-grid, .sol-grid, .mod-grid, .pain-grid, .sec-grid, .deploy-grid, .adv-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric b { font-size: 28px; }
  .engines { grid-template-columns: repeat(2, 1fr); }
  .sol { min-height: 220px; }
  .cta { padding: 36px 20px; border-radius: 18px; }
  .cta h2 { font-size: 26px; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero { padding: 116px 0 64px; }
  .page-hero h1 { font-size: 32px; }
  .arch-layer, .arch-split .arch-layer { grid-template-columns: 1fr; }
  .arch-label { flex-direction: row; gap: 10px; align-items: baseline; padding: 10px 14px; }
  .arch-cells { grid-template-columns: repeat(2, 1fr) !important; }
  .arch-split { grid-template-columns: 1fr; }
  .xc-row { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 34px 1fr; }
  .mock-row .tag { grid-column: 2; justify-self: start; }
}

/* ---------- v2: 表单、场景、相关产品 ---------- */
.form label.f { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.form label.f i { font-style: normal; color: #E0475F; margin-left: 2px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .note { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.form .msg { display: none; text-align: center; font-weight: 600; font-size: 15px; padding: 10px; border-radius: 10px; }
.form .msg.ok { display: block; color: #12A150; background: rgba(18,161,80,.08); }
.form .msg.err { display: block; color: #D6334F; background: rgba(214,51,79,.08); }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form { position: relative; }
.cta-points { display: grid; gap: 14px; margin-top: 8px; }
.cta-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: rgba(255,255,255,.88); }
.cta-points li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }
.cta .contact-list { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }

.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene-grid .sol { min-height: 240px; }

.rel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.rel { display: block; padding: 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: all .25s; }
.rel:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.rel .icon { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 14px; }
.rel .icon svg { width: 22px; height: 22px; }
.rel b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.rel span { display: block; font-size: 13px; color: var(--ink-3); }

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro h2 { font-size: 34px; margin: 12px 0 18px; }
.intro p { color: var(--ink-2); margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv div { padding: 22px; border-radius: var(--radius); background: var(--bg-soft); }
.kv b { display: block; font-size: 17px; margin-bottom: 6px; }
.kv span { font-size: 14px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
  .intro { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .scene-grid, .kv { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .intro h2 { font-size: 28px; }
}
