:root {
  --blue: #1268f3;
  --blue-dark: #0b4fc3;
  --text: #101827;
  --muted: #667085;
  --line: #e4e9f2;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --dark: #070d16;
  --dark-2: #101b2a;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(16, 24, 39, 0.1);
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(16, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.header-dark {
  color: #fff;
  background: rgba(7, 13, 22, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.header-dark .brand small {
  color: rgba(255, 255, 255, 0.66);
}

.brand-logo {
  display: grid;
  width: 48px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #4b7da6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 27px 0 25px;
  color: rgba(16, 24, 39, 0.8);
}

.header-dark .site-nav a {
  color: rgba(255, 255, 255, 0.74);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 99px;
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: 0.2s ease;
}

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

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.phone-link {
  justify-self: end;
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  min-height: 680px;
  overflow: hidden;
}

.home-hero {
  color: #fff;
  background:
    radial-gradient(circle at 6% 12%, rgba(18, 104, 243, 0.28), transparent 32%),
    linear-gradient(105deg, #070d16 0%, #0a1220 42%, #101b2a 100%);
}

.light-hero,
.smart-hero {
  background: linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
}

.smart-hero {
  background: linear-gradient(180deg, #fff 0%, #f7f9fd 56%, #eef5ff 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: clamp(54px, 7vw, 108px) clamp(24px, 5vw, 88px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 850;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
}

.home-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(18, 104, 243, 0.28);
}

.btn-outline {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 104, 243, 0.35);
}

.btn-ghost-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.trust-row,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.trust-row span,
.proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.proof-row span {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.trust-row b {
  margin-right: 4px;
  color: #fff;
}

.hero-media {
  height: 100%;
  min-height: 540px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-dark {
  position: relative;
}

.media-dark::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #070d16 0%, rgba(7, 13, 22, 0.72) 10%, rgba(7, 13, 22, 0) 38%);
  content: "";
  pointer-events: none;
}

.warm-media img {
  object-position: center;
}

.section {
  padding: clamp(70px, 8vw, 116px) clamp(22px, 5vw, 80px);
}

.section-white {
  background: #fff;
}

.home-service-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 122px);
  padding-bottom: clamp(78px, 9vw, 132px);
  background:
    radial-gradient(circle at 14% 12%, rgba(18, 104, 243, 0.16), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(75, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, #f2f7ff 0%, #ffffff 48%, #f4f7fb 100%);
}

.home-service-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 104, 243, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 104, 243, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 76%, transparent 100%);
  pointer-events: none;
}

.home-service-section::after {
  position: absolute;
  top: -120px;
  right: 8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(18, 104, 243, 0.11);
  filter: blur(42px);
  content: "";
  pointer-events: none;
}

.home-service-section > * {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-label {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

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

.section-head p,
.split-section > div > p,
.contact-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
}

.service-card,
.topic-card,
.scene-card,
.process-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(16, 24, 39, 0.05);
}

.home-service-section .service-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(191, 210, 235, 0.76);
  box-shadow: 0 18px 42px rgba(16, 52, 103, 0.08);
  backdrop-filter: blur(14px);
}

.service-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 142px;
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  border-color: rgba(18, 104, 243, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-thumb {
  width: 112px;
  height: 86px;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.service-card h3,
.topic-card h3,
.scene-card h2,
.process-list h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.service-card p,
.topic-card p,
.scene-card p,
.process-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
  max-width: calc(var(--container) + 160px);
  margin: 0 auto;
  background: var(--soft);
}

.home-solution-section {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0;
  padding-right: max(clamp(22px, 5vw, 80px), calc((100vw - var(--container)) / 2));
  padding-left: max(clamp(22px, 5vw, 80px), calc((100vw - var(--container)) / 2));
  background:
    radial-gradient(circle at 18% 40%, rgba(18, 104, 243, 0.13), transparent 32%),
    radial-gradient(circle at 84% 34%, rgba(14, 165, 233, 0.1), transparent 30%),
    linear-gradient(180deg, #f4f7fb 0%, #eaf3ff 48%, #dcecff 100%);
}

.home-solution-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 104, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 104, 243, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  pointer-events: none;
}

.home-solution-section > * {
  position: relative;
  z-index: 1;
}

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

.process-list article {
  padding: 24px;
}

.process-list strong {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
}

.section-dark {
  color: #fff;
  background: linear-gradient(135deg, #07101d, #101b2a);
}

.case-strip {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  max-width: var(--container);
  margin: 0 auto;
  align-items: center;
}

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

.case-items span {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.contact-section {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.service-topic-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.92), rgba(226, 239, 255, 0.9)),
    url("assets/service-hero.png") center top / cover no-repeat;
}

.service-topic-section::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(18, 104, 243, 0.16), transparent 30%),
    radial-gradient(circle at 88% 28%, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(rgba(18, 104, 243, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 104, 243, 0.048) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  content: "";
  pointer-events: none;
}

.service-topic-section > * {
  position: relative;
  z-index: 1;
}

.topic-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(184, 207, 234, 0.82);
  box-shadow: 0 18px 44px rgba(16, 52, 103, 0.09);
  backdrop-filter: blur(14px);
}

.topic-wide {
  grid-column: span 3;
  min-height: 220px;
  padding-right: 260px;
}

.topic-visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 108px;
  margin: -4px 0 20px;
}

.topic-visual img {
  width: min(170px, 48%);
  height: 108px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 24px rgba(16, 52, 103, 0.13));
}

.topic-wide .topic-visual {
  position: absolute;
  right: 36px;
  bottom: 28px;
  width: 200px;
  height: 140px;
  margin: 0;
  justify-content: center;
}

.topic-wide .topic-visual img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.topic-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.topic-card li {
  position: relative;
  padding-left: 18px;
  color: #394152;
  font-size: 14px;
}

.topic-card li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.segment-tabs {
  display: flex;
  width: min(620px, 100%);
  margin: 0 auto 34px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 39, 0.08);
}

.segment {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #4b5565;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.segment.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(18, 104, 243, 0.22);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.smart-scene-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(226, 239, 255, 0.9)),
    url("assets/smart-home-hero.png") center center / cover no-repeat;
}

.smart-scene-section::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(18, 104, 243, 0.14), transparent 31%),
    radial-gradient(circle at 84% 24%, rgba(14, 165, 233, 0.11), transparent 32%),
    linear-gradient(rgba(18, 104, 243, 0.046) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 104, 243, 0.046) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  content: "";
  pointer-events: none;
}

.smart-scene-section > * {
  position: relative;
  z-index: 1;
}

.scene-card {
  min-height: 330px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(184, 207, 234, 0.82);
  box-shadow: 0 18px 44px rgba(16, 52, 103, 0.09);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.scene-card.featured {
  border-color: rgba(18, 104, 243, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.scene-visual {
  display: flex;
  align-items: center;
  height: 118px;
  margin: -4px 0 22px;
}

.scene-visual img {
  width: min(180px, 62%);
  height: 118px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 24px rgba(16, 52, 103, 0.13));
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mini-list span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #edf4ff;
  font-size: 13px;
  font-weight: 700;
}

.warm-section {
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 5vw, 80px);
  color: #7a8495;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a,
  .header-dark .site-nav a {
    padding: 13px 14px;
    color: var(--text);
  }

  .site-nav a::after {
    display: none;
  }

  .phone-link {
    display: none;
  }

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

  .home-hero .hero-media {
    order: -1;
  }

  .media-dark::before {
    background: linear-gradient(180deg, rgba(7, 13, 22, 0) 0%, #070d16 100%);
  }

  .service-grid,
  .topic-grid,
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-wide {
    grid-column: span 2;
  }

  .split-section,
  .case-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand strong {
    max-width: 230px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
  }

  .brand small {
    font-size: 11px;
  }

  .site-nav {
    top: 68px;
  }

  .brand-logo {
    width: 42px;
    height: 31px;
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 44px 20px 56px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 46px);
  }

  .hero-media {
    min-height: 320px;
  }

  .home-hero .hero-media {
    min-height: 300px;
  }

  .hero-actions,
  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 58px 20px;
  }

  .service-grid,
  .topic-grid,
  .scene-grid,
  .process-list,
  .case-items {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 104px 1fr;
    gap: 16px;
    min-height: 128px;
  }

  .service-thumb {
    width: 104px;
    height: 82px;
  }

  .topic-wide {
    grid-column: auto;
    min-height: 290px;
    padding-right: 28px;
  }

  .topic-wide .topic-visual {
    position: static;
    width: auto;
    height: 108px;
    margin: -4px 0 20px;
    justify-content: flex-start;
  }

  .topic-wide .topic-visual img {
    width: min(170px, 48%);
    height: 108px;
    object-position: left center;
  }

  .segment-tabs {
    border-radius: 8px;
  }

  .segment {
    min-height: 42px;
    font-size: 14px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}
