:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #647084;
  --line: #dbe3ee;
  --primary: #0b7cff;
  --accent: #20c7b6;
  --deep: #08182f;
  --warning: #ffb84d;
  --shadow: 0 18px 45px rgba(14, 35, 66, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, 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(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(219, 227, 238, .8);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--deep);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  color: #334056;
  font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: #edf5ff;
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
}

.hero-slider {
  position: relative;
  height: 640px;
  min-height: 520px;
  overflow: hidden;
  background: var(--deep);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .7s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-bottom: 28px;
}

.hero-content h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, .84);
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(11, 124, 255, .26);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
}

.btn-secondary {
  color: var(--deep);
  background: #e8f7f5;
}

.btn.full {
  width: 100%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 10, 24, .34);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.slider-btn.prev {
  left: 24px;
}

.slider-btn.next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
}

.slider-dots button.active {
  background: #fff;
}

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 0;
}

.stats-grid div {
  padding: 10px 0;
}

.stats-grid strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  line-height: 1.1;
}

.stats-grid span {
  color: var(--muted);
}

.section {
  padding: 84px 0;
}

.section.muted {
  background: #edf3f8;
}

.latest-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2,
.contact-panel h2,
.detail-content h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.list-card,
.side-panel,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
}

.feature-card a {
  display: block;
  height: 100%;
}

.card-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #087a70;
  background: #dcf7f4;
  font-size: 13px;
  font-weight: 800;
}

.card-body h3,
.case-main h3,
.side-panel h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.card-body p,
.case-main p,
.contact-panel p,
.detail-content p {
  color: var(--muted);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: 24px;
}

.case-main {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) 1fr;
  gap: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.case-main img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

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

.case-list a {
  display: block;
  min-height: 110px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-list strong,
.case-list span {
  display: block;
}

.case-list span {
  margin-top: 8px;
  color: var(--muted);
}

.contact-section {
  background: var(--deep);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  align-items: center;
  gap: 32px;
  padding: 36px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  outline-color: var(--primary);
}

.site-footer {
  color: rgba(255, 255, 255, .78);
  background: #071222;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-grid strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid span {
  display: block;
  text-align: right;
}

.footer-info {
  display: grid;
  gap: 4px;
}

.page-hero,
.detail-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 24, 47, .94), rgba(8, 24, 47, .72)),
    url("../images/banner-2.png") center/cover;
}

.page-hero.compact {
  padding: 88px 0;
}

.page-hero h1,
.detail-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.15;
}

.page-hero p:not(.eyebrow),
.detail-hero p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, .82);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.search-box input {
  width: 260px;
}

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

.list-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
}

.list-card[hidden] {
  display: none;
}

.list-card img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
  border-radius: 6px;
}

.list-card h2 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.3;
}

.list-card p {
  color: var(--muted);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-state.show {
  display: block;
}

.detail-banner {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(8, 24, 47, .48), rgba(8, 24, 47, .16)),
    url("../images/banner-2.png") center/cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-content,
.article-content,
.side-panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-content h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.25;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0 22px;
  margin: 12px 0 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.article-meta em {
  font-style: normal;
}

.article-body {
  color: var(--ink);
  font-size: 16px;
}

.article-body p {
  margin: 0 0 18px;
  color: #41506a;
  line-height: 1.9;
  text-align: justify;
}

.article-body h2 {
  margin: 30px 0 12px;
  font-size: 26px;
}

.article-body > div {
  margin: 26px 0;
}

.article-image-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.article-image-block img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
}

.image-caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.article-note {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #effbf9;
}

.article-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 18px;
}

.article-note p,
.article-text-card p,
.article-summary p {
  margin-bottom: 0;
}

.article-text-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.article-summary {
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0d3c66, #087a70);
}

.article-summary h2 {
  margin-top: 0;
  color: #fff;
}

.article-summary p {
  color: rgba(255, 255, 255, .86);
}

.detail-content h2 {
  margin-top: 30px;
  font-size: 28px;
}

.detail-section-title {
  padding-bottom: 22px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.detail-section-title h2 {
  margin: 6px 0 0;
  font-size: 32px;
}

.detail-content h2:first-child,
.detail-section-title + h2 {
  margin-top: 0;
}

.check-list {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-weight: 900;
}

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

.scenario-grid span {
  padding: 14px;
  border-radius: 6px;
  background: #edf5ff;
  color: #24415f;
  font-weight: 700;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.side-block {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.side-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.side-menu {
  display: grid;
  gap: 8px;
  padding: 8px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.side-menu a {
  padding: 10px 12px;
  border-radius: 5px;
  color: #334056;
  font-weight: 700;
}

.side-menu a:hover {
  color: var(--primary);
  background: #edf5ff;
}

.mini-product-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mini-product-list a {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfd;
}

.mini-product-list img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px;
}

.mini-product-list span {
  font-weight: 800;
  line-height: 1.35;
}

.card-grid.small .feature-card img {
  aspect-ratio: 1.65;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .hero-slider {
    height: 580px;
  }

  .stats-grid,
  .card-grid,
  .case-layout,
  .contact-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .case-main,
  .list-card {
    grid-template-columns: 1fr;
  }

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

  .contact-form {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    height: 64px;
  }

  .main-nav {
    top: 64px;
  }

  .hero-slider {
    height: 560px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .slider-btn {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 58px 0;
  }

  .section-head,
  .toolbar,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs,
  .search-box,
  .search-box input {
    width: 100%;
  }

  .tab {
    min-width: 0;
    flex: 1;
  }

  .footer-grid span {
    text-align: left;
  }

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

  .contact-panel,
  .detail-content,
  .article-content,
  .side-panel {
    padding: 22px;
  }

  .detail-banner {
    min-height: 220px;
  }
}
