/**
 * HormLab Portal · 报告查询页样式
 */

/* 页头 */
.page-hero-h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; line-height: 1.25; margin: 18px 0 16px; letter-spacing: -1px; color: #fff; }
.page-hero-lead { color: var(--text-white-soft); font-size: 17px; margin: 0 auto; }
.page-hero-h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 卡片 */
.rp-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 30px; margin-bottom: 22px;
  transition: box-shadow .25s ease;
}
.rp-card:hover { box-shadow: var(--shadow-md); }
.rp-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.rp-icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: rgba(91,108,255,.1); border: 1px solid rgba(91,108,255,.25);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  overflow: hidden;
}
.rp-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.rp-title { font-size: 19px; font-weight: 700; }
.rp-sub { font-size: 13.5px; color: var(--text-mid); margin-top: 4px; }

/* 链接输入 */
.rp-input-row { display: flex; gap: 12px; }
.rp-input-row input {
  flex: 1; padding: 14px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--border-light); font-size: 14px;
  color: var(--text-dark); outline: none; transition: border-color .2s ease;
  font-family: var(--font-en);
}
.rp-input-row input:focus { border-color: var(--primary-blue); }
.rp-input-row .btn { white-space: nowrap; padding: 14px 26px; }
.rp-hint { font-size: 12.5px; color: var(--text-light); margin-top: 12px; }
.rp-hint code {
  background: var(--bg-light); padding: 2px 8px; border-radius: var(--r-xs);
  font-size: 12px; color: var(--text-mid);
}
.rp-error {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.3);
  color: var(--danger); font-size: 13.5px;
}

/* 扫码区 */
.rp-qr-row { display: flex; gap: 28px; align-items: center; }
.rp-qr-img {
  width: 180px; height: 180px; border-radius: var(--r-md);
  border: 1px solid var(--border-light); flex-shrink: 0;
}
.rp-qr-steps { display: flex; flex-direction: column; gap: 12px; }
.rp-step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-mid); }
.rp-step-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* 页内 FAQ */
.rp-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease;
}
.faq-item:hover { border-color: rgba(91,108,255,.4); }
.faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; position: relative; padding-right: 44px; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 300; color: var(--primary-blue); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-mid); line-height: 1.75; margin: 0; }

.rp-back { text-align: center; margin-top: 30px; }

/* 响应式 */
@media (max-width: 640px) {
  .rp-input-row { flex-direction: column; }
  .rp-qr-row { flex-direction: column; text-align: center; }
  .rp-step { justify-content: flex-start; text-align: left; }
}

/* ============================================================
   移动端收口（2026-09-16）—— 一律追加在文件末尾
   注意：本文件在 L70+ 重新声明了 .faq-item 系列，FAQ 的移动端覆盖
   必须写在它们之后才生效。修复点：① 输入框 14px 低于 iOS 16px 阈值，
   聚焦时整页被放大；② 卡片 30px 内边距在窄屏过宽。
   ============================================================ */
@media (max-width: 640px) {
  .page-hero-lead { font-size: 15px; }
  .rp-card { padding: 20px 18px; margin-bottom: 16px; }
  .rp-card-head { gap: 12px; margin-bottom: 18px; }
  .rp-icon { width: 44px; height: 44px; font-size: 21px; }
  .rp-title { font-size: 17px; }
  .rp-sub { font-size: 13px; }
  .rp-input-row input { font-size: 16px; padding: 13px 16px; }
  .rp-input-row .btn { padding: 13px 20px; }
  .rp-qr-img { width: 156px; height: 156px; }
  .rp-step { font-size: 14px; gap: 10px; }
  .rp-hint { font-size: 12.5px; }
  .faq-item summary { padding: 15px 42px 15px 16px; font-size: 14.5px; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 16px 16px; font-size: 14.5px; line-height: 1.85; }
  .rp-back { margin-top: 24px; }
}
