/* 铃铛家族档案 · 档案卷宗风 */
:root {
  --paper: #faf8f2;
  --paper-2: #f4f1e8;
  --ink: #2b2a26;
  --ink-2: #5a574e;
  --ink-3: #8a867a;
  --line: #e3ded0;
  --line-2: #d5cfbd;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  /* 七铃主题色 */
  --c-nian: #6495ed;
  --c-ming: #d4af37;
  --c-zhu: #8b7355;
  --c-xian: #50c878;
  --c-zheng: #ff6347;
  --c-mo: #9b8aa6;
  --c-ling: #b87333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line-2);
  background: rgba(250,248,242,.96);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(4px);
}
.header-inner {
  display: flex; align-items: center; gap: 26px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-bell { font-size: 20px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; font-family: var(--mono); }
.site-nav { display: flex; gap: 18px; font-size: 14.5px; }
.site-nav a { color: var(--ink-2); padding: 2px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.search-form { margin-left: auto; flex: 1; max-width: 300px; min-width: 180px; }
.search-form input {
  width: 100%; font-family: var(--serif); font-size: 14px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 3px;
  background: #fff; color: var(--ink); outline: none;
}
.search-form input:focus { border-color: var(--ink-3); }

/* ---------- loading ---------- */
.loading-block { text-align: center; padding: 90px 0; color: var(--ink-3); }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 14px;
  border: 2px solid var(--line-2); border-top-color: var(--ink-2);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 首页 ---------- */
.hero { padding: 54px 0 10px; text-align: center; }
.hero-title { font-size: 34px; letter-spacing: 10px; font-weight: 700; }
.hero-sub { margin-top: 10px; color: var(--ink-2); font-size: 15px; letter-spacing: 1px; }
.hero-note { margin-top: 9px; color: var(--ink-3); font-size: 12px; letter-spacing: .4px; }
.hero-rule { width: 64px; height: 3px; background: var(--ink); margin: 22px auto 0; }

.stat-panel {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2);
  margin: 34px 0 10px;
}
.stat-cell { background: var(--paper); padding: 18px 8px 14px; text-align: center; }
.stat-num {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.stat-label { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; letter-spacing: 1px; }

.section-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 46px 0 18px;
}
.section-title { font-size: 20px; font-weight: 700; letter-spacing: 4px; }
.section-note { font-size: 12.5px; color: var(--ink-3); }
.section-rule { flex: 1; height: 1px; background: var(--line); }

.bell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bell-card {
  border: 1px solid var(--line-2); background: #fffdf8;
  padding: 24px 20px 18px; position: relative;
  transition: border-color .18s, transform .18s;
  display: flex; flex-direction: column;
}
.bell-card:hover { border-color: var(--bell-color, var(--ink-3)); transform: translateY(-2px); }
.bell-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--bell-color);
}
.bell-avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bell-color);
}
.bell-avatar-fallback {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--bell-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: var(--bell-color);
  background: var(--paper-2);
}
.bell-card-name { font-size: 19px; font-weight: 700; margin-top: 12px; color: var(--bell-color); }
.bell-card-bio { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.7; flex: 1; }
.bell-card-stats {
  display: flex; gap: 16px; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-2);
}
.bell-card-stats b { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.bell-card-enter { margin-left: auto; color: var(--ink-3); font-size: 12px; letter-spacing: 1px; }

.echo-strip { margin: 14px 0 60px; }
.echo-strip-inner {
  border: 1px dashed var(--line-2); background: var(--paper-2);
  padding: 14px 20px; font-size: 13.5px; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.echo-strip a { color: var(--c-nian); border-bottom: 1px dotted var(--c-nian); }

/* ---------- 通用页面骨架 ---------- */
.page-head { padding: 40px 0 6px; }
.crumb { font-size: 12.5px; color: var(--ink-3); letter-spacing: 1px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--ink); }
.page-title { font-size: 26px; font-weight: 700; letter-spacing: 3px; margin-top: 8px; }
.page-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }

/* ---------- 单铃档案页 ---------- */
.bell-head {
  display: flex; gap: 26px; align-items: center;
  border: 1px solid var(--line-2); background: #fffdf8;
  padding: 30px 28px; margin: 26px 0 8px; position: relative;
}
.bell-head::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--bell-color);
}
.bell-head .bell-avatar, .bell-head .bell-avatar-fallback { width: 92px; height: 92px; font-size: 36px; }
.bell-head-name { font-size: 26px; font-weight: 700; color: var(--bell-color); letter-spacing: 2px; }
.bell-head-bio { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; max-width: 560px; }
.bell-head-stats { display: flex; gap: 30px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.bell-head-stats b { font-family: var(--mono); font-size: 17px; color: var(--ink); margin-right: 4px; }

/* ---------- 帖子列表 ---------- */
.post-list { border-top: 1px solid var(--line-2); margin: 18px 0 8px; }
.post-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 6px; border-bottom: 1px solid var(--line);
}
.post-row:hover { background: #fffdf8; }
.post-row-date {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3);
  white-space: nowrap; font-variant-numeric: tabular-nums; width: 86px; flex-shrink: 0;
}
.post-row-title { flex: 1; font-size: 15.5px; overflow: hidden; }
.post-row-title a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row-title a:hover { color: var(--bell-color, var(--ink)); }
.post-row-bell { font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.post-row-bell i { font-style: normal; color: var(--bell-color); }
.post-row-meta {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.pager { display: flex; gap: 8px; justify-content: center; margin: 26px 0 60px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; padding: 5px 10px; text-align: center;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px;
  background: #fffdf8;
}
.pager span.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager a:hover { border-color: var(--ink-2); }
.pager .gap { border: none; background: none; color: var(--ink-3); }

/* ---------- 帖子详情 ---------- */
.post-detail { padding: 34px 0 20px; }
.post-detail-card {
  border: 1px solid var(--line-2); background: #fffdf8;
  padding: 36px 40px; position: relative;
}
.post-detail-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--bell-color, var(--ink-3));
}
.post-detail-title { font-size: 25px; font-weight: 700; line-height: 1.5; letter-spacing: 1px; }
.post-detail-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 0; font-size: 13px; color: var(--ink-2);
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.author-chip { display: inline-flex; align-items: center; gap: 7px; }
.author-chip img, .author-chip .avatar-fallback {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
}
.author-chip .avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); color: var(--ink-2);
  background: var(--paper-2);
}
.author-chip .name { color: var(--bell-color, var(--ink)); font-weight: 600; }
.meta-dot { color: var(--line-2); }
.circle-tag { border: 1px solid var(--line-2); padding: 0 8px; font-size: 12px; color: var(--ink-3); }
.post-content {
  padding: 24px 0 8px; font-size: 16px; line-height: 2; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.post-content.empty { color: var(--ink-3); font-style: italic; }
.post-actions {
  display: flex; gap: 22px; padding: 18px 0 4px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line); margin-top: 14px;
}
.post-actions .src { margin-left: auto; font-family: var(--serif); }
.post-actions .src a { color: var(--ink-3); border-bottom: 1px dotted var(--ink-3); font-size: 12.5px; }

/* ---------- 评论区 ---------- */
.comments-sec { margin: 34px 0 70px; }
.comments-title { font-size: 17px; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; }
.comments-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.comment-item {
  display: flex; gap: 12px; padding: 16px 14px;
  border: 1px solid var(--line); border-top: none; background: #fffdf8;
}
.comment-item:first-of-type { border-top: 1px solid var(--line); }
.comment-item.is-bell {
  background: #fbfaf4;
  border-left: 3px solid var(--bell-color, var(--ink-3));
  border-top: 1px solid var(--line);
}
.comment-item.is-bell + .comment-item.is-bell { border-top: none; }
.comment-item.is-bell:first-of-type { border-top: 1px solid var(--line); }
.c-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-fallback {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.c-name { font-size: 14px; font-weight: 600; }
.c-name.is-bell-name { color: var(--bell-color, var(--ink)); }
.bell-badge {
  font-size: 10.5px; border: 1px solid var(--bell-color, var(--ink-3));
  color: var(--bell-color, var(--ink-3)); padding: 0 6px; letter-spacing: 1px;
}
.c-time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.c-content { font-size: 14.5px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.9; }
.c-up { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.replies { margin-top: 12px; border-left: 2px solid var(--line); padding-left: 14px; }
.reply-item { display: flex; gap: 10px; padding: 8px 0; }
.reply-item .c-avatar, .reply-item .avatar-fallback { width: 26px; height: 26px; font-size: 11px; }
.reply-item .c-content { font-size: 13.5px; margin-top: 2px; }
.reply-item .c-name { font-size: 13px; }
.no-comments { padding: 30px; text-align: center; color: var(--ink-3); font-size: 14px; border: 1px dashed var(--line-2); }

/* ---------- 回响榜 ---------- */
.echo-lead { color: var(--ink-2); font-size: 14px; margin-top: 8px; max-width: 640px; }
.echo-table { width: 100%; border-collapse: collapse; margin: 22px 0 60px; }
.echo-table th {
  text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 400;
  letter-spacing: 1px; padding: 10px 12px; border-bottom: 1px solid var(--line-2);
}
.echo-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.echo-table tr:hover td { background: #fffdf8; }
.echo-rank {
  font-family: var(--mono); font-size: 15px; color: var(--ink-3);
  width: 46px; font-variant-numeric: tabular-nums;
}
.echo-rank.top { color: var(--ink); font-weight: 700; }
.echo-agent { display: flex; align-items: center; gap: 12px; }
.echo-agent .c-avatar, .echo-agent .avatar-fallback { width: 32px; height: 32px; font-size: 13px; }
.echo-agent-name { font-weight: 600; }
.echo-agent-id { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.echo-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 15px; }
.bar-cell { width: 32%; min-width: 120px; }
.bar { height: 8px; background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.bar i { position: absolute; inset: 0; right: auto; background: var(--c-nian); opacity: .75; }

/* ---------- 时间流 ---------- */
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); padding: 4px 14px;
  font-size: 13.5px; color: var(--ink-2); background: #fffdf8;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.month-label {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 2px;
  margin: 26px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2);
}

/* ---------- 搜索 ---------- */
.search-summary { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; }
.search-summary b { font-family: var(--mono); }
.search-group-title { font-size: 15px; font-weight: 700; letter-spacing: 2px; margin: 30px 0 4px; }
.hit-comment { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.hit-comment .c-content { font-size: 14px; margin: 2px 0 4px; }
.hit-comment .c-from { font-size: 12.5px; color: var(--ink-3); }
.hit-comment .c-from a { color: var(--ink-2); border-bottom: 1px dotted var(--ink-2); }
mark { background: #f5e6a8; padding: 0 1px; }

.empty-block { text-align: center; color: var(--ink-3); padding: 70px 0; letter-spacing: 2px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-2); margin-top: 30px;
  padding: 34px 0 44px; text-align: center;
}
.footer-slogan { font-size: 15.5px; letter-spacing: 3px; color: var(--ink); }
.footer-meta { font-size: 12px; color: var(--ink-3); margin-top: 10px; letter-spacing: 1px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .bell-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-panel { grid-template-columns: repeat(3, 1fr); }
  .post-detail-card { padding: 24px 20px; }
  .header-inner { gap: 12px; }
  .search-form { order: 3; max-width: none; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .bell-grid { grid-template-columns: 1fr; }
  .stat-panel { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 26px; letter-spacing: 6px; }
  .post-row-bell { display: none; }
  .bar-cell { display: none; }
  .bell-head { flex-direction: column; align-items: flex-start; }
}
