/* 序列号查询页 — 官方认证风格（克制微动效，无缩放/漂浮） */

:root {
  --lookup-bg: #f5f5f7;
  --lookup-card: #ffffff;
  --lookup-text: #1d1d1f;
  --lookup-muted: #6e6e73;
  --lookup-border: rgba(0, 0, 0, 0.08);
  --lookup-primary: #0071e3;
  --lookup-primary-hover: #0077ed;
  --lookup-primary-active: #006edb;
  --lookup-focus-ring: rgba(0, 113, 227, 0.35);
  --lookup-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --lookup-shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.06);
  --lookup-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.lookup-page {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Segoe UI",
    "PingFang SC",
    "Helvetica Neue",
    sans-serif;
  background: var(--lookup-bg);
  color: var(--lookup-text);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

.lookup-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.lookup-lang-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.lookup-lang-toolbar-main {
  flex: 1;
  min-width: 0;
}

.lookup-lang-toolbar label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lookup-muted);
  margin-bottom: 6px;
}

.lookup-lang-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lookup-border);
  font-size: 15px;
  background: var(--lookup-card);
  color: var(--lookup-text);
  transition: border-color 0.2s var(--lookup-ease), box-shadow 0.2s var(--lookup-ease);
}

.lookup-lang-select:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 3px var(--lookup-focus-ring);
}

.lookup-lang-hint {
  font-size: 12px;
  color: var(--lookup-muted);
  margin: 6px 0 0;
}

.lookup-lang-loading {
  font-size: 12px;
  color: var(--lookup-primary);
  margin-top: 6px;
  display: none;
}

.lookup-lang-loading.show {
  display: block;
}

.lookup-lang-current {
  margin-top: 8px;
  font-size: 13px;
  color: var(--lookup-muted);
}

/* 验证卡片：稳定，无 hover 放大 */
.verify-card {
  background: var(--lookup-card);
  border-radius: 16px;
  padding: 28px 24px 26px;
  border: 1px solid var(--lookup-border);
  box-shadow: var(--lookup-shadow-card);
}

.verify-card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-align: center;
  color: var(--lookup-text);
}

.verify-card__hint {
  text-align: center;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--lookup-muted);
  letter-spacing: -0.01em;
}

.serial-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.serial-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.serial-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  border: 1px solid var(--lookup-border);
  background: #fafafa;
  transition:
    border-color 0.25s var(--lookup-ease),
    box-shadow 0.25s var(--lookup-ease),
    background-color 0.25s var(--lookup-ease);
}

.serial-input-wrap:focus-within {
  border-color: rgba(0, 113, 227, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px var(--lookup-focus-ring);
}

.serial-input {
  flex: 1;
  min-width: 0;
  padding: 14px 12px 14px 16px;
  border: none;
  border-radius: 12px 0 0 12px;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--lookup-text);
  -webkit-appearance: none;
  appearance: none;
}

.serial-input:focus {
  outline: none;
}

.serial-input::placeholder {
  color: #86868b;
  letter-spacing: 0;
}

.btn-scan {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  padding: 0;
  border: none;
  border-left: 1px solid var(--lookup-border);
  border-radius: 0 12px 12px 0;
  background: transparent;
  color: var(--lookup-primary);
  cursor: pointer;
  transition:
    background-color 0.2s var(--lookup-ease),
    color 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-scan:hover {
  background: rgba(0, 113, 227, 0.06);
}

.btn-scan:active {
  background: rgba(0, 113, 227, 0.1);
}

.btn-scan:focus-visible {
  outline: 2px solid var(--lookup-primary);
  outline-offset: -2px;
}

.btn-scan svg {
  width: 22px;
  height: 22px;
  display: block;
}

.btn-serial {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: var(--lookup-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: var(--lookup-shadow-btn);
  transition:
    background-color 0.2s var(--lookup-ease),
    box-shadow 0.2s var(--lookup-ease),
    transform 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-serial:hover {
  background: var(--lookup-primary-hover);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
  transform: translateY(-1px);
}

.btn-serial:active {
  background: var(--lookup-primary-active);
  transform: translateY(0);
  box-shadow: var(--lookup-shadow-btn);
}

.btn-serial:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.btn-serial:focus-visible {
  outline: 2px solid var(--lookup-primary);
  outline-offset: 2px;
}

[dir="rtl"] .lookup-lang-toolbar {
  flex-direction: row-reverse;
}

[dir="rtl"] .serial-input {
  border-radius: 0 12px 12px 0;
  padding: 14px 16px 14px 12px;
}

[dir="rtl"] .btn-scan {
  border-left: none;
  border-right: 1px solid var(--lookup-border);
  border-radius: 12px 0 0 12px;
}

@media (prefers-reduced-motion: reduce) {
  .serial-input-wrap,
  .btn-serial,
  .btn-scan,
  .lookup-lang-select {
    transition: none;
  }
  .btn-serial:hover {
    transform: none;
  }
}
