/* ==========================================================================
   少典官网 · 2026 视觉升级层
   1) 二级导航（mega panel，参考 servechina.cn 的信息层次）
   2) 页脚（版式对齐 zhubao.zerocod.cn）
   3) 业务场景图带（替代系统截图，全部为本地矢量场景插画）
   4) 资料下载中心
   本文件在 site.min.css 之后加载，只新增/覆盖必要样式。
   ========================================================================== */

/* ---------- 1. 二级导航 ---------- */
.site-header { z-index: 300; }
.header-inner { min-height: var(--header-h); }
.site-nav { gap: 0; }
.site-nav .nav-item--panel { position: static; }
.site-nav .nav-item--panel > .nav-panel-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site-nav .nav-item--panel > .nav-panel-trigger:hover,
.site-nav .nav-item--panel:focus-within > .nav-panel-trigger { color: var(--brand); background: var(--brand-dim); }
.site-nav .nav-item--panel.is-active > .nav-panel-trigger { color: var(--brand-light); background: var(--brand-dim); }

/* 桌面端不显示 caret 按钮本体，只留视觉 caret */
.nav-panel-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-item--panel > .nav-panel-trigger .nav-caret { margin-left: 1px; }
.nav-item--panel:hover > .nav-panel-trigger .nav-caret,
.nav-item--panel:focus-within > .nav-panel-trigger .nav-caret { transform: rotate(180deg); }

.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 40px));
  margin-top: 0;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(18, 80, 50, 0.16), 0 2px 8px rgba(18, 80, 50, 0.06);
  backdrop-filter: blur(14px);
  z-index: 320;
}
/* 小三角（去掉，避免与吸顶头部叠色） */
.nav-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 55%, rgba(45, 196, 126, 0) 100%);
}
@media (min-width: 901px) {
  /* 触发器撑满头部高度，保证鼠标从一级项移动到面板之间不丢失 hover */
  .site-nav .nav-item--panel {
    height: var(--header-h);
    display: flex;
    align-items: center;
  }
  .site-nav .nav-item--panel > .nav-panel-trigger { height: 100%; border-radius: 0; }
}
.nav-panel__card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 10px;
}
.nav-panel__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  align-content: start;
  padding: 6px;
}
.nav-panel__links a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.16s, transform 0.16s;
}
.nav-panel__links a:hover,
.nav-panel__links a.is-active { background: var(--bg-hover); }
.nav-panel__links a:hover { transform: translateX(2px); }
.nav-panel__links strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.nav-panel__links em {
  display: block;
  margin-top: 2px;
  font-size: 0.73rem;
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-panel__feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 214px;
  padding: 14px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(180deg, #eaf7f1 0%, #dff1e7 100%);
  border: 1px solid var(--border-soft);
}
.nav-panel__feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.5s ease;
}
.nav-panel__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.94) 72%);
}
.nav-panel__feature:hover img { transform: scale(1.05); }
.nav-panel__feature strong,
.nav-panel__feature em,
.nav-panel__cta { position: relative; z-index: 1; }
.nav-panel__feature strong {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}
.nav-panel__feature em {
  margin-top: 4px;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.55;
}
.nav-panel__cta {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}
@media (min-width: 901px) {
  .nav-item--panel:hover > .nav-panel,
  .nav-item--panel:focus-within > .nav-panel { display: block; animation: navPanelIn 0.18s ease-out; }
  .nav-submenu--mobile { display: none !important; }
}
@keyframes navPanelIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 900px) {
  .nav-panel { display: none !important; }
  .site-nav .nav-item--panel { position: relative; }
  .nav-panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 2px;
    width: 44px;
    height: 44px;
    transform: none;
    border-radius: 8px;
  }
  .site-nav .nav-item--panel > .nav-panel-trigger { display: flex; justify-content: space-between; width: 100%; padding-right: 46px; }
  .nav-submenu--mobile {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: var(--bg-muted);
    margin: 2px 0 6px;
  }
  .nav-item.has-children.is-open > .nav-submenu--mobile { display: block; }
}

/* ---------- 2. 页脚 ---------- */
.footer-top-line {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 42%, rgba(45, 196, 126, 0) 100%);
}
.site-footer { padding: 0; background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 62%, #eef8f2 100%); }
.footer-shell { padding: 44px 0 6px; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(0, 2fr) minmax(200px, 0.78fr);
  gap: 34px;
  align-items: start;
}
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo { width: auto; height: 46px; display: block; }
.footer-brand-col .footer-slogan {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 34em;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand-light), var(--cyan));
  box-shadow: 0 8px 20px rgba(18, 136, 86, 0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}
.footer-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(18, 136, 86, 0.28); }

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer-col-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col-list a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.16s;
}
.footer-col-list a:hover { color: var(--brand); }

.footer-qr-col { display: flex; justify-content: flex-end; }
.footer-wechat {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.footer-wechat img { width: 88px; height: 88px; border-radius: 8px; object-fit: contain; background: #ffffff; }
.footer-wechat figcaption { display: grid; gap: 4px; }
.footer-wechat strong { font-size: 0.8rem; color: var(--text); }
.footer-wechat span { font-size: 0.72rem; line-height: 1.55; color: var(--text-muted); }

.footer-trust-bar {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 10px 20px;
  align-items: center;
}
.footer-trust-line { margin: 0; font-size: 0.78rem; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-trust-line strong { font-weight: 700; color: var(--brand); }
.footer-trust-sep { color: var(--border); }
.footer-trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.footer-trust-badges li {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(45, 196, 126, 0.12);
  border: 1px solid rgba(45, 196, 126, 0.2);
}
.footer-trust-meta {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-trust-meta a { color: var(--text-muted); text-decoration: none; }
.footer-trust-meta a:hover { color: var(--brand); }
.footer-bottom { padding: 14px 0 26px; border-top: 1px solid var(--border-soft); }
.footer-copyright { margin: 0; font-size: 0.73rem; color: var(--text-muted); line-height: 1.7; }
.footer-copyright a { color: var(--text-muted); text-decoration: none; }

/* 移动端快捷联系条 */
.mobile-contact-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(18, 80, 50, 0.08);
  backdrop-filter: blur(10px);
}
.mobile-contact-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
}
.mobile-contact-bar-icon { font-size: 1rem; line-height: 1; }
.mobile-contact-bar-btn--cta { color: #ffffff; background: linear-gradient(135deg, var(--brand-light), var(--cyan)); }
@media (max-width: 900px) {
  .mobile-contact-bar { display: grid; }
  body { padding-bottom: 62px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-qr-col { justify-content: flex-start; }
  .footer-trust-bar { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 3. 业务场景图带 ---------- */
.scene-band { padding: 8px 0 0; }
.scene-band__head { display: grid; gap: 8px; margin-bottom: 22px; }
.scene-band__head h2 { margin: 0; }
.scene-band__head p { margin: 0; color: var(--text-muted); font-size: 0.92rem; max-width: 62em; }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(45, 196, 126, 0.34); }
.scene-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-muted); }
.scene-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.scene-card:hover .scene-card__media img { transform: scale(1.04); }
.scene-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 136, 86, 0.16);
  backdrop-filter: blur(6px);
}
.scene-card__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.scene-card__body h3 { margin: 0; font-size: 0.95rem; color: var(--text); }
.scene-card__body p { margin: 0; font-size: 0.79rem; line-height: 1.65; color: var(--text-muted); }
.scene-card__link { margin-top: 4px; font-size: 0.76rem; font-weight: 600; color: var(--brand); }
.scene-card--wide { grid-column: span 2; }
.scene-card--wide .scene-card__media { aspect-ratio: 16 / 7; }
@media (max-width: 1024px) {
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .scene-card--wide { grid-column: span 1; }
  .scene-card--wide .scene-card__media { aspect-ratio: 16 / 10; }
}

/* ---------- 4. 资料下载中心 ---------- */
.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf8f1 0%, #ffffff 60%, #f2fbf6 100%);
  border: 1px solid var(--border-soft);
}
.dl-hero h1, .dl-hero h2 { margin: 0 0 8px; }
.dl-hero p { margin: 0 0 6px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }
.dl-hero__media { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-soft); background: #fff; }
.dl-hero__media img { display: block; width: 100%; height: auto; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.dl-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(45, 196, 126, 0.16), rgba(18, 136, 86, 0.08));
  color: var(--brand-dark);
}
.dl-card h3 { margin: 0; font-size: 0.96rem; }
.dl-card p { margin: 0; font-size: 0.78rem; line-height: 1.65; color: var(--text-muted); }
.dl-card__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: var(--text-muted); }
.dl-card__meta span { padding: 2px 8px; border-radius: 999px; background: var(--bg-muted); }
.dl-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-card__actions .btn { font-size: 0.78rem; padding: 8px 14px; }
.dl-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(18, 136, 86, 0.28);
  background: rgba(45, 196, 126, 0.05);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}
@media (max-width: 1024px) {
  .dl-hero { grid-template-columns: minmax(0, 1fr); }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-hero { padding: 18px; }
}

/* ---------- 5. 服务闭环页 ---------- */
.svc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.svc-hero__media { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-soft); background: #fff; }
.svc-hero__media img { display: block; width: 100%; height: auto; }
.svc-loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.svc-loop__step {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.svc-loop__step span { font-size: 0.7rem; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; }
.svc-loop__step h4 { margin: 6px 0 4px; font-size: 0.85rem; }
.svc-loop__step p { margin: 0; font-size: 0.74rem; line-height: 1.6; color: var(--text-muted); }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.svc-card {
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.svc-card h3 { margin: 0 0 8px; font-size: 1rem; }
.svc-card p { margin: 0 0 10px; font-size: 0.82rem; line-height: 1.75; color: var(--text-muted); }
.svc-card ul { margin: 0; padding-left: 18px; font-size: 0.8rem; line-height: 1.85; color: var(--text-muted); }
.svc-card__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(45, 196, 126, 0.14);
}
@media (max-width: 1024px) {
  .svc-hero { grid-template-columns: minmax(0, 1fr); }
  .svc-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 图片统一去除下白边 */
.scene-card__media img,
.dl-hero__media img,
.svc-hero__media img { vertical-align: middle; }

/* ---------- 6. 首屏业务场景主视觉 ---------- */
.scene-hero { display: grid; gap: 18px; }
.scene-hero__figure {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px rgba(18, 80, 50, 0.12);
  background: #eaf7f1;
}
.scene-hero__img { display: block; width: 100%; height: auto; }
.scene-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 26px 22px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 46%, rgba(255, 255, 255, 0.98) 100%);
}
.scene-hero__caption strong { font-size: clamp(1rem, 1.6vw, 1.28rem); color: var(--text); letter-spacing: 0.01em; }
.scene-hero__caption span { font-size: 0.84rem; line-height: 1.7; color: var(--text-muted); max-width: 62em; }

.scene-hero__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.scene-hero__steps li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-soft);
}
.scene-hero__steps em { font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: var(--brand-light); }
.scene-hero__steps strong { font-size: 0.86rem; color: var(--text); }
.scene-hero__steps span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.55; }

.scene-hero__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.scene-hero__metrics li {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 196, 126, 0.12), rgba(18, 136, 86, 0.05));
  border: 1px solid rgba(45, 196, 126, 0.18);
}
.scene-hero__metrics strong { font-size: 0.9rem; color: var(--brand-dark); }
.scene-hero__metrics span { font-size: 0.72rem; color: var(--text-muted); line-height: 1.55; }

.dashboard-band .hero-carousel-head { text-align: left; margin-bottom: 18px; }
.dashboard-band .hero-carousel-desc { margin: 0; max-width: none; }
.dashboard-band .hero-carousel-stage { padding: 0 44px; }

@media (max-width: 900px) {
  .scene-hero__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-hero__metrics { grid-template-columns: minmax(0, 1fr); }
  .scene-hero__caption { position: static; background: #ffffff; padding: 16px; }
  .dashboard-band .hero-carousel-stage { padding: 0 8px; }
}
