/* 葬AI Web4 - 主样式
   设计取向：黑底血红、独立尖锐、有态度。
   字体：Noto Serif SC 标题 + Noto Sans SC 正文 + JetBrains Mono 数据 */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #c0392b;        /* 血红 */
  --accent-bright: #e74c3c;
  --accent-soft: rgba(192, 57, 43, 0.15);
  --gold: #d4a559;          /* 葬的金 */
  --product: #c0392b;
  --founder: #d4a559;
  --vc: #4a7c8c;
  --company: #6c8eb8;
  --maxw: 1280px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-bright); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: white; }

/* 布局 */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

main { min-height: calc(100vh - 200px); padding: 64px 0; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: "Noto Serif SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  font-size: 20px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--gold);
}
.brand-text { color: var(--text); }
.brand-text .web4 { color: var(--accent-bright); font-size: 12px; font-weight: 700; vertical-align: super; margin-left: 4px; }

.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Hero / 首页首屏 */
.hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(192,57,43,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: "Noto Serif SC", "STSong", "SimSun", serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent-bright); }
.hero h1 .gold { color: var(--gold); }
.hero-lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

/* 统计卡片 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.stat-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}
.stat-num {
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}
.stat-num .unit { font-size: 20px; color: var(--accent-bright); margin-left: 6px; }
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.stat-desc { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.6; }

/* Section 标题 */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
}
.section-title .mark {
  display: inline-block; width: 8px; height: 24px;
  background: var(--accent); margin-right: 14px;
  vertical-align: middle;
}
.section-meta { font-size: 13px; color: var(--text-muted); letter-spacing: 1px; }

/* 分类色标 */
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.dot-product { background: var(--product); }
.dot-founder { background: var(--founder); }
.dot-vc { background: var(--vc); }
.dot-company { background: var(--company); }

/* 首页文章列表 */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.article-card {
  display: block;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
  position: relative;
}
.article-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.article-card .meta {
  display: flex; gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.article-card .meta .author { color: var(--accent-bright); }
.article-card h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text);
}
.article-card .excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .stats-mini {
  display: flex; gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* 文章列表页 */
.list-header {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border);
}
.list-header h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.list-header .lede { color: var(--text-muted); font-size: 16px; max-width: 720px; }

.list-toolbar {
  display: flex; gap: 20px; align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.search {
  flex: 1; min-width: 240px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.search:focus { outline: none; border-color: var(--accent); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.chip:hover, .chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* 文章详情 */
.article-header {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
}
.article-breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--accent-bright); }

.article-header h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.article-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 1px;
}
.article-meta .author { color: var(--accent-bright); font-weight: 700; }
.article-meta .id {
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 11px;
}

.article-body {
  padding: 56px 0;
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  font-family: "Noto Serif SC", serif;
  color: var(--text);
  margin: 48px 0 20px;
  letter-spacing: 1px;
  line-height: 1.4;
}
.article-body h1 { font-size: 36px; font-weight: 900; }
.article-body h2 { font-size: 28px; font-weight: 800; padding-left: 14px; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 22px; font-weight: 700; }
.article-body h4 { font-size: 18px; font-weight: 700; color: var(--gold); }
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--accent-bright); font-weight: 700; }
.article-body em { color: var(--gold); font-style: normal; }
.article-body ul, .article-body ol { padding-left: 28px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body code {
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-card);
  padding: 2px 8px;
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--gold);
}
.article-body pre {
  background: var(--bg-card);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.article-body pre code { background: none; padding: 0; border: none; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  background: var(--accent-soft);
  font-style: italic;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.article-body a {
  color: var(--accent-bright);
  border-bottom: 1px dashed var(--accent);
}
.article-body img { margin: 24px auto; border: 1px solid var(--border); }
.article-body table { border-collapse: collapse; width: 100%; margin: 24px 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; }
.article-body th { background: var(--bg-card); }

.article-nav {
  display: flex; gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.article-nav a {
  flex: 1;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
}
.article-nav a:hover { border-color: var(--accent); }
.article-nav .dir { color: var(--text-dim); font-size: 11px; letter-spacing: 1px; margin-bottom: 6px; }
.article-nav .title { color: var(--text); font-weight: 700; }

/* 文章页提到的实体 */
.entities-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.entities-strip h4 {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.entity-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entity-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.entity-tag:hover { border-color: var(--accent); color: var(--accent-bright); }
.entity-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); }

/* 图谱页 */
.graph-hero {
  padding: 80px 0 32px;
  border-bottom: 1px solid var(--border);
}
.graph-hero h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.graph-hero .lede { color: var(--text-muted); max-width: 720px; line-height: 1.8; }

.graph-controls {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.graph-controls .filter-chips { flex: 1; }

.graph-wrap {
  height: 70vh; min-height: 600px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin: 32px 0;
  position: relative;
}
#graph-canvas { width: 100%; height: 100%; }

.graph-detail {
  position: absolute; top: 16px; right: 16px;
  width: 320px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 20px;
  display: none;
  z-index: 10;
}
.graph-detail.open { display: block; }
.graph-detail h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.graph-detail .type-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--accent);
  color: white;
  margin-bottom: 12px;
}
.graph-detail .desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.graph-detail .stats-row {
  display: flex; gap: 12px; font-size: 11px; color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.graph-detail .relations {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.graph-detail .relations .rel {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.graph-detail .relations .rel:last-child { border-bottom: none; }
.graph-detail .relations .rel .rel-type {
  color: var(--accent-bright);
  font-weight: 700;
  margin-right: 8px;
}

/* 排行榜 */
.leaderboards {
  padding: 64px 0;
}
.lb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.lb-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.lb-block h3 {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: 2px;
}
.lb-block h3 .count { font-family: "JetBrains Mono", monospace; color: var(--accent-bright); font-size: 14px; }

.lb-list { list-style: none; }
.lb-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
}
.lb-list li:hover { background: var(--bg-card-hover); }
.lb-list li:last-child { border-bottom: none; }
.lb-rank {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-dim);
  min-width: 32px;
  text-align: right;
}
.lb-rank.top { color: var(--accent-bright); font-weight: 700; }
.lb-info { flex: 1; min-width: 0; }
.lb-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-desc {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-weight {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent-bright);
  font-weight: 700;
}

/* 页脚 */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-inner .mark { color: var(--accent-bright); font-weight: 700; }

/* 工具类 */
.empty {
  padding: 80px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 1px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 80px 0 48px; }
  .hero h1 { font-size: 48px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 16px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 12px; }
  .list-header h1 { font-size: 40px; }
  .graph-hero h1 { font-size: 40px; }
  .stat-num { font-size: 40px; }
  .lb-grid { grid-template-columns: 1fr; }
  .article-nav { flex-direction: column; }
  .graph-detail { width: calc(100% - 32px); }
}

/* 引入字体 */
@font-face {
  font-family: 'Noto Sans SC';
  src: local('Noto Sans SC'), local('PingFang SC'), local('Microsoft YaHei');
  font-display: swap;
}
</content>
</invoke>