/* ===================================================================
   本站附加样式（不改原站工具类 CSS）
   - 头顶横批 #veridrop-bar
   - 底部弹层 #veridrop-sheet
   - 收录表单样式
   =================================================================== */

/* ---------- 头顶横批 ----------
   原站顶部有一条 .notice-bar（黄色提示条），横批插在它上面。
   横批用 fixed 固定，靠 #veridrop-bar-spacer 撑出等高占位，
   不影响原站 header 的 sticky 行为。
*/
#veridrop-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 48px 10px 16px;
  box-sizing: border-box;
  background: #0e7a53;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  flex-wrap: wrap;
}

#veridrop-bar a.veridrop-bar-link {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #0e7a53;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

#veridrop-bar a.veridrop-bar-link:hover {
  text-decoration: underline;
}

#veridrop-bar-spacer {
  display: block;
  width: 100%;
  flex: none;
}

@media (max-width: 640px) {
  #veridrop-bar {
    font-size: 15px;
    min-height: 44px;
    padding: 8px 36px 8px 12px;
    gap: 8px;
  }
  #veridrop-bar a.veridrop-bar-link {
    font-size: 15px;
    padding: 4px 12px;
  }
}

/* 顶栏导航加大。横批是 fixed，导航 sticky 时让出横批高度。 */
header {
  top: var(--veridrop-bar-h, 52px);
}
.header-inner {
  height: 76px;
}
.logo {
  font-size: 15px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  font-size: 15px;
}
.nav-link,
.nav-drop-btn {
  font-size: 16px;
  height: 76px;
  padding: 0 16px;
}
@media (max-width: 680px) {
  .header-inner { height: auto; }
  .logo { height: 56px; font-size: 14px; }
  .logo-mark { width: 32px; height: 32px; font-size: 14px; }
  .nav-link,
  .nav-drop-btn {
    height: 48px;
    font-size: 14px;
    padding: 0 14px;
  }
}

/* ---------- 底部弹层 ---------- */
#veridrop-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.veridrop-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 24, 0.42);
}

.veridrop-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 12px 12px;
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 -6px 28px rgba(18, 28, 24, 0.18);
  text-align: center;
  box-sizing: border-box;
}

.veridrop-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: #0e7a53;
  margin-bottom: 10px;
}

.veridrop-sheet-link {
  display: inline-block;
  margin-bottom: 16px;
  padding: 9px 22px;
  border-radius: 999px;
  background: #0e7a53;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.veridrop-sheet-link:hover {
  background: #0b5c3f;
}

.veridrop-sheet-close {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px solid #d8e0dc;
  border-radius: 9px;
  background: #f4f7f5;
  color: #4a5751;
  font-size: 14px;
  cursor: pointer;
}

.veridrop-sheet-close:hover {
  background: #e9efec;
}

@media (max-width: 640px) {
  .veridrop-sheet-panel {
    margin: 0 8px 8px;
    padding: 16px 14px 14px;
  }
  .veridrop-sheet-title { font-size: 14px; }
  .veridrop-sheet-link { font-size: 14px; padding: 8px 18px; }
}

/* ---------- 收录表单 ---------- */
.mail-form {
  display: grid;
  gap: 16px;
}

.mail-form .mf-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .mail-form .mf-row {
    grid-template-columns: 1fr 1fr;
  }
}

.mail-form .mf-field {
  display: grid;
  gap: 6px;
}

.mail-form .mf-field > label {
  font-size: 12.5px;
  font-weight: 600;
  color: #4a5751;
}

.mail-form input[type="text"],
.mail-form input[type="email"],
.mail-form textarea,
.mail-form select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
}

.mail-form textarea {
  min-height: 110px;
  resize: vertical;
}

.mail-form input:focus,
.mail-form textarea:focus,
.mail-form select:focus {
  outline: none;
  border-color: #0e7a53;
  box-shadow: 0 0 0 3px rgba(14, 122, 83, 0.12);
}

.mail-form .mf-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.mail-form .mf-checks label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  cursor: pointer;
}

.mail-form .mf-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.mail-form button[type="submit"] {
  justify-self: start;
  padding: 10px 26px;
  border: none;
  border-radius: 8px;
  background: #0e7a53;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mail-form button[type="submit"]:hover {
  background: #0b5c3f;
}

.mail-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

.mail-form .mf-error {
  font-size: 13.5px;
  color: #c0392b;
}

.mail-form .mf-ok {
  font-size: 13.5px;
  color: #0e7a53;
  font-weight: 600;
}

/* ---------- 联系方式 ---------- */
.veridrop-contact {
  font-size: 13.5px;
  color: #4a5751;
  line-height: 1.9;
}

.veridrop-contact code {
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef3f0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
}

/* 结果滚到顶时让开固定横批和吸顶导航 */
#vy-prev-result,
#vy-tab2-below,
#vy-tab3-below {
  scroll-margin-top: calc(var(--veridrop-bar-h, 52px) + 84px);
}

/* ---------- 降智检测结果卡 ---------- */
.jz-report {
  width: 100%;
  margin: 8px auto 16px;
  padding: 22px 22px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid #b7dfc8;
  border-radius: 12px;
  box-sizing: border-box;
}
.jz-report.warn { border-color: #ead7a1; }
.jz-report.fail { border-color: #f0c2bc; }
.jz-report-title { font-size: 20px; font-weight: 800; line-height: 1.4; }
.jz-report-sub { margin-top: 6px; color: var(--text-2, #4a5751); font-size: 13px; }
.jz-lead { margin: 12px 0 0; font-size: 14px; line-height: 1.75; color: var(--text-1, #1c2b26); }
.jz-bars { margin: 14px 0 6px; }
.jz-bar-row {
  display: grid;
  grid-template-columns: 64px 1fr 52px;
  gap: 10px;
  align-items: center;
  margin: 7px 0;
  font-size: 13px;
  color: var(--text-2, #4a5751);
}
.jz-bar-track { height: 10px; background: #e4eee8; border-radius: 99px; overflow: hidden; }
.jz-bar-fill { height: 100%; border-radius: 99px; }
.jz-bar-fill.station { background: #1f9d62; }
.jz-bar-fill.official { background: #5d6d67; }
.jz-cap { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--text-1, #1c2b26); }
.jz-cap span { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--text-3, #7b8783); }
.jz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jz-grid img,
.jz-ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border, #e3e6ea);
  border-radius: 8px;
  box-sizing: border-box;
}
.jz-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9691;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}
.jz-badbox {
  margin-top: 16px;
  padding: 4px 12px 12px;
  background: #fff5f5;
  border-radius: 10px;
  box-shadow: inset 3px 0 0 #e5484d;
}
.jz-badbox .jz-cap { color: #a13b32; }
.jz-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.jz-actions .vy-share-btn { text-decoration: none; }
@media (max-width: 640px) {
  .jz-report { padding: 16px 12px 12px; }
  .jz-grid { gap: 6px; }
  .jz-report-title { font-size: 18px; }
}

/* ---------- 检测进行中的进度条 ---------- */
#vy-progress,
#vy2-progress,
#vy3-progress {
  scroll-margin-top: calc(var(--veridrop-bar-h, 52px) + 84px);
}

.vy-live {
  padding: 16px 18px;
  background: var(--bg-card, #fff);
  border: 1px solid #c5daf8;
  border-left: 4px solid #4f8ef7;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.08);
}
.vy-live.is-error {
  border-color: #f0c2bc;
  border-left-color: #e5484d;
  background: #fff6f5;
  box-shadow: none;
}
.vy-live-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.vy-live-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1, #1c2b26);
}
.vy-live.is-error .vy-live-title { color: #c0392b; }
.vy-live-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3, #7b8783);
  font-variant-numeric: tabular-nums;
}
.vy-live-pct {
  min-width: 3em;
  font-family: var(--mono, ui-monospace, Consolas, monospace);
  font-size: 13px;
  font-weight: 800;
  color: #4f8ef7;
  text-align: right;
}
.vy-live-track {
  height: 10px;
  background: #e6eef8;
  border-radius: 99px;
  overflow: hidden;
}
.vy-live.is-error .vy-live-track { display: none; }
.vy-live-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #4f8ef7, #6366f1);
  transition: width .4s ease;
}
.vy-live-fill.is-wait {
  width: 36% !important;
  animation: vy-live-slide 1.15s ease-in-out infinite;
}
@keyframes vy-live-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.vy-live-detail {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2, #4a5751);
}
.vy-live.is-error .vy-live-detail { color: #a12a1c; }
.vy-live-log {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3, #7b8783);
}
.vy-live-log:empty { display: none; }

#vy3-start:disabled,
#vy2-start:disabled,
#vy-form button[type="submit"]:disabled {
  opacity: 0.72;
  cursor: wait;
}
