body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(0, 123, 255, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 123, 255, 0.05) 0%,
      transparent 20%
    );
}
/* 证书查询页面样式 */
.certificate-query-page {
  padding: 40px 0;
  position: relative;
  font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 权威背景效果 */
.certificate-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.certificate-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
}

/* 权威印章效果 */
.certificate-seal {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(220, 53, 69, 0.2);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.certificate-seal::before {
  content: "权威认证";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: bold;
  color: rgba(220, 53, 69, 0.4);
  white-space: nowrap;
}

/* 内容容器 */
.certificate-container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e0e6ed;
}

/* 页面头部 */
.certificate-header {
  background: linear-gradient(to right, #0d47a1, #1565c0);
  color: white;
  padding: 30px 40px;
  position: relative;
  overflow: hidden;
}

.certificate-header::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.certificate-header::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.certificate-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.certificate-subtitle {
  font-size: 18px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* 内容区域 */
.certificate-content {
  display: flex;
  flex-wrap: wrap;
}

/* 左侧：帮助说明 */
.certificate-help {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background-color: #f8fafc;
  border-right: 1px solid #e0e6ed;
}

.help-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e6ed;
  position: relative;
}

.help-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #0d47a1;
}

.help-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 10px;
  color: #0d47a1;
  font-size: 20px;
}

.help-list {
  list-style-type: none;
  padding-left: 0;
}

.help-list li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  color: #555;
  line-height: 1.5;
}

.help-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.help-note {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 4px;
  margin-top: 30px;
}

.help-note strong {
  color: #856404;
}

/* 右侧：查询表单 */
.certificate-form {
  flex: 1;
  min-width: 400px;
  padding: 40px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e6ed;
}

/* 表单组 */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.required::after {
  content: "*";
  color: #dc3545;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e6ed;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
  outline: none;
}

/* 查询按钮 */
.query-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to right, #0d47a1, #1565c0);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.query-button:hover {
  background: linear-gradient(to right, #0a3d8a, #0d47a1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

.query-button:active {
  transform: translateY(0);
}

.query-button i {
  margin-right: 10px;
}

/* 加载动画 */
.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 查询结果弹窗 */
.result-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.result-content {
  background-color: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.result-header {
  background: linear-gradient(to right, #0d47a1, #1565c0);
  color: white;
  padding: 25px;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.result-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.result-body {
  position: relative;
  padding: 30px;
}

/* 头像显示区域 */
.avatar-section {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 120px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-container {
  width: 100px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #e0e6ed;
  background-color: #f8f9fa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.avatar-placeholder i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #adb5bd;
}

.avatar-placeholder span {
  font-size: 12px;
  text-align: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  text-align: center;
}

.certificate-info {
  /* border: 2px solid #e0e6ed;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px; */
  margin-right: 140px;
}

.info-row {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  flex: 1;
  font-weight: 600;
  color: #555;
}

.info-value {
  flex: 2;
  color: #333;
}

.result-actions {
  text-align: center;
  margin-top: 25px;
}

.btn-print {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-print:hover {
  background-color: #218838;
}

/* 权威合作机构展示 */
.authority-agencies {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e6ed;
}

.agencies-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.agencies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
}

.agency-link {
  color: #0d47a1;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px dotted transparent;
  transition: all 0.2s ease;
}

.agency-link:hover {
  color: #0a3d8a;
  border-bottom-color: #0d47a1;
  text-decoration: none;
}

/* 增强版查询结果弹层样式 */
.result-modal.enhanced {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.result-content.enhanced {
  background-color: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid #e0e6ed;
}

.result-header.enhanced {
  background: linear-gradient(to right, #0d47a1, #1565c0);
  color: white;
  padding: 25px 30px;
  border-radius: 12px 12px 0 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-header-info {
  flex: 1;
}

.result-title.enhanced {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.result-close.enhanced {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.result-close.enhanced:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.result-body.enhanced {
  padding: 30px;
}

/* 证书信息卡片 */
.certificate-card {
  background: linear-gradient(to right, #f8fafc, #f0f7ff);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  border: 1px solid #e0e6ed;
  position: relative;
  overflow: hidden;
}

.certificate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #0d47a1, #1565c0);
}

/* 照片和信息布局 */
.certificate-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.photo-section {
  flex: 0 0 180px;
}

.photo-container {
  width: 180px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #e0e6ed;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  position: relative;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  color: #6c757d;
}

.photo-placeholder i {
  font-size: 60px;
  margin-bottom: 15px;
  color: #adb5bd;
}

.photo-placeholder span {
  font-size: 14px;
  text-align: center;
}

.photo-uploaded {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-label {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.info-section {
  flex: 1;
  min-width: 300px;
}

/* 信息表格样式 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.info-item {
  background-color: white;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #e0e6ed;
  transition: all 0.3s ease;
}

.info-item:hover {
  border-color: #0d47a1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.info-label.enhanced {
  display: block;
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 500;
}

.info-value.enhanced {
  display: block;
  font-size: 18px;
  color: #333;
  font-weight: 600;
  word-break: break-all;
}

/* 证书状态指示器 */
.certificate-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 20px;
  font-weight: 600;
  font-size: 15px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

/* 防伪验证区域 */
.verification-section {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  margin-top: 30px;
  border: 1px solid #e0e6ed;
}

.verification-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.verification-title i {
  color: #0d47a1;
  margin-right: 10px;
  font-size: 20px;
}

.verification-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.verification-item {
  flex: 1;
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e0e6ed;
}

.verification-label {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 5px;
}

.verification-value {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* 操作按钮区域 */
.result-actions.enhanced {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e0e6ed;
  flex-wrap: wrap;
  gap: 15px;
}

.action-button {
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 16px;
}

.btn-print.enhanced {
  background-color: #0d47a1;
  color: white;
}

.btn-print.enhanced:hover {
  background-color: #0a3d8a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 71, 161, 0.2);
}

.btn-download {
  background-color: #28a745;
  color: white;
}

.btn-download:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.btn-close-result {
  background-color: #6c757d;
  color: white;
}

.btn-close-result:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.2);
}

.action-button i {
  margin-right: 8px;
  font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .certificate-content-wrapper {
    flex-direction: column;
  }

  .photo-section {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .photo-container {
    width: 150px;
    height: 190px;
  }

  .result-title.enhanced {
    font-size: 22px;
  }

  .info-value.enhanced {
    font-size: 16px;
  }

  .result-actions.enhanced {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .result-body.enhanced {
    padding: 20px;
  }

  .certificate-card {
    padding: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .verification-details {
    flex-direction: column;
  }

  .verification-item {
    min-width: 100%;
  }
}

/* 水印效果 */
.certificate-card::after {
  content: "官方认证";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 70px;
  color: rgba(13, 71, 161, 0.05);
  font-weight: 900;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* 证书编号特殊样式 */
.cert-number {
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  background-color: #f8f9fa;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px dashed #adb5bd;
}

/* 颁发机构徽章 */
.issuer-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #e3f2fd;
  color: #0d47a1;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.issuer-badge i {
  margin-right: 6px;
  font-size: 16px;
}
