:root {
  --ink: #111111;
  --muted: #5a5a58;
  --paper: #ffffff;
  --card: #ffffff;
  --line: #e6e6e4;
  --green: #046c75;
  --blue: #0c7c86;
  --navy: #1a1d21;
  --navy-2: #243036;
  --danger: #9d2c2c;
  --ok: #0c7c86;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 "DengXian", "等线", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; font-weight: 700; color: #111; }
h1 { font-size: 2rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.45rem; margin: 0 0 1rem; }
p { margin: 0 0 0.8rem; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 32px)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; height: 64px; }
.brand-logo { height: 36px; width: auto; }
.logo {
  width: 42px; height: 42px; display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 8px; overflow: hidden; font-weight: 800; color: white;
}
.logo i { display: grid; place-items: center; font-style: normal; }
.logo i:first-child { background: var(--green); }
.logo i:last-child { background: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); letter-spacing: 0.08em; font-size: 0.72rem; }
#site-nav { display: flex; gap: 36px; align-items: stretch; height: 64px; }
#site-nav a {
  display: flex; align-items: center; color: #111; text-decoration: none;
  padding: 0 2px; margin-bottom: -1px; line-height: 1; font-size: 15px; font-weight: 600;
  border-bottom: 2px solid transparent;
}
#site-nav a.active, #site-nav a:hover { color: var(--ink); border-bottom-color: var(--green); }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 6px 10px; }

.hero { background: #ffffff; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: stretch; padding: 36px 0 8px; }
.hero h1 { font-size: 2.75rem; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12px; color: #111; }
.eyebrow {
  display: inline-block; color: #fff; background: #0c7f86;
  letter-spacing: 0; font-size: 14px; font-weight: 600; line-height: 1.4;
  margin: 0 0 14px; padding: 4px 10px; border-radius: 2px;
}
.lede { font-size: 15px; line-height: 1.6; color: var(--muted); }
.hero .lede { color: #4a5560; max-width: 36em; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin: 16px 0 0; }
.hero-actions .btn { line-height: 1.2; padding: 9px 16px; }
.hero-photo { position: relative; min-height: 100%; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  border-radius: 4px; border: 1px solid var(--line);
}
.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 14px 0 8px; }
.spec-row article { display: flex; align-items: center; gap: 12px; border: 1px solid #e3e3e1; border-radius: 2px; padding: 10px 14px; min-height: 62px; background: #fff; line-height: 1.3; }
.spec-ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--green); }
.spec-row article div { display: grid; gap: 2px; }
.spec-row strong { font-size: 15px; line-height: 1.35; }
.spec-row span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.kicker { margin: 0 0 10px; color: var(--green); font-size: 0.78rem; letter-spacing: 0.12em; }
.cap-intro .kicker { margin: 0; height: 22px; line-height: 22px; }
.cap-no { display: block; color: var(--green); font-weight: 700; font-size: 22px; line-height: 1; margin-bottom: 8px; }
.cap-intro h2 { font-size: 15px; line-height: 1.3; margin: 8px 0 0; white-space: nowrap; }
.cap-section { padding: 10px 0 4px; border-top: 1px solid var(--line); }
.cap-layout { display: grid; grid-template-columns: max-content repeat(5, 1fr); align-items: start; }
.cap-intro { padding-right: 20px; }
.cap-layout article { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 14px; background: transparent; }
.cap-layout h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.cap-layout p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.section-top { margin: 0 0 8px; text-align: right; }
.text-link { color: var(--green); text-decoration: none; }
.soft-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.soft-layout .card-grid { grid-template-columns: repeat(3, 1fr); }
.btn {
  display: inline-block; background: var(--green); color: white; text-decoration: none;
  border: 0; border-radius: 4px; padding: 10px 18px; cursor: pointer; font: inherit;
}
.btn:hover { background: #09656d; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #c5ced4; }
.btn-ghost:hover { background: #f4f7f8; }

.band { background: white; border-bottom: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
.facts span, .admin-facts span {
  background: #ffffff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; font-size: 0.92rem;
}
.section { padding: 28px 0; }
.home-gap { padding: 10px 0; }
.home-gap h2 { margin-bottom: 8px; }
.contact-panel { background: #f7f8f9; padding: 24px 28px; border-radius: 4px; }
.photo-block { padding: 8px 0 18px; }
.photo-block + .photo-block { padding-top: 0; }
.photo-block + .section:not(.photo-block) { padding-top: 8px; }
.contact-lead { padding-bottom: 8px; }
.contact-lead .catalog-title { margin-top: 0; }
.photo-block h2,
.photo-block .catalog-title { margin: 0 0 3px; }
.section-note { color: var(--muted); font-size: 0.92rem; }
.prose p { max-width: 78ch; }
.contact-intro p { max-width: none; }
.app-grid, .card-grid, .qual-grid, .photo-grid { display: grid; gap: 16px; }
.app-grid { grid-template-columns: repeat(3, 1fr); }
.app-grid article, .empty-panel, .map-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px;
}
.app-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; column-gap: 8px; }
.more-link { margin: 16px 0 0; text-align: right; }
.more-link a { color: var(--green); text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
.card {
  display: flex; flex-direction: column; background: white; color: inherit; text-decoration: none;
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line); min-height: 100%;
}
.card-shot { background: #101820; min-height: 160px; display: grid; }
.card-shot img { width: 100%; height: 180px; object-fit: cover; object-position: top; }
.no-photo { color: #9db0c2; display: grid; place-items: center; min-height: 160px; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card-body strong { font-size: 1.02rem; }
.card-body em { font-style: normal; color: var(--muted); font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hardware-banner {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 28px;
}
.hardware-banner h2, .hardware-banner p { color: var(--ink); }
.hardware-banner p { max-width: 68ch; margin: 0; }
.gap { margin-top: 2rem; }
.catalog-title {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 12px; padding: 8px 14px;
  background: #e7f4f5; border-left: 3px solid var(--green);
  font-size: 1.15rem; line-height: 1.3;
}
.catalog-title svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--green); }
h1.catalog-title { margin-top: 0; font-size: 1.7rem; }
.catalog-title.contact-title { margin: 0 0 3px; }
h2.subhead { background: #f3f4f6; border-left-color: #5c6770; margin-bottom: 6px; }
h2.subhead svg { color: #5c6770; }
.dl-cat {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 8px; padding: 6px 10px;
  background: #f3f4f6; border-left: 3px solid #5c6770;
  font-size: 1.05rem; line-height: 1.3;
}
.dl-cat svg { width: 20px; height: 20px; flex: 0 0 20px; color: #5c6770; }
.photo-grid { grid-template-columns: repeat(4, 1fr); }
.photo-grid figure { margin: 0; background: white; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photo-grid img { height: 160px; width: 100%; object-fit: cover; }
.photo-grid figcaption { padding: 8px 10px; font-size: 0.88rem; color: var(--muted); }
.shot-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 24px; }
.shot-row figure { width: 200px; margin: 0; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot-row img { width: 100%; height: 120px; object-fit: cover; object-position: top; }
.shot-row figcaption { padding: 6px 10px 0; font-size: 0.85rem; color: var(--muted); }
.shot-row form { padding: 6px 10px 10px; }
.qual-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; column-gap: 6px; }
/* 首页资质左列右缘对齐产品第 1 张卡片右缘，右列左缘对齐第 2 张卡片左缘 */
#qualifications .qual-grid {
  column-gap: 8px;
  grid-template-columns: calc(248px + (100% - 264px) / 3) minmax(0, 1fr);
}
.qual-grid section { background: white; border: 1px solid var(--line); border-radius: 4px; padding: 6px 16px 6px; }
.qual-grid ul { margin: 0 0 4px; }
.qual-grid ul, .feature-list { padding-left: 1.1rem; }
.qual-grid a { text-decoration: none; }
.qual-grid a:hover { text-decoration: underline; }

.product-detail .gallery { display: grid; gap: 12px; margin-top: 18px; }
.product-detail .gallery img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; }
.feature-list li { margin: 0.25rem 0; }
.env { color: var(--muted); }
.crumb { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 28px; align-items: stretch; }
.contact-side { position: relative; min-height: 100%; height: 100%; }
.leaflet-map { width: 100%; min-height: 320px; background: #d7e0e8; }
.contact-side .leaflet-map {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  border-radius: 4px;
}
#admin-map {
  width: 100%;
  height: 420px;
  min-height: 420px;
  margin: 4px 0 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #d7e0e8;
}
.contact-side .map-card { position: absolute; inset: 0; min-height: 0; height: 100%; }
.contact-side .section-note {
  position: absolute; left: 10px; bottom: 10px; z-index: 500; margin: 0;
  background: rgba(255,255,255,.92); padding: 2px 8px;
}
.map-card { background: white; color: var(--ink); min-height: 220px; display: grid; align-content: center; }
.map-card p { margin: 0 0 6px; font-size: 1.15rem; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea, .form select {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: white; font-weight: 400;
}
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: 12px; padding: 10px 14px; }
.notice.ok { background: #e5f6ea; color: var(--ok); }
.notice.err { background: #fdecec; color: var(--danger); }

.site-footer {
  background: #ffffff;
  color: #5c6770;
  padding: 0;
  border-top: 1px solid var(--line);
}
.footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  text-align: center;
  min-height: 64px;
  font-size: 15px;
  line-height: 1;
}
.footer-name { color: #5c6770; }
.site-footer a { color: #5c6770; text-decoration: none; }
.site-footer a.footer-name { text-decoration: underline; }
.site-footer a:hover { color: var(--green); }
.beian { white-space: nowrap; }
.hero-preview img {
  max-width: min(420px, 100%);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}
.leaflet-container img { max-width: none; }

.admin-body { background: #f7f8f6; }
.admin-wrap h1 { margin-top: 0; }
.grid { width: 100%; border-collapse: collapse; background: white; }
.grid th, .grid td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 10px; }
.grid th { background: #eef3f7; }
.grid button, .asset-edit button { font: inherit; margin-right: 6px; }
.asset-edit { list-style: none; padding: 0; }
.asset-edit li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.asset-edit form { margin: 0; }
.dl-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.dl-meta label { flex: 1; min-width: 160px; }
.dl-meta label.sort { flex: 0 0 100px; min-width: 100px; }
.dl-meta .ext { padding-bottom: 10px; color: var(--muted); }
.dl-card .copy-url { font-family: Consolas, "Courier New", monospace; }
.dl-card p { margin: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  #site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; height: auto; background: white; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  #site-nav a { margin-bottom: 0; padding: 10px 12px; }
  #site-nav.open { display: flex; }
  .hero-grid, .contact-grid, .app-grid, .card-grid, .qual-grid, .spec-row, .cap-layout, .soft-layout, .soft-layout .card-grid { grid-template-columns: 1fr; }
  #qualifications .qual-grid { grid-template-columns: 1fr; }
  .cap-layout article { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .cap-intro h2 { white-space: normal; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .hero { }
  .hero h1 { font-size: 2rem; }
  .contact-side { height: 280px; }
  .hero-photo { height: 220px; }
  .hero-photo img { position: static; height: 220px; }
  .hardware-banner { flex-direction: column; align-items: flex-start; }
  .brand-logo { height: 32px; }
  .footer-bar { gap: 6px 18px; }
  .beian { white-space: normal; }
}
