:root {
  --ink: #0a192f;
  --muted: #475569;
  --paper: #f8fafc;
  --soft: #eff6ff;
  --jade: #0b6b59;
  --jade-deep: #073e36;
  --blue: #1a56db;
  --blue-deep: #0c2b64;
  --blue-hover: #133a80;
  --gold: #b8914b;
  --ivory: #ffffff;
  --line: rgba(10, 25, 47, 0.1);
  --shadow: 0 28px 80px rgba(12, 43, 100, 0.14);
  --radius: 8px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 临时隐藏实际查询结果/提示区域，保留证书编号和查询码输入界面。 */
.temporarily-hidden {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(28px, 5vw, 64px);
  color: var(--ink);
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid rgba(10, 25, 47, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 360px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-text {
  display: block;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  display: block;
  color: #0a2a56;
  font-family: "STKaiti", "KaiTi", "FangSong", "Microsoft YaHei", serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.56);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--blue);
  background: transparent;
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 14px 34px rgba(12, 43, 100, 0.22);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--blue-hover);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 32px) clamp(28px, 5vw, 76px) 72px;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.hero-visual,
.hero-overlay,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-visual {
  z-index: 0;
  background: #f0f8ff;
}

.hero-slide {
  left: 48%;
  opacity: 0;
  background-position: center right;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(1.05) brightness(1.08);
  animation: cinematicSlide 24s infinite;
}

.hero-slide-a {
  background-image: url("images/hero-jade-1.jpg");
}

.hero-slide-b {
  background-image: url("images/hero-jade-2.jpg");
  animation-delay: 8s;
}

.hero-slide-c {
  background-image: url("images/hero-jade-3.jpg");
  animation-delay: 16s;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(240, 248, 255, 1) 0%, rgba(240, 248, 255, 0.92) 42%, rgba(240, 248, 255, 0.24) 100%),
    radial-gradient(circle at 78% 54%, rgba(26, 86, 219, 0.22), rgba(26, 86, 219, 0) 36%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.42), rgba(248, 250, 252, 0.94));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--paper));
  z-index: 1;
}

.hero-media {
  position: absolute;
  top: 13%;
  right: clamp(22px, 6vw, 94px);
  z-index: 1;
  width: min(47vw, 600px);
  height: min(56vw, 640px);
  opacity: 0.56;
  animation: floatMedia 8s ease-in-out infinite;
}

.hero-gallery {
  opacity: 1;
  overflow: visible;
}

.hero-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 30px 90px rgba(26, 86, 219, 0.2);
  backdrop-filter: blur(8px);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  top: 7%;
  right: 3%;
  width: 74%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: 0.7;
}

.hero-card-small {
  border-radius: 18px;
  opacity: 0.82;
}

.hero-card-a {
  top: 0;
  left: 1%;
  width: 28%;
  aspect-ratio: 0.92 / 1;
}

.hero-card-b {
  left: 12%;
  bottom: 16%;
  width: 34%;
  aspect-ratio: 1.18 / 1;
}

.hero-card-c {
  right: 0;
  bottom: 2%;
  width: 30%;
  aspect-ratio: 0.92 / 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(800px, 100%);
  min-width: 0;
  padding-top: 3vh;
}

.eyebrow,
.section-heading p {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 2px;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(48px, 6.1vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  width: min(660px, 100%);
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.glass-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  gap: 8px;
  border: 1px solid rgba(10, 25, 47, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 50px rgba(12, 43, 100, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.glass-button.primary,
.submit-button {
  color: #fff;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.glass-button:hover,
.submit-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(10, 25, 47, 0.16);
}

.glass-button.primary:hover,
.submit-button:hover {
  background: var(--blue-hover);
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 6vw, 80px);
  bottom: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(10, 25, 47, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 22px 60px rgba(12, 43, 100, 0.12);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-panel strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: var(--blue-deep);
}

.hero-panel span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.stagger {
  opacity: 1;
  transform: translateY(0);
  animation: fadeUp 900ms ease both;
}

.delay-1 {
  animation-delay: 160ms;
}

.delay-2 {
  animation-delay: 330ms;
}

.delay-3 {
  animation-delay: 520ms;
}

.delay-4 {
  animation-delay: 700ms;
}

.section {
  padding: 92px clamp(20px, 6vw, 86px);
}

.section-heading {
  max-width: 430px;
}

.section-heading.wide {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-heading span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.intro-band {
  position: relative;
  padding-top: 70px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.88) 42%, rgba(248, 250, 252, 0.48) 100%),
    url("../主页仪器.png") center right / cover no-repeat;
}

.intro-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(26, 86, 219, 0.08), rgba(26, 86, 219, 0) 32%),
    linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.9));
}

.intro-grid {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-top: 40px;
}

.intro-copy {
  min-width: 0;
  padding: 28px 30px;
  border: 1px solid rgba(10, 25, 47, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(12, 43, 100, 0.1);
  backdrop-filter: blur(12px);
}

.intro-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.intro-copy p {
  margin: 14px 0 0;
  color: #40504b;
  font-size: 17px;
}

.service-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-grid article,
.news-grid article,
.qualification-card,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 40px rgba(15, 49, 41, 0.06);
}

.service-grid article,
.news-grid article {
  min-width: 0;
  min-height: 250px;
  padding: 26px;
}

.service-index {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.service-grid h3,
.news-grid h3,
.equipment-grid h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.service-grid p,
.news-grid p,
.equipment-grid p,
.qualification-card p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
}

.equipment-section {
  background: #eef5ef;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.equipment-grid article {
  overflow: hidden;
  border: 1px solid rgba(16, 33, 29, 0.1);
  border-radius: var(--radius);
  background: var(--ivory);
}

.equipment-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  background: #fff;
}

.equipment-grid h3,
.equipment-grid p {
  padding-inline: 18px;
}

.equipment-grid p {
  padding-bottom: 22px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.46fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.qualification-layout {
  display: grid;
  gap: 16px;
}

.qualification-card {
  padding: 24px 26px;
}

.qualification-card strong,
.contact-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--jade-deep);
  font-size: 20px;
}

.news-section {
  background: linear-gradient(180deg, var(--paper), #fff);
}

.news-grid time {
  color: var(--gold);
  font-weight: 700;
}

.news-grid h3 a {
  transition: color 180ms ease;
}

.news-grid h3 a:hover {
  color: var(--blue);
}

.news-source {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(26, 86, 219, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.document-section {
  background: var(--jade-deep);
  color: #fff;
}

.document-section.standards {
  background: #10211d;
}

.document-section .section-heading span {
  color: rgba(255, 255, 255, 0.68);
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 68px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  transition: background 180ms ease, transform 180ms ease;
}

.document-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.document-link span {
  min-width: 42px;
  color: var(--gold);
  font-weight: 700;
  text-align: right;
}

.certificate-section {
  background:
    linear-gradient(120deg, rgba(7, 62, 54, 0.08), rgba(198, 161, 91, 0.12)),
    var(--paper);
}

.certificate-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.certificate-form,
.certificate-result {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.certificate-form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.certificate-form label {
  display: grid;
  gap: 8px;
  color: var(--jade-deep);
  font-weight: 700;
}

.certificate-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(16, 33, 29, 0.16);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.certificate-form input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(11, 107, 89, 0.12);
}

.submit-button {
  width: 100%;
  border: 0;
  font: inherit;
  font-weight: 700;
}

.certificate-result {
  min-height: 238px;
  padding: 28px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.result-status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--jade);
  font-size: 13px;
  font-weight: 700;
}

.result-status.invalid {
  background: #8f3d2f;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.result-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.contact-grid article {
  padding: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.7);
  background: #081d19;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

@keyframes cinematicSlide {
  0% {
    opacity: 0;
    transform: scale(1.08) translateX(0);
  }
  8%,
  33% {
    opacity: 1;
  }
  45% {
    opacity: 0;
    transform: scale(1.16) translateX(-2.4%);
  }
  100% {
    opacity: 0;
    transform: scale(1.08) translateX(0);
  }
}

@keyframes floatMedia {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 12px, 0) scale(1.03);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0.01;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .brand {
    min-width: 300px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .equipment-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .site-header {
    min-height: 68px;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 64px;
    place-content: center;
    width: 64px;
    margin-left: 12px;
    position: static;
    z-index: 4;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(10, 25, 47, 0.12);
    box-shadow: 0 10px 28px rgba(12, 43, 100, 0.16);
  }

  .nav-toggle span {
    display: none;
  }

  .nav-toggle::after {
    content: "菜单";
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 18px;
    right: 18px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(12, 43, 100, 0.18);
  }

  .site-nav a {
    color: var(--ink);
  }

  .site-nav .nav-cta {
    justify-content: center;
    color: #fff;
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .hero {
    min-height: 820px;
    padding-top: 130px;
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-grid,
  .split-section,
  .certificate-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .news-grid,
  .document-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .brand-text strong {
    font-size: clamp(14px, 4vw, 18px);
    white-space: normal;
    line-height: 1.16;
  }

  .hero {
    min-height: 780px;
    padding-inline: 18px;
    padding-bottom: 72px;
    align-content: start;
  }

  .hero h1 {
    font-size: clamp(32px, 9.6vw, 38px);
    word-break: normal;
  }

  .hero-copy {
    font-size: 16px;
    width: min(100%, 340px);
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero-media {
    top: 118px;
    right: -72px;
    width: 286px;
    height: 310px;
    opacity: 0.32;
  }

  .hero-card-main {
    width: 76%;
  }

  .hero-card-a {
    width: 26%;
  }

  .hero-card-b {
    display: none;
  }

  .hero-card-c {
    width: 30%;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 28px;
  }

  .hero-panel div {
    padding: 12px 16px;
  }

  .hero-panel strong {
    font-size: 24px;
  }

  .section {
    padding: 68px 18px;
  }

  .service-grid article,
  .news-grid article {
    min-height: auto;
  }

  .intro-copy h3 {
    font-size: 24px;
    word-break: normal;
  }

  .intro-copy p,
  .section-heading span {
    width: min(100%, 330px);
    max-width: calc(100vw - 52px);
    word-break: normal;
    overflow-wrap: normal;
  }

  .document-link strong {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .equipment-grid,
  .contact-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .document-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-link span {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
