:root {
  --ink: #172033;
  --muted: #647084;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --teal: #0f8f8c;
  --red: #c73b32;
  --gold: #b8841f;
  --green: #2f8f55;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #fff;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  margin-top: -3px;
  font-size: 10px;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.nav-toggle svg,
.button svg,
.card svg,
.product-copy svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 138px clamp(20px, 5vw, 72px) 34px;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("photo-1451187580459-43490279c0fa.avif");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(13, 26, 40, 0.88), rgba(13, 26, 40, 0.62) 48%, rgba(13, 26, 40, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-bottom: 128px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
}

.hero .eyebrow {
  color: #7ee7df;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 86px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(199, 59, 50, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.button.full {
  width: 100%;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(840px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(14, 27, 38, 0.58);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-height: 104px;
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 30px;
  line-height: 1.1;
}

.hero-panel span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  display: grid;
  gap: 16px;
  margin: 36px 0 0;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.band {
  background: var(--soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-head.split > p {
  max-width: 420px;
  margin-bottom: 5px;
  color: var(--muted);
}

.section-head.compact {
  margin-bottom: 24px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 238px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--teal);
}

.card:nth-child(2) svg {
  color: var(--red);
}

.card:nth-child(3) svg {
  color: var(--gold);
}

.card:nth-child(4) svg {
  color: var(--green);
}

.card p,
.case-list p,
.product-copy p {
  color: var(--muted);
}

.products {
  overflow: hidden;
}

.tab-list {
  display: inline-flex;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.tab {
  min-width: 74px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: var(--teal);
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.product-copy {
  min-height: 278px;
}

.product-copy h3 {
  font-size: 28px;
}

.product-copy ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.product-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.product-copy svg {
  color: var(--green);
}

.dashboard-preview {
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.preview-topbar span:nth-child(2) {
  background: var(--gold);
}

.preview-topbar span:nth-child(3) {
  background: var(--green);
}

.preview-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 342px;
}

.preview-sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(#eef4f7 18px, transparent 18px) 24px 34px / 70px 44px repeat-y;
}

.preview-main {
  padding: 34px;
}

.line {
  display: block;
  width: 62%;
  height: 14px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: #dce7ec;
}

.line.wide {
  width: 86%;
  height: 20px;
  background: #cbdde5;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0;
}

.metric-row b {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 8px;
  color: var(--teal);
  background: var(--soft);
  font-size: 24px;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 100px;
  padding-top: 10px;
}

.chart-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 5px 5px 0 0;
  background: var(--teal);
}

.chart-bars span:nth-child(2) {
  height: 72%;
  background: var(--red);
}

.chart-bars span:nth-child(3) {
  height: 48%;
  background: var(--gold);
}

.chart-bars span:nth-child(4) {
  height: 86%;
  background: var(--green);
}

.chart-bars span:nth-child(5) {
  height: 58%;
}

.chart-bars span:nth-child(1) {
  height: 38%;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-list article {
  min-height: 210px;
  padding: 28px;
  border-left: 4px solid var(--teal);
  background: #fff;
}

.case-list article:nth-child(2) {
  border-left-color: var(--red);
}

.case-list article:nth-child(3) {
  border-left-color: var(--gold);
}

.case-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.news-contact {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 76px);
}

.news-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--muted);
}

.news-item span {
  font-weight: 700;
}

.contact-block {
  padding: 32px;
  border-radius: 8px;
  color: #fff;
  background: #24303f;
}

.contact-block .eyebrow {
  color: #7ee7df;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #7ee7df;
}

.contact-form option {
  color: var(--ink);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #141a22;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1060px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-showcase,
  .intro,
  .news-contact {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 20px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 24px rgba(23, 32, 51, 0.12);
  }

  .site-nav.open {
    display: grid;
    gap: 14px;
  }

  .nav-cta {
    justify-content: center;
  }

  .hero {
    min-height: 88vh;
    padding-top: 118px;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-head.split {
    display: grid;
  }

  .case-list,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    min-height: 320px;
  }

  .preview-body {
    grid-template-columns: 82px 1fr;
    min-height: 272px;
  }

  .preview-main {
    padding: 24px;
  }

  .metric-row {
    grid-template-columns: 1fr;
    margin: 24px 0;
  }

  .metric-row b {
    min-height: 54px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .tab-list {
    width: 100%;
  }

  .tab {
    flex: 1;
  }

  .contact-block {
    padding: 24px;
  }
}
