/*
Theme Name: RiPro-V5 米哈社风格子主题
Theme URI: https://feixueacg.uk/
Description: 在 RiPro-V5 功能基础上实现深色游戏资源首页。
Author: Feixue
Template: ripro-v5
Version: 1.6.0
Text Domain: ripro-mihas
*/

:root {
  --mhs-bg: #f5f6f8;
  --mhs-panel: #ffffff;
  --mhs-panel-soft: #f0f1f3;
  --mhs-text: #25262a;
  --mhs-muted: #777b84;
  --mhs-accent: #ff3f8e;
  --mhs-accent-soft: rgba(255, 63, 142, .14);
  --mhs-line: rgba(20,24,32,.09);
}

html[data-bs-theme="dark"] {
  --mhs-bg: #181818;
  --mhs-panel: #232323;
  --mhs-panel-soft: #2b2b2b;
  --mhs-text: #f3f3f3;
  --mhs-muted: #a4a4aa;
  --mhs-line: rgba(255,255,255,.08);
}

body.home,
body.feixue-mhs-listing {
  background: var(--mhs-bg) !important;
  color: var(--mhs-text);
}

.mhs-site-header {
  background: var(--mhs-panel) !important;
  border-bottom: 1px solid var(--mhs-line);
  box-shadow: none !important;
}

.mhs-site-header .navbar {
  min-height: 70px;
}

.mhs-site-header .mhs-brand-wrap {
  flex: 0 0 auto;
  width: auto;
}

.mhs-site-header .mhs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffb239 !important;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
}

.mhs-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mhs-brand-text {
  display: inline-block;
  color: #ffb239;
}

.mhs-site-header .main-menu {
  margin-left: 28px;
}

.mhs-site-header .nav-list {
  display: flex !important;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mhs-site-header .nav-list > li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mhs-site-header .nav-list > li > a {
  display: block;
  padding: 22px 0;
  white-space: nowrap;
}

.mhs-site-header .nav-list > li > a,
.mhs-site-header .actions,
.mhs-site-header .actions a {
  color: #aaa !important;
}

.mhs-site-header .nav-list > li.current-menu-item > a,
.mhs-site-header .nav-list > li > a:hover,
.mhs-site-header .actions a:hover {
  color: var(--mhs-accent) !important;
}

.mhs-site-header + .header-gap {
  background: var(--mhs-panel);
}

.mhs-home {
  min-height: 70vh;
  padding: 20px 0 56px;
  background: var(--mhs-bg);
}

.mhs-listing-page {
  min-height: 68vh;
  padding: 30px 0 60px;
  background: var(--mhs-bg);
}

.mhs-listing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--mhs-line);
}

.mhs-listing-kicker {
  margin-bottom: 8px;
  color: var(--mhs-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mhs-listing-title {
  margin: 0;
  color: var(--mhs-text);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 750;
}

.mhs-listing-count {
  flex: 0 0 auto;
  color: var(--mhs-muted);
  font-size: 13px;
}

.mhs-listing-page .mhs-post-grid { margin-top: 24px; }

.mhs-shell {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.mhs-promos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.mhs-promo {
  position: relative;
  min-height: 72px;
  padding: 13px 14px 12px 58px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: #fff !important;
  background: linear-gradient(135deg, #4cc4f1, #9b7cff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .2s ease, filter .2s ease;
}

.mhs-promo:nth-child(2) { background: linear-gradient(135deg, #f65a87, #8d72ff); }
.mhs-promo:nth-child(3) { background: linear-gradient(135deg, #ff5d78, #ff9c35); }
.mhs-promo:nth-child(4) { background: linear-gradient(135deg, #f5a61d, #ffcf35); }
.mhs-promo:nth-child(5) { background: linear-gradient(135deg, #8d6df0, #75a7ff); }
.mhs-promo:nth-child(6) { background: linear-gradient(135deg, #282850, #5748b8); }

.mhs-promo:hover {
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.mhs-promo-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  translate: 0 -50%;
  font-size: 31px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}

.mhs-promo strong,
.mhs-promo span { display: block; }
.mhs-promo strong { font-size: 18px; line-height: 1.2; }
.mhs-promo span { margin-top: 5px; font-size: 12px; opacity: .88; }

.mhs-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: #ffd522;
  font-size: 14px;
}

.mhs-section { margin-top: 26px; }
.mhs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.mhs-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--mhs-text);
  font-size: 20px;
  font-weight: 700;
}

.mhs-section-title::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8c52ff, #d333ff);
  box-shadow: 0 0 18px rgba(180, 65, 255, .35);
}

.mhs-period-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mhs-period-switch a {
  min-width: 56px;
  padding: 7px 14px;
  border: 1px solid #3a3e4b;
  border-radius: 999px;
  color: var(--mhs-muted) !important;
  font-size: 13px;
  text-align: center;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.mhs-period-switch a:hover,
.mhs-period-switch a.is-active {
  color: var(--mhs-accent) !important;
  border-color: var(--mhs-accent);
  background: var(--mhs-accent-soft);
}

.mhs-hot-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  overflow: hidden;
}

.mhs-hot-card {
  position: relative;
  min-width: 0;
}

.mhs-hot-card .mhs-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.mhs-rank {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: #606676;
}

.mhs-hot-card:nth-child(-n+3) .mhs-rank { background: var(--mhs-accent); }

.mhs-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: #303030 center / cover no-repeat;
}

.mhs-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%);
  opacity: .65;
  transition: opacity .2s ease;
}

.mhs-thumb:hover::after { opacity: .15; }
.mhs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.mhs-thumb:hover img { transform: scale(1.045); }

.mhs-hot-title {
  display: -webkit-box;
  margin: 9px 2px 0;
  overflow: hidden;
  color: var(--mhs-muted) !important;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mhs-filters {
  margin-top: 28px;
  padding-top: 2px;
}

.mhs-filter-row,
.mhs-sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 25px;
  padding: 9px 0;
}

.mhs-platform-row {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--mhs-line);
}

.mhs-tag-row {
  gap: 8px 22px;
  padding: 13px 0;
}

.mhs-chip,
.mhs-sort-link {
  color: #9b9b9f !important;
  font-size: 14px;
  transition: color .18s ease;
}

.mhs-chip:hover,
.mhs-sort-link:hover,
.mhs-chip.is-active,
.mhs-sort-link.is-active {
  color: var(--mhs-accent) !important;
}

.mhs-chip.is-active,
.mhs-sort-link.is-active { font-weight: 700; }

.mhs-sort-row {
  gap: 8px 27px;
  padding: 13px 0;
  border-top: 1px solid var(--mhs-line);
  border-bottom: 1px solid var(--mhs-line);
}

.mhs-resource-head {
  margin: 27px 0 -2px;
}

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

.mhs-post-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 22px;
  margin-top: 22px;
}

.mhs-post-card {
  min-width: 0;
  color: var(--mhs-text);
}

.mhs-post-card .mhs-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

.mhs-card-title {
  display: -webkit-box;
  margin: 10px 0 7px;
  overflow: hidden;
  color: #e9e9ea !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mhs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #777b82;
  font-size: 12px;
}

.mhs-card-cat {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mhs-empty {
  grid-column: 1 / -1;
  padding: 70px 20px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 12px;
  color: var(--mhs-muted);
  text-align: center;
}

.mhs-pagination { margin-top: 36px; text-align: center; }
.mhs-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  margin: 3px;
  padding: 0 10px;
  border-radius: 8px;
  color: #aaa;
  background: var(--mhs-panel);
}
.mhs-pagination .page-numbers.current,
.mhs-pagination .page-numbers:hover { color: #fff; background: var(--mhs-accent); }

body.feixue-mhs-front .site-footer,
body.feixue-mhs-listing .site-footer {
  margin-top: 0 !important;
  color: #777;
  background: var(--mhs-panel) !important;
  border-top: 1px solid var(--mhs-line);
}

body.feixue-mhs-front .rollbar,
body.feixue-mhs-listing .rollbar { display: none !important; }

/* Member center */
body.uc-page {
  background: var(--mhs-bg) !important;
  color: var(--mhs-text);
}

body.uc-page main > .container {
  width: min(1280px, calc(100% - 32px));
  max-width: none;
  margin-top: 28px !important;
  margin-bottom: 48px;
}

body.uc-page .bg-white,
body.uc-page .card {
  color: var(--mhs-text);
  background: var(--mhs-panel) !important;
  border-color: var(--mhs-line) !important;
  box-shadow: none !important;
}

body.uc-page .card,
body.uc-page .bg-white.rounded {
  border-radius: 12px !important;
}

body.uc-page [data-sticky] > .bg-white:first-child {
  overflow: hidden;
  border: 1px solid var(--mhs-line);
  background:
    radial-gradient(circle at 50% 0, rgba(255,63,142,.22), transparent 46%),
    var(--mhs-panel) !important;
}

body.uc-page [data-sticky] .avatar-img {
  border-color: rgba(255,255,255,.12) !important;
  background: #343434;
}

body.uc-page [data-sticky] .bg-success {
  color: #ff9fc4 !important;
  background: var(--mhs-accent-soft) !important;
  border-top: 1px solid rgba(255,63,142,.2) !important;
}

body.uc-page [data-sticky] .text-success { color: #ff83b4 !important; }
body.uc-page [data-sticky] .badge {
  color: #ffc0d8 !important;
  background: rgba(255,63,142,.13) !important;
}

body.uc-page .uc-menu-warp {
  margin: 0;
  padding: 10px;
  list-style: none;
}

body.uc-page .uc-menu-warp .menu-item { margin: 3px 0; }

body.uc-page .uc-menu-warp .menu-item a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #aaaeb6 !important;
  transition: color .18s ease, background .18s ease, translate .18s ease;
}

body.uc-page .uc-menu-warp .menu-item a:hover,
body.uc-page .uc-menu-warp .current-menu-item a {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(255,63,142,.24), rgba(255,63,142,.06));
  translate: 2px 0;
}

body.uc-page .uc-menu-warp .current-menu-item a i { color: var(--mhs-accent); }

body.uc-page h1,
body.uc-page h2,
body.uc-page h3,
body.uc-page h4,
body.uc-page h5,
body.uc-page h6,
body.uc-page label,
body.uc-page .form-label { color: #f2f2f4 !important; }

body.uc-page .text-muted,
body.uc-page p,
body.uc-page sub { color: #94979f !important; }

body.uc-page .form-control,
body.uc-page .form-select,
body.uc-page textarea,
body.uc-page input:not([type="checkbox"]):not([type="radio"]) {
  color: #f1f1f2 !important;
  background: #171719 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: none !important;
}

body.uc-page .form-control:focus,
body.uc-page textarea:focus,
body.uc-page input:focus {
  border-color: var(--mhs-accent) !important;
  box-shadow: 0 0 0 3px rgba(255,63,142,.12) !important;
}

body.uc-page .btn-primary,
body.uc-page .btn-danger,
body.uc-page button[type="submit"] {
  color: #fff !important;
  background: var(--mhs-accent) !important;
  border-color: var(--mhs-accent) !important;
  box-shadow: 0 8px 22px rgba(255,63,142,.2) !important;
}

body.uc-page .table,
body.uc-page .table > :not(caption) > * > * {
  color: #c9cbd0;
  background: transparent !important;
  border-color: var(--mhs-line);
}

body.uc-page .site-footer {
  color: #777;
  background: var(--mhs-panel) !important;
  border-top: 1px solid var(--mhs-line);
}

body.uc-page .rollbar { display: none !important; }

/* Member center dashboard */
.mhs-uc-container { max-width: 1320px; }
.mhs-uc-user-card,
.mhs-uc-menu-card { border: 1px solid var(--mhs-line); box-shadow: 0 16px 44px rgba(0,0,0,.08); }
.mhs-uc-user-card > .card:first-child { padding: 28px 18px 20px; background: radial-gradient(circle at 50% -20%, var(--mhs-accent-soft), transparent 60%), var(--mhs-panel) !important; }
.mhs-uc-download-status { padding: 16px !important; }
.mhs-uc-menu-heading { padding: 18px 20px 8px; color: var(--mhs-muted); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
body.uc-page .mhs-uc-menu-card .uc-menu-warp { padding: 6px 10px 12px; }
body.uc-page .mhs-uc-menu-card .menu-item a { position: relative; gap: 4px; }
body.uc-page .mhs-uc-menu-card .menu-item a span { flex: 1; }
body.uc-page .mhs-uc-menu-card .menu-item a b { padding: 3px 7px; border-radius: 999px; color: var(--mhs-accent); font-size: 10px; background: var(--mhs-accent-soft); }
body.uc-page .mhs-uc-menu-card .menu-item[data-mhs-featured="true"] a { min-height: 50px; font-weight: 700; }
body.uc-page .mhs-uc-menu-card .menu-item[data-mhs-featured="true"] i { color: var(--mhs-accent); }
body.uc-page .mhs-uc-menu-card .menu-item:nth-child(2) { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--mhs-line); }

.mhs-uc-mobile-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82px, 1fr); gap: 8px; margin-bottom: 14px; padding: 8px; overflow-x: auto; border: 1px solid var(--mhs-line); border-radius: 12px; background: var(--mhs-panel); scrollbar-width: none; }
.mhs-uc-mobile-nav::-webkit-scrollbar { display: none; }
.mhs-uc-mobile-nav a { display: grid; position: relative; place-items: center; gap: 5px; min-height: 58px; padding: 7px; border-radius: 9px; color: var(--mhs-muted) !important; font-size: 12px; white-space: nowrap; }
.mhs-uc-mobile-nav a small { position: absolute; top: 4px; right: 5px; padding: 1px 5px; border-radius: 999px; color: #fff; font-size: 9px; background: var(--mhs-accent); }
.mhs-uc-mobile-nav a:first-child,
.mhs-uc-mobile-nav a:nth-child(2) { color: var(--mhs-accent) !important; background: var(--mhs-accent-soft); }
.mhs-uc-mobile-nav a.is-active { color: #fff !important; background: var(--mhs-accent); }

body.uc-page [data-sticky-content] > .card,
body.uc-page [data-sticky-content] > .card:has(.price-card) { overflow: hidden; border: 1px solid var(--mhs-line) !important; border-radius: 14px !important; }
body.uc-page [data-sticky-content] > .card > .card-header:first-child { padding: 22px 24px; border-bottom: 1px solid var(--mhs-line); background: linear-gradient(100deg, var(--mhs-accent-soft), transparent 52%) !important; }
body.uc-page [data-sticky-content] > .card > .card-header:first-child h5 { font-size: 22px; }

body.uc-page .price-card { height: 100%; overflow: hidden; border: 1px solid var(--mhs-line); border-radius: 14px; background: var(--mhs-panel); box-shadow: 0 14px 34px rgba(0,0,0,.09); transition: transform .2s ease, box-shadow .2s ease; }
body.uc-page .price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(0,0,0,.14); }
body.uc-page .price-card .price-header { padding: 22px 16px; color: #fff; background: linear-gradient(135deg, #ff3f8e, #8f5cff) !important; }
body.uc-page .price-card .price-plan { display: block; font-size: 19px; font-weight: 800; }
body.uc-page .price-card .price-sub { display: block; margin-top: 7px; font-size: 12px; opacity: .88; }
body.uc-page .price-card .price-body { padding: 22px 20px 10px; }
body.uc-page .price-card .price-ammount { color: var(--mhs-text) !important; font-size: 32px; }
body.uc-page .price-card .price-desc { min-height: 108px; padding: 0; list-style: none; color: var(--mhs-muted); }
body.uc-page .price-card .price-desc li { margin: 8px 0; }
body.uc-page .price-card .price-desc li::before { content: '✓'; margin-right: 7px; color: var(--mhs-accent); font-weight: 800; }
body.uc-page .price-card .price-footer { padding: 12px 20px 24px; }
body.uc-page .price-card .price-footer .btn { width: 100%; min-height: 42px; border: 0; background: var(--mhs-accent) !important; }

/* The storefront intentionally presents only the two primary plans. */
body.uc-page .row:has(> .col > .price-card) > .col:first-child { display: none !important; }
body.uc-page .row:has(> .col > .price-card) > .col { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); max-width: 520px; }
body.uc-page .row:has(> .col > .price-card) > .col:nth-child(2) .price-header { background: linear-gradient(135deg, #ff4b94, #a65cff) !important; }
body.uc-page .row:has(> .col > .price-card) > .col:nth-child(3) .price-header { background: linear-gradient(135deg, #ff8a3d, #ff3f8e) !important; }
body.uc-page .row:has(> .col > .price-card) > .col:nth-child(3) .price-card { border-color: rgba(255,138,61,.35); }

body.uc-page .uc-aff-page .card-body > .text-center:first-child { padding: 24px; border: 1px solid rgba(255,63,142,.22); border-radius: 14px; background: linear-gradient(120deg, var(--mhs-accent-soft), transparent 70%); }
body.uc-page .uc-aff-page .user-select-all { padding: 6px 12px; overflow-wrap: anywhere; color: var(--mhs-accent) !important; font-size: 16px; }
body.uc-page .uc-aff-page .row.row-cols-2 .card { min-height: 118px; justify-content: center; border: 1px solid var(--mhs-line) !important; border-radius: 12px !important; background: var(--mhs-panel-soft) !important; }
body.uc-page .uc-aff-page #user-aff-submit { min-height: 44px; border: 0; border-radius: 999px; background: var(--mhs-accent) !important; box-shadow: 0 10px 24px rgba(255,63,142,.2); }
body.uc-page .uc-aff-page > .card-header h5::after { content: '推广订单奖励 30%'; display: inline-flex; margin-left: 12px; padding: 5px 10px; border-radius: 999px; color: var(--mhs-accent); font-size: 12px; background: var(--mhs-accent-soft); vertical-align: middle; }
body.uc-page .list-group-item { color: var(--mhs-muted); border-color: var(--mhs-line); background: var(--mhs-panel-soft) !important; }

/* Login, register and password reset */
body.mhs-auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--mhs-text);
  background: var(--mhs-bg) !important;
}

.mhs-auth-header {
  height: 70px;
  color: var(--mhs-text);
  background: var(--mhs-panel);
  border-bottom: 1px solid var(--mhs-line);
}

.mhs-auth-header-inner {
  display: flex;
  align-items: center;
  width: min(1360px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
}

.mhs-auth-header .mhs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 62px;
  color: #ffb239 !important;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
}
.mhs-auth-nav { display: flex; align-items: center; gap: 64px; }
.mhs-auth-nav a { color: #9c9ca2 !important; }
.mhs-auth-nav a:first-child,
.mhs-auth-nav a:hover { color: var(--mhs-accent) !important; }
.mhs-auth-actions { display: flex; gap: 22px; margin-left: auto; }
.mhs-auth-actions a { color: #ddd !important; font-size: 20px; }

.mhs-auth-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 92px 20px 55px;
}

.mhs-auth-wrap { width: min(360px, 100%); }

.mhs-auth-mascot {
  display: block;
  width: 340px;
  max-width: 96%;
  height: 142px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.mhs-auth-card { padding: 0 8px; }
.mhs-auth-card .logo { display: none !important; }
.mhs-auth-card .account-from { color: #aaa; }
.mhs-auth-card .form-label {
  display: flex;
  justify-content: space-between;
  color: #85858c;
}

.mhs-auth-card .form-control {
  min-height: 50px;
  color: #222 !important;
  background: #f7f7f8 !important;
  border: 1px solid #e6e6e8 !important;
  border-radius: 9px;
  box-shadow: none !important;
}

.mhs-auth-card .form-control:focus {
  border-color: var(--mhs-accent) !important;
  box-shadow: 0 0 0 3px rgba(255,63,142,.15) !important;
}

.mhs-auth-card .btn-primary,
.mhs-auth-card .btn-danger,
.mhs-auth-card #click-submit {
  min-height: 46px;
  color: #fff !important;
  background: var(--mhs-accent) !important;
  border: 1px solid var(--mhs-accent) !important;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(255,63,142,.2);
}

.mhs-auth-card a { color: #ff76aa !important; }
.mhs-auth-card .text-muted,
.mhs-auth-card small { color: #717178 !important; }
.mhs-auth-card .form-check-input:checked { background-color: var(--mhs-accent); border-color: var(--mhs-accent); }

/* Follow RiPro's native light/dark switch instead of forcing a dark palette. */
html[data-bs-theme="light"] .mhs-site-header .nav-list > li > a,
html[data-bs-theme="light"] .mhs-site-header .actions,
html[data-bs-theme="light"] .mhs-site-header .actions a {
  color: #555a64 !important;
}

html[data-bs-theme="light"] .mhs-card-title { color: #26282d !important; }
html[data-bs-theme="light"] .mhs-thumb { background-color: #e7e9ed; }
html[data-bs-theme="light"] body.feixue-mhs-front .site-footer,
html[data-bs-theme="light"] body.feixue-mhs-listing .site-footer,
html[data-bs-theme="light"] body.uc-page .site-footer { color: #777b84; }

html[data-bs-theme="light"] body.uc-page h1,
html[data-bs-theme="light"] body.uc-page h2,
html[data-bs-theme="light"] body.uc-page h3,
html[data-bs-theme="light"] body.uc-page h4,
html[data-bs-theme="light"] body.uc-page h5,
html[data-bs-theme="light"] body.uc-page h6,
html[data-bs-theme="light"] body.uc-page label,
html[data-bs-theme="light"] body.uc-page .form-label { color: #25262a !important; }

html[data-bs-theme="light"] body.uc-page .text-muted,
html[data-bs-theme="light"] body.uc-page p,
html[data-bs-theme="light"] body.uc-page sub { color: #777b84 !important; }

html[data-bs-theme="light"] body.uc-page .form-control,
html[data-bs-theme="light"] body.uc-page .form-select,
html[data-bs-theme="light"] body.uc-page textarea,
html[data-bs-theme="light"] body.uc-page input:not([type="checkbox"]):not([type="radio"]) {
  color: #25262a !important;
  background: #fff !important;
  border-color: rgba(20,24,32,.12) !important;
}

html[data-bs-theme="light"] body.uc-page .uc-menu-warp .menu-item a { color: #626771 !important; }
html[data-bs-theme="light"] body.uc-page .uc-menu-warp .menu-item a:hover,
html[data-bs-theme="light"] body.uc-page .uc-menu-warp .current-menu-item a { color: #24262a !important; }

@media (max-width: 700px) {
  .mhs-auth-header-inner { width: calc(100% - 24px); }
  .mhs-auth-header .mhs-brand { margin-right: 0; }
  .mhs-auth-nav { display: none; }
  .mhs-auth-main { padding-top: 52px; }
  .mhs-auth-mascot { height: 120px; }
  body.uc-page main > .container { width: calc(100% - 20px); margin-top: 16px !important; }
}

@media (max-width: 1180px) {
  .mhs-promos { grid-template-columns: repeat(3, 1fr); }
  .mhs-hot-grid { grid-template-columns: repeat(4, 1fr); }
  .mhs-hot-card:nth-child(n+5) { display: none; }
  .mhs-post-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .mhs-shell { width: min(100% - 24px, 720px); }
  .mhs-promos { grid-template-columns: repeat(2, 1fr); }
  .mhs-hot-grid { grid-template-columns: repeat(3, 1fr); }
  .mhs-hot-card:nth-child(n+4) { display: none; }
  .mhs-post-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
}

@media (max-width: 560px) {
  .mhs-site-header .actions .language-selector,
  .mhs-site-header .actions .toggle-color,
  .mhs-site-header .actions .toggle-notify { display: none !important; }
  .mhs-site-header .actions { gap: 5px; }
  .mhs-site-header .mhs-brand { font-size: 19px; }
  .mhs-brand-mark { width: 36px; height: 36px; }
  body.uc-page [data-sticky-content] > .card:has(.price-card) > .card-body > .d-flex { align-items: flex-start !important; }
  body.uc-page [data-sticky-content] > .card:has(.price-card) > .card-body > .d-flex .ms-2.lh-1 { flex: 1; min-width: 0; margin-left: 8px !important; line-height: 1.4 !important; }
  body.uc-page [data-sticky-content] > .card:has(.price-card) > .card-body > .d-flex .ms-2.lh-1 h5 { flex-wrap: wrap; gap: 5px; }
  body.uc-page [data-sticky-content] > .card:has(.price-card) > .card-body > .d-flex .ms-2.lh-1 .mb-1 { overflow-wrap: anywhere; font-size: 12px; }
  body.uc-page .row:has(> .col > .price-card) > .col { flex-basis: 100%; width: 100%; max-width: none; }
  .mhs-home { padding-top: 12px; }
  .mhs-promos { gap: 8px; }
  .mhs-promo { min-height: 64px; padding: 11px 8px 10px 44px; }
  .mhs-promo-icon { left: 10px; font-size: 25px; }
  .mhs-promo strong { font-size: 15px; }
  .mhs-promo span { font-size: 10px; }
  .mhs-hot-grid { grid-template-columns: repeat(2, 1fr); }
  .mhs-hot-card:nth-child(n+3) { display: none; }
  .mhs-filter-row, .mhs-sort-row { gap: 8px 18px; }
  .mhs-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mhs-listing-page { padding-top: 20px; }
  .mhs-listing-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}
