/* 查询功能相关样式 */

/* 移动端基础字体设置 - 必须在最前面，防止字体闪烁 */
@media (max-width: 768px) {
  html, body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
  }
}

/* 移动端服务信息 - 默认隐藏，仅在移动端显示 */
.mobile-service-info {
  display: none !important;
}

/* PC端查询按钮加载状态 - 脉冲动画效果 */
.query-form #queryBtn.loading {
  pointer-events: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.query-form #queryBtn.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.query-form #queryBtn.loading .btn-text {
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* 剪贴板提示弹窗 */
.clipboard-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.clipboard-prompt-content {
  background: #fff;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clipboard-prompt-header {
  display: flex;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.clipboard-prompt-icon {
  font-size: 28px;
  margin-right: 12px;
}

.clipboard-prompt-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
}

.clipboard-prompt-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.clipboard-prompt-close:hover {
  color: #6b7280;
}

.clipboard-prompt-body {
  padding: 20px;
}

.clipboard-prompt-message {
  font-size: 15px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.6;
}

.clipboard-prompt-message strong {
  color: #4a90d9;
  font-weight: 700;
}

.clipboard-prompt-preview {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  max-height: 120px;
  overflow-y: auto;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  color: #6b7280;
  word-break: break-all;
  line-height: 1.5;
}

.clipboard-prompt-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px 20px;
}

.clipboard-prompt-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clipboard-prompt-btn-secondary {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.clipboard-prompt-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.clipboard-prompt-btn-primary {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

.clipboard-prompt-btn-primary:hover {
  background: linear-gradient(135deg, #3a7bc8 0%, #2d63a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

.clipboard-prompt-btn-primary:active {
  transform: translateY(0);
}

/* 苹果型号解读模态框 */
.model-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.model-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.model-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.model-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.model-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.model-modal-close:hover {
  color: #6b7280;
  background-color: #f9fafb;
}

.model-modal-body {
  padding: 24px;
}

.model-section {
  margin-bottom: 28px;
}

.model-section:last-child {
  margin-bottom: 0;
}

.model-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #4a90d9;
  border-radius: 2px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.model-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
}

.model-key {
  font-weight: 700;
  color: #1f2937;
  min-width: 40px;
  text-align: center;
  background-color: #e8f0fe;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

.model-value {
  flex: 1;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.model-notes {
  background-color: #f0f9ff;
  border-radius: 8px;
  padding: 16px;
}

.model-notes p {
  font-size: 14px;
  color: #374151;
  margin-bottom: 8px;
  line-height: 1.6;
}

.model-notes p:last-child {
  margin-bottom: 0;
}

.model-notes strong {
  color: #0369a1;
  font-weight: 700;
}

.model-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #f3f4f6;
}

.model-modal-footer .btn-secondary,
.model-modal-footer .btn-primary {
  flex: 1;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-modal-footer .btn-secondary {
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.model-modal-footer .btn-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.model-modal-footer .btn-primary {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
  border: none;
}

.model-modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #3a7bc8 0%, #2d63a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

/* 响应式调整：小屏幕下垂直堆叠按钮 */
@media (max-width: 480px) {
  .model-modal-footer {
    flex-direction: column;
    gap: 10px;
  }
  
  .model-modal-footer .btn-secondary,
  .model-modal-footer .btn-primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* 超小屏幕进一步调整 */
@media (max-width: 400px) {
  .model-modal-footer .btn-secondary,
  .model-modal-footer .btn-primary {
    padding: 10px 14px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* 型号模态框链接样式 */
.model-modal-link {
  color: #4a90d9;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.model-modal-link:hover {
  color: #3a7bc8;
  text-decoration: none;
}

/* PC端隐藏剪贴板提示 */

/* PC端隐藏剪贴板提示 */
@media (min-width: 769px) {
  .clipboard-prompt-overlay {
    display: none !important;
  }

  .mobile-bottom-bar {
    display: none !important;
  }

  .mobile-last-serials-btn {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }

/* 确保PC端查询按钮区域显示 */
.desktop-only .query-actions {
  display: flex !important;
}
}

/* 查询中等待浮层 - 极简设计（仅移动端显示） */
.query-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

/* 移动端显示加载浮层 */
@media (max-width: 768px) {
  .query-loading-overlay {
    display: flex;
  }
}

.query-loading-content {
  text-align: center;
  animation: loadingFadeIn 0.4s ease-out;
}

@keyframes loadingFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #1f2937;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.loading-subtext {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
  margin-bottom: 20px;
}

/* 底部查询历史浮层 */
.history-float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
}

.history-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.history-float-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.history-icon {
  font-size: 16px;
}

@media (max-width: 768px) {
  .history-float-bar {
    display: none;
  }

  .mobile-tab-nav {
    display: flex !important;
  }
}

/* 查询错误提示 - 极简设计 */
.query-error-alert {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: errorFadeIn 0.3s ease-out;
}

@keyframes errorFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.query-error-alert.hidden {
  display: none;
}

.error-icon {
  font-size: 16px;
  flex-shrink: 0;
  color: #ef4444;
  line-height: 1;
  margin-top: 1px;
}

.error-content {
  flex: 1;
  min-width: 0;
}

.error-title {
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 2px;
}

.error-message {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.4;
  word-break: break-word;
}

.error-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #ef4444;
  transition: all 0.15s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.error-close:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* 查询标签 */
.query-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: #333;
  background: rgba(0, 123, 255, 0.05);
}

.tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
  font-weight: 600;
  background: rgba(0, 123, 255, 0.05);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 查询结果示例面板 - 现代极简设计 */
.result-example,
.verification-tips-section {
  margin-top: 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.result-example-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 12px;
  padding: 0;
}

.result-example-title span:first-child {
  flex: 1;
}

/* 验机核心步骤区域样式 */
.verification-tips-section .result-example-title {
  font-size: 21px;
  font-weight: 400;
  text-transform: none;
  color: #1d1d1f;
  padding: 16px 20px;
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e5e7;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.015em;
}

.verification-tips-section .result-example-title span {
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
}

.verification-tips-section .tip-item {
  font-size: 16px;
  line-height: 1.8;
  padding: 14px 18px;
  border-bottom: none;
  color: #6b7280;
}

.verification-tips-section .step-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
  margin-right: 12px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  border: 2px solid #bae6fd;
}

.verification-tips-section .step-title {
  font-size: 16px;
  font-weight: 600;
  color: #4b5563;
}

.verification-tips-section .step-content {
  margin-top: 14px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.85;
}

.verification-tips-section .step-content strong {
  color: #4b5563;
  font-weight: 600;
  font-size: 16px;
}

.verification-tips-section .tip-link {
  display: inline-block;
  color: #0071e3;
  text-decoration: none;
  margin-right: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  padding: 8px 14px;
  background: #e0f2fe;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.verification-tips-section .tip-link:hover {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
  text-decoration: none;
}

.verification-tips-section .tip-link font {
  color: #86868b;
  font-size: 14px;
}

.verification-tips-section .model-modal-link,
.verification-tips-section .tongyong-link,
.verification-tips-section .jiyans-link {
  color: #0071e3;
  text-decoration: none;
  font-weight: 600;
  padding: 2px 6px;
  border-bottom: 2px solid #0071e3;
  transition: all 0.2s ease;
}

.verification-tips-section .model-modal-link:hover,
.verification-tips-section .tongyong-link:hover,
.verification-tips-section .jiyans-link:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  color: #0071e3;
}

/* 查询结果区域的标题背景 - 仅移动端 */
@media (max-width: 768px) {
  .query-result-section .result-example-title {
    background: transparent;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 11px;
  }
}

.example-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 查询结果区域内的 example-content - 浅灰色背景，边框与背景一致 */
.query-result-section .example-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 验机核心步骤的 example-content - 移动端贴近屏幕边缘 */
.verification-tips-section .example-content {
  background: #ffffff;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* 移动端验机核心步骤的 example-content - 通栏布局 */
@media (max-width: 768px) {
  .verification-tips-section .example-content {
    background: #ffffff;
    padding: 0;
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
    box-sizing: border-box;
    border: none;
    border-radius: 0;
  }
}

.example-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  color: #d1d5db;
  text-align: center;
  background: linear-gradient(135deg, #fafbfc 0%, #f5f5f5 100%);
  border-radius: 8px;
  border: 1px dashed #e5e7eb;
}

.example-placeholder .example-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
  filter: grayscale(50%);
}

.example-placeholder p {
  margin: 0;
  font-size: 15px;
  color: #9ca3af;
  font-weight: 500;
}

/* 鉴别指南区域 - 扁平化设计 */
.service-tips-section {
  margin-top: 20px;
  padding: 0 20px 20px 20px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
}

.tips-header {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #f3f4f6;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tips-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
}

.tip-item {
  font-size: 13px;
  line-height: 2.2;
  color: #374151;
  padding: 10px 0;
  border-bottom: 1px solid #f9fafb;
  position: relative;
}

/* 步骤图标样式 - 扁平化设计 */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #0ea5e9;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  margin-right: 8px;
  flex-shrink: 0;
}

.tip-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tip-item strong {
  color: #1f2937;
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
}

/* 步骤标题样式 */
.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.step-title {
  font-size: 15px;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
}

/* 步骤内容样式 */
.step-content {
  margin-top: 8px;
}

.tip-link {
  display: block;
  margin: 6px 0;
  padding: 8px 12px;
  background: #e0f2fe;
  color: #0369a1;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tip-link:hover {
  background: #0ea5e9;
  color: #ffffff;
  border-color: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

/* 吉验机链接样式 */
.jiyans-link {
  display: inline;
  color: #0369a1;
  text-decoration: none;
  border-bottom: 2px solid #0369a1;
  padding: 0 2px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.jiyans-link:hover {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}

/* 通用链接样式-带查询服务 */
.tongyong-link {
  display: inline;
  color: #0369a1;
  text-decoration: none;
  border-bottom: 2px solid #0369a1;
  padding: 0 2px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tongyong-link:hover {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}

/* 移动端鉴别指南样式 - 浅色背景，无彩色条 */
@media (max-width: 768px) {
  .service-tips-section {
    margin-top: 12px;
    padding: 0 !important;
    background: #f8fafc !important;
    border: none !important;
    border-radius: 12px !important;
  }

  .tips-header {
    font-size: 16px !important;
    padding: 12px 14px !important;
    color: #374151 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  .tips-content {
    padding: 12px 14px !important;
  }

  .tip-item {
    font-size: 16px !important;
    line-height: 1.9 !important;
    padding: 10px 0 !important;
    color: #374151 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    position: relative !important;
  }

  .step-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
    margin-right: 10px !important;
    border-radius: 6px !important;
    background: #0ea5e9 !important;
  }

  .tip-item:before {
    content: '';
    display: none !important;
  }

  .tip-item:last-child {
    border-bottom: none !important;
  }

  .tip-item strong {
    color: #1f2937 !important;
    font-weight: 600 !important;
  }

  .step-title {
    font-size: 17px !important;
    color: #0369a1 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 0 !important;
  }

  .step-header {
    margin-bottom: 8px !important;
  }

  .step-content {
    font-size: 16px !important;
    line-height: 2 !important;
    margin-top: 8px !important;
  }

  .tip-link {
    display: block;
    margin: 6px 0;
    padding: 10px 14px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .tip-link:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
  }

  /* 验机核心步骤 - 移动端 */
  .verification-tips-section .result-example-title {
    font-size: 21px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: #1d1d1f !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e5e5e7 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    letter-spacing: -0.015em !important;
  }

  .verification-tips-section .result-example-title span {
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 21px !important;
  }

  .verification-tips-section .tip-item {
    font-size: 18px !important;
    line-height: 1.85 !important;
    padding: 12px 14px !important;
    border-bottom: none !important;
  }

  .verification-tips-section .tip-item:last-child {
    border-bottom: none !important;
  }

  .verification-tips-section .step-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    margin-right: 10px !important;
    border-radius: 50% !important;
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 600 !important;
    border: 2px solid #bae6fd !important;
  }

  .verification-tips-section .step-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
  }

  .verification-tips-section .step-content {
    font-size: 16px !important;
    line-height: 1.9 !important;
    margin-top: 10px !important;
    color: #6b7280 !important;
  }

  .verification-tips-section .step-content strong {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
  }

  .service-tips-section .step-title {
    font-size: 19px !important;
    font-weight: 700 !important;
  }

  .service-tips-section .step-content {
    font-size: 18px !important;
    line-height: 2.2 !important;
    margin-top: 10px !important;
  }

  .service-tips-section .step-content strong {
    font-size: 19px !important;
    font-weight: 700 !important;
  }

  .service-tips-section .tip-link {
    font-size: 17px !important;
    padding: 10px 14px !important;
    margin-top: 8px !important;
  }
}

.example-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

/* 设备图片容器 - 缩小尺寸 */
.query-result-section .device-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.query-result-section .device-image-container {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.query-result-section .device-model-text {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(29, 29, 31);
  text-align: center;
  line-height: 1.4;
  max-width: 280px;
}

/* 图片加载指示器 */
.image-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

/* 加载动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.query-result-section .device-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.query-result-section .device-image:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

/* 重点关注区域 */
.query-result-section .key-info-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.query-result-section .key-info-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 0.3px;
}

.query-result-section .key-info-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.query-result-section .key-info-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e0f2fe;
  border-radius: 20px;
  border: 1px solid #bae6fd;
  transition: all 0.2s ease;
  font-size: 15px;
}

.query-result-section .key-info-item:hover {
  background: #bae6fd;
  border-color: #7dd3fc;
}

.query-result-section .key-info-item strong {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.2px;
  text-transform: none;
}

.query-result-section .key-info-item span {
  font-size: 15px;
  font-weight: 400;
  color: rgb(29, 29, 31);
  line-height: 1.2;
}

/* 特殊状态标识（是否预激活、是否官换机等） */
.query-result-section .key-info-item.special-status {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.query-result-section .key-info-item.special-status strong {
  color: #ef4444;
}

.query-result-section .key-info-item.special-status span {
  color: #b91c1c;
}

/* 移动端样式优化 */
@media (max-width: 768px) {
  .query-result-section .device-image-wrapper {
    margin-bottom: 16px;
  }

  .query-result-section .device-image-container {
    width: 140px;
    height: 140px;
  }

  .query-result-section .device-model-text {
    font-size: 13px;
    max-width: 240px;
    margin-top: 10px;
  }

  .query-result-section .key-info-section {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .query-result-section .key-info-title {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .query-result-section .key-info-content {
    gap: 6px;
  }

  .query-result-section .key-info-item {
    padding: 5px 10px;
    font-size: 14px;
    gap: 4px;
  }

  .query-result-section .key-info-item strong {
    font-size: 11px;
  }

  .query-result-section .key-info-item span {
    font-size: 14px;
    font-weight: 400;
    color: rgb(29, 29, 31);
  }
}

/* 查询结果区域内的 example-data 样式 - 现代扁平化 */
.query-result-section .example-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  background: #ffffff;
  padding: 0;
}

/* 查询结果区域内的卡片 - 白色背景，圆角卡片 */
.query-result-section .example-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.query-result-section .example-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

/* 全宽纯文本行 */
.query-result-section .example-item.full-width {
  justify-content: flex-start;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  padding: 14px 16px;
  line-height: 1.6;
  background: transparent;
  border: none;
}

.query-result-section .example-item:last-child {
  margin-bottom: 0;
}

/* PC端样式 */
.query-result-section .example-item-label {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 0;
  font-weight: 500;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0.3px;
  min-width: 70px;
}

.query-result-section .example-item-value {
  font-size: 15px;
  color: rgb(29, 29, 31);
  font-weight: 400;
  flex: 1;
  text-align: right;
  word-break: break-all;
  line-height: 1.5;
}

.example-item {
  background: white;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s;
}

.example-item:hover {
  border-color: #d1d5db;
}

.example-item-label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.example-item-value {
  font-size: 15px;
  color: #1f2937;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.5;
}

.example-json-container {
  margin-top: 16px;
}

.example-json-title {
  font-size: 13px;
  font-weight: 700;
  color: #495057;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.example-json {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
  color: #e0e0e0;
  padding: 18px;
  border-radius: 10px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 示例标签切换按钮 */
.example-tabs-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0;
}

.example-tab-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 4px 4px 0 0;
}

.example-tab-btn:hover {
  color: #333;
  background: rgba(102, 126, 234, 0.05);
}

.example-tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: 600;
  background: rgba(102, 126, 234, 0.05);
}

.example-tabs-content {
  position: relative;
}

.example-tab-pane {
  display: none;
}

.example-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.example-json-content {
  background: #fff;
  color: #333;
  padding: 0;
  border-radius: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: normal;
}

/* 示例字段格式化样式 - 现代极简设计 */
.example-field-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.6;
}

.example-field-row:last-child {
  border-bottom: none;
}

.example-field-name {
  flex-shrink: 0;
  color: #9ca3af;
  font-weight: 500;
  min-width: 80px;
  padding-right: 12px;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.example-field-value {
  flex: 1;
  color: #374151;
  word-break: break-all;
  font-size: 15px;
  font-weight: 500;
}

.example-field-text {
  flex: 1;
  color: #374151;
  word-break: break-all;
  font-size: 15px;
  font-weight: 400;
}


/* 查询结果面板 - 极简设计 */
.query-result {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.result-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.result-actions {
  display: flex;
  gap: 8px;
}

.result-content {
  padding: 16px;
  max-height: 600px;
  overflow-y: auto;
}

/* 结果标签切换 */
.result-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
}

.result-tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 4px 4px 0 0;
}

.result-tab-btn:hover {
  color: #333;
  background: rgba(0, 123, 255, 0.05);
}

.result-tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
  font-weight: 600;
  background: rgba(0, 123, 255, 0.05);
}

.result-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.result-tabs-content {
  position: relative;
}

.result-tab-pane {
  display: none;
}

.result-tab-pane.active {
  display: block;
}

/* 结果文本 */
.result-text,
.result-json {
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow-x: auto;
  white-space: normal;
  word-wrap: break-word;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.result-text {
  white-space: normal;
}

.result-json {
  white-space: pre;
}

.result-json {
  font-size: 12px;
}

/* 优化的结果内容样式 */
.result-text-content {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  line-height: 1.8;
  font-size: 14px;
  color: #333;
}

.result-text-content br {
  display: block;
  margin: 4px 0;
  content: "";
}

/* 直接显示的查询结果区域 */
.query-result-section {
  margin-bottom: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* 移动端：极简扁平化设计 */
@media (max-width: 768px) {
  /* 防止页面横向滚动 */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  .query-result-section {
    margin-top: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
  }

  .query-result-section .result-content {
    padding: 0;
    max-height: none;
    overflow: visible;
  }

  /* 移动端：白色背景通栏占满屏幕 */
  .query-result-section .example-content {
    padding: 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    box-sizing: border-box;
    background: #ffffff;
    border: none;
    border-radius: 0;
  }

  /* 移动端：查询结果标题极简 */
  .query-result-section .result-example-title {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 0;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 11px;
    font-weight: 600;
    gap: 8px;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .query-result-section .example-data {
    padding: 0;
    gap: 6px;
  }

  /* 移动端：标签变小，数值靠右更显著 */
  .example-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .example-item-label {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    flex-shrink: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-width: 60px !important;
  }

  .example-item-value {
    font-size: 15px !important;
    color: rgb(29, 29, 31) !important;
    font-weight: 400 !important;
    flex: 1 !important;
    text-align: right !important;
    word-break: break-all !important;
    line-height: 1.5 !important;
  }

  .result-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 11px;
    gap: 12px;
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
  }

  .query-result-section .result-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
  }

  .result-meta .meta-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .result-meta .meta-item strong {
    color: #9ca3af;
    font-weight: 500;
    margin-right: 2px;
    font-size: 11px;
  }

  .result-meta .meta-item span {
    color: #6b7280;
    font-weight: 400;
    font-size: 11px;
  }

  /* 移动端查询结果标题（与PC端统一） */
  .query-result-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #9ca3af;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .query-result-title span:first-child {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
  }

  /* 移动端复制按钮（与PC端统一） */
.btn-copy-result {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #f3f4f6;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-result span {
  display: inline;
}

.btn-copy-result svg {
  width: 14px;
  height: 14px;
}

.btn-copy-result.copied {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* 移动端扁平化样式 */
@media (max-width: 768px) {
  .mobile-query-type-select {
    border-radius: 0;
    border: 1px solid #e5e7eb;
  }

  .mobile-query-btn {
    border-radius: 0;
  }

  /* 移动端验机核心步骤通栏布局 */
  .verification-tips-section {
    margin-top: 12px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* 验机核心步骤通栏显示 */
  .verification-tips-section .result-example-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 14px !important;
    width: 100%;
  }

  .verification-tips-section .example-content {
    margin-left: -14px !important;
    margin-right: -14px !important;
    width: calc(100% + 28px) !important;
    padding: 0 !important;
  }

  .verification-tips-section .tip-item {
    padding: 12px 14px !important;
  }

  /* 移动端错误提示扁平化 */
  .query-error-alert {
    border-radius: 0;
    padding: 12px 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    box-sizing: border-box;
  }

  .error-close {
    border-radius: 0;
  }
}

  /* 移动端查询结果示例扁平化 */
  .result-example {
    margin-top: 16px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
  }

  .result-example-title {
    padding: 0 0;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .example-content {
    background: #ffffff;
    border-radius: 0;
    padding: 16px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border: none;
  }

  .example-placeholder {
    padding: 32px 20px;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f5f5 100%);
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
  }

  /* 验机核心步骤通栏 */
  .verification-tips-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .verification-tips-section .result-example-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
  }

  .verification-tips-section .example-content {
    margin-left: -14px !important;
    margin-right: -14px !important;
    width: calc(100% + 28px) !important;
  }
}

/* 查询结果标题 - 统一样式，PC端和移动端 */
.result-example-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #1f2937;
  line-height: 1.3;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

/* 查询结果示例标题 - 灰度样式 */
.result-example-title.example {
  color: #6b7280;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.result-example-title span:first-child {
  flex: 1;
}

.query-result-section .result-content {
  padding: 0;
}

.query-result-section .result-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 11px;
  color: #9ca3af;
  align-items: center;
}

.query-result-section .result-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.query-result-section .result-meta .meta-item strong {
  color: #6b7280;
  font-weight: 500;
}

/* PC端：确保样式优先级 */
@media (min-width: 769px) {
  /* PC端验机核心步骤 */
  .verification-tips-section .result-example-title {
    font-size: 21px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: #1d1d1f !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e5e5e7 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    letter-spacing: -0.015em !important;
  }

  .verification-tips-section .result-example-title span {
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 21px !important;
  }

  .verification-tips-section .tip-item {
    font-size: 16px !important;
    line-height: 1.85 !important;
    padding: 14px 18px !important;
    border-bottom: none !important;
    color: #6b7280 !important;
  }

  .verification-tips-section .tip-item:last-child {
    border-bottom: none !important;
  }

  .verification-tips-section .step-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    margin-right: 12px !important;
    border-radius: 50% !important;
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 600 !important;
    border: 2px solid #bae6fd !important;
  }

  .verification-tips-section .step-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
  }

  .verification-tips-section .step-content {
    font-size: 16px !important;
    line-height: 1.85 !important;
    margin-top: 14px !important;
    color: #6b7280 !important;
  }

  .verification-tips-section .step-content strong {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
  }

  .result-example-title {
    font-size: 19px !important;
    margin-bottom: 12px !important;
    color: #1f2937 !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 12px !important;
  }

  .result-example-title.example {
    font-size: 17px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 12px !important;
  }
}

/* 移动端：统一标题样式，确保优先级 */
@media (max-width: 768px) {
  .result-example-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    color: #1f2937 !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 8px !important;
  }
  
  .result-example-title.example {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 6px !important;
  }
  
  .query-result-section .result-example-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    color: #1f2937 !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 8px !important;
  }
  
  .query-result-section .result-example-title.example {
    font-size: 14px !important;
    margin-bottom: 6px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 6px !important;
  }
}

/* 复制结果按钮 - 浅灰色背景 */
.btn-copy-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy-result:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}

.btn-copy-result:active {
  transform: scale(0.98);
}

.btn-copy-result.copied {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.btn-copy-result span {
  display: inline;
}

.btn-copy-result svg {
  width: 14px;
  height: 14px;
}

/* 结果元数据 */
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

.meta-item {
  font-size: 14px;
  color: #666;
}

.meta-item strong {
  color: #333;
  margin-right: 4px;
}

/* 文件上传 */
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.file-info {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* 批量信息 */
.batch-info {
  padding: 12px 16px;
  background: #e7f3ff;
  border-radius: 4px;
  border-left: 4px solid #007bff;
  margin-bottom: 16px;
}

/* PC端统计信息卡片 - 右侧悬浮在文本框内 */
@media (min-width: 769px) {
  .stats-card {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
  }

  .stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .stats-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
  }

  .stats-label {
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.2px;
  }

  .stats-divider {
    width: 30px;
    height: 1px;
    background: #e5e7eb;
    margin: 10px 8px;
  }
}

/* 加载动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-loading {
  position: relative;
  padding-left: 40px;
}

.btn-loading::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* 状态徽章 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.status-running {
  background: #cce5ff;
  color: #004085;
}

.status-badge.status-success {
  background: #d4edda;
  color: #155724;
}

.status-badge.status-failed {
  background: #f8d7da;
  color: #721c24;
}

/* 详情折叠 */
details {
  margin: 8px 0;
}

summary {
  cursor: pointer;
  color: #007bff;
  font-weight: 500;
  padding: 8px 0;
}

summary:hover {
  color: #0056b3;
}

details[open] summary {
  border-bottom: 1px solid #e9ecef;
}

/* Toast 提示样式 */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: toastSlideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast.slide-out {
  animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.toast-message {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast 类型样式 */
.toast.success {
  background: linear-gradient(135deg, #fff 0%, #f6ffed 100%);
  border: 1px solid #b7eb8f;
  border-left: 4px solid #52c41a;
}

.toast.success .toast-icon {
  color: #52c41a;
}

.toast.success .toast-title {
  color: #389e0d;
}

.toast.success .toast-message {
  color: #595959;
}

.toast.error {
  background: linear-gradient(135deg, #fff 0%, #fff1f0 100%);
  border: 1px solid #ffa39e;
  border-left: 4px solid #ff4d4f;
}

.toast.error .toast-icon {
  color: #ff4d4f;
}

.toast.error .toast-title {
  color: #cf1322;
}

.toast.error .toast-message {
  color: #8c1e26;
}

.toast.warning {
  background: linear-gradient(135deg, #fff 0%, #fffbe6 100%);
  border: 1px solid #ffe58f;
  border-left: 4px solid #faad14;
}

.toast.warning .toast-icon {
  color: #faad14;
}

.toast.warning .toast-title {
  color: #d48806;
}

.toast.warning .toast-message {
  color: #8c6803;
}

.toast.info {
  background: linear-gradient(135deg, #fff 0%, #e6f7ff 100%);
  border: 1px solid #91d5ff;
  border-left: 4px solid #1890ff;
}

.toast.info .toast-icon {
  color: #1890ff;
}

.toast.info .toast-title {
  color: #096dd9;
}

.toast.info .toast-message {
  color: #0050b3;
}

/* Toast 进度条 */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  animation: toastProgress linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* 移动端元素默认隐藏（PC端不显示） */
.mobile-tab-nav {
  display: none;
}

.mobile-bottom-bar {
  display: none !important;
}

.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none;
}

.hidden {
  display: none !important;
}

.batch-import-section {
  margin: 16px 0;
  display: flex;
  gap: 10px;
}

.batch-import-section .btn-secondary {
  flex: 0 0 auto;
}

.mobile-stats-float {
  display: none;
}

@media (max-width: 768px) {
  /* 移动端右侧浮动统计信息 */
  .mobile-stats-float {
    display: block;
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    z-index: 999;
  }

  .mobile-stats-content {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
  }

  .mobile-stats-item {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    line-height: 1.2;
  }

  .mobile-stats-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
  }

  .mobile-stats-divider {
    width: 40px;
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
  }

  .batch-import-section {
    margin: 12px 0;
  }

  .batch-import-section button {
    width: 100%;
  }
}

/* 移动端标签导航显示 */
@media (max-width: 768px) {
  .mobile-tab-nav {
    display: flex !important;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 移动端整体内容区域字体放大 */
  .main-area,
  .main-content,
  .query-form,
  .form-group label,
  .textarea,
  .features-section,
  .features-section h2,
  .tip-item p,
  .feedback-text {
    font-size: 16px !important;
  }

  /* 示例区域移动端优化 */
  .result-example {
    margin-top: 16px;
  }

  .result-example-title {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .example-content {
    padding: 8px;
    background: #f9fafb;
    border: none;
  }

  .example-json-content {
    font-size: 12px;
    line-height: 1.5;
  }

  .example-field-row {
    padding: 6px 0;
  }

  .example-field-name {
    min-width: 80px;
    padding-right: 12px;
    font-size: 15px;
  }

  .example-field-value,
  .example-field-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .example-placeholder {
    padding: 24px 16px;
  }

  .example-placeholder .example-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .example-placeholder p {
    font-size: 15px;
  }

  .query-tabs {
    flex-direction: column;
  }

  .result-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .result-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .result-meta {
    flex-direction: column;
    gap: 8px;
  }

  .task-overview {
    grid-template-columns: 1fr;
  }

  .progress-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .toast-container {
    top: 60px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

/* 移动端标签导航显示 - 大气国际化设计 */
@media (max-width: 768px) {
  .mobile-tab-nav {
    display: flex !important;
    position: static;
    background: #ffffff;
    z-index: 99;
    border-bottom: 1px solid #f3f4f6;
    padding: 0;
    height: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  }

  .mobile-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 80px;
    gap: 6px;
    border-radius: 0;
    margin: 0;
    border: none;
  }

  .mobile-tab-item:active {
    background: #f9fafb;
    transform: scale(0.96);
  }

  .mobile-tab-item.active {
    color: #3b82f6;
    font-weight: 700;
    background: #f0f9ff;
    box-shadow: none;
    border-bottom: 3px solid #3b82f6;
  }

  .mobile-tab-item.active::after {
    display: none;
  }

  .mobile-tab-icon {
    font-size: 32px;
    margin-bottom: 0;
    opacity: 0.85;
    filter: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-tab-item.active .mobile-tab-icon {
    opacity: 1;
    filter: none;
    transform: scale(1.05);
  }

  .mobile-tab-item span:last-child {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  /* 主内容区域顶部留出空间给标签导航 */
  .main-content {
    padding-top: 40px !important;
  }

  /* 隐藏桌面端查询项目选择，因为底部已经有移动端选择器 */
  #queryTypeGroup,
  .query-form > #queryBtn {
    display: none !important;
  }

  /* 移动端服务信息显示区域 - 浅灰色背景，扩大区域 */
  .mobile-service-info {
    display: block !important;
    background: #f5f5f5;
    border-radius: 0;
    padding: 14px 16px;
    margin: 16px -16px;
    width: calc(100% + 32px);
    box-sizing: border-box;
  }

  .service-info-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 14px;
    line-height: 1.6;
  }

  .service-info-label {
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
  }

  .service-info-name {
    color: #1f2937;
    font-weight: 600;
    flex-shrink: 0;
  }

  .service-info-divider {
    color: #d1d5db;
    margin: 0 4px;
    flex-shrink: 0;
  }

  .service-info-price-label {
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
  }

  .service-info-price {
    color: #ef4444;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
  }

  .service-info-unit {
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
  }
}

/* 移动端输入框样式优化 - 极简设计，放大字体 */
.mobile-input-group {
  margin-bottom: 20px;
}

.mobile-input-group label {
  display: block !important;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  padding-right: 40px;
}

.input-tip {
  font-size: 12px;
  color: #999;
  font-weight: 400;
  margin-left: 8px;
}

/* 移动端帮助按钮样式 */
@media (max-width: 768px) {
  .form-group > div > label:first-child {
    display: none !important;
  }

  .form-group label {
    display: none !important;
  }

  .input-help-btn {
    width: 20px;
    height: 20px;
    margin-left: 6px;
  }

  .input-help-btn svg {
    width: 16px;
    height: 16px;
  }

  /* 移动端提示文字样式 */
  .form-group > div > span {
    color: #9ca3af !important;
    font-size: 11px !important;
  }
}

/* PC端提示文字样式 */
@media (min-width: 769px) {
  .form-group > div > span {
    color: #9ca3af !important;
    font-size: 12px !important;
  }
}

/* ===== 序列号查找帮助弹窗（重写版） ===== */

/* PC端样式 */
@media (min-width: 769px) {
  #snGuideOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10002 !important;
    backdrop-filter: blur(8px) !important;
  }

  #snGuideOverlay:not([style*="display: none"]) {
    display: flex !important;
  }

  #snGuideOverlay.sn-guide-fade-in {
    animation: snGuideFadeIn 0.3s ease-out;
  }

  @keyframes snGuideFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .sn-guide-dialog {
    background: #ffffff !important;
    border-radius: 0 !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  }

  .sn-guide-dialog.sn-guide-slide-up {
    animation: snGuideSlideUp 0.3s ease-out;
  }

  @keyframes snGuideSlideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .sn-guide-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 28px !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  .sn-guide-title {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
  }

  .sn-guide-close {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: none !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border-radius: 8px !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    margin: 0 !important;
    user-select: none !important;
  }

  .sn-guide-close:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
  }

  .sn-guide-content {
    padding: 28px !important;
  }

  .sn-guide-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  .sn-guide-item:last-child {
    border-bottom: none !important;
  }

  .sn-guide-icon {
    font-size: 24px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
  }

  .sn-guide-desc {
    flex: 1 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
  }
}

/* 移动端样式 */
@media (max-width: 768px) {
  #snGuideOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 10002 !important;
    backdrop-filter: blur(8px) !important;
    padding: 16px !important;
  }

  #snGuideOverlay:not([style*="display: none"]) {
    display: flex !important;
  }

  .sn-guide-dialog {
    background: #ffffff !important;
    border-radius: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  }

  .sn-guide-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  .sn-guide-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
  }

  .sn-guide-close {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: none !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border-radius: 8px !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    margin: 0 !important;
    user-select: none !important;
    z-index: 10003 !important;
    position: relative !important;
    pointer-events: auto !important;
  }

  .sn-guide-close:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
  }

  .sn-guide-content {
    padding: 20px !important;
  }

  .sn-guide-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    text-align: left !important;
  }

  .sn-guide-item:last-child {
    border-bottom: none !important;
  }

  .sn-guide-icon {
    font-size: 20px !important;
    line-height: 1 !important;
    text-align: left !important;
  }

  .sn-guide-desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    text-align: left !important;
    padding-left: 4px !important;
  }

  /* 移动端底部浮动栏显示 - 极简设计，放大字体和触摸区域 */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    padding: 16px 20px 32px !important;
    z-index: 999 !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08) !important;
    border-top: 1px solid #f3f4f6 !important;
  }

  /* iOS安全区域适配 */
  @supports (-webkit-touch-callout: none) {
    .mobile-bottom-bar {
      padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important;
    }
  }

  /* 隐藏桌面端元素 */
  .desktop-only {
    display: none !important;
  }

  /* 确保移动端隐藏PC端复用按钮 */
  #reuseLastBtn {
    display: none !important;
  }

  /* 显示移动端元素 */
  .mobile-only {
    display: block !important;
  }
}


.mobile-input-group input {
  font-size: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  transition: all 0.2s ease;
    min-height: 56px;
  }

  .mobile-input-group input:focus {
    outline: none;
    border-color: #d1d5db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
  }

  .mobile-input-group textarea {
    font-size: 15px;
    padding: 16px;
    min-height: 180px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    transition: all 0.2s ease;
    line-height: 1.6;
  }

  .mobile-input-group textarea:focus {
    outline: none;
    border-color: #d1d5db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
  }

  .mobile-query-type-wrapper {
    flex: 1;
  }

  .mobile-query-type-select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    color: #374151;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.2s ease;
    min-height: 52px;
  }

  .mobile-query-type-select:focus {
    outline: none;
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
  }

  .mobile-query-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 52px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
  }

  .mobile-query-btn:active {
    transform: scale(0.98);
  }

  .mobile-query-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }

  .mobile-import-btn {
    flex-shrink: 0;
    padding: 14px 20px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 52px;
  }

  .mobile-import-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
  }

  .mobile-import-btn:active {
    transform: scale(0.98);
  }

  .mobile-import-btn-inline {
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 12px;
  }

  .mobile-import-btn-inline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
  }

  .mobile-import-btn-inline:active {
    transform: scale(0.98);
  }

  /* 为页面内容底部留出空间给底部浮动栏 */
  .main-area {
    padding-bottom: 100px;
  }

  /* Hero 标题优化 */
  .hero-section {
    display: none;
  }

  /* 特性区域优化，放大字体 */
  .features-section {
    margin-top: 20px;
    padding: 20px;
  }

  .features-section h2 {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feature-item {
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
  }

  .feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .feature-text h4 {
    font-size: 16px;  /* 放大标题字体，符合移动端阅读规范 */
    margin-bottom: 6px;
    color: #374151;
    font-weight: 600; /* 增加字体权重，提升可读性 */
  }

  .feature-text p {
    font-size: 14px;  /* 放大描述字体，提升阅读友好性 */
    color: #6b7280;
    line-height: 1.6; /* 增加行高，提升阅读舒适度 */
  }

  /* 批量查询页面移动端优化，放大字体 */
  .batch-bottom-bar,
  .query-bottom-bar {
    gap: 12px;
    padding: 16px 20px 32px;
  }

  .mobile-batch-info {
    flex-shrink: 0;
    padding: 10px 14px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    min-width: 60px;
    text-align: center;
  }

  .usage-tips {
    margin-top: 24px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tip-item {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: none;
  }

  .tip-item strong {
    display: none;
  }

  .tip-item p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
  }

  .tip-item p a {
    color: #4a90d9;
    text-decoration: none;
  }

  .tip-item p a:hover {
    text-decoration: underline;
  }
}

/* 动态查询显示区域 - 极简现代设计 */
.dynamic-query-section {
  margin-bottom: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.dynamic-query-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.title-icon {
  font-size: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.dynamic-query-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dynamic-query-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  transition: all 0.2s ease;
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dynamic-query-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.dynamic-user-code {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
}

.dynamic-query-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.dynamic-query-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  flex-shrink: 0;
}

.dynamic-query-time {
  font-size: 11px;
  color: #d1d5db;
  white-space: nowrap;
  font-weight: 400;
}

.dynamic-query-sn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  color: #9ca3af;
  background: #f9fafb;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  font-weight: 500;
  border: 1px solid #f3f4f6;
}

.dynamic-query-comment {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  padding-left: 0;
  border-left: none;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

/* 移动端动态查询区域优化，极简扁平化设计 */
@media (max-width: 768px) {
  .dynamic-query-section {
    margin-bottom: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .dynamic-query-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 0;
    color: #9ca3af;
    font-weight: 600;
  }

  .title-icon {
    font-size: 18px;
  }

  .dynamic-query-list {
    gap: 6px;
  }

  .dynamic-query-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    min-height: auto;
    background: #f9fafb;
    border: none;
  }

  .dynamic-query-item:hover {
    background: #f3f4f6;
    box-shadow: none;
    transform: none;
  }

  .dynamic-user-code {
    font-size: 11px;
    padding: 3px 6px;
    font-weight: 500;
    background: #f3f4f6;
    border: none;
    color: #9ca3af;
  }

  .dynamic-query-info {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .dynamic-query-text {
    font-size: 13px;
    flex-shrink: 0;
    color: #6b7280;
  }

  .dynamic-query-time {
    font-size: 11px;
    color: #d1d5db;
  }

  .dynamic-query-sn {
    font-size: 12px;
    padding: 3px 8px;
    word-break: break-all;
    font-weight: 500;
    background: #f3f4f6;
    border: none;
    color: #9ca3af;
  }

  .dynamic-query-comment {
    font-size: 12px;
    padding-left: 0;
    color: #9ca3af;
  }
}

/* ===== 超量序列号警告 ===== */
.excess-warning {
  margin-top: 12px;
  background: #fff1f2;
  border: 1px solid #fda4af;
  border-radius: 8px;
  overflow: hidden;
  animation: errorFadeIn 0.3s ease-out;
}

.excess-warning.hidden {
  display: none;
}

.excess-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff1f2;
  border-bottom: 1px solid #fda4af;
}

.excess-title {
  font-size: 14px;
  font-weight: 600;
  color: #e11d48;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.excess-count {
  font-size: 13px;
  color: #e11d48;
  font-weight: 500;
}

.excess-close {
  width: 24px;
  height: 24px;
  border: none;
  background: #ffe4e6;
  color: #e11d48;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.excess-close:hover {
  background: #fda4af;
}

.excess-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.excess-item {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-bottom: 1px solid #fda4af;
}

.excess-item:last-child {
  border-bottom: none;
}

.excess-serial {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
  word-break: break-all;
  margin-bottom: 4px;
}

.excess-info {
  font-size: 12px;
  color: #be123c;
}

.excess-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff1f2;
  border-top: 1px solid #fda4af;
}

.btn-excess-action {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #f43f5e;
  color: white;
}

.btn-excess-action:hover {
  background: #e11d48;
  transform: translateY(-1px);
}

.btn-excess-action:active {
  transform: translateY(0);
}

.btn-excess-cancel {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-excess-cancel:hover {
  background: #e5e7eb;
}

/* ===== 重复序列号警告 ===== */
.duplicate-warning {
  margin-top: 12px;
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  overflow: hidden;
  animation: errorFadeIn 0.3s ease-out;
}

.duplicate-warning.hidden {
  display: none;
}

.duplicate-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fefce8;
  border-bottom: 1px solid #fde047;
}

.duplicate-title {
  font-size: 14px;
  font-weight: 600;
  color: #ca8a04;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.duplicate-count {
  font-size: 13px;
  color: #ca8a04;
  font-weight: 500;
}

.duplicate-close {
  width: 24px;
  height: 24px;
  border: none;
  background: #fef9c3;
  color: #ca8a04;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.duplicate-close:hover {
  background: #fde047;
}

.duplicate-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.duplicate-item {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-bottom: 1px solid #fde047;
}

.duplicate-item:last-child {
  border-bottom: none;
}

.duplicate-serial {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #854d0e;
  word-break: break-all;
  margin-bottom: 4px;
}

.duplicate-info {
  font-size: 12px;
  color: #a16207;
}

.duplicate-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fefce8;
  border-top: 1px solid #fde047;
}

.btn-duplicate-action {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #eab308;
  color: white;
}

.btn-duplicate-action:hover {
  background: #ca8a04;
  transform: translateY(-1px);
}

.btn-duplicate-action:active {
  transform: translateY(0);
}

.btn-duplicate-cancel {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-duplicate-cancel:hover {
  background: #e5e7eb;
}

/* ===== 序列号错误提示 ===== */
.serial-errors {
  margin-top: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  overflow: hidden;
  animation: errorFadeIn 0.3s ease-out;
}

.serial-errors.hidden {
  display: none;
}

.errors-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
}

.errors-title {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 6px;
}

.errors-close {
  width: 24px;
  height: 24px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.errors-close:hover {
  background: #fecaca;
}

.errors-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.error-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #fecaca;
  transition: background 0.2s;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-wrap: wrap;
}

.error-item:active {
  background: #fee2e2;
}

.error-item:last-child {
  border-bottom: none;
}

.error-item:hover {
  background: #fef2f2;
}

.error-line {
  font-size: 12px;
  color: #991b1b;
  font-weight: 600;
  min-width: 40px;
  flex-shrink: 0;
}

.error-serial {
  flex: 1;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  color: #7f1d1d;
  word-break: break-all;
}

.error-reason {
  font-size: 12px;
  color: #991b1b;
  padding: 2px 8px;
  background: #fee2e2;
  border-radius: 4px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
}

.error-reason-duplicate {
  color: #ca8a04;
  background: #fef9c3;
}

.error-duplicate {
  background: #fefce8;
  border-left: 3px solid #eab308;
}

.errors-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fef2f2;
  border-top: 1px solid #fecaca;
}

.btn-error-action {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: #3b82f6;
  color: white;
}

.btn-error-action:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-error-action:active {
  transform: translateY(0);
}

.btn-error-delete {
  background: #ef4444;
}

.btn-error-delete:hover {
  background: #dc2626;
}

/* ===== 序列号编辑模态框 ===== */
.serial-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.serial-edit-modal.active {
  display: flex !important;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.modal-body textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.modal-body textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-footer .btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.modal-footer .btn-secondary:hover {
  background: #e5e7eb;
}

.modal-footer .btn-primary {
  background: #3b82f6;
  color: white;
}

.modal-footer .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.modal-footer .btn-primary:active {
  transform: translateY(0);
}

/* ===== 批量查询提交状态 ===== */
.submit-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  margin-top: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  animation: fadeIn 0.3s ease-out;
}

.submit-status.hidden {
  display: none;
}

.status-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== 查询失败提示 ===== */
.failure-alert-box {
  background: #fff1f2;
  border-left: 4px solid #dc2626;
  animation: fadeIn 0.3s ease-out;
}

.failure-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #fecaca;
}

.failure-alert-icon {
  font-size: 18px;
}

.failure-alert-title {
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
  letter-spacing: 0.5px;
}

.failure-alert-content {
  padding: 16px;
}

.failure-alert-line {
  font-size: 14px;
  color: #7f1d1d;
  line-height: 1.8;
  padding: 6px 0;
}

.failure-alert-line:first-child {
  padding-top: 0;
}

.failure-alert-line:last-child {
  padding-bottom: 0;
}

.failure-alert-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #fecaca;
  font-size: 13px;
}

.failure-alert-footer .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}

.failure-alert-footer .meta-item strong {
  font-weight: 500;
  color: #374151;
  letter-spacing: 0.3px;
}

.failure-alert-footer .meta-item span {
  color: #1f2937;
  font-weight: 400;
}

/* 移动端查询失败样式 */
@media (max-width: 768px) {
  .failure-alert-header {
    padding: 12px 14px;
  }

  .failure-alert-icon {
    font-size: 16px;
  }

  .failure-alert-title {
    font-size: 13px;
  }

  .failure-alert-content {
    padding: 14px;
  }

  .failure-alert-line {
    font-size: 13px;
    line-height: 1.7;
  }

  .failure-alert-footer {
    flex-direction: column;
    gap: 14px;
    padding: 12px 14px;
  }

  .failure-alert-footer .meta-item {
    width: 100%;
    justify-content: space-between;
  }
}

.status-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.status-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 批量查询历史复用功能 ===== */
.btn-reuse {
  background: #8b5cf6 !important;
  color: white !important;
}

.btn-reuse:hover {
  background: #7c3aed !important;
}

.mobile-last-serials-btn {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #8b5cf6;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 999;
  animation: floatUp 0.3s ease-out;
  text-align: center;
  line-height: 1.2;
  padding: 0 8px;
}

.mobile-last-serials-btn:hover {
  background: #7c3aed;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.mobile-last-serials-btn:active {
  transform: scale(0.95);
}

.mobile-last-serials-btn.hidden {
  display: none;
}

@keyframes floatUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  /* 移动端提交状态 */
  .submit-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.98);
    z-index: 99999;
    border-radius: 0;
    margin: 0;
    flex-direction: column;
  }

  .status-spinner {
    width: 60px;
    height: 60px;
    border-width: 5px;
  }

  .status-text {
    align-items: center;
    text-align: center;
  }

  .status-title {
    font-size: 20px;
  }

  .status-desc {
    font-size: 16px;
  }

  /* 移动端超量警告改为浮层显示 */
  /* 移动端超量警告改为浮层显示 */
  .excess-warning {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid #fda4af !important;
    width: 100% !important;
    max-height: 70vh;
    z-index: 10000 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .excess-header {
    padding: 16px 20px;
    background: #fff1f2;
    border-bottom: 1px solid #fda4af;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .excess-title {
    font-size: 16px;
  }

  .excess-count {
    font-size: 14px;
  }

  .excess-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    background: #ffe4e6;
  }

  .excess-list {
    max-height: calc(70vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .excess-item {
    padding: 14px 20px;
  }

  .excess-serial {
    font-size: 15px;
  }

  .excess-info {
    font-size: 13px;
  }

  .excess-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: #fff1f2;
    border-top: 1px solid #fda4af;
    position: sticky;
    bottom: 0;
    gap: 10px;
  }

  .btn-excess-action {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
  }

  .btn-excess-cancel {
    background: #f3f4f6 !important;
    color: #6b7280;
  }

  .btn-excess-cancel:hover {
    background: #e5e7eb !important;
  }

  /* 移动端重复序列号警告改为浮层显示 */
  .duplicate-warning {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid #fde047 !important;
    width: 100% !important;
    max-height: 70vh;
    z-index: 10000 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .duplicate-header {
    padding: 16px 20px;
    background: #fefce8;
    border-bottom: 1px solid #fde047;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .duplicate-title {
    font-size: 16px;
  }

  .duplicate-count {
    font-size: 14px;
  }

  .duplicate-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    background: #fef9c3;
  }

  .duplicate-list {
    max-height: calc(70vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .duplicate-item {
    padding: 14px 20px;
  }

  .duplicate-serial {
    font-size: 15px;
  }

  .duplicate-info {
    font-size: 13px;
  }

  .duplicate-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: #fefce8;
    border-top: 1px solid #fde047;
    position: sticky;
    bottom: 0;
    gap: 10px;
  }

  .btn-duplicate-action {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
  }

  .btn-duplicate-cancel {
    background: #f3f4f6 !important;
    color: #6b7280;
  }

  .btn-duplicate-cancel:hover {
    background: #e5e7eb !important;
  }

  /* 移动端错误提示改为浮层显示 */
  .serial-errors {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid #fecaca !important;
    width: 100% !important;
    max-height: 70vh;
    z-index: 10000 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .errors-header {
    padding: 16px 20px;
    background: #fff5f5;
    border-bottom: 1px solid #fecaca;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .errors-title {
    font-size: 16px;
  }

  .errors-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    background: #fee2e2;
  }

  .errors-list {
    max-height: calc(70vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .error-item {
    padding: 14px 20px;
    border-bottom: 1px solid #fecaca;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .error-item::after {
    content: '✎';
    position: absolute;
    right: 20px;
    font-size: 16px;
    color: #dc2626;
    opacity: 0.5;
  }

  .error-item:active {
    background: #fef2f2;
  }

  .error-line {
    font-size: 13px;
    min-width: 50px;
    padding: 4px 8px;
    background: #fef2f2;
    border-radius: 4px;
    text-align: center;
  }

  .error-serial {
    font-size: 14px;
    word-break: break-all;
    font-weight: 500;
  }

  .error-item > span:first-child + span {
    display: inline-block;
  }

  .error-reason {
    font-size: 12px;
    padding: 6px 10px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
  }

  .errors-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: #fff5f5;
    border-top: 1px solid #fecaca;
    position: sticky;
    bottom: 0;
    gap: 10px;
  }

  .btn-error-action {
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
  }

  .btn-error-delete {
    background: #ef4444 !important;
  }

  .btn-error-delete:hover {
    background: #dc2626 !important;
  }

  /* 移动端模态框样式优化 */
  .serial-edit-modal {
    position: fixed !important;
    z-index: 99999 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 0 !important;
  }

  .modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .modal-content {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .modal-header {
    padding: 16px 20px;
    flex-shrink: 0;
  }

  .modal-header h3 {
    font-size: 18px;
    margin: 0;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
  }

  .modal-body textarea {
    min-height: 200px;
    font-size: 15px;
    padding: 12px;
    line-height: 1.6;
  }

  .modal-footer {
    padding: 16px 20px;
    gap: 12px;
    flex-shrink: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }

  .modal-footer .btn-secondary,
  .modal-footer .btn-primary {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
  }
}


