/* 中鉴认证石家庄分公司官网 · 基础样式（无第三方依赖） */

:root {
  --ink: #10233f;
  --ink-soft: #33475f;
  --muted: #64748b;
  --brand: #12507f;
  --brand-dark: #0b3459;
  --brand-light: #e8f1f8;
  --accent: #b8863b;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e2e8f0;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(16, 35, 63, 0.08);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.brand-mark.has-logo {
  width: 46px;
  height: 46px;
  background: none;
  border-radius: 7px;
}

.brand-mark.has-logo img {
  border-radius: 7px;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.main-nav a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.header-phone {
  font-size: 14px;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 首页轮播 ---------- */
.banner-slider {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.banner-track {
  display: flex;
  transition: transform 0.6s ease;
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}

.banner-slide img {
  width: 100%;
  height: clamp(280px, 52vw, 520px);
  object-fit: cover;
}

.banner-image-link {
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(6vw, 40px);
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(6, 24, 43, 0.72) 0%,
    rgba(6, 24, 43, 0.28) 55%,
    rgba(6, 24, 43, 0) 100%
  );
  pointer-events: none;
}

.banner-overlay h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: 1px;
}

.banner-overlay p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.banner-overlay .btn {
  align-self: flex-start;
  margin-top: 20px;
  pointer-events: auto;
}

.banner-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.banner-dot.is-active {
  background: #fff;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0a2b4c 0%, #12507f 55%, #1a6a9e 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -220px;
}

.hero::after {
  width: 320px;
  height: 320px;
  right: 60px;
  bottom: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(184, 134, 59, 0.35), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 84px 0 76px;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #d8b27a;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #d8b27a;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero p {
  margin: 0 0 32px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

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

.btn-primary:hover {
  background: #a3762f;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- 标准条 ---------- */
.standards {
  background: var(--ink);
  color: #fff;
}

.standards-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.standards-inner div {
  background: var(--ink);
  padding: 22px 20px;
  text-align: center;
}

.standards-inner b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.standards-inner span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.more-link {
  color: var(--brand);
  font-size: 14px;
  white-space: nowrap;
}

.more-link:hover {
  color: var(--accent);
}

/* ---------- 服务卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9d9e6;
}

.service-index {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
}

.service-cover {
  margin: -28px -26px 22px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand-light);
}

.service-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-cover img {
  transform: scale(1.03);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
}

.service-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.service-card .card-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 关于 ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0d3a61 0%, #1a6a9e 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.about-media::after {
  content: "中鉴认证";
  font-size: 40px;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy .prose {
  color: var(--ink-soft);
  font-size: 15px;
}

.about-points {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.about-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 15px;
  list-style: none;
}

.about-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- 新闻 ---------- */
.news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.news-item:hover {
  background: var(--bg);
}

.news-date {
  text-align: center;
  border-right: 1px solid var(--line);
}

.news-date b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.2;
}

.news-date span {
  font-size: 12px;
  color: var(--muted);
}

.news-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 500;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tag {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 列表页 ---------- */
.page-hero {
  background: linear-gradient(120deg, #0a2b4c, #12507f);
  color: #fff;
  padding: 52px 0 46px;
}

.page-hero h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.page-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
}

.filter-bar a:hover,
.filter-bar a.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  background: #fff;
}

.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.filter-bar a.is-child {
  font-size: 13px;
  padding: 6px 14px;
  color: var(--muted);
}

.filter-bar a.is-child.is-active {
  color: var(--brand);
}

/* ---------- 详情 ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 58px;
  padding: 60px 0 76px;
}

.article-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 600;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.prose {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: break-word;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}

.prose p {
  margin: 0 0 1em;
}

.prose img {
  border-radius: 8px;
  margin: 1em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.sidebar h3 {
  font-size: 15px;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sidebar li a {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.sidebar li a:hover {
  color: var(--brand);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, #0c3459, #12507f);
  color: #fff;
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding: 46px 0 26px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.footer-brand {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0;
}

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 留言表单 ---------- */
.message-form {
  max-width: 720px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-field label {
  font-weight: 500;
  color: var(--ink);
}

.form-field .required {
  color: #b42318;
  margin-left: 3px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brand-light);
  border-color: var(--brand);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.captcha-question {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.field-error {
  color: #b42318;
  font-size: 13px;
}

.form-hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.notice {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 14px;
}

.notice p {
  margin: 0;
}

.notice-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.notice-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.lead {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- 空状态 ---------- */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .main-nav,
  .header-phone {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sidebar {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .banner-overlay {
    padding: 0 22px;
  }

  .banner-slide img {
    height: 300px;
  }

  .standards-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    padding: 58px 0 52px;
  }

  .news-item {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .news-tag {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
