/* ===========================================================
   深圳市信准检测技术服务有限公司 官网样式
   移动优先，PC 断点 900px / 1200px
   =========================================================== */
:root {
  --blue: #14708f;
  --blue-d: #0d5670;
  --blue-l: #e8f2f6;
  --orange: #f67c01;
  --orange-d: #d96a00;
  --ink: #232a2f;
  --ink-2: #4a555e;
  --gray: #78848e;
  --line: #e4e9ee;
  --bg: #f4f7f9;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(16, 40, 58, .06);
  --shadow-h: 0 10px 28px rgba(16, 40, 58, .12);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.2em; }
li { margin-bottom: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--ink);
  color: #cfd8de;
  font-size: 13px;
  line-height: 40px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.topbar a { color: #dfe8ee; }
.topbar .hide-m { display: none; }
.topbar strong { color: var(--orange); font-size: 14px; }

/* ---------- 头部 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 40px; width: auto; max-width: 210px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--gray); letter-spacing: 2px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: 60px 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 16px;
  display: none;
  max-height: calc(100vh - 60px);
  overflow: auto;
}
.nav.open { display: block; }
.nav a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  border-bottom: 1px solid #f0f3f5;
  color: var(--ink-2);
}
.nav a.active { color: var(--blue); font-weight: 600; }

.header-cta { display: none; }

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #0b2b38;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 40%;
  filter: saturate(.9);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 33, 46, .96) 0%, rgba(6, 42, 58, .86) 42%, rgba(9, 60, 82, .40) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 52px; }
.hero h1 { font-size: 26px; line-height: 1.45; margin-bottom: 12px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { color: #d6e2e8; font-size: 14px; max-width: 620px; margin-bottom: 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: #cfe0e8; }
.hero-tags span::before { content: "✓"; color: var(--orange); margin-right: 6px; font-weight: 700; }

.about { display: grid; gap: 20px; }
.about-img img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
}

.about { display: grid; gap: 20px; }
.about-img img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
}

/* ---------- 通用块 ---------- */
.section { padding: 44px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: 22px; letter-spacing: .5px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--orange);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-head p { color: var(--gray); font-size: 13px; margin: 10px 0 0; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: #d7e2e8; }
.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--blue-l) center/cover no-repeat;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 15px; margin-bottom: 6px; }
.card .desc { font-size: 13px; color: var(--gray); line-height: 1.7; flex: 1; }
.card .more { margin-top: 10px; font-size: 13px; color: var(--blue); font-weight: 600; }
.card .more::after { content: " →"; }

/* ---------- 富文本正文 ---------- */
.prose { font-size: 15px; color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose h2, .prose h3, .prose h4 {
  margin: 26px 0 12px;
  color: var(--ink);
  font-size: 17px;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
}
.prose img { margin: 16px auto; border-radius: 8px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
  background: var(--white);
  display: block;
  overflow-x: auto;
}
.prose table th, .prose table td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.prose table th { background: var(--blue-l); color: var(--blue-d); font-weight: 600; white-space: nowrap; }
.prose table tr:nth-child(even) td { background: #fafcfd; }
.prose li { margin-bottom: 8px; }

/* ---------- 面包屑 / 页头 ---------- */
.pagehead {
  background: linear-gradient(120deg, #0f5f7a, #14708f);
  color: #fff;
  padding: 30px 0;
}
.pagehead h1 { font-size: 21px; margin-bottom: 6px; }
.crumb { font-size: 12.5px; color: #c8dde6; }
.crumb a { color: #c8dde6; }
.crumb span { margin: 0 6px; opacity: .6; }

/* ---------- 文章 meta ---------- */
.meta { font-size: 13px; color: var(--gray); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }

/* ---------- 内页两栏（详情） ---------- */
.detail-wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
.side { display: none; }

/* ---------- 侧栏 ---------- */
.side-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.side-box h3 { background: var(--blue); color: #fff; font-size: 15px; padding: 12px 16px; }
.side-box ul { list-style: none; margin: 0; padding: 6px 0; }
.side-box li { border-bottom: 1px solid #f1f4f6; }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: 11px 16px; font-size: 14px; color: var(--ink-2); }
.side-box li a:hover, .side-box li a.active { color: var(--blue); background: var(--blue-l); }
.side-contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 13.5px; color: var(--ink-2); }
.side-contact img { width: 132px; margin: 0 auto 10px; }
.side-contact b { color: var(--ink); }

/* ---------- 特色条 ---------- */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature .ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-l); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 10px;
}
.feature h4 { font-size: 15px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--gray); margin: 0; }

/* ---------- 新闻列表 ---------- */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.newslist a { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.newslist .t { font-size: 15px; color: var(--ink); }
.newslist a:hover .t { color: var(--blue); }
.newslist .d { font-size: 12.5px; color: var(--gray); white-space: nowrap; }

/* ---------- 查询 ---------- */
.query-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}
.query-card h2 { font-size: 17px; margin-bottom: 4px; }
.query-card .hint { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.field label i { color: #e4393c; font-style: normal; margin-right: 3px; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #d6dee4;
  border-radius: 8px;
  background: #fbfcfd;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 112, 143, .1); background: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--orange-d); }
.btn.ghost { background: #eef3f6; color: var(--ink-2); }
.btn.ghost:hover { background: #e2eaef; }

/* 查询结果 */
.result-box { margin-top: 22px; }
.result-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.result-tag { font-size: 12px; font-weight: 400; color: #fff; background: #2f9e5f; padding: 2px 8px; border-radius: 4px; }
.result-tag.warn { background: #d9a406; }
.result-count { font-size: 13.5px; color: var(--gray); margin: 12px 0; }
.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-table th, .result-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.result-table th { background: #f7fafb; color: var(--ink-2); font-weight: 600; width: 34%; }
.result-empty { text-align: center; padding: 28px 0; color: var(--gray); font-size: 14.5px; }
.result-note { margin-top: 16px; font-size: 12.5px; color: var(--gray); line-height: 1.8; border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- 底部 ---------- */
.footer { background: #1e2a31; color: #9fb0bb; font-size: 13.5px; padding: 32px 0 0; }
.footer a { color: #9fb0bb; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer .qr { width: 110px; border-radius: 6px; background: #fff; padding: 4px; }
.footer .qr-cap { font-size: 12px; margin-top: 6px; }
.copy { border-top: 1px solid #2c3a42; margin-top: 26px; padding: 14px 0; font-size: 12px; color: #7d8d99; text-align: center; line-height: 1.9; }
.copy a { color: #7d8d99; }

/* ---------- 移动端底部操作条 ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  font-size: 11px;
  color: var(--ink-2);
}
.mobile-bar svg { width: 20px; height: 20px; fill: var(--blue); }
body.has-mobilebar { padding-bottom: 56px; }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero .container { padding-top: 72px; padding-bottom: 72px; }
  .query-card { padding: 28px; }
}

@media (min-width: 900px) {
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  .topbar .hide-m { display: inline; }
  .header .container { height: 74px; }
  .logo img { height: 54px; }
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    gap: 2px;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav a {
    position: relative;
    padding: 8px 12px;
    border: 0;
    font-size: 15px;
    border-radius: 6px;
  }
  .nav a:hover { color: var(--blue); background: var(--blue-l); }
  .nav a.active { color: var(--blue); background: var(--blue-l); font-weight: 600; }
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 9px 16px;
    background: var(--orange);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }
  .header-cta:hover { background: var(--orange-d); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: 27px; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .hero .container { padding-top: 96px; padding-bottom: 96px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 15.5px; }
  .pagehead { padding: 46px 0; }
  .pagehead h1 { font-size: 27px; }
  .detail-wrap { grid-template-columns: 1fr 280px; gap: 36px; }
  .side { display: block; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .prose { font-size: 15.5px; }
  .result-table th { width: 22%; }
  .query-card { padding: 34px 38px; max-width: 720px; margin: 0 auto; }
  .btn { width: auto; min-width: 180px; }
  .mobile-bar { display: none; }
  body.has-mobilebar { padding-bottom: 0; }
}

@media (min-width: 1200px) {
  .hero h1 { font-size: 44px; }
}
