/* 北京华誉九洲认证有限公司 - 门户样式 */

:root {
  --primary: #0b5394;
  --primary-dark: #0146aa;
  --primary-hover: #003c93;
  --primary-light: #276cd3;
  --text: #222222;
  --text-muted: #666666;
  --text-light: #999999;
  --about-bg: #f8f8f8;
  --border: #e6e6e6;
  --white: #ffffff;
  --header-h: 80px;
  --content: 1320px;
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  min-width: 320px;
  line-height: 1.6;
  padding-top: var(--header-h);
  overflow-x: clip;
}

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

img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(11, 83, 148, 0.06);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(11, 83, 148, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding-left: max(16px, calc((100% - var(--content)) / 2 + 13px));
}

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

.brand img {
  height: 64px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
  background: var(--primary);
  height: 100%;
  display: flex;
  align-items: stretch;
  padding-right: max(0px, calc((100% - var(--content)) / 2));
}

.nav-list {
  display: flex;
  height: 100%;
}

.nav-item {
  position: relative;
  width: 120px;
  height: 100%;
}

.nav-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.nav-item:hover > a,
.nav-item.active > a {
  background: rgba(255, 255, 255, 0.1);
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 20;
}

.nav-item:hover .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  height: 46px;
  line-height: 46px;
  text-align: center;
  color: #555;
  font-size: 16px;
  border-top: 2px solid var(--primary-light);
  background: var(--white);
}

.nav-sub a:hover,
.nav-sub a.active {
  background: var(--primary-light);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: 0.2s;
}

.mobile-mask {
  display: none;
}

/* ========== Banner / Carousel ========== */
.banner {
  position: relative;
  height: 770px;
  overflow: hidden;
  background: #1a1a1a;
}

.banner-slides {
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.banner-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 40, 0.28);
}

.banner-text {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(1090px, 92%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.banner-text p {
  font-size: 34px;
  line-height: 2.2;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(28px);
}

.banner-slide.active .banner-text p {
  animation: bannerFadeUp 0.9s ease forwards;
}

.banner-slide.active .banner-text p:nth-child(2) {
  animation-delay: 0.28s;
}

@keyframes bannerFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #555;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.banner-btn:hover {
  background: var(--white);
}

.banner-btn.prev {
  left: 18px;
}

.banner-btn.next {
  right: 18px;
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.banner-dots button.active {
  background: #3a3a3a;
}

/* ========== About ========== */
.about {
  background: var(--about-bg);
  padding: 72px 0 80px;
}

.about-kicker {
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 32px;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 2px;
}

.about-title {
  text-align: center;
  font-size: 32px;
  color: var(--text);
  font-weight: 700;
  margin: 18px 0 16px;
}

.about-desc {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}

.btn-more {
  display: block;
  width: 187px;
  height: 41px;
  line-height: 41px;
  margin: 0 auto 56px;
  text-align: center;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s;
}

.btn-more:hover {
  background: var(--primary-hover);
}

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

.service-card {
  position: relative;
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
}

.service-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1).in-view { transition-delay: 0.05s; }
.service-card:nth-child(2).in-view { transition-delay: 0.18s; }
.service-card:nth-child(3).in-view { transition-delay: 0.31s; }
.service-card:nth-child(4).in-view { transition-delay: 0.44s; }

.service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.service-card img.service-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img.service-bg {
  transform: scale(1.08);
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.45) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 16px;
  text-align: center;
}

.service-overlay .service-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.service-overlay span {
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
}

/* ========== Cert query + Footer ========== */
.cert-query {
  padding: 28px 0 10px;
  background: var(--white);
}

.cert-query-head {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.cert-query-title {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding-right: 18px;
  font-size: 26px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
}

.cert-query-title svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.cert-query-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--primary);
}

.cert-logo {
  display: inline-block;
}

.cert-logo img {
  height: 40px;
  width: auto;
}

.site-footer {
  background: var(--white);
  padding: 8px 0 28px;
}

.beian {
  text-align: center;
  font-size: 14px;
  color: #333;
  line-height: 1.9;
}

.beian a {
  color: #333;
}

.beian a:hover {
  color: var(--primary);
}

.beian img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  position: relative;
  top: -1px;
}

/* ========== Floating widgets ========== */
.float-kefu {
  position: fixed;
  right: 0;
  top: 26%;
  z-index: 1200;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  filter: drop-shadow(-2px 4px 10px rgba(0, 0, 0, 0.18));
}

.kefu-photo {
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: transparent;
  box-shadow: none;
}

.kefu-bar {
  width: 100%;
  background: #0b6bb8;
  color: var(--white);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 6px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0 16px;
  text-align: center;
  cursor: pointer;
  line-height: 70px;
  box-sizing: border-box;
}

.kefu-panel {
  position: absolute;
  right: calc(100% + 10px);
  top: 40px;
  width: 220px;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  padding: 16px 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: 0.2s;
  border-radius: 4px;
}

.float-kefu:hover .kefu-panel,
.float-kefu.open .kefu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.kefu-panel h4 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 10px;
}

.kefu-panel p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.kefu-panel a {
  color: var(--primary);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 36px;
  z-index: 1190;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(11, 83, 148, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(11, 83, 148, 0.16);
  transform: translateY(-2px);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ========== Inner pages ========== */
.page-banner {
  position: relative;
  height: 280px;
  background: #1a1a1a;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.62);
}

.page-banner h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.breadcrumb {
  background: var(--about-bg);
  height: 48px;
  line-height: 48px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.inner-wrap {
  display: flex;
  gap: 40px;
  padding: 40px 0 70px;
  min-height: 480px;
}

.inner-side {
  width: 240px;
  flex-shrink: 0;
}

.side-title {
  position: relative;
  background: var(--primary);
  color: var(--white);
  line-height: 1.4;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 20px 14px;
  margin-bottom: 16px;
}

.side-title::after {
  content: "";
  display: block;
  width: 78%;
  max-width: 160px;
  height: 6px;
  margin: 10px auto 0;
  background: url("../images/gywm.png") center / 100% 100% no-repeat;
}

.side-nav a {
  display: block;
  height: 46px;
  line-height: 46px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  color: #555;
  font-size: 15px;
  background: #fafafa;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--primary-light);
  color: var(--white);
}

.inner-main {
  flex: 1;
  min-width: 0;
}

.inner-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--primary);
}

.article-list li {
  border-bottom: 1px dashed #ddd;
}

.article-list li.empty-tip {
  border-bottom: none;
}

.article-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  font-size: 15px;
  color: #333;
}

.article-list a:hover {
  color: var(--primary);
}

.article-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-right: 10px;
}

.article-list .title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.article-list .title-wrap span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-list time {
  color: var(--text-light);
  font-size: 13px;
  flex-shrink: 0;
}

.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 2;
}

.pagination-wrap {
  text-align: center;
  margin-top: 28px;
}

.pagination-wrap .pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-wrap .pagination li a {
  display: block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--white);
  text-align: center;
  box-sizing: border-box;
}

.pagination-wrap .pagination li a:hover {
  border-color: var(--primary);
  color: var(--white);
  background: var(--primary);
}

.pagination-wrap .pagination li.active a,
.pagination-wrap .pagination li.active span {
  border-color: var(--primary);
  color: var(--white);
  background: var(--primary);
  pointer-events: none;
}

.pagination-wrap .pagination li.disabled span {
  display: block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: #c8c8c8;
  background: #fafafa;
  text-align: center;
  box-sizing: border-box;
}

.result-summary {
  margin: 6px 0 18px;
  padding: 12px 14px;
  background: var(--about-bg);
  border-left: 3px solid var(--primary);
  color: #666;
  font-size: 14px;
}

.result-summary b {
  color: var(--primary);
  font-size: 16px;
  margin: 0 2px;
}

.article-meta {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 22px;
}

.article-body {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
}

.article-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.article-body h3 {
  font-size: 16px;
  color: var(--primary);
  margin: 20px 0 10px;
  text-indent: 0;
}

.scope-cert {
  text-align: center;
}

.scope-cert img {
  width: 100%;
  max-width: 820px;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.side-nav {
  margin-top: 0;
}

.inner-side .side-title + .side-nav,
.inner-side .side-title + .jobs-side-carousel {
  margin-top: 0;
}

.jobs-side-carousel {
  margin-top: 0;
  border-top: none;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
  background: #f2f2f2;
  min-height: 280px;
}

.jobs-side-carousel .jobs-slide {
  display: none;
}

.jobs-side-carousel .jobs-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

.jobs-side-carousel img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.jobs-side-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.jobs-side-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.jobs-side-dots button.active {
  background: #fff;
}

.contact-map {
  position: relative;
  width: 100%;
  height: 480px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background: #f3f5f7;
  z-index: 1;
}

.contact-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font);
}

.contact-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f3f5f7;
  color: #666;
  font-size: 14px;
}

.contact-map-fallback a {
  color: var(--primary);
  text-decoration: underline;
}

.contact-address {
  text-align: center;
  color: #666;
  margin: -12px 0 28px;
  font-size: 14px;
  line-height: 1.7;
  padding: 0 8px;
}

.page-banner .banner-slogan {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  animation: sloganFadeIn 0.8s ease both;
  z-index: 2;
  pointer-events: none;
}

@keyframes sloganFadeIn {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 18px));
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-banner h2 {
  animation: bannerFadeUp 0.8s ease both;
}

.about-body {
  font-size: 15px;
  color: #606366;
  line-height: 1.9;
}

.about-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}

/* Contact */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--about-bg);
  border-radius: 8px;
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: #fafafa;
  padding: 32px 36px 28px;
  border-radius: 8px;
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 20px;
}

.form-tip {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 4px;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--primary);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 160px;
  height: 42px;
  margin: 8px auto 0;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 100px;
  font-size: 15px;
}

.form-submit:hover {
  background: var(--primary-hover);
}

.form-ok {
  display: none;
  text-align: center;
  color: var(--primary);
  padding: 48px 20px;
  font-size: 16px;
  max-width: 760px;
  margin: 0 auto 40px;
  background: #fafafa;
  border-radius: 8px;
}

/* Jobs */
.job-card {
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.job-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.job-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ========== Responsive ========== */
@media (max-width: 1320px) {
  .brand-name {
    font-size: 22px;
  }

  .nav-item {
    width: 100px;
  }

  .nav-item > a {
    font-size: 16px;
  }

  .banner-text p {
    font-size: 24px;
    line-height: 2;
  }

  .banner {
    height: 560px;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 12px;
    justify-content: space-between;
  }

  .brand {
    gap: 8px;
    max-width: calc(100% - 56px);
  }

  .brand img {
    height: 40px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 15px;
    white-space: normal;
    line-height: 1.25;
  }

  .main-nav {
    margin-left: 0;
    padding-right: 0;
  }

  .nav-toggle {
    display: flex;
    margin: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 0;
    flex-direction: column;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    height: auto;
  }

  .nav-item > a {
    height: 48px;
    justify-content: flex-start;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
  }

  .nav-item > a.has-sub::after {
    content: "▾";
    margin-left: auto;
    font-size: 12px;
    opacity: 0.8;
  }

  .nav-item.open > a.has-sub::after {
    content: "▴";
  }

  .nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    background: #08467e;
  }

  .nav-item.open .nav-sub,
  .nav-item:hover .nav-sub {
    display: block;
  }

  .nav-sub a {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border-top: none;
    text-align: left;
    padding-left: 32px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
  }

  .nav-sub a:hover,
  .nav-sub a.active {
    background: var(--primary-light);
  }

  .banner {
    height: 360px;
  }

  .banner-text {
    top: 50%;
    width: 88%;
  }

  .banner-text p {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
  }

  .banner-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .banner-btn.prev {
    left: 8px;
  }

  .banner-btn.next {
    right: 8px;
  }

  .about {
    padding: 40px 0 48px;
  }

  .about-kicker {
    font-size: 20px;
  }

  .about-title {
    font-size: 20px;
    margin: 12px 0 12px;
  }

  .about-desc {
    font-size: 13px;
    padding: 0 4px;
    margin-bottom: 20px;
  }

  .btn-more {
    margin-bottom: 28px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    height: 180px;
  }

  .service-overlay .service-icon {
    width: 42px;
    height: 42px;
  }

  .service-overlay span {
    font-size: 13px;
  }

  .container {
    max-width: calc(100% - 24px);
  }

  .cert-query {
    padding: 20px 0 8px;
  }

  .cert-logo img {
    height: 32px;
  }

  .beian {
    font-size: 12px;
    padding: 0 8px;
  }

  .inner-wrap {
    flex-direction: column;
    gap: 20px;
    padding: 24px 0 48px;
  }

  .inner-side {
    width: 100%;
  }

  .side-title {
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    padding: 14px 16px 12px;
    margin-bottom: 12px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
  }

  .side-nav a {
    flex: none;
    text-align: center;
    min-width: 0;
    height: 44px;
    line-height: 44px;
    padding: 0 8px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .side-nav a:nth-child(2n) {
    border-right: none;
  }

  .inner-heading {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .article-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 2px;
    font-size: 14px;
  }

  .article-list time {
    padding-left: 16px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-card {
    padding: 20px 14px;
  }

  .page-banner {
    height: 160px;
  }

  .page-banner h2,
  .page-banner .banner-slogan {
    font-size: 18px;
    letter-spacing: 1px;
    white-space: normal;
    line-height: 1.4;
    width: 100%;
    padding: 0 16px;
  }

  .contact-map {
    height: 320px;
    margin-bottom: 20px;
  }

  .kefu-photo {
    height: 72px;
  }

  .float-kefu {
    width: 56px;
    top: auto;
    bottom: 100px;
  }

  .kefu-bar {
    font-size: 13px;
    letter-spacing: 4px;
    line-height: 56px;
    padding: 10px 0 12px;
  }

  .kefu-panel {
    width: 190px;
    padding: 12px 14px;
    top: 20px;
  }

  .scope-cert img {
    box-shadow: none;
  }

  .breadcrumb {
    height: auto;
    line-height: 1.5;
    padding: 12px 0;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  .brand-name {
    font-size: 13px;
  }

  .brand img {
    height: 34px;
  }

  .banner {
    height: 260px;
  }

  .banner-text p {
    font-size: 14px;
    line-height: 1.7;
  }

  .banner-btn {
    display: none;
  }

  .banner-dots {
    bottom: 12px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    height: 190px;
  }

  .about {
    padding: 32px 0 40px;
  }

  .about-title {
    font-size: 18px;
  }

  .btn-more {
    width: 160px;
    height: 38px;
    line-height: 38px;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .page-banner {
    height: 130px;
  }

  .page-banner h2,
  .page-banner .banner-slogan {
    font-size: 16px;
    white-space: normal;
  }

  .float-kefu {
    width: 50px;
    bottom: 84px;
  }

  .kefu-photo {
    height: 64px;
  }

  .kefu-bar {
    font-size: 12px;
    letter-spacing: 3px;
    line-height: 50px;
  }

  .contact-map {
    height: 280px;
  }

  .contact-form {
    padding: 18px 14px;
  }

  .empty-tip {
    padding: 36px 12px;
    font-size: 14px;
  }

  .back-top {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 20px;
  }

  .back-top img {
    width: 22px;
    height: 22px;
  }

  .cert-query-title {
    font-size: 14px;
  }
}

/* ========== Certificate query page ========== */
.cert-page {
  padding: 40px 0 70px;
  min-height: 480px;
}

.cert-panel {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
}

.cert-tip {
  color: var(--text-muted);
  font-size: 14px;
  margin: -8px 0 28px;
}

.cert-search-form {
  max-width: 560px;
}

.cert-field {
  margin-bottom: 22px;
}

.cert-field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.cert-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.cert-field input:focus {
  border-color: var(--primary);
}

.cert-field input::placeholder {
  color: #aaaaaa;
}

.cert-submit {
  display: inline-block;
  min-width: 120px;
  height: 42px;
  padding: 0 28px;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.cert-submit:hover {
  background: var(--primary-hover);
}

.cert-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cert-demo-hint {
  margin-top: 36px;
  padding: 16px 18px;
  background: var(--about-bg);
  border-left: 3px solid var(--primary);
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}

.cert-demo-hint p {
  margin-bottom: 4px;
  color: #444;
}

.cert-result-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cert-card {
  border: 1px solid #e8e8e8;
  background: #fff;
  overflow: hidden;
}

.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.7;
}

.cert-row:nth-child(odd) {
  background: #fafafa;
}

.cert-row:nth-child(even) {
  background: #fff;
}

.cert-row:last-child {
  border-bottom: none;
}

.cert-label {
  flex: 0 0 120px;
  color: #666;
}

.cert-value {
  flex: 1;
  color: #222;
  word-break: break-all;
}

.cert-status {
  display: inline-block;
  padding: 0 8px;
  border-radius: 2px;
  font-weight: 700;
}

.cert-status.is-valid {
  color: #1a7f37;
  background: rgba(26, 127, 55, 0.08);
}

.cert-status.is-pause {
  color: #c47a00;
  background: rgba(196, 122, 0, 0.1);
}

.cert-status.is-revoke {
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
}

.cert-status.is-cancel {
  color: #7a7a7a;
  background: rgba(122, 122, 122, 0.1);
}

.cert-status.is-expired {
  color: #b71c1c;
  background: rgba(183, 28, 28, 0.08);
  text-decoration: line-through;
}

.cert-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  background: var(--about-bg);
  margin-bottom: 20px;
}

.cert-back {
  display: inline-block;
  margin-top: 28px;
  color: var(--primary);
  font-size: 15px;
}

.cert-back:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cert-page {
    padding: 24px 0 48px;
  }

  .cert-label {
    flex: 0 0 96px;
    font-size: 13px;
  }

  .cert-row {
    padding: 10px 12px;
    font-size: 13px;
  }

  .cert-submit {
    width: 100%;
  }
}
