/* ==========================================================================
   四川码刻笔科技有限公司 · 官网样式表
   Design: dark technical / engineering precision
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg-0: #0b111d;
  --bg-1: #0e1524;
  --bg-2: #131b2c;
  --bg-3: #182136;

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.15);
  --line-accent: rgba(61, 123, 255, 0.42);

  --text: #eaf0fa;
  --text-2: #a8b3c4;
  --text-3: #7a8698;

  --accent: #3d7bff;
  --accent-hi: #6c9bff;
  --accent-soft: rgba(61, 123, 255, 0.14);
  --cyan: #25d0c2;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --fs-h1: clamp(2.2rem, 4.5vw, 4.1rem);
  --fs-h2: clamp(1.95rem, 3.5vw, 3.05rem);
  --fs-h3: clamp(1.2rem, 1.7vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --wrap: 1240px;
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);

  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(61, 123, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

/* ambient page texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1000px 600px at 82% -10%, rgba(61, 123, 255, 0.17), transparent 70%),
    radial-gradient(760px 500px at 2% 4%, rgba(37, 208, 194, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(61, 123, 255, 0.035), transparent 45%);
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0;
}

.section--tight {
  padding: clamp(56px, 6vw, 88px) 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.eyebrow--cyan::before {
  background: var(--cyan);
}

.h2-block {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.h2-block h2 {
  font-size: var(--fs-h2);
}

/* 分栏布局内的标题降一级，避免中文折行断字 */
.split .h2-block h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}

.lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.9;
  max-width: 64ch;
}

.muted {
  color: var(--text-2);
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(61, 123, 255, 0.85);
}

.btn--primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(61, 123, 255, 0.95);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--sm {
  height: 42px;
  padding: 0 20px;
  font-size: 0.875rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--accent-hi);
  transition: gap 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 14px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 17, 29, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__text {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.brand__cn {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  color: var(--text-3);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  position: relative;
  padding: 9px 15px;
  font-size: 0.9375rem;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__links a.is-active {
  color: var(--text);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}

.nav__tel:hover {
  color: var(--text);
}

.nav__tel svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 88;
  background: rgba(11, 17, 29, 0.98);
  backdrop-filter: blur(20px);
  padding: 28px 24px 40px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 16px 4px;
  font-size: 1.375rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.mobile-menu .btn {
  margin-top: 24px;
  border-bottom: 0;
  font-size: 1rem;
}

.mobile-menu__meta {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-3);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 7vw, 100px);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 26px;
}

.hero__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(37, 208, 194, 0.16);
  margin-left: 6px;
  animation: pulse 2.6s var(--ease-io) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(37, 208, 194, 0.14);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 208, 194, 0);
  }
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #fff 8%, var(--accent-hi) 52%, var(--cyan) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--line);
}

.hero__stat {
  background: var(--bg-0);
  padding: 24px 20px 8px;
}

.hero__stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.hero__stat b span {
  font-size: 0.6em;
  color: var(--accent-hi);
  margin-left: 2px;
}

.hero__stat i {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* topology visual */
.topo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.topo::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.2), transparent 62%);
  filter: blur(18px);
}

.topo svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.topo .ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.topo .link {
  fill: none;
  stroke: rgba(61, 123, 255, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 7;
  animation: dash 14s linear infinite;
}

.topo .link--slow {
  animation-duration: 22s;
  stroke: rgba(37, 208, 194, 0.34);
}

@keyframes dash {
  to {
    stroke-dashoffset: -220;
  }
}

.topo .node {
  fill: #131c2e;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  transition: fill 0.4s var(--ease), stroke 0.4s var(--ease);
}

.topo .node--core {
  fill: rgba(61, 123, 255, 0.16);
  stroke: var(--accent);
}

.topo text {
  fill: var(--text-2);
  font-size: 11px;
  font-family: var(--font-sans);
  text-anchor: middle;
  letter-spacing: 0.04em;
}

.topo .label {
  fill: var(--text-3);
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
}

.topo .core-label {
  fill: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.topo .flow {
  fill: var(--cyan);
}

/* ---------- 8. Marquee / brands ---------- */
.brandbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  padding: 22px 0;
  overflow: hidden;
}

.brandbar__inner {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.brandbar__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
}

.brandbar__list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.brandbar__list span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(234, 240, 250, 0.55);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.brandbar__list span:hover {
  color: var(--text);
}

/* ---------- 9. Capability cards ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(21, 30, 48, 0.92), rgba(14, 21, 35, 0.9));
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease),
    background 0.45s var(--ease);
}

.cap::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(61, 123, 255, 0.55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.cap:hover {
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(28, 39, 61, 0.95), rgba(17, 25, 41, 0.92));
}

.cap:hover::after {
  opacity: 1;
}

.cap__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cap__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.cap__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent-hi);
  flex-shrink: 0;
}

.cap__icon svg {
  width: 22px;
  height: 22px;
}

.cap h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

.cap p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.85;
}

.cap__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.018);
}

/* ---------- 10. Reason / split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.reason-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.reason {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 4px;
  background: var(--bg-0);
  transition: background 0.35s var(--ease);
}

.reason:hover {
  background: rgba(255, 255, 255, 0.018);
}

.reason__idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  padding-top: 5px;
}

.reason h4 {
  font-size: 1.0625rem;
  margin-bottom: 7px;
  letter-spacing: 0;
}

.reason p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* ---------- 11. Cases ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.case::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 88% -10%, rgba(61, 123, 255, 0.22), transparent 68%),
    linear-gradient(180deg, transparent 40%, rgba(11, 17, 29, 0.62));
  opacity: 0.75;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.case:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
}

.case:hover::before {
  opacity: 1;
}

.case > * {
  position: relative;
  z-index: 1;
}

.case__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.case__cat b {
  font-weight: 400;
  color: var(--cyan);
}

.case h3 {
  margin-top: auto;
  font-size: 1.1875rem;
  line-height: 1.45;
  letter-spacing: 0;
  padding-top: 26px;
}

.case p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.8;
}

.case__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.case__meta em {
  font-style: normal;
  color: var(--accent-hi);
}

/* filter pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter:hover {
  border-color: var(--line-2);
  color: var(--text);
}

.filter.is-active {
  background: var(--accent-soft);
  border-color: var(--line-accent);
  color: var(--text);
}

.case.is-hidden {
  display: none;
}

/* ---------- 12. Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 30px 22px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 123, 255, 0.12);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

.step h4 {
  margin: 14px 0 8px;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.step p {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ---------- 13. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 5.5vw, 68px);
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(61, 123, 255, 0.26), transparent 70%),
    linear-gradient(140deg, #162033, #101827);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 0%, #000, transparent 72%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  max-width: 20ch;
}

.cta-band p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.9375rem;
  max-width: 44ch;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  padding: clamp(48px, 6vw, 76px) 0 32px;
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer__brand p {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.9;
  max-width: 34ch;
}

.footer h5 {
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a,
.footer__links span {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}

.footer__links a:hover {
  color: var(--accent-hi);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer__bottom span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.footer__bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--text-2);
  border-bottom-color: var(--line-accent);
}

/* ---------- 15. Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 10%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---------- 16. Solution blocks ---------- */
.solution {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(44px, 5.5vw, 76px) 0;
  border-bottom: 1px solid var(--line);
}

.solution:last-of-type {
  border-bottom: 0;
}

.solution__aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.solution__idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.solution h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.solution__aside p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.solution__body {
  display: grid;
  gap: 26px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-list li {
  background: var(--bg-1);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  display: grid;
  gap: 4px;
}

.feature-list strong {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.feature-list small {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.7;
}

.deliverables {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-left: 1px solid var(--line-accent);
  background: linear-gradient(90deg, rgba(61, 123, 255, 0.09), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.deliverables h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
}

.deliverables ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliverables li {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- 17. Stats band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stat-band > div {
  background: var(--bg-0);
  padding: 34px 24px;
}

.stat-band b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-band b span {
  font-size: 0.55em;
  color: var(--accent-hi);
  margin-left: 3px;
}

.stat-band i {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ---------- 18. About / content blocks ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.prose {
  display: grid;
  gap: 20px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.95;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.92), rgba(14, 21, 35, 0.92));
  padding: 30px;
  display: grid;
  gap: 0;
}

.info-card__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.info-card__row:last-child {
  border-bottom: 0;
}

.info-card__row dt {
  color: var(--text-3);
  font-size: 0.8125rem;
}

.info-card__row dd {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: 30px;
  margin-left: 6px;
}

.timeline li {
  position: relative;
  padding-bottom: 34px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1.5px solid var(--accent);
}

.timeline time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-hi);
}

.timeline h4 {
  margin: 8px 0 6px;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.timeline p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.85;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.value {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.value h4 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.value p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* prose 列内的价值卡改为横向紧凑排布 */
.prose .value-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.prose .value {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.prose .value h4 {
  margin: 0;
  font-size: 0.9375rem;
}

.prose .value p {
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ---------- 19. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: 30px;
}

.contact-item {
  background: var(--bg-0);
  padding: 24px 4px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  margin-top: 5px;
}

.contact-item dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.contact-item dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.contact-item dd small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 3px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 42px);
  background: linear-gradient(170deg, rgba(21, 30, 48, 0.94), rgba(14, 21, 35, 0.94));
}

.form-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.form-card > p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8125rem;
  color: var(--text-2);
}

.field label i {
  color: var(--accent);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9375rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.7;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(61, 123, 255, 0.06);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7686 50%),
    linear-gradient(135deg, #6b7686 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select option {
  background: #131b2c;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff5c5c;
}

.field__err {
  font-size: 0.75rem;
  color: #ff7b7b;
  display: none;
}

.field.has-error .field__err {
  display: block;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.7;
}

.form-success {
  display: none;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 208, 194, 0.4);
  border-radius: 12px;
  background: rgba(37, 208, 194, 0.08);
  font-size: 0.9rem;
  color: #a9f2ea;
}

.form-success.is-visible {
  display: block;
}

/* map placeholder */
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f1728;
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
}

.map-frame__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(61, 123, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 123, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 78%);
}

.map-frame__pin {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.map-frame__pin span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--text-3);
}

.map-frame__pin strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.map-frame__pin i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(61, 123, 255, 0.18), 0 0 30px 8px rgba(61, 123, 255, 0.35);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-hi);
  font-size: 1.125rem;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.9;
  max-width: 78ch;
}

/* ---------- 20. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

/* ---------- 21. Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(14, 21, 36, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--line-accent);
  color: var(--accent-hi);
}

.to-top svg {
  width: 17px;
  height: 17px;
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .topo {
    justify-self: center;
    max-width: 420px;
    margin-top: 10px;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .step {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .solution {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }

  .nav__links,
  .nav__tel {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__stat {
    padding: 20px 16px 4px;
  }

  .cap-grid,
  .value-grid,
  .feature-list,
  .form-grid,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-band {
    padding: 30px;
  }

  .wrap {
    width: min(var(--wrap), 100% - 32px);
  }
}

@media (max-width: 560px) {
  .nav__right .btn {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.025em;
  }

  .info-card__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline li::before {
    left: -26px;
  }

  .case {
    min-height: 300px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 23. Print ---------- */
@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .to-top,
  .mobile-menu,
  .hero__grid,
  .topo {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }
}

/* ---------- 24. Guest room control ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(24, 33, 54, 0.55), rgba(19, 27, 44, 0.35));
}

.mode-card h4 {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.mode-card h4 span {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.diagram {
  margin: 16px 0 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.diagram img {
  display: block;
  width: 100%;
  height: auto;
}

.mode-card > p {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.85;
}

.scene-title {
  margin: 30px 0 14px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scene-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.scene-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scene-card__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  margin: 10px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.scene-card__ph small {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.scene-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 15px;
  font-size: 0.88rem;
}

.scene-card figcaption span {
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }
}
