/* ===========================================================
   陕西瑞观信息技术有限公司 · 单页官网（H5 优先，桌面自适应）
   纯静态：无 CDN、无外部字体请求、无框架依赖
   设计语言取自检测行业的“原始记录 / 报告 / 签章”纸张与表格
   =========================================================== */

@font-face {
  font-family: "DIN";
  src: url("../font/din.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* 墨与纸 */
  --ink: #10201d;
  --ink-2: #2b3d39;
  --ink-3: #5b6b67;
  --ink-4: #8b9894;
  --paper: #ffffff;
  --paper-2: #f4f6f3;
  --paper-3: #e9ede8;
  --rule: #d9dfda;
  --rule-2: #c3ccc6;

  /* 主色：仪器面板的深青绿 */
  --teal: #0c4a45;
  --teal-2: #0f5f58;
  --teal-soft: #dce8e5;

  /* 印章朱红，只用于“已签发 / 签章” */
  --vermilion: #b23a2b;

  --wrap: 1120px;
  --pad: 20px;

  --cn: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --num: "DIN", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--cn);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, p, ul, ol, dl, dd, figure, figcaption {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -64px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

/* ================= 顶栏 ================= */
.head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.head.is-stuck {
  border-bottom-color: var(--rule);
}

.head__in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.mark {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.mark__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.mark__cn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark__en {
  font-family: var(--num);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
}

.nav {
  display: none;
}

.nav__a {
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.nav__a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav__a:hover::after,
.nav__a.is-active::after {
  transform: scaleX(1);
}

.head__tel {
  margin-left: auto;
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--rule-2);
  color: var(--teal);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.head__tel:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* 手机屏宽度放不下完整公司名 + 电话，电话收进下拉菜单 */
@media (max-width: 859px) {
  .head__tel {
    display: none;
  }
}

.burger {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: -6px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s var(--ease);
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ================= 首屏 ================= */
.hero {
  position: relative;
  padding: 34px 0 44px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* 极淡的表格底纹，呼应“记录纸” */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 84px 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  background: var(--vermilion);
}

.hero__h1 {
  margin-top: 16px;
  font-size: clamp(28px, 8.4vw, 52px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero__h1-em {
  color: var(--teal);
  white-space: nowrap;
  /* 高亮用“下划线标注”，像在记录纸上用笔画的重点 */
  background-image: linear-gradient(var(--teal-soft), var(--teal-soft));
  background-repeat: no-repeat;
  background-size: 100% 0.18em;
  background-position: 0 calc(100% - 0.02em);
}

.hero__p {
  max-width: 32em;
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn--solid {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--teal-2);
}

.btn--ghost {
  border-color: var(--rule-2);
  color: var(--ink-2);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--wide {
  width: 100%;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-4);
}

.hero__meta span + span {
  position: relative;
  padding-left: 15px;
}

.hero__meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  margin-top: -5px;
  background: var(--rule-2);
}

/* ---------- 签名元素：原始记录纸 ---------- */
.sheet {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  box-shadow: 6px 6px 0 var(--paper-3);
  padding: 0 16px 14px;
}

.sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.sheet__bar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.sheet__bar-code {
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.sheet__rows {
  margin: 0;
}

.sheet__row {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 13.5px;
}

.sheet__row:last-child {
  border-bottom: 0;
}

.sheet__row dt {
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.sheet__row dd {
  color: var(--ink);
  text-align: right;
}

.sheet__qty {
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink-3);
}

.sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teal);
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-2);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

/* 印章：系统里“已签章”的视觉锚点 */
.seal {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid var(--vermilion);
  color: var(--vermilion);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  opacity: 0.82;
  transform: rotate(-9deg);
  -webkit-mask-image: radial-gradient(circle, #000 62%, rgba(0, 0, 0, 0.72));
  mask-image: radial-gradient(circle, #000 62%, rgba(0, 0, 0, 0.72));
}

.sheet__note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-4);
  text-align: right;
}

/* ================= 区块通用 ================= */
.sec {
  padding: 52px 0;
  scroll-margin-top: 64px;
}

.sec--tint {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sec__head {
  max-width: 40em;
  margin-bottom: 30px;
}

.sec__en {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.sec__h2 {
  font-size: clamp(21px, 5.6vw, 30px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.sec__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-3);
}

/* ================= 产品 ================= */
.prods {
  display: grid;
  gap: 16px;
}

.prod {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

/* 卡头：编号 + 名称 + 定位，做成原始记录表头的质感 */
.prod__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  padding: 15px 16px 13px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.prod__no {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.prod__h3 {
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.prod__role {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.prod__p {
  padding: 14px 16px 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

/* 模块清单：一张两列小表，与原始记录的行结构一致 */
.mods {
  margin: 14px 16px 16px;
  border-top: 1px solid var(--rule-2);
}

.mods__row {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  column-gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.mods__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mods__row dt {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.mods__row dd {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

@media (hover: hover) {
  .prod:hover {
    border-color: var(--rule-2);
  }
}

/* ================= 流程 ================= */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-2);
}

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.6em 1fr;
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.flow__no {
  grid-row: span 2;
  font-size: 13px;
  color: var(--ink-4);
  padding-top: 2px;
  letter-spacing: 0.04em;
}

.flow__h3 {
  font-size: 15px;
  font-weight: 700;
}

.flow__p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* ================= 关于 ================= */
.about {
  display: grid;
  gap: 26px;
}

.about__text p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
  text-align: justify;
}

.about__text p + p {
  margin-top: 14px;
}

.about__fig {
  order: -1;
}

.about__fig img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__fig figcaption {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.group {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rule-2);
}

.group__h3 {
  font-size: 15px;
  font-weight: 700;
}

.group__p {
  margin-top: 8px;
  max-width: 44em;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-3);
}

.spec {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.spec__cell {
  padding: 14px 14px 16px;
  background: var(--paper);
}

.spec dt {
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.spec dd {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--teal);
}

.spec dd em {
  font-style: normal;
  font-size: 0.46em;
  font-weight: 500;
  margin-left: 2px;
  color: var(--ink-3);
}

/* ================= 联系 ================= */
.contact {
  display: grid;
  gap: 22px;
}

.contact__list {
  border-top: 1px solid var(--rule-2);
}

.contact__row {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}

.contact__row dt {
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.contact__row dd {
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

/* 窄屏（320–380px）：标签置顶，避免邮箱与地址被挤成断词折行 */
@media (max-width: 380px) {
  .contact__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact__row dd {
    text-align: left;
  }
}

.contact__row a {
  border-bottom: 1px solid var(--teal-soft);
  transition: border-color 0.2s var(--ease);
}

.contact__row a:hover {
  border-color: var(--teal);
}

.contact__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__note {
  margin-bottom: 4px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-3);
}

/* ================= 页脚 ================= */
.foot {
  padding: 30px 0 34px;
  background: var(--teal);
  color: rgba(255, 255, 255, 0.82);
}

.foot__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.foot__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.foot__en {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.foot__tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.foot__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  font-size: 12px;
}

.foot__legal p {
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.66);
}

.foot__right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot__filing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: rgba(255, 255, 255, 0.66);
}

.foot__filing a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.foot__filing a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.foot__sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ================= 入场 ================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ================= 响应式 ================= */
@media (min-width: 600px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .prod {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    column-gap: 26px;
    align-items: start;
  }

  .prod__head {
    grid-column: 1 / -1;
  }

  .prod__p {
    padding-right: 0;
  }

  .mods {
    margin-top: 15px;
  }

  .flow {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
  }

  .spec {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .contact__side {
    padding-top: 4px;
  }

  .foot__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .foot__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .foot__copy,
  .foot__filing {
    text-align: right;
  }
}

@media (min-width: 860px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 28px;
  }

  /* 桌面端电话号码常驻顶栏，菜单里不再重复 */
  .nav__a--tel {
    display: none;
  }

  .head__tel {
    margin-left: auto;
  }

  .hero {
    padding: 60px 0 64px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 48px;
    align-items: center;
  }

  .hero__p {
    font-size: 15px;
  }

  .sec {
    padding: 76px 0;
    scroll-margin-top: 76px;
  }

  .sec__head {
    margin-bottom: 40px;
  }

  .sec__head--row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30em);
    gap: 40px;
    align-items: end;
    max-width: none;
  }

  .sec__desc--tight {
    margin-top: 0;
    padding-bottom: 4px;
  }

  .about {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 44px;
    align-items: start;
  }

  .about__fig {
    order: 0;
  }

  .spec dd {
    font-size: 28px;
  }
}

@media (min-width: 1040px) {
  .prods {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* 卡片回到半宽，内部重新纵向堆叠 */
  .prod {
    display: flex;
    flex-direction: column;
  }

  .prod__head,
  .prod__p,
  .mods {
    grid-column: auto;
  }

  .prod__p {
    padding-right: 16px;
  }

  .flow {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
  }

  .flow__item {
    padding: 18px 0;
  }
}

/* 移动端菜单：从顶栏下拉，不覆盖整页 */
@media (max-width: 859px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(16, 32, 29, 0.08);
    padding: 6px var(--pad) 12px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
      visibility 0.2s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__a {
    padding: 12px 2px;
    font-size: 15px;
    border-bottom: 1px solid var(--paper-3);
  }

  .nav__a::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 打印：备案材料常需要截图或打印留档 */
@media print {
  .head,
  .burger,
  .hero__acts,
  .contact__side {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .sec,
  .hero {
    padding: 16pt 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .foot {
    background: none;
    color: #000;
    border-top: 1px solid #000;
  }

  .foot__name,
  .foot__filing a,
  .foot__tag,
  .foot__en {
    color: #000;
  }
}
