/* ==========================================================================
   妙活阁 · 时尚杂志风  portal.css
   奶油白 #fdfbf8 + 墨黑 #1a1a1a + 玫粉 #d6336c
   ========================================================================== */

:root {
  --mh-ink: #1a1a1a;
  --mh-ink2: #2b2b2b;
  --mh-pink: #d6336c;
  --mh-pink-d: #a61e4d;
  --mh-pink-t: #fdeef3;
  --mh-gold: #b08968;
  --mh-text: #221f1c;
  --mh-text2: #4a443e;
  --mh-muted: #8c8279;
  --mh-line: #e8e1d8;
  --mh-bg: #fdfbf8;
  --mh-card: #ffffff;
  --mh-r: 2px;
  --mh-serif: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
}

html[data-theme="dark"] {
  --mh-ink: #f2ece4;
  --mh-ink2: #ded6cc;
  --mh-pink-t: #2c1119;
  --mh-gold: #c9a227;
  --mh-text: #ebe4da;
  --mh-text2: #c3b9ad;
  --mh-muted: #948a7f;
  --mh-line: #322a24;
  --mh-bg: #141110;
  --mh-card: #1c1815;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--mh-bg);
  color: var(--mh-text);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-text-size-adjust: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hide {
  display: none !important;
}

/* ------------------------------ 顶部栏 ------------------------------ */
.mh-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--mh-bg);
  border-bottom: 1px solid var(--mh-ink);
}

.mh-top.scrolled {
  box-shadow: 0 4px 18px rgba(26, 26, 26, .07);
}

.mh-top-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.mh-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
}

.mh-brand-text {
  font-family: var(--mh-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--mh-ink);
  white-space: nowrap;
}

.mh-brand-sub {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--mh-muted);
}

.mh-nav {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.mh-nav a {
  font-size: 13.5px;
  letter-spacing: .4px;
  color: var(--mh-text2);
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all .2s;
}

.mh-nav a:hover {
  color: var(--mh-pink);
  border-bottom-color: var(--mh-pink);
}

.mh-search {
  display: flex;
  flex: 0 0 auto;
}

.mh-search input {
  width: 186px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--mh-text);
  background: transparent;
  border: 1px solid var(--mh-line);
  border-right: 0;
  outline: none;
}

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

.mh-search input:focus {
  border-color: var(--mh-ink);
}

.mh-search button {
  height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--mh-ink);
  border: 0;
  cursor: pointer;
  transition: background .2s;
}

.mh-search button:hover {
  background: var(--mh-pink);
}

.mh-theme {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mh-text2);
  background: transparent;
  border: 1px solid var(--mh-line);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}

.mh-theme:hover {
  color: var(--mh-pink);
  border-color: var(--mh-pink);
}

.mh-menu-btn {
  display: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0 6px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mh-menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--mh-text2);
}

/* ------------------------------ 抽屉 ------------------------------ */
.mh-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 59;
  background: var(--mh-card);
  border-bottom: 1px solid var(--mh-line);
  padding: 16px 18px 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.mh-drawer.open {
  display: block;
}

.mh-drawer-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mh-drawer-search input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--mh-text);
  background: transparent;
  border: 1px solid var(--mh-line);
  outline: none;
}

.mh-drawer-search button {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  color: #fff;
  background: var(--mh-ink);
  border: 0;
}

.mh-drawer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--mh-line);
}

.mh-drawer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--mh-ink);
}

.mh-drawer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mh-drawer-cats a {
  font-size: 12.5px;
  color: var(--mh-text2);
  border: 1px solid var(--mh-line);
  padding: 4px 10px;
}

/* ------------------------------ HERO 杂志封面 ------------------------------ */
.mh-hero {
  background: var(--mh-bg);
  border-bottom: 1px solid var(--mh-ink);
  padding: 46px 0 0;
}

.mh-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.mh-hero-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.mh-hero-kicker {
  display: block;
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--mh-pink);
  margin-bottom: 16px;
}

.mh-hero-title {
  font-family: var(--mh-serif);
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--mh-ink);
}

.mh-hero-sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mh-muted);
  max-width: 640px;
}

/* 四个频道：细线分隔 */
.mh-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--mh-line);
}

.mh-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px 28px;
  border-right: 1px solid var(--mh-line);
  transition: background .25s;
}

.mh-channel:last-child {
  border-right: 0;
}

.mh-channel:hover {
  background: var(--mh-card);
}

.mh-channel-no {
  font-family: var(--mh-serif);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mh-pink);
}

.mh-channel-name {
  font-family: var(--mh-serif);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--mh-ink);
}

.mh-channel:hover .mh-channel-name {
  color: var(--mh-pink);
}

.mh-channel-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mh-muted);
}

/* ------------------------------ 容器 ------------------------------ */
.mh-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 24px 44px;
  display: flex;
  gap: 34px;
  align-items: flex-start;
}

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

.mh-rail {
  flex: 0 0 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.mh-shell-article .mh-rail-sticky {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ------------------------------ 区块 ------------------------------ */
.mh-section {
  margin-bottom: 40px;
}

.mh-section-inline {
  margin-top: 34px;
}

.mh-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--mh-ink);
  flex-wrap: wrap;
}

.mh-section-title {
  font-family: var(--mh-serif);
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--mh-ink);
}

.mh-section-more,
.mh-section-hint {
  font-size: 12.5px;
  letter-spacing: .5px;
  color: var(--mh-muted);
}

.mh-section-more:hover {
  color: var(--mh-pink);
}

/* ------------------------------ 编辑精选 ------------------------------ */
.mh-feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--mh-line);
}

.mh-feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-right: 1px solid var(--mh-line);
  transition: background .25s;
}

.mh-feature-card:last-child {
  border-right: 0;
}

.mh-feature-card:hover {
  background: var(--mh-card);
}

.mh-feature-no {
  font-family: var(--mh-serif);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mh-pink);
}

.mh-feature-title {
  font-family: var(--mh-serif);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: .5px;
  color: var(--mh-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-feature-card:hover .mh-feature-title {
  color: var(--mh-pink);
}

.mh-feature-lead .mh-feature-title {
  font-size: 24px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.mh-feature-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mh-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-feature-lead .mh-feature-desc {
  -webkit-line-clamp: 4;
}

.mh-feature-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--mh-muted);
}

/* ------------------------------ tabs + 分类网格 ------------------------------ */
.mh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--mh-line);
}

.mh-tab {
  padding: 9px 20px;
  font-size: 13.5px;
  letter-spacing: 1px;
  color: var(--mh-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}

.mh-tab:hover {
  color: var(--mh-ink);
}

.mh-tab.on {
  color: var(--mh-ink);
  border-bottom-color: var(--mh-pink);
  font-weight: 600;
}

.mh-tab .cnt {
  margin-left: 6px;
  font-size: 11px;
  color: var(--mh-muted);
}

.mh-catgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.mh-cat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--mh-line);
  margin: -1px 0 0 -1px;
  transition: background .2s;
}

.mh-cat:hover {
  background: var(--mh-card);
}

.mh-cat-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mh-ink);
}

.mh-cat:hover .mh-cat-name {
  color: var(--mh-pink);
}

.mh-cat-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mh-muted);
}

/* ------------------------------ 列表 ------------------------------ */
.mh-list {
  display: flex;
  flex-direction: column;
}

.mh-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--mh-line);
}

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

.mh-item:first-child {
  padding-top: 0;
}

.mh-item-idx {
  flex: 0 0 auto;
  font-family: var(--mh-serif);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--mh-pink);
  width: 22px;
  margin-top: 5px;
}

.mh-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.mh-item-title {
  font-family: var(--mh-serif);
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .3px;
  color: var(--mh-ink);
}

.mh-item-title a:hover {
  color: var(--mh-pink);
}

.mh-item-desc {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mh-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-item-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--mh-muted);
}

.mh-dot {
  color: var(--mh-line);
}

/* ------------------------------ 分类墙 ------------------------------ */
.mh-catwall {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.mh-catpill {
  font-size: 12.5px;
  color: var(--mh-text2);
  border: 1px solid var(--mh-line);
  padding: 6px 13px;
  margin: -1px 0 0 -1px;
  transition: all .2s;
}

.mh-catpill:hover {
  color: #fff;
  background: var(--mh-ink);
  border-color: var(--mh-ink);
  position: relative;
  z-index: 1;
}

/* ------------------------------ 侧栏 ------------------------------ */
.mh-card {
  border-top: 1px solid var(--mh-ink);
  padding-top: 14px;
}

.mh-card-title {
  font-family: var(--mh-serif);
  display: flex;
  align-items: baseline;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--mh-ink);
}

.mh-card-title .more {
  margin-left: auto;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--mh-muted);
}

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

.mh-rank li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--mh-line);
}

.mh-rank li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mh-rank .no {
  flex: 0 0 auto;
  font-family: var(--mh-serif);
  font-size: 12px;
  color: var(--mh-muted);
  width: 16px;
  margin-top: 3px;
}

.mh-rank .no.hot {
  color: var(--mh-pink);
  font-weight: 700;
}

.mh-rank a {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mh-text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-rank a:hover {
  color: var(--mh-pink);
}

.mh-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.mh-cats a {
  font-size: 12px;
  color: var(--mh-text2);
  border: 1px solid var(--mh-line);
  padding: 4px 9px;
  margin: -1px 0 0 -1px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all .2s;
}

.mh-cats a:hover {
  color: #fff;
  background: var(--mh-pink);
  border-color: var(--mh-pink);
  position: relative;
  z-index: 1;
}

.mh-cats-refresh {
  margin-top: 11px;
  width: 100%;
  height: 28px;
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--mh-muted);
  background: transparent;
  border: 1px solid var(--mh-line);
  cursor: pointer;
  transition: all .2s;
}

.mh-cats-refresh:hover {
  color: var(--mh-pink);
  border-color: var(--mh-pink);
}

/* 目录 */
.mh-toc {
  max-height: 44vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mh-toc::-webkit-scrollbar {
  width: 3px;
}

.mh-toc::-webkit-scrollbar-thumb {
  background: var(--mh-line);
}

.mh-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mh-text2);
  padding: 6px 0 6px 10px;
  border-left: 1px solid var(--mh-line);
  transition: all .2s;
}

.mh-toc a.lv3 {
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--mh-muted);
}

.mh-toc a:hover {
  color: var(--mh-pink);
}

.mh-toc a.on {
  color: var(--mh-pink);
  border-left-color: var(--mh-pink);
  font-weight: 600;
}

/* ------------------------------ 分页 ------------------------------ */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 26px;
}

.pager .page-link {
  display: inline-block;
  width: auto;
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  padding: 0 11px;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--mh-text2);
  background: transparent;
  border: 1px solid var(--mh-line);
  transition: all .2s;
}

.pager .page-link:hover {
  color: var(--mh-pink);
  border-color: var(--mh-pink);
}

.pager .page-link.current {
  color: #fff;
  background: var(--mh-ink);
  border-color: var(--mh-ink);
}

/* ------------------------------ 文章页 ------------------------------ */
.mh-crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: .3px;
  color: var(--mh-muted);
  margin-bottom: 20px;
}

.mh-crumb a:hover {
  color: var(--mh-pink);
}

.mh-article {
  background: transparent;
}

.mh-art-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mh-line);
  margin-bottom: 26px;
}

.mh-art-cat {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--mh-pink);
  border: 1px solid var(--mh-pink);
  padding: 2px 9px;
  margin-bottom: 14px;
}

.mh-art-cat:hover {
  color: #fff;
  background: var(--mh-pink);
}

.mh-art-title {
  font-family: var(--mh-serif);
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--mh-ink);
}

.mh-art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--mh-muted);
}

/* 要点 */
.mh-keypoints {
  margin: 0 0 26px;
  padding: 20px 24px;
  background: var(--mh-pink-t);
  border-left: 2px solid var(--mh-pink);
}

.mh-keypoints-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--mh-ink);
  margin-bottom: 11px;
}

.mh-keypoints-icon {
  font-size: 11px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--mh-pink);
  padding: 1px 7px;
}

.mh-keypoints-list {
  margin: 0;
  padding-left: 19px;
}

.mh-keypoints-list li {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mh-text2);
  margin-bottom: 4px;
}

/* 正文 */
.mh-content {
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--mh-text2);
  overflow-wrap: break-word;
  word-break: break-word;
}

.mh-content p {
  margin: 0 0 1.2em;
}

.mh-content h2 {
  font-family: var(--mh-serif);
  margin: 2em 0 .85em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--mh-line);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--mh-ink);
}

.mh-content h3 {
  font-family: var(--mh-serif);
  margin: 1.6em 0 .75em;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--mh-ink);
}

.mh-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  cursor: zoom-in;
}

.mh-content a {
  color: var(--mh-pink);
  border-bottom: 1px solid rgba(214, 51, 108, .35);
}

.mh-content blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  background: var(--mh-card);
  border-left: 2px solid var(--mh-gold);
  color: var(--mh-muted);
}

.mh-content ul,
.mh-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}

.mh-content li {
  margin-bottom: .5em;
}

.mh-content code {
  background: var(--mh-card);
  color: #b3261e;
  padding: 2px 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.mh-content pre {
  background: #17130f;
  color: #e6ded4;
  padding: 16px 18px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 13.5px;
  line-height: 1.7;
}

.mh-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
}

.mh-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.mh-content table th,
.mh-content table td {
  border: 1px solid var(--mh-line);
  padding: 9px 13px;
  font-size: 14.5px;
  white-space: nowrap;
}

.mh-content table th {
  background: var(--mh-card);
  font-weight: 700;
}

.mh-art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--mh-line);
}

.mh-art-tags a {
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--mh-text2);
  border: 1px solid var(--mh-line);
  padding: 3px 10px;
}

.mh-art-tags a:hover {
  color: #fff;
  background: var(--mh-ink);
  border-color: var(--mh-ink);
}

/* 上下篇 */
.mh-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--mh-line);
}

.mh-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border-right: 1px solid var(--mh-line);
  transition: background .2s;
}

.mh-prevnext-link:last-child {
  border-right: 0;
}

.mh-prevnext-link:hover {
  background: var(--mh-card);
}

.mh-prevnext-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--mh-muted);
}

.mh-prevnext-title {
  font-family: var(--mh-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mh-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-prevnext-link:hover .mh-prevnext-title {
  color: var(--mh-pink);
}

.mh-prevnext-link.is-empty {
  cursor: default;
}

.mh-prevnext-link.is-empty .mh-prevnext-title {
  color: var(--mh-muted);
}

/* 相关 */
.mh-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}

.mh-related-item {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mh-text2);
  padding-left: 12px;
  border-left: 1px solid var(--mh-line);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-related-item:hover {
  color: var(--mh-pink);
  border-left-color: var(--mh-pink);
}

/* ------------------------------ 列表页头 / 面板 ------------------------------ */
.mh-page-head {
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mh-ink);
}

.mh-page-head h1 {
  font-family: var(--mh-serif);
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--mh-ink);
}

.mh-page-head p {
  margin: 0;
  font-size: 13px;
  color: var(--mh-muted);
}

.mh-panel {
  border: 1px solid var(--mh-line);
  padding: 26px 28px;
  background: var(--mh-card);
}

.mh-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.mh-tagpill {
  font-size: 12.5px;
  color: var(--mh-text2);
  border: 1px solid var(--mh-line);
  padding: 6px 13px;
  margin: -1px 0 0 -1px;
  transition: all .2s;
}

.mh-tagpill:hover {
  color: #fff;
  background: var(--mh-pink);
  border-color: var(--mh-pink);
  position: relative;
  z-index: 1;
}

.mh-empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--mh-muted);
}

/* 错误页 */
.mh-error {
  max-width: 600px;
  margin: 56px auto;
  padding: 46px 30px;
  text-align: center;
  border: 1px solid var(--mh-line);
  background: var(--mh-card);
}

.mh-error-code {
  font-family: var(--mh-serif);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 4px;
  color: var(--mh-pink);
  opacity: .3;
  margin-bottom: 10px;
}

.mh-error h1 {
  font-family: var(--mh-serif);
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--mh-ink);
}

.mh-error p {
  margin: 0 0 26px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mh-muted);
}

.mh-error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.mh-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all .2s;
}

.mh-btn-primary {
  color: #fff;
  background: var(--mh-ink);
}

.mh-btn-primary:hover {
  background: var(--mh-pink);
}

.mh-btn-plain {
  color: var(--mh-text2);
  border: 1px solid var(--mh-line);
}

.mh-btn-plain:hover {
  color: var(--mh-pink);
  border-color: var(--mh-pink);
}

/* ------------------------------ 留言板 ------------------------------ */
.guestbook-form {
  max-width: 700px;
  margin: 0 auto;
}

.guestbook-form .form-item {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.guestbook-form .form-label {
  flex: 0 0 92px;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mh-text2);
  text-align: right;
}

.guestbook-form .form-value {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.guestbook-form input[type="text"],
.guestbook-form input[type="number"],
.guestbook-form input[type="email"],
.guestbook-form input[type="file"],
.guestbook-form textarea,
.guestbook-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  font-size: 14.5px;
  color: var(--mh-text);
  background: var(--mh-bg);
  border: 1px solid var(--mh-line);
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: var(--mh-muted);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus,
.guestbook-form select:focus {
  border-color: var(--mh-ink);
}

.guestbook-form textarea {
  resize: vertical;
  line-height: 1.75;
}

.mh-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mh-captcha-row input[type="text"] {
  flex: 1 1 auto;
}

.guestbook-form .form-captcha {
  flex: 0 0 auto;
  width: 116px;
  height: 42px;
  border: 1px solid var(--mh-line);
  cursor: pointer;
  object-fit: cover;
}

.guestbook-form .form-control {
  padding-left: 108px;
  margin-top: 10px;
}

.guestbook-form .form-btn {
  min-width: 146px;
  height: 42px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--mh-ink);
  border: 0;
  cursor: pointer;
  transition: background .2s;
}

.guestbook-form .form-btn:hover {
  background: var(--mh-pink);
}

/* ------------------------------ 页脚 ------------------------------ */
.mh-foot {
  background: var(--mh-ink);
  color: #a9a19a;
  padding-top: 42px;
  margin-top: 10px;
}

html[data-theme="dark"] .mh-foot {
  background: #0d0b0a;
}

.mh-foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}

.mh-foot-col h4 {
  font-family: var(--mh-serif);
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #f2ece4;
}

.mh-foot-col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #a9a19a;
}

.mh-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.mh-foot-links a {
  font-size: 13px;
  color: #a9a19a;
  transition: color .2s;
}

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

.mh-foot-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .5px;
  color: #8c8279;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ------------------------------ 回到顶部 / 灯箱 ------------------------------ */
.mh-totop {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 40;
  width: 40px;
  height: 40px;
  font-size: 15px;
  color: #fff;
  background: var(--mh-ink);
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}

.mh-totop.show {
  opacity: 1;
  visibility: visible;
}

.mh-totop:hover {
  background: var(--mh-pink);
}

.mh-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 9, .94);
}

.mh-viewer.open {
  display: flex;
}

.mh-viewer img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}

.mh-viewer .close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media screen and (max-width: 1120px) {
  .mh-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
  }

  .mh-main {
    width: 100%;
  }

  .mh-rail {
    width: 100%;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
  }

  .mh-shell-article .mh-rail-sticky {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
  }

  .mh-catgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .mh-hero-title {
    font-size: 36px;
  }

  .mh-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-channel {
    border-bottom: 1px solid var(--mh-line);
  }

  .mh-channel:nth-child(2n) {
    border-right: 0;
  }

  .mh-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .mh-feature-card {
    border-right: 0;
    border-bottom: 1px solid var(--mh-line);
  }

  .mh-feature-card:last-child {
    border-bottom: 0;
  }

  .mh-catgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .mh-art-title {
    font-size: 26px;
  }

  .mh-related {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 680px) {
  .mh-top-inner {
    height: 56px;
    padding: 0 16px;
    gap: 10px;
  }

  .mh-menu-btn {
    display: flex;
  }

  .mh-nav {
    display: none;
  }

  .mh-search {
    display: none;
  }

  .mh-brand-text {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .mh-drawer {
    top: 56px;
  }

  .mh-theme {
    margin-left: auto;
  }

  .mh-hero {
    padding: 28px 0 0;
  }

  .mh-hero-inner,
  .mh-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mh-hero-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .mh-channel {
    padding: 18px 14px 20px;
  }

  .mh-channel-name {
    font-size: 18px;
  }

  .mh-section-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .mh-catgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mh-item-title {
    font-size: 16.5px;
  }

  .mh-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .mh-shell-article .mh-rail-sticky {
    grid-template-columns: minmax(0, 1fr);
  }

  .mh-art-title {
    font-size: 22px;
  }

  .mh-content {
    font-size: 16px;
  }

  .mh-content h2 {
    font-size: 19px;
  }

  .mh-prevnext {
    grid-template-columns: minmax(0, 1fr);
  }

  .mh-prevnext-link {
    border-right: 0;
    border-bottom: 1px solid var(--mh-line);
  }

  .mh-prevnext-link:last-child {
    border-bottom: 0;
  }

  .mh-page-head h1 {
    font-size: 23px;
  }

  .mh-panel {
    padding: 18px 16px;
  }

  .mh-error {
    margin: 28px 14px;
    padding: 30px 20px;
  }

  .guestbook-form .form-item {
    flex-direction: column;
    gap: 6px;
  }

  .guestbook-form .form-label {
    flex: none;
    width: 100%;
    text-align: left;
    padding-top: 0;
  }

  .guestbook-form .form-control {
    padding-left: 0;
  }

  .mh-totop {
    right: 14px;
    bottom: 18px;
    width: 38px;
    height: 38px;
  }
}
