/* =========================================================
   内页模板视觉系统 — 简约杂志风 / 暗色阅读版
   ========================================================= */

/* ---------- CSS 变量 ---------- */
:root {
  --bg: #0a0f1c;
  --bg-elevated: #111827;
  --surface: rgba(17, 24, 39, 0.65);
  --surface-hover: rgba(31, 41, 55, 0.7);
  --text: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-warm: #f59e0b;
  --border: rgba(156, 163, 175, 0.1);
  --border-strong: rgba(156, 163, 175, 0.18);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --transition: all 0.25s ease;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.06), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(99, 102, 241, 0.05), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: #67e8f9;
}

ul, li {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---------- 阅读进度条 ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 栏目页头部 ---------- */
.page-header {
  width: 100%;
  padding: 52px 20px 44px;
  margin-bottom: 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.page-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- 面包屑导航 ---------- */
.dangq {
  width: 100%;
  margin: 22px auto 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.dangq .container {
  padding: 0 20px;
}

.dangq ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dangq li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dangq a {
  color: var(--text-secondary);
  padding: 2px 4px;
  border-radius: 4px;
}

.dangq a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- 内容包装器 ---------- */
.content-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

/* ---------- 主内容区 ---------- */
.main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---------- 管理员发布条 ---------- */
.artt {
  padding: 12px 30px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.artt p {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.artt p::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 文章封面图 ---------- */
.article-hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article-hero .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-hero:hover .hero-image {
  transform: scale(1.02);
}

.article-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 28, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px 30px;
}

.hero-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

/* ---------- 文章标题区 ---------- */
.arzbt {
  padding: 32px 30px 26px;
  border-bottom: 1px solid var(--border);
}

.arzbt h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 18px;
}

.article-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.article-source {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-source li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.article-source li a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.article-source li a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 文章内容区 ---------- */
.arznn {
  padding: 34px 30px;
  line-height: 1.85;
  color: var(--text-secondary);
  flex: 1;
}

.arznn > *:last-child {
  margin-bottom: 0;
}

.arznn h1, .arznn h2, .arznn h3, .arznn h4 {
  color: var(--text);
  margin: 36px 0 18px;
  font-weight: 700;
  scroll-margin-top: 80px;
}

.arznn h2 {
  font-size: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.arznn h3 {
  font-size: 20px;
}

.arznn p {
  margin-bottom: 20px;
  text-align: justify;
}

.arznn a {
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
}

.arznn a:hover {
  color: #67e8f9;
  border-bottom-color: var(--accent);
}

.arznn img {
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.arznn img:hover {
  border-color: var(--border-strong);
}

.arznn blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.arznn table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 14px;
}

.arznn th, .arznn td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.arznn th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

.arznn tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.arznn ul, .arznn ol {
  margin: 16px 0 16px 24px;
}

.arznn ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.arznn ol li {
  list-style: decimal;
  margin-bottom: 8px;
}

.arznn code {
  background: var(--bg-elevated);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.9em;
}

.arznn pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 20px 0;
  overflow-x: auto;
}

.arznn pre code {
  background: transparent;
  padding: 0;
  color: var(--text-secondary);
}

/* ---------- 文章标签 ---------- */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 32px 0 24px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.tags-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- 互动按钮 ---------- */
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.action-count {
  padding-left: 7px;
  border-left: 1px solid var(--border);
}

/* ---------- 阅读量和分享 ---------- */
.article-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.read-count {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: var(--transition);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 分页 ---------- */
.arfy {
  padding: 22px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.jogger2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jogger2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: var(--transition);
}

.jogger2 a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
}

/* ---------- 上下篇导航 ---------- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px 30px;
  border-top: 1px solid var(--border);
}

.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.article-nav a:hover {
  border-color: var(--accent);
}

.nav-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav-next {
  text-align: right;
  align-items: flex-end;
}

/* ---------- 相关内容 ---------- */
.arxg {
  padding: 28px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.arxg > p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.arxg > p::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.arxg ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.arxg li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.arxg li:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.arxg li a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.55;
}

.arxg li a:hover {
  color: var(--text);
}

.rel-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.rel-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 320px;
}

.listy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-card,
.toc-box,
.tjnr,
.hot-articles,
.nrmk3,
.qr-box,
.search-box,
.sidebar-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tjnr > p,
.nrbt,
.search-box > p,
.hot-articles > p,
.qr-box > p:not(.qr-tip),
.toc-box > p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.tjnr > p::before,
.nrbt::before,
.search-box > p::before,
.hot-articles > p::before,
.qr-box > p:not(.qr-tip)::before,
.toc-box > p::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

/* 作者信息卡 */
.author-card {
  text-align: center;
  padding: 22px 20px;
}

.author-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar.no-image img {
  display: none;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.author-avatar:not(.no-image) .avatar-fallback {
  display: none;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.author-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.follow-btn {
  width: 100%;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.follow-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* 文章目录 */
.toc-box {
  position: sticky;
  top: 20px;
}

.toc-box ul {
  padding: 18px 20px;
  max-height: 320px;
  overflow-y: auto;
}

.toc-box li {
  margin-bottom: 8px;
}

.toc-box li a {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--border);
  transition: var(--transition);
}

.toc-box li a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-h3 a {
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 12px;
}

.toc-empty {
  color: var(--text-muted);
  font-size: 13px;
}

/* 通用侧边栏列表 */
.tjnr ul, .hot-articles ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 20px;
}

.tjnr li, .hot-articles li {
  position: relative;
  padding-left: 14px;
  transition: var(--transition);
}

.tjnr li::before, .hot-articles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.tjnr li:hover, .hot-articles li:hover {
  transform: translateX(3px);
}

.tjnr li a, .hot-articles li a {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tjnr li a:hover, .hot-articles li a:hover {
  color: var(--accent);
}

/* 热门推荐排名 */
.hot-articles li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}

.hot-articles li::before {
  display: none;
}

.hot-rank {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.hot-rank.rank-1 {
  background: var(--accent-warm);
  color: var(--bg);
}

.hot-rank.rank-2 {
  background: var(--text-muted);
  color: var(--bg);
}

.hot-rank.rank-3 {
  background: var(--border-strong);
  color: var(--text);
}

.hot-articles li a {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 标签云 */
.nrmk3 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px;
}

.nrmk3 li {
  padding-left: 0;
}

.nrmk3 li a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.nrmk3 li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 二维码 */
.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.qr-placeholder img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.qr-fallback {
  display: none;
  width: 130px;
  height: 130px;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 13px;
}

.qr-placeholder img[src=""] + .qr-fallback,
.qr-placeholder img:not([src]) + .qr-fallback {
  display: flex;
}

.qr-tip {
  padding: 0 20px 18px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* 搜索框 */
.search-box form {
  display: flex;
  gap: 0;
  padding: 18px 20px;
}

.search-box input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  transition: var(--transition);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box button {
  padding: 0 18px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--transition);
}

.search-box button:hover {
  background: #67e8f9;
}

/* ---------- 评论区 ---------- */
.comments-section {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.comments-section > .comments-header,
.comments-section > .comment-form,
.comments-section > .comments-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.comments-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.comments-count {
  font-size: 13px;
  color: var(--text-muted);
}

.comment-form textarea {
  width: 100%;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  min-height: 90px;
  transition: var(--transition);
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.comment-form textarea::placeholder {
  color: var(--text-muted);
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.comment-tip {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-form-footer button {
  padding: 9px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.comment-form-footer button:hover {
  background: #67e8f9;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.comment-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- 栏目页样式 ---------- */
.xlist {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.xnlist {
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.xnlist:hover {
  border-color: var(--border-strong);
}

.xnlist:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.picxn {
  flex-shrink: 0;
  width: 140px;
  height: 95px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.picxn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.xnlist:hover .picxn img {
  transform: scale(1.05);
}

.zwlist {
  flex: 1;
  min-width: 0;
}

.zwlist ul {
  margin: 0;
  padding: 0;
}

.zwlist li {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.zwlist li span {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zwlist li span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.zwlist li a {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.zwlist li a:hover {
  color: var(--accent);
}

.zwlist p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xlist .jogger2 {
  margin-top: 28px;
}

/* ---------- 友情链接 ---------- */
.friend-links {
  background: var(--surface);
  padding: 20px 24px;
  margin: 20px auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 1160px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.friend-links a {
  display: inline-block;
  padding: 6px 14px;
  margin: 5px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.friend-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 26px 20px;
  margin-top: 30px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--accent);
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
  font-size: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1100px) {
  .sidebar {
    width: 280px;
  }
}

@media (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    width: 100%;
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .article-hero {
    height: 200px;
  }

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

  .nav-next {
    text-align: left;
    align-items: flex-start;
  }

  .arxg ul {
    grid-template-columns: 1fr;
  }

  .xnlist {
    flex-direction: column;
    align-items: flex-start;
  }

  .picxn {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 38px 20px 32px;
  }

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

  .page-subtitle {
    font-size: 14px;
  }

  .dangq {
    margin-top: 16px;
    margin-bottom: 14px;
  }

  .dangq .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .content-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  .main-content {
    border-radius: var(--radius);
  }

  .article-hero {
    height: 180px;
  }

  .article-hero .hero-overlay {
    padding: 16px 20px;
  }

  .arzbt h2 {
    font-size: 24px;
  }

  .article-stats {
    gap: 12px;
  }

  .artt, .arzbt, .arznn, .arfy, .article-nav, .arxg {
    padding: 22px 20px;
  }

  .arzbt {
    padding-top: 26px;
  }

  .arznn {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .share-buttons {
    width: 100%;
  }

  .share-btn {
    flex: 1;
  }

  .jogger2 a {
    padding: 5px 11px;
    font-size: 12px;
    min-width: 30px;
    height: 30px;
  }

  .sidebar {
    gap: 16px;
  }

  .sidebar-section {
    border-radius: var(--radius);
  }

  .comments-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .comments-card {
    padding: 20px;
  }

  .friend-links {
    padding: 16px 18px;
    margin: 16px 15px;
    max-width: 100%;
  }

  .friend-links a {
    padding: 5px 12px;
    font-size: 12px;
  }

  .footer {
    padding: 22px 15px;
    margin-top: 22px;
    font-size: 12px;
  }

  body {
    font-size: 15px;
  }

  .zwlist li a {
    font-size: 16px;
  }

  .zwlist p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 32px 16px 26px;
  }

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

  .page-subtitle {
    font-size: 13px;
  }

  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .main-content {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .article-hero {
    height: 150px;
  }

  .artt, .arzbt, .arznn, .arfy, .article-nav, .arxg {
    padding: 18px 16px;
  }

  .arzbt h2 {
    font-size: 22px;
  }

  .article-stats {
    gap: 10px;
  }

  .article-actions {
    gap: 8px;
  }

  .action-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .picxn {
    height: 160px;
  }

  .friend-links {
    padding: 14px 16px;
    margin: 14px 12px;
  }

  .footer {
    padding: 18px 12px;
  }

  .comment-item {
    gap: 10px;
  }

  .comment-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- 无障碍：减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

