/* ==========================================================================
   minimalmono — 极简黑白灰新闻门户模板
   命名前缀: mm-
   ========================================================================== */

:root {
  --mm-bg: #ffffff;
  --mm-bg-alt: #fafafa;
  --mm-text: #0a0a0a;
  --mm-text-soft: #1a1a1a;
  --mm-text-mute: #6b6b6b;
  --mm-line: #e5e5e5;
  --mm-line-strong: #d4d4d4;
  --mm-accent: #4a5568;
  --mm-black: #000000;
  --mm-max: 1200px;
  --mm-gap: 32px;
  --mm-radius: 2px;
  --mm-font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: var(--mm-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

.mm-wrap {
  max-width: var(--mm-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.mm-header {
  border-bottom: 1px solid var(--mm-line);
}

.mm-topbar {
  background: var(--mm-bg-alt);
  border-bottom: 1px solid var(--mm-line);
}

.mm-topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  font-size: 12px;
  color: var(--mm-text-mute);
  letter-spacing: 0.02em;
}

.mm-topbar-sep {
  color: var(--mm-line-strong);
}

.mm-headrow-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.mm-logo {
  flex: 0 0 auto;
  display: inline-flex;
}

.mm-logo img {
  height: auto;
}

.mm-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}

.mm-nav::-webkit-scrollbar {
  display: none;
}

.mm-nav-link {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--mm-text-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.mm-nav-link:hover {
  color: var(--mm-black);
  border-bottom-color: var(--mm-black);
}

.mm-nav-link-home {
  color: var(--mm-accent);
  font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/* Index — 首页栏目分区                                                     */
/* ---------------------------------------------------------------------- */

.mm-main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.mm-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--mm-gap) 40px;
}

.mm-section {
  min-width: 0;
}

.mm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--mm-text);
}

.mm-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mm-section-title a:hover {
  color: var(--mm-accent);
}

.mm-section-more {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--mm-text-mute);
}

.mm-section-more:hover {
  color: var(--mm-black);
}

.mm-list {
  display: flex;
  flex-direction: column;
}

.mm-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px dashed var(--mm-line);
}

.mm-row:last-child {
  border-bottom: none;
}

.mm-row-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: var(--mm-text-soft);
}

.mm-row-title:hover {
  color: var(--mm-black);
  text-decoration: underline;
}

.mm-row-date {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--mm-text-mute);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------- */
/* 列表页 / 文章页 — 通用双栏布局                                            */
/* ---------------------------------------------------------------------- */

.mm-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.mm-side {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
  position: sticky;
  top: 24px;
}

.mm-side-block {
  border-top: 2px solid var(--mm-text);
  padding-top: 14px;
}

.mm-side-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mm-side-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mm-line);
}

.mm-side-list li:last-child {
  border-bottom: none;
}

.mm-side-list a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--mm-text-mute);
}

.mm-side-list a:hover {
  color: var(--mm-black);
}

.mm-content {
  min-width: 0;
}

.mm-breadcrumb {
  font-size: 13px;
  color: var(--mm-text-mute);
  margin-bottom: 20px;
}

.mm-breadcrumb a:hover {
  color: var(--mm-accent);
  text-decoration: underline;
}

.mm-breadcrumb-sep {
  margin: 0 6px;
  color: var(--mm-line-strong);
}

.mm-breadcrumb-current {
  color: var(--mm-text-soft);
}

.mm-list-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--mm-line);
}

.mm-article-list {
  display: flex;
  flex-direction: column;
}

.mm-article-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--mm-line);
}

.mm-article-item:first-child {
  padding-top: 4px;
}

.mm-article-item-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--mm-text);
  margin-bottom: 8px;
}

.mm-article-item-title:hover {
  color: var(--mm-accent);
  text-decoration: underline;
}

.mm-article-item-info {
  font-size: 14px;
  color: var(--mm-text-mute);
  line-height: 1.6;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mm-article-item-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--mm-text-mute);
}

.mm-article-item-meta span {
  font-variant-numeric: tabular-nums;
}

.mm-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--mm-line);
}

.mm-pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--mm-line-strong);
  border-radius: var(--mm-radius);
  font-size: 13px;
  color: var(--mm-text-soft);
}

.mm-pager-link:hover {
  border-color: var(--mm-black);
  background: var(--mm-black);
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* 文章详情页                                                               */
/* ---------------------------------------------------------------------- */

.mm-article-head {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mm-line);
}

.mm-article-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.mm-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mm-text-mute);
  margin-bottom: 16px;
}

.mm-article-meta-dot {
  color: var(--mm-line-strong);
}

.mm-article-summary {
  font-size: 15px;
  color: var(--mm-text-mute);
  padding: 14px 18px;
  background: var(--mm-bg-alt);
  border-left: 2px solid var(--mm-text);
}

.mm-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--mm-text-soft);
  padding: 8px 0 36px;
}

.mm-article-body img {
  margin: 20px auto;
}

.mm-article-body p {
  margin-bottom: 18px;
}

.mm-article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--mm-line);
}

.mm-article-nav-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
}

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

.mm-article-nav-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mm-text-mute);
  text-transform: uppercase;
}

.mm-article-nav-item a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 14px;
  color: var(--mm-text-soft);
}

.mm-article-nav-item a:hover {
  color: var(--mm-accent);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.mm-footer {
  border-top: 1px solid var(--mm-line);
  background: var(--mm-bg-alt);
  padding: 48px 0 28px;
}

.mm-footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.mm-footer-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.mm-footer-slogan {
  font-size: 13px;
  color: var(--mm-text-mute);
}

.mm-footer-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mm-footer-group-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.mm-footer-group-list li {
  padding: 4px 0;
}

.mm-footer-group-list a {
  font-size: 13px;
  color: var(--mm-text-mute);
}

.mm-footer-group-list a:hover {
  color: var(--mm-black);
  text-decoration: underline;
}

.mm-footer-rule {
  height: 1px;
  background: var(--mm-line);
  margin: 32px 0 20px;
}

.mm-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.mm-copy {
  font-size: 12.5px;
  color: var(--mm-text-mute);
}

.mm-copy a {
  color: var(--mm-text-mute);
}

.mm-copy a:hover {
  color: var(--mm-black);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* 响应式                                                                   */
/* ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .mm-sections {
    grid-template-columns: repeat(2, 1fr);
  }

  .mm-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .mm-article-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .mm-wrap {
    padding: 0 18px;
  }

  .mm-headrow-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .mm-nav {
    order: 3;
    width: 100%;
    padding-bottom: 6px;
    gap: 20px;
  }

  .mm-sections {
    grid-template-columns: 1fr;
  }

  .mm-layout {
    grid-template-columns: 1fr;
  }

  .mm-side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
  }

  .mm-side-block {
    flex: 1 1 45%;
    min-width: 220px;
  }

  .mm-list-title {
    font-size: 24px;
  }

  .mm-article-title {
    font-size: 24px;
  }

  .mm-footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mm-footer-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .mm-topbar-inner {
    font-size: 11px;
  }

  .mm-nav-link {
    font-size: 14px;
  }

  .mm-section-title {
    font-size: 18px;
  }

  .mm-list-title {
    font-size: 21px;
  }

  .mm-article-title {
    font-size: 21px;
  }

  .mm-article-item-title {
    font-size: 16px;
  }

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

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

  .mm-footer-groups {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mm-side {
    flex-direction: column;
  }

  .mm-side-block {
    min-width: 0;
  }
}
