/* 鹿鸣视界 · 墨金主题 */
:root {
  --ink: #0b1c33;
  --ink-2: #122844;
  --gold: #c9a46a;
  --gold-2: #e4c98a;
  --page: #f3f1ec;
  --text: #1b2430;
  --muted: #6d7583;
  --line: #e7e1d6;
  --shadow: 0 10px 28px rgba(11, 28, 51, .06);
}

body {
  background: var(--page);
  color: var(--text);
  font-family: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a:hover {
  color: #9a7b3c;
}

.wrapper {
  margin: 0;
  max-width: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.site-header {
  background: linear-gradient(180deg, var(--ink) 0, var(--ink-2) 100%);
  color: #f6efe2;
  border-bottom: 3px solid var(--gold);
}

.site-topbar {
  background: #081527;
  border-bottom: 1px solid rgba(201, 164, 106, .18);
  font-size: 12px;
  letter-spacing: .06em;
}

.site-topbar-inner,
.header,
.container,
.footer-inner {
  max-width: 1760px;
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

.site-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  color: #c9b48a;
}

.site-topbar .top-contact em {
  font-style: normal;
  margin-left: 18px;
  color: #e8d7b0;
}

.header {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  background: transparent;
  border-bottom: 0;
  padding: 10px 24px;
  overflow: visible;
}

.logo {
  float: none;
  padding: 0;
  flex: 0 0 auto;
}

.logo a {
  width: 168px;
  height: 42px;
}

.searchform {
  float: none;
  width: 220px;
  padding: 0;
  flex: 0 0 220px;
}

.searchform form {
  display: flex;
  align-items: stretch;
  height: 34px;
  overflow: hidden;
  border-radius: 20px;
}

.searchform .input {
  flex: 1;
  margin-right: 0;
  height: 34px;
  border: 1px solid rgba(228, 201, 138, .32);
  border-right: 0;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px 0 0 20px;
  box-sizing: border-box;
}

.searchform .text {
  display: block;
  width: 100%;
  height: 32px;
  line-height: 32px;
  padding: 0 14px;
  box-sizing: border-box;
  color: #f7efe0;
  font-size: 13px;
}

.searchform .text::placeholder {
  color: #b9a887;
  line-height: 32px;
}

.searchform .submit {
  position: static;
  flex: 0 0 38px;
  width: 38px;
  height: 34px;
  line-height: 34px;
  background: linear-gradient(135deg, var(--gold), #a98443);
  border-radius: 0 20px 20px 0;
  color: #1a1408;
}

.nav {
  float: none;
  flex: 1 1 auto;
  border-bottom: 0;
  background: transparent;
  padding: 0 8px;
  min-width: 0;
}

.nav > ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  margin: 0;
  width: 100%;
  gap: 8px;
}

.nav > ul > li {
  float: none;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  line-height: 1;
  font-size: 15px;
  letter-spacing: .04em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #eadcc0;
  white-space: nowrap;
  background: rgba(228, 201, 138, .12);
  border: 1px solid rgba(201, 164, 106, .22);
  box-shadow: none;
  font-weight: 500;
  box-sizing: border-box;
}

.nav > ul > li > a:hover {
  color: var(--gold-2);
  background: rgba(228, 201, 138, .22);
  border-color: rgba(201, 164, 106, .45);
}

.nav > ul > li.on > a,
.nav > ul > li.cur > a,
.nav > ul > li.cur > a:hover {
  color: #1a1408;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(201, 164, 106, .28);
}

.nav > ul > li > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 21px);
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
  z-index: 30;
}

.nav > ul > li > ul > li {
  border-bottom: 0;
  line-height: 1;
  width: 100%;
  float: none;
  display: block;
  margin: 0 0 6px;
}

.nav > ul > li > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  color: #eadcc0;
  border-radius: 999px;
  background: #0f223c;
  border: 1px solid rgba(201, 164, 106, .22);
}

.nav > ul > li > ul > li > a:hover,
.nav > ul > li > ul > li.on > a,
.nav > ul > li > ul > li.cur > a,
.nav > ul > li > ul > li.cur > a:hover {
  color: #1a1408;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
}

.container {
  padding: 28px 24px 48px;
  background: #fff;
}

.slides {
  border-radius: 8px;
  box-shadow: none;
  margin-bottom: 22px;
}

.slides .item em {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: auto;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 36, .78));
  color: #fff8ea;
  text-align: left;
}

.istop-list {
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 18px;
  margin-bottom: 22px;
}

.istop {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  margin: 0;
}

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

.istop i {
  background: linear-gradient(135deg, #8d1d16, #c43a2c);
  border-radius: 2px;
  letter-spacing: .08em;
}

.istop a {
  color: var(--ink);
  font-weight: 600;
}

.istop a:hover {
  margin-left: 45px;
  color: #9a7b3c;
}

.blogitem {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0;
  margin-bottom: 0;
  box-shadow: none;
}

.blogitem h2 {
  font-size: 20px;
  font-weight: 650;
}

.blogitem h2 a:hover {
  margin-left: 0;
  color: #9a7b3c;
}

.blogitem .thumbnail a {
  border-radius: 6px;
  overflow: hidden;
  display: block;
}

.blogitem .excerpt {
  color: var(--muted);
}

.blogitem .meta {
  color: #8a8172;
  font-size: 13px;
}

.archive-title {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: .08em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 8px;
}

.breadcrumb {
  color: #8a8172;
  border-bottom: 1px solid var(--line);
}

.breadcrumb a {
  color: #6d5c3d;
}

.post,
.details {
  background: #fff;
  border-radius: 0;
  padding: 4px 0 20px;
}

.post .title,
.details .title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .03em;
  line-height: 1.4;
}

.post .meta {
  color: #8a8172;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.entry {
  color: #2a3140;
  font-size: 17px;
  line-height: 1.9;
}

.sidebar .widget {
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 12px;
  box-shadow: none;
  overflow: visible;
}

.sidebar .widget h3 {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .16em;
  font-weight: 700;
}

.sidebar .widget h3:before {
  background: var(--gold);
  width: 2.2em;
  height: 3px;
}

.rank-list {
  counter-reset: rank;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
}

.rank-item::before {
  counter-increment: rank;
  content: counter(rank, decimal-leading-zero);
  flex: 0 0 28px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}

.rank-item .info {
  min-width: 0;
  overflow: hidden;
}

.rank-item h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.rank-item h4 a,
.sidebar .widget .rank-item a {
  display: block;
  padding-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.rank-item h4 a:before,
.sidebar .widget .rank-item a:before {
  display: none;
}

.rank-item p {
  color: #8a8172;
  font-size: 12px;
  margin: 4px 0 0;
}

.rank-item:last-child {
  margin-bottom: 0;
}

.sidebar .widget li a:before {
  display: none;
}

.footer {
  background: linear-gradient(180deg, var(--ink-2), #081221);
  color: #d7c9a8;
  border-top: 3px solid var(--gold);
  padding: 24px 24px 20px;
  clear: both;
  font-size: 13px;
  line-height: 1.8;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  align-content: flex-start;
  gap: 16px 40px;
  /* 与顶栏/内容同宽左对齐，不再收窄居中 */
  max-width: 1760px;
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  min-height: 0;
}

.footer a,
.footer a:hover {
  color: var(--gold-2);
  display: inline;
}

.footer-qrcode {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.footer-qrcode img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

.friend-links {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
}

.friend-links-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .08em;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.friend-links-list a {
  color: #d7c9a8;
  text-decoration: none;
  white-space: nowrap;
}

.friend-links-list a:hover {
  color: var(--gold-2);
  text-decoration: underline;
}

.entry a {
  color: #1a73e8 !important;
  text-decoration: underline !important;
}

.entry video,
.entry .w-e-textarea-video-container video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
  background: #000;
}

.entry a img {
  border: 0;
}

.entry font[size="1"], .entry .w-e-text font[size="1"] { font-size: 12px !important; }
.entry font[size="2"] { font-size: 13px !important; }
.entry font[size="3"] { font-size: 16px !important; }
.entry font[size="4"] { font-size: 18px !important; }
.entry font[size="5"] { font-size: 24px !important; }
.entry font[size="6"] { font-size: 32px !important; }
.entry font[size="7"] { font-size: 48px !important; }

/* 后台编辑器内联字号/颜色必须生效（覆盖主题默认 17px） */
.entry span[style*="font-size"],
.entry p[style*="font-size"],
.entry div[style*="font-size"],
.entry li[style*="font-size"],
.entry strong[style*="font-size"],
.entry em[style*="font-size"],
.entry font[style*="font-size"] {
  line-height: 1.65;
}
.entry [style*="font-size:12px"], .entry [style*="font-size: 12px"] { font-size: 12px !important; }
.entry [style*="font-size:13px"], .entry [style*="font-size: 13px"] { font-size: 13px !important; }
.entry [style*="font-size:14px"], .entry [style*="font-size: 14px"] { font-size: 14px !important; }
.entry [style*="font-size:15px"], .entry [style*="font-size: 15px"] { font-size: 15px !important; }
.entry [style*="font-size:16px"], .entry [style*="font-size: 16px"] { font-size: 16px !important; }
.entry [style*="font-size:18px"], .entry [style*="font-size: 18px"] { font-size: 18px !important; }
.entry [style*="font-size:20px"], .entry [style*="font-size: 20px"] { font-size: 20px !important; }
.entry [style*="font-size:24px"], .entry [style*="font-size: 24px"] { font-size: 24px !important; }
.entry [style*="font-size:28px"], .entry [style*="font-size: 28px"] { font-size: 28px !important; }
.entry [style*="font-size:32px"], .entry [style*="font-size: 32px"] { font-size: 32px !important; }
.entry [style*="font-size:36px"], .entry [style*="font-size: 36px"] { font-size: 36px !important; }
.entry [style*="font-size:48px"], .entry [style*="font-size: 48px"] { font-size: 48px !important; }

.copyright {
  float: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  margin-right: auto;
  text-align: left;
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  word-break: normal;
  overflow-wrap: normal;
}

.entry span[style*="font-size"],
.entry p[style*="font-size"],
.entry div[style*="font-size"],
.entry font[size] {
  line-height: 1.6;
}

.copyright p {
  margin: 0;
  width: 100%;
  text-align: left;
  line-height: 1.8;
  word-break: keep-all;
}

.copyright .site-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 16px;
  row-gap: 0;
  margin-bottom: 0;
}

.copyright .site-contact span,
.copyright a {
  white-space: nowrap;
  word-break: keep-all;
}

.copyright .site-contact span + span {
  margin-left: 0;
}

.pglist a {
  border-radius: 20px;
  border-color: var(--line);
  color: var(--ink);
}

.pglist a:hover,
.pglist .hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-2);
}

#postnavi {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related {
  margin-top: 28px;
}

.related .boxtitle {
  color: var(--ink);
  letter-spacing: .16em;
  margin-bottom: 12px;
}

/* 相关推荐：固定 6 行列表，每行一篇 */
.related ul,
.related .related-list {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
  display: block !important;
}

.related li,
.related .related-item {
  float: none !important;
  width: 100% !important;
  height: 64px;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.related .related-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 64px;
  padding: 0 2px;
  color: var(--ink) !important;
  text-decoration: none !important;
}

.related .related-title {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related .related-meta {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 12px;
  color: #8a8172;
  font-weight: 400;
}

.related .related-meta em {
  font-style: normal;
  color: #6d5c3d;
}

.related .related-link:hover .related-title {
  color: var(--gold-2);
}

@media (max-width: 1024px) {
  .header {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 16px;
  }
  .logo a {
    width: 140px;
    height: 36px;
  }
  .searchform {
    width: 168px;
    flex: 0 0 168px;
  }
  .nav > ul > li {
    font-size: 14px;
  }
  .nav > ul > li > a {
    padding: 0 8px;
    height: 32px;
  }
  .nav > ul > li > ul {
    top: calc(50% + 20px);
  }
  .nav > ul > li > ul > li > a {
    height: 32px;
  }
  .social,
  .schbtn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-topbar {
    display: none;
  }
  .header {
    display: block;
    padding: 8px 16px;
  }
  .navBtn {
    color: var(--gold-2);
  }
  .nav {
    background: #0c1d36;
  }
  .nav > ul {
    display: block;
    height: auto;
    margin-top: 72px;
  }
  .nav > ul > li {
    flex: none;
    line-height: 46px;
    text-align: left;
    justify-content: flex-start;
    padding: 6px 16px;
  }
  .nav > ul > li > a {
    width: auto;
    justify-content: flex-start;
  }
  .nav > ul > li > ul {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    margin: 0;
    padding: 0 0 0 12px;
  }
  .nav > ul > li > ul > li {
    margin: 6px 0 0;
  }
  .nav > ul > li > ul > li > a {
    width: auto;
    justify-content: flex-start;
  }
  .nav li a,
  .nav li li a {
    color: #eadcc0;
  }
  .nav > ul > li.cur > a,
  .nav > ul > li.on > a {
    color: #1a1408;
  }
  .footer {
    padding: 18px 16px 14px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 0px);
    max-width: 100%;
  }
  .footer-qrcode {
    align-self: flex-start;
  }
  .friend-links {
    width: 100%;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .friend-links-list {
    margin-bottom: 0;
  }
  .copyright {
    align-items: flex-start;
    margin: 0;
    text-align: left;
    flex: 0 0 auto !important;
  }
  .copyright p {
    text-align: left;
  }
  .copyright .site-contact {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
  .searchform {
    display: none !important;
  }

  /* 手机端列表/置顶标题：最多两行 */
  .istop a,
  .blogitem h2,
  .blogitem h2 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
  }
  .istop {
    height: auto;
    min-height: 0;
    align-items: flex-start;
  }
  .istop a {
    margin-left: 45px;
    max-height: 2.8em;
  }
  .blogitem h2 {
    font-size: 17px;
    max-height: 2.8em;
  }

  /* 手机端详情页标题：在原 17px 基础上放大 2 号 → 19px，最多两行 */
  .post .title,
  .details .title {
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
  }

  .related li,
  .related .related-item,
  .related .related-link {
    height: 60px;
  }

  .related .related-title {
    font-size: 14px;
  }
}
/* =====================================================================
   正文排版统一规则
   ---------------------------------------------------------------------
   用法：整段追加到 public/template/pc/skin/css/theme-lmt.css 的【最末尾】
   作用：把正文里的 h2 / h3 / p / li 字号和间距统一在这里定义，
         正文 HTML 里不再写内联字号，AI 稿和人工稿自动长得一样。
   前提：走接口入库的稿子已经由 Publish.php 剥掉内联 font-size；
         后台人工排的稿子若手动设了字号，仍按编辑器里的设定显示（保留人的意图）。
   ===================================================================== */

/* 章节标题：24px，左侧金色竖线，靠视觉而非只靠字号拉开层级 */
.entry h2 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  color: #1a1f2b;
  margin: 34px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

/* 小节标题：20px，比正文明显重一档 */
.entry h3 {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  color: #1f2633;
  margin: 28px 0 12px;
}

/* 正文段落与列表 */
.entry p {
  margin: 0 0 18px;
}
.entry ul,
.entry ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.entry li {
  margin-bottom: 8px;
  line-height: 1.85;
}
.entry li::marker {
  color: var(--gold);
}

/* 强调 */
.entry strong {
  font-weight: 700;
  color: #1a1f2b;
}

/* 图片：统一居中、圆角、不超宽 */
.entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
}

/* 引用块 */
.entry blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  background: #f7f4ee;
  border-left: 4px solid var(--gold);
  color: #4a5160;
  font-size: 16px;
  line-height: 1.85;
}
.entry blockquote p:last-child {
  margin-bottom: 0;
}

/* 表格：AI 常输出表格，默认样式在中文长文里会挤成一团 */
.entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}
.entry th,
.entry td {
  border: 1px solid #dcdfe6;
  padding: 8px 10px;
  text-align: left;
  line-height: 1.7;
}
.entry th {
  background: #f7f4ee;
  font-weight: 700;
}

/* 手机端：整体降一档，避免标题过大把屏占满 */
@media (max-width: 768px) {
  .entry {
    font-size: 16px;
  }
  .entry h2 {
    font-size: 20px;
    margin: 26px 0 12px;
  }
  .entry h3 {
    font-size: 18px;
    margin: 22px 0 10px;
  }
  .entry table {
    font-size: 14px;
  }
}
