/* yizheng home 2026-08-22 cards */
:root {
  --blue: #1b4f9c;
  --blue-dark: #0f2f66;
  --blue-mid: #2563b5;
  --orange: #e8782a;
  --gold: #c9a227;
  --ink: #1c2430;
  --muted: #5b6778;
  --line: #d9e1ee;
  --bg: #f4f7fb;
  --white: #ffffff;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo {
  height: 36px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: block;
}
.brand-footer .brand-logo {
  height: 36px;
  max-width: 48px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; letter-spacing: 0.08em; font-weight: 800; }
.brand-text small { color: #666; font-size: 11px; letter-spacing: 0.02em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 6px 0;
}
.main-nav a.active, .main-nav a:hover { color: var(--blue); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 12px; font-size: 12px; color: var(--muted); }
.lang-switch a.is-active, .lang-switch a.active { background: var(--blue); color: #fff; }
.btn-phone {
  background: var(--orange);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
}

.hero {
  position: relative;
  color: #fff;
  background: var(--blue-dark) url("./hero-banner.jpg") center 38%/cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 22, 52, 0.82) 0%, rgba(8, 22, 52, 0.62) 48%, rgba(8, 22, 52, 0.28) 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 420px;
  padding: 72px 0 64px;
}
.hero-copy { max-width: 620px; padding: 8px 0 16px; }
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; margin-bottom: 12px; }
.hero .lead { font-size: 16px; color: #d7e4f8; max-width: 640px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-ghost, .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { color: #fff; opacity: 0.92; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--blue-dark); }

.brands {
  background: var(--blue);
  color: #fff;
  padding: 14px 0;
  font-size: 13px;
}
.brands .container { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.brands b { color: #ffd089; }

.section { padding: 64px 0; }
.section.alt { background: var(--bg); }
.section-title { margin-bottom: 28px; }
.section-title p { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 6px; }
.section-title h2 { font-size: 28px; }

.service-grid, .cat-grid, .product-grid, .capability-grid, .scope-grid {
  display: grid;
  gap: 18px;
}
.service-grid, .capability-grid { grid-template-columns: repeat(4, 1fr); }
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
.scope-grid { grid-template-columns: repeat(4, 1fr); }
.service-card, .info-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
}
.service-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card .thumb {
  aspect-ratio: 4 / 3;
  background: #e8eef6;
  overflow: hidden;
}
.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card .body { padding: 16px 18px 20px; }
.service-card h3, .info-card h3 { margin: 10px 0 8px; font-size: 18px; }
.service-card p, .info-card p { color: var(--muted); font-size: 14px; }
.icon-dot {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 50px;
  background: #e8f0fb;
  color: var(--blue);
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.cat-card {
  position: relative;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card span, .cat-card h3 { position: relative; }
.cat-card .cat-body {
  position: relative;
  width: 100%;
  padding: 18px;
  background: linear-gradient(transparent, rgba(8,24,56,.88));
}
.cat-card h3 { font-size: 20px; color: #fff; }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .thumb {
  aspect-ratio: 4/3;
  background: #eef2f7;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px 16px 18px; }
.product-card h3 { font-size: 15px; line-height: 1.4; min-height: 2.8em; color: var(--ink); }
.product-card .meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.seal {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  width: 92px;
  height: 92px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 22px 8px;
  line-height: 1.3;
}

.page-hero { background: var(--blue-dark); color: #fff; padding: 36px 0; }
.page-hero h1 { font-size: 28px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.content-article { background: #fff; padding: 8px 0 24px; }
.content-article h2 { margin: 28px 0 12px; font-size: 22px; }
.content-article p, .content-article li { color: var(--muted); }
.content-article ul { padding-left: 18px; list-style: disc; }
.content-article table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.content-article th, .content-article td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.content-article th { width: 28%; background: var(--bg); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.gallery-main { background: var(--bg); border-radius: 8px; overflow: hidden; }
.gallery-main img { width: 100%; max-height: 520px; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.price-ask { font-size: 22px; color: var(--orange); font-weight: 700; margin: 12px 0; }
.spec-list { margin: 16px 0; }
.spec-list li { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.spec-list b { width: 90px; color: var(--muted); font-weight: 500; }

.about-copy { max-width: 760px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }
.cap-num {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.capability-grid .info-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}
.vis-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8eef6;
}
.vis-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.vis-card:hover .vis-photo img { transform: scale(1.05); }
.vis-body { padding: 16px 18px 20px; }
.vis-body .cap-num { margin-bottom: 6px; }
.vis-body h3 { margin: 0 0 8px; }
.scope-item {
  position: relative;
  min-height: 280px;
  border: none;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--blue-dark);
}
.scope-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.scope-item:hover img { transform: scale(1.05); }
.scope-item .scope-body {
  position: relative;
  width: 100%;
  padding: 56px 18px 20px;
  background: linear-gradient(transparent, rgba(8, 24, 56, 0.9));
}
.scope-item strong { display: block; font-size: 18px; margin-bottom: 6px; color: #fff; }
.scope-item span { color: #d7e4f8; font-size: 13px; }
.catalog-entry {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
}
.catalog-entry:hover { color: inherit; }
.catalog-entry-photo {
  min-height: 240px;
  background: url("/uploads/media/yizheng/ac_16.jpg") center/cover no-repeat;
}
.catalog-entry-body { padding: 36px 32px; }
.catalog-entry-body p:first-child { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 6px; }
.catalog-entry-body h2 { margin-bottom: 10px; }
.catalog-entry-desc { color: var(--muted); margin-bottom: 20px; }
.catalog-entry .btn-primary { pointer-events: none; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: center;
}
.contact-lead { color: var(--muted); margin: 0 0 20px; max-width: 520px; }
.line-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px 16px;
  background: #fff;
}
.line-card img {
  width: 168px;
  height: 168px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.line-card span { color: var(--muted); font-size: 13px; }
.footer-line { margin-top: 14px; }
.footer-line img { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 8px; }
.cat-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cat-switch a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.cat-switch a.active, .cat-switch a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.cta-band { background: var(--blue); color: #fff; padding: 36px 0; }
.cta-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.cta-kicker { color: #ffd089; font-size: 13px; margin-bottom: 6px; }
.site-footer { background: #0b1c3c; color: #c5d3ea; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .7fr; gap: 28px; padding: 40px 0; }
.footer-grid h3 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-grid a { color: #c5d3ea; }
.footer-desc { margin-top: 12px; font-size: 14px; }
.brand-footer { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0 72px; font-size: 12px; }
.call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--orange);
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(232, 120, 42, 0.35);
}

@media (max-width: 960px) {
  .service-grid, .capability-grid, .cat-grid, .product-grid, .product-detail, .footer-grid, .scope-grid, .catalog-entry, .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero::before {
    background: linear-gradient(180deg, rgba(8, 22, 52, 0.78) 0%, rgba(8, 22, 52, 0.70) 100%);
  }
  .hero-inner { min-height: 0; padding: 48px 0 40px; }
  .hero-copy { padding: 0; max-width: none; }
  .btn-phone { display: none; }
  .menu-toggle { display: block; }
  .main-nav, .lang-switch { display: none; }
  .nav-open .main-nav, .nav-open .lang-switch { display: block; }
  .nav-open .header-main { flex-wrap: wrap; }
  .nav-open .main-nav { width: 100%; margin: 0 0 12px; }
  .nav-open .main-nav ul { flex-direction: column; gap: 12px; }
}
@media (max-width: 640px) {
  .service-grid, .capability-grid, .cat-grid, .product-grid, .product-detail, .footer-grid, .cta-inner, .scope-grid, .catalog-entry, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero { background-position: center 32%; min-height: 0; }
  .scope-item { min-height: 220px; }
  .hero-inner { padding: 40px 0 36px; }
  .header-top { display: none; }
  .catalog-entry-photo { display: none; }
  .catalog-entry-body { padding: 24px 20px 28px; }
  .brand-logo { height: 32px; max-width: 42px; }
}
