/* ==========================================================
   企业认证与资质服务平台  样式表
   纯手写，无第三方依赖，移动端自适应
   ========================================================== */

:root {
  --ink: #16202b;
  --ink-2: #33465a;
  --muted: #64778b;
  --line: #e4eaf0;
  --bg: #f5f7f9;
  --card: #ffffff;
  --brand: #0b5d8a;
  --brand-dark: #084768;
  --brand-soft: #e8f2f8;
  --accent: #14a08a;
  --accent-soft: #e6f6f3;
  --warn: #b7791f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .04), 0 6px 20px rgba(16, 32, 48, .06);
  --shadow-lg: 0 10px 34px rgba(16, 32, 48, .1);
}

* { 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", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding-left: 20px; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 顶部 ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.brand-slogan { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.main-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
.main-nav a {
  padding: 8px 10px; font-size: 13.5px; color: var(--ink-2); border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand); }

.header-tel {
  display: flex; align-items: center; gap: 7px; margin-left: 8px;
  padding: 9px 15px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #14739f);
  color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.header-tel:hover { color: #fff; opacity: .93; }
.header-tel svg { flex-shrink: 0; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 18px; color: var(--ink-2);
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  background: linear-gradient(135deg, #083f5e 0%, #0b5d8a 45%, #127e8e 100%);
  color: #fff; padding: 46px 0 40px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 68%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-kicker {
  display: inline-block; font-size: 12.5px; letter-spacing: .12em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); margin-bottom: 16px;
}
.hero h1 { font-size: 34px; margin-bottom: 14px; letter-spacing: -.02em; }
.hero p { font-size: 15.5px; color: rgba(255,255,255,.86); margin-bottom: 24px; max-width: 640px; }

.search-bar {
  display: flex; gap: 8px; max-width: 560px;
  background: #fff; padding: 6px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3, 30, 46, .25);
}
.search-bar input {
  flex: 1; border: 0; outline: 0; padding: 10px 14px; font-size: 15px;
  color: var(--ink); background: transparent; min-width: 0;
}
.search-bar button {
  border: 0; border-radius: 8px; padding: 10px 22px; font-size: 14.5px;
  font-weight: 600; color: #fff; background: var(--brand);
}
.search-bar button:hover { background: var(--brand-dark); }

.hero-stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.72); }

/* ---------------- 主体两栏 ---------------- */
.layout {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  gap: 26px; align-items: start; padding: 28px 0 56px;
}

.side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 88px;
}
.side-title {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px; font-size: 13.5px; font-weight: 650; color: var(--ink);
  border-bottom: 1px solid var(--line); background: #fafcfd;
}
.side-list { list-style: none; margin: 0; padding: 6px; max-height: calc(100vh - 170px); overflow-y: auto; }
.side-list::-webkit-scrollbar { width: 5px; }
.side-list::-webkit-scrollbar-thumb { background: #cfd9e2; border-radius: 3px; }
.side-list a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2);
}
.side-list a:hover { background: var(--brand-soft); color: var(--brand); }
.side-list a.active { background: var(--brand); color: #fff; }
.side-list a.active .count { background: rgba(255,255,255,.22); color: #fff; }
.side-ico { width: 18px; text-align: center; flex-shrink: 0; font-size: 14px; }
.side-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count {
  font-size: 11.5px; padding: 1px 7px; border-radius: 999px;
  background: var(--bg); color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ---------------- 内容区 ---------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin: 0 0 16px;
}
.section-head h2 { font-size: 21px; }
.section-head .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.more-link { font-size: 13.5px; color: var(--brand); white-space: nowrap; }

.group-block { margin-bottom: 38px; }
.group-block:last-child { margin-bottom: 0; }
.group-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.group-title h3 { font-size: 16.5px; }
.group-title .bar { width: 3px; height: 16px; background: var(--accent); border-radius: 2px; }
.group-title .more-link { margin-left: auto; }

.cat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfe0ec; }
.cat-card-head {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 15px 10px;
}
.cat-card-head .ico { font-size: 17px; }
.cat-card-head h4 { font-size: 14.5px; flex: 1; }
.cat-card-head h4 a { color: var(--ink); }
.cat-card-head h4 a:hover { color: var(--brand); }
.cat-card-head .count { flex-shrink: 0; }
.cat-card-desc {
  padding: 0 15px 12px; font-size: 12.5px; color: var(--muted);
  line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card-links { padding: 0 15px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card-links a {
  font-size: 12.5px; color: var(--ink-2); background: var(--bg);
  padding: 4px 9px; border-radius: 5px; border: 1px solid transparent;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-card-links a:hover { background: var(--brand-soft); color: var(--brand); border-color: #d3e6f2; }

/* ---------------- 列表页 ---------------- */
.crumbs {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); padding: 16px 0 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span.sep { opacity: .5; }

.page-head { padding: 18px 0 22px; }
.page-head h1 { font-size: 26px; margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 14px; max-width: 760px; margin: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs a {
  font-size: 13px; padding: 6px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.tabs a:hover { border-color: #bcd8e8; color: var(--brand); }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.list-table {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border-collapse: separate; border-spacing: 0;
}
.list-table th {
  text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: #fafcfd; padding: 11px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.list-table td { padding: 14px 16px; border-bottom: 1px solid #f0f4f7; vertical-align: middle; }
.list-table tr:last-child td { border-bottom: 0; }
.list-table tr:hover td { background: #fafcfd; }
.list-table .t-name { font-size: 14.5px; font-weight: 600; }
.list-table .t-name a { color: var(--ink); }
.list-table .t-name a:hover { color: var(--brand); }
.list-table .t-desc { font-size: 12.8px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.list-table .t-act { text-align: right; white-space: nowrap; width: 1%; }
.btn-sm {
  display: inline-block; font-size: 12.5px; padding: 6px 14px; border-radius: 6px;
  border: 1px solid #cfe0ec; color: var(--brand); background: #fff;
}
.btn-sm:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.tag {
  display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 4px;
  background: var(--accent-soft); color: #0d7d6c; margin: 0 4px 4px 0;
  white-space: nowrap;
}

/* ---------------- 详情页 ---------------- */
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px; align-items: start; padding: 20px 0 56px;
}
.detail-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 32px 34px;
}
.detail-cat {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 12px;
}
.detail-main h1 { font-size: 27px; margin-bottom: 12px; }
.detail-lead {
  font-size: 15px; color: var(--ink-2); padding: 14px 16px;
  background: #f7fafc; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  margin-bottom: 26px;
}
.detail-section { margin-bottom: 30px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section > h2 {
  font-size: 17px; margin-bottom: 13px; padding-left: 11px;
  border-left: 3px solid var(--brand); line-height: 1.3;
}
.detail-section p { color: var(--ink-2); font-size: 14.5px; }
.detail-section ul { color: var(--ink-2); font-size: 14.5px; padding-left: 0; list-style: none; }
.detail-section ul li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
}
.detail-section ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .75;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 18px 44px;
  font-size: 14.5px; color: var(--ink-2);
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps li::after {
  content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 2px;
  width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }

.cycle-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cycle-table th {
  text-align: left; background: #f7fafc; color: var(--muted); font-weight: 600;
  font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.cycle-table td { padding: 12px 14px; border-bottom: 1px solid #f0f4f7; color: var(--ink-2); }
.cycle-table tr:last-child td { border-bottom: 0; }
.cycle-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; width: 120px; }

.sample-box {
  border: 1px dashed #cfdde8; border-radius: var(--radius);
  background: #fbfdfe; padding: 16px; text-align: center;
}
.sample-box img { margin: 0 auto; border-radius: 6px; max-height: 460px; object-fit: contain; }
.sample-note { font-size: 12px; color: var(--muted); margin-top: 12px; margin-bottom: 0; }

/* 侧边咨询 */
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; position: sticky; top: 88px;
}
.aside-card h3 { font-size: 16px; margin-bottom: 6px; }
.aside-card .hint { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.contact-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .k { font-size: 12.5px; color: var(--muted); width: 42px; flex-shrink: 0; }
.contact-row .v { font-weight: 600; color: var(--ink); word-break: break-all; }
.contact-row .v a { color: var(--ink); }
.btn-block {
  display: block; text-align: center; margin-top: 16px; padding: 12px;
  border-radius: 8px; background: linear-gradient(135deg, var(--brand), #14739f);
  color: #fff; font-weight: 600; font-size: 14.5px;
}
.btn-block:hover { color: #fff; opacity: .94; }

.related { margin-top: 18px; }
.related h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.related a {
  display: block; font-size: 13.5px; padding: 7px 0; color: var(--ink-2);
  border-bottom: 1px dashed #eef2f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.related a:last-child { border-bottom: 0; }
.related a:hover { color: var(--brand); }

/* ---------------- 关于页 ---------------- */
.about-main {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 36px; margin: 20px 0 56px;
}
.about-main h1 { font-size: 26px; margin-bottom: 16px; }
.about-main h2 { font-size: 18px; margin: 30px 0 12px; }
.about-main p { color: var(--ink-2); font-size: 15px; }
.about-main li { color: var(--ink-2); font-size: 14.5px; margin-bottom: 8px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0d2233; color: rgba(255,255,255,.72); padding: 44px 0 26px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-grid h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; }
.footer-grid p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.75; }
.footer-grid a { color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: #fff; }
.footer-line { display: flex; gap: 8px; margin-bottom: 8px; }
.footer-line .k { color: rgba(255,255,255,.45); width: 44px; flex-shrink: 0; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.42); text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.55); }

/* ---------------- 空状态 / 提示 ---------------- */
.empty {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; flex-direction: column; padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 70;
  }
  .main-nav.open a { padding: 11px 12px; }
  .nav-toggle { display: block; }
  .header-tel { margin-left: 0; padding: 8px 13px; font-size: 13px; }
  .brand-slogan { display: none; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .side-list { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; }
  .detail-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero { padding: 34px 0 30px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 14px; }
  .hero-stats { gap: 22px; margin-top: 22px; }
  .hero-stats b { font-size: 20px; }
  .header-inner { height: 60px; gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; }
  .header-tel span { display: none; }
  .header-tel { padding: 9px 11px; }
  .main-nav.open { top: 60px; }
  .layout { padding: 18px 0 40px; gap: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .detail-main { padding: 22px 18px 26px; }
  .detail-main h1 { font-size: 21px; }
  .about-main { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .list-table .t-act { display: none; }
  .list-table th:nth-child(3), .list-table td:nth-child(3) { display: none; }
  .page-head h1 { font-size: 21px; }
  .crumbs { font-size: 12px; }
}
