:root {
  --bg: #05070f;
  --bg-alt: #0a0e1c;
  --card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #8d96ad;
  --accent: #4f8cff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --grad: linear-gradient(120deg, var(--accent-3), var(--accent) 45%, var(--accent-2));
  --radius: 18px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 30px -8px rgba(79, 140, 255, .6);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -8px rgba(79, 140, 255, .8); }
.btn-ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .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(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); font-size: 17px; color: #fff;
}
.logo-sub { font-weight: 500; font-size: 15px; color: var(--muted); margin-left: -4px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 7px 6px; transition: transform .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgba(34, 211, 238, .12), transparent 70%),
    var(--bg);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; padding-top: 68px; }
.eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-3); margin-bottom: 18px; }
.hero-title { font-size: clamp(34px, 6.4vw, 76px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; min-height: 2.3em; }
.slogan {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .5s, transform .5s; display: inline-block;
}
.slogan.out { opacity: 0; transform: translateY(14px); }
.hero-desc { max-width: 620px; margin: 22px 0 36px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 12px; z-index: 1;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent-3); animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.25; font-weight: 800; letter-spacing: -.5px; }
.section-head { margin-bottom: 56px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
.lead strong { color: var(--text); font-weight: 600; }
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.chain li {
  position: relative; padding: 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); font-size: 14px; color: var(--muted);
}
.chain li span { display: block; font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.chain li:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 14px; z-index: 1;
}

/* ---------- Business cards ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.biz-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--card); transition: transform .35s, border-color .35s, box-shadow .35s;
}
.biz-card:hover {
  transform: translateY(-6px); border-color: rgba(79, 140, 255, .45);
  box-shadow: 0 24px 60px -24px rgba(79, 140, 255, .45);
}
.biz-visual {
  position: relative; height: 200px; overflow: hidden;
  background: radial-gradient(80% 100% at 50% 100%, rgba(79, 140, 255, .14), transparent 70%), #070a16;
  border-bottom: 1px solid var(--border);
}
.biz-visual svg, .biz-visual canvas { width: 100%; height: 100%; display: block; }
.biz-body { padding: 28px 30px 32px; }
.biz-index { font-size: 13px; color: var(--accent-3); font-weight: 600; letter-spacing: 2px; }
.biz-body h3 { font-size: 24px; margin: 6px 0 10px; }
.biz-body h3 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: .5px; }
.biz-body p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(79, 140, 255, .3); color: #b8cbff; background: rgba(79, 140, 255, .08);
}

/* 01 软件开发：代码流 + 数字城市 */
.code-stream {
  position: absolute; inset: 0; padding: 14px 18px;
  font: 12px/2 "SF Mono", Menlo, Consolas, monospace; color: rgba(34, 211, 238, .45);
  display: flex; flex-direction: column; animation: codeflow 9s linear infinite;
}
@keyframes codeflow { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.city {
  position: absolute; left: 0; right: 0; bottom: 0; height: 75%;
  display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 30px;
}
.city i {
  flex: 1; max-width: 30px; height: var(--h);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 2px, transparent 2px 10px),
    linear-gradient(180deg, rgba(79, 140, 255, .9), rgba(139, 92, 246, .35));
  border: 1px solid rgba(147, 180, 255, .5); border-bottom: 0; border-radius: 3px 3px 0 0;
  transform-origin: bottom; animation: build 4s ease-in-out var(--d) infinite;
  box-shadow: 0 0 18px rgba(79, 140, 255, .35);
}
@keyframes build { 0%, 100% { transform: scaleY(.25); opacity: .5; } 40%, 70% { transform: scaleY(1); opacity: 1; } }

/* 02 FDE */
.svg-fde .holo { fill: rgba(34, 211, 238, .08); stroke: var(--accent-3); stroke-width: 1.2; animation: glow 2.4s ease-in-out infinite; }
.svg-fde .holo-line { fill: none; stroke: var(--accent-3); stroke-width: 2; stroke-dasharray: 80; animation: draw 3s ease-in-out infinite; }
.svg-fde .people circle { fill: #0b1226; stroke: var(--accent); stroke-width: 2; }
.svg-fde .flow { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-dasharray: 4 8; animation: dash 1.2s linear infinite; }
.svg-label { fill: var(--muted); font-size: 9px; letter-spacing: 2px; font-family: "SF Mono", Menlo, monospace; }
@keyframes glow { 50% { fill: rgba(34, 211, 238, .2); } }
@keyframes draw { 0% { stroke-dashoffset: 80; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* 03 企业 AI 化 */
.svg-enterprise .grid-line { fill: none; stroke: rgba(79, 140, 255, .18); stroke-width: .6; }
.svg-enterprise .light-net { animation: sweep 5s ease-in-out infinite; }
.svg-enterprise .gear path, .svg-enterprise .gear circle { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.svg-enterprise .gear > * { transform-origin: 0 0; animation: spin 8s linear infinite; }
.svg-enterprise .neural line { stroke: rgba(139, 92, 246, .55); stroke-width: 1.2; stroke-dasharray: 60; animation: draw 3.5s ease-in-out infinite; }
.svg-enterprise .neural circle { fill: var(--accent-2); animation: pulse 2s ease-in-out infinite; }
.svg-enterprise .bars rect { fill: var(--accent-3); transform-box: fill-box; transform-origin: bottom; animation: rise 3s ease-in-out var(--d) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes sweep { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
  transition: transform .35s, border-color .35s, opacity .35s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(79, 140, 255, .45); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.case-industry { color: var(--muted); }
.case-tag { color: var(--accent-3); border: 1px solid rgba(34, 211, 238, .35); border-radius: 999px; padding: 2px 10px; }
.case-card h3 { font-size: 20px; line-height: 1.45; margin: 16px 0 18px; }
.case-detail { display: grid; gap: 12px; font-size: 14px; margin-bottom: 24px; }
.case-detail div { display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.case-detail dt { color: var(--accent); font-weight: 600; }
.case-detail dd { color: var(--muted); }
.case-points {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border);
}
.case-points li {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(79, 140, 255, .3); color: #b8cbff; background: rgba(79, 140, 255, .08);
}

/* ---------- Vision ---------- */
.vision { text-align: center; overflow: hidden; }
.vision::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 50% 50%, rgba(79, 140, 255, .14), transparent 70%);
  pointer-events: none;
}
.vision .container { position: relative; }
.vision blockquote { font-size: clamp(22px, 3.2vw, 38px); font-weight: 700; line-height: 1.6; max-width: 900px; margin: 0 auto; }
.vision em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 840px; margin: 56px auto 0; }
.pillars div { padding: 26px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.pillars strong { display: block; font-size: 22px; margin-bottom: 4px; }
.pillars span { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-intro > p { color: var(--muted); margin: 16px 0 32px; }
.contact-steps { list-style: none; display: grid; gap: 14px; }
.contact-steps li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.contact-steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--grad);
}

.contact-form {
  display: grid; gap: 18px; padding: 32px; border-radius: 24px; border: 1px solid var(--border);
  background: radial-gradient(70% 80% at 50% 0%, rgba(139, 92, 246, .16), transparent 70%), var(--card);
}
.contact-form .hp { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label, .contact-form legend { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.contact-form em { color: #f472b6; font-style: normal; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(5, 7, 15, .6); outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form select option { background: var(--bg-alt); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, .2);
}
.contact-form .invalid { border-color: #f472b6 !important; }
.contact-form fieldset { border: 0; }
.contact-form legend { margin-bottom: 8px; }
.contact-form fieldset.invalid .chips span { border-color: #f472b6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.chips input:checked + span { color: #fff; border-color: transparent; background: var(--grad); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 140, 255, .35); }
.btn-block { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 14px; }
.btn-block:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { min-height: 1.5em; font-size: 14px; text-align: center; color: var(--muted); }
.form-status.ok { color: #34d399; }
.form-status.err { color: #f472b6; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .biz-grid, .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: rgba(5, 7, 15, .96); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav-links a { padding: 14px 0; width: 100%; text-align: center; }
  .nav-links .btn { margin-top: 8px; }
  .nav.open .nav-links { transform: none; }
  .nav.open { background: rgba(5, 7, 15, .96); }
  .nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .chain, .pillars { grid-template-columns: 1fr; }
  .chain li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%); }
  .biz-body { padding: 22px 20px 26px; }
  .case-card { padding: 24px 20px; }
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Case link ---------- */
a.case-card { color: inherit; }
.case-link { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); transition: transform .2s; }
a.case-card:hover .case-link { transform: translateX(4px); }
