/* 玄墨信息科技：科技蓝、浅色主体。无外部资源，只用各平台自带字体。 */

:root {
  --brand: #1d5ff0;
  --brand-strong: #1546c2;
  --brand-soft: #eaf1ff;
  --sky: #13a8e8;
  --navy: #0b2563;
  --heading: #0f2552;
  --text: #3b4a63;
  --muted: #6b7a90;
  --line: #e2e8f2;
  --bg: #f5f8fd;
  --surface: #ffffff;
  --shadow: 0 1px 2px rgba(15, 37, 82, 0.05), 0 10px 30px rgba(15, 37, 82, 0.07);
  --shadow-hover: 0 4px 10px rgba(15, 37, 82, 0.06), 0 20px 44px rgba(29, 95, 240, 0.16);
  --radius: 16px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.35;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-xs {
  width: 16px;
  height: 16px;
}

/* ---------- 顶部导航 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

.brand-name {
  color: var(--heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

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

.menu a {
  position: relative;
  padding: 8px 16px;
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.2s;
}

.menu a:hover {
  color: var(--brand);
}

.menu a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -17px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}

/* ---------- 首页大横幅 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 30%, rgba(56, 189, 248, 0.45) 0, transparent 42%),
    radial-gradient(circle at 5% 100%, rgba(29, 95, 240, 0.6) 0, transparent 45%),
    linear-gradient(125deg, #0b2563 0%, #1546c2 48%, #1d8fe0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 600px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 5px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-shadow: 0 8px 30px rgba(5, 20, 70, 0.35);
}

.hero-lead {
  max-width: 32em;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 12px 30px rgba(5, 20, 70, 0.25);
}

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

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(5, 20, 70, 0.35));
}

/* ---------- 二级页横幅 ---------- */

.banner {
  position: relative;
  overflow: hidden;
  padding: 72px 0 76px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.45) 0, transparent 40%),
    linear-gradient(125deg, #0b2563 0%, #1546c2 55%, #1d8fe0 100%);
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.banner .container {
  position: relative;
}

.kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.24em;
}

.banner h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.06em;
}

.banner-desc {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 88px 0;
}

.section-tint {
  background: linear-gradient(180deg, #eaf1fd 0%, var(--bg) 100%);
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.06em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 业务卡片 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 34px 28px 28px;
  color: var(--text);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #c7d8fb;
  box-shadow: var(--shadow-hover);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #e3f5fd);
  color: var(--brand);
}

.service-icon-lg {
  width: 64px;
  height: 64px;
}

.service-icon-lg .icon {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin: 22px 0 10px;
  font-size: 21px;
}

.service-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.more,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

/* 合作方式 */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #b9cdf7 0 8px, transparent 8px 16px);
}

.step {
  position: relative;
  text-align: center;
}

.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cfdcfa;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(29, 95, 240, 0.12);
}

.step-no {
  position: absolute;
  top: -6px;
  left: calc(50% + 18px);
  z-index: 1;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
}

.step h3 {
  margin: 20px 0 8px;
  font-size: 19px;
}

.step p {
  max-width: 15em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}

/* 原则 */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principle {
  padding: 34px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.principle .icon {
  width: 34px;
  height: 34px;
  color: var(--brand);
}

.principle h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

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

/* 行动号召 */
.cta {
  padding: 0 0 96px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 52px;
  padding-bottom: 52px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.5) 0, transparent 45%),
    linear-gradient(125deg, #0b2563 0%, #1546c2 60%, #1d8fe0 100%);
  box-shadow: 0 24px 50px rgba(21, 70, 194, 0.25);
  max-width: 1152px;
  padding-left: 56px;
  padding-right: 56px;
}

.cta h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
}

.cta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 业务领域页 ---------- */

.service-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-detail {
  padding: 40px 40px 36px;
  scroll-margin-top: 96px;
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.kicker-dark {
  margin: 0;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.service-detail h2 {
  margin: 2px 0 0;
  font-size: 26px;
}

.service-desc {
  margin: 22px 0 18px;
  color: var(--text);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--heading);
  font-size: 15.5px;
}

.check-list .icon {
  color: var(--brand);
}

/* ---------- 关于我们 / 联系我们 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.about-text,
.fact-card,
.contact-card,
.contact-note {
  padding: 40px;
}

.about-text h2,
.fact-card h2,
.contact-note h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.about-text p {
  margin: 0 0 16px;
  font-size: 16.5px;
}

.facts {
  display: grid;
  gap: 4px;
  margin: 0;
}

.fact {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.fact:last-child {
  border-bottom: 0;
}

.fact .icon {
  margin-top: 2px;
  color: var(--brand);
}

.fact dt {
  color: var(--muted);
  font-size: 14px;
}

.fact dd {
  margin: 2px 0 0;
  color: var(--heading);
  font-size: 16px;
  font-weight: 600;
  word-break: break-all;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card h2 {
  margin: 22px 0 8px;
  font-size: 24px;
}

.contact-note p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-top: 60px;
  padding-bottom: 44px;
}

.footer-about p {
  max-width: 26em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.footer h2 {
  margin: 6px 0 16px;
  font-size: 16px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
  font-size: 14.5px;
}

.footer li a {
  color: var(--muted);
}

.footer li a:hover {
  color: var(--brand);
}

.footer-addr {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.footer-bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--brand);
}

.footer-bottom .dot {
  margin: 0 12px;
  opacity: 0.6;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .hero-svg {
    max-width: 420px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .principles,
  .service-details,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 4px;
    padding-top: 12px;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-name {
    font-size: 17px;
  }

  .menu {
    width: 100%;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

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

  .menu a {
    padding: 8px 12px;
    font-size: 15px;
  }

  .menu a[aria-current="page"]::after {
    left: 12px;
    right: 12px;
    bottom: 0;
  }

  .section {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 48px 0 52px;
  }

  .service-detail,
  .about-text,
  .fact-card,
  .contact-card,
  .contact-note {
    padding: 28px 22px;
  }

  .cta-inner {
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .btn {
    transition: none;
  }
}
