@charset "UTF-8";
/* ==========================================================================
   大荒古卷 · 天下贰风格 Typecho 主题
   --------------------------------------------------------------------------
   配色提取自《天下贰》官方玩家站 2007 年内页：
     #120202 墨底 / #7F0400 朱红 / #F2CCAE 纸色 / #9D7D5E 绢边
     #441805 木框 / #986232 暗金 / #FFCA56 鎏金 / #FFEEC8 高光
   版式沿用 985px 三栏（左栏 150 / 中栏自适应 / 右栏 249）。
   ========================================================================== */

:root {
  --bg: #120202;
  --bg-deep: #160100;
  --panel: #7f0400;
  --panel-mid: #510200;
  --panel-dark: #1d0300;
  --panel-darker: #200301;
  --line: #441805;
  --line-soft: rgba(242, 204, 174, 0.16);
  --line-gold: #7a3606;
  --silk: #9d7d5e;
  --text: #f2ccae;
  --text-dim: #b29285;
  --text-mute: #986232;
  --gold: #ffca56;
  --gold-soft: #ffeec8;
  --accent: #c36b26;
  --accent-hot: #f88200;
  --link-blue: #6699cc;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", "PMingLiU", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", sans-serif;
  --wrap: 985px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 50% -220px, rgba(127, 4, 0, 0.55), transparent 72%),
    radial-gradient(900px 520px at 100% 105%, rgba(96, 16, 0, 0.28), transparent 65%),
    url("../img/noise.png");
  background-repeat: no-repeat, no-repeat, repeat;
  font: 13px/1.7 var(--sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 10%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

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

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: #a3160a;
  color: #fff4e6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- 顶部墨条 ---------- */
#topbar {
  height: 34px;
  background: #1a1a1a;
  border-bottom: 1px solid #616b6a;
  position: relative;
  z-index: 3;
}

#topbar .wrap {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-slogan {
  font-size: 12px;
  color: #7d7d7d;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: none;
}

.top-nav a {
  font-size: 12px;
  color: #6d6d6d;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.top-nav a:hover {
  color: #b5b5b5;
}

.top-nav a.is-current {
  color: #b5b5b5;
}

/* ---------- 卷首（原版头图位置） ---------- */
#head {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #3a1206;
  background:
    radial-gradient(680px 260px at 18% 46%, rgba(196, 60, 10, 0.3), transparent 70%),
    radial-gradient(520px 280px at 88% 8%, rgba(132, 10, 0, 0.5), transparent 72%),
    linear-gradient(180deg, #2c0b04 0%, #1b0402 56%, #120202 100%);
}

#head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 137, 74, 0.65), transparent);
}

.head-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.9;
}

.head-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 2, 2, 0.35), rgba(18, 2, 2, 0.85));
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 172px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.head-seal {
  flex: none;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #a3160a, #6d0700);
  border: 1px solid #e0a26a;
  box-shadow:
    0 0 0 4px rgba(163, 22, 10, 0.22),
    inset 0 0 14px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}

.head-seal span {
  font: 700 32px/1 var(--serif);
  color: #fbe6cf;
  text-shadow: 0 1px 0 #4a0500;
}

.head-main {
  flex: 1;
  min-width: 0;
}

.site-title {
  font: 700 40px/1.25 var(--serif);
  letter-spacing: 0.2em;
  color: #f7dcc2;
  text-shadow:
    0 0 28px rgba(255, 120, 40, 0.32),
    0 2px 0 #2a0402;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: #ffe6c8;
}

.site-desc {
  margin-top: 12px;
  font-size: 13px;
  color: #a97a58;
  letter-spacing: 0.18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-side {
  flex: none;
  text-align: right;
  font-size: 11px;
  color: #8a5a3c;
  line-height: 2.1;
  letter-spacing: 0.12em;
}

.head-side a {
  color: #b07a52;
  border-bottom: 1px dotted #6a3218;
}

.head-side a:hover {
  color: var(--gold);
}

/* ---------- 主区域 ---------- */
#main {
  padding-top: 18px;
}

#main .wrap {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 249px;
  column-gap: 10px;
  align-items: start;
}

/* ---------- 左栏 ---------- */
#left {
  font-size: 12px;
  min-width: 0;
}

.left-inner {
  position: sticky;
  top: 12px;
}

.left-inner > .menu:first-child {
  margin-top: 0;
}

.menu {
  margin-top: 10px;
  padding: 5px 2px 6px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(70, 6, 2, 0.92), rgba(20, 2, 1, 0.92));
}

.menu-title {
  position: relative;
  height: 27px;
  margin-bottom: 4px;
  text-align: center;
  font: 700 13px/27px var(--sans);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--text);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, #3a0400, #7f0400 45%, #5c0300 76%, #2c0300);
  overflow: hidden;
  white-space: nowrap;
}

.menu-title::before,
.menu-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.menu-title::before {
  left: 6px;
}

.menu-title::after {
  right: 6px;
}

.menu-list li {
  position: relative;
  margin-bottom: 2px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.menu-list:empty::after {
  content: "暂无内容";
  display: block;
  padding: 8px 10px;
  color: #6f3d24;
  font-size: 12px;
  text-align: center;
}

.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 9px 5px 20px;
  color: var(--text-mute);
  background: linear-gradient(180deg, rgba(127, 4, 0, 0.34), rgba(127, 4, 0, 0.16));
  line-height: 1.7;
  transition: color 0.18s, background 0.18s;
}

.menu-list a::before {
  content: "◆";
  position: absolute;
  left: 7px;
  top: 6px;
  font-size: 6px;
  color: var(--line-gold);
  transition: color 0.18s;
}

.menu-list a:hover {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(160, 20, 6, 0.5), rgba(90, 8, 2, 0.42));
}

.menu-list a:hover::before {
  color: var(--accent-hot);
}

.menu-list a.is-current {
  color: var(--accent);
  text-decoration: underline;
}

.menu-list .sub a {
  padding-left: 28px;
  font-size: 12px;
  color: #7d4c2c;
}

.menu-list .sub a::before {
  content: "›";
  left: 16px;
  top: 2px;
  font-size: 12px;
}

.menu-count {
  flex: none;
  font-size: 11px;
  color: #6f3d24;
}

.menu-list a:hover .menu-count {
  color: var(--accent);
}

.menu-empty {
  padding: 8px 10px;
  color: #6f3d24;
  font-size: 12px;
  text-align: center;
}

/* ---------- 中栏公共 ---------- */
#mid {
  min-width: 0;
}

.nav-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin-bottom: 12px;
  padding: 7px 13px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #4a0001, #330301);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 170, 0.05);
  font-size: 12px;
  line-height: 1.9;
}

.nav-strip a {
  color: var(--gold-soft);
}

.nav-strip a:hover {
  color: var(--accent-hot);
  text-decoration: underline;
}

.nav-strip .is-current {
  color: var(--accent-hot);
}

.nav-strip .sep {
  color: #6a3218;
}

/* 栏目页标题 */
.section-head {
  margin-bottom: 12px;
  padding: 16px 22px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(96, 4, 0, 0.9), rgba(54, 6, 5, 0.9));
  position: relative;
}

.section-head h1 {
  font: 700 20px/1.5 var(--serif);
  color: #fbe8d4;
  letter-spacing: 0.06em;
}

.section-head p {
  margin-top: 4px;
  font-size: 12px;
  color: #a06a4a;
  letter-spacing: 0.06em;
}

/* ---------- 文章列表 ---------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  position: relative;
  padding: 20px 24px 16px;
  border: 1px solid #8b4a22;
  background:
    linear-gradient(180deg, #650300 0%, #510200 58%, #430200 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 170, 0.05),
    inset 0 0 60px rgba(0, 0, 0, 0.32),
    0 6px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 137, 74, 0.8), transparent);
}

.card:hover {
  border-color: #b9752f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 170, 0.08),
    inset 0 0 70px rgba(0, 0, 0, 0.36),
    0 10px 26px rgba(0, 0, 0, 0.45);
}

.card-title {
  font: 700 20px/1.55 var(--serif);
  letter-spacing: 0.02em;
}

.card-title a {
  color: #f7dcc2;
}

.card-title a:hover {
  color: var(--gold);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 9px 0 12px;
  font-size: 11px;
  color: #a06a4a;
  letter-spacing: 0.06em;
}

.card-meta a {
  color: #b98a62;
  border-bottom: 1px dotted #7a3606;
}

.card-meta a:hover {
  color: var(--accent-hot);
}

.card-excerpt {
  font: 14px/1.95 var(--serif);
  color: #e3bfa2;
  overflow: hidden;
}

.card-excerpt p {
  margin: 0;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dotted rgba(242, 204, 174, 0.22);
  font-size: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #8a5a3c;
  min-width: 0;
}

.card-tags:empty {
  display: none;
}

.card-tags a {
  color: #b98a62;
  font-size: 11px;
}

.card-tags a:hover {
  color: var(--gold);
}

.more-link {
  flex: none;
  color: var(--gold);
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.more-link::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s;
}

.more-link:hover {
  color: #ffe6a8;
}

.more-link:hover::after {
  transform: translateX(3px);
}

/* 空状态 */
.empty-box {
  padding: 46px 24px;
  border: 1px dashed #7a3606;
  background: rgba(29, 3, 0, 0.65);
  text-align: center;
  color: #a06a4a;
}

.empty-box strong {
  display: block;
  margin-bottom: 8px;
  font: 700 18px/1.5 var(--serif);
  color: #dbb389;
}

/* ---------- 分页（沿用原站米色页码块） ---------- */
.page-nav {
  margin: 22px 0 4px;
  text-align: center;
}

.page-nav ol,
.page-nav .page-navigator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
}

.page-nav li {
  display: inline-block;
}

.page-nav a,
.page-nav span {
  display: inline-block;
  min-width: 26px;
  padding: 4px 9px;
  border: 1px solid #a56b6c;
  background: #ffd7a2;
  color: #2a0402;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.page-nav a:hover {
  background: #ffca56;
  color: #2a0402;
}

.page-nav .current span,
.page-nav .current a {
  background: #f88200;
  border-color: #c36b26;
  color: #2a0402;
  font-weight: 700;
}

.page-nav .prev a,
.page-nav .next a {
  background: rgba(74, 0, 1, 0.9);
  border-color: var(--line-gold);
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.page-nav .prev a:hover,
.page-nav .next a:hover {
  background: rgba(120, 10, 2, 0.95);
  color: var(--gold);
}

/* ---------- 正文页 ---------- */
.art {
  position: relative;
  border: 1px solid var(--silk);
  border-top-color: #c99a6d;
  background: linear-gradient(180deg, #660300 0%, #510200 42%, #470200 100%);
  box-shadow:
    inset 0 0 0 6px rgba(0, 0, 0, 0.1),
    inset 0 0 70px rgba(0, 0, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.art::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(242, 204, 174, 0.1);
  pointer-events: none;
}

.art-head {
  position: relative;
  padding: 28px 30px 0;
  text-align: center;
}

.art-title {
  font: 700 26px/1.6 var(--serif);
  color: #fbe8d4;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 #2a0402;
  word-break: break-word;
}

.art-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #c99a6d;
  letter-spacing: 0.2em;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #b2866a;
}

.art-meta a {
  color: #d9a97f;
  border-bottom: 1px dotted #7a3606;
}

.art-meta a:hover {
  color: var(--gold);
}

.art-meta .dot {
  color: #6a3218;
}

.art-copy {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
}

.art-copy a {
  color: #bf9c68;
  border-bottom: 1px dotted #7a3606;
}

.art-copy a:hover {
  color: var(--gold);
}

.art-copy .copied {
  color: var(--gold);
  border-bottom-color: transparent;
}

/* 正文排版 */
.art-body {
  margin: 18px 30px 0;
  padding: 20px 0 8px;
  border-top: 1px dotted rgba(242, 204, 174, 0.42);
  font: 15px/2 var(--serif);
  color: var(--text);
  overflow-wrap: break-word;
}

.art-body > *:first-child {
  margin-top: 0;
}

.art-body p {
  margin: 1em 0;
}

.art-body a {
  color: #ffd08a;
  text-decoration: underline;
  text-decoration-color: rgba(255, 208, 138, 0.45);
  text-underline-offset: 3px;
}

.art-body a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.art-body h1,
.art-body h2,
.art-body h3,
.art-body h4 {
  position: relative;
  margin: 1.9em 0 0.85em;
  padding-left: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #fbe8d4;
  letter-spacing: 0.03em;
}

.art-body h1 {
  font-size: 22px;
}

.art-body h2 {
  font-size: 20px;
}

.art-body h3 {
  font-size: 18px;
}

.art-body h4 {
  font-size: 16px;
}

.art-body h1::before,
.art-body h2::before,
.art-body h3::before,
.art-body h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.art-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  padding: 3px;
  border: 1px solid #af6e2f;
  background: #2a0402;
}

.art-body p > img:only-child {
  margin: 1.2em auto;
}

.art-body p[align="center"],
.art-body .aligncenter {
  text-align: center;
}

.art-body figure {
  margin: 1.4em auto;
  text-align: center;
}

.art-body figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #a06a4a;
}

.art-body ul,
.art-body ol {
  margin: 1em 0;
  padding-left: 1.6em;
}

.art-body ul {
  list-style: square;
}

.art-body ol {
  list-style: decimal;
}

.art-body li {
  margin: 0.35em 0;
  list-style: inherit;
}

.art-body li::marker {
  color: var(--accent);
}

.art-body blockquote,
.art-body .quote {
  margin: 1.3em 0;
  padding: 12px 18px;
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--accent);
  background: rgba(100, 30, 0, 0.72);
  color: #e9c6a8;
  font-size: 14px;
  line-height: 1.9;
}

.art-body blockquote p {
  margin: 0.5em 0;
}

.art-body hr {
  height: 1px;
  margin: 2em 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(201, 137, 74, 0.7), transparent);
}

.art-body code {
  padding: 1px 6px;
  border: 1px solid #5a2a10;
  background: rgba(0, 0, 0, 0.28);
  color: #ffd08a;
  font: 13px/1.7 "Cascadia Code", Consolas, "Courier New", monospace;
  border-radius: 2px;
}

.art-body pre {
  margin: 1.3em 0;
  padding: 14px 16px;
  border: 1px solid var(--line-gold);
  background: rgba(0, 0, 0, 0.35);
  color: #e9c6a8;
  font: 13px/1.8 "Cascadia Code", Consolas, "Courier New", monospace;
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
}

.art-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.art-body table {
  width: 100%;
  margin: 1.3em 0;
  border-collapse: collapse;
  font-size: 13px;
  background: #4a0001;
}

.art-body th,
.art-body td {
  padding: 6px 10px;
  border: 1px solid #7a3606;
  text-align: left;
}

.art-body th {
  background: #600000;
  color: #ffca56;
  font-weight: 700;
}

.art-body td {
  color: #e9c6a8;
}

/* 兼容官方站旧文里的样式类 */
.art-body .red {
  color: #e84c00;
}

.art-body .redb {
  color: #e84c00;
  font-weight: 700;
}

.art-body .blue {
  color: #6699cc;
}

.art-body .bbsurl {
  margin: 1em auto;
  padding: 4px 10px;
  border: 1px solid #7a3606;
  background: rgba(100, 30, 0, 0.8);
  color: #bf9c68;
  font-size: 12px;
  text-align: center;
}

.art-body .table3,
.art-body .tablepad12 {
  font-size: 12px;
}

.art-body .table3 td,
.art-body .tablepad12 td {
  border: 1px solid #393d35;
  background: #600000;
  color: #e3b900;
}

.art-body .noborder {
  border: 0;
}

/* 文末标签 */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 24px 30px 0;
  padding-top: 14px;
  border-top: 1px dotted rgba(242, 204, 174, 0.28);
  font-size: 12px;
  color: #a06a4a;
}

.art-tags a {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line-gold);
  background: rgba(74, 0, 1, 0.7);
  color: #d9a97f;
  font-size: 12px;
}

.art-tags a:hover {
  color: var(--gold);
  border-color: var(--accent);
  background: rgba(120, 10, 2, 0.82);
}

.art-foot {
  margin: 18px 30px 0;
  padding-top: 14px;
  border-top: 1px solid rgba(122, 54, 6, 0.8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #8a5a3c;
}

.art-foot .author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.art-foot img {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-gold);
}

/* 相关链接（原站 #rellink） */
.rellink {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line-gold);
  background: #4a0001;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 170, 0.05);
  font-size: 12px;
  color: #d9b48c;
}

.rellink h4 {
  margin-bottom: 8px;
  font: 700 12px/1.5 var(--sans);
  color: var(--gold);
  letter-spacing: 0.18em;
  padding-bottom: 6px;
  border-bottom: 1px dotted #7a3606;
}

.rellink ul {
  list-style: none;
}

.rellink li {
  position: relative;
  padding: 3px 0 3px 14px;
  line-height: 1.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rellink li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 3px;
  color: #8a4a18;
}

.rellink a {
  color: #e0b98f;
}

.rellink a:hover {
  color: var(--gold);
}

.rellink .none {
  color: #7d4c2c;
}

/* 上一篇 / 下一篇 */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.post-nav a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(29, 3, 0, 0.88);
  color: #d9b48c;
  font-size: 12px;
  line-height: 1.7;
  transition: border-color 0.2s, background 0.2s;
}

.post-nav a:hover {
  border-color: var(--accent);
  background: rgba(60, 6, 2, 0.92);
  color: var(--gold);
}

.post-nav .label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: #8a5a3c;
  letter-spacing: 0.16em;
}

.post-nav .next {
  text-align: right;
}

.post-nav .none {
  color: #6f3d24;
}

/* ---------- 评论 ---------- */
.comments {
  margin-top: 14px;
  padding: 20px 24px 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #240402, #160100);
}

.comments-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #7a3606;
  font: 700 15px/1.4 var(--sans);
  color: var(--gold);
  letter-spacing: 0.16em;
}

.comments-title .count {
  font: 400 11px/1.4 var(--sans);
  color: #8a5a3c;
  letter-spacing: 0.08em;
}

.comment-empty {
  padding: 16px 2px;
  color: #8a5a3c;
  font-size: 12px;
  text-align: center;
}

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list > .comment-body {
  border-bottom: 1px dotted rgba(242, 204, 174, 0.14);
}

.comment-body {
  padding: 14px 0 12px;
}

.comment-inner {
  display: flex;
  gap: 12px;
}

.comment-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-gold);
  background: var(--panel-darker);
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  filter: sepia(0.28) saturate(0.85) brightness(0.95);
}

.comment-main {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  font-size: 12px;
  color: #a06a4a;
}

.comment-meta cite {
  font-style: normal;
  font-weight: 700;
  color: #e8c49a;
}

.comment-meta time {
  font-size: 11px;
  color: #8a5a3c;
}

.comment-meta .comment-reply {
  margin-left: auto;
  font-size: 11px;
  color: #b98a62;
  border-bottom: 1px dotted #7a3606;
  cursor: pointer;
}

.comment-meta .comment-reply:hover {
  color: var(--gold);
}

.comment-content {
  margin-top: 6px;
  font: 14px/1.9 var(--serif);
  color: #e9c6a8;
  overflow-wrap: break-word;
}

.comment-content p {
  margin: 0.4em 0;
}

.comment-content a {
  color: #ffd08a;
  text-decoration: underline;
}

.comment-content blockquote {
  margin: 0.8em 0;
  padding: 6px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(100, 30, 0, 0.5);
  font-size: 13px;
}

.comment-list .children {
  margin: 8px 0 0 20px;
  padding-left: 14px;
  border-left: 1px solid rgba(122, 54, 6, 0.7);
}

.comment-list .children .comment-body {
  padding: 10px 0 8px;
}

.comment-list .comment-by-author .comment-meta cite::after {
  content: "作者";
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid #a3160a;
  background: rgba(163, 22, 10, 0.35);
  font-size: 10px;
  font-weight: 400;
  color: #ffb98a;
  line-height: 1.6;
  vertical-align: 1px;
}

.comment-page {
  margin-top: 14px;
}

/* 评论表单 */
.respond {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dotted #7a3606;
  scroll-margin-top: 20px;
}

.respond-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font: 700 14px/1.4 var(--sans);
  color: var(--gold);
  letter-spacing: 0.16em;
}

.respond-title .cancel-reply {
  display: none;
  font: 400 11px/1.4 var(--sans);
  color: #b98a62;
  border-bottom: 1px dotted #7a3606;
  cursor: pointer;
}

.respond-title .cancel-reply.is-on {
  display: inline-block;
}

.respond-title .logged-in {
  font: 400 12px/1.4 var(--sans);
  color: #a06a4a;
  letter-spacing: 0;
}

.respond-title .logged-in a {
  color: #d9a97f;
  border-bottom: 1px dotted #7a3606;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: #a06a4a;
  letter-spacing: 0.14em;
}

.field .required {
  color: #d0673e;
}

.field input,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #442005;
  background: var(--panel-darker);
  color: var(--text);
  font: 13px/1.7 var(--sans);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(195, 107, 38, 0.3);
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  padding: 8px 26px;
  border: 1px solid #d08a3c;
  background: linear-gradient(180deg, #a3160a, #6d0700);
  color: #ffeec8;
  font-size: 13px;
  letter-spacing: 0.2em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 180, 0.1);
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: linear-gradient(180deg, #c01f10, #850b00);
  border-color: var(--gold);
  color: #fff6e8;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-tip {
  font-size: 11px;
  color: #7d4c2c;
}

/* 错误 / 提示 */
.message {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid #a3160a;
  background: rgba(163, 22, 10, 0.22);
  color: #ffb98a;
  font-size: 12px;
}

/* ---------- 右栏 ---------- */
#right {
  min-width: 0;
  padding: 14px 11px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #2b0502, #180200);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.widget {
  margin-bottom: 20px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font: 700 13px/1.4 var(--sans);
  color: var(--gold);
  letter-spacing: 0.18em;
}

.widget-title::before {
  content: "❖";
  margin-right: 6px;
  font-size: 11px;
  color: var(--accent);
  vertical-align: 1px;
}

.widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 1px;
  background: var(--accent);
}

.widget-title a {
  color: inherit;
}

.widget-title .more-mini {
  float: right;
  font: 400 11px/1.4 var(--sans);
  color: #8a5a3c;
  letter-spacing: 0;
}

.widget-title .more-mini:hover {
  color: var(--gold);
}

.widget-list li {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 6px 14px;
  border-bottom: 1px dotted rgba(122, 54, 6, 0.45);
  font-size: 12px;
  line-height: 1.75;
  overflow: hidden;
}

.widget-list li:last-child {
  border-bottom: 0;
}

.widget-list li::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: 6px;
  color: var(--accent);
}

.widget-list a {
  flex: 1 1 auto;
  min-width: 0;
  color: #c88f71;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-list a:hover {
  color: var(--gold);
}

.widget-list .meta {
  flex: none;
  margin-top: 0;
  font-size: 11px;
  color: #7d4c2c;
}

.widget-list:empty::after,
.tag-cloud:empty::after {
  content: "暂无内容";
  display: block;
  padding: 4px 0;
  color: #6f3d24;
  font-size: 12px;
}

/* 卷首 / 焦点文章 */
.focus-post .focus-title {
  display: block;
  font: 700 16px/1.65 var(--serif);
  color: var(--gold);
  margin-bottom: 6px;
}

.focus-post .focus-title:hover {
  color: #ffe6a8;
}

.focus-post .focus-excerpt {
  font: 12px/1.85 var(--serif);
  color: #b29285;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.focus-post .focus-meta {
  margin-top: 8px;
  font-size: 11px;
  color: #7d4c2c;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  padding: 2px 9px;
  border: 1px solid #5a2a10;
  background: rgba(74, 0, 1, 0.62);
  color: #c99a6d;
  font-size: 12px;
  line-height: 1.7;
}

.tag-cloud a:hover {
  border-color: var(--accent);
  background: rgba(120, 10, 2, 0.8);
  color: var(--gold);
}

.tag-cloud .count {
  margin-left: 3px;
  font-size: 10px;
  color: #7d4c2c;
}

/* 搜索 */
.search-form {
  display: flex;
  border: 1px solid var(--line);
  background: var(--panel-darker);
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.search-form input::placeholder {
  color: #6f3d24;
}

.search-form button {
  flex: none;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #5c0a02;
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form button:hover {
  background: #7f1a06;
}

/* 归档统计 */
.widget-note {
  font-size: 11px;
  color: #7d4c2c;
  line-height: 1.9;
}

/* ---------- 页脚 ---------- */
#foot {
  margin-top: 30px;
  border-top: 1px solid #3a1206;
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

#foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7a3606, #c36b26, #7a3606, transparent);
  opacity: 0.55;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding: 28px 0 22px;
  border-bottom: 1px solid #2c0d05;
}

.foot-brand .foot-logo {
  font: 700 22px/1.3 var(--serif);
  color: #e8c49a;
  letter-spacing: 0.18em;
}

.foot-brand .foot-logo a {
  color: inherit;
}

.foot-brand .foot-desc {
  margin-top: 10px;
  font-size: 12px;
  color: #8a5a3c;
  line-height: 1.9;
  max-width: 34em;
}

.foot-links h4 {
  margin-bottom: 10px;
  font: 700 12px/1.4 var(--sans);
  color: #b98a62;
  letter-spacing: 0.2em;
}

.foot-links ul li {
  padding: 3px 0;
  font-size: 12px;
}

.foot-links a {
  color: #8a5a3c;
}

.foot-links a:hover {
  color: var(--gold);
}

.foot-bottom {
  padding: 16px 0 22px;
  text-align: center;
  font-size: 11px;
  color: #5c3a2a;
  letter-spacing: 0.08em;
  line-height: 2;
}

.foot-bottom a {
  color: #7d4c2c;
}

.foot-bottom a:hover {
  color: #b98a62;
}

.foot-bottom .sep {
  margin: 0 8px;
  color: #3a1a0c;
}

.foot-extra {
  margin-top: 6px;
  color: #5c3a2a;
  font-size: 11px;
  letter-spacing: 0;
}

.foot-extra a {
  color: #7d4c2c;
}

/* ---------- 返回顶部 ---------- */
#toTop {
  position: fixed;
  right: 30px;
  bottom: 44px;
  z-index: 20;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  background: rgba(29, 3, 0, 0.92);
  color: var(--gold);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, border-color 0.2s;
}

#toTop.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

#toTop:hover {
  border-color: var(--accent);
  color: #ffe6a8;
}

/* ---------- 404 ---------- */
.error-page {
  padding: 60px 20px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #4a0001, #2a0402);
  text-align: center;
}

.error-page .code {
  font: 700 72px/1 var(--serif);
  color: #a3160a;
  text-shadow: 0 0 40px rgba(163, 22, 10, 0.4);
  letter-spacing: 0.1em;
}

.error-page h1 {
  margin: 14px 0 8px;
  font: 700 20px/1.5 var(--serif);
  color: #fbe8d4;
}

.error-page p {
  color: #a06a4a;
  font-size: 12px;
}

.error-page .btn {
  margin-top: 22px;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #120202;
}

::-webkit-scrollbar-thumb {
  background: #4a1a08;
  border: 2px solid #120202;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a3606;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1010px) {
  :root {
    --wrap: 100%;
  }

  .wrap {
    width: auto;
    max-width: 985px;
    padding-left: 14px;
    padding-right: 14px;
  }

  #main .wrap {
    grid-template-columns: minmax(0, 1fr) 249px;
    column-gap: 12px;
  }

  /* 窄屏收起左栏，导航交给频道条与页脚 */
  #left {
    display: none;
  }
}

@media (max-width: 820px) {
  #main .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  #right {
    margin-top: 4px;
  }

  #right .widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    align-items: start;
  }

  .head-side {
    display: none;
  }

  .site-title {
    font-size: 32px;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #left {
    display: none;
  }

  .top-slogan {
    display: none;
  }

  #topbar .wrap {
    justify-content: flex-end;
  }

  #topbar {
    height: auto;
  }

  #topbar .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 2px 16px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .top-nav {
    gap: 16px;
  }

  .head-inner {
    gap: 14px;
    min-height: 0;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .head-seal {
    width: 48px;
    height: 48px;
  }

  .head-seal span {
    font-size: 24px;
  }

  .site-title {
    font-size: 26px;
    letter-spacing: 0.14em;
  }

  .site-desc {
    white-space: normal;
    letter-spacing: 0.08em;
    font-size: 12px;
  }

  .card {
    padding: 16px 16px 14px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-foot {
    flex-wrap: wrap;
  }

  .art-head {
    padding: 22px 18px 0;
  }

  .art-title {
    font-size: 21px;
  }

  .art-body {
    margin: 16px 18px 0;
    font-size: 15px;
  }

  .art-tags,
  .art-foot {
    margin-left: 18px;
    margin-right: 18px;
  }

  .rellink {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .comments {
    padding: 16px 16px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .comment-list .children {
    margin-left: 8px;
    padding-left: 10px;
  }

  #right .widgets {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #toTop {
    right: 14px;
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 打印 ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  #topbar,
  #left,
  #right,
  #foot,
  #toTop,
  .nav-strip,
  .rellink,
  .post-nav,
  .comments,
  .art-copy {
    display: none !important;
  }

  .art {
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .art-title,
  .art-body,
  .art-body a {
    color: #000;
  }
}
