:root {
  --bg: #f5f7fa;
  --bg-soft: #e8eef5;
  --surface: #ffffff;
  --text: #0b1220;
  --text-2: #243044;
  --muted: #5b6b7c;
  --line: #d7dee8;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: #eff6ff;
  --sky: #0284c7;
  --violet: #5b4aa8;
  --amber: #9a6700;
  --rose: #a11d48;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(11, 18, 32, 0.08);
  --shadow-hover: 0 18px 40px rgba(11, 18, 32, 0.12);
  --header-bg: rgba(245, 247, 250, 0.9);
  --header-line: rgba(215, 222, 232, 0.9);
  --card-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 22px 48px rgba(29, 78, 216, 0.22);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --pad: clamp(1.15rem, 4vw, 2.75rem);
  --max: 70rem;
  --header-h: 4rem;
  --safe: env(safe-area-inset-bottom, 0px);
}

html[data-theme="dark"] {
  --bg: #141414;
  --bg-soft: #1a1a1a;
  --surface: #1f1f1f;
  --text: #ececec;
  --text-2: #c8c8c8;
  --muted: #9a9a9a;
  --line: #333333;
  --brand: #6b8cce;
  --brand-dark: #8aa4d6;
  --brand-soft: #252a33;
  --sky: #6a9bb8;
  --violet: #8b87a8;
  --amber: #c4a574;
  --rose: #b88a8a;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(20, 20, 20, 0.92);
  --header-line: rgba(51, 51, 51, 0.95);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(29, 78, 216, 0.09), transparent 55%),
    radial-gradient(50% 40% at 0% 20%, rgba(11, 110, 153, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(80, 90, 110, 0.12), transparent 55%),
    radial-gradient(45% 35% at 0% 30%, rgba(70, 78, 90, 0.08), transparent 50%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--header-h);
  padding: 0 var(--pad);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-line);
  transition: background .35s ease, border-color .35s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(58vw, 15rem);
}
.logo-img {
  display: block;
  width: auto;
  height: 2.55rem;
  max-width: 100%;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color .15s, opacity .15s;
  white-space: nowrap;
}
.nav a.n1 { color: #1d4ed8; }
.nav a.n2 { color: #0284c7; }
.nav a.n3 { color: #7c3aed; }
.nav a.n4 { color: #ea580c; }
html[data-theme="dark"] .nav a.n1 { color: #8aa4c8; }
html[data-theme="dark"] .nav a.n2 { color: #7ea8b8; }
html[data-theme="dark"] .nav a.n3 { color: #9a96b0; }
html[data-theme="dark"] .nav a.n4 { color: #c49a7a; }
.nav a:hover { opacity: 0.78; background: transparent; }

.theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  margin-left: 0.25rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.btn-sm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem !important;
  border-radius: 999px !important;
  background: var(--text) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.btn-sm:hover { background: var(--brand) !important; }

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 88% 18%, rgba(29, 78, 216, 0.16), transparent 62%),
    radial-gradient(42% 38% at 8% 72%, rgba(11, 110, 153, 0.1), transparent 58%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.hero-copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.15rem, 6.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.12rem, 3vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
}

.hero-desc {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-in {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn .75s ease forwards;
}
.hero-in:nth-child(1) { animation-delay: .05s; }
.hero-in:nth-child(2) { animation-delay: .12s; }
.hero-in:nth-child(3) { animation-delay: .19s; }
.hero-in:nth-child(4) { animation-delay: .26s; }
.hero-in:nth-child(5) { animation-delay: .33s; }
.hero-visual.hero-in { animation-delay: .28s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .75s cubic-bezier(.22, 1, .36, 1),
    transform .75s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

.hero-actions {
  display: grid;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  min-width: min(100%, 12rem);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: var(--brand-soft);
  border-color: #93c5fd;
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.1);
}
.btn-outline:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: var(--brand-dark);
}

.hero-visual {
  position: relative;
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: 1rem 1.35rem 1.15rem;
}

.visual-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.95rem;
  background: #fff;
  border: 1px solid rgba(215, 222, 232, 0.95);
  border-radius: 22px;
  box-shadow:
    0 28px 60px rgba(11, 18, 32, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  animation: floatY 7s ease-in-out infinite;
}

.ide {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f3f6fa);
}

.ide-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.ide-bar .dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #cbd5e1;
}

.ide-bar .dot:nth-child(1) { background: #ef4444; }
.ide-bar .dot:nth-child(2) { background: #f59e0b; }
.ide-bar .dot:nth-child(3) { background: #10b981; }

.ide-bar em {
  margin-left: 0.45rem;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace;
}

.ide-main {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  min-height: 9rem;
}

.ide-side {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.75rem 0.45rem;
  background: rgba(255, 255, 255, 0.7);
  border-right: 1px solid var(--line);
}

.ide-side i {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  margin-inline: auto;
  border-radius: 5px;
  background: #cbd5e1;
  font-style: normal;
}

.ide-side i.on {
  background: linear-gradient(145deg, #1d4ed8, #3b82f6);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}
.ide-side i:nth-child(2) { background: #7dd3fc; }
.ide-side i:nth-child(3) { background: #c4b5fd; }

.ide-editor {
  padding: 0.65rem 0.8rem 0.75rem;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(29, 78, 216, 0.09), transparent 55%),
    #fff;
}

.ide-file {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #bfdbfe;
  font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace;
}

.ide-code {
  margin: 0;
  font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre;
  overflow: hidden;
}

.ide-code .cmt { color: #7b8a9a; }
.ide-code .kw { color: #6d28d9; font-weight: 600; }
.ide-code .fn { color: #1d4ed8; font-weight: 600; }
.ide-code .nm { color: var(--sky); }
.ide-code .str { color: #0369a1; }

.ide-term {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.8rem;
  border-top: 1px solid #1e293b;
  background: linear-gradient(90deg, #0b1220, #172554);
  color: #94a3b8;
  font-size: 0.7rem;
  font-family: ui-monospace, "IBM Plex Mono", Consolas, monospace;
}

.ide-term .ok {
  color: #34d399;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.ide-term .caret {
  width: 0.38rem;
  height: 0.82rem;
  margin-left: 0.12rem;
  border-radius: 1px;
  background: #34d399;
  animation: caretBlink 1.1s step-end infinite;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 222, 232, 0.95);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: floatY 5.2s ease-in-out infinite;
}

.c1 { top: 0.15rem; left: 0; color: #1d4ed8; animation-delay: -0.8s; }
.c2 { top: 18%; right: -0.1rem; color: var(--sky); animation-delay: -1.5s; }
.c3 { top: 48%; right: -0.1rem; color: var(--violet); animation-delay: -2.2s; }
.c4 { bottom: 0.9rem; right: 0.35rem; color: var(--amber); animation-delay: -2.9s; }
.c5 { bottom: 0.9rem; left: 0.1rem; color: var(--rose); animation-delay: -3.5s; }
.c6 { top: 38%; left: -0.3rem; color: #7c3aed; animation-delay: -4.1s; }



/* Sections */
.section { padding: clamp(3.8rem, 9vw, 6rem) 0; }
.section-muted { background: var(--bg-soft); }

.section-head { margin-bottom: 2rem; }
.section-head h2,
.about h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-desc {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service {
  padding: 1.5rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition:
    transform .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .45s cubic-bezier(.22, 1, .36, 1),
    filter .45s ease,
    border-color .35s ease;
  will-change: transform;
}
.service:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--card-shadow-hover);
  filter: saturate(1.08);
  border-color: rgba(96, 165, 250, 0.45);
}
.service .service-icon {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.service:hover .service-icon {
  transform: translateY(-2px) scale(1.06);
}

.service-icon {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.service-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.service > p {
  margin: 0 0 1.1rem;
  color: var(--text-2);
  font-size: 0.96rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags span {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: inherit;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
}

.service.s1 {
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 55%, #f8fbff 100%);
  color: #1e40af;
  border-color: #bfdbfe;
}
.service.s1 .service-icon { color: #2f6bff; }
.service.s1 .tags span { color: #1e40af; }

.service.s2 {
  background: linear-gradient(160deg, #e0f2fe 0%, #f0f9ff 55%, #f8fcff 100%);
  color: #0369a1;
  border-color: #bae6fd;
}
.service.s2 .service-icon { color: #00a6ff; }
.service.s2 .tags span { color: #0369a1; }

.service.s3 {
  background: linear-gradient(160deg, #e0e7ff 0%, #eef2ff 55%, #f8f9ff 100%);
  color: #4338ca;
  border-color: #c7d2fe;
}
.service.s3 .service-icon { color: #5b6cff; }
.service.s3 .tags span { color: #4338ca; }

.service.s4 {
  background: linear-gradient(160deg, #ffe4ef 0%, #fff1f6 55%, #fff8fa 100%);
  color: #be185d;
  border-color: #fecdd3;
}
.service.s4 .service-icon { color: #ff2d92; }
.service.s4 .tags span { color: #be185d; }

.service.s5 {
  background: linear-gradient(160deg, #ffedd5 0%, #fff7ed 55%, #fffaf5 100%);
  color: #c2410c;
  border-color: #fed7aa;
}
.service.s5 .service-icon { color: #ff8a00; }
.service.s5 .tags span { color: #c2410c; }

.service.s6 {
  background: linear-gradient(160deg, #ede9fe 0%, #f5f3ff 55%, #faf9ff 100%);
  color: #6d28d9;
  border-color: #ddd6fe;
}
.service.s6 .service-icon { color: #8b5cf6; }
.service.s6 .tags span { color: #6d28d9; }

.service-web {
  grid-column: 1 / -1;
}

.web-split {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.web-split > div {
  padding: 0.95rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.web-split h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.web-split p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.web-split .tags span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.about {
  display: grid;
  gap: 1.6rem;
}
.about-text {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 38rem;
}
.about-points {
  display: grid;
  gap: 0.75rem;
}
.about-points > div {
  display: grid;
  gap: 0.25rem;
  padding: 1.05rem 1.15rem 1.05rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.about-points > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.about-points strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.about-points span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

html[data-theme="dark"] .about-points > div {
  background: #222;
  border-color: #3a3a3a;
  border-left-color: #6b8cce;
}
html[data-theme="dark"] .about-points strong {
  color: #f0f0f0;
}
html[data-theme="dark"] .about-points span {
  color: #a0a0a0;
}

.process {
  position: relative;
  display: grid;
  gap: 1rem;
}

.process-line {
  display: none;
}

.step {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.45rem 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.step:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.step-index {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
  color: #fff;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.25);
}

.step-index span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-phase {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.step-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.step-body > p {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.step-out {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.step-out li {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tech span {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.04);
  transition: border-color .2s, color .2s, transform .2s;
}
.tech span:hover {
  border-color: #93c5fd;
  color: var(--brand);
  transform: translateY(-2px);
}

.section-contact {
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.contact-panel {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.35rem);
  border-radius: 22px;
  border: 1px solid #bfdbfe;
  background:
    linear-gradient(145deg, #eff6ff 0%, #f8fbff 48%, #ffffff 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.contact-panel::before {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -4rem;
  top: -6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
  pointer-events: none;
}

.contact-copy-block {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}
.contact-copy-block .eyebrow {
  margin-bottom: 0.7rem;
}
.contact-copy-block h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.contact-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.contact-open {
  width: 100%;
  min-width: 0;
}
.contact-open[hidden] { display: none !important; }

.contact-qq {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.08);
  animation: qqReveal .45s cubic-bezier(.22, 1, .36, 1);
}
.contact-qq[hidden] {
  display: none !important;
}
@keyframes qqReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qq-icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f7fc;
  border: 1px solid #e2ebf5;
  box-shadow: none;
  overflow: hidden;
}
.qq-icon img {
  width: 78%;
  height: 78%;
  display: block;
  object-fit: contain;
}

.qq-meta span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.qq-meta strong {
  display: block;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.qq-actions {
  display: grid;
  gap: 0.65rem;
}
.qq-actions .btn {
  min-width: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .qq-actions .btn {
    width: auto;
    min-width: 10.5rem;
  }
}
.qq-tip {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer {
  padding: 1.5rem 0 calc(1.6rem + var(--safe));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
}
.footer-copy,
.footer-beian {
  margin: 0;
}
.footer-beian a {
  color: var(--muted);
  transition: color .15s;
}
.footer-beian a:hover {
  color: var(--brand);
}


@media (max-width: 380px) {
  .logo { max-width: 48vw; }
  .logo-img { height: 2.2rem; }
  .nav a { padding: 0.3rem 0.32rem; font-size: 0.8rem; }
  .theme-toggle { width: 2.1rem; height: 2.1rem; }
}

@media (min-width: 768px) {
  .nav { gap: 0.35rem; }
  .nav a { padding: 0.4rem 0.55rem; font-size: 0.9rem; }

  .hero { padding: calc(var(--header-h) + 4.5rem) 0 5rem; }
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .btn { width: auto; min-width: 10.5rem; }

  .service-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
  .service { min-height: 100%; }
  .service-web { grid-column: 1 / -1; }
  .web-split { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .about {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
  .about-points { grid-template-columns: 1fr; }

  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    padding-top: 0.5rem;
  }

  .process-line {
    display: block;
    position: absolute;
    top: 1.8rem;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.15), rgba(15, 118, 110, 0.45), rgba(15, 118, 110, 0.15));
    z-index: 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.95rem;
    min-height: 100%;
    padding-top: 1.55rem;
  }

  .step-index {
    position: relative;
    z-index: 1;
  }

  .contact { grid-template-columns: 1fr 1fr; }
  .contact-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2rem;
    padding: 2.4rem 2.5rem;
  }
  .contact-open {
    width: auto;
    min-width: 10.5rem;
    justify-self: start;
  }
}

@media (min-width: 1024px) {
  .hero-copy h1 { font-size: 3.25rem; }
  .hero-visual { margin-inline: 0 0; margin-left: auto; }
  .float-chip.c1 { left: -0.35rem; }
  .float-chip.c2 { right: -0.45rem; }
  .float-chip.c3 { right: -0.45rem; }
  .float-chip.c6 { left: -0.55rem; }
}

html[data-theme="dark"] .visual-card {
  background: #1f1f1f;
  border-color: #333;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .ide {
  background: linear-gradient(180deg, #242424, #1a1a1a);
}
html[data-theme="dark"] .ide-bar {
  background: rgba(36, 36, 36, 0.95);
}
html[data-theme="dark"] .float-chip {
  background: #1f1f1f;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .service-icon {
  background: #2a2a2a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .service.s1,
html[data-theme="dark"] .service.s2,
html[data-theme="dark"] .service.s3,
html[data-theme="dark"] .service.s4,
html[data-theme="dark"] .service.s5,
html[data-theme="dark"] .service.s6 {
  background: #1c1c1c;
  border-color: #333;
  color: #b8c4d4;
}
html[data-theme="dark"] .service.s1 .service-icon { color: #8aa4c8; }
html[data-theme="dark"] .service.s1 .tags span { color: #9eb0c4; }
html[data-theme="dark"] .service.s2 .service-icon { color: #7ea8b8; }
html[data-theme="dark"] .service.s2 .tags span { color: #92b4c0; }
html[data-theme="dark"] .service.s3 .service-icon { color: #9a96b0; }
html[data-theme="dark"] .service.s3 .tags span { color: #aeaac0; }
html[data-theme="dark"] .service.s4 .service-icon { color: #b88a8a; }
html[data-theme="dark"] .service.s4 .tags span { color: #c49a9a; }
html[data-theme="dark"] .service.s5 .service-icon { color: #c49a7a; }
html[data-theme="dark"] .service.s5 .tags span { color: #c8a88a; }
html[data-theme="dark"] .service.s6 .service-icon { color: #8b87a8; }
html[data-theme="dark"] .service.s6 .tags span { color: #a09cb8; }

html[data-theme="dark"] .service h3 { color: #ececec; }
html[data-theme="dark"] .service > p { color: #a8a8a8; }
html[data-theme="dark"] .service:hover {
  border-color: #4a4a4a;
  filter: none;
}

html[data-theme="dark"] .tags span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .contact-panel {
  background: #1c1c1c;
  border-color: #333;
}
html[data-theme="dark"] .contact-panel::before {
  background: radial-gradient(circle, rgba(120, 130, 150, 0.08), transparent 68%);
}
html[data-theme="dark"] .contact-qq {
  background: #242424;
  border-color: #3a3a3a;
}
html[data-theme="dark"] .step,
html[data-theme="dark"] .tech span {
  background: var(--surface);
}
html[data-theme="dark"] .btn-primary {
  background: #4a6fa5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .btn-primary:hover { background: #5a7fb5; }
html[data-theme="dark"] .btn-outline {
  background: #242424;
  border-color: #4a5568;
  color: #c8d0dc;
  box-shadow: none;
}
html[data-theme="dark"] .btn-outline:hover {
  background: #2c2c2c;
  border-color: #6b7a90;
  color: #e8eef8;
}
html[data-theme="dark"] .hero-glow {
  opacity: 0.35;
  filter: saturate(0.4);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .service:hover {
    transform: none;
  }
  .visual-card, .float-chip, .ide-term .caret {
    animation: none !important;
  }
}
