:root {
  color-scheme: light;
  --bg: #f5f9ff;
  --ink: #132238;
  --muted: #64748b;
  --line: #d7e3f3;
  --panel: #ffffff;
  --teal: #2563eb;
  --teal-dark: #1e3a8a;
  --sky: #dbeafe;
  --ice: #eff6ff;
  --lime: #7dd3fc;
  --gold: #93c5fd;
  --rose: #60a5fa;
  --shadow: 0 22px 60px rgba(30, 64, 175, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(245, 249, 255, 0.92);
  border-bottom: 1px solid rgba(215, 227, 243, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 154px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta,
.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.secondary-button {
  background: #fff;
  color: var(--teal-dark);
  border-color: var(--line);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) 42px;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.92) 42%, rgba(238, 246, 255, 0.48) 100%),
    url("assets/hero-bg-ad.jpg") right top / min(58vw, 980px) auto no-repeat,
    radial-gradient(circle at 78% 12%, rgba(147, 197, 253, 0.34), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 720px;
  color: #475569;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.proof-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-strip strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.proof-strip span {
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.hero-photo,
.image-row figure,
.insight-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(215, 227, 243, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-photo {
  min-height: 300px;
  aspect-ratio: 1.36 / 1;
}

.hero-photo img,
.image-row img,
.insight-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero-photo::after,
.image-row figure::after,
.insight-photo::after,
.case-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(14, 33, 66, 0.64), rgba(37, 99, 235, 0.22));
}

.hero-photo figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 16px;
  color: white;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.hero-photo figcaption strong {
  font-size: 20px;
}

.hero-photo figcaption span {
  color: rgba(255, 255, 255, 0.78);
}

.screen-shell {
  padding: 14px;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.screen-top {
  display: flex;
  gap: 7px;
  padding: 4px 4px 14px;
}

.screen-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
}

.screen-top span:nth-child(2) {
  background: var(--gold);
}

.screen-top span:nth-child(3) {
  background: var(--rose);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  aspect-ratio: 1 / 0.9;
}

.metric-panel,
.chart-panel,
.task-panel {
  min-height: 160px;
  padding: 18px;
  background: var(--ice);
  border-radius: 8px;
}

.metric-panel span,
.metric-panel em {
  display: block;
  color: #64748b;
  font-style: normal;
}

.metric-panel strong {
  display: block;
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.metric-panel.dark {
  background: var(--teal);
  color: white;
}

.metric-panel.dark span,
.metric-panel.dark em {
  color: rgba(255, 255, 255, 0.78);
}

.chart-panel {
  display: flex;
  align-items: end;
  gap: 10px;
  background: #fff;
}

.chart-panel span {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--lime), var(--teal));
}

.task-panel {
  background: #dbeafe;
}

.task-panel p {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-weight: 700;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 940px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

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

.service-card,
.case-card,
.timeline article,
.lead-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.07);
}

.service-card {
  padding: 28px;
}

.visual-service-card {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(37, 99, 235, 0.48)),
    url("assets/case-development.jpg") center / cover;
}

.visual-service-card p,
.visual-service-card li {
  color: rgba(255, 255, 255, 0.8);
}

.visual-service-card .service-icon {
  color: #bfdbfe;
}

.service-card.accent {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
}

.service-card.accent p,
.service-card.accent li {
  color: rgba(255, 255, 255, 0.76);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--teal);
  font-weight: 900;
}

.accent .service-icon {
  color: #bfdbfe;
}

.service-card p,
.case-card p,
.timeline p {
  color: var(--muted);
}

.service-card ul {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.image-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.image-row figure {
  min-height: 230px;
}

.image-row figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 11px;
  color: white;
  background: rgba(15, 23, 42, 0.52);
  border-radius: 8px;
  font-weight: 800;
}

.geo-tool {
  background: #f8fbff;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.tool-panel,
.tool-steps article,
.platform-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.07);
}

.tool-panel {
  padding: 30px;
}

.primary-tool {
  background: linear-gradient(135deg, #132238, #2563eb);
  color: white;
}

.primary-tool p,
.primary-tool li {
  color: rgba(255, 255, 255, 0.78);
}

.tool-panel ul {
  margin: 24px 0 0;
  padding-left: 18px;
}

.tool-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tool-steps article,
.platform-grid article {
  padding: 22px;
}

.tool-steps strong {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 900;
}

.tool-steps p,
.platform-grid p {
  color: var(--muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cases-section {
  background: #eaf3ff;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.case-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.case-tabs button.active {
  background: var(--teal-dark);
  color: #fff;
  border-color: var(--teal-dark);
}

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

.case-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.case-card:hover,
.case-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case-thumb {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 18px;
  color: white;
  background: var(--case-bg, linear-gradient(135deg, #2563eb, #132238));
}

.case-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-thumb span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
}

.case-body {
  padding: 20px;
}

.case-body p {
  min-height: 50px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tags span {
  padding: 5px 8px;
  background: #eff6ff;
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 13px;
}

.case-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 24px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--teal-dark);
  font-weight: 900;
}

.insight-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 40px;
  background: #0f172a;
  color: white;
  align-items: center;
}

.insight-photo {
  min-height: 360px;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.14);
}

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

.insight-list p {
  margin: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.ai-readable {
  background: linear-gradient(180deg, #f5f9ff 0%, #eaf3ff 100%);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.ai-grid article,
.faq-list details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.06);
}

.ai-grid article {
  padding: 22px;
}

.ai-grid p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-size: 22px;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fbfdff;
  color: var(--ink);
}

.lead-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.case-modal[hidden] {
  display: none;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 18, 0.58);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.modal-hero {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  margin: -28px -28px 24px;
  padding: 26px;
  color: white;
  background: var(--case-bg);
}

.modal-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(37, 99, 235, 0.22));
}

.modal-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.modal-hero h2 {
  position: relative;
  z-index: 1;
}

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

.modal-grid div {
  padding: 14px;
  background: #f3f6f2;
  border-radius: 8px;
}

.modal-grid strong {
  display: block;
  font-size: 22px;
}

@media (max-width: 980px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.menu-open .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-header.menu-open .site-nav a {
    padding: 12px 0;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero,
  .contact,
  .insight-band {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid,
  .timeline,
  .image-row,
  .ai-grid,
  .platform-grid,
  .tool-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 64px;
  }

  .brand-logo {
    width: 132px;
    height: 42px;
  }

  .site-header.menu-open .site-nav {
    top: 64px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 42px;
  }

  .proof-strip,
  .service-grid,
  .case-grid,
  .timeline,
  .dashboard-grid,
  .modal-grid,
  .image-row,
  .ai-grid,
  .platform-grid,
  .tool-steps {
    grid-template-columns: 1fr;
  }

  .metric-panel,
  .chart-panel,
  .task-panel {
    min-height: 130px;
  }

  .site-footer {
    display: grid;
  }
}
