/* ============================================================
   cqzjqc.com 官网重建 · 全局样式
   北京中经科环质量认证有限公司重庆分公司
   设计：信任 / 标准 / 权威（海军蓝 + 认证金）
   移动优先，桌面在 min-width 断点扩展
   ============================================================ */

:root {
  --navy-900: #0a1e33;
  --navy-800: #0e2a47;
  --navy-700: #14395e;
  --blue-600: #1d5fa8;
  --blue-500: #2b7bd8;
  --blue-100: #e8f0fa;
  --gold: #c9a227;
  --gold-soft: #e5c558;
  --ink: #16232f;
  --ink-2: #4a5b6a;
  --line: #dce4ec;
  --bg: #f5f8fc;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px; border-radius: 6px;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b6921f; color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--navy-900); color: #c8d6e4;
  font-size: 13px; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #e8f0fa; }
.topbar .topbar-phone { font-weight: 600; color: var(--gold-soft); }

/* ---------- 页头导航 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .brand-emblem { width: 44px; height: 44px; flex: 0 0 44px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--navy-800); line-height: 1.3; }
.brand-name small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); letter-spacing: .5px; }

.nav { display: none; }
.nav a { color: var(--ink); font-size: 15px; padding: 8px 2px; margin-left: 24px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue-600); border-color: var(--gold); }
.nav a.on { color: var(--navy-800); border-color: var(--gold); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--navy-800); }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; }
  .nav-toggle { display: none; }
}

@media (max-width: 639px) {
  .brand-logo { height: 34px; }
}

/* 移动端展开菜单 */
.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 8px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--ink); font-size: 16px; border-bottom: 1px solid var(--bg); }
.mobile-nav a.on { color: var(--blue-600); font-weight: 600; }
.mobile-nav .btn { margin-top: 14px; width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; color: #fff;
  background-color: var(--navy-800);
  padding: 72px 0 84px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,30,51,.92) 0%, rgba(20,57,94,.78) 55%, rgba(29,95,168,.45) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; color: var(--gold-soft);
  border: 1px solid rgba(229,197,88,.5); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.25; font-weight: 700; max-width: 720px; }
.hero .lead { margin: 18px 0 30px; font-size: 17px; line-height: 1.9; color: #dbe7f3; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-badges {
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.hero-badge { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: #dbe7f3; }
.hero-badge strong { display: block; color: #fff; font-size: 14px; }
.hero-badge svg { width: 20px; height: 20px; flex: 0 0 20px; stroke: var(--gold-soft); margin-top: 2px; }

@media (min-width: 700px) { .hero-badges { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker {
  font-size: 13px; letter-spacing: 2px; color: var(--blue-600);
  font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.section-head .kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--navy-800); line-height: 1.3; }
.section-head .desc { margin-top: 10px; color: var(--ink-2); }

/* ---------- 首页：认证服务 ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .sc-top { display: flex; align-items: center; gap: 14px; }
.service-card .sc-icon {
  width: 46px; height: 46px; border-radius: 8px; flex: 0 0 46px;
  background: var(--navy-800); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
}
.service-card .sc-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 17px; color: var(--navy-800); }
.service-card .sc-code { font-size: 12px; color: var(--ink-2); letter-spacing: 1px; }
.service-card p { font-size: 14px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.service-card .sc-link { font-size: 14px; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.service-card .sc-link:hover { color: var(--navy-800); }

/* ---------- 信任背书：数字 ---------- */
.trust-strip { background: var(--navy-800); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
@media (min-width: 800px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item .num { font-size: 30px; font-weight: 700; color: var(--gold-soft); line-height: 1.2; }
.trust-item .lbl { font-size: 13px; color: #c8d6e4; margin-top: 4px; }

/* ---------- 认证流程（编号序列） ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px; counter-increment: step;
}
.step .step-no {
  font-size: 26px; font-weight: 700; color: var(--gold);
  display: flex; align-items: baseline; gap: 6px;
}
.step .step-no::after { content: ""; width: 26px; height: 2px; background: var(--line); }
.step h4 { margin: 10px 0 6px; font-size: 15px; color: var(--navy-800); }
.step p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }

/* ---------- 公司动态 ---------- */
.news-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
.news-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; transition: box-shadow .2s;
}
.news-item:hover { box-shadow: var(--shadow); }
.news-item .nd { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.news-item .nd svg { width: 15px; height: 15px; stroke: var(--gold); }
.news-item h3 { margin: 8px 0 6px; font-size: 16px; line-height: 1.5; }
.news-item h3 a { color: var(--navy-800); }
.news-item h3 a:hover { color: var(--blue-600); }
.news-item p { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 48px 18px 20px;
  font-size: 16px; font-weight: 600; color: var(--navy-800);
  position: relative; display: flex; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.85; border-top: 1px dashed var(--line); padding-top: 14px; }
.faq-item summary .q { color: var(--blue-600); font-weight: 700; flex: 0 0 auto; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative; color: #fff;
  background-color: var(--navy-800);
  padding: 64px 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,51,.94), rgba(20,57,94,.82));
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.35; }
.cta-inner p { margin: 14px 0 26px; color: #dbe7f3; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 15px; }
.cta-contacts span { display: inline-flex; align-items: center; gap: 8px; }
.cta-contacts svg { width: 18px; height: 18px; stroke: var(--gold-soft); }
.cta-contacts a { color: #fff; font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-foot { background: var(--navy-900); color: #b9c9d8; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 52px 0 40px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.foot-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.foot-col p { line-height: 1.9; }
.foot-col ul li { margin-bottom: 9px; }
.foot-col ul a { color: #b9c9d8; }
.foot-col ul a:hover { color: var(--gold-soft); }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-name small { color: #8ba2b8; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 22px; font-size: 13px; color: #8ba2b8; }
.foot-bottom .container { display: flex; flex-direction: column; gap: 6px; justify-content: space-between; }
@media (min-width: 760px) { .foot-bottom .container { flex-direction: row; align-items: center; } }

/* ---------- 内页 Hero ---------- */
.page-hero {
  background: linear-gradient(120deg, rgba(10,30,51,.92), rgba(20,57,94,.8)), var(--navy-800);
  color: #fff; padding: 56px 0 46px;
}
.page-hero .kicker { color: var(--gold-soft); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.3; }
.page-hero p { margin-top: 12px; color: #dbe7f3; max-width: 720px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-2); padding: 16px 0 0; }
.breadcrumb a { color: var(--blue-600); }
.breadcrumb .sep { margin: 0 8px; color: #b3c2d0; }

/* ---------- 正文排版 ---------- */
.prose { font-size: 16px; line-height: 1.9; color: var(--ink); }
.prose h2 { font-size: 22px; color: var(--navy-800); margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); }
.prose h3 { font-size: 18px; color: var(--navy-800); margin: 24px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose ul li { list-style: disc; margin-bottom: 6px; }
.prose ol li { list-style: decimal; margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--blue-100); color: var(--navy-800); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--gold); background: var(--white); padding: 12px 18px; margin: 16px 0; color: var(--ink-2); }

/* 表格列宽显式 */
.col-table { table-layout: fixed; }
.col-table col.c1 { width: 18%; }
.col-table col.c2 { width: 30%; }
.col-table col.c3 { width: 26%; }
.col-table col.c4 { width: 26%; }

/* ---------- 侧栏 / 服务页布局 ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 960px) { .layout-2col { grid-template-columns: 1fr 300px; align-items: start; } }

.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.side-box h3 { font-size: 16px; color: var(--navy-800); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.side-box ul li { margin-bottom: 8px; font-size: 14px; }
.side-box ul li a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.side-box ul li a:hover { color: var(--blue-600); }
.side-box .phone-big { font-size: 24px; font-weight: 700; color: var(--navy-800); }
.side-box .phone-big a { color: var(--navy-800); }
.side-box .side-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 17px; color: var(--navy-800); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.contact-card h3 svg { width: 20px; height: 20px; stroke: var(--gold); }
.contact-card p, .contact-card li { font-size: 15px; color: var(--ink-2); line-height: 1.9; }
.contact-card li { list-style: none; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 16px; font-family: inherit; background: var(--bg);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue-500); border-color: transparent; }

/* ---------- 小工具 ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 焦点可见 */
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 尊重 reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ICP 备案：悬停保持可见 */
.foot-bottom a.icp-beian,
.foot-bottom a.icp-beian:visited {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-bottom a.icp-beian:hover,
.foot-bottom a.icp-beian:focus {
  color: #c9a227;
  opacity: 1;
}
