﻿/* ========================================
   株洲集成维修工具 - 公共样式
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.tool-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.tool-header .tool-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.tool-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
  flex-shrink: 0;
}
.tool-logo i { font-size: 24px; }
.tool-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tool-nav a {
  font-size: 14px;
  color: #555;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tool-nav a i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}
.tool-nav a:hover { color: #2563eb; }
.tool-nav .tool-phone {
  background: #2563eb;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.tool-nav .tool-phone:hover { background: #1d4ed8; }

/* 中屏紧凑适配，避免 logo+导航 溢出 */
@media (min-width: 769px) and (max-width: 1200px) {
  .tool-nav { gap: 12px; }
  .tool-nav a { font-size: 13px; gap: 4px; }
  .tool-nav a i { font-size: 13px; width: 14px; }
  .tool-logo { font-size: 17px; gap: 6px; }
  .tool-logo i { font-size: 20px; }
  .tool-nav .tool-phone { padding: 7px 12px; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .tool-nav { gap: 8px; }
  .tool-nav a { font-size: 12.5px; }
}

/* 汉堡菜单按钮 */
.tool-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.tool-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.tool-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tool-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.tool-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 面包屑 ===== */
.tool-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
  font-size: 13px;
  color: #888;
}
.tool-breadcrumb a { color: #2563eb; }
.tool-breadcrumb span { color: #333; }

/* ===== 主内容区 ===== */
.tool-main {
  padding: 30px 0;
  min-height: calc(100vh - 300px);
}

/* ===== 工具卡片通用 ===== */
.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.tool-card h2 {
  font-size: 22px;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2563eb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-card h2 i { color: #2563eb; }

/* ===== 免责声明 ===== */
.tool-disclaimer {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tool-disclaimer-icon {
  color: #f59e0b;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.tool-disclaimer-text {
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
}
.tool-disclaimer-text strong { color: #78350f; }

/* ===== 转化引导CTA ===== */
.tool-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
  color: #fff;
}
.tool-cta-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tool-cta-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.tool-cta-text {
  flex: 1;
  min-width: 200px;
}
.tool-cta-text h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.tool-cta-text p {
  font-size: 14px;
  opacity: 0.9;
}
.tool-cta-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.tool-btn-primary {
  background: #fff;
  color: #2563eb;
}
.tool-btn-primary:hover { background: #f0f9ff; transform: translateY(-1px); }
.tool-btn-phone {
  background: #10b981;
  color: #fff;
}
.tool-btn-phone:hover { background: #059669; transform: translateY(-1px); }
.tool-cta-note {
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 16px;
}

/* ===== 底部 ===== */
.tool-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.tool-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.tool-footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.tool-footer-col p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 6px;
}
.tool-footer-col a {
  color: #9ca3af;
  font-size: 13px;
  line-height: 2;
  transition: color 0.2s;
}
.tool-footer-col a:hover { color: #60a5fa; }
.tool-footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.tool-footer-bottom a { color: #6b7280; }

/* ===== 返回顶部 ===== */
.tool-back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}
.tool-back-top.show {
  opacity: 1;
  visibility: visible;
}
.tool-back-top:hover { background: #1d4ed8; transform: translateY(-2px); }

/* ===== 工具导航首页 ===== */
.tool-hero {
  text-align: center;
  padding: 40px 0 30px;
}
.tool-hero h1 {
  font-size: 32px;
  color: #1f2937;
  margin-bottom: 12px;
}
.tool-hero p {
  font-size: 16px;
  color: #6b7280;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.tool-grid-item {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}
.tool-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #2563eb;
}
.tool-grid-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.tool-grid-item h3 {
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 8px;
}
.tool-grid-item p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.tool-category-title {
  font-size: 18px;
  color: #1f2937;
  margin: 30px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #2563eb;
}

/* ===== 故障自查向导 ===== */
.check-step {
  display: none;
}
.check-step.active { display: block; }
.check-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.check-progress::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.check-step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.check-step-num {
  width: 42px;
  height: 42px;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 8px;
  transition: all 0.3s;
}
.check-step-item.active .check-step-num {
  background: #2563eb;
  color: #fff;
}
.check-step-item.done .check-step-num {
  background: #10b981;
  color: #fff;
}
.check-step-label {
  font-size: 12px;
  color: #6b7280;
}
.check-question {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 20px;
  font-weight: 600;
}
.check-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.check-option {
  padding: 18px 22px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.check-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}
.check-option:hover {
  border-color: #2563eb;
  background: #f8faff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}
.check-option:hover::before {
  transform: scaleY(1);
}
.check-option i {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
.check-option:hover i {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}
.check-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}
.check-option.selected::before {
  transform: scaleY(1);
}

/* ========== 卡片式故障选项（第一步） ========== */
.check-options-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.check-option-card {
  flex-direction: column;
  text-align: center;
  padding: 24px 18px;
  gap: 12px;
  min-height: 140px;
  justify-content: center;
}
.check-option-card::before {
  width: 100%;
  height: 4px;
  top: 0;
  bottom: auto;
  background: linear-gradient(90deg, var(--card-color, #3b82f6), var(--card-color-light, #60a5fa));
}
.check-option-card i {
  width: 52px;
  height: 52px;
  font-size: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--card-color, #3b82f6), var(--card-color-dark, #1d4ed8));
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.check-option-card:hover i {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}
.check-option-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.check-option-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}
.check-option-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}
.check-option-rate {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  margin-top: 4px;
}
.check-option-rate-red { background: #fef2f2; color: #dc2626; }
.check-option-rate-orange { background: #fffbeb; color: #d97706; }
.check-option-rate-purple { background: #f5f3ff; color: #7c3aed; }
.check-option-rate-blue { background: #eff6ff; color: #2563eb; }
.check-option-rate-yellow { background: #fefce8; color: #ca8a04; }
.check-option-rate-green { background: #ecfdf5; color: #059669; }

.check-option-card:hover {
  border-color: var(--card-color, #3b82f6);
  background: var(--card-bg-hover, #f0f7ff);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
}
.check-option-card:hover .check-option-title {
  color: var(--card-color, #3b82f6);
}

/* 6种主题色 */
.check-option-card[data-color="red"] {
  --card-color: #ef4444;
  --card-color-light: #f87171;
  --card-color-dark: #b91c1c;
  --card-bg-hover: #fef2f2;
}
.check-option-card[data-color="red"] i {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.check-option-card[data-color="red"]:hover i {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}
.check-option-card[data-color="red"]:hover {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}
.check-option-card[data-color="red"]:hover .check-option-title { color: #dc2626; }

.check-option-card[data-color="orange"] {
  --card-color: #f59e0b;
  --card-color-light: #fbbf24;
  --card-color-dark: #b45309;
  --card-bg-hover: #fffbeb;
}
.check-option-card[data-color="orange"] i {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.check-option-card[data-color="orange"]:hover i {
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}
.check-option-card[data-color="orange"]:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}
.check-option-card[data-color="orange"]:hover .check-option-title { color: #d97706; }

.check-option-card[data-color="purple"] {
  --card-color: #8b5cf6;
  --card-color-light: #a78bfa;
  --card-color-dark: #6d28d9;
  --card-bg-hover: #f5f3ff;
}
.check-option-card[data-color="purple"] i {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.check-option-card[data-color="purple"]:hover i {
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}
.check-option-card[data-color="purple"]:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}
.check-option-card[data-color="purple"]:hover .check-option-title { color: #7c3aed; }

.check-option-card[data-color="blue"] {
  --card-color: #3b82f6;
  --card-color-light: #60a5fa;
  --card-color-dark: #1d4ed8;
  --card-bg-hover: #eff6ff;
}
.check-option-card[data-color="blue"] i {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.check-option-card[data-color="blue"]:hover i {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}
.check-option-card[data-color="blue"]:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}
.check-option-card[data-color="blue"]:hover .check-option-title { color: #2563eb; }

.check-option-card[data-color="yellow"] {
  --card-color: #eab308;
  --card-color-light: #facc15;
  --card-color-dark: #a16207;
  --card-bg-hover: #fefce8;
}
.check-option-card[data-color="yellow"] i {
  background: linear-gradient(135deg, #eab308, #a16207);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}
.check-option-card[data-color="yellow"]:hover i {
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.35);
}
.check-option-card[data-color="yellow"]:hover {
  border-color: #eab308;
  background: #fefce8;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}
.check-option-card[data-color="yellow"]:hover .check-option-title { color: #ca8a04; }

.check-option-card[data-color="green"] {
  --card-color: #10b981;
  --card-color-light: #34d399;
  --card-color-dark: #047857;
  --card-bg-hover: #ecfdf5;
}
.check-option-card[data-color="green"] i {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.check-option-card[data-color="green"]:hover i {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.check-option-card[data-color="green"]:hover {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}
.check-option-card[data-color="green"]:hover .check-option-title { color: #059669; }

/* 移动端：卡片式选项一行2个 */
@media (max-width: 768px) {
  .check-options-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .check-option-card {
    padding: 18px 12px;
    min-height: 120px;
  }
  .check-option-card i {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .check-option-title {
    font-size: 14px;
  }
  .check-option-desc {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .check-options-cards {
    grid-template-columns: 1fr;
  }
}

.check-result {
  text-align: center;
  padding: 20px 0;
}
.check-result-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.check-result-icon.success { color: #10b981; }
.check-result-icon.warning { color: #f59e0b; }
.check-result-icon.danger { color: #ef4444; }
.check-result h3 {
  font-size: 22px;
  color: #1f2937;
  margin-bottom: 12px;
}
.check-result p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 8px;
}
.check-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.check-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.check-btn-prev {
  background: #e5e7eb;
  color: #4b5563;
}
.check-btn-prev:hover { background: #d1d5db; }
.check-btn-next {
  background: #2563eb;
  color: #fff;
}
.check-btn-next:hover { background: #1d4ed8; }
.check-btn-restart {
  background: #6b7280;
  color: #fff;
}
.check-btn-restart:hover { background: #4b5563; }

/* ===== 报错代码速查 ===== */
.error-search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.error-search input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.error-search input:focus { border-color: #2563eb; }
.error-search button {
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.error-brand-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.error-brand-tab {
  padding: 8px 18px;
  background: #f3f4f6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
  transition: all 0.2s;
}
.error-brand-tab.active {
  background: #2563eb;
  color: #fff;
}
.error-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .error-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .error-list { grid-template-columns: 1fr; gap: 12px; }
}
/* printer_error 专属：移动端一行二个（紧凑排版，不影响beep/bsod页面） */
@media (max-width: 640px) {
  .printer-error-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .printer-error-grid .error-item { padding: 10px 12px; }
  .printer-error-grid .error-code { font-size: 14px; margin-bottom: 4px; }
  .printer-error-grid .error-name { font-size: 13px; margin-bottom: 4px; }
  .printer-error-grid .error-solution { font-size: 12px; line-height: 1.6; }
}
.error-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 4px solid #2563eb;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.error-code {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
}
.error-name {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 6px;
  font-weight: 600;
}
.error-solution {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
}
.error-empty {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

/* ===== BIOS快捷键 ===== */
.bios-search {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.bios-search input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}
.bios-search input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); outline: none; }
/* 搜索框包装容器（含X清空按钮） */
.bios-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.bios-search-wrap input {
  width: 100%;
  flex: 1;
  padding-right: 36px;
}
/* X清空按钮 */
.bios-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
  padding: 0;
  box-shadow: none;
}
.bios-clear-btn:hover {
  background: #d1d5db;
  color: #374151;
  transform: translateY(-50%);
}
.bios-table {
  width: 100%;
  border-collapse: collapse;
}
.bios-table th {
  background: #2563eb;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}
.bios-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
.bios-table tr:hover { background: #f9fafb; }
.bios-key {
  display: inline-block;
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  margin: 2px 4px 2px 0;
  transition: all 0.2s ease;
}
.bios-key:hover {
  background: linear-gradient(135deg, #4b5563, #374151);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===== 估价表单 ===== */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.form-group label .required { color: #ef4444; }
.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.form-tips {
  background: #eff6ff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.8;
}
.form-tips strong { color: #1e3a8a; }
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon {
  font-size: 56px;
  color: #10b981;
  margin-bottom: 16px;
}
.form-success h3 {
  font-size: 22px;
  color: #1f2937;
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ===== 费用参考 ===== */
.price-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.price-tab {
  padding: 10px 22px;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
  font-weight: 600;
  transition: all 0.2s;
}
.price-tab.active {
  background: #2563eb;
  color: #fff;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th {
  background: #2563eb;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}
.price-table tr:hover { background: #f9fafb; }
.price-value {
  color: #2563eb;
  font-weight: 700;
}
.price-note {
  background: #fffbeb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.8;
}

/* ===== FAQ ===== */
.faq-item {
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.faq-q-text {
  flex: 1;
  margin-left: 10px;
}
.faq-question i {
  color: #2563eb;
  transition: transform 0.3s;
  margin-left: auto;
  flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  padding: 0 20px 16px;
  max-height: 500px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .tool-hamburger { display: flex; }
  .tool-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    width: auto;
    min-width: 220px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 0 12px;
    z-index: 99;
  }
  .tool-nav.active {
    display: flex;
  }
  .tool-nav a {
    padding: 12px 20px;
    font-size: 15px;
    border-bottom: 1px solid #f3f4f6;
  }
  .tool-nav a:last-child {
    border-bottom: none;
  }
  .tool-nav a i {
    font-size: 16px;
    width: 20px;
  }
  .tool-nav .tool-phone {
    margin: 8px 20px;
    justify-content: center;
    border-radius: 8px;
  }
  .tool-header { position: relative; }
  .tool-header .tool-container { height: 54px; position: relative; }
  .tool-logo { font-size: 18px; }
  .tool-main { padding: 16px 0; }
  .tool-card { padding: 20px 16px; }
  .tool-card h2 { font-size: 18px; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tool-grid-item { padding: 16px 12px; }
  .tool-grid-icon { width: 44px; height: 44px; font-size: 20px; }
  .tool-grid-item h3 { font-size: 14px; }
  .tool-grid-item p { font-size: 12px; }
  .tool-footer-grid { display: none; }
  .tool-cta { padding: 20px 16px; }
  .tool-cta-content { flex-direction: column; text-align: center; }
  .tool-cta-buttons { width: 100%; }
  .tool-cta-buttons .tool-btn { flex: 1; justify-content: center; }
  .check-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .error-search { flex-direction: column; }
  .bios-search { flex-direction: column; }
  .tool-hero h1 { font-size: 24px; }
  .tool-hero p { font-size: 14px; }
  .check-step-label { font-size: 11px; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-grid-item { padding: 14px 10px; }
  .tool-grid-icon { width: 40px; height: 40px; font-size: 18px; }
  .tool-grid-item h3 { font-size: 13px; }
  .tool-grid-item p { font-size: 11px; }
  .tool-footer-grid { display: none; }
}


/* ========== 页面标题行 + 分享功能 ========== */
.tool-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-page-title i {
  color: #2563eb;
}

/* 分享按钮 */
.nc-share-wrap { position: relative; display: inline-block; }
.nc-share-right { margin-left: auto; }
.nc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.nc-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.nc-share-btn i { color: #fff !important; margin-right: 0 !important; }

.nc-share-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 1000;
  overflow: hidden;
  animation: shareFadeIn 0.2s ease;
}
.nc-share-menu.show { display: block; }
@keyframes shareFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.nc-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #2d3748;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.nc-share-item:hover {
  background: #f7fafc;
  color: #1a365d;
}
.nc-share-item i { width: 18px; text-align: center; margin-right: 0 !important; }

.nc-wechat-qr {
  padding: 12px;
  border-top: 1px solid #edf2f7;
  text-align: center;
}
.nc-qr-title {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
}
.nc-qr-tip {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 6px;
}
#qrCode {
  width: 160px;
  height: 160px;
  margin: 10px auto;
}

/* 复制成功提示 */
.nc-copy-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99999;
  opacity: 1;
}

/* 移动端分享按钮 */
@media (max-width: 768px) {
  .tool-page-title { font-size: 18px; }
  .nc-share-wrap { margin-left: 0 !important; width: 100%; margin-top: 10px; }
  .nc-share-btn { width: 100%; justify-content: center; }
  .nc-share-menu { right: auto; left: 0; width: 100%; }
}


/* ===== 来自 audio.asp ===== */
/* 状态栏 */
.audio-status-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 10px;
  padding: 16px;
}
.audio-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}
.audio-status-item i {
  color: #2563eb;
  font-size: 16px;
}
.audio-status-item strong {
  color: #1f2937;
}
#micIcon.active {
  color: #10b981;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 控制按钮 */
.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.audio-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.audio-btn.primary { background: #2563eb; color: #fff; }
.audio-btn.primary:hover { background: #1d4ed8; }
.audio-btn.primary:disabled { background: #93c5fd; cursor: not-allowed; }
.audio-btn.danger { background: #ef4444; color: #fff; }
.audio-btn.danger:hover { background: #dc2626; }
.audio-btn.danger:disabled { background: #fca5a5; cursor: not-allowed; }
.audio-device-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.audio-device-select label {
  font-size: 13px;
  color: #4b5563;
}
.audio-device-select select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  min-width: 200px;
}

/* 音量指示器 */
.audio-meter-section, .audio-spectrum-section, .audio-record-section, .audio-noise-section {
  margin-bottom: 28px;
}
.audio-meter-section h3, .audio-spectrum-section h3, .audio-record-section h3, .audio-noise-section h3 {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-meter-section h3 i, .audio-spectrum-section h3 i, .audio-record-section h3 i, .audio-noise-section h3 i {
  color: #2563eb;
}
.volume-meter-wrap {
  margin-bottom: 16px;
}
.volume-meter {
  height: 32px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.volume-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 80%, #dc2626 100%);
  transition: width 0.05s;
  border-radius: 6px;
}
.volume-marks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
  padding: 0 2px;
}
.volume-labels {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  margin-top: 6px;
}
.vol-low { color: #10b981; }
.vol-mid { color: #f59e0b; }
.vol-high { color: #ef4444; }
.vol-peak { color: #dc2626; font-weight: 600; }

/* 声道 */
.channel-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.channel-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.channel-label {
  font-size: 12px;
  color: #4b5563;
  min-width: 60px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-bar {
  flex: 1;
  height: 20px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.channel-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.05s;
}
.channel-value {
  font-size: 12px;
  color: #2563eb;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* 频谱 */
.spectrum-canvas {
  width: 100%;
  height: 150px;
  background: #0f172a;
  border-radius: 8px;
  margin-bottom: 10px;
}
.spectrum-info {
  display: flex;
  justify-content: space-around;
  font-size: 12px;
  color: #4b5563;
  background: #f9fafb;
  padding: 10px;
  border-radius: 6px;
}
.spectrum-info strong {
  color: #2563eb;
}

/* 录音 */
.record-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.record-btn, .play-btn, .download-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.record-btn { background: #ef4444; color: #fff; }
.record-btn:hover { background: #dc2626; }
.record-btn:disabled { background: #fca5a5; cursor: not-allowed; }
.record-btn.recording { background: #dc2626; animation: blink 1s infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.play-btn { background: #10b981; color: #fff; }
.play-btn:hover { background: #059669; }
.play-btn:disabled { background: #6ee7b7; cursor: not-allowed; }
.download-btn { background: #2563eb; color: #fff; }
.download-btn:hover { background: #1d4ed8; }
.download-btn:disabled { background: #93c5fd; cursor: not-allowed; }
.record-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
}
.record-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.record-vol {
  font-family: monospace;
  font-size: 12px;
  color: #991b1b;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
}
.record-time {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  font-family: monospace;
  margin-left: auto;
}
.record-privacy-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 12px;
  color: #166534;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.record-privacy-note i {
  color: #16a34a;
  margin-top: 2px;
  flex-shrink: 0;
}
.record-privacy-note strong {
  color: #15803d;
  font-weight: 600;
}

/* 扬声器测试 */
.speaker-test-section {
  margin-bottom: 28px;
  background: linear-gradient(135deg, #f0f9ff, #ecfeff);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #bae6fd;
}
.speaker-test-section h3 {
  font-size: 15px;
  color: #0c4a6e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.speaker-test-section h3 i {
  color: #0284c7;
}
.section-tip {
  font-size: 12px;
  font-weight: normal;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 10px;
  border-radius: 10px;
}
.speaker-desc {
  font-size: 13px;
  color: #075985;
  margin-bottom: 16px;
  line-height: 1.6;
}
.speaker-volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.speaker-volume-control label {
  font-size: 13px;
  color: #075985;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.speaker-volume-control input[type="range"] {
  flex: 1;
  max-width: 200px;
  accent-color: #0284c7;
}
#speakerVolumeValue {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  min-width: 40px;
}
.speaker-stop-btn {
  padding: 6px 14px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: auto;
}
.speaker-stop-btn:hover {
  background: #dc2626;
}
.speaker-test-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.speaker-test-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid #e0f2fe;
  transition: all 0.2s;
}
.speaker-test-item:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}
.speaker-test-icon {
  font-size: 22px;
  color: #0284c7;
  margin-bottom: 6px;
}
.speaker-test-name {
  font-size: 13px;
  font-weight: 600;
  color: #0c4a6e;
  margin-bottom: 2px;
}
.speaker-test-freq {
  font-size: 11px;
  color: #0369a1;
  margin-bottom: 8px;
  font-family: monospace;
}
.speaker-play-btn {
  width: 100%;
  padding: 6px;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.speaker-play-btn:hover {
  background: #0369a1;
}
.speaker-play-btn.playing {
  background: #f59e0b;
  animation: pulse 1s infinite;
}
.speaker-status {
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #075985;
  display: flex;
  align-items: center;
  gap: 8px;
}
.speaker-status i {
  color: #0284c7;
}

@media (max-width: 768px) {
  .speaker-test-grid { grid-template-columns: repeat(2, 1fr); }
  .speaker-volume-control { flex-wrap: wrap; }
  .speaker-stop-btn { margin-left: 0; }
}

/* 噪音检测 */
.noise-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}
.noise-btn {
  padding: 10px 20px;
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.noise-btn:hover { background: #7c3aed; }
.noise-btn:disabled { background: #c4b5fd; cursor: not-allowed; }
.noise-result {
  margin-top: 16px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}
.noise-level, .noise-db {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: #4b5563;
}
.noise-level strong, .noise-db strong {
  color: #2563eb;
  font-size: 16px;
}
.noise-advice {
  margin-top: 10px;
  padding: 10px;
  background: #eff6ff;
  border-radius: 6px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .audio-status-bar { grid-template-columns: 1fr 1fr; }
  .channel-meters { grid-template-columns: 1fr; }
  .spectrum-info { flex-wrap: wrap; gap: 8px; }
  .audio-device-select { margin-left: 0; width: 100%; }
  .audio-device-select select { flex: 1; }
}


/* ===== 来自 camera.asp ===== */
/* 状态栏 */
.camera-status-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 10px;
  padding: 16px;
}
.camera-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
}
.camera-status-item i {
  color: #2563eb;
  font-size: 16px;
}
.camera-status-item strong {
  color: #1f2937;
}
#cameraIcon.active {
  color: #10b981;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 控制按钮 */
.camera-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.camera-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.camera-btn.primary { background: #2563eb; color: #fff; }
.camera-btn.primary:hover { background: #1d4ed8; }
.camera-btn.primary:disabled { background: #93c5fd; cursor: not-allowed; }
.camera-btn.danger { background: #ef4444; color: #fff; }
.camera-btn.danger:hover { background: #dc2626; }
.camera-btn.danger:disabled { background: #fca5a5; cursor: not-allowed; }
.camera-btn.warning { background: #f59e0b; color: #fff; }
.camera-btn.warning:hover { background: #d97706; }
.camera-btn.warning:disabled { background: #fcd34d; cursor: not-allowed; }
.camera-btn.info { background: #06b6d4; color: #fff; }
.camera-btn.info:hover { background: #0891b2; }
.camera-btn.info:disabled { background: #67e8f9; cursor: not-allowed; }
.camera-btn.success { background: #10b981; color: #fff; }
.camera-btn.success:hover { background: #059669; }
.camera-btn.success:disabled { background: #6ee7b7; cursor: not-allowed; }
.camera-device-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.camera-device-select label {
  font-size: 13px;
  color: #4b5563;
}
.camera-device-select select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  min-width: 180px;
}

/* 视频预览 */
.camera-preview-wrap {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/9;
}
#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
#cameraVideo.mirror {
  transform: scaleX(-1);
}
.camera-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #94a3b8;
}
.camera-placeholder i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.camera-placeholder p {
  font-size: 16px;
  margin: 0 0 8px 0;
}
.placeholder-tip {
  font-size: 13px !important;
  opacity: 0.7;
}
.camera-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.overlay-info {
  display: flex;
  gap: 12px;
}
.overlay-info span {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
}

/* 画质检测 */
.camera-quality-section {
  margin-bottom: 24px;
}
.camera-quality-section h3 {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.camera-quality-section h3 i {
  color: #2563eb;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}
.quality-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
}
.quality-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
.quality-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.quality-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.5s;
  border-radius: 4px;
}
.quality-value {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-align: right;
}
.quality-advice {
  background: #eff6ff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.6;
}
.quality-advice i {
  margin-right: 6px;
}

/* 拍照历史 */
.camera-photo-section h3 {
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.camera-photo-section h3 i {
  color: #2563eb;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}
.photo-item img {
  width: 100%;
  display: block;
}
.photo-item .photo-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: space-around;
  padding: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-item:hover .photo-actions {
  opacity: 1;
}
.photo-actions button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.photo-actions button:hover {
  background: rgba(255,255,255,0.2);
}
.clear-photo-btn {
  display: block;
  margin: 0 auto;
  padding: 8px 20px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.clear-photo-btn:hover {
  background: #dc2626;
}
.privacy-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
  text-align: center;
}
.privacy-note i {
  color: #16a34a;
  margin-right: 6px;
}
.privacy-note strong {
  color: #15803d;
}

@media (max-width: 768px) {
  .camera-status-bar { grid-template-columns: 1fr 1fr; }
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .camera-device-select { margin-left: 0; width: 100%; }
  .camera-device-select select { flex: 1; }
}


/* ===== 来自 mouse.asp ===== */
/* 鼠标示意图区域 */
.mouse-visual-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  padding: 20px;
}
.mouse-diagram-wrap {
  text-align: center;
}
.mouse-diagram-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}
.mouse-diagram {
  width: 180px;
  height: auto;
}
.mouse-svg-btn {
  transition: all 0.1s;
  cursor: pointer;
}
.mouse-svg-btn.active {
  fill: #3b82f6 !important;
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.6));
}
.mouse-diagram-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 8px;
}

/* 实时数据 */
.mouse-realtime-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
}
.realtime-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}
.realtime-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}
.realtime-value {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  font-family: monospace;
}

/* 按键状态卡片 */
.mouse-status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mouse-status-item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  border: 2px solid #e5e7eb;
  transition: all 0.15s;
}
.mouse-status-item.active {
  background: #dbeafe;
  border-color: #2563eb;
  transform: scale(0.97);
}
.mouse-status-icon {
  font-size: 22px;
  color: #6b7280;
  margin-bottom: 6px;
}
.mouse-status-item.active .mouse-status-icon {
  color: #2563eb;
}
.mouse-status-label {
  font-size: 12px;
  color: #374151;
  font-weight: 600;
  margin-bottom: 3px;
}
.mouse-status-value {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}
.mouse-status-item.active .mouse-status-value {
  color: #1d4ed8;
  font-weight: 600;
}
.mouse-status-count {
  font-size: 10px;
  color: #9ca3af;
}

/* 全屏轨迹画布 */
#mouseCanvas { pointer-events: none; }

/* 高级测试 */
.mouse-advanced-section {
  margin-bottom: 20px;
}
.mouse-advanced-section h3 {
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mouse-advanced-section h3 i {
  color: #2563eb;
}
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.advanced-card {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}
.advanced-card h4 {
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.advanced-card h4 i {
  color: #2563eb;
  font-size: 13px;
}
.advanced-desc {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}
.advanced-btn {
  width: 100%;
  padding: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.advanced-btn:hover {
  background: #1d4ed8;
}
.advanced-btn.testing {
  background: #f59e0b;
}
.dpi-input-group {
  margin-bottom: 10px;
}
.dpi-input-group label {
  font-size: 11px;
  color: #6b7280;
  display: block;
  margin-bottom: 4px;
}
.dpi-input-group input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}
.dpi-result, .poll-result, .dc-result {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #e5e7eb;
}
.dpi-item, .poll-item, .dc-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
  color: #4b5563;
}
.dpi-item.highlight, .poll-item.highlight {
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  padding-top: 6px;
}
.dc-tip {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 8px;
  font-style: italic;
}
.wheel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wheel-item {
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  border: 1px solid #e5e7eb;
}
.wheel-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}
.wheel-value {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}

/* 轨迹分析 */
.mouse-trace-analysis {
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
}
.mouse-trace-analysis h3 {
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mouse-trace-analysis h3 i {
  color: #2563eb;
}
.trace-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.trace-stat-item {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  border: 1px solid #e5e7eb;
}
.trace-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}
.trace-value {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
}
.mouse-reset-btn {
  display: block;
  margin: 0 auto;
  padding: 10px 28px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.mouse-reset-btn:hover {
  background: #dc2626;
}

@media (max-width: 768px) {
  .mouse-visual-section { grid-template-columns: 1fr; }
  .mouse-realtime-data { grid-template-columns: repeat(2, 1fr); }
  .mouse-status-grid { grid-template-columns: repeat(3, 1fr); }
  .advanced-grid { grid-template-columns: 1fr 1fr; }
  .trace-stats { grid-template-columns: repeat(2, 1fr); }
  .mouse-test-area { height: 220px; }
}


/* ===== 来自 display.asp ===== */
.display-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.display-resolution {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1e40af;
}
.display-resolution i {
  font-size: 18px;
}
.display-resolution strong {
  color: #1e3a8a;
  font-size: 15px;
}
.display-start-btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.display-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.display-start-btn:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .display-info-bar {
    flex-direction: column;
    text-align: center;
  }
  .display-start-btn {
    width: 100%;
    justify-content: center;
  }
}
.display-test-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.display-test-item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.display-test-item:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.display-test-color {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.display-test-item h4 {
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
}
.display-test-item p {
  font-size: 12px;
  color: #6b7280;
}
.display-tips {
  background: #eff6ff;
  border-radius: 10px;
  padding: 20px;
}
.display-tips h3 {
  color: #1e40af;
  margin-bottom: 12px;
}
.display-tips ul {
  list-style: none;
}
.display-tips li {
  font-size: 13px;
  color: #1e3a8a;
  line-height: 2;
  padding-left: 20px;
  position: relative;
}
.display-tips li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #2563eb;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (max-width: 768px) {
  .display-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}
.display-resolution {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1e40af;
}
.display-resolution i {
  font-size: 18px;
}
.display-resolution strong {
  color: #1e3a8a;
  font-size: 15px;
}
.display-start-btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.display-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.display-start-btn:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .display-info-bar {
    flex-direction: column;
    text-align: center;
  }
  .display-start-btn {
    width: 100%;
    justify-content: center;
  }
}
.display-test-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== 来自 keyboard.asp ===== */
.keyboard-status {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.keyboard-status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.status-label {
  font-size: 12px;
  color: #6b7280;
}
.status-value {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.5px;
}
.keyboard-reset-btn {
  margin-left: auto;
  padding: 8px 20px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.keyboard-reset-btn:hover { background: #dc2626; }

.keyboard-container {
  background: #1f2937;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.keyboard-main-wrap {
  display: flex;
  gap: 15px;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}
.keyboard-main {
  flex-shrink: 0;
}
.keyboard-numpad {
  flex-shrink: 0;
}
.keyboard-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  justify-content: flex-start;
}
.keyboard-key {
  background: #374151;
  color: #d1d5db;
  border-radius: 5px;
  min-width: 39px;
  height: 39px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.1s;
  border: 1px solid #4b5563;
  user-select: none;
  padding: 0 7px;
}
.keyboard-key.wide { min-width: 51px; }
.keyboard-key.wider { min-width: 84px; }
.keyboard-key.widest { min-width: 73px; }
.keyboard-key.space { min-width: 279px; }
/* 编辑键区 */
.keyboard-edit {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3px;
}
.keyboard-edit .keyboard-row {
  display: flex;
  gap: 4px;
}
.keyboard-key.empty {
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 53px;
  visibility: hidden;
}

.numpad-title {
  color: #9ca3af;
  font-size: 12px;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1px;
}
.keyboard-numpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  grid-template-rows: repeat(5, 48px);
  gap: 4px;
}
.numpad-key {
  min-width: auto !important;
  height: auto !important;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keyboard-key.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(37,99,235,0.5);
}
.keyboard-key.test-passed {
  background: #10b981;
  color: #fff;
  border-color: #34d399;
}

.keyboard-tips {
  background: #eff6ff;
  border-radius: 10px;
  padding: 20px;
}
.keyboard-tips h4 {
  color: #1e40af;
  margin-bottom: 12px;
}
.keyboard-tips ul {
  list-style: none;
}
.keyboard-tips li {
  font-size: 13px;
  color: #1e3a8a;
  line-height: 2;
  padding-left: 20px;
  position: relative;
}
.keyboard-tips li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #2563eb;
}


/* ===== 来自 printer_toner_query.asp ===== */
.toner-search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.toner-search input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.toner-search input:focus { border-color: #2563eb; }
.toner-search button {
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.toner-search button:hover { background: #1d4ed8; }

.toner-brand-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toner-brand-tab {
  padding: 8px 18px;
  background: #f3f4f6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
  transition: all 0.2s;
}
.toner-brand-tab.active {
  background: #2563eb;
  color: #fff;
}

.toner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .toner-list { grid-template-columns: 1fr; gap: 12px; }
}
.toner-item {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 4px solid #2563eb;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
.toner-model {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.toner-type {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.toner-yield {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.toner-printer {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
  word-break: break-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.toner-note {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}


/* ===== 来自 print_calc.asp ===== */
.calc-form {
  background: #f9fafb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.calc-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.calc-group select,
.calc-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.calc-group select:focus,
.calc-group input:focus {
  border-color: #2563eb;
}
.calc-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.calc-result {
  background: #eff6ff;
  border-radius: 10px;
  padding: 24px;
}
.calc-result h3 {
  color: #1e40af;
  margin-bottom: 20px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.result-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.result-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}
.result-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}
.result-value.highlight {
  color: #2563eb;
  font-size: 24px;
}

@media (max-width: 768px) {
  .calc-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
}



/* 方向键向上键往下移，缩短与向下键的间隔 */
.keyboard-edit .keyboard-row:nth-child(4) .keyboard-key:nth-child(2) {
  margin-top: 8px;
}

/* 功能键分组间距：Esc与F1隔开，F4与F5、F8与F9隔开，让F12与Backspace右边对齐 */
.keyboard-main .keyboard-row:first-child .keyboard-key:nth-child(1) {
  margin-right: 24px;
}
.keyboard-main .keyboard-row:first-child .keyboard-key:nth-child(5) {
  margin-right: 36px;
}
.keyboard-main .keyboard-row:first-child .keyboard-key:nth-child(9) {
  margin-right: 36px;
}

/* 方向键区域推到底部，与数字小键盘底部平齐 */
.keyboard-edit .keyboard-row:nth-child(4) {
  margin-top: auto;
}

/* Backspace键加宽 */
.keyboard-key.backspace-key {
  min-width: 104px !important;
}
/* Enter键加宽 */
.keyboard-key.enter-key {
  min-width: 102px !important;
}
/* Shift键加宽 */
.keyboard-key.shift-key {
  min-width: 110px;
}
/* 反斜杠键加宽 */
.keyboard-key.backslash-key {
  min-width: 59px !important;
}

/* 左Shift键单独加宽15px */
.keyboard-key.shift-left-key {
  min-width: 119px !important;
}

/* ========== 故障自查结果展示样式 ========== */
.result-user-choice {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.result-user-choice-title {
  font-size: 15px;
  font-weight: bold;
  color: #1e40af;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.result-user-choice-title i {
  margin-right: 8px;
  color: #3b82f6;
}
.result-user-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.result-user-choice-item {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.result-user-choice-item .choice-label {
  color: #6b7280;
  font-weight: 500;
}
.result-user-choice-item .choice-value {
  color: #1f2937;
  font-weight: 600;
  background: #fff;
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  margin-left: 4px;
}
@media (max-width: 640px) {
  .result-user-choice {
    padding: 12px 14px;
  }
  .result-user-choice-row {
    flex-direction: column;
    gap: 8px;
  }
}
.result-card {
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid;
}
.result-danger {
  background: #fef2f2;
  border-left-color: #ef4444;
}
.result-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}
.result-success {
  background: #f0fdf4;
  border-left-color: #22c55e;
}
.result-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1f2937;
}
.result-danger .result-title { color: #dc2626; }
.result-warning .result-title { color: #d97706; }
.result-success .result-title { color: #16a34a; }
.result-level {
  font-size: 13px;
  color: #6b7280;
}
.result-level span {
  font-weight: bold;
}
.result-danger .result-level span { color: #dc2626; }
.result-warning .result-level span { color: #d97706; }
.result-success .result-level span { color: #16a34a; }

.result-section {
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.result-section-title {
  font-size: 15px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.result-causes {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-causes li {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.result-causes li:last-child {
  border-bottom: none;
}
.cause-prob {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  min-width: 45px;
  text-align: center;
}
.result-selfcheck {
  padding-left: 20px;
  margin: 0;
}
.result-selfcheck li {
  padding: 6px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.result-repair {
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.result-urgency {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #92400e;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* 风险提示框 */
.result-warning-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.result-warning-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-warning-text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

/* 数据安全提醒框 */
.result-safety-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.result-safety-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-safety-text {
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.6;
}

/* 维修方式对比 */
.result-compare-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.8;
  background: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.result-compare-text strong {
  color: #1f2937;
  font-weight: 600;
}


/* 维修参考信息网格 */
.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.result-meta-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s;
}
.result-meta-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}
.result-meta-item i {
  font-size: 20px;
  margin-bottom: 8px;
}
.result-meta-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.result-meta-value {
  font-size: 13px;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .result-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .result-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .result-meta-item {
    padding: 10px 8px;
  }
  .result-meta-item i {
    font-size: 18px;
  }
  .result-meta-label {
    font-size: 11px;
  }
  .result-meta-value {
    font-size: 13px;
  }
}

.result-cta {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.result-cta p {
  font-size: 14px;
  color: #1e40af;
  margin-bottom: 12px;
}
.result-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.result-cta-buttons .check-btn {
  text-decoration: none;
}
@media (max-width: 640px) {
  .result-cta-buttons {
    flex-direction: column;
  }
  .result-cta-buttons .check-btn {
    width: 100%;
  }
}


/* ========== 诊断结果页美化样式 ========== */

/* 故障等级横幅 */
.result-level {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  border-left: 5px solid;
}
.result-level i {
  font-size: 20px;
}
.result-level-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left-color: #ef4444;
  color: #991b1b;
}
.result-level-danger i { color: #ef4444; }
.result-level-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
  color: #92400e;
}
.result-level-warning i { color: #f59e0b; }
.result-level-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left-color: #3b82f6;
  color: #1e40af;
}
.result-level-info i { color: #3b82f6; }
.result-level-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left-color: #22c55e;
  color: #166534;
}
.result-level-success i { color: #22c55e; }

/* 诊断结果区块 */
.result-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}
.result-section:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.result-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}
.result-section h3 i {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* 故障原因列表 */
.cause-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cause-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
  transition: all 0.2s;
}
.cause-item:hover {
  background: #eff6ff;
  transform: translateX(4px);
}
.cause-prob {
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.cause-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

/* 自行排查方法列表 */
.self-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}
.self-check-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 12px 14px 12px 52px;
  margin-bottom: 8px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  transition: all 0.2s;
}
.self-check-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.self-check-list li:hover {
  background: #ecfdf5;
  transform: translateX(4px);
}

/* 维修建议与费用说明 */
.repair-suggestion {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: #166534;
  line-height: 1.8;
}

/* 维修参考信息网格 */
.meta-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.meta-info-item {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.meta-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.5;
}

/* 风险提示框 */
.risk-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.7;
}
.risk-warning strong {
  color: #92400e;
}

/* 数据安全提醒框 */
.data-safety-tip {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #3b82f6;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.7;
}
.data-safety-tip strong {
  color: #1e40af;
}

/* 维修方式对比 */
.repair-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.compare-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s;
}
.compare-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.compare-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}
.compare-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* CTA按钮区域 */
.result-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  margin: 0 8px;
}
.cta-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  color: #fff;
}
.cta-btn-phone {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.cta-btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  color: #fff;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .meta-info-grid {
    grid-template-columns: 1fr;
  }
  .repair-compare {
    grid-template-columns: 1fr;
  }
  .result-section {
    padding: 16px;
  }
  .result-section h3 {
    font-size: 16px;
  }
  .cta-btn {
    display: flex;
    width: 100%;
    margin: 6px 0;
  }
  .cause-item {
    flex-direction: column;
    gap: 8px;
  }
}


/* ========== 通用工具页面美化样式 ========== */

/* 工具区块标题 */
.tool-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-section-title i {
  color: #2563eb;
}

/* 估价表单容器 */
.estimate-form-container {
  max-width: 100%;
  margin: 0 auto;
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}
.estimate-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.estimate-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.estimate-form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}
.estimate-form-label i {
  color: #2563eb;
  font-size: 13px;
}
.estimate-form-select,
.estimate-form-input,
.estimate-form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}
.estimate-form-select:focus,
.estimate-form-input:focus,
.estimate-form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.estimate-form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* 复选框 */
.estimate-form-checkbox {
  margin-bottom: 16px;
}
.estimate-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: all 0.2s;
}
.estimate-checkbox-label:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.estimate-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* 提交按钮 */
.estimate-form-submit {
  text-align: center;
  margin-bottom: 16px;
}
.estimate-submit-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.estimate-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}
.estimate-submit-btn:active {
  transform: translateY(0);
}

/* 估价结果 */
.estimate-result {
  margin-top: 20px;
}
.estimate-result-price {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.estimate-result-label {
  margin: 0 0 8px 0;
  font-size: 14px;
  opacity: 0.9;
}
.estimate-result-value {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
}
.estimate-result-note {
  margin: 8px 0 0 0;
  font-size: 13px;
  opacity: 0.8;
}

/* 估价依据明细 */
.estimate-result-detail {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.estimate-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.estimate-detail-title i {
  color: #2563eb;
}
.estimate-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.estimate-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 13px;
}
.estimate-detail-label {
  color: #6b7280;
}
.estimate-detail-value {
  color: #1f2937;
  font-weight: 600;
}
.estimate-detail-warning .estimate-detail-value {
  color: #dc2626;
}

/* 结果CTA按钮 */
.estimate-result-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.estimate-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.estimate-cta-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.estimate-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  color: #fff;
}
.estimate-cta-phone {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
}
.estimate-cta-phone:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

/* 估价说明 */
.estimate-notice {
  display: flex;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
}
.estimate-notice-icon {
  flex-shrink: 0;
  color: #f59e0b;
  font-size: 20px;
  margin-top: 2px;
}
.estimate-notice-content {
  font-size: 13px;
  color: #78350f;
  line-height: 1.7;
}
.estimate-notice-content strong {
  color: #92400e;
}

/* 估价因素卡片网格 */
.estimate-factor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.estimate-factor-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}
.estimate-factor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #bfdbfe;
}
.estimate-factor-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #fff;
  font-size: 20px;
}
.estimate-factor-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}
.estimate-factor-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* 回收流程 */
.recycle-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.recycle-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.recycle-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.recycle-step-content {
  flex: 1;
  background: #f9fafb;
  border-radius: 10px;
  padding: 16px;
  border-left: 3px solid #2563eb;
}
.recycle-step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
}
.recycle-step-content p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* 准备清单网格 */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.prep-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s;
}
.prep-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.prep-item i {
  flex-shrink: 0;
  font-size: 24px;
  margin-top: 2px;
}
.prep-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
}
.prep-item p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .estimate-form-grid {
    grid-template-columns: 1fr;
  }
  .estimate-factor-grid {
    grid-template-columns: 1fr;
  }
  .prep-grid {
    grid-template-columns: 1fr;
  }
  .estimate-detail-grid {
    grid-template-columns: 1fr;
  }
  .estimate-result-value {
    font-size: 28px;
  }
  .estimate-form-container {
    padding: 16px;
  }
}


/* ===== 公共样式：表单组间距 ===== */
.estimate-form-group.mb-16 { margin-bottom: 16px; }
.estimate-form-group.mt-16 { margin-top: 16px; }

/* ===== 公共样式：单选按钮组 ===== */
.radio-group {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ===== 公共样式：按钮组 ===== */
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-group-center {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ===== 公共样式：复制结果按钮 ===== */
.btn-copy-result {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* ===== 公共样式：CTA卡片 ===== */
.tool-cta-card {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
}
.tool-cta-card h2 {
  color: #fff;
  margin-bottom: 12px;
}
.tool-cta-card h2 i {
  color: #fff;
}
.tool-cta-card p {
  color: #dbeafe;
  margin-bottom: 16px;
}
.tool-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tool-cta-btn-primary {
  background: #fff;
  color: #2563eb;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}
.tool-cta-btn-secondary {
  background: #10b981;
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}


/* ===== 公共样式：JSON文本框 ===== */
.json-textarea {
  font-family: monospace;
  font-size: 13px;
}

/* ===== 公共样式：压缩按钮 ===== */
.btn-minify {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ===== 公共样式：JSON错误提示 ===== */
.json-error {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 13px;
}
.json-error.show {
  display: block;
}




/* ===== keyboard.asp 进度条和导出按钮样式 ===== */

/* 测试进度条 */
.keyboard-progress-bar {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.progress-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.progress-percent {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
}
.progress-count {
  font-size: 12px;
  color: #9ca3af;
}
.progress-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 导出测试结果按钮区域 */
.keyboard-export {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.export-btn {
  padding: 10px 18px;
  background: #fff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 42px;
  line-height: 1.5;
}
.export-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}
.export-btn:active {
  transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .keyboard-progress-bar {
    padding: 12px 14px;
  }
  .keyboard-export {
    gap: 8px;
  }
  .export-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* 检测说明中加粗文字用红色（提高优先级） */
.tool-card .keyboard-tips ul li strong {
  color: #dc2626 ;
}


/* ===== 浅色（白色）键盘样式 ===== */
.keyboard-container.keyboard-light {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.keyboard-container.keyboard-light .keyboard-key {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.keyboard-container.keyboard-light .keyboard-key:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.keyboard-container.keyboard-light .keyboard-key.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(37,99,235,0.4);
}
.keyboard-container.keyboard-light .keyboard-key.test-passed {
  background: #10b981;
  color: #fff;
  border-color: #34d399;
}
.keyboard-container.keyboard-light .keyboard-key.empty {
  background: transparent;
  border: none;
  box-shadow: none;
  visibility: hidden;
}
.keyboard-container.keyboard-light .numpad-title {
  color: #6b7280;
}

/* 键盘主题切换按钮 */
.keyboard-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  transition: all 0.2s;
  margin-left: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 42px;
  line-height: 1.5;
}
.keyboard-theme-toggle:hover {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 8px rgba(37,99,235,0.3);
}
.keyboard-theme-toggle:hover .theme-icon {
  color: #fff;
}
.keyboard-theme-toggle .theme-icon {
  font-size: 14px;
  color: #2563eb;
  transition: color 0.2s;
}
.keyboard-theme-toggle .theme-label {
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .keyboard-theme-toggle {
    padding: 5px 10px;
    font-size: 12px;
  }
  .keyboard-theme-toggle .theme-label {
    display: none;
  }
}
