/* CERTIFICATE INQUIRY — 证书查询页 */
/* 前缀 ci-（certificate inquiry） */

/* ── CI-PAGE — 页面级 ── */
body.ci-page {
  --ci-hero-search-gap: clamp(12px, calc(100vw * 16 / 1920), 16px);
  --ci-search-half: clamp(52px, calc(100vw * 54 / 1920), 54px);
  padding-top: var(--nav-height);
  background: #f4f7fc;
}

body.ci-page .nav:not(.is-scrolled) {
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── CI-FADE / CI-RISE — 滚动入场（由 certificate_inquiry.js 触发 .in）── */
.ci-page .ci-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ci-page .ci-fade.in {
  opacity: 1;
  transform: none;
}

.ci-page .ci-rise {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ci-page .ci-rise.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ci-page .ci-fade,
  .ci-page .ci-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ci-page .ci-hero-search-wrap.ci-fade,
  .ci-page .ci-hero-search-wrap.ci-fade.in {
    opacity: 1;
    transform: translateY(50%);
    transition: none;
  }
}

/* ── CI-HERO — 标题与搜索区 ── */
.ci-hero {
  background: #eef5fd url("/static/skin/images/service/zs-topbaner-bg.png") no-repeat center top;
  background-size: 100% auto;
  padding-top: clamp(88px, calc(100vw * 116 / 1920), 116px);
  padding-bottom: clamp(42px, calc(100vw * 78 / 1920), 78px);
  overflow: visible;
}

.ci-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
}

.ci-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, calc(100vw * 12 / 1920), 12px);
  width: 100%;
}

.ci-hero-title {
  font-size: clamp(34px, calc(100vw * 40 / 1920), 40px);
  font-weight: 700;
  color: #194e84;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.ci-hero-desc {
  font-size: var(--fs-16);
  color: #00579C;
  line-height: 1.65;
  margin: 0;
}

.ci-hero-search-wrap {
  width: 100%;
  max-width: clamp(360px, calc(100vw * 980 / 1920), 980px);
  margin-top: clamp(14px, calc(100vw * 18 / 1920), 18px);
  transform: translateY(42%);
}

/* 搜索框重叠定位：仅淡入 opacity，避免覆盖 translateY(50%) */
.ci-page .ci-hero-search-wrap.ci-fade {
  opacity: 0;
  transform: translateY(50%);
  transition: opacity 0.6s ease;
}

.ci-page .ci-hero-search-wrap.ci-fade.in {
  opacity: 1;
  transform: translateY(20%);
}

/* ── CI-SEARCH — 搜索表单 ── */
.ci-search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ci-search-pill {
  height: 56px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  background:linear-gradient(90deg, #f5fafe 0%, #fafdff 100%);
  padding:  0 20px;
  width: 60%;
}

.ci-search-field--combo {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ci-search-hint {
  flex-shrink: 0;
  font-size: var(--fs-16);
  font-weight: 500;
  color: #6d89a8;
  white-space: nowrap;
}

.ci-search-hint span {
  color: #5f95d1;
  font-weight: 600;
}

.ci-search-field {
  flex: 1;
  min-width: 0;
}

.ci-search-label {
  display: block;
  font-size: var(--fs-18);
  font-weight: 700;
  color: #222d3a;
  line-height: 1.4;
  margin-bottom: 0;
  text-align: left;
  padding-left: 0;
  white-space: nowrap;
}

.ci-search-input-wrap {
  flex: 1;
  position: relative;
}

.ci-search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  pointer-events: none;
}

.ci-search-input {
  width: 100%;
  height: 48px;
  padding: 0 0 0 42px;
  border: 0;
  border-radius: 0;
  font-size: var(--fs-16);
  color: #4c5b6d;
  background: transparent;
  line-height: 1.4;
  transition: color 0.2s, transform 0.2s;
}

.ci-search-input::placeholder {
  color: #a5b7c9;
}

.ci-search-input:focus {
  outline: none;
  box-shadow: none;
}

/* 证书展示框：背景 913×646，槽位按背景图实测比例定位，<1440px 同比缩放 */
.ci-result-visual-frame {
  position: relative;
  width: min(913px, calc(100vw * 913 / 1440));
  max-width: 100%;
  aspect-ratio: 913 / 646;
  margin: 30px auto;
  background: url("/static/skin/images/service/zs-1-bg.png") no-repeat center / 100% 100%;
  box-sizing: border-box;
  left: -5%;
}

.ci-result-visual-cert {
  position: absolute;
  left: 29.2%;
  top: 17.0%;
  width: 60%;
  height: 63%;
  box-sizing: border-box;
}

.ci-result-visual-cert img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #c1c7d2;
  border-radius: 5px;
  box-sizing: border-box;
}
.ci-search-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 100px;
 background:linear-gradient(90deg, #f5fafe 0%, #fafdff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #004074;
  font-size: var(--fs-24);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  border: solid 1px #fff;
}

.ci-search-btn:hover {
  background: var(--primary-container);
  color: #fff;
}

.ci-search-btn:active {
  transform: scale(0.97);
}

.ci-search-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── CI-MAIN — 正文区 ── */
.ci-main {
  padding: 0 0
    clamp(56px, calc(100vw * 84 / 1920), 84px);
  background: #f6f8fb url("/static/skin/images/service/m-bg.png") no-repeat center top;
  background-size: 100% auto;
}

.ci-main .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--container-px) 20px;
}

/* ── CI-RESULT-PANEL / LOADING — 结果区与查询 loading ── */
.ci-result-panel {
  position: relative;
  min-height: 100px;
}

.ci-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(70px, calc(100vw * 110 / 1920), 110px) 20px;
  margin-bottom: clamp(20px, calc(100vw * 28 / 1920), 28px);
}

.ci-loading.is-hidden {
  display: none;
}

.ci-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(30, 91, 181, 0.15);
  border-top-color: var(--primary, #1e5bb5);
  border-radius: 50%;
  animation: ci-spin 0.8s linear infinite;
}

.ci-loading-text {
  font-size: var(--fs-14);
  color: var(--on-surface-variant, #5f95d1);
  line-height: 1.4;
}

@keyframes ci-spin {
  to {
    transform: rotate(360deg);
  }
}

.ci-search-btn.is-loading svg {
  display: none;
}

.ci-search-btn.is-loading::after {
  content: '';
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 64, 116, 0.2);
  border-top-color: #004074;
  border-radius: 50%;
  animation: ci-spin 0.8s linear infinite;
}

/* ── CI-RESULT — 查询结果卡片 ── */
.ci-result {
  --ci-result-gap: 20px;
  --ci-result-frame-pad: 20px;
  --ci-result-img-size: clamp(260px, calc(100vw * 320 / 1920), 320px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: clamp(20px, calc(100vw * 28 / 1920), 28px);
}

.ci-result.is-hidden {
  display: none;
}

.ci-result-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
}

.ci-result-badge {
  width: clamp(120px, calc(100vw * 150 / 1920), 150px);
  margin-top: clamp(-12px, calc(100vw * -10 / 1920), -10px);
}

.ci-result-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.ci-result-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}



.ci-result-content {
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
}

.ci-result-certno {
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  color: #2f3741;
  letter-spacing: 0;
  margin: 36px 0 ;
  text-align: center;

}

.ci-result-info {
  width: 100%;
  min-width: 0;
}

.ci-result-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.ci-result-download:hover {
  background: var(--primary-container);
  color: #fff;
}

.ci-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(24px, calc(100vw * 36 / 1920), 36px);
}

.ci-result-item {
  text-align: left;
}

.ci-result-item-label {
  font-size: var(--fs-16);
  color: #242f3a;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ci-result-item-value {
  font-size: var(--fs-14);
  font-weight: 400;
  color: #5f95d1;
  line-height: 1.45;
}

.ci-result-item-value--sub {
  font-weight: 400;
  color: #5f95d1;
  font-size: var(--fs-14);
}

.ci-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.4;
  background: transparent;
  color: #5f95d1;
}

.ci-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2ac2d9;
  color: #fff;
}

/* ── CI-NOTICE — 官方核验说明 ── */
.ci-notice {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, calc(100vw * 16 / 1920), 16px);
  padding: clamp(16px, calc(100vw * 20 / 1920), 20px) clamp(18px, calc(100vw * 24 / 1920), 24px);
  margin-bottom: clamp(40px, calc(100vw * 56 / 1920), 56px);
  border-radius: var(--r12);
  background: #fff;
  
 
}

.ci-notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
}

.ci-notice-content {
  flex: 1;
  min-width: 0;
}

.ci-notice-title {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.4;
  margin-bottom: 8px;
}

.ci-notice-text {
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.ci-notice-text a {
  color: var(--primary-container);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ci-notice-text a:hover {
  color: var(--primary);
}

/* ── CI-PATH — 进阶成长路径 ── */
.ci-path-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, calc(100vw * 24 / 1920), 24px);
  margin-bottom: clamp(28px, calc(100vw * 36 / 1920), 36px);
  width: 100%;
  justify-content: center;
}

.ci-path-head-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant));
}

.ci-path-head-line:last-child {
  background: linear-gradient(90deg, var(--outline-variant), transparent);
}

.ci-path-head-title {
  flex-shrink: 0;
  font-size: var(--fs-section-title);
  font-weight: 700;
  color: #114a83;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ci-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, calc(100vw * 24 / 1920), 24px);
}

.ci-path-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(196, 211, 227, 0.9);
  border-radius: var(--r12);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(83, 117, 161, 0.08);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.ci-path-card:hover {
  border-color: rgba(0, 87, 156, 0.22);
  box-shadow: 0 16px 34px rgba(83, 117, 161, 0.14);
}

.ci-page .ci-path-card.ci-rise.in:hover {
  transform: translateY(-2px);
}

.ci-path-card-visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(180deg, #eef6fd 0%, #f7fbff 100%);
}

.ci-path-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.ci-path-card:hover .ci-path-card-visual img {
  transform: scale(1.03);
}

.ci-path-card-body {
  padding: clamp(16px, calc(100vw * 20 / 1920), 20px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ci-path-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-18);
  font-weight: 600;
  color: #173e69;
  line-height: 1.35;
  margin-bottom: 10px;
}

.ci-path-card-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.ci-path-card-desc {
  font-size: var(--fs-14);
  color: var(--on-surface-variant);
  line-height: 1.65;
  margin-bottom: clamp(14px, calc(100vw * 18 / 1920), 18px);
  flex: 1;
}

.ci-path-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--primary-container);
  line-height: 1.4;
  transition: color 0.2s, gap 0.2s;
}

.ci-path-card-link:hover {
  color: var(--primary);
  gap: 10px;
}

.ci-path-card-link-icon {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.ci-path-card-link:hover .ci-path-card-link-icon {
  transform: translateX(2px);
}

/* ── CI-EMPTY — 无结果提示 ── */
.ci-empty {
  text-align: center;
  padding: clamp(70px, calc(100vw * 110 / 1920), 110px) 20px clamp(76px, calc(100vw * 120 / 1920), 120px);
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: clamp(24px, calc(100vw * 32 / 1920), 32px);
}

.ci-empty.is-hidden {
  display: none;
}

.ci-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, calc(100vw * 190 / 1920), 190px);
  height: auto;
  margin: 0 auto clamp(26px, calc(100vw * 32 / 1920), 32px);
}

.ci-empty-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.ci-empty-title {
  font-size: var(--fs-24);
  font-weight: 600;
  color: #2d3641;
  line-height: 1.2;
  margin-bottom: clamp(14px, calc(100vw * 18 / 1920), 18px);
}

.ci-empty-desc {
  font-size: var(--fs-14);
  color: #3f4c5b;
  line-height: 1.45;
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ci-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ci-path-grid .ci-path-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  body.ci-page {
    --ci-hero-search-gap: 8px;
    --ci-search-half: clamp(88px, 24vw, 110px);
  }

  .ci-result {
    --ci-result-img-size: min(160px, calc(100vw - 120px));
    --ci-result-frame-pad: 14px;
  }

  .ci-hero {
    padding-top: 48px;
    padding-bottom: 96px;
    overflow: visible;
    background-size: cover;
  }

  .ci-hero-inner {
    position: relative;
    padding-bottom: var(--ci-search-half);
  }

  .ci-hero-search-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - var(--ci-search-half));
    margin-top: var(--ci-hero-search-gap);
    width: 100%;
    max-width: none;
    transform: translateY(50%);
    box-sizing: border-box;
    padding: 0 var(--container-px);
  }

  .ci-page .ci-hero-search-wrap.ci-fade,
  .ci-page .ci-hero-search-wrap.ci-fade.in {
    transform: translateY(0%);
  }

  

  .ci-hero-title {
    font-size: clamp(22px, 5.8vw, 26px);
  }

  .ci-hero-desc {
    font-size: var(--fs-14);
  }

  .ci-search {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ci-search-pill {
    padding: 0 20px;
    gap: 12px;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .ci-search-field--combo {
    gap: 10px;
    align-items: center;
  }

  .ci-search-label {
    font-size: var(--fs-14);
  }

  .ci-search-btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
  }

  .ci-search-hint {
    font-size: var(--fs-12);
  }

  .ci-result-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .ci-result-badge {
    width: 88px;
    margin: 0 auto;
  }

  .ci-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    row-gap: 12px;
  }

  .ci-result-visual {
    order: 4;
    align-self: center;
    margin-top: 2px;
    margin-bottom: 0;
    width: min(100%, 420px);
    height: auto;
  }

  .ci-result-visual-frame {
    width: 100%;
    margin: 0 auto;
  }



  .ci-result-certno {
    margin: 0;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.2;
  }

  .ci-result-info {
    width: 100%;
  }

  .ci-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ci-result-item-label {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .ci-result-item-value,
  .ci-result-item-value--sub,
  .ci-status {
    font-size: 13px;
  }

  .ci-notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .ci-path-grid {
    grid-template-columns: 1fr;
  }

  .ci-empty {
    padding: 44px 16px 52px;
  }

  .ci-empty-icon {
    width: 128px;
    margin-bottom: 18px;
  }

  .ci-empty-title {
    font-size: clamp(22px, 5.6vw, 30px);
    margin-bottom: 10px;
  }

  .ci-empty-desc {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.6;
  }

  .ci-path-grid .ci-path-card:last-child {
    grid-column: auto;
  }

  .ci-path-head-line {
    max-width: 48px;
  }
}

@media (max-width: 640px) {
  .ci-result-body {
    gap: 14px;
  }

  .ci-result-badge {
    width: 76px;
    position: relative;
    top: -10px;
  }

  .ci-result-certno {
    font-size: 22px;
  }

  .ci-empty {
    padding: 34px 12px 40px;
  }

  .ci-empty-icon {
    width: 108px;
    margin-bottom: 14px;
  }

  .ci-empty-title {
    font-size: 20px;
  }

  .ci-empty-desc {
    font-size: 13px;
  }

  .ci-result-grid {
    grid-template-columns: 1fr;
  }

  .ci-path-head-title {
    font-size: clamp(18px, 5vw, 22px);
  }
}

