:root {
  --blue: #1662b4;
  --blue-dark: #0f4f96;
  --navy: #0f2a4d;
  --navy-2: #133a66;
  --ink: #1f2a37;
  --text: #4a5565;
  --muted: #7a8594;
  --line: #e3e8ef;
  --bg: #f1f5fa;
  --max: 1160px;
  --header-h: 44px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-x: clip;
}

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

button, input, select, textarea { font: inherit; color: inherit; }

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

h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

h1, h2, h3, h4 { line-height: 1.35; font-weight: 500; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
}

.skip:focus { top: 12px; }

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

.section { padding: 72px 0; }

.section-alt { background: var(--bg); }

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

.en {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title {
  position: relative;
  margin-top: 2px;
  padding-bottom: 16px;
  color: var(--blue);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 400;
}

.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--blue);
}

.section-head > p { color: var(--text); font-size: 14px; }

.arrow {
  display: inline-block;
  width: 18px;
  height: 10px;
  margin-left: 10px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}

a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--blue);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-line { background: #fff; color: var(--blue); }

.btn-line:hover { background: var(--blue); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }

.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Header：桌面只吸顶导航（JS fixed）；品牌区随页滚走 */
.site-header {
  z-index: 50;
  background: #fff;
}

.site-header.is-stuck .nav { box-shadow: 0 6px 20px rgba(15, 42, 77, 0.08); }

@media (min-width: 1024px) {
  .site-header.is-nav-fixed .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
  }

  /* 导航固定后占位，避免页面上跳 */
  .site-header.is-nav-fixed { padding-bottom: var(--header-h); }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 108px;
}

.brand { display: flex; align-items: center; min-width: 0; flex: 1; }

.brand img { width: auto; height: 72px; max-width: 220px; object-fit: contain; flex-shrink: 0; }

.brand-text {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
}

.brand-text strong { display: block; font-size: 40px; font-weight: 500; letter-spacing: 0.02em; }

.brand-text small { display: block; margin-top: 8px; color: var(--muted); font-size: 18px; letter-spacing: 0.06em; }

.search {
  display: flex;
  align-items: center;
  width: 218px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.search input::placeholder { color: var(--muted); }

.search input:focus { outline: none; }

.search:focus-within { border-color: var(--blue); }

.search button {
  height: 18px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle::before { top: 15px; }

.nav-toggle span { top: 21px; }

.nav-toggle::after { top: 27px; }

.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }

.nav-toggle[aria-expanded="true"] span { opacity: 0; }

.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.nav {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.nav > ul { display: flex; }

.nav > ul > li { position: relative; flex: 1; }

.nav > ul > li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: var(--line);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.has-sub > .nav-link::after {
  content: "";
  width: 5px;
  height: 5px;
  margin: -3px 0 0 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.6;
  transform: rotate(45deg);
}

.nav-link:hover { color: var(--blue); }

.nav-link.is-current { position: relative; z-index: 1; background: var(--blue); color: #fff; }

.sub {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px 0;
  background: #fff;
  border-top: 2px solid var(--blue);
  box-shadow: 0 12px 28px rgba(15, 42, 77, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }

.sub a {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  text-align: center;
  color: var(--text);
}

.sub a:hover, .sub a[aria-current="page"] { color: var(--blue); background: var(--bg); }

/* Page banner */
.page-hero { background: var(--bg); padding: 40px 0 28px; overflow: hidden; }

.page-hero .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

.page-hero .ph-title { position: relative; padding-bottom: 14px; line-height: 1.35; color: var(--blue); font-size: clamp(26px, 3vw, 32px); font-weight: 400; }

.page-hero .ph-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--blue); }

.page-hero .en { margin-top: 12px; }

.crumb { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 28px; color: var(--text); font-size: 12px; }

.crumb a:hover { color: var(--blue); }

.crumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }

/* CTA band */
.cta { background: var(--bg); padding: 36px 0; }

.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; }

.cta h2 { font-size: 20px; }

.cta p { color: var(--text); font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.cta .btn-row { flex: none; }

.cta p { max-width: 46em; }

.btn-row .btn { min-width: 104px; justify-content: space-between; }

/* 全站底部服务入口（参考稿） */
.pre-footer { background: #fff; padding: 48px 0 40px; }

.pre-footer .sgrid { gap: 16px; }

.pre-footer .scard {
  padding: 22px 56px 22px 22px;
  background: var(--bg);
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 13px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0 28px;
}

/* 应用领域 / 了解金东 整列右移约 4 个汉字 */
.footer-grid > div:not(.footer-brand) {
  padding-left: 4em;
}

.footer-brand strong { display: block; margin-bottom: 14px; color: #fff; font-size: 19px; font-weight: 400; }

.footer-domain { display: inline-block; margin-top: 18px; color: #fff; font-size: 16px; }

.site-footer h2 { margin-bottom: 12px; color: #fff; font-size: 15px; font-weight: 400; }

.site-footer li + li { margin-top: 4px; }

.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .footer-beian { color: inherit; }
.footer-bottom .footer-beian:hover { color: #fff; }

/* Entrance motion */
main { overflow-x: clip; }

.js .reveal { opacity: 0; transform: translateY(28px); }

.js .reveal.reveal-left { transform: translateX(-36px); }

.js .reveal.reveal-right { transform: translateX(36px); }

.js .reveal.reveal-zoom { transform: scale(0.96); }

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .page-hero .ph-title,
.js .page-hero .en,
.js .page-hero .crumb { animation: rise 0.8s var(--ease) both; }

.js .page-hero .en { animation-delay: 0.08s; }

.js .page-hero .crumb { animation-delay: 0.16s; }

.js .page-hero .ph-title::after { animation: grow 0.7s 0.3s var(--ease) both; transform-origin: left; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Tablet / phone：整头吸顶（菜单按钮在品牌区），抽屉导航仍全屏覆盖 */
@media (max-width: 1023px) {
  :root { --header-h: 88px; }

  .site-header {
    position: sticky;
    top: 0;
    transition: box-shadow 0.3s;
  }

  .site-header.is-stuck { box-shadow: 0 6px 20px rgba(15, 42, 77, 0.08); }

  .site-header.is-stuck .nav { box-shadow: none; }

  .header-top { height: 88px; gap: 16px; }

  .brand img { width: auto; height: 56px; max-width: 160px; }

  .brand-text { margin-left: 16px; padding-left: 16px; }

  .brand-text strong { font-size: 28px; letter-spacing: 0.01em; }

  .brand-text small { margin-top: 6px; font-size: 13px; letter-spacing: 0.04em; }

  .search { display: none; }

  .nav-toggle { display: block; margin-right: -10px; }

  .nav {
    position: fixed;
    z-index: 49;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.25s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s; }

  .js .reveal.reveal-left, .js .reveal.reveal-right { transform: translateY(28px); }

  .js .reveal.is-in.reveal-left, .js .reveal.is-in.reveal-right { transform: none; }

  .nav .search { display: flex; width: auto; height: 44px; margin: 16px 24px 4px; }

  .nav .search input { font-size: 15px; }

  .nav .search button { height: 22px; font-size: 14px; }

  .nav > ul { display: block; width: auto; margin: 0; padding: 0 24px 32px; }

  .nav > ul > li { border-bottom: 1px solid var(--line); }

  .nav > ul > li + li::before { display: none; }

  .nav-link { justify-content: flex-start; height: 52px; font-size: 16px; }

  .nav-link.is-current { background: none; color: var(--blue); }

  .has-sub > .nav-link::after { display: none; }

  .nav .sub,
  .nav .has-sub:hover > .sub,
  .nav .has-sub:focus-within > .sub {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
    padding: 0 0 12px;
    border-top: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
    transition: none;
  }

  .sub a { padding: 6px 0; text-align: left; font-size: 14px; }

  .sub a:hover, .sub a[aria-current="page"] { background: none; }

  body.nav-open { overflow: hidden; }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .nav .search { display: none; }
}

/* 中等桌面：避免大字号与搜索挤在一起 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-top { height: 96px; gap: 20px; }

  .brand img { width: auto; height: 64px; max-width: 200px; }

  .brand-text { margin-left: 18px; padding-left: 18px; }

  .brand-text strong { font-size: 34px; }

  .brand-text small { margin-top: 6px; font-size: 15px; }

  .search { width: 180px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }

  .container { width: calc(100% - 32px); }

  .section { padding: 48px 0; }

  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }

  .header-top { height: 80px; }

  .brand img { width: auto; height: 48px; max-width: 120px; }

  .brand-text { margin-left: 12px; padding-left: 12px; }

  .brand-text strong { font-size: 22px; letter-spacing: 0; }

  .brand-text small { margin-top: 4px; font-size: 11px; letter-spacing: 0.03em; }

  .nav { top: 80px; }

  .nav .search { margin: 16px 16px 4px; }

  .nav > ul { padding: 0 16px 32px; }

  .page-hero { padding: 28px 0 20px; }

  .page-hero .container { flex-direction: column; align-items: flex-start; }

  .crumb { padding-bottom: 0; }

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

  .btn-row { width: 100%; }

  .btn-row .btn { flex: 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 36px; }

  .footer-grid > .footer-brand { grid-column: 1 / -1; }

  .footer-grid > div:not(.footer-brand) { padding-left: 0; }

  .pre-footer { padding: 36px 0 28px; }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 360px) {
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}
