/* 知识页共享样式，来源：旧站 src/pc/views/knowledge/index.ejs 内联 <style> + assets/css/knowledge/index.css */

.knowledge-page {
  min-height: calc(100vh - 160px);
  padding: 136px 20px 80px;
  background: linear-gradient(180deg, #f4f6ff 0, #fff 360px);
}

.knowledge-content {
  max-width: 1100px;
  margin: 0 auto;
}

.knowledge-category {
  margin-bottom: 30px;
  color: #3853f4;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
}

.knowledge-title {
  margin: 0;
  color: #1d2633;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

.knowledge-summary {
  max-width: 100%;
  margin: 10px 0 10px;
  color: #5c6777;
  font-size: 17px;
  line-height: 1.9;
  padding: 0px 11px;
}

.knowledge-summary strong {
  margin: 0 10px;
}

.knowledge-sections-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.knowledge-sections-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.knowledge-sections-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.knowledge-sections-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.knowledge-sections-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.knowledge-section {
  min-height: 160px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(29, 38, 51, .05);
}

.knowledge-section h2 {
  margin: 0 0 14px;
  color: #253044;
  font-size: 20px;
  font-weight: 600;
}

.knowledge-section p {
  margin: 0;
  color: #657083;
  font-size: 14px;
  line-height: 1.8;
}

.knowledge-cases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.knowledge-case {
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(29, 38, 51, .05);
}

.knowledge-case h2 {
  margin: 0 0 6px;
  color: #253044;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.knowledge-case-investor {
  margin: 0;
  color: #657083;
  font-size: 13px;
  line-height: 1.6;
}

.knowledge-case-amount {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  color: #3853f4;
  background: #f0f3ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.knowledge-case-amount.is-muted {
  color: #8a94a6;
  background: #f3f5f9;
  font-weight: 500;
}

/* Knowledge 测试页背景较浅，增强下拉菜单的玻璃层次，仅作用于这 5 个共享模板页面。 */
.knowledge-page-body .new-navbar .dropdown-menu {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(242, 246, 255, 0.68));
  border-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 16px 40px rgba(37, 55, 100, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* Footer 的版权区是 absolute，需以 Footer 自身为定位上下文，避免覆盖上方栏目。 */
.knowledge-page-body .page-footer {
  position: relative;
}

@media (max-width: 991.98px) {
  .knowledge-cases {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .knowledge-page {
    padding-top: 104px;
  }

  .knowledge-title {
    font-size: 30px;
  }

  .knowledge-sections-2,.knowledge-sections-3,.knowledge-sections-4 ,.knowledge-sections-5 {
    grid-template-columns: 1fr;
  }

  .knowledge-cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
