/* ========================================
   psu_calc.asp 页面样式
   ======================================== */

.auto-style-1 {
  display:none;
}

.auto-style-2 {
  width:160px;
  height:160px;
  margin:10px auto;
}

.auto-style-3 {
  color:#6b7280;
  margin-bottom:20px;
}

/* 电源计算器表单样式 */
.psu-form {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.psu-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.psu-form-row:last-child {
  margin-bottom: 0;
}

.psu-form-group {
  flex: 1;
}

.psu-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.psu-form-group label i {
  color: #2563eb;
  margin-right: 6px;
}

.psu-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.psu-form-group select:hover {
  border-color: #93c5fd;
}

.psu-form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.psu-calc-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.psu-calc-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.psu-calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.psu-calc-btn:active {
  transform: translateY(0);
}

.psu-calc-btn i {
  margin-right: 8px;
}

/* 计算结果样式 */
.psu-result {
  background: #fff;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.psu-result-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
}

.psu-result-header i {
  margin-right: 8px;
}

.psu-result-body {
  padding: 20px 24px;
}

.psu-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.psu-result-row:last-child {
  border-bottom: none;
}

.psu-result-label {
  font-size: 14px;
  color: #6b7280;
}

.psu-result-value {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.psu-result-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.psu-total-row {
  padding: 14px 0;
}

.psu-total-value {
  font-size: 22px;
  color: #2563eb;
}

.psu-recommend-row {
  padding: 14px 0;
  background: #f0fdf4;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 0 0 8px 8px;
}

.psu-recommend-value {
  font-size: 24px;
  color: #16a34a;
}

.psu-result-tip {
  margin-top: 16px;
  padding: 12px 16px;
  background: #eff6ff;
  border-radius: 8px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.7;
}

.psu-result-tip i {
  margin-right: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .psu-form {
    padding: 16px;
  }

  .psu-form-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .psu-calc-btn {
    width: 100%;
    padding: 14px;
  }

  .psu-result-body {
    padding: 16px;
  }

  .psu-recommend-row {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .psu-total-value {
    font-size: 20px;
  }

  .psu-recommend-value {
    font-size: 22px;
  }
}


/* ========================================
   新增功能样式
   ======================================== */

/* 常见配置快速选择 */
.psu-quick-config {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #bfdbfe;
}

.psu-quick-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 12px;
}

.psu-quick-title i {
  margin-right: 6px;
}

.psu-quick-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.psu-quick-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.psu-quick-btn:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.psu-quick-btn i {
  margin-right: 5px;
}

/* 功耗可视化条形图 */
.psu-chart {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.psu-chart-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.psu-chart-title i {
  margin-right: 6px;
  color: #6366f1;
}

.psu-chart-bar {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #e5e7eb;
}

.psu-chart-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: width 0.5s ease;
  overflow: hidden;
  white-space: nowrap;
}

.psu-chart-cpu {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.psu-chart-gpu {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.psu-chart-other {
  background: linear-gradient(135deg, #10b981, #059669);
}

.psu-chart-legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
}

.psu-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.psu-chart-legend i {
  font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .psu-quick-btns {
    flex-direction: column;
  }

  .psu-quick-btn {
    width: 100%;
  }

  .psu-chart-legend {
    gap: 12px;
    font-size: 12px;
  }

  .psu-chart-segment {
    font-size: 10px;
  }
}


/* ========================================
   界面美化样式
   ======================================== */

/* 表单分类标题 */
.psu-form-section {
  margin: 20px 0 12px 0;
}

.psu-form-section:first-child {
  margin-top: 0;
}

.psu-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e40af;
  padding-bottom: 8px;
  border-bottom: 2px solid #dbeafe;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.psu-section-title i {
  margin-right: 8px;
  color: #3b82f6;
  font-size: 16px;
}

/* 下拉框样式优化 */
.psu-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.psu-form-group select:hover {
  border-color: #60a5fa;
  background-color: #f8fafc;
}

/* 常见配置按钮美化 */
.psu-quick-config {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0e7ff 100%);
  border: 1px solid #93c5fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.psu-quick-title {
  font-size: 15px;
  color: #1e3a8a;
}

.psu-quick-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #bfdbfe;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.psu-quick-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.psu-quick-btn i {
  font-size: 14px;
}

/* 计算结果区域美化 */
.psu-result {
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  border-radius: 16px;
}

.psu-result-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  padding: 18px 24px;
  font-size: 19px;
  letter-spacing: 0.5px;
}

.psu-result-body {
  padding: 24px;
}

.psu-result-row {
  padding: 12px 0;
}

.psu-result-label {
  font-size: 15px;
  color: #4b5563;
  font-weight: 500;
}

.psu-result-value {
  font-size: 17px;
  font-weight: 700;
}

.psu-total-value {
  font-size: 26px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.psu-recommend-row {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 12px;
  margin: 12px -24px 0 -24px;
  padding: 16px 24px;
}

.psu-recommend-value {
  font-size: 28px;
  color: #15803d;
  font-weight: 800;
}

.psu-result-tip {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 20px;
}

/* 功耗条形图美化 */
.psu-chart {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.psu-chart-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.psu-chart-bar {
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.psu-chart-segment {
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.psu-chart-cpu {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.psu-chart-gpu {
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.psu-chart-other {
  background: linear-gradient(135deg, #34d399, #059669);
}

.psu-chart-legend {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
}

/* 重置按钮美化 */
.psu-calc-btn {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

.psu-calc-btn:hover {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: 0 6px 16px rgba(71, 85, 105, 0.4);
}

/* 表单整体美化 */
.psu-form {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* 移动端美化适配 */
@media (max-width: 768px) {
  .psu-section-title {
    font-size: 14px;
  }

  .psu-result-header {
    padding: 14px 16px;
    font-size: 17px;
  }

  .psu-result-body {
    padding: 16px;
  }

  .psu-total-value {
    font-size: 22px;
  }

  .psu-recommend-value {
    font-size: 24px;
  }

  .psu-recommend-row {
    margin: 12px -16px 0 -16px;
    padding: 14px 16px;
  }

  .psu-chart-bar {
    height: 36px;
  }

  .psu-chart-segment {
    font-size: 11px;
  }
}
