@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Libre+Baskerville:wght@400;700&family=Noto+Serif+SC:wght@500;600;700&display=swap");
:root {
  --ink: #0c2438;
  --navy: #0a1e31;
  --paper: #f7f5ef;
  --line: #d8d4ca;
  --amber: #bd8131;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", Georgia, serif;
}
button,
input {
  font: inherit;
}
.hero {
  min-height: 720px;
  color: #f8f4e9;
  padding: 0 clamp(24px, 6vw, 96px) 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 83% 28%,
      rgba(79, 131, 128, 0.42),
      transparent 24%
    ),
    linear-gradient(118deg, #071a2b 0%, #102f46 57%, #082136 100%);
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.nav-shell,
.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
}
.nav-shell {
  max-width: 1320px;
  margin: auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(246, 241, 226, 0.22);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 18px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #f6f0df;
  font-family: "Libre Baskerville", serif;
}
.nav-link {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 5px;
}
.hero-content {
  max-width: 1320px;
  margin: clamp(125px, 21vh, 205px) auto 0;
}
.eyebrow {
  margin: 0 0 18px;
  color: #d5a95f;
  font:
    500 12px "DM Mono",
    monospace;
  letter-spacing: 0.16em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 8px;
  font-size: clamp(52px, 7vw, 95px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}
.primary-button {
  display: inline-flex;
  gap: 18px;
  margin-top: 19px;
  padding: 15px 23px;
  background: #e8dfc8;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.hero-stats {
  max-width: 1320px;
  margin: 132px auto 0;
  display: flex;
  gap: clamp(35px, 7vw, 105px);
}
.hero-stats div {
  display: grid;
  gap: 8px;
}
.hero-stats strong {
  font:
    700 30px "Libre Baskerville",
    serif;
}
.hero-stats span {
  color: #b4c4c5;
  font-size: 13px;
}
.library-section {
  max-width: 1320px;
  margin: auto;
  padding: 105px clamp(24px, 6vw, 96px) 116px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 52px);
  letter-spacing: -0.04em;
}
.view-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
}
.view-toggle button {
  width: 34px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #687273;
  cursor: pointer;
  font-size: 18px;
}
.view-toggle button.active {
  background: var(--navy);
  color: #fff;
}
.filter-panel {
  margin-top: 52px;
  padding: 13px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: #fbfaf5;
}
.search-box {
  flex: 1;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 13px;
  color: #748185;
}
.search-box span {
  font:
    26px Georgia,
    serif;
  transform: rotate(-18deg);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.category-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  color: #536061;
  background: transparent;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
}
.tab.active,
.tab:hover {
  background: var(--navy);
  color: #fffaf0;
}
.results-line {
  margin: 30px 0 18px;
  color: #7b8180;
  font-size: 12px;
}
.results-line strong {
  color: var(--amber);
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.report-card {
  min-height: 315px;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.22);
}
.report-card[hidden] {
  display: none;
}
.report-card:hover {
  background: #fffdf7;
}
.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.category-tag {
  padding: 4px 8px;
  border: 1px solid currentColor;
  font:
    500 10px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}
.category-tag.机器学习 {
  color: #477c78;
}
.category-tag.基本面 {
  color: #a06b2b;
}
.category-tag.价量 {
  color: #79628c;
}
.index-number,
.card-footer time {
  color: #748081;
  font:
    11px "DM Mono",
    monospace;
}
.report-topic {
  margin: 24px 0 8px;
  color: #8c673b;
  font-size: 12px;
}
.report-card h3 {
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.report-abstract {
  color: #697272;
  font-size: 13px;
  line-height: 1.75;
}
.card-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e4e0d5;
}
.report-actions {
  display: flex;
  gap: 12px;
}
.report-actions a {
  color: var(--navy);
  font-size: 13px;
}
.report-catalog.list {
  display: block;
  border-top: 1px solid var(--line);
  border-left: 0;
}
.report-catalog.list .report-card {
  min-height: 76px;
  padding: 14px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 8px 14px;
  border-left: 1px solid var(--line);
}
.report-catalog.list .card-topline {
  display: contents;
}
.report-catalog.list .category-tag {
  grid-column: 1;
}
.report-catalog.list .index-number {
  display: none;
}
.report-catalog.list .report-topic {
  display: none;
}
.report-catalog.list .report-card h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}
.report-catalog.list .report-abstract {
  margin: 4px 0 0;
  font-size: 11px;
}
.report-catalog.list .card-footer {
  grid-column: 3;
  grid-row: 1/3;
  margin: 0;
  padding: 0;
  border: 0;
}
.report-catalog.list .card-footer time {
  display: none;
}
footer {
  padding: 24px;
  text-align: center;
  color: #778180;
  background: #f0eee7;
  font-size: 12px;
}
@media (max-width: 850px) {
  .hero {
    min-height: 650px;
  }
  .hero-content {
    margin-top: 145px;
  }
  .hero-stats {
    margin-top: 78px;
  }
  .filter-panel {
    display: block;
  }
  .search-box {
    height: 45px;
  }
  .category-tabs {
    margin-top: 9px;
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 43px;
  }
  .hero-stats {
    gap: 25px;
  }
  .hero-stats strong {
    font-size: 24px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-catalog.list .report-card {
    grid-template-columns: 1fr;
  }
  .report-catalog.list .card-footer {
    grid-column: 1;
    grid-row: auto;
  }
}
