:root {
  --primary: #1a73e8;
  --primary-dark: #1558b0;
  --primary-soft: #e8f1fe;
  --accent: #00b8d9;
  --warning: #fbbc04;
  --bg: #f6f9fe;
  --surface: #ffffff;
  --surface-soft: #f2f6fc;
  --ink: #172033;
  --muted: #5d6b82;
  --line: #d9e3f2;
  --footer: #0f172a;
  --shadow-sm: 0 6px 18px rgba(20, 52, 92, 0.08);
  --shadow-md: 0 16px 38px rgba(20, 52, 92, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 52, 92, 0.16);
  --radius: 8px;
  --max: 1160px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

button {
  color: inherit;
}

::selection {
  color: #fff;
  background: var(--primary);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 227, 242, 0.86);
  box-shadow: 0 6px 22px rgba(22, 45, 79, 0.07);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease, height 0.2s ease;
}

.site-header.scrolled {
  height: 66px;
  box-shadow: 0 10px 28px rgba(22, 45, 79, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.92) 0 3px, transparent 4px),
    linear-gradient(135deg, #0b57d0 0%, var(--primary) 48%, var(--accent) 100%);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 12px 26px rgba(26, 115, 232, 0.28);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-left-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  transform: skew(-10deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  z-index: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 13px -13px 0 rgba(255, 255, 255, 0.4), 25px -3px 0 rgba(251, 188, 4, 0.85);
  transform: rotate(-24deg);
}

.brand-initials {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.brand-text {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

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

.site-nav a {
  padding: 9px 14px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: min(680px, calc(100svh - var(--header-height)));
  padding: clamp(78px, 12vw, 140px) clamp(22px, 6vw, 96px);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.32), transparent 28%),
    radial-gradient(circle at 14% 72%, rgba(0, 184, 217, 0.24), transparent 32%),
    linear-gradient(135deg, #0b57d0 0%, #1a73e8 45%, #69a7ff 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 22, 57, 0.42), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 820px;
  color: #fff;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.28);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  color: #fff;
  background: var(--footer);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
}

.stats-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -42px auto 0;
  padding: 0 20px;
}

.stats-strip div {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stats-strip div:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.stats-strip div:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stats-strip strong {
  display: block;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 8vw, 106px) 20px;
}

.section.tinted {
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.25;
}

p {
  color: var(--muted);
}

.section-heading p,
.detail-copy p,
.contact-info p,
.split-layout p {
  font-size: 17px;
}

.service-grid,
.deliverable-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.deliverable,
.capability,
.quote-panel,
.value-panel,
.contact-form,
.contact-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card {
  min-height: 270px;
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 115, 232, 0.28);
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.2);
}

.service-card p {
  margin: 14px 0 20px;
}

.service-card a {
  color: var(--primary);
  font-weight: 900;
}

.split-layout,
.service-detail,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 6vw, 74px);
}

.feature-image,
.detail-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
}

.timeline span,
.deliverable span,
.principle span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 900;
}

.timeline p,
.principle p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

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

.case-grid.compact {
  margin-top: 14px;
}

.case-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 115, 232, 0.24);
  box-shadow: var(--shadow-md);
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  background: #e8eef7;
}

.case-card div {
  padding: 22px;
}

.case-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.case-card h2,
.case-card h3 {
  margin: 0;
  font-size: 21px;
}

.case-card p {
  margin: 12px 0 0;
}

.case-card dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin: 18px 0 0;
}

.case-card dl div {
  padding: 12px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.case-card dt {
  color: var(--muted);
  font-size: 12px;
}

.case-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto 84px;
  padding: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #0f3f8f 0%, var(--primary) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 42px);
}

.page-hero {
  background:
    radial-gradient(circle at 82% 10%, rgba(26, 115, 232, 0.16), transparent 26%),
    linear-gradient(135deg, #eef5ff 0%, #ffffff 50%, #f4f9ff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 124px) 20px clamp(54px, 8vw, 86px);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(40px, 7vw, 72px);
}

.page-hero p:last-child {
  max-width: 740px;
  margin: 20px 0 0;
  font-size: 18px;
}

.service-detail {
  border-bottom: 1px solid var(--line);
}

.service-detail.reversed .detail-copy {
  order: 2;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 5px;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-box {
  display: inline-grid;
  gap: 4px;
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--primary-soft);
  border: 1px solid #c9ddff;
  border-radius: var(--radius);
}

.price-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.price-box strong {
  color: var(--primary);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.service-process,
.after-sale {
  margin-top: 28px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-process > strong,
.after-sale > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
}

.service-process ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-process li {
  position: relative;
  padding: 9px 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 7px;
  font-weight: 900;
}

.service-process li:not(:last-child)::after {
  content: ">";
  margin-left: 10px;
  color: var(--primary);
}

.after-sale p {
  margin: 0;
}

.detail-actions {
  margin-top: 28px;
}

.quote-panel {
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #0f172a 0%, #143c79 100%);
}

.quote-panel strong {
  color: #fff;
  font-size: 26px;
}

.quote-panel p {
  color: rgba(255, 255, 255, 0.8);
}

.deliverable,
.capability {
  padding: 24px;
}

.deliverable h3,
.capability h3 {
  margin-top: 22px;
}

.about-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
}

.value-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.value-panel div {
  padding: 28px;
  background: #fff;
}

.value-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.value-panel span {
  color: var(--muted);
}

.principle-list {
  display: grid;
  gap: 14px;
}

.principle {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.case-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 40px;
  padding: 8px 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

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

.contact-section {
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  align-items: start;
}

.contact-info,
.contact-form {
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-list div {
  padding: 16px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.contact-list strong,
.contact-list span {
  display: block;
}

.contact-list span {
  margin-top: 4px;
  color: var(--muted);
}

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

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.full-button,
.form-result {
  grid-column: 1 / -1;
}

label {
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 148px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.form-row small {
  min-height: 18px;
  color: #c2410c;
  font-size: 12px;
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
  border-color: #c2410c;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 900;
}

.form-result.success {
  color: #166534;
}

.form-result.error {
  color: #b42318;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--footer);
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer div:last-child {
  display: grid;
  align-content: start;
  gap: 8px;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .site-header.scrolled .site-nav {
    top: 66px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .stats-strip,
  .service-grid,
  .deliverable-grid,
  .capability-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .service-detail,
  .contact-section,
  .about-split {
    grid-template-columns: 1fr;
  }

  .service-detail.reversed .detail-copy {
    order: 0;
  }

  .cta-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer div:last-child {
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-text {
    font-size: 16px;
  }

  .home-hero {
    min-height: 560px;
    padding: 76px 20px 68px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-copy,
  .page-hero p:last-child {
    font-size: 17px;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    padding: 0;
  }

  .stats-strip div,
  .stats-strip div:first-child,
  .stats-strip div:last-child {
    border-radius: 0;
  }

  .section,
  .section.tinted {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .service-grid,
  .deliverable-grid,
  .capability-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card dl,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .cta-band {
    margin: 0 20px 64px;
    padding: 28px;
  }

  .hero-actions,
  .case-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .filter-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .brand-text {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .service-process ol {
    display: grid;
  }

  .service-process li:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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