/* ======================================================
   cert-query.css — 证书查询独立页专用样式
   色系参照 style.css：主色 #A85A44，深色 #944d37
   支持 PC（>= 600px）与手机（< 600px）自适应
   ====================================================== */

/* ---- 全局重置 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- 页面背景 ---- */
html, body {
  min-height: 100%;
  background: #f0ebe7;
  font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
  font-size: 16px;
  color: #333;
}

/* ---- 整体居中容器 ---- */
.cq-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

/* ---- 顶部标题区 ---- */
.cq-header {
  width: 100%;
  max-width: 680px;
  margin-bottom: 24px;
  text-align: center;
}

.cq-header-title {
  font-size: 22px;
  font-weight: bold;
  color: #A85A44;
  line-height: 1.5;
  letter-spacing: 1px;
}

/* ---- 卡片容器（表单/结果公用） ---- */
.cq-card {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 4px;
  padding: 36px 48px 40px;
  box-shadow: 0 2px 16px rgba(168, 90, 68, 0.10);
}

/* ==============================================
   查询表单区域
   ============================================== */
.cq-form-inner {
  max-width: 420px;
  margin: 0 auto;
}

.cq-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.cq-form-label {
  width: 88px;
  flex-shrink: 0;
  font-size: 15px;
  color: #444;
  text-align: right;
  padding-right: 12px;
  line-height: 1.4;
  /* 全角空格对齐两字/四字标签 */
  letter-spacing: 0;
}

.cq-form-field {
  flex: 1;
  min-width: 0;
}

.cq-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d4c4bc;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.cq-input:focus {
  border-color: #A85A44;
}

.cq-input::placeholder {
  color: #bbb;
}

/* 提示语 */
.cq-tip {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 22px;
}

.cq-tip strong {
  color: #A85A44;
}

/* 错误提示 */
.cq-error {
  text-align: center;
  font-size: 13px;
  color: #e53e3e;
  margin-bottom: 14px;
  min-height: 20px;
}

/* 按钮区域 */
.cq-actions {
  text-align: center;
}

.cq-btn {
  display: inline-block;
  min-width: 150px;
  height: 44px;
  line-height: 44px;
  padding: 0 28px;
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 4px;
  cursor: pointer;
  border: none;
  transition: background-color 0.18s, color 0.18s;
  margin: 6px 8px 0;
  vertical-align: middle;
}

.cq-btn-primary {
  background: #A85A44;
  color: #fff;
}

.cq-btn-primary:hover {
  background: #944d37;
}

.cq-btn-primary:disabled {
  background: #c9957f;
  cursor: not-allowed;
}

.cq-btn-secondary {
  background: #fff;
  color: #A85A44;
  border: 1px solid #A85A44;
}

.cq-btn-secondary:hover {
  background: #fdf4f1;
}

/* ==============================================
   查询结果区域
   ============================================== */
.cq-result-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cq-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}

.cq-table td {
  border: 1px solid #e0d4ce;
  padding: 10px 14px;
  font-size: 14px;
  vertical-align: middle;
}

/* 左侧标签列 */
.cq-td-label {
  width: 100px;
  background: #faf6f4;
  color: #666;
  text-align: right;
  white-space: nowrap;
}

/* 右侧数据列 */
.cq-td-value {
  color: #A85A44;
  word-break: break-all;
}

/* 居中单元格（照片、二维码） */
.cq-td-center {
  text-align: center;
  padding: 12px 14px;
}

/* 证件照 */
.cq-photo {
  width: 100px;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 1px solid #e0d4ce;
}

/* 二维码区块 */
.cq-qrcode {
  width: 120px;
  height: 120px;
  margin: 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cq-qrcode canvas,
.cq-qrcode img {
  display: block;
  max-width: 100%;
}

/* ==============================================
   响应式：手机端（< 600px）
   ============================================== */
@media (max-width: 599px) {
  .cq-page {
    padding: 20px 12px 36px;
    justify-content: flex-start;
  }

  .cq-header {
    margin-bottom: 16px;
  }

  .cq-header-title {
    font-size: 16px;
    letter-spacing: 0;
  }

  .cq-card {
    padding: 24px 16px 28px;
    border-radius: 4px;
  }

  .cq-form-inner {
    max-width: 100%;
  }

  .cq-form-label {
    width: 76px;
    font-size: 13px;
    padding-right: 8px;
  }

  .cq-input {
    height: 38px;
    font-size: 14px;
  }

  .cq-btn {
    min-width: 120px;
    height: 42px;
    line-height: 42px;
    font-size: 15px;
    letter-spacing: 2px;
    padding: 0 18px;
  }

  /* 结果表格：标签列收窄，文字缩小 */
  .cq-td-label {
    width: 72px;
    font-size: 12px;
    padding: 8px 8px 8px 4px;
  }

  .cq-table td {
    font-size: 13px;
    padding: 8px 10px;
  }

  .cq-td-center {
    padding: 10px;
  }
}

/* ==============================================
   响应式：超大屏无需特殊处理，max-width 已限制
   ============================================== */
