/* 房贷计算器专用样式 */
.gp-result { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 15px; margin-top: 15px; line-height: 2; font-size: 14px; }
.gp-result b { color: #333; }
.gp-result .up { color: #e74c3c; }
.gp-result .down { color: #27ae60; }
.gp-result .primary { color: #2563eb; }
.gp-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.gp-table th, .gp-table td { border: 1px solid #dee2e6; padding: 8px 12px; text-align: center; font-size: 13px; }
.gp-table th { background: #f1f3f5; font-weight: 600; }
.gp-table .up { color: #e74c3c; }
.gp-table .down { color: #27ae60; }
.gp-explain { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 15px; margin-bottom: 15px; font-size: 13px; line-height: 1.8; }
.gp-explain h4 { margin: 0 0 8px 0; color: #f57c00; font-size: 14px; }
.gp-form-group { margin-bottom: 12px; }
.gp-form-group label { display: inline-block; width: 120px; font-size: 14px; color: #555; text-align: right; padding-right: 8px; }
.gp-form-group input, .gp-form-group select { width: 180px; padding: 6px 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; }
.gp-form-group input:focus, .gp-form-group select:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.gp-btn { display: inline-block; padding: 8px 24px; background: #2563eb; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; margin: 5px 5px 5px 0; }
.gp-btn:hover { background: #1d4ed8; }
.gp-btn-reset { background: #6c757d; }
.gp-btn-reset:hover { background: #5a6268; }
.gp-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 15px; }
.gp-col { flex: 1; min-width: 300px; }
.gp-col h3 { font-size: 16px; color: #333; margin: 0 0 12px 0; padding-bottom: 8px; border-bottom: 2px solid #2563eb; }
.gp-record-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.gp-record-table th, .gp-record-table td { border: 1px solid #dee2e6; padding: 8px 12px; text-align: center; font-size: 13px; }
.gp-record-table th { background: #f1f3f5; }
.gp-record-table tr:nth-child(even) { background: #f8f9fa; }
/* 首页工具卡片 */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 10px 0; }
.tool-card { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 20px; text-align: center; transition: all 0.3s; text-decoration: none; display: block; }
.tool-card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.15); transform: translateY(-2px); }
.tool-card .tool-icon { font-size: 36px; color: #2563eb; margin-bottom: 10px; }
.tool-card .tool-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.tool-card .tool-desc { font-size: 12px; color: #888; line-height: 1.5; }
/* 名词解析 */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.glossary-item { background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 16px; }
.glossary-item h3 { font-size: 15px; color: #2563eb; margin: 0 0 8px 0; }
.glossary-item p { font-size: 13px; color: #666; line-height: 1.7; margin: 0; }
/* ===== 覆盖 bundle.min.css 冲突样式 ===== */
/* 修复 .main 被 bundle.min.css 设为 18x18px inline-block 的问题 */
#main .main {
  width: auto !important;
  height: auto !important;
  display: block !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  margin-bottom: 0 !important;
  position: static !important;
}
/* 修复 .footer 被 bundle.min.css 设为 transparent 背景 */
.footer {
  clear: both !important;
  margin-top: 30px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  color: #e2e8f0 !important;
  overflow: hidden !important;
  width: 100% !important;
  font-size: 14px !important;
  padding: 0 !important;
  border-block-start: none !important;
}
.footer .m {
  width: 1200px !important;
  margin: 0 auto !important;
  padding: 48px 0 0 !important;
}
.footer .footer-top {
  display: flex !important;
  justify-content: space-between !important;
  padding: 40px 20px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.footer .footer-col {
  flex: 1 !important;
  padding: 0 20px !important;
}
.footer .footer-col h5 {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
}
.footer .footer-col ul li a {
  color: #94a3b8 !important;
  font-size: 14px !important;
}
.footer .footer-bottom {
  padding: 24px 20px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.footer .footer-bottom p {
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}
/* 修复 .header 被 bundle.min.css 覆盖 */
.content .header {
  height: 90px !important;
  width: 100% !important;
  padding: 0 !important;
  background: #fff !important;
}
/* 修复 .main-container 为原 hor-header 留的间距 */
.main-container {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}
/* 修复 body 背景被 home.min.css 覆盖为纯白 */
body {
  background: #f1f5f9 !important;
  font-family: PingFangSC-Regular, sans-serif, MicrosoftYaHei !important;
}
/* 响应式 */
@media (max-width: 768px) {
  .gp-row { flex-direction: column; }
  .gp-col { min-width: 100%; }
  .gp-form-group label { width: 100px; font-size: 13px; }
  .gp-form-group input, .gp-form-group select { width: 150px; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tool-card { padding: 12px; }
  .tool-card .tool-icon { font-size: 28px; }
  .glossary-grid { grid-template-columns: 1fr; }
}