/* ========================================
   beep_code.asp 页面样式
   ======================================== */

.auto-style-1 {
  display:none;
}

.auto-style-2 {
  width:160px;
  height:160px;
  margin:10px auto;
}

.auto-style-3 {
  color:#6b7280;
  margin-bottom:20px;
}

.auto-style-4 {
  font-size:36px;
  margin-bottom:10px;
}

/* 蜂鸣音特有样式 */
.error-cause {
  color:#4b5563;
  font-size:14px;
  line-height:1.7;
  margin-bottom:8px;
}

.error-cause strong {
  color:#dc2626;
}

.error-solution strong {
  color:#2563eb;
}


/* ===== 搜索框清除按钮和自动补全样式 ===== */
.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
  transition: all 0.2s;
  padding: 0;
}

.search-clear-btn:hover {
  background: #d1d5db;
  color: #374151;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
  gap: 12px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f0f9ff;
}

.suggestion-code {
  font-size: 13px;
  font-weight: bold;
  color: #2563eb;
  min-width: 80px;
  white-space: nowrap;
}

.suggestion-name {
  flex: 1;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .suggestion-code {
    min-width: 60px;
    font-size: 12px;
  }
  
  .suggestion-name {
    font-size: 12px;
  }
}


/* ===== 蜂鸣音播放按钮、模式可视化、维修信息样式 ===== */
.beep-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.beep-title-wrap {
  flex: 1;
}

.beep-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.beep-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.beep-play-btn.playing {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 覆盖公共样式：去掉左边框，整体边框用淡蓝色 */
.error-item {
  border-left: none !important;
  border: 1px solid #bfdbfe !important;
  transition: all 0.25s ease !important;
}

.error-item:hover {
  border-color: #60a5fa !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 模式可视化 */
.beep-pattern-visual {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  margin-bottom: 10px;
  margin-left: 3px;
  padding: 6px 0;
  background: transparent;
  border-radius: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.beep-bar {
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}

.beep-bar.beep-long {
  width: 27px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.beep-bar.beep-short {
  width: 11px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.beep-bar.beep-gap {
  width: 5px;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 0;
}

/* 维修信息标签 */
.beep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.beep-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: #f1f5f9;
  color: #475569;
}

.beep-tag i {
  font-size: 10px;
}

.beep-tag.diff-easy {
  background: #dcfce7;
  color: #16a34a;
}

.beep-tag.diff-medium {
  background: #fef3c7;
  color: #d97706;
}

.beep-tag.diff-hard {
  background: #fee2e2;
  color: #dc2626;
}

/* ===== BIOS品牌识别方法样式 ===== */
.bios-identify-section {
  margin: 15px 0;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  overflow: hidden;
}

.bios-identify-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  cursor: pointer;
  font-size: 14px;
  color: #4338ca;
  font-weight: 500;
  transition: background 0.2s;
}

.bios-identify-title:hover {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.bios-identify-hint {
  color: #6366f1;
  font-size: 13px;
  font-weight: normal;
}

.bios-identify-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 12px;
}

.bios-identify-content {
  padding: 16px;
  background: #fff;
}

.bios-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bios-method-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.bios-method-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.bios-method-text h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #1e293b;
}

.bios-method-text p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #64748b;
}

.bios-method-text ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

.bios-method-text li {
  margin-bottom: 2px;
}

.bios-method-text code {
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .bios-method-grid {
    grid-template-columns: 1fr;
  }
  
  .beep-play-btn {
    width: 32px;
    height: 32px;
  }
  
  .beep-bar.beep-long {
    width: 30px;
  }
  
  .beep-bar.beep-short {
    width: 12px;
  }
}


/* ===== 故障排查流程向导样式 ===== */
.wizard-section {
  margin: 15px 0;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  overflow: hidden;
}

.wizard-section .wizard-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  cursor: pointer;
  font-size: 14px;
  color: #92400e;
  font-weight: 500;
  transition: background 0.2s;
}

.wizard-section .wizard-toggle:hover {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.wizard-section .wizard-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 12px;
}

.wizard-section .wizard-panel {
  padding: 16px;
  background: #fff;
}

.wizard-section .wizard-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.wizard-section .wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
}

.wizard-section .wizard-back-btn {
  margin-left: auto;
  padding: 4px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  transition: all 0.2s;
}

.wizard-section .wizard-back-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.wizard-section .wizard-scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.wizard-section .wizard-scenario {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-section .wizard-scenario:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.wizard-section .wizard-scenario i {
  font-size: 20px;
  color: #f59e0b;
  flex-shrink: 0;
}

.wizard-section .wizard-scenario-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.wizard-section .wizard-scenario-desc {
  font-size: 12px;
  color: #64748b;
}

/* 排查结果样式 */
.wizard-result-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-result-title i {
  color: #10b981;
}

.wizard-result-likely {
  padding: 10px 14px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #065f46;
}

.wizard-probability {
  color: #059669;
  font-weight: 600;
}

.wizard-result-section {
  margin-bottom: 15px;
}

.wizard-result-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-result-section h4 i {
  color: #f59e0b;
  font-size: 13px;
}

.wizard-result-section ul, .wizard-result-section ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
}

.wizard-result-section li {
  margin-bottom: 2px;
}

.wizard-related-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-related-code {
  padding: 4px 12px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-related-code:hover {
  background: #dbeafe;
}

.wizard-result-tip {
  padding: 12px 14px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

.wizard-result-tip i {
  margin-right: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .wizard-section .wizard-scenarios {
    grid-template-columns: 1fr;
  }
}


/* ===== 主板诊断卡代码查询样式 ===== */
.post-code-section {
  margin: 15px 0;
  border: 1px solid #dcfce7;
  border-radius: 8px;
  overflow: hidden;
}

.post-code-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  cursor: pointer;
  font-size: 14px;
  color: #166534;
  font-weight: 500;
  transition: background 0.2s;
}

.post-code-toggle:hover {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.post-code-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 12px;
}

.post-code-panel {
  padding: 16px;
  background: #fff;
}

.post-code-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.post-code-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.post-code-search input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.post-code-search button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.post-code-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.post-code-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.post-code-cat {
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.post-code-cat:hover {
  background: #e5e7eb;
  color: #374151;
}

.post-code-cat.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #059669;
}

.post-code-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.post-code-item {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  border-left: 3px solid #10b981;
}

.post-code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.post-code-num {
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  color: #059669;
  background: #d1fae5;
  padding: 2px 10px;
  border-radius: 4px;
  min-width: 45px;
  text-align: center;
}

.post-code-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.post-code-cause {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
}

.post-code-cause strong {
  color: #dc2626;
}

.post-code-solution {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.post-code-solution strong {
  color: #2563eb;
}

.post-code-empty {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
}

.post-code-empty i {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.post-code-tip {
  margin-top: 15px;
  padding: 12px 14px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

.post-code-tip i {
  margin-right: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .post-code-list {
    grid-template-columns: 1fr;
  }
  
  .post-code-search {
    flex-direction: column;
  }
  
  .post-code-search button {
    width: 100%;
  }
}


/* ===== 主板厂商DEBUG灯查询样式 ===== */
.debug-led-section {
  margin: 15px 0;
  border: 1px solid #ede9fe;
  border-radius: 8px;
  overflow: hidden;
}

.debug-led-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  cursor: pointer;
  font-size: 14px;
  color: #5b21b6;
  font-weight: 500;
  transition: background 0.2s;
}

.debug-led-toggle:hover {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.debug-led-arrow {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 12px;
}

.debug-led-panel {
  padding: 16px;
  background: #fff;
}

.debug-led-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.debug-led-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.debug-led-search input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.debug-led-search button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.debug-led-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.debug-led-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.debug-led-brand {
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.debug-led-brand:hover {
  background: #e5e7eb;
  color: #374151;
}

.debug-led-brand.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border-color: #7c3aed;
}

.debug-led-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.debug-led-item {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  border-left: 3px solid #8b5cf6;
}

.debug-led-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.debug-led-num {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: #6d28d9;
  background: #ede9fe;
  padding: 2px 10px;
  border-radius: 4px;
  min-width: 45px;
  text-align: center;
}

.debug-led-brand-tag {
  font-size: 11px;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #ddd6fe;
}

.debug-led-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.debug-led-cause {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 6px;
}

.debug-led-cause strong {
  color: #dc2626;
}

.debug-led-solution {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.debug-led-solution strong {
  color: #2563eb;
}

.debug-led-empty {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
}

.debug-led-empty i {
  font-size: 36px;
  margin-bottom: 10px;
  display: block;
}

.debug-led-tip {
  margin-top: 15px;
  padding: 12px 14px;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #92400e;
  line-height: 1.6;
}

.debug-led-tip i {
  margin-right: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .debug-led-list {
    grid-template-columns: 1fr;
  }
  
  .debug-led-search {
    flex-direction: column;
  }
  
  .debug-led-search button {
    width: 100%;
  }
}
