:root {
  --color-primary: #FF9114;
  --color-primary-deep: #ff7a00;
  --color-text: #333333;
  --color-subtext: #9a9a9a;
  --color-white: #ffffff;
  --color-footer: #333333;
  --container-width: 1200px;
  --section-spacing: 96px;
  --shadow-soft: 0 18px 40px rgba(34, 58, 109, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: #ffffff;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 168px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav a {
  position: relative;
  padding: 32px 22px 28px;
  font-size: 20px;
  font-weight: 700;
  color: #444444;
  transition: color 0.2s ease;
}

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

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: translateX(-50%);
}

.hero-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 25%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0) 65%),
    url("../image/index/bannerBg.png") center top / cover no-repeat;
}

.hero-inner {
  min-height: 700px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 500px;
  padding-top: 12px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--color-primary);
  font-size: 55px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  margin: 28px 0 0;
  color: #333333;
  font-size: 26px;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  margin: 0 12px 8px 0;
  background: #8e8e8e;
  vertical-align: middle;
}

.hero-subtitle::after {
  margin: 0 0 8px 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  margin-top: 42px;
  padding: 18px 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF9114 0%, var(--color-primary-deep) 100%);
  color: #333333;
  font-size: 28px;
  box-shadow: 0 16px 30px rgba(255, 136, 25, 0.24);
}

.hero-cta::after {
  content: "\2192";
  margin-left: 8px;
  font-size: 24px;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-heading {
  margin-bottom: 56px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #3D3D3D;
  font-size: 40px;
  font-weight: 700;
}

.section-heading p {
  margin: 10px 0 0;
  color: #999999;
  font-size: 24px;
}

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

.service-tile {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-image 0.2s ease;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(53, 92, 145, 0.08) 0%, rgba(42, 57, 91, 0.34) 100%);
  transition: opacity 0.2s ease;
}

.service-web {
  background-image: url("../image/index/business/before01.png");
}

.service-site {
  background-image: url("../image/index/business/before02.png");
}

.service-system {
  background-image: url("../image/index/business/before03.png");
}

.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--color-white);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.service-overlay h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

.service-overlay p {
  margin: 18px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.service-web:hover {
  background-image: url("../image/index/business/after01.png");
}

.service-site:hover {
  background-image: url("../image/index/business/after02.png");
}

.service-system:hover {
  background-image: url("../image/index/business/after03.png");
}

.service-tile:hover::before {
  opacity: 0;
}

.service-tile:hover .service-overlay {
  opacity: 0;
  visibility: hidden;
}

.advantages-section {
  background: url("../image/index/banner1.png") center / cover no-repeat;
}

.advantages-mask {
  padding: 78px 0 92px;
  background: rgba(16, 38, 78, 0.38);
}

.section-heading-light h2,
.section-heading-light p {
  color: var(--color-white);
}

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

.advantage-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 24px 20px;
  background: rgba(30, 42, 66, 0.42);
  text-align: center;
  overflow: hidden;
}

.advantage-card img {
  width: min(100%, 168px);
  height: auto;
  margin: 0;
}

.advantage-card h3 {
  margin: 0;
  position: absolute;
  top: 70%;
  left: 50%;
  z-index: 1;
  width: 100%;
  padding: 0 28px;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  transform: translate(-50%, -50%);
  text-shadow: 0 4px 16px rgba(8, 19, 39, 0.45);
  pointer-events: none;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: #f7f7f7;
  box-shadow: var(--shadow-soft);
}

.case-card {
  background: #f7f7f7;
}

.case-main {
  display: grid;
  grid-template-rows: 370px 1fr;
  border-right: 1px solid #ededed;
  grid-row: span 2;
}

.case-main .case-media img {
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 28px 22px 34px;
  background: #f7f7f7;
}

.case-content h3,
.case-copy h3 {
  margin: 0 0 20px;
  color: #3D3D3D;
  font-size: 30px;
  font-weight: 700;
}

.case-content p,
.case-copy p {
  margin: 0;
  color: #3D3D3D;
  font-size: 16px;
  line-height: 1.9;
}

.case-side {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  min-height: 290px;
  border-bottom: 1px solid #ededed;
}

.case-side:last-child {
  border-bottom: 0;
}

.case-side-image img {
  height: 80%;
  object-fit: cover;
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: #f7f7f7;
}

.site-footer {
  padding: 44px 0 58px;
  background: var(--color-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 150px repeat(7, minmax(80px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 56px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 20px;
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 1280px) {
  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-cta {
    font-size: 24px;
  }
}

@media (max-width: 1080px) {
  :root {
    --section-spacing: 76px;
  }

  .nav-shell {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-nav a.is-active::after {
    left: 0;
    transform: none;
  }

  .hero-section {
    background-position: 68% top;
  }

  .hero-inner {
    min-height: 560px;
    align-items: flex-start;
    padding: 88px 0 64px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    white-space: normal;
  }

  .services-grid,
  .advantages-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-main {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid #ededed;
  }

  .footer-logo {
    width: 100%;
  }
}

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

  .site-header {
    position: static;
  }

  .site-logo {
    width: 108px;
  }

  .site-logo img {
    width: 100%;
  }

  .site-nav {
    gap: 8px 18px;
  }

  .site-nav a {
    padding: 6px 0 12px;
    font-size: 14px;
  }

  .hero-section {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 255, 255, 0.2) 100%),
      url("../image/index/bannerBg.png") 68% center / cover no-repeat;
  }

  .hero-inner {
    min-height: 460px;
    padding: 64px 0 52px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-subtitle::before,
  .hero-subtitle::after {
    width: 30px;
    margin-bottom: 5px;
  }

  .hero-cta {
    min-width: 160px;
    margin-top: 28px;
    padding: 14px 24px;
    font-size: 18px;
  }

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

  .section-heading h2 {
    font-size: 24px;
  }

  .services-grid,
  .advantages-grid,
  .footer-grid,
  .case-side {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 360px;
  }

  .advantage-card {
    min-height: auto;
  }

  .case-main {
    grid-template-rows: 240px 1fr;
  }

  .case-side {
    min-height: auto;
  }

  .case-side-image {
    order: -1;
  }

  .site-footer {
    padding: 36px 0 44px;
  }
}
