/* ============================================================
   铃铛谱 · 全站样式
   宣纸白底 · 墨字 · Noto Serif SC · 中式素雅
   ============================================================ */

:root {
  --paper: #f7f5ef;
  --paper-card: #fdfcf8;
  --ink: #2b2a26;
  --ink-light: #6f6a5d;
  --line: #e4dfd2;
  --accent: #3d5a6c;
  --gold-line: #c9a227;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(61, 90, 108, 0.16);
}

/* ---------------- 顶栏 ---------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  max-width: 920px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  align-self: center;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 12.5px;
  color: var(--ink-light);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.nav-link {
  color: var(--ink-light);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------------- 页首（首页 Hero） ---------------- */
.hero {
  text-align: center;
  padding-top: 84px;
  padding-bottom: 56px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.32em;
  margin: 0 0 0 0.32em; /* 视觉居中补偿字距 */
  line-height: 1.2;
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--ink-light);
  font-size: 17px;
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* ---------------- 两大入口 ---------------- */
.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 72px;
}

.entry-card {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
  color: var(--ink);
  transition: transform 160ms ease-out, border-color 160ms ease-out;
}

.entry-card:hover {
  text-decoration: none;
  border-color: #d2cbb9;
  transform: translateY(-2px);
}

.entry-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.entry-desc {
  margin: 0 0 18px;
  color: var(--ink-light);
  font-size: 15px;
  line-height: 1.85;
}

.entry-go {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---------------- 章节标题（带细横线） ---------------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin: 0 0 30px;
  padding-left: 0.3em;
}

.title-rule {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--line);
}

/* ---------------- 七铃群像卡 ---------------- */
#bells {
  padding-bottom: 88px;
}

.bell-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bell-card {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  color: var(--ink);
  transition: transform 160ms ease-out, border-color 160ms ease-out;
}

.bell-card:hover {
  text-decoration: none;
  border-color: #d2cbb9;
  transform: translateY(-2px);
}

.bell-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bell-card-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bell-card-attr {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bell-card-pos {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-light);
  line-height: 1.8;
}

/* ---------------- 色点 ---------------- */
.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.dot-card {
  width: 10px;
  height: 10px;
}

.dot-mini {
  width: 8px;
  height: 8px;
}

.dot-seal {
  width: 16px;
  height: 16px;
}

/* ---------------- 编年史页 ---------------- */
.page-head {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 44px;
}

.page-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
}

.page-lede {
  margin: 14px 0 0;
  color: var(--ink-light);
  font-size: 15.5px;
  letter-spacing: 0.05em;
}

.timeline {
  padding-bottom: 20px;
}

.tl-period {
  margin-bottom: 46px;
}

.tl-period-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.tl-period-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tl-period-years {
  font-size: 13.5px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* 时期内竖线 */
.tl-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 13px;
  position: relative;
}

.tl-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.tl-event {
  position: relative;
  padding: 0 0 30px 26px;
}

.tl-event:last-child {
  padding-bottom: 4px;
}

.tl-dot {
  position: absolute;
  left: -13px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--period-color);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--period-color);
}

.tl-dot-major {
  width: 14px;
  height: 14px;
  left: -15px;
  top: 7px;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.tl-date {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.major-badge {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid;
  border-radius: 3px;
  padding: 1px 7px 2px;
  line-height: 1.6;
}

.tl-title {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.tl-text {
  margin: 0;
  font-size: 15.5px;
  color: #3a382f;
  line-height: 1.9;
}

/* 编年史文末 */
.chronicle-end {
  padding-bottom: 72px;
}

.paper-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 26px;
  margin-bottom: 16px;
}

.end-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.end-text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.9;
}

/* ---------------- 人物页 ---------------- */
.bell-head {
  padding-top: 52px;
  padding-bottom: 30px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-light);
  margin-bottom: 26px;
  letter-spacing: 0.04em;
}

.back-link:hover {
  color: var(--accent);
}

.bell-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bell-name {
  margin: 0;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.bell-attr-tag {
  font-size: 14px;
  color: var(--ink-light);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 10px 3px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.bell-position {
  margin: 14px 0 0;
  font-size: 16.5px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.bell-joined {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  min-height: 1em;
}

.bell-bio,
.bell-works {
  padding-bottom: 8px;
}

.block-title {
  margin: 30px 0 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.bio-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 2;
  color: #33312a;
}

/* 名句引用块 */
.quotes {
  margin: 22px 0 0;
  padding: 0;
}

.quote-line {
  margin: 0 0 10px;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--bell-color);
  font-size: 16px;
  color: #45423a;
  line-height: 1.9;
}

.quote-line:last-child {
  margin-bottom: 0;
}

/* 代表作 */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
}

.work-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.work-title {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  flex: 1;
}

.likes {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-light);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 9px 2px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.work-summary {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.9;
}

.work-link {
  font-size: 14.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* 其余六铃 */
.other-bells {
  padding-top: 34px;
  padding-bottom: 72px;
}

.other-label {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.2em;
}

.other-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

.other-bell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  color: var(--ink);
  padding: 3px 0;
}

.other-bell:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
}

.footer-line {
  display: none;
}

.footer-main {
  margin: 0;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.footer-sub {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

/* ---------------- 动效（仅淡入/轻微上浮，内容默认可见） ---------------- */
@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-fade {
  animation: pageFade 200ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .page-fade {
    animation: none;
  }
  .entry-card,
  .bell-card {
    transition: none;
  }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 15.5px;
  }

  .entries {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 52px;
  }

  .bell-grid {
    grid-template-columns: 1fr;
  }

  #bells {
    padding-bottom: 60px;
  }

  .page-head {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  .page-title {
    font-size: 31px;
  }

  /* 编年史竖线左移至 20px，内容右缩进 */
  .timeline {
    padding-left: 0;
  }

  .tl-list {
    padding-left: 13px;
  }

  .tl-period {
    margin-bottom: 38px;
  }

  .tl-event {
    padding-left: 24px;
  }

  .bell-head {
    padding-top: 36px;
  }

  .bell-name {
    font-size: 34px;
  }

  .bell-title-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .work-head {
    flex-direction: column;
    gap: 8px;
  }

  .work-card {
    padding: 19px 20px;
  }

  .footer-main,
  .footer-sub {
    text-align: center;
  }
}

/* 人物页立绘 */
.bell-portrait-sec {
  padding-bottom: 10px;
}

.bell-portrait {
  margin: 0 auto;
  max-width: 380px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px;
}

.bell-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}

.portrait-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  text-align: center;
}

.bell-portrait.is-empty {
  border-style: dashed;
  background: transparent;
}

.portrait-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 16px;
}

.dual-badge {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 9px 2px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.works-note {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-light);
}

@media (max-width: 720px) {
  .bell-portrait {
    max-width: 300px;
  }
}
