:root {
  --bg: #f4f7fa;
  --white: #ffffff;
  --ink: #101a24;
  --muted: #637487;
  --line: #dde6ee;
  --navy: #071522;
  --navy-2: #0d2a42;
  --teal: #12b99d;
  --teal-2: #dff8f3;
  --gold: #c9a25f;
  --shadow: 0 22px 60px rgba(7, 21, 34, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(7, 21, 34, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 5px 10px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.brand img {
  width: 154px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.nav a {
  padding: 8px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 34, 0.96) 0%, rgba(7, 21, 34, 0.78) 46%, rgba(7, 21, 34, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 21, 34, 0.1), rgba(7, 21, 34, 0.94)),
    url("./assets/gxyai/infrastructure.jpg") center / cover no-repeat;
  transform: scale(1.04);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 44px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.9vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  line-height: 1.25;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.btn-primary {
  background: var(--teal);
  color: #03151d;
}

.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 16, 26, 0.62);
  backdrop-filter: blur(14px);
}

.hero-panel b {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.18rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.68);
}

.section {
  padding: 104px 0;
}

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

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading-row {
  max-width: none;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: end;
}

.capability-section,
.product-section,
.project-section {
  background: var(--white);
}

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

.capability-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbfd);
}

.capability-grid span {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--teal);
  font-weight: 900;
}

.capability-grid h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.product-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(7, 21, 34, 0.06);
}

.product-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #edf2f6;
}

.product-card-large img {
  height: 390px;
  object-fit: contain;
  padding: 44px;
}

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

.product-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.solution-section {
  color: #fff;
  background: var(--navy);
}

.solution-section .section-heading p {
  color: rgba(255, 255, 255, 0.65);
}

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

.solution-grid article {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b2236;
}

.solution-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.solution-grid div {
  position: absolute;
  inset: auto 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(7, 21, 34, 0.96));
}

.solution-grid span {
  color: var(--teal);
  font-weight: 900;
}

.solution-grid h3 {
  margin: 10px 0 10px;
  font-size: 1.45rem;
}

.solution-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.project-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: center;
}

.project-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 900;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, 210px);
  gap: 14px;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.project-gallery img:first-child {
  grid-row: span 2;
}

.contact-section {
  padding: 82px 0;
  background: linear-gradient(135deg, #0b2135, #124869);
  color: #fff;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-card h2 {
  margin-bottom: 12px;
}

.contact-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.62);
  background: #06111c;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .product-card-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .solution-grid,
  .project-layout,
  .section-heading-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: absolute;
    background: rgba(7, 21, 34, 0.72);
  }

  .header-inner {
    height: auto;
    min-height: 68px;
  }

  .brand img {
    width: 124px;
  }

  .nav {
    gap: 12px;
    overflow-x: auto;
    padding: 14px 0;
    font-size: 0.82rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 21, 34, 0.82) 0%, rgba(7, 21, 34, 0.94) 66%, rgba(7, 21, 34, 1) 100%),
      url("./assets/gxyai/infrastructure.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding-top: 118px;
    padding-bottom: 36px;
    gap: 28px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
  }

  .hero-panel,
  .capability-grid,
  .product-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel article {
    padding: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .product-card-large {
    grid-column: auto;
  }

  .product-card img,
  .product-card-large img {
    height: 220px;
    padding: 0;
    object-fit: cover;
  }

  .product-card-large img {
    object-fit: contain;
    padding: 24px;
  }

  .solution-grid article {
    min-height: 330px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .project-gallery img,
  .project-gallery img:first-child {
    grid-row: auto;
    height: 220px;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
