/* 石室文化墙 · 内容页样式 */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #39434c;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(1000px 600px at -10% 20%, rgba(18, 53, 91, 0.06), transparent 55%),
    linear-gradient(180deg, #faf7f0 0%, #f6f4ee 100%);
  line-height: 1.9;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 22px 90px;
}

/* 页眉 */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(18, 53, 91, 0.18);
}

.masthead .brand {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 22px;
  font-weight: 700;
  color: #12355b;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}

.masthead .back {
  font-size: 13px;
  color: #7a8794;
  text-decoration: none;
  white-space: nowrap;
}

.masthead .back:hover { color: #b08b25; }

/* 卷首引语块 */
.lead {
  margin: 46px 0 0;
}

.lead .lede {
  font-size: 19px;
  line-height: 2;
  color: #22303d;
}

.lead .lede em { font-style: normal; color: #8a6d22; }

/* 章节 */
section {
  margin-top: 64px;
}

.chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.chapter .no {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 13px;
  color: #b08b25;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.chapter .no::after { content: ""; }

.chapter .rule {
  flex: 1;
  height: 1px;
  background: rgba(18, 53, 91, 0.14);
}

h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 24px;
  font-weight: 700;
  color: #12355b;
  letter-spacing: 0.12em;
}

section > p, .prose p {
  margin: 14px 0;
  font-size: 15.5px;
}

.prose .note {
  color: #7a8794;
  font-size: 14px;
}

/* 四面墙 */
.wall-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wall {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 53, 91, 0.12);
  border-radius: 10px;
  padding: 18px 18px 14px;
}

.wall h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #12355b;
  font-weight: 700;
}

.wall .en { font-size: 12px; color: #a39a86; letter-spacing: 0.2em; }

.wall p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #4c5862;
  line-height: 1.85;
}

.wall .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #8a6d22;
  border: 1px solid rgba(176, 139, 37, 0.35);
  padding: 1px 10px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.08);
}

/* 时间轴 */
.timeline {
  margin: 30px 0 0;
  padding-left: 2px;
}

.tl-item {
  position: relative;
  padding: 0 0 40px 34px;
  border-left: 2px solid rgba(18, 53, 91, 0.16);
}

.tl-item:last-child { border-left-color: transparent; padding-bottom: 6px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b08b25;
  border: 3px solid #f6f4ee;
  box-shadow: 0 0 0 2px rgba(176, 139, 37, 0.4);
}

.tl-item .year {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 15px;
  color: #12355b;
  letter-spacing: 0.08em;
}

.tl-item h3 {
  margin: 6px 0 0;
  font-size: 19px;
  color: #22303d;
  font-weight: 700;
}

.tl-item p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: #46525c;
}

.tl-item .src {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #98a2ad;
}

.tl-tail {
  margin: 4px 0 0 34px;
  padding-left: 10px;
  color: #98a2ad;
  font-size: 14px;
}

/* 手记 */
.notes { list-style: none; margin: 18px 0 0; padding: 0; }

.notes li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px dashed rgba(18, 53, 91, 0.12);
  font-size: 14.5px;
  color: #46525c;
}

.notes li::before {
  content: "记";
  position: absolute;
  left: 0;
  top: 14px;
  font-size: 11px;
  color: #b08b25;
  border: 1px solid rgba(176, 139, 37, 0.4);
  border-radius: 3px;
  padding: 0 3px;
}

.notes .date {
  color: #8f99a3;
  font-size: 13px;
  margin-right: 8px;
}

/* 页脚 */
footer {
  margin-top: 80px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 53, 91, 0.14);
  font-size: 13px;
  color: #8f99a3;
  line-height: 2;
  text-align: center;
}

footer a { color: #12355b; text-decoration: none; }

footer a:hover { color: #b08b25; }

@media (max-width: 620px) {
  .page { padding: 36px 18px 70px; }
  .masthead { flex-direction: column; gap: 6px; }
  .wall-grid { grid-template-columns: 1fr; }
  h2 { font-size: 21px; }
  .lead .lede { font-size: 17px; }
}

/* ===== 史脉页补充 ===== */

/* 说明条 */
.era-note {
  font-size: 14px;
  color: #5c6872;
  border-left: 3px solid rgba(176, 139, 37, 0.5);
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.06);
}

/* 名号流转链 */
.chain {
  margin: 22px 0 0;
  padding: 16px 20px;
  background: rgba(18, 53, 91, 0.05);
  border-radius: 10px;
  font-size: 14px;
  line-height: 2.4;
  color: #46525c;
}

.chain .stage {
  display: inline-block;
  margin: 2px 0;
  padding: 1px 10px;
  border-radius: 3px;
  border: 1px solid rgba(18, 53, 91, 0.22);
  color: #12355b;
  font-size: 13.5px;
}

.chain .arr { color: #b08b25; margin: 0 4px; }

/* 名录 */
.roster { margin-top: 18px; }

.roster .group { margin: 18px 0 0; }

.roster h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #b08b25;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.roster .names {
  font-size: 14.5px;
  color: #39434c;
  line-height: 2.2;
}

.roster .names span {
  display: inline-block;
  margin-right: 16px;
}

/* 入口小按钮 */
.to-page {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: #12355b;
  text-decoration: none;
  border: 1px solid rgba(18, 53, 91, 0.35);
  border-radius: 20px;
  padding: 4px 18px;
  transition: 0.2s;
}

.to-page:hover { background: #12355b; color: #f6f4ee; }

@media (max-width: 620px) {
  .chain { padding: 12px 14px; }
}
