:root {
  --mh-main: #ff5000;
  --mh-main-hover: #e04800;
  --mh-dark: #222222;
  --mh-bg: #ffffff;
  --mh-gray: #f5f5f5;
  --mh-line: #e6e6e6;
  --mh-text: #4b5563;
  --mh-title: #222222;
  --mh-muted: #9ca3af;
  --mh-white: #ffffff;
  --mh-footer: #1a1a1a;
  --mh-container: 1280px;
  --mh-header-h: 72px;
  --mh-radius: 6px;
  --mh-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --mh-ease: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mh-text);
  background: var(--mh-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--mh-ease);
}

a:hover {
  color: var(--mh-main);
}

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

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

button,
input {
  font-family: inherit;
}

.mh-container {
  width: 100%;
  max-width: var(--mh-container);
  margin: 0 auto;
  padding: 0 12px;
}

.mh-page {
  padding: 16px 0 40px;
}

.mh-line-1,
.mh-line-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mh-line-1 {
  -webkit-line-clamp: 1;
}

.mh-line-2 {
  -webkit-line-clamp: 2;
}

/* Header */
.mh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--mh-white);
  border-bottom: 1px solid var(--mh-line);
}

.mh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--mh-header-h);
  padding: 10px 0;
}

.mh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--mh-dark);
}

.mh-logo img {
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
}

.mh-logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--mh-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.mh-logo__name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mh-dark);
}

.mh-logo__sub {
  font-size: 12px;
  color: var(--mh-muted);
  margin-top: 2px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  flex: 1;
  justify-content: center;
}

.mh-nav__item {
  position: relative;
}

.mh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mh-dark);
}

.mh-nav__link.is-on,
.mh-nav__link:hover {
  color: var(--mh-main);
}

.mh-nav__caret {
  font-size: 10px;
  opacity: 0.6;
}

.mh-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--mh-gray);
  box-shadow: var(--mh-shadow);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 50;
}

.mh-nav__item:hover .mh-nav__sub {
  display: block;
}

.mh-nav__sub a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--mh-text);
}

.mh-nav__sub a:hover {
  color: var(--mh-main);
}

.mh-header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mh-search {
  display: flex;
  width: 240px;
}

.mh-search input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid var(--mh-line);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  padding: 0 10px;
  outline: none;
  font-size: 13px;
}

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

.mh-search button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  background: var(--mh-main);
  color: #fff;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-size: 13px;
}

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

.mh-user {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}

.mh-user a {
  color: var(--mh-dark);
  font-weight: 600;
}

.mh-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--mh-line);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  color: var(--mh-dark);
}

.mh-mobile {
  display: none;
  border-top: 1px solid var(--mh-line);
  padding: 12px 0 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mh-mobile a {
  display: block;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  background: var(--mh-gray);
  border-radius: 4px;
}

/* Ads */
.mh-ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.mh-ads a {
  display: block;
  height: 96px;
  background: var(--mh-dark);
  border-radius: var(--mh-radius);
  overflow: hidden;
}

.mh-ads img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home layout */
.mh-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 20px;
}

.mh-main > .mh-panel + .mh-panel,
.mh-side > .mh-panel + .mh-panel {
  margin-top: 20px;
}

.mh-panel {
  background: var(--mh-gray);
  border-radius: var(--mh-radius);
  padding: 16px;
}

.mh-panel--hero {
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.mh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mh-line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.mh-head h2,
.mh-head__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--mh-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mh-head h2::before,
.mh-head__title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--mh-main);
  border-radius: 2px;
}

.mh-more {
  font-size: 12px;
  color: var(--mh-main);
  white-space: nowrap;
}

.mh-more:hover {
  text-decoration: underline;
}

/* Hero */
.mh-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
}

.mh-hero__track {
  display: flex;
  transition: transform 0.6s ease;
}

.mh-hero__slide {
  flex: 0 0 100%;
  position: relative;
  height: 380px;
  color: #fff;
}

.mh-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mh-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  font-size: 18px;
  font-weight: 700;
}

.mh-hero__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.mh-hero__btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.mh-hero__btn--prev { left: 12px; }
.mh-hero__btn--next { right: 12px; }

.mh-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.mh-hero__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.mh-hero__dot.is-on {
  background: #fff;
}

/* Grids */
.mh-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mh-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mh-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.mh-thumb {
  display: block;
  color: var(--mh-dark);
}

.mh-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: opacity var(--mh-ease), transform var(--mh-ease);
}

.mh-thumb:hover img {
  opacity: 0.88;
  transform: scale(1.03);
}

.mh-thumb p,
.mh-thumb__title {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
}

.mh-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.mh-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.mh-card__body {
  padding: 10px 10px 12px;
}

.mh-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--mh-dark);
  margin-bottom: 6px;
}

.mh-card__desc {
  font-size: 12px;
  color: var(--mh-muted);
}

.mh-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mh-list a {
  display: flex;
  gap: 10px;
  color: var(--mh-dark);
}

.mh-list a:hover .mh-list__title {
  color: var(--mh-main);
}

.mh-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.mh-list__title {
  font-size: 14px;
  font-weight: 600;
}

.mh-list__meta {
  font-size: 12px;
  color: var(--mh-main);
  margin-top: 4px;
}

.mh-news {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mh-news a {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--mh-dark);
  line-height: 1.5;
}

.mh-news a::before {
  content: "·";
  color: var(--mh-main);
  font-weight: 800;
}

.mh-side-list a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mh-side-list a::before {
  content: "· ";
}

.mh-marquee {
  overflow: hidden;
}

.mh-marquee__inner {
  display: flex;
  gap: 12px;
  width: max-content;
}

.mh-marquee a {
  width: 140px;
  flex-shrink: 0;
  color: var(--mh-dark);
}

.mh-marquee img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
}

.mh-marquee p {
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
}

.mh-adbox {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.mh-adbox img {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: cover;
}

.mh-adbox span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Inner pages */
.mh-pagehead {
  background: var(--mh-gray);
  border-bottom: 1px solid var(--mh-line);
  padding: 22px 0;
}

.mh-pagehead h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--mh-dark);
}

.mh-pagehead p {
  margin-top: 6px;
  color: var(--mh-muted);
  font-size: 13px;
}

.mh-crumb {
  font-size: 13px;
  color: var(--mh-muted);
  margin: 16px 0 18px;
}

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

.mh-crumb .crumb {
  color: var(--mh-text);
}

.mh-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--mh-muted);
}

.mh-article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mh-item {
  background: var(--mh-gray);
  border-radius: var(--mh-radius);
  overflow: hidden;
  transition: transform var(--mh-ease), box-shadow var(--mh-ease);
}

.mh-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--mh-shadow);
}

.mh-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.mh-item__body {
  padding: 12px;
}

.mh-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mh-dark);
  min-height: 44px;
}

.mh-item__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--mh-muted);
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.pagination li {
  min-width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  border: 1px solid var(--mh-line);
  background: #fff;
  border-radius: 4px;
}

.pagination li a,
.pagination li span {
  display: block;
  padding: 0 10px;
  color: var(--mh-dark);
}

.pagination li.active,
.pagination .active {
  background: var(--mh-main);
  border-color: var(--mh-main);
  color: #fff;
}

.pagination li.active span,
.pagination .active span {
  color: #fff;
}

.pagination li:hover {
  border-color: var(--mh-main);
}

/* Detail */
.mh-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.mh-article {
  background: #fff;
}

.mh-article h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--mh-dark);
  line-height: 1.35;
}

.mh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
  font-size: 13px;
  color: var(--mh-muted);
}

.mh-cover {
  margin-bottom: 20px;
}

.mh-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--mh-radius);
}

.mh-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.mh-content img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

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

.mh-prenext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--mh-line);
  font-size: 13px;
}

.mh-prenext a {
  max-width: 48%;
}

.mh-related {
  margin-top: 32px;
}

.mh-widget {
  background: var(--mh-gray);
  border-radius: var(--mh-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.mh-widget h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--mh-dark);
  border-bottom: 1px solid var(--mh-line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.mh-phone {
  color: var(--mh-main);
  font-weight: 700;
}

.mh-single {
  background: var(--mh-gray);
  border-radius: var(--mh-radius);
  padding: 28px;
}

.mh-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mh-subnav a {
  padding: 6px 14px;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  color: var(--mh-dark);
}

.mh-subnav a.is-on,
.mh-subnav .cur a,
.mh-subnav .is-on {
  background: var(--mh-main);
  color: #fff;
}

.mh-searchbox {
  background: var(--mh-gray);
  border-radius: var(--mh-radius);
  padding: 24px;
  margin-bottom: 20px;
}

.mh-searchbox form {
  display: flex;
  max-width: 560px;
  margin: 12px auto 0;
}

.mh-searchbox input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--mh-line);
  border-right: 0;
  padding: 0 14px;
  outline: none;
  border-radius: 4px 0 0 4px;
}

.mh-searchbox button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  background: var(--mh-main);
  color: #fff;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
}

.mh-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--mh-muted);
}

/* Footer */
.mh-footer {
  background: var(--mh-footer);
  color: #9ca3af;
  padding: 40px 0 20px;
  margin-top: 20px;
}

.mh-footer a {
  color: #9ca3af;
}

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

.mh-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.mh-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}

.mh-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mh-footer__copy {
  border-top: 1px solid #333;
  margin-top: 28px;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.mh-backtop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--mh-main);
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 18px;
  z-index: 30;
}

.mh-backtop.is-show {
  display: block;
}

@media (max-width: 1024px) {
  .mh-nav {
    display: none;
  }

  .mh-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mh-mobile.is-open {
    display: grid;
  }

  .mh-layout,
  .mh-detail {
    grid-template-columns: 1fr;
  }

  .mh-grid-6,
  .mh-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mh-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mh-hero__slide {
    height: 260px;
  }

  .mh-search {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .mh-header__inner {
    flex-wrap: wrap;
  }

  .mh-header__tools {
    width: 100%;
    justify-content: space-between;
  }

  .mh-search {
    flex: 1;
    width: auto;
  }

  .mh-ads,
  .mh-grid-4,
  .mh-grid-3,
  .mh-grid-2,
  .mh-article-grid,
  .mh-grid-6 {
    grid-template-columns: 1fr 1fr;
  }

  .mh-hero__slide {
    height: 200px;
  }

  .mh-footer__grid {
    grid-template-columns: 1fr;
  }

  .mh-prenext {
    flex-direction: column;
  }

  .mh-prenext a {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .mh-ads,
  .mh-grid-4,
  .mh-grid-3,
  .mh-grid-2,
  .mh-article-grid {
    grid-template-columns: 1fr;
  }

  .mh-logo__sub {
    display: none;
  }

  .mh-pagehead h1,
  .mh-article h1 {
    font-size: 22px;
  }
}
