:root {
  color-scheme: light;
  --ink: #0c1b2e;
  --muted: #5f7088;
  --line: #d9e4f2;
  --paper: #f4f8fc;
  --surface: #ffffff;
  --brand: #1267d8;
  --brand-strong: #0a4fb3;
  --brand-deep: #082b63;
  --brand-soft: #e8f1ff;
  --accent: #22c7f7;
  --accent-warm: #f4b544;
  --danger: #b54d35;
  --shadow: 0 18px 50px rgba(12, 27, 46, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }

img.image-loading {
  background:
    linear-gradient(100deg, #eef5ff 0%, #f8fbff 46%, #e9f2ff 82%);
  background-size: 220% 100%;
  animation: image-shimmer 1.2s ease-in-out infinite;
}
img.image-loaded {
  opacity: 1;
  transition: opacity 220ms ease;
}
@keyframes image-shimmer {
  100% { background-position: -220% 0; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 228, 242, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 230px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #0b4fb2, #1c8df6);
  box-shadow: 0 10px 24px rgba(18, 103, 216, 0.22);
  font-weight: 800;
}
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 0.98rem; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 0.76rem; margin-top: 0.1rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.95rem;
}
.nav-item { position: relative; }
.nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 8px;
  color: #26322e;
}
.nav-item.is-active > a {
  color: var(--brand-strong);
  background: var(--brand-soft);
}
.nav-item:not(.is-active) > a:hover {
  color: var(--brand-strong);
  background: transparent;
}
.nav-item:not(.is-active) > a:hover::after {
  position: absolute;
  right: 0.85rem;
  bottom: 5px;
  left: 0.85rem;
  height: 2px;
  content: "";
  background: var(--brand);
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 210px;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}
.nav-item:hover .nav-menu { display: grid; }
.nav-menu a {
  padding: 0.62rem 0.72rem;
  border-radius: 6px;
  color: var(--muted);
}
.nav-menu a:hover { color: var(--brand-strong); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  min-height: 620px;
  padding: 8rem 5vw 4rem;
  color: white;
  background:
    radial-gradient(circle at 76% 24%, rgba(34, 199, 247, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(5, 17, 38, 0.94), rgba(6, 26, 60, 0.62), rgba(5, 17, 38, 0.18)),
    var(--hero-image) center / cover no-repeat;
}
.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  background:
    linear-gradient(rgba(126, 196, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 196, 255, 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.55), transparent 74%);
}
.hero::after {
  background: linear-gradient(180deg, transparent 72%, rgba(244, 248, 252, 0.98) 100%);
}
.hero-content { max-width: 920px; }
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
}
.hero h1 {
  margin: 0 0 1rem;
  max-width: 920px;
  font-size: clamp(2.7rem, 5.5vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.hero h1 span { display: inline-block; }
.hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.hero-panel {
  justify-self: end;
  width: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(112, 205, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(9, 38, 81, 0.72), rgba(10, 79, 179, 0.28));
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}
.hero-panel strong { display: block; font-size: 1.2rem; }
.hero-panel span { color: rgba(255, 255, 255, 0.76); }

.button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--brand), #1c8df6);
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.button:hover,
.download-link:hover {
  color: white;
  background: linear-gradient(135deg, var(--brand-strong), #0d6ee8);
  border-color: var(--brand-strong);
  box-shadow: 0 12px 28px rgba(18, 103, 216, 0.26);
  transform: translateY(-1px);
}
.button:visited,
.download-link:visited { color: white; }
.button:focus-visible,
.download-link:focus-visible {
  outline: 3px solid rgba(34, 199, 247, 0.38);
  outline-offset: 3px;
}
.button-ghost {
  color: white;
  border-color: rgba(146, 218, 255, 0.66);
  background: rgba(18, 103, 216, 0.14);
}
.button-ghost:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(18, 103, 216, 0.42);
}
.button-light {
  color: var(--brand-strong);
  border-color: white;
  background: white;
}
.button-light:visited { color: var(--brand-strong); }
.button-light:hover {
  color: white;
  border-color: #9fd8ff;
  background: linear-gradient(135deg, #0a4fb3, #1c8df6);
}

.section,
.wide-media,
.content-layout {
  width: min(1180px, 90vw);
  margin: 0 auto;
}
.section { padding: 5.5rem 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-head span {
  color: var(--brand-strong);
  font-weight: 800;
}
.section-head h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.product-card,
.list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 8px 24px rgba(12, 27, 46, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.product-card:hover,
.list-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 103, 216, 0.42);
  box-shadow: var(--shadow);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 1.15rem;
  overflow: hidden;
}
.product-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
  background: #eef5ff;
}
.product-card span {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.product-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.wide-media {
  padding: 4rem 0;
}
.wide-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.08);
}
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, 90vw);
  margin: 0 auto 5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 30px rgba(12, 27, 46, 0.06);
}
.contact-strip div {
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}
.contact-strip div:last-child { border-right: 0; }
.contact-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}
.contact-strip strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.page-hero {
  padding: 6rem 5vw 3rem;
  background:
    radial-gradient(circle at 82% 20%, rgba(34, 199, 247, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #e9f2ff 62%, #f4f9ff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero.compact h1 {
  width: min(980px, 90vw);
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.page-hero.compact .eyebrow {
  width: min(980px, 90vw);
  margin-left: auto;
  margin-right: auto;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  padding: 4rem 0;
  align-items: start;
}
.content-layout.content-single {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}
.article-content,
.list-stack,
.content-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.article-content {
  padding: min(4vw, 3rem);
  overflow: hidden;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  line-height: 1.25;
  margin: 1.8rem 0 0.8rem;
}
.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child,
.article-content h4:first-child { margin-top: 0; }
.article-content p,
.article-content li { color: #34413c; }
.article-content ul { padding-left: 1.3rem; }
.article-content img {
  display: inline-block;
  margin: 0.75rem 0.5rem 0.75rem 0;
  border-radius: 8px;
}
.article-content .image.featured {
  display: block;
  margin: 0 0 1.5rem;
}
.article-content .image.featured img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f2f6f4;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.article-content td,
.article-content th {
  padding: 0.65rem;
  border: 1px solid var(--line);
}

.list-stack {
  display: grid;
  gap: 0;
  padding: 0.6rem;
}
.list-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 0.85rem;
  margin-bottom: 0.6rem;
}
.list-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #eef5ff;
}
.list-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(18, 103, 216, 0.18);
  border-radius: 6px;
  color: var(--brand-strong);
  background:
    radial-gradient(circle at 72% 24%, rgba(34, 199, 247, 0.18), transparent 26%),
    linear-gradient(rgba(126, 196, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 196, 255, 0.12) 1px, transparent 1px),
    #f3f8ff;
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-weight: 800;
}
.list-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.18rem;
  line-height: 1.3;
}
.list-card p {
  color: var(--muted);
  font-size: 0.94rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.8rem;
}
.pagination a,
.pagination span {
  min-width: 40px;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}
.pagination span {
  color: var(--muted);
  background: #f2f6f4;
}
.pagination a:hover {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.content-sidebar {
  position: sticky;
  top: 94px;
  padding: 1rem;
}
.content-sidebar section + section { margin-top: 1.2rem; }
.content-sidebar h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}
.content-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.content-sidebar li + li { border-top: 1px solid var(--line); }
.content-sidebar a {
  display: block;
  padding: 0.62rem 0;
  color: var(--muted);
}
.content-sidebar a:hover { color: var(--brand-strong); }
.content-sidebar footer a {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 0.7rem;
  border-radius: 8px;
  color: white;
  background: var(--brand);
}
.content-sidebar footer a:hover,
.content-sidebar footer a:focus-visible {
  color: white;
  background: linear-gradient(135deg, var(--brand-strong), #0d6ee8);
}

.my-map {
  width: 100% !important;
  height: 320px !important;
  margin-top: 1.5rem !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  background:
    radial-gradient(circle at 28% 34%, rgba(34, 199, 247, 0.22), transparent 22%),
    linear-gradient(rgba(143, 195, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 195, 255, 0.13) 1px, transparent 1px),
    linear-gradient(135deg, #071d42, #0b3c84);
  background-size: auto, 42px 42px, 42px 42px, auto;
}
.my-map::before {
  position: absolute;
  inset: 1.25rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid rgba(159, 216, 255, 0.32);
  border-radius: 8px;
  color: white;
  text-align: center;
  content: "北京艾法斯特科技发展有限公司\A北京市丰台区科学城 百强大道 6 号院 6 号楼 102 室";
  white-space: pre-line;
  background: rgba(6, 28, 63, 0.62);
}
.my-map.map-loaded::before { display: none; }
.my-map .amap-container { position: relative; z-index: 1; }

.contact-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.contact-summary div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.contact-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-summary strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.cta-band {
  padding: 3rem 5vw;
  color: white;
  background:
    radial-gradient(circle at 88% 50%, rgba(34, 199, 247, 0.28), transparent 22%),
    linear-gradient(135deg, var(--brand-deep), var(--brand-strong));
}
.cta-band div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, 90vw);
  margin: 0 auto;
}
.cta-band .button {
  min-width: 132px;
  white-space: nowrap;
}
.cta-band p {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.site-footer {
  padding: 3rem 5vw 2rem;
  color: #dce6e1;
  background: #071326;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  width: min(1180px, 90vw);
  margin: 0 auto;
}
.site-footer h3 {
  color: white;
  margin: 0 0 0.8rem;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-block;
  padding: 0.18rem 0;
  color: #c4d1cb;
}
.site-footer a:hover { color: white; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  width: min(1180px, 90vw);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #aebdb7;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .site-header { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    max-height: calc(100vh - 68px);
    padding: 0.8rem 5vw 1.4rem;
    overflow-y: auto;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .site-nav { display: grid; }
  .nav-item > a {
    width: 100%;
    justify-content: space-between;
  }
  .nav-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.5rem 1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 560px;
    padding-top: 7rem;
  }
  .hero-panel { justify-self: start; max-width: 360px; margin-top: 2rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { padding: 0 1rem; }
  .brand { min-width: 0; }
  .brand strong { font-size: 0.88rem; }
  .hero {
    min-height: 580px;
    padding: 6.5rem 1.1rem 2.5rem;
  }
  .hero h1 { font-size: 2.55rem; }
  .section,
  .wide-media,
  .content-layout { width: min(100% - 2rem, 1180px); }
  .section-head { display: block; }
  .product-grid,
  .contact-strip,
  .contact-summary,
  .footer-grid { grid-template-columns: 1fr; }
  .contact-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-strip div:last-child { border-bottom: 0; }
  .list-card { grid-template-columns: 1fr; }
  .page-hero { padding: 4rem 1rem 2rem; }
  .article-content { padding: 1.1rem; }
  .article-content img[style] { max-width: 100% !important; }
  .cta-band div { display: grid; width: 100%; }
}
