/* 序列号查询页 — Apple 官网级极简认证风格 */

:root {
  --lookup-bg: #0b0b0f;
  --lookup-title: #f5f5f7;
  --lookup-subtitle: #cfcfcf;
  --lookup-text: #f5f5f7;
  --lookup-muted: rgba(245, 245, 247, 0.52);
  --lookup-muted-soft: rgba(245, 245, 247, 0.38);
  --lookup-border: rgba(255, 255, 255, 0.08);
  --lookup-glass: rgba(255, 255, 255, 0.04);
  --lookup-card: rgba(22, 22, 26, 0.72);
  --lookup-card-inner: rgba(255, 255, 255, 0.03);
  --lookup-primary: #0071e3;
  --lookup-primary-hover: #0077ed;
  --lookup-primary-active: #006edb;
  --lookup-focus-ring: rgba(0, 113, 227, 0.28);
  --lookup-shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(0, 0, 0, 0.32);
  --lookup-shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.18);
  --lookup-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --lookup-ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --lookup-radius: 16px;
  /* 查询结果区强调色（非 Search 蓝）：银白柔光 */
  --lookup-result-accent: rgba(245, 245, 247, 0.82);
  --lookup-result-accent-strong: rgba(245, 245, 247, 0.94);
  --lookup-result-glow: 245, 245, 247;
}

.lookup-page {
  margin: 0;
  min-height: 100vh;
  font-family:
    system-ui,
    -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;
  -moz-osx-font-smoothing: grayscale;
}

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

.lookup-wrap > .verify-card {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* —— 语言栏 —— */
.lookup-lang-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: lookupFadeUp 1.2s var(--lookup-ease-slow) 0.05s forwards;
}

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

.lookup-lang-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lookup-lang-toolbar-row .lookup-lang-dropdown {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.lookup-lang-toolbar-row .lookup-lang-trigger,
.lookup-back-btn {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  font-size: clamp(11px, 3.4vw, 15px);
  line-height: 1.2;
}

.lookup-lang-toolbar-row .lookup-lang-trigger {
  padding: 0 12px;
}

.lookup-back-btn {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 76px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--lookup-border);
  border-radius: 10px;
  background: var(--lookup-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--lookup-text);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 0.2s var(--lookup-ease),
    box-shadow 0.2s var(--lookup-ease),
    background-color 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

.lookup-back-btn:hover {
  border-color: rgba(0, 113, 227, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.lookup-back-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.lookup-back-btn:focus-visible {
  outline: none;
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow: 0 0 0 3px var(--lookup-focus-ring);
}

@keyframes lookupBackArrowNudge {
  0%,
  58%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }
  62% {
    transform: translateX(-3px);
    opacity: 0.85;
  }
  66% {
    transform: translateX(-7px);
    opacity: 1;
  }
  70% {
    transform: translateX(-3px);
    opacity: 0.85;
  }
  74% {
    transform: translateX(0);
    opacity: 0.55;
  }
}

@keyframes lookupBackArrowNudgeRtl {
  0%,
  58%,
  100% {
    transform: scaleX(-1) translateX(0);
    opacity: 0.55;
  }
  62% {
    transform: scaleX(-1) translateX(3px);
    opacity: 0.85;
  }
  66% {
    transform: scaleX(-1) translateX(7px);
    opacity: 1;
  }
  70% {
    transform: scaleX(-1) translateX(3px);
    opacity: 0.85;
  }
  74% {
    transform: scaleX(-1) translateX(0);
    opacity: 0.55;
  }
}

.lookup-back-btn__icon {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  color: var(--lookup-muted);
  pointer-events: none;
  animation: lookupBackArrowNudge 2.4s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 0.6s;
}

.lookup-back-btn:hover .lookup-back-btn__icon {
  animation-play-state: paused;
}

.lookup-back-btn__text {
  flex-shrink: 0;
  pointer-events: none;
}

[dir="rtl"] .lookup-back-btn {
  flex-direction: row;
  padding: 0 12px 0 8px;
}

[dir="rtl"] .lookup-back-btn__icon {
  margin-inline-start: auto;
  animation-name: lookupBackArrowNudgeRtl;
}

.lookup-lang-toolbar label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--lookup-muted-soft);
  margin-bottom: 8px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lookup-lang-dropdown {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.lookup-lang-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--lookup-border);
  font-weight: 500;
  background: var(--lookup-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--lookup-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-size-adjust: 100%;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 0.2s var(--lookup-ease),
    box-shadow 0.2s var(--lookup-ease),
    background-color 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

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

.lookup-lang-dropdown.is-open .lookup-lang-trigger,
.lookup-lang-trigger:hover {
  border-color: rgba(0, 113, 227, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.lookup-lang-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  pointer-events: none;
}

.lookup-lang-trigger-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--lookup-muted);
  pointer-events: none;
  animation: lookupLangChevronNudge 2.4s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  animation-delay: 0.9s;
}

.lookup-lang-trigger:hover .lookup-lang-trigger-icon {
  animation-play-state: paused;
}

.lookup-lang-dropdown.is-open .lookup-lang-trigger-icon {
  animation: none;
  transform: rotate(180deg);
  opacity: 1;
}

@keyframes lookupLangChevronNudge {
  0%,
  58%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  62% {
    transform: translateY(3px);
    opacity: 0.85;
  }
  66% {
    transform: translateY(7px);
    opacity: 1;
  }
  70% {
    transform: translateY(3px);
    opacity: 0.85;
  }
  74% {
    transform: translateY(0);
    opacity: 0.55;
  }
}

.lookup-lang-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3100;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s var(--lookup-ease);
}

.lookup-lang-overlay.show {
  display: flex;
  opacity: 1;
}

.lookup-lang-modal-panel {
  width: 100%;
  max-width: 420px;
  max-height: min(calc(100dvh - 48px), calc(100svh - 48px), 560px);
  border-radius: 16px;
  border: 1px solid var(--lookup-border);
  background: var(--lookup-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.lookup-lang-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
  overflow-y: auto;
  max-height: min(calc(100dvh - 60px), calc(100svh - 60px), 548px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lookup-lang-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.lookup-lang-open {
  overflow: hidden;
}

.lookup-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--lookup-title);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  transition:
    background-color 0.15s var(--lookup-ease),
    color 0.15s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

.lookup-lang-option-radio,
.lookup-brand-option-radio {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(136, 136, 136, 0.85);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.lookup-lang-option-radio::after,
.lookup-brand-option-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lookup-primary);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s var(--lookup-ease);
}

.lookup-lang-option.is-selected .lookup-lang-option-radio,
.lookup-brand-option.is-selected .lookup-brand-option-radio {
  border-color: var(--lookup-primary);
}

.lookup-lang-option.is-selected .lookup-lang-option-radio::after,
.lookup-brand-option.is-selected .lookup-brand-option-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

.lookup-lang-option-label,
.lookup-brand-option-label {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-align: left;
}

.lookup-lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lookup-title);
}

.lookup-lang-option.is-selected {
  background: rgba(0, 113, 227, 0.16);
  color: var(--lookup-title);
}

.lookup-lang-hint {
  font-size: 12px;
  color: var(--lookup-muted-soft);
  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-trigger:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lookup-lang-current {
  display: none;
}

/* —— 品牌标题区 —— */
.lookup-brand-hero {
  position: relative;
  margin: 10px 0 24px;
  text-align: center;
  overflow: visible;
}

.lookup-brand-glass {
  position: relative;
  padding: 36px 20px 32px;
  border-radius: 18px;
  background: var(--lookup-glass);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--lookup-border);
  box-shadow: var(--lookup-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lookup-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

/*
 * 【三站统一 · SMARTPHONE 上方模块图标】
 * 适用：SMTPOAV（二维码）/ LCDCHECK（手机）/ 尾插站（尾插图）
 * - 必须在品牌玻璃框内、SMARTPHONE 文字正上方，禁止框外角标
 * - 电脑端尺寸对齐首页桌面卡片图标 112px；手机端对齐首页磁贴图标 56px
 * - 改大小只改变量，三站应对齐同一数值
 * - 电脑端边距保持原样；仅手机端用 --lookup-brand-edge-gap 三处等距
 */
:root {
  /* 电脑端 = 首页 .home-feature-card__icon */
  --lookup-brand-kicker-mark-box: 168px;
  --lookup-brand-kicker-mark-icon: 112px;
}

@media (max-width: 768px) {
  :root {
    /* 手机端 = 首页磁贴图标；三处边距等距 */
    --lookup-brand-edge-gap: 16px;
    --lookup-brand-kicker-mark-box: 56px;
    --lookup-brand-kicker-mark-icon: 56px;
  }

  /* 仅手机：①上边→图标 ②图标→SMARTPHONE ③文案底→下边 同为 16px；电脑端不动 */
  .lookup-brand-glass {
    padding: var(--lookup-brand-edge-gap) 20px var(--lookup-brand-edge-gap);
  }

  .lookup-brand-kicker-mark {
    margin-bottom: var(--lookup-brand-edge-gap);
  }
}

.lookup-brand-kicker-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--lookup-brand-kicker-mark-box);
  height: var(--lookup-brand-kicker-mark-box);
  margin: 0 auto 14px;
  flex-shrink: 0;
}

.lookup-brand-kicker-mark__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 113, 227, 0.55) 0%,
    rgba(0, 113, 227, 0.2) 48%,
    transparent 72%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: lookup-brand-kicker-mark-breathe 3s ease-in-out infinite;
}

.lookup-brand-kicker-mark__icon {
  position: relative;
  z-index: 1;
  width: var(--lookup-brand-kicker-mark-icon);
  height: var(--lookup-brand-kicker-mark-icon);
  object-fit: contain;
  object-position: center;
  display: block;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 8px rgba(0, 113, 227, 0.4));
}

@keyframes lookup-brand-kicker-mark-breathe {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lookup-brand-kicker-mark__glow {
    animation: none;
    opacity: 0.75;
  }
}

.lookup-brand-kicker,
.lookup-brand-title {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(18px, 5.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  color: var(--lookup-title);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.lookup-brand-kicker {
  margin-bottom: 10px;
  opacity: 0;
  animation: lookupBrandLineIn 1.4s var(--lookup-ease-slow) 0.15s forwards;
}

.lookup-brand-title {
  margin-bottom: 12px;
  opacity: 0;
  animation: lookupBrandLineIn 1.5s var(--lookup-ease-slow) 0.28s forwards;
}

.lookup-brand-subtitle {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
  color: var(--lookup-subtitle);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  opacity: 0;
  animation: lookupBrandLineIn 1.6s var(--lookup-ease-slow) 0.42s forwards;
}

.lookup-brand-domain {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  white-space: normal;
  overflow: visible;
  opacity: 0;
  animation: lookupBrandLineIn 1.7s var(--lookup-ease-slow) 0.52s forwards;
}

/* 中日韩等：取消大写/过大字距，避免译文视觉大小不一致 */
html:lang(zh) .lookup-brand-kicker,
html:lang(zh) .lookup-brand-title,
html:lang(zh) .lookup-brand-subtitle,
html:lang(zh) .verify-card__title,
html:lang(ja) .lookup-brand-kicker,
html:lang(ja) .lookup-brand-title,
html:lang(ja) .lookup-brand-subtitle,
html:lang(ja) .verify-card__title,
html:lang(ko) .lookup-brand-kicker,
html:lang(ko) .lookup-brand-title,
html:lang(ko) .lookup-brand-subtitle,
html:lang(ko) .verify-card__title {
  letter-spacing: 0;
  text-transform: none;
  word-break: normal;
  hyphens: manual;
}

@keyframes lookupBrandLineIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lookupFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— 验证卡片 —— */
.verify-card {
  background: var(--lookup-card);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border-radius: 18px;
  padding: 28px 20px 26px;
  border: 1px solid var(--lookup-border);
  box-shadow: var(--lookup-shadow-card);
  text-align: center;
  overflow: visible;
  opacity: 0;
  animation: lookupFadeUp 1.4s var(--lookup-ease-slow) 0.55s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.verify-card__title-row {
  width: 100%;
  margin: 0 0 6px;
  text-align: center;
}

.verify-card__title {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 4px 10px 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
  color: var(--lookup-title);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.verify-card__title-tail {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.verify-card__title-last {
  display: inline-block;
}

.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;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  width: 100%;
  overflow: visible;
}

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

.lookup-field-balanced {
  --lookup-wing: 58px;
  display: grid;
  grid-template-columns: var(--lookup-wing) minmax(0, 1fr) var(--lookup-wing);
  align-items: stretch;
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(0, 113, 227, 0.55);
  background: var(--lookup-card-inner);
  box-shadow: 0 0 0 3px var(--lookup-focus-ring);
  transition:
    border-color 0.2s var(--lookup-ease),
    box-shadow 0.2s var(--lookup-ease),
    background-color 0.2s var(--lookup-ease);
}

.lookup-field-balanced__wing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lookup-field-balanced__wing--end {
  display: grid;
  grid-template-columns: 28px 28px;
  align-items: center;
  justify-items: center;
  column-gap: 2px;
}

.lookup-wing-slot--leading,
.lookup-wing-slot--clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.serial-input-wrap {
  flex: 1;
  min-width: 0;
}

.serial-input-wrap:focus-within {
  border-color: rgba(0, 113, 227, 0.75);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 3px rgba(0, 113, 227, 0.38),
    0 0 16px rgba(0, 113, 227, 0.18);
}

.serial-input {
  grid-column: 2;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--lookup-text);
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serial-input::-webkit-search-cancel-button,
.serial-input::-webkit-search-decoration,
.serial-input::-webkit-search-results-button {
  -webkit-appearance: none;
  display: none;
}

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

.serial-input::placeholder {
  color: rgba(245, 245, 247, 0.36);
  letter-spacing: 0;
  font-size: clamp(11px, 3vw, 14px);
  line-height: 1.25;
  opacity: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.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);
  -webkit-tap-highlight-color: transparent;
}

.btn-scan:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-scan:active {
  background: rgba(255, 255, 255, 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.01em;
  cursor: pointer;
  box-shadow: var(--lookup-shadow-btn);
  transition: background-color 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lookup-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lookup-btn-spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes lookup-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

#lookup-btn.is-loading .lookup-btn-label {
  opacity: 0.92;
}

.btn-serial:hover {
  background: var(--lookup-primary-hover);
}

.btn-serial:active {
  background: var(--lookup-primary-active);
}

.btn-serial:disabled {
  opacity: 0.55;
  cursor: wait;
}

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

.lookup-suggest-list {
  margin: 8px 0 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--lookup-border);
  background: var(--lookup-card);
  box-shadow: var(--lookup-shadow-card);
  overflow-x: hidden;
  overflow-y: visible;
}

.lookup-suggest-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lookup-text);
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background-color 0.15s var(--lookup-ease);
}

.lookup-suggest-item:hover,
.lookup-suggest-item.is-active {
  background: rgba(0, 113, 227, 0.14);
  color: var(--lookup-title);
}

.lookup-brand-section {
  margin-top: 0;
  width: 100%;
}

.serial-search-form .serial-input-row {
  margin-top: 12px;
}

.lookup-brand-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
  /* 下拉与已选触发框共用同一呼吸相位 */
  --brand-breath-border: 0.22;
  --brand-breath-ring: 0.18;
  --brand-breath-glow: 0.12;
  --brand-breath-glow-far: 0.05;
  --brand-breath-text: 0.35;
  animation: lookupBrandListBreathSync 2.4s ease-in-out infinite;
}

.lookup-brand-control:hover,
.lookup-brand-dropdown.is-open .lookup-brand-control,
.lookup-brand-control:has(.lookup-brand-trigger:focus-visible) {
  border-color: rgba(0, 113, 227, 0.75);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 3px rgba(0, 113, 227, 0.38),
    0 0 16px rgba(0, 113, 227, 0.18);
}

/* 已选品牌且面板收起：触发框蓝呼吸 + 文字灰呼吸（与列表同相位） */
.lookup-brand-dropdown:not(.is-open):has(.lookup-brand-trigger-text:not(.is-placeholder)) .lookup-brand-control,
.lookup-brand-dropdown:not(.is-open):has(.lookup-brand-trigger-text:not(.is-placeholder)) .lookup-brand-control:hover,
.lookup-brand-dropdown:not(.is-open):has(.lookup-brand-trigger-text:not(.is-placeholder)) .lookup-brand-control:has(.lookup-brand-trigger:focus-visible) {
  background: var(--lookup-card-inner);
  border-color: rgba(0, 113, 227, calc(0.45 + var(--brand-breath-border) * 0.9));
  box-shadow:
    0 0 0 1px rgba(0, 113, 227, calc(0.2 + var(--brand-breath-ring) * 0.7)),
    0 0 14px rgba(0, 113, 227, calc(0.12 + var(--brand-breath-glow) * 0.7)),
    0 0 28px rgba(0, 113, 227, calc(0.05 + var(--brand-breath-glow-far) * 0.7));
}

.lookup-brand-dropdown:not(.is-open) .lookup-brand-trigger-text:not(.is-placeholder) {
  color: rgba(245, 245, 247, calc(0.78 + var(--brand-breath-text) * 0.22));
  text-shadow:
    0 0 6px rgba(245, 245, 247, var(--brand-breath-text)),
    0 0 14px rgba(245, 245, 247, calc(var(--brand-breath-text) * 0.85)),
    0 0 28px rgba(245, 245, 247, calc(var(--brand-breath-text) * 0.55)),
    0 0 42px rgba(245, 245, 247, calc(var(--brand-breath-text) * 0.28));
}

.lookup-brand-trigger {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 14px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--lookup-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.2s var(--lookup-ease),
    color 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

.lookup-brand-trigger:focus-visible {
  outline: none;
}

.lookup-brand-trigger-text {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.lookup-brand-trigger-text.is-placeholder {
  color: rgba(245, 245, 247, 0.36);
  font-weight: 400;
  font-size: clamp(11px, 3vw, 14px);
}

.lookup-brand-trigger-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--lookup-muted);
  pointer-events: none;
  transition: transform 0.2s var(--lookup-ease);
}

.lookup-brand-dropdown.is-open .lookup-brand-trigger-icon {
  transform: rotate(180deg);
}

.lookup-brand-clear,
.lookup-model-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--lookup-muted);
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
  transition:
    background-color 0.2s var(--lookup-ease),
    color 0.2s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

.lookup-brand-clear:hover,
.lookup-model-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lookup-text);
}

.lookup-brand-clear:focus-visible,
.lookup-model-clear:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.35);
}

.lookup-brand-clear svg,
.lookup-model-clear svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lookup-brand-panel {
  margin-top: 8px;
  width: 100%;
  max-height: 236px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 12px;
  border: 1px solid var(--lookup-border);
  background: var(--lookup-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.lookup-brand-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.lookup-brand-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
}

@property --brand-breath-border {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.22;
}

@property --brand-breath-ring {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.18;
}

@property --brand-breath-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.12;
}

@property --brand-breath-glow-far {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.05;
}

@property --brand-breath-text {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.35;
}

@keyframes lookupBrandListBreathSync {
  0%,
  100% {
    --brand-breath-border: 0.22;
    --brand-breath-ring: 0.18;
    --brand-breath-glow: 0.12;
    --brand-breath-glow-far: 0.05;
    --brand-breath-text: 0.35;
  }

  50% {
    --brand-breath-border: 0.55;
    --brand-breath-ring: 0.45;
    --brand-breath-glow: 0.38;
    --brand-breath-glow-far: 0.17;
    --brand-breath-text: 0.85;
  }
}

.lookup-brand-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--lookup-title);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  transition:
    background-color 0.2s var(--lookup-ease),
    color 0.15s var(--lookup-ease);
  -webkit-tap-highlight-color: transparent;
}

/* 悬停：灰色呼吸（相位跟列表同步） */
.lookup-brand-option:hover:not(.is-selected) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--lookup-title);
  border-color: rgba(245, 245, 247, var(--brand-breath-border));
  box-shadow:
    0 0 0 1px rgba(245, 245, 247, var(--brand-breath-ring)),
    0 0 16px rgba(245, 245, 247, var(--brand-breath-glow)),
    0 0 32px rgba(245, 245, 247, var(--brand-breath-glow-far));
}

/* 选中：无蓝色背景；框蓝色呼吸；文字灰色呼吸（同相位，多层光晕更易见） */
.lookup-brand-option.is-selected {
  background: transparent;
  color: var(--lookup-title);
  border-color: rgba(0, 113, 227, calc(0.45 + var(--brand-breath-border) * 0.9));
  box-shadow:
    0 0 0 1px rgba(0, 113, 227, calc(0.2 + var(--brand-breath-ring) * 0.7)),
    0 0 14px rgba(0, 113, 227, calc(0.12 + var(--brand-breath-glow) * 0.7)),
    0 0 28px rgba(0, 113, 227, calc(0.05 + var(--brand-breath-glow-far) * 0.7));
}

.lookup-brand-option.is-selected .lookup-brand-option-label {
  color: rgba(245, 245, 247, calc(0.78 + var(--brand-breath-text) * 0.22));
  text-shadow:
    0 0 6px rgba(245, 245, 247, var(--brand-breath-text)),
    0 0 14px rgba(245, 245, 247, calc(var(--brand-breath-text) * 0.85)),
    0 0 28px rgba(245, 245, 247, calc(var(--brand-breath-text) * 0.55)),
    0 0 42px rgba(245, 245, 247, calc(var(--brand-breath-text) * 0.28));
}

.lookup-brand-option.is-selected:hover {
  background: transparent;
}

.lookup-brand-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lookup-muted);
  text-align: center;
}

.lookup-brand-coming-soon {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--lookup-border);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--lookup-muted);
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.lookup-field-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #ff6b6b;
  text-align: center;
}

.lookup-field-shake {
  animation: lookupFieldShake 0.42s var(--lookup-ease);
}

.serial-input-wrap.lookup-field-glow {
  border-color: rgba(255, 59, 48, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 59, 48, 0.28),
    0 0 20px rgba(255, 59, 48, 0.42) !important;
}

.lookup-brand-dropdown.lookup-field-glow .lookup-brand-control {
  border-color: rgba(255, 59, 48, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 59, 48, 0.28),
    0 0 20px rgba(255, 59, 48, 0.42) !important;
}

@keyframes lookupFieldShake {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-6px);
  }
  36% {
    transform: translateX(6px);
  }
  54% {
    transform: translateX(-4px);
  }
  72% {
    transform: translateX(4px);
  }
}

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

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

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

/* 布局锁定 LTR：切换阿拉伯语/希伯来语时不翻转工具栏、返回键、输入框结构 */
html,
body.lookup-page {
  direction: ltr;
}

.lookup-lang-toolbar-row,
.lookup-lang-toolbar {
  flex-direction: row !important;
}

.lookup-back-btn {
  flex-direction: row !important;
}

.lookup-back-btn__icon {
  margin-inline-start: 0 !important;
  transform: none !important;
  animation-name: lookupBackArrowNudge !important;
}

html:lang(ar) .serial-input,
html:lang(he) .serial-input,
html:lang(fa) .serial-input,
html:lang(ur) .serial-input {
  direction: rtl;
  text-align: right;
}

@media (min-width: 520px) {
  .lookup-brand-kicker,
  .lookup-brand-title {
    font-size: 26px;
    letter-spacing: 0.05em;
  }

  .lookup-brand-kicker {
    margin-bottom: 12px;
  }

  .lookup-brand-title {
    margin-bottom: 14px;
  }

  .lookup-brand-subtitle {
    font-size: 13px;
    max-width: 100%;
  }

  .lookup-brand-domain {
    font-size: 11px;
    margin-top: 16px;
    letter-spacing: 0.12em;
  }
}

/* 电脑端保持原边距；勿用 min-width:520 盖掉手机端 --lookup-brand-edge-gap */
@media (min-width: 769px) {
  .lookup-brand-glass {
    padding: 42px 28px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lookup-lang-toolbar,
  .lookup-brand-kicker,
  .lookup-brand-title,
  .lookup-brand-subtitle,
  .lookup-brand-domain,
  .verify-card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .serial-input-wrap,
  .btn-serial,
  .btn-scan,
  .lookup-lang-trigger,
  .lookup-back-btn,
  .lookup-back-btn__icon,
  .lookup-lang-trigger-icon,
  .lookup-lang-overlay,
  .lookup-lang-modal-panel {
    transition: none;
  }

  .lookup-back-btn__icon,
  .lookup-lang-trigger-icon {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .lookup-lang-dropdown.is-open .lookup-lang-trigger-icon {
    transform: rotate(180deg);
  }
}

/* —— 查询结果 —— */
.lookup-result {
  margin-top: 28px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  animation: lookupGsmBreathSync 2.6s ease-in-out infinite;
}

.lookup-result-section {
  margin-bottom: 0;
}

.lookup-result-compatible {
  text-align: center;
}

.lookup-result-compatible .lookup-section-title {
  text-align: center;
}

.lookup-section-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--lookup-title);
}

.lookup-section-subtitle {
  margin: -8px 0 18px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--lookup-muted);
}

.lookup-result-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--lookup-border);
}

.lookup-result-disclaimer {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--lookup-border);
}

.lookup-result-disclaimer__text {
  margin: 0;
  max-width: 42em;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--lookup-muted);
  opacity: 0.88;
}

.lcd-compatible-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lcd-compatible-item {
  padding: 14px 16px;
  border-radius: var(--lookup-radius);
  background: var(--lookup-card);
  border: 1px solid rgba(var(--lookup-result-glow), var(--gsm-breath-border, 0.22));
  box-shadow:
    0 0 0 1px rgba(var(--lookup-result-glow), var(--gsm-breath-ring, 0.18)),
    0 0 16px rgba(var(--lookup-result-glow), var(--gsm-breath-glow, 0.12)),
    0 0 32px rgba(var(--lookup-result-glow), calc(var(--gsm-breath-glow, 0.12) * 0.45));
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--lookup-text);
  word-break: break-word;
  text-align: center;
  transition:
    border-color 0.25s var(--lookup-ease),
    box-shadow 0.25s var(--lookup-ease);
}

.lcd-compatible-empty {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--lookup-radius);
  background: var(--lookup-card);
  border: 1px solid rgba(var(--lookup-result-glow), var(--gsm-breath-border, 0.22));
  box-shadow:
    0 0 0 1px rgba(var(--lookup-result-glow), var(--gsm-breath-ring, 0.18)),
    0 0 16px rgba(var(--lookup-result-glow), var(--gsm-breath-glow, 0.12)),
    0 0 32px rgba(var(--lookup-result-glow), calc(var(--gsm-breath-glow, 0.12) * 0.45));
  font-size: 14px;
  line-height: 1.5;
  color: var(--lookup-muted);
  text-align: center;
  transition:
    border-color 0.25s var(--lookup-ease),
    box-shadow 0.25s var(--lookup-ease);
}

.lookup-specs-header {
  margin-bottom: 16px;
  text-align: center;
}

.lookup-specs-header .lookup-section-title,
.lookup-specs-header .lookup-section-subtitle {
  text-align: center;
}

.lookup-specs-model-block {
  position: relative;
  margin-top: 2px;
}

.lookup-specs-model-divider {
  margin: 18px 0 16px;
  border: none;
  border-top: 1px solid var(--lookup-border);
}

.lookup-specs-model-block .lookup-model-image-trigger {
  position: absolute;
  top: 18px;
  right: 0;
  transform: none;
}

.lookup-specs-model-block .lookup-model-image-trigger:active {
  transform: scale(0.96);
}

.lookup-specs-model {
  margin: 0 0 14px;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--lookup-title);
  word-break: break-word;
  text-align: center;
}

.lookup-specs-model-line {
  display: block;
}

.lookup-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s var(--lookup-ease),
    transform 0.4s var(--lookup-ease);
}

.lookup-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lookup-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* —— 未找到弹窗 —— */
.lookup-invalid-overlay[hidden] {
  display: none !important;
}

.lookup-invalid-overlay:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.lookup-invalid-dialog {
  width: 100%;
  max-width: 320px;
  padding: 28px 24px 22px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.lookup-invalid-dialog h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}

.lookup-invalid-dialog p {
  margin: 0 0 22px;
  font-size: 15px;
  color: #6e6e73;
}

.lookup-invalid-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--lookup-primary);
  cursor: pointer;
}

/* Device gallery — between specs header and model name */
.lookup-device-gallery {
  margin: 0 0 18px;
  text-align: center;
}

.lookup-device-gallery-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 8px 0;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 14px;
  transition: background-color 0.2s ease;
}

.lookup-device-gallery-frame.is-loading {
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 200% 100%;
  animation: lookup-device-gallery-shimmer 1.1s ease-in-out infinite;
}

@keyframes lookup-device-gallery-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.lookup-device-gallery-frame.is-dragging {
  cursor: grabbing;
}

.lookup-device-gallery-img {
  max-width: min(280px, 72vw);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.lookup-device-gallery-caption {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.lookup-device-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.lookup-device-gallery-dot {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.lookup-device-gallery-dot.is-active {
  background: var(--lookup-result-accent-strong);
  transform: scale(1.15);
}

.lookup-device-gallery-colors {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.lookup-device-gallery-color {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.lookup-device-gallery-color.is-active {
  border-color: var(--lookup-result-accent-strong);
  background: rgba(245, 245, 247, 0.12);
  color: rgba(255, 255, 255, 0.96);
}

.lookup-device-gallery-color:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.lookup-device-gallery-swipe-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

/* GSM full specifications — collapsible accordion (no inner grid lines) */
@property --gsm-breath-border {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.22;
}

@property --gsm-breath-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.12;
}

@property --gsm-breath-ring {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.18;
}

@property --gsm-breath-text {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.35;
}

.lookup-gsm-specs {
  margin-top: 20px;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes lookupGsmBreathSync {
  0%,
  100% {
    --gsm-breath-border: 0.22;
    --gsm-breath-glow: 0.12;
    --gsm-breath-ring: 0.18;
    --gsm-breath-text: 0.35;
  }

  50% {
    --gsm-breath-border: 0.55;
    --gsm-breath-glow: 0.38;
    --gsm-breath-ring: 0.45;
    --gsm-breath-text: 0.55;
  }
}

.lookup-gsm-panel {
  border: 1px solid var(--lookup-border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.25s var(--lookup-ease),
    box-shadow 0.25s var(--lookup-ease);
}

.lookup-gsm-panel:not(.is-open) {
  border-color: rgba(var(--lookup-result-glow), var(--gsm-breath-border));
  box-shadow:
    0 0 0 1px rgba(var(--lookup-result-glow), var(--gsm-breath-ring)),
    0 0 16px rgba(var(--lookup-result-glow), var(--gsm-breath-glow)),
    0 0 32px rgba(var(--lookup-result-glow), calc(var(--gsm-breath-glow) * 0.45));
}

.lookup-gsm-panel.is-open {
  border-color: var(--lookup-border);
  box-shadow: none;
}

.lookup-gsm-panel-head {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--lookup-result-accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  transition: color 0.2s var(--lookup-ease), background-color 0.2s var(--lookup-ease);
}

.lookup-gsm-panel:not(.is-open) .lookup-gsm-panel-head {
  text-shadow: 0 0 12px rgba(var(--lookup-result-glow), var(--gsm-breath-text));
}

.lookup-gsm-panel.is-open .lookup-gsm-panel-head {
  text-shadow: none;
}

.lookup-gsm-panel-head:hover {
  background: rgba(255, 255, 255, 0.04);
}

.lookup-gsm-panel-head:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
}

.lookup-gsm-chevron {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transition: transform 0.2s var(--lookup-ease, ease);
  transform-origin: 30% 50%;
}

.lookup-gsm-panel.is-open .lookup-gsm-chevron {
  transform: rotate(90deg);
}

.lookup-gsm-panel-title {
  flex: 1;
  min-width: 0;
}

.lookup-gsm-panel-body {
  padding: 4px 14px 14px 31px;
}

.lookup-gsm-item {
  margin-bottom: 10px;
}

.lookup-gsm-item:last-child {
  margin-bottom: 0;
}

.lookup-gsm-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lookup-muted);
  margin-bottom: 2px;
}

.lookup-gsm-item-value {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lookup-title);
  word-break: break-word;
}

/* Safari 自动识别电话/地址时会给文字加虚线下划线（x-apple-data-detectors） */
.lookup-page a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

.lookup-gsm-item.is-continuation .lookup-gsm-item-value {
  padding-left: 0;
  color: rgba(255, 255, 255, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .lookup-result {
    animation: none;
    --gsm-breath-border: 0.35;
    --gsm-breath-glow: 0.2;
    --gsm-breath-ring: 0.25;
    --gsm-breath-text: 0;
  }

  .lookup-gsm-panel:not(.is-open) .lookup-gsm-panel-head {
    text-shadow: none;
  }

  .lookup-brand-dropdown {
    animation: none;
    --brand-breath-border: 0.4;
    --brand-breath-ring: 0.3;
    --brand-breath-glow: 0.22;
    --brand-breath-glow-far: 0.1;
    --brand-breath-text: 0.55;
  }

  .lookup-brand-option:hover:not(.is-selected) {
    border-color: rgba(245, 245, 247, 0.4);
    box-shadow:
      0 0 0 1px rgba(245, 245, 247, 0.28),
      0 0 16px rgba(245, 245, 247, 0.2),
      0 0 28px rgba(245, 245, 247, 0.1);
  }

  .lookup-brand-option.is-selected .lookup-brand-option-label,
  .lookup-brand-dropdown:not(.is-open) .lookup-brand-trigger-text:not(.is-placeholder) {
    color: rgba(245, 245, 247, 0.95);
    text-shadow:
      0 0 8px rgba(245, 245, 247, 0.55),
      0 0 18px rgba(245, 245, 247, 0.35);
  }

  .lookup-brand-option.is-selected,
  .lookup-brand-dropdown:not(.is-open):has(.lookup-brand-trigger-text:not(.is-placeholder)) .lookup-brand-control {
    border-color: rgba(0, 113, 227, 0.85);
    box-shadow:
      0 0 0 1px rgba(0, 113, 227, 0.4),
      0 0 14px rgba(0, 113, 227, 0.28),
      0 0 28px rgba(0, 113, 227, 0.12);
  }
}
