:root {
  --red: #e21e26;
  --red-dark: #b4151c;
  --navy: #003b76;
  --ink: #171717;
  --muted: #6b6560;
  --line: #e6e1da;
  --paper: #f6f4f0;
  --card: #fff;
  --dark: #0f1724;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
}
.skip:focus { top: 8px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  height: auto;
  padding: 10px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(280px, 58vw);
}
.logo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}
.logo-text strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.logo-text span {
  color: var(--red);
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; color: #333; font-size: 15px; }
.nav a.on, .nav a:hover { color: var(--red); }
.nav-cta {
  margin-left: 8px;
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 2px;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-phone { color: var(--navy) !important; font-weight: 600; letter-spacing: .02em; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.flash { margin: 18px 0 0; padding: 12px 16px; background: #eef8ef; border: 1px solid #c8e6cc; color: #146c2e; }
.flash-err { background: #fdecec; border-color: #f3c1c1; color: #9b1c1c; }

.hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 48px solid rgba(196, 18, 22, .35);
  transform: rotate(18deg);
  pointer-events: none;
}
.hero-slide { display: none; padding: 72px 0 36px; }
.hero-slide.on { display: block; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.25);
  color: #f0d0d1;
  font-size: 13px;
  letter-spacing: .04em;
}
.hero h1, .hero .hero-heading { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.12; font-weight: 700; letter-spacing: .02em; }
.hero-sub { margin: 14px 0 0; font-size: 20px; color: #f3c7c8; }
.hero-desc { margin: 18px 0 0; max-width: 560px; color: rgba(255,255,255,.74); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual { position: relative; z-index: 1; }
.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #1c1c1f;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-visual::after {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 72px;
  height: 72px;
  background: var(--red);
  z-index: -1;
}
.hero-dots { display: flex; gap: 8px; padding: 8px 0 52px; position: relative; }
.hero-dots button {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.28);
  cursor: pointer;
}
.hero-dots button.on { background: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { border-color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.notice-bar { background: #003b76; color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; letter-spacing: .02em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--red); }
.card-actions { margin-top: 12px; display: flex; gap: 10px; }

.stats { margin-top: -28px; position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #fff;
  border: 1px solid var(--line);
}
.stats-grid div { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { display: block; color: var(--red); font-size: 26px; line-height: 1.2; font-weight: 700; }
.stats-grid span { color: var(--muted); font-size: 13px; }

.section { padding: 84px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.kicker { margin: 0 0 6px; color: var(--red); font-size: 12px; letter-spacing: .18em; }
.section h2, .page-hero h1, .detail h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.25; font-weight: 700; }
.section-head p, .lead { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.link-more { color: var(--red); white-space: nowrap; }

.cat-grid, .card-grid, .adv-grid, .process-grid, .info-grid, .qc-grid { display: grid; gap: 18px; }
.cat-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.cat-card, .card, .adv-card, .process-card, .info-card, .qc-item, .panel {
  background: var(--card);
  border: 1px solid var(--line);
}
.cat-card { display: block; padding: 22px 20px; min-height: 148px; }
.cat-card:hover, .card:hover { border-color: #d7c8c8; }
.cat-card strong { display: block; font-size: 18px; margin-bottom: 8px; }
.cat-card span, .muted { color: var(--muted); font-size: 14px; }
.cat-card.on { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }

.card-grid { grid-template-columns: repeat(3, 1fr); }
.card-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 16px 16px 18px; }
.card-body h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.4; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { color: var(--red); font-size: 12px; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { background: #f3f0eb; color: #444; font-size: 12px; padding: 3px 8px; }

.adv-grid, .process-grid { grid-template-columns: repeat(4, 1fr); }
.process-grid { grid-template-columns: repeat(3, 1fr); }
.adv-card, .process-card { padding: 26px 22px 28px; }
.adv-card b, .process-card em {
  display: block;
  color: var(--red);
  font-style: normal;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 14px;
}
.adv-card h3, .process-card h3 { margin: 0 0 8px; font-size: 18px; }
.adv-card p, .process-card p { margin: 0; color: var(--muted); font-size: 14px; }
.process-card li { margin: 6px 0; color: #333; font-size: 14px; }
.process-card ul { margin: 0; padding-left: 18px; }

.band { background: var(--dark); color: #fff; }
.band .section-head p, .band .lead { color: rgba(255,255,255,.7); }
.cta { text-align: center; padding: 72px 0; }
.cta h2 { font-size: 32px; margin: 0 0 10px; }
.cta p { margin: 0 0 22px; color: rgba(255,255,255,.72); }

.page-hero { position: relative; background: var(--dark) url('../img/a/inner_hero.jpg') center 60% / cover no-repeat; color: #fff; padding: 54px 0 48px; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,26,48,.95) 0%, rgba(10,44,82,.82) 55%, rgba(10,44,82,.50) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero p { margin: 10px 0 0; color: rgba(255,255,255,.78); max-width: 680px; }
.crumb { margin: 0 0 12px; color: rgba(255,255,255,.6); font-size: 13px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .5; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters a { border: 1px solid var(--line); background: #fff; padding: 7px 14px; font-size: 14px; }
.filters a.on { background: var(--red); border-color: var(--red); color: #fff; }

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.detail-img { background: #fff; border: 1px solid var(--line); }
.detail-img img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.detail h1 { font-size: 32px; }
.prose { margin-top: 16px; white-space: pre-wrap; }
.related { margin-top: 42px; }
.related h2 { font-size: 22px; margin-bottom: 16px; }

.info-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
.info-card, .panel { padding: 22px; }
.info-card + .info-card { margin-top: 12px; }
.info-card strong { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.info-card b { font-size: 18px; font-weight: 600; }
label { display: block; margin: 0 0 6px; font-size: 14px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="file"], textarea, select {
  width: 100%;
  border: 1px solid #ddd6cc;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { margin-bottom: 14px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-box { border: 1px solid #ddd6cc; background: #fff; padding: 0; cursor: pointer; }
.captcha-box img { width: 132px; height: 44px; }
.hp { position: absolute; left: -9999px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }
.qc-grid { grid-template-columns: repeat(4, 1fr); }
.qc-item { padding: 18px 16px; }
.qc-item strong { display: block; margin-bottom: 6px; }
.qc-item span { color: var(--muted); font-size: 13px; }
.saas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.saas-grid div { background: #fff; border: 1px solid var(--line); padding: 16px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.quote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--red);
  background: #fff;
  font-size: 18px;
}

.empty { padding: 40px 16px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); }

.site-footer { background: var(--dark); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr 1fr; gap: 28px; padding: 48px 0 36px; }
.footer-brand .logo { margin-bottom: 12px; max-width: none; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: #f3a4a7; }
.footer-brand > p { margin: 0; }
.footer-grid h4 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 600; }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 8px; color: rgba(255,255,255,.7); font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 980px) {
  .hero-grid, .detail, .info-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid, .cat-grid, .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .qc-grid, .saas-grid, .photo-grid, .photo-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-visual img { height: 280px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .stats-grid, .cat-grid, .card-grid, .adv-grid, .process-grid, .qc-grid, .saas-grid, .photo-grid, .photo-grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(2n) { border-right: 0; }
  .section { padding: 56px 0; }
  .footer-bottom .wrap { flex-direction: column; }
  .hero { padding: 0; }
  .hero h1, .hero .hero-heading { font-size: 36px; }
}
@media (max-width: 520px) {
  .logo-mark { width: 40px; height: 40px; }
  .logo-text strong { font-size: 17px; letter-spacing: .06em; }
  .logo-text span { font-size: 9px; letter-spacing: .08em; }
  .stats-grid, .card-grid, .cat-grid, .qc-grid, .saas-grid, .photo-grid, .photo-grid-3 { grid-template-columns: 1fr; }
  .stats-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ===================== 御联改版 2026-11-12 ===================== */
/* 桌面端：产品卡片 4 列、分类卡 3 列，紧凑规整 */
@media (min-width: 981px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 详情大图：随产品自然比例，contain 不裁切 */
.detail-img img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

/* 详情正文：换行交给服务端 <br>，不再每行空两行 */
.prose { white-space: normal; line-height: 1.9; }

/* 卡片图底：纯白，与产品图白底连成一片，去掉灰边 */
.card-img { background: #fff; }

/* 列表小类分组标题（横跨整行） */
.subhead {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 2px;
}
.subhead b { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.subhead span { color: var(--muted); font-size: 13px; }
.subhead::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* 产品详情：相册 + 参数表 */
.detail-gallery { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.detail-gallery img {
  width: 104px; height: 78px; aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--line); border-radius: 4px;
}
.param-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.param-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.param-row:last-child { border-bottom: 0; }
.param-row span { color: var(--muted); font-size: 13px; }
.param-row b { font-weight: 600; }
@media (max-width: 640px) {
  .param-row { grid-template-columns: 1fr; gap: 2px; }
}
.faq-wrap { max-width: 860px; }
.faq-group { margin-bottom: 28px; }
.faq-group h2 { font-size: 20px; margin: 0 0 14px; color: var(--navy); }
.faq-item { background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.faq-item summary { padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 36px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--red); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 18px 16px; color: var(--muted); line-height: 1.8; }

/* 资料下载 */
.download-group { margin-bottom: 30px; }
.download-group .section-title { margin: 0 0 14px; }
.download-list { display: grid; gap: 14px; }
.download-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #ececec; border-radius: 12px; padding: 16px 18px; background: #fff; }
.download-info h3 { margin: 0 0 4px; font-size: 16px; }
.download-info p { margin: 0; color: var(--muted); font-size: 14px; }
.download-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* 产品对比 */
.compare-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.compare-check input { accent-color: var(--red); }
.compare-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: #16325c; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 60; }
.compare-bar span { font-size: 14px; }
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.compare-table th, .compare-table td { border: 1px solid #ececec; padding: 14px; vertical-align: top; text-align: left; font-size: 14px; }
.compare-table thead th { background: #f4f7fb; }
.compare-table thead th a { color: inherit; font-weight: 600; }
.compare-label { color: var(--muted); white-space: nowrap; width: 110px; }
.compare-img { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; }
.compare-features { margin: 0; padding-left: 18px; }
.compare-features li { margin: 4px 0; }
@media (max-width: 720px) {
  .download-item { flex-direction: column; align-items: flex-start; }
  .compare-img { width: 120px; height: 90px; }
}
