/* ========================================
   bsod_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;
}

/* ===== 驱动文件名对照表样式 ===== */
.driver-file-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 8px;
  cursor: pointer;
  margin: 16px 0;
  font-weight: 600;
  color: #0369a1;
  transition: all 0.2s;
}

.driver-file-toggle:hover {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #7dd3fc;
}

.driver-file-toggle.active {
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
  border-color: #38bdf8;
}

.driver-file-toggle i {
  margin-right: 8px;
}

.driver-file-toggle .fa-chevron-down {
  transition: transform 0.3s;
}

.driver-file-toggle.active .fa-chevron-down {
  transform: rotate(180deg);
}

.driver-file-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.driver-file-search {
  margin-bottom: 16px;
}

.driver-file-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.driver-file-search input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.driver-file-list {
  max-height: 500px;
  overflow-y: auto;
}

.driver-file-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.driver-file-item:last-child {
  margin-bottom: 0;
}

.driver-file-name {
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 6px;
}

.driver-file-name i {
  margin-right: 6px;
  color: #3b82f6;
}

.driver-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.driver-file-category {
  display: inline-block;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.driver-file-desc {
  font-size: 13px;
  color: #4b5563;
}

.driver-file-solution {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.driver-file-solution strong {
  color: #059669;
}

.driver-file-empty {
  text-align: center;
  padding: 30px;
  color: #9ca3af;
  font-size: 14px;
}

/* ===== 相关代码推荐样式 ===== */
.error-related {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
  color: #6b7280;
}

.error-related strong {
  color: #7c3aed;
  margin-right: 8px;
}

.error-related strong i {
  margin-right: 4px;
}

.related-code {
  display: inline-block;
  padding: 3px 10px;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.related-code:hover {
  background: #6d28d9;
  color: #fff;
  border-color: #6d28d9;
}

/* ===== 搜索框样式优化 ===== */
.error-search input {
  transition: all 0.2s;
}

.error-search input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .driver-file-toggle {
    padding: 12px 16px;
    font-size: 14px;
  }

  .driver-file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .error-related {
    font-size: 12px;
  }

  .related-code {
    font-size: 11px;
    padding: 2px 8px;
  }
}

/* ========================================
   专业信息字段样式
   ======================================== */

/* 蓝屏代码头部（代码+严重程度） */
.error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.error-header .error-code {
  margin-bottom: 0;
}

/* 严重程度标签 */
.error-severity {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.severity-轻微 {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.severity-中等 {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.severity-严重 {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.severity-致命 {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* 专业信息标签行 */
.error-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #f3f4f6;
  color: #4b5563;
}

.meta-tag i {
  font-size: 11px;
}

.meta-difficulty {
  background: #eff6ff;
  color: #1e40af;
}

.meta-systems {
  background: #f0fdf4;
  color: #166534;
}

/* 常见触发场景 */
.error-scenarios {
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}

.error-scenarios strong {
  color: #7c3aed;
  margin-right: 6px;
}

.scenario-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* 费用参考 */
.error-cost {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
}

.error-cost strong {
  color: #b45309;
}

.error-cost i {
  margin-right: 4px;
}

/* 相关驱动文件名 */
.error-related-drivers {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}

.error-related-drivers strong {
  color: #0891b2;
  margin-right: 6px;
}

.driver-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  margin-right: 4px;
  margin-bottom: 4px;
  cursor: help;
}

/* ========================================
   蓝屏排查流程向导样式
   ======================================== */

.wizard-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-radius: 8px;
  cursor: pointer;
  margin: 16px 0;
  font-weight: 600;
  color: #92400e;
  transition: all 0.2s;
}

.wizard-toggle:hover {
  background: linear-gradient(135deg, #fde68a, #fcd34d);
  border-color: #fbbf24;
}

.wizard-toggle.active {
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  border-color: #f59e0b;
}

.wizard-toggle i {
  margin-right: 8px;
}

.wizard-toggle .fa-chevron-down {
  transition: transform 0.3s;
}

.wizard-toggle.active .fa-chevron-down {
  transform: rotate(180deg);
}

.wizard-panel {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.wizard-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 16px;
}

.wizard-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f59e0b;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.wizard-back-btn {
  margin-left: auto;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-back-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.wizard-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wizard-scenario {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 2px solid #fde68a;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-scenario:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.wizard-scenario i {
  font-size: 24px;
  color: #f59e0b;
  flex-shrink: 0;
}

.wizard-scenario-text {
  flex: 1;
}

.wizard-scenario-title {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 2px;
}

.wizard-scenario-desc {
  font-size: 12px;
  color: #6b7280;
}

.wizard-results-title {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 12px;
}

.wizard-code-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.wizard-code-item {
  padding: 12px;
  background: #fff;
  border: 2px solid #fde68a;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-code-item:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.wizard-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wizard-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
}

.wizard-code-name {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.wizard-code-cause {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.wizard-tips-box {
  padding: 14px 16px;
  background: #fff;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}

.wizard-tips-box i {
  color: #f59e0b;
  margin-right: 6px;
}

.wizard-tips-box strong {
  color: #92400e;
}

/* ========================================
   .dmp蓝屏转储文件分析指南样式
   ======================================== */

.section-desc {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

.dmp-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dmp-step {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.dmp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.dmp-step-content {
  flex: 1;
}

.dmp-step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 8px;
}

.dmp-step-content p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 6px;
}

.dmp-step-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.dmp-step-content li {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 4px;
}

.dmp-step-content code {
  display: inline-block;
  padding: 2px 6px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

/* ========================================
   新增功能移动端适配
   ======================================== */

@media (max-width: 768px) {
  .error-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .error-severity {
    font-size: 11px;
    padding: 2px 8px;
  }

  .error-meta {
    gap: 6px;
  }

  .meta-tag {
    font-size: 11px;
    padding: 2px 6px;
  }

  .error-scenarios,
  .error-cost,
  .error-related-drivers {
    font-size: 12px;
  }

  .wizard-toggle {
    padding: 12px 16px;
    font-size: 14px;
  }

  .wizard-scenarios {
    grid-template-columns: 1fr;
  }

  .wizard-code-list {
    grid-template-columns: 1fr;
  }

  .dmp-step {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .dmp-step-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .dmp-step-content h3 {
    font-size: 15px;
  }

  .dmp-step-content p,
  .dmp-step-content li {
    font-size: 13px;
  }
}


/* ===== 搜索框清除按钮和自动补全样式 ===== */
.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-family: monospace;
  font-size: 13px;
  font-weight: bold;
  color: #2563eb;
  min-width: 110px;
}

.suggestion-name {
  flex: 1;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.suggestion-category {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.suggestion-category.cat-driver {
  background: #dbeafe;
  color: #1d4ed8;
}

.suggestion-category.cat-hardware {
  background: #fef3c7;
  color: #b45309;
}

.suggestion-category.cat-system {
  background: #d1fae5;
  color: #047857;
}

.suggestion-category.cat-boot {
  background: #fce7f3;
  color: #be185d;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .suggestion-code {
    min-width: 90px;
    font-size: 12px;
  }
  
  .suggestion-name {
    font-size: 12px;
  }
  
  .suggestion-category {
    display: none;
  }
}
