/* ==========================================================
   GitVision · Editorial Redesign
   设计参考：Stripe Press · 杂志感 · 编辑出版物
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* 米色 / 暖白基底 */
  --paper: #f5f1e8;
  --paper-2: #ebe5d4;
  --paper-3: #e0d8c0;
  --ink: #1a1814;
  --ink-soft: #4a4640;
  --ink-dim: #8a8478;
  --rule: #d4cdb8;
  --accent: #8b1a1a;        /* 勃艮第红 */
  --accent-soft: #b04545;
  --highlight: #f0d878;
  --success: #4a6b3a;
  --danger: #8b2020;
  --warning: #a06820;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-feature-settings: 'ss01', 'cv01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ============================================
   Header — 杂志刊头
   ============================================ */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 80px 0 60px;
  background: var(--paper);
  position: relative;
}
.site-header::before {
  content: 'A FIELD GUIDE TO OPEN SOURCE';
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.header-text { width: 100%; }
.site-header h1 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: 'opsz' 144;
  margin-bottom: 18px;
}
.site-header h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.subtitle {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* 语言切换 — 极简右上角 */
.lang-switch {
  position: absolute;
  top: 28px;
  right: 32px;
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--ink-dim);
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color .2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.lang-btn:not(:last-child)::after {
  content: '·';
  margin-left: 18px;
  color: var(--ink-dim);
  text-decoration: none;
  display: inline-block;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.site-footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   输入区 — 极简下划线式
   ============================================ */
.input-card {
  margin-top: 56px;
  padding: 0;
  background: transparent;
  border: none;
}
.input-row {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  align-items: baseline;
}
#repo-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px 4px;
  font-size: 22px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
#repo-input::placeholder {
  color: var(--ink-dim);
  font-style: italic;
  font-weight: 300;
}
#repo-input:focus { outline: none; }
#analyze-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 26px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  border-radius: 0;
}
#analyze-btn:hover { background: var(--accent); }
#analyze-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  background: var(--ink-dim);
}

.status {
  margin-top: 20px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  min-height: 20px;
  font-family: 'Fraunces', serif;
}
.status.loading::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status.error { color: var(--danger); }
.status.ok { color: var(--success); }

/* ============================================
   推荐仓库 — 编辑精选
   ============================================ */
.recommendations {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.recommendations.hidden { display: none; }

.rec-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.rec-tab {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color .2s;
}
.rec-tab:hover { color: var(--ink); }
.rec-tab.active {
  color: var(--ink);
}
.rec-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.rec-panels { padding: 0; }
.rec-panel { display: none; }
.rec-panel.active { display: block; }
.rec-source {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.rec-source a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.rec-source a:hover { border-color: var(--accent); }

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 580px;
  overflow-y: auto;
}
.rec-list::-webkit-scrollbar { width: 4px; }
.rec-list::-webkit-scrollbar-thumb { background: var(--rule); }

.rec-loading {
  color: var(--ink-dim);
  font-size: 14px;
  font-style: italic;
  font-family: 'Fraunces', serif;
  padding: 16px 0;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding .2s;
}
.rec-item:last-child { border-bottom: none; }
.rec-item:hover {
  padding-left: 8px;
}
.rec-rank {
  flex: 0 0 32px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-dim);
  font-variant-numeric: oldstyle-nums;
  text-align: right;
}
.rec-item:nth-child(1) .rec-rank,
.rec-item:nth-child(2) .rec-rank,
.rec-item:nth-child(3) .rec-rank {
  color: var(--accent);
}
.rec-info { flex: 1; min-width: 0; }
.rec-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.rec-desc {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.rec-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.rec-analyze, .rec-goto {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
}
.rec-analyze:hover {
  background: var(--ink);
  color: var(--paper);
}
.rec-goto {
  border-color: var(--rule);
  color: var(--ink-dim);
}
.rec-goto:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* 返回按钮 */
.back-to-rec {
  margin-top: 32px;
  background: none;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 500;
  padding: 0;
  transition: color .2s;
}
.back-to-rec:hover { color: var(--accent); }
.back-to-rec.hidden { display: none; }
.back-to-rec::before { content: '←  '; }

/* ============================================
   分析结果 — 章节式呈现
   ============================================ */
.result {
  margin-top: 64px;
}
.result.hidden { display: none; }

.panel {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.panel:first-child { border-top: none; padding-top: 32px; }
.panel.highlight {
  background: linear-gradient(180deg, rgba(240, 216, 120, 0.08), transparent);
}

.panel h2 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
  line-height: 1.15;
  position: relative;
  padding-left: 0;
}
.panel[data-chapter]::before {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
  content: 'CHAPTER ' attr(data-chapter);
}

.panel h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.panel-desc {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
  margin: -16px 0 28px;
  max-width: 640px;
}

/* ============================================
   ① 基础信息
   ============================================ */
.basic-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 40px;
}
.basic-info .item {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.basic-info .label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.basic-info .value {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.4;
}

/* ============================================
   ② 简介
   ============================================ */
.overview {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  max-width: 720px;
}
.overview p { margin-bottom: 16px; }
.overview p:first-child::first-letter {
  font-size: 56px;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 6px 8px 0 0;
  color: var(--accent);
  font-style: normal;
}
.overview strong {
  font-weight: 600;
  color: var(--ink);
}
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--paper-2);
  padding: 3px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 2px;
}

/* ============================================
   ③ 一键直达
   ============================================ */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.quick-links a {
  display: block;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background .2s;
}
.quick-links a:hover {
  background: var(--paper-2);
}
.quick-links .title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.quick-links .desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.year-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
}
.year-jumps a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  margin: 0 -1px -1px 0;
  border: 1px solid var(--rule);
  transition: all .15s;
}
.year-jumps a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
  z-index: 1;
}

/* ============================================
   ④ 首次提交
   ============================================ */
.first-commit {
  background: var(--paper-2);
  padding: 32px 36px;
  border-left: 3px solid var(--accent);
}
.first-commit .sha {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 4px 8px;
  letter-spacing: 0.02em;
}
.first-commit .meta {
  margin-top: 14px;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-dim);
}
.first-commit .msg {
  margin-top: 12px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.first-commit .btn {
  display: inline-block;
  margin-top: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.first-commit .btn:hover { background: var(--accent); }

/* ============================================
   ⑤ Star 增长曲线
   ============================================ */
.star-history {
  margin-top: 4px;
  text-align: center;
  background: var(--paper-2);
  padding: 32px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-history-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: opacity .2s;
}
.star-history-link:hover { opacity: 0.85; }
.star-history img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: invert(0.9) hue-rotate(180deg);  /* 把深色图反相为浅底 */
}

/* ============================================
   ⑥ 时间线
   ============================================ */
.timeline { margin-top: 8px; }
.tl-stats {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.tl-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.tl-stats-row strong {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.tl-stats-row span {
  display: flex;
  flex-direction: column;
}
.tl-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}
.tl-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.tl-badge-ok { background: var(--success); color: var(--paper); }
.tl-badge-warn { background: var(--warning); color: var(--paper); }
.tl-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  font-size: 10px;
  color: var(--ink-dim);
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: help;
  position: relative;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.tl-tip:hover { color: var(--ink); border-color: var(--ink); }
.tl-tip:hover::before {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  padding: 10px 14px;
  width: 320px;
  white-space: pre-wrap;
  z-index: 100;
  line-height: 1.5;
}
.tl-refresh-btn {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: all .15s;
}
.tl-refresh-btn:hover { background: var(--ink); color: var(--paper); }
.tl-refresh-btn:disabled { opacity: 0.5; cursor: wait; }

.tl-years {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
  overflow-x: auto;
}
.tl-year-col {
  flex: 1 0 auto;
  min-width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform .15s;
}
.tl-year-col:hover { transform: translateY(-2px); }
.tl-year-col.active .tl-year-bar { background: var(--accent); }
.tl-year-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.tl-year-bar {
  width: 100%;
  background: var(--ink);
  transition: background .2s;
}
.tl-year-col:hover .tl-year-bar { background: var(--accent-soft); }
.tl-year-label {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.tl-month-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  margin-top: 0;
}
.tl-month-panel.open {
  max-height: 320px;
  margin-top: 24px;
}
.tl-month-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.tl-month-header h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.close-btn {
  background: none;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.close-btn:hover { color: var(--accent); }
.tl-month-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  height: 160px;
}
.tl-month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.tl-month-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-dim);
  margin-bottom: 3px;
}
.tl-month-bar {
  width: 100%;
  background: var(--ink);
  min-height: 2px;
}
.tl-month-bar.empty { background: var(--rule); }
.tl-month-name {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-soft);
}

/* ============================================
   ⑦ 里程碑
   ============================================ */
.milestones {
  display: flex;
  flex-direction: column;
}
.milestone-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.milestone-item:last-child { border-bottom: none; }
.badge {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  flex-shrink: 0;
}
.badge.first { background: var(--accent); color: var(--paper); }
.badge.tag { background: var(--ink); color: var(--paper); }
.milestone-item .title {
  flex: 1;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.milestone-item a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  margin-left: 12px;
  transition: all .15s;
}
.milestone-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   ⑧ 分类
   ============================================ */
.categorized {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
.cat-box {
  padding: 24px 28px;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.cat-box h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cat-box .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  font-weight: 400;
  margin-left: 4px;
}
.cat-feat h4 { color: var(--success); }
.cat-fix h4 { color: var(--accent); }
.cat-perf h4 { color: var(--warning); }

.cat-box ul { list-style: none; }
.cat-box li {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
}
.cat-box li:last-child { border-bottom: none; }
.cat-box li a {
  color: var(--ink-soft);
  text-decoration: none;
}
.cat-box li a:hover { color: var(--accent); }

/* ============================================
   ⑨ 提交列表
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.commit-list {
  list-style: none;
}
.commit-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.commit-list li:last-child { border-bottom: none; }
.commit-list a {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.commit-list .sha {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.commit-list .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-left: 12px;
}
.commit-list .msg {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.45;
}
.commit-list a:hover .msg { color: var(--accent); }

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-style: italic;
  opacity: 0;
  transition: all .3s ease;
  z-index: 1000;
  max-width: 90vw;
}
.toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .site-header { padding: 56px 0 40px; }
  .lang-switch { top: 16px; right: 24px; }
  .input-card { margin-top: 32px; }
  #repo-input { font-size: 18px; }
  .panel { padding: 40px 0; }
  .panel h2 { font-size: 28px; }
  .first-commit .msg { font-size: 18px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .basic-info { grid-template-columns: 1fr; gap: 18px; }
  .tl-stats-row { gap: 20px; }
  .tl-years { height: 150px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .quick-links { grid-template-columns: 1fr; }
  .categorized { grid-template-columns: 1fr; }
  .rec-item { flex-wrap: wrap; }
  .rec-actions { width: 100%; margin-top: 8px; }
}
