/* /datasets/ page — built-in + open-source dataset gallery
 * Sits on top of site.css; keeps the deep-navy data-foundation aesthetic
 * from the original /showcase page.
 */

:root {
  --c-navy: #0b1f3a;
  --c-navy-2: #143763;
  --c-gold: #d7b56d;
  --c-gold-soft: #f6d27a;
  --c-warm: #a4731c;
  --c-section-alt: #f1f5f9;
}

/* ── Hero ─────────────────────────────────────────── */
.ds-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 52%, #0c4c53 100%);
  color: white;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.ds-hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,181,109,0.85), transparent);
}
.ds-hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(215,181,109,0.55);
  background: rgba(183,121,31,0.16);
  color: #f5dfaa;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px; margin-bottom: 18px;
  text-decoration: none;
}
.ds-hero-kicker:hover { color: #fff2c9; border-color: rgba(215,181,109,0.9); }

.ds-hero h1 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08; margin: 0 0 16px;
  letter-spacing: -0.02em; font-weight: 800;
  max-width: 820px;
}
.ds-hero h1 .accent { color: var(--c-gold-soft); }

.ds-hero-lede {
  font-size: 16px; color: rgba(255,255,255,0.84);
  max-width: 880px; line-height: 1.6;
  margin: 0 0 28px;
}
.ds-hero-lede strong { color: white; }

.ds-hero-proof {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px; max-width: 880px;
}
.proof-pill {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px 14px;
  min-height: 78px;
}
.proof-num {
  color: var(--c-gold-soft);
  font-size: 20px; line-height: 1.1; font-weight: 800;
}
.proof-label {
  color: rgba(255,255,255,0.72);
  font-size: 12.5px; margin-top: 6px;
}

@media (max-width: 720px) {
  .ds-hero-proof { grid-template-columns: repeat(2, 1fr); }
}

/* ── Chain coverage band ──────────────────────────── */
.chain-band {
  background: white;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--c-border);
}
.chain-band-title {
  font-size: 12px; font-weight: 700;
  color: var(--c-text-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.chain-map {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.chain-item {
  border: 1px solid var(--c-border);
  background: #f8fafc;
  border-radius: 7px;
  padding: 12px 12px;
  min-height: 64px;
}
.chain-item b {
  display: block;
  font-size: 13.5px; color: var(--c-navy);
  margin-bottom: 4px; font-weight: 700;
}
.chain-item span {
  color: var(--c-text-mute);
  font-size: 11.5px; line-height: 1.35;
  display: block;
}
@media (max-width: 880px) {
  .chain-map { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .chain-map { grid-template-columns: repeat(2, 1fr); }
}

/* ── Section wrapper ──────────────────────────────── */
.ds-section { padding: 56px 0; }
.ds-section.alt { background: var(--c-section-alt); }
.section-tag {
  font-size: 12px; font-weight: 700;
  color: var(--c-brand);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.ds-section .section-title {
  font-size: 1.6rem; margin: 0 0 10px;
  font-weight: 700; color: var(--c-text);
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--c-text-soft); margin: 0 0 28px;
  max-width: 780px; font-size: 0.98rem;
}

/* ── KG hero card (长效演进的知识图谱) ─────────────── */
.kg-card-wrap { max-width: 1100px; margin: 0 auto; }
.kg-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 28px 30px;
  border-top: 4px solid #2c6a3a;
  box-shadow: var(--c-shadow);
}
.kg-card-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px;
}
.kg-card-head > div { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ds-card-version {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-warm);
  background: #fffaee;
  border: 1px solid #f0e0bd;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}
.ds-card-evolving {
  font-size: 11.5px;
  color: var(--c-success, #059669);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.kg-card h3 {
  font-size: 1.4rem;
  margin: 6px 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kg-card > p {
  color: var(--c-text-soft);
  font-size: 0.96rem;
  margin: 0 0 20px;
  max-width: 760px;
  line-height: 1.6;
}
.kg-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.kg-stats > div { text-align: center; }
.kg-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-navy);
}
.kg-stats span {
  font-size: 11.5px;
  color: var(--c-text-mute);
}
@media (max-width: 720px) {
  .kg-stats { grid-template-columns: repeat(3, 1fr); }
  .kg-card { padding: 22px 18px; }
}
.kg-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.kg-update {
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 16px 18px;
}
.kg-update-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kg-code {
  margin: 0;
  background: #0f1419;
  color: #d8dee4;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.kg-code .cm { color: #6b7280; }

/* ── HQ domain grid (6 分领域) ─────────────────────── */
.hq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.hq-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 20px 20px 16px;
  text-decoration: none; color: var(--c-text);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  border-top: 3px solid var(--c-brand);
}
.hq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15,23,42,.07);
  text-decoration: none;
  border-top-color: var(--c-accent);
}
.hq-card-icon { font-size: 1.6rem; margin-bottom: 6px; }
.hq-card-head {
  display: flex; justify-content: space-between;
  align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.hq-card h3 {
  font-size: 1.1rem; margin: 0;
  font-weight: 700;
}
.hq-card p {
  color: var(--c-text-soft);
  font-size: 0.88rem;
  margin: 0 0 12px;
  flex: 1; line-height: 1.5;
}
.hq-card-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 10px;
}
.hq-card-stats > span {
  font-size: 12px;
  color: var(--c-text-mute);
}
.hq-card-stats b {
  color: var(--c-navy);
  font-family: var(--font-mono);
  margin-right: 4px;
}
.hq-foot {
  margin-top: 24px;
  font-size: 0.88rem; color: var(--c-text-mute);
  text-align: center;
  padding-top: 16px;
  border-top: 1px dashed var(--c-border);
}

/* ── Self-built dataset cards ─────────────────────── */
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.ds-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 22px 22px 18px;
  text-decoration: none; color: var(--c-text);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  border-top: 4px solid var(--c-brand);
}
.ds-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
  text-decoration: none;
  border-top-color: var(--c-accent);
}
.ds-card.built { border-top-color: #2c6a3a; }
.ds-card.built:nth-of-type(2) { border-top-color: var(--c-warm); }
.ds-card.built:nth-of-type(3) { border-top-color: #5c2c70; }

.ds-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.ds-card-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border-radius: 4px;
  font-size: 11.5px; font-weight: 600;
}
.ds-card-license {
  font-size: 11px; color: var(--c-text-mute);
  font-family: var(--font-mono);
}
.ds-card h3 {
  font-size: 1.2rem; margin: 4px 0 10px;
  font-weight: 700;
}
.ds-card p {
  font-size: 0.93rem; color: var(--c-text-soft);
  margin: 0 0 16px; flex: 1;
}
.ds-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 14px;
}
.ds-card-stats > div {
  text-align: center;
}
.ds-card-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-navy);
}
.ds-card-stats span {
  font-size: 11px; color: var(--c-text-mute);
}
.ds-card-link {
  color: var(--c-brand); font-weight: 600; font-size: 0.9rem;
}

/* ── Open-source dataset cards ────────────────────── */
.osd-cat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 28px 0 14px;
  padding-left: 4px;
}
.osd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.osd-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 16px 16px 14px;
  text-decoration: none; color: var(--c-text);
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.osd-card:hover {
  border-color: var(--c-brand);
  box-shadow: 0 3px 10px rgba(15,23,42,.06);
  text-decoration: none;
}
.osd-card-head {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 8px; margin-bottom: 6px;
}
.osd-card-head b {
  font-size: 1rem; font-weight: 700;
  color: var(--c-navy);
}
.osd-org {
  font-size: 11px; color: var(--c-text-mute);
  font-family: var(--font-mono);
}
.osd-card p {
  font-size: 0.86rem; color: var(--c-text-soft);
  margin: 4px 0 10px; flex: 1; line-height: 1.5;
}
.osd-meta {
  font-size: 11.5px; color: var(--c-text-mute);
  margin-top: auto;
}
.osd-meta span { color: var(--c-text-soft); }

.osd-foot {
  margin-top: 28px;
  font-size: 0.88rem; color: var(--c-text-mute);
  text-align: center;
  padding-top: 18px;
  border-top: 1px dashed var(--c-border);
}

/* ── Partner band ─────────────────────────────────── */
.partners {
  background: white;
  padding: 28px 0 32px;
  border-top: 1px solid var(--c-border);
}
.partners-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.partners-label {
  font-size: 12px; font-weight: 700;
  color: var(--c-text-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.partners-cta {
  color: var(--c-brand); font-size: 13px; font-weight: 700;
  text-decoration: none;
}
.partners-cta:hover { text-decoration: underline; }
.partners img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

/* ── Active nav highlight ─────────────────────────── */
.nav-main a.active {
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-weight: 600;
}
