/* 文书查验页：延续官网黑金工业风 */
.verify-main {
  position: relative;
  padding: 58px 0 92px;
  background: #000;
  overflow: hidden;
}

.verify-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.verify-inner { position: relative; z-index: 2; }

.verify-head { max-width: 820px; }

.verify-head h1 {
  font-family: var(--display-cn);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.04em;
  margin: 18px 0 18px;
}

.verify-head h1 span { color: #7d7d86; }

.verify-head .lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 2;
}

.verify-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.verify-tags span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: start;
  margin-top: 42px;
}

.verify-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 28px;
}

.verify-card h2 {
  font-family: var(--display-cn);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 12px 0 6px;
}

.verify-card .sub { color: var(--muted); font-size: 12px; line-height: 1.85; margin-bottom: 22px; }

.verify-card .field label small { margin-left: 6px; font-size: 10px; color: #66666e; }

.verify-upload { min-height: 58px; }
.verify-upload .upload-tip { max-width: 100%; }

.verify-tip {
  margin-top: 14px;
  border-left: 2px solid var(--line);
  padding-left: 10px;
  font-size: 11px;
  color: #6f6f77;
  line-height: 1.8;
}

/* 查询 / 核验切换 */
.verify-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.verify-tab {
  padding: 13px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.verify-tab:last-child { border-right: 0; }
.verify-tab:hover { background: rgba(255, 255, 255, 0.03); }
.verify-tab.active { background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 -2px 0 #fff; }

.verify-tab b { display: block; font-size: 13px; font-weight: 400; color: #fff; letter-spacing: 0.04em; }
.verify-tab small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: #66666e; }
.verify-tab.active small { color: #9a9aa2; }

.mode-desc {
  min-height: 43px;
  margin-bottom: 18px;
  font-size: 11.5px;
  line-height: 1.85;
  color: #7d7d86;
}

/* 切换查询 / 文件核验时的入场动画 */
.field-in { animation: vfRise .45s cubic-bezier(.2, .7, .2, 1) both; }

/* 结果面板 */
.verify-result {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  background: #050506;
  padding: 30px 28px;
  overflow: hidden;
}

.verify-result::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: vfScan 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: 0;
}

@keyframes vfScan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: .5; }
  70% { opacity: .2; }
  100% { transform: translateY(440px); opacity: 0; }
}

.result-idle { text-align: center; padding: 46px 10px 30px; }

.radar {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.radar::before,
.radar::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.radar::before { inset: 16px; border: 1px dashed rgba(255, 255, 255, 0.16); }
.radar::after {
  inset: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  animation: radarPulse 2.2s ease-in-out infinite;
}

.radar-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  transform-origin: left center;
  animation: radarSpin 3.4s linear infinite;
}

@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes radarPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

.result-idle h3 {
  font-family: var(--display-cn);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.result-idle p { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.9; }

.result-idle .lines span {
  display: block;
  height: 1px;
  width: 46%;
  margin: 9px auto 0;
  background: var(--line);
}

.result-body { animation: vfRise .55s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes vfRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.result-head { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.result-stamp {
  width: 62px;
  height: 62px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 26px;
  animation: stampIn .5s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes stampIn {
  0% { transform: scale(1.6) rotate(-14deg); opacity: 0; }
  70% { transform: scale(.94) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.result-body.ok { color: #9fe6b9; }
.result-body.fail { color: #ff8f8f; }

.result-body .result-title {
  font-family: var(--display-cn);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: currentColor;
}

.result-body .result-sub {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #7d7d86;
}

.result-note { margin-top: 14px; font-size: 12px; line-height: 1.9; color: var(--ink-soft); }

.result-meta {
  margin-top: 20px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.result-meta .row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.result-meta .row span { color: #7d7d86; }
.result-meta .row b { font-weight: 400; color: #fff; word-break: break-all; }

.result-meta .hash {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: #c9c9d0 !important;
}

.result-warn {
  margin-top: 16px;
  border: 1px solid #5a3a1e;
  background: rgba(255, 170, 80, 0.06);
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #e8b982;
}

.result-fail-tip { margin-top: 18px; font-size: 12px; line-height: 1.9; color: #8b8b93; }

.result-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .verify-grid { grid-template-columns: 1fr; }
  .verify-result { min-height: 360px; }
}

@media (max-width: 600px) {
  .verify-main { padding-top: 42px; }
  .verify-card, .verify-result { padding: 24px 18px; }
  .result-meta .row { grid-template-columns: 96px minmax(0, 1fr); }
  .result-head { align-items: flex-start; }
  .verify-card .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .verify-result::after, .radar-line, .radar::after, .result-body, .result-stamp, .field-in { animation: none; }
}
