/* ==========================================================
   热血传奇资料站 · 前台样式
   ========================================================== */

:root {
  --bg: #0a0705;
  --bg-2: #120c08;
  --panel: #17100b;
  --panel-2: #1e150e;
  --line: rgba(206, 166, 98, 0.22);
  --line-strong: rgba(206, 166, 98, 0.45);
  --gold: #d8b173;
  --gold-bright: #f2d79b;
  --red: #8f1717;
  --red-2: #b62020;
  --text: #e8ddcc;
  --muted: #a08f78;
  --muted-2: #7d6c56;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(120, 26, 16, 0.22), transparent 55%),
    radial-gradient(ellipse at 100% 20%, rgba(110, 80, 40, 0.08), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 8px);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; border: 0; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; }
p { margin: 0; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

.container {
  width: min(1200px, 94%);
  margin: 0 auto;
}

/* ---------------- 顶部公告条 ---------------- */
.topbar {
  background: #070403;
  border-bottom: 1px solid rgba(206, 166, 98, 0.14);
  font-size: 12px;
  color: var(--muted);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 36px;
}
.topbar-notice { display: flex; align-items: center; gap: 10px; min-width: 0; }
.notice-label {
  flex: none;
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #ffe9c4;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 1px 8px;
  border: 1px solid rgba(255, 210, 150, 0.3);
}
.notice-track { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 18px; flex: none; }
.topbar-links a { color: var(--muted); }
.topbar-links a:hover { color: var(--gold); }

/* ---------------- 站点头部 ---------------- */
.site-header {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(150, 28, 20, 0.55) 0%, rgba(80, 12, 8, 0.18) 45%, transparent 65%),
    radial-gradient(ellipse at 88% 30%, rgba(196, 148, 74, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #1e0f08 0%, #120a06 55%, #0b0604 100%);
  border-top: 2px solid rgba(216, 177, 115, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.site-header::after {
  content: "傳 奇";
  position: absolute;
  right: 4%;
  top: -26px;
  font-size: 150px;
  font-weight: 700;
  letter-spacing: 12px;
  color: rgba(216, 177, 115, 0.045);
  writing-mode: horizontal-tb;
  pointer-events: none;
  white-space: nowrap;
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 26px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #ffe3ac;
  letter-spacing: 1px;
  background: linear-gradient(160deg, #a51c1c 0%, #6d0d0d 55%, #380505 100%);
  border: 1px solid rgba(240, 205, 140, 0.55);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.5);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transform: rotate(-3deg);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong {
  font-size: 30px;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #ffe9b8 0%, #d8b173 55%, #a97f3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.65));
}
.logo-text em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 5px;
  color: #b9a488;
}
.header-side { display: flex; align-items: center; gap: 26px; }
.header-search { display: flex; height: 40px; }
.header-search input {
  width: 250px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(8, 5, 3, 0.78);
  border: 1px solid var(--line-strong);
  border-right: 0;
  outline: none;
}
.header-search input::placeholder { color: var(--muted-2); }
.header-search input:focus { border-color: var(--gold); }
.header-search button {
  padding: 0 20px;
  color: #ffe7b8;
  background: linear-gradient(180deg, #a32020, #741010);
  border: 1px solid var(--line-strong);
  letter-spacing: 2px;
}
.header-search button:hover { background: linear-gradient(180deg, #c02a2a, #8c1414); }
.header-hotline { display: flex; flex-direction: column; line-height: 1.3; }
.header-hotline span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.header-hotline strong { font-size: 19px; color: var(--gold-bright); letter-spacing: 1px; }

/* ---------------- 主导航 ---------------- */
.main-nav {
  background: linear-gradient(90deg, #3c0808 0%, #771313 30%, #8d1a1a 50%, #771313 70%, #3c0808 100%);
  border-top: 1px solid rgba(240, 205, 140, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.75);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.nav-list { display: flex; align-items: stretch; }
.nav-list li { position: relative; }
.nav-list a {
  display: block;
  padding: 0 27px;
  height: 46px;
  line-height: 46px;
  font-size: 15px;
  color: #f3dfc0;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.nav-list li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
}
.nav-list li:hover a, .nav-list li.active a { color: #fff3d6; }
.nav-list li.active a, .nav-list li:hover a { background: rgba(0, 0, 0, 0.22); }
.nav-list li.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}
.nav-toggle { display: none; }

/* ---------------- 通用面板 ---------------- */
.site-main { padding-bottom: 50px; }

.block, .widget {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 17, 11, 0.94), rgba(18, 12, 8, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.block::before, .widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 205, 140, 0.35), transparent);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.panel-title h2 {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  color: var(--gold-bright);
  letter-spacing: 1px;
}
.panel-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #d33, #7c0d0d);
  box-shadow: 0 0 8px rgba(211, 51, 51, 0.55);
}
.panel-more { font-size: 12px; color: var(--muted); }
.panel-more:hover { color: var(--gold); }

/* ---------------- 首屏 ---------------- */
.hero { padding-top: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 20px; }

.hero-slider {
  position: relative;
  height: 348px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0c0806;
  box-shadow: var(--shadow);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 6s linear;
  display: flex;
  align-items: flex-end;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.85) 100%);
}
.slide-caption {
  position: relative;
  z-index: 2;
  padding: 0 26px 22px;
  font-size: 20px;
  font-weight: 700;
  color: #fff1d2;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 56px;
  font-size: 26px;
  line-height: 1;
  color: #f0d6a5;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(240, 205, 140, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hero-slider:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-dots {
  position: absolute;
  right: 20px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.slider-dots button {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.2s ease;
}
.slider-dots button.is-active { background: var(--gold-bright); }

.hero-aside {
  background: linear-gradient(180deg, rgba(26, 17, 11, 0.96), rgba(16, 10, 7, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
}
.hero-aside .panel-title { margin-bottom: 4px; }
.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(206, 166, 98, 0.12);
  min-width: 0;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d5c6b1;
  font-size: 13px;
}
.rank-no {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #8d7a61;
  border: 1px solid rgba(206, 166, 98, 0.2);
  background: rgba(0, 0, 0, 0.3);
}
.rank-1 { color: #1c0d06; background: linear-gradient(180deg, #f4d795, #c99a48); border-color: #f4d795; font-weight: 700; }
.rank-2 { color: #1c0d06; background: linear-gradient(180deg, #ddd3c4, #a99b86); border-color: #ddd3c4; font-weight: 700; }
.rank-3 { color: #1c0d06; background: linear-gradient(180deg, #d9a173, #a76a3d); border-color: #d9a173; font-weight: 700; }
.rank-list.compact li { padding: 6px 0; }

.server-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(90, 180, 110, 0.25);
}
.server-status strong { display: block; font-size: 13px; color: #b8e6be; font-weight: 600; }
.server-status em { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); }
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ec96a;
  box-shadow: 0 0 0 4px rgba(78, 201, 106, 0.12);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(78, 201, 106, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(78, 201, 106, 0.03); }
}

/* ---------------- 快捷入口 ---------------- */
.quick-entry { margin-top: 20px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(32, 21, 14, 0.95), rgba(19, 12, 8, 0.95));
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.quick-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.quick-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(196, 60, 40, 0.55), rgba(80, 15, 10, 0.35));
  border: 1px solid rgba(240, 205, 140, 0.3);
  border-radius: 50%;
}
.quick-icon svg { width: 21px; height: 21px; fill: var(--gold-bright); }
.quick-item strong { display: block; font-size: 15px; color: #f0dfc2; }
.quick-item em { display: block; font-style: normal; font-size: 12px; color: var(--muted-2); }

/* ---------------- 首页主体 ---------------- */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}
.home-main { min-width: 0; }
.headline-links { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }

.headline { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; padding-top: 14px; }
.headline-cover {
  position: relative;
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.headline-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.7));
}
.headline-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 2px 9px;
  font-size: 11px;
  color: #ffe9c4;
  background: linear-gradient(180deg, #b32626, #7e0f0f);
  border: 1px solid rgba(255, 220, 160, 0.4);
}
.headline-body { min-width: 0; }
.headline-body h3 { font-size: 21px; line-height: 1.45; margin-bottom: 8px; }
.headline-body h3 a { color: #f6e6c9; }
.headline-body h3 a:hover { color: var(--gold-bright); }
.headline-summary { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.headline-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.headline-sub { border-top: 1px dashed rgba(206, 166, 98, 0.16); padding-top: 6px; }
.headline-sub li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 13px;
}
.headline-sub li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #cdbda6; }
.headline-sub li span { flex: none; color: var(--muted-2); font-size: 12px; }

/* 选项卡 */
.tab-head { padding-bottom: 0; border-bottom: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 6px 16px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  font-size: 14px;
}
.tab:hover { color: var(--gold-bright); }
.tab.is-active {
  color: #ffe9c4;
  background: linear-gradient(180deg, #8f1a1a, #5d0d0d);
  border-color: rgba(240, 205, 140, 0.35);
}
.tab-panel { display: none; padding-top: 6px; }
.tab-panel.is-active { display: block; }

.news-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(206, 166, 98, 0.13);
}
.news-list li:last-child { border-bottom: 0; }
.news-title {
  position: relative;
  padding-left: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #d9cab4;
}
.news-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(206, 166, 98, 0.45);
}
.news-title:hover { color: var(--gold-bright); }
.news-date { flex: none; font-size: 12px; color: var(--muted-2); }

/* 图文推荐 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 14px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(206, 166, 98, 0.14);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.news-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card-cover {
  display: block;
  height: 118px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.card-body strong {
  font-size: 14px;
  color: #ecdcbf;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 42px;
}
.card-body em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-meta { font-size: 11px; color: var(--muted-2); }

.two-col-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------------- 侧栏 ---------------- */
.widget { padding: 16px 18px; }
.widget-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.widget-head h3 { font-size: 16px; color: var(--gold-bright); letter-spacing: 1px; white-space: nowrap; }
.widget-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

.latest-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(206, 166, 98, 0.1);
}
.latest-list li:last-child { border-bottom: 0; }
.latest-list a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #cdbda6; }
.latest-list span { flex: none; font-size: 12px; color: var(--muted-2); }

.widget-service .service-box { text-align: center; padding-top: 4px; }
.service-qq { font-size: 12px; color: var(--muted); }
.service-qq strong { display: block; font-size: 24px; color: var(--gold-bright); letter-spacing: 1px; }
.service-box p { margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.service-box .btn-gold { margin-top: 10px; }

.btn-gold {
  display: inline-block;
  padding: 9px 26px;
  color: #2a1405;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #f0d29a, #c99a4d);
  border: 1px solid #f6e2b8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover { color: #1c0d03; background: linear-gradient(180deg, #ffe7b3, #d9ab5c); }
.btn-gold.block { display: block; text-align: center; }
.btn-ghost {
  display: inline-block;
  padding: 9px 24px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  letter-spacing: 2px;
}
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.tag-cloud a {
  padding: 3px 10px;
  font-size: 12px;
  color: #bfae95;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(206, 166, 98, 0.18);
}
.tag-cloud a:hover { color: var(--gold-bright); border-color: var(--line-strong); }

.download-box ul { margin: 8px 0 12px; }
.download-box li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(206, 166, 98, 0.12);
}
.download-box li em { font-style: normal; color: var(--muted-2); }
.download-box p { font-size: 12px; color: var(--muted); }

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 14px;
  font-size: 12px;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--muted-2); }
.breadcrumb em { font-style: normal; color: var(--gold); }

/* ---------------- 列表页 ---------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 20px;
  align-items: start;
  padding-bottom: 30px;
}
.page-main { min-width: 0; }

.category-head { padding: 20px; }
.category-title { display: flex; align-items: center; gap: 16px; }
.category-mark {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #ffe3ac;
  background: linear-gradient(160deg, #a51c1c, #5f0b0b);
  border: 1px solid rgba(240, 205, 140, 0.4);
}
.category-title h1 { font-size: 22px; color: var(--gold-bright); letter-spacing: 2px; }
.category-title p { font-size: 12px; color: var(--muted); }
.category-count { margin-left: auto; font-size: 12px; color: var(--muted-2); white-space: nowrap; }

.article-list { padding: 6px 20px 14px; }
.list-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(206, 166, 98, 0.14);
}
.list-item:last-child { border-bottom: 0; }
.list-cover {
  flex: none;
  width: 150px;
  height: 96px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.list-cover-text {
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: rgba(240, 205, 140, 0.55);
  background: linear-gradient(150deg, #3a1410, #1a0e09 70%);
  letter-spacing: 3px;
}
.list-body { min-width: 0; display: flex; flex-direction: column; }
.list-body h2 { font-size: 17px; margin-bottom: 6px; line-height: 1.5; }
.list-body h2 a { color: #edddc0; }
.list-body h2 a:hover { color: var(--gold-bright); }
.list-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-meta { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted-2); }
.badge {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  vertical-align: 1px;
}
.badge-top { color: #ffe9c4; background: #8c1414; border: 1px solid rgba(255, 200, 150, 0.35); }
.badge-hot { color: #2a1405; background: linear-gradient(180deg, #f0d29a, #c99a4d); }

.empty-state { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-state a { color: var(--gold); }

/* 分页 */
.pagination { display: flex; align-items: center; gap: 8px; padding: 20px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.pagination a:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.pagination .current { color: #2a1405; background: linear-gradient(180deg, #f0d29a, #c99a4d); border-color: #f0d29a; }
.pagination .disabled { opacity: 0.4; }
.pagination .page-total { margin-left: auto; border: 0; background: none; color: var(--muted-2); }
.pagination .page-ellipsis { border: 0; background: none; }

/* ---------------- 文章详情 ---------------- */
.article-detail { padding: 26px 30px 24px; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.article-header h1 { font-size: 27px; line-height: 1.5; color: #f8e9cd; margin-bottom: 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted-2); }
.article-meta a { color: var(--gold); }
.article-lead {
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #c4b49c;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--red-2);
}
.article-content { font-size: 15px; line-height: 2; color: #d8cbb8; }
.article-content p { margin: 0 0 14px; }
.article-content img { max-width: 100%; height: auto; margin: 12px auto; border: 1px solid var(--line); }
.article-content h2, .article-content h3, .article-content h4 { color: var(--gold-bright); margin: 22px 0 10px; }
.article-content a { color: var(--gold); text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 14px; padding-left: 24px; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 7px 10px; font-size: 13px; }
.article-content th { background: rgba(0, 0, 0, 0.3); color: var(--gold); }
.article-content blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: rgba(0, 0, 0, 0.25); color: var(--muted); }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.article-tags a { padding: 2px 10px; border: 1px solid var(--line); color: var(--muted); }
.article-tags a:hover { color: var(--gold-bright); border-color: var(--line-strong); }

.article-declare { margin-top: 18px; padding: 10px 14px; font-size: 12px; color: var(--muted-2); background: rgba(0, 0, 0, 0.22); border: 1px dashed var(--line); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.article-nav a, .article-nav > span {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: #cdbda6;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  overflow: hidden;
}
.article-nav a:hover { border-color: var(--line-strong); color: var(--gold-bright); }
.article-nav span > span { display: block; font-size: 11px; color: var(--muted-2); }
.article-nav .next { text-align: right; }
.article-nav .disabled { opacity: 0.55; }

.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; }
.related-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(206, 166, 98, 0.14);
}
.related-item strong { font-size: 13px; font-weight: 400; color: #d3c4ad; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.related-item span { font-size: 11px; color: var(--muted-2); }

/* ---------------- 搜索 ---------------- */
.search-head { padding: 22px 24px; }
.search-head h1 { font-size: 20px; color: var(--gold-bright); margin-bottom: 6px; }
.search-head p { font-size: 13px; color: var(--muted); }
.search-head p strong { color: var(--gold); }
.search-form-big { display: flex; margin-top: 14px; max-width: 560px; }
.search-form-big input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-strong);
  border-right: 0;
  outline: none;
}
.search-form-big button {
  padding: 0 22px;
  color: #ffe7b8;
  background: linear-gradient(180deg, #a32020, #741010);
  border: 1px solid var(--line-strong);
}

/* ---------------- 单页 / 留言 ---------------- */
.single-page { padding: 28px 32px; }
.single-page h1 { font-size: 24px; color: var(--gold-bright); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.message-block { padding: 24px 28px; }
.message-form { padding-top: 18px; }
.form-row { display: block; margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-row i { color: #d34a4a; font-style: normal; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  outline: none;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-actions { display: flex; align-items: center; gap: 16px; }
.form-actions em { font-style: normal; font-size: 12px; color: var(--muted-2); }

.message-list { padding-top: 6px; }
.message-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.message-list li:last-child { border-bottom: 0; }
.message-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.message-head strong { color: var(--gold); }
.message-head span { font-size: 12px; color: var(--muted-2); }
.message-list p { font-size: 13px; color: #c9baa3; line-height: 1.8; }

/* ---------------- 404 ---------------- */
.error-page { padding: 70px 20px; text-align: center; }
.error-code {
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #f6dca9, #9c7034);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.error-page h1 { font-size: 22px; color: var(--gold-bright); margin-bottom: 8px; }
.error-page p { color: var(--muted); font-size: 13px; }
.error-actions { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110, 22, 16, 0.22), transparent 60%),
    linear-gradient(180deg, #0c0806 0%, #080504 100%);
  border-top: 1px solid var(--line-strong);
  margin-top: 10px;
}
.footer-top { padding: 38px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 1.1fr; gap: 34px; }
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.footer-about p { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 8px; }
.footer-meta { color: var(--muted-2) !important; }
.footer-col h4 { font-size: 14px; color: #dfc9a4; margin-bottom: 12px; letter-spacing: 1px; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-contact p { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.footer-tip { margin-top: 10px; color: #8a5a45 !important; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(206, 166, 98, 0.12); padding: 14px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted-2); }
.footer-bottom-inner a { color: var(--muted-2); }
.footer-bottom-inner a:hover { color: var(--gold); }

/* ---------------- 提示 ---------------- */
.flash {
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.flash-success { color: #a9dfb3; border-color: rgba(90, 180, 110, 0.35); }
.flash-error { color: #f0a9a9; border-color: rgba(190, 70, 70, 0.4); }

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 50;
  width: 42px;
  height: 42px;
  font-size: 18px;
  color: var(--gold);
  background: rgba(12, 8, 5, 0.85);
  border: 1px solid var(--line-strong);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero-grid, .home-layout, .page-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .hero-slider { height: 320px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid, .home-layout, .page-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-slider { height: auto; aspect-ratio: 928 / 334; }
  .hero-aside { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .hero-aside .panel-title { width: 100%; }
  .hero-aside .rank-list { flex: 1 1 300px; }
  .server-status { flex: 1 1 200px; margin-top: 0; align-self: center; }
  .headline { grid-template-columns: 260px minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-side .widget-service { display: none; }
}

@media (max-width: 720px) {
  .topbar-links { display: none; }
  .topbar-inner { gap: 10px; }
  .topbar-notice { flex: 1; min-width: 0; }
  .notice-track { flex: 1; min-width: 0; width: auto; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 0; }
  .logo-text strong { font-size: 24px; }
  .header-side { width: 100%; justify-content: space-between; gap: 14px; }
  .header-search { flex: 1; min-width: 0; }
  .header-search input { width: 100%; min-width: 0; }
  .header-search button { flex: none; padding: 0 14px; letter-spacing: 1px; }
  .header-hotline { display: none; }
  .nav-toggle {
    display: block;
    width: 100%;
    height: 42px;
    color: #f3dfc0;
    background: none;
    border: 0;
    text-align: left;
    padding: 0 16px;
    letter-spacing: 2px;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    padding-bottom: 8px;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { height: 40px; line-height: 40px; padding: 0 18px; font-size: 14px; }
  .nav-list li::after { display: none; }
  .hero-slider { height: auto; aspect-ratio: 928 / 334; }
  .slide-caption { font-size: 15px; padding: 0 16px 14px; }
  .headline { grid-template-columns: 1fr; }
  .headline-cover { height: 190px; }
  .quick-grid { grid-template-columns: 1fr; }
  .card-grid, .two-col-blocks, .related-grid { grid-template-columns: 1fr; }
  .article-detail, .single-page, .message-block { padding: 20px 16px; }
  .article-header h1 { font-size: 21px; }
  .article-nav { grid-template-columns: 1fr; }
  .list-cover { width: 100px; height: 70px; }
  .list-body h2 { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; }
  .form-row.two { grid-template-columns: 1fr; }
  .category-count { display: none; }
}
