:root {
  --navy: #003366;
  --blue: #005599;
  --blue-dark: #004477;
  --white: #ffffff;
  --gray: #f5f5f5;
  --line: #e3e8ee;
  --text: #333333;
  --muted: #5c6b7a;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
}
.nav-toggle span { width: 18px; margin: 0 auto; }
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  font-size: 15px;
  border-radius: 6px;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--navy);
  background: #e8f1f8;
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(0, 20, 46, 0.88) 0%, rgba(0, 38, 77, 0.72) 46%, rgba(0, 30, 60, 0.55) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 88px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center; }
.hero h1 { margin: 0 0 12px; font-size: 42px; line-height: 1.25; font-weight: 650; }
.hero p { margin: 0; font-size: 20px; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
}
.btn-light { background: var(--white); color: var(--navy); }
.btn-line { border: 1px solid rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-line:hover, .btn-light:hover { text-decoration: none; }
.hero-mark { justify-self: end; }
.hero-mark img { width: 180px; height: auto; }

.section { padding: 72px 0; }
.section h2 { margin: 0 0 12px; color: var(--navy); font-size: 32px; line-height: 1.3; }
.lead { margin: 0 0 28px; color: var(--muted); max-width: 720px; }
.alt { background: var(--gray); }

.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.facts { display: grid; gap: 14px; }
.facts strong { display: block; color: var(--navy); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.card img, .project img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.card img.full {
  height: 150px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}
.card-body { padding: 16px 18px 20px; }
.card h3, .project h3, .qual h3 { margin: 10px 0 8px; color: var(--navy); font-size: 18px; }
.card p, .project p, .qual p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f1f8;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cert-feature, .cert-grid figure, .cert-row figure, .iso-grid figure, .patent-grid figure { margin: 0; }
.cert-feature { width: min(440px, 100%); margin: 0 auto 28px; }
.cert-feature a, .cert-grid a, .cert-row a, .iso-grid a, .patent-grid a { display: block; background: var(--white); }
.cert-feature img, .cert-grid img, .cert-row img, .iso-grid img, .patent-grid img {
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cert-feature figcaption, .cert-grid figcaption, .cert-row figcaption, .iso-grid figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
}
.cert-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 230px));
  justify-content: center;
  gap: 16px 18px;
  margin-bottom: 22px;
}
.cert-row a {
  position: relative;
  display: block;
  aspect-ratio: 1415 / 2000;
}
.cert-row img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cert-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; }
.cert-grid figure { width: calc((100% - 32px) / 3); }
.iso-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 14px 36px;
  margin-top: 28px;
}
.iso-grid figcaption span { display: block; }
.patent-heading { margin: 36px 0 14px; color: var(--navy); font-size: 22px; }
.patent-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.patent-grid img { border-radius: 6px; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.project .card-body { padding: 16px 18px 20px; }
.project img { height: 180px; }
.tag {
  display: inline-block;
  background: #e8f1f8;
  color: var(--navy);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 13px;
}

.news-list { display: grid; gap: 12px; }
.news-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
}
.news-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex: none;
}
.news-main {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.news-item a { color: var(--navy); font-weight: 600; }
.news-item time { color: var(--muted); white-space: nowrap; font-size: 14px; }
.more { margin-top: 18px; }
.more a {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: stretch; }
.contact-card {
  min-height: 360px;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(8, 22, 40, 0) 0%, rgba(8, 22, 40, 0.05) 42%, rgba(8, 22, 40, 0.72) 78%, rgba(8, 22, 40, 0.88) 100%),
    url("../images/contact-building.jpg") center 36% / cover no-repeat;
}
.contact-card-body { padding: 22px 22px 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.contact-card p { margin: 0 0 12px; }
.contact-card p:last-child { margin: 0; }
.contact-card strong { color: #fff; }
.contact-card a { color: #fff; }
.map-panel {
  position: relative;
  min-height: 360px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #e8e4dc;
  overflow: hidden;
}
.map-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.map-links {
  position: absolute;
  right: 14px;
  bottom: 14px;
  margin: 0;
}
.map-links a {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 20, 40, 0.28);
}
.map-links a:hover { text-decoration: none; background: var(--blue-dark); }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.86); padding: 28px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--white); }

.page-head { background: var(--navy); color: var(--white); padding: 48px 0; }
.page-head h1 { margin: 0; font-size: 34px; }
.article { max-width: 820px; }
.article h1 { color: var(--navy); font-size: 32px; line-height: 1.35; margin: 0 0 8px; }
.meta { color: var(--muted); margin-bottom: 24px; }
.back { display: inline-block; margin-top: 28px; }
.article-photos img { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: 8px; }

@media (max-width: 900px) {
  .cards, .projects, .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .cert-row { grid-template-columns: repeat(2, minmax(0, 240px)); }
  .cert-grid figure { width: calc((100% - 16px) / 2); }
  .patent-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-mark { display: none; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .cards, .projects, .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cert-grid figure { width: calc((100% - 16px) / 2); }
  .cert-feature { width: min(280px, 72%); }
  .iso-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .patent-grid { grid-template-columns: repeat(3, 1fr); }
  .map-panel { height: 240px; min-height: 240px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 30px; }
  .section { padding: 60px 0; }
  .news-thumb { width: 88px; height: 60px; }
  .news-main { flex-direction: column; align-items: flex-start; gap: 4px; }
}
