* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #f5f7fb; color: #172033; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mh-page { min-height: 100vh; background: linear-gradient(180deg,#fff0e9 0,#eef9ff 205px,#f5f7fb 360px); }
.mh-header { position: sticky; top: 0; z-index: 30; padding: 12px 14px 10px; background: rgba(255,247,243,.92); backdrop-filter: blur(14px); }
.mh-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mh-logo { display: flex; align-items: center; min-width: 0; }
.mh-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; color: #fff; font-size: 18px; font-weight: 900; border-radius: 9px; background: linear-gradient(135deg,#101827,#28364f); }
.mh-logo strong { display: block; max-width: 180px; overflow: hidden; color: #172033; font-size: 18px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.mh-logo span { display: block; color: #7a8495; font-size: 11px; line-height: 15px; }
.mh-service { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; color: #0b6179; font-size: 12px; border-radius: 999px; background: #dff7ff; }
.mh-search { display: grid; grid-template-columns: 1fr 58px; gap: 8px; height: 40px; }
.mh-search-input { display: flex; align-items: center; min-width: 0; padding: 0 13px; background: #fff; border: 1px solid #edf1f6; border-radius: 999px; box-shadow: 0 8px 18px rgba(31,41,55,.08); }
.mh-search-input svg { flex: 0 0 auto; width: 16px; height: 16px; margin-right: 8px; color: #9aa5b7; }
.mh-search-input input { width: 100%; min-width: 0; border: 0; outline: 0; color: #1f2937; font: inherit; font-size: 13px; background: transparent; }
.mh-search button { border: 0; color: #fff; font-weight: 800; border-radius: 999px; background: linear-gradient(135deg,#ff4a38,#ff8f2e); box-shadow: 0 9px 18px rgba(255,76,56,.22); }
.mh-wrap { padding: 0 12px; }
.mh-hero { position: relative; min-height: 150px; margin: 8px 12px 12px; overflow: hidden; color: #fff; border-radius: 14px; background: linear-gradient(120deg,rgba(16,24,39,.92),rgba(109,65,12,.42)), url("../../../sp/static/image/9ea6100a0d6a4c6f9a5f63314cc2a8c0.jpg") center/cover no-repeat; box-shadow: 0 16px 34px rgba(30,41,59,.16); }
.mh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(11,18,32,.84),rgba(11,18,32,.08)); }
.mh-hero-content { position: relative; z-index: 1; padding: 22px 18px; }
.mh-eyebrow { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; color: #ffe8bb; font-size: 11px; border: 1px solid rgba(255,232,187,.42); border-radius: 999px; background: rgba(255,255,255,.1); }
.mh-hero h1 { margin: 10px 0 5px; font-size: 25px; line-height: 30px; letter-spacing: 0; }
.mh-hero p { width: 68%; margin: 0 0 14px; color: rgba(255,255,255,.82); font-size: 12px; line-height: 18px; }
.mh-hero-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 13px; color: #fff; font-size: 13px; font-weight: 800; border-radius: 8px; background: linear-gradient(135deg,#ff4d3b,#ff9d34); }
.mh-notice { display: flex; align-items: center; min-height: 34px; margin: 0 12px 10px; padding: 7px 10px; color: #667085; font-size: 12px; background: #fff; border: 1px solid #edf1f6; border-radius: 10px; }
.mh-notice strong { flex: 0 0 auto; margin-right: 8px; color: #ff4d3b; }
.mh-notice span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mh-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.mh-action { display: flex; min-width: 0; min-height: 76px; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid #edf1f6; border-radius: 12px; box-shadow: 0 8px 18px rgba(31,41,55,.04); }
.mh-action-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; color: #fff; font-weight: 900; border-radius: 11px; background: linear-gradient(135deg,#1d4ed8,#06b6d4); }
.mh-action:nth-child(2) .mh-action-icon { background: linear-gradient(135deg,#ff4d3b,#ff9d34); }
.mh-action:nth-child(3) .mh-action-icon { background: linear-gradient(135deg,#7c3aed,#22c55e); }
.mh-action:nth-child(4) .mh-action-icon { background: linear-gradient(135deg,#0f766e,#84cc16); }
.mh-action span { color: #253044; font-size: 12px; font-weight: 700; }
.mh-panel { margin-bottom: 12px; padding: 13px 12px; background: #fff; border: 1px solid #edf1f6; border-radius: 14px; box-shadow: 0 8px 20px rgba(31,41,55,.04); }
.mh-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.mh-panel-head h2 { margin: 0; color: #172033; font-size: 17px; line-height: 22px; letter-spacing: 0; }
.mh-panel-head a, .mh-panel-head span { color: #9aa5b7; font-size: 12px; }
.mh-game-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px 8px; }
.mh-game { display: flex; min-width: 0; flex-direction: column; align-items: center; }
.mh-game img { width: 46px; height: 46px; object-fit: cover; border-radius: 11px; background: #edf2f7; }
.mh-game span { width: 100%; margin-top: 6px; overflow: hidden; color: #253044; font-size: 12px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.mh-safe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.mh-safe-card { min-height: 76px; padding: 12px; border-radius: 13px; overflow: hidden; background: linear-gradient(135deg,#fff4e5,#fff); border: 1px solid #ffe1b8; }
.mh-safe-card:last-child { background: linear-gradient(135deg,#e8fbff,#fff); border-color: #c8f3ff; }
.mh-safe-card strong, .mh-safe-card span { display: block; }
.mh-safe-card strong { color: #172033; font-size: 15px; }
.mh-safe-card span { margin-top: 3px; color: #7b8798; font-size: 12px; line-height: 17px; }
.mh-tabs { display: flex; gap: 8px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.mh-tabs::-webkit-scrollbar { display: none; }
.mh-tabs a { flex: 0 0 auto; height: 28px; padding: 0 12px; color: #687386; font-size: 12px; line-height: 28px; border-radius: 999px; background: #f3f6fb; }
.mh-tabs a:first-child { color: #fff; background: #172033; }
.mh-goods { display: grid; gap: 10px; }
.mh-card { display: grid; grid-template-columns: 112px 1fr; gap: 10px; min-height: 126px; padding: 9px; background: #fff; border: 1px solid #edf1f6; border-radius: 13px; box-shadow: 0 7px 16px rgba(31,41,55,.04); }
.mh-card-img { position: relative; overflow: hidden; border-radius: 10px; background: #e7edf5; }
.mh-card-img img { width: 112px; height: 108px; object-fit: cover; }
.mh-badge { position: absolute; left: 6px; top: 6px; height: 20px; padding: 0 7px; color: #fff; font-size: 10px; line-height: 20px; border-radius: 6px; background: rgba(17,24,39,.8); }
.mh-card-title { display: -webkit-box; height: 42px; overflow: hidden; color: #172033; font-size: 14px; font-weight: 700; line-height: 21px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mh-card-tags { display: flex; gap: 5px; margin-top: 7px; overflow: hidden; }
.mh-card-tags span { max-width: 78px; height: 22px; padding: 0 7px; overflow: hidden; color: #ff5160; font-size: 11px; line-height: 21px; white-space: nowrap; text-overflow: ellipsis; border: 1px solid rgba(255,81,96,.2); border-radius: 6px; background: #fff8f8; }
.mh-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mh-price { color: #ff2045; font-size: 19px; font-weight: 900; }
.mh-price small { font-size: 12px; }
.mh-views { color: #98a2b3; font-size: 11px; }
.mh-rank { display: grid; gap: 8px; }
.mh-rank-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; min-height: 34px; color: #475467; font-size: 13px; }
.mh-rank-row em { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; font-style: normal; font-size: 11px; border-radius: 7px; background: #98a2b3; }
.mh-rank-row:nth-child(-n+3) em { background: #ff4d3b; }
.mh-rank-row span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mh-rank-row b { color: #ff2045; font-size: 12px; }
.mh-empty { padding: 18px 0; color: #98a2b3; font-size: 13px; text-align: center; }
.mh-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5,1fr); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); border-top: 1px solid #edf1f6; box-shadow: 0 -8px 20px rgba(31,41,55,.08); }
.mh-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #667085; font-size: 10px; }
.mh-tabbar img { width: 22px; height: 22px; margin-bottom: 3px; }
.mh-tabbar a.active { color: #ff4d3b; }
@media (min-width: 520px) {
  .mh-page { max-width: 480px; margin: 0 auto; box-shadow: 0 0 0 1px #edf1f6; }
  .mh-header, .mh-tabbar { left: 50%; right: auto; width: 480px; transform: translateX(-50%); }
}

/* App-like trading homepage polish */
.mh-page { background: linear-gradient(180deg,#fff7ed 0,#fff1e6 128px,#f5f7fb 310px,#f5f7fb 100%); }
.mh-header { background: linear-gradient(180deg,rgba(255,247,237,.98),rgba(255,247,237,.9)); box-shadow: 0 8px 18px rgba(31,41,55,.04); }
.mh-logo-mark { position: relative; border-radius: 50% 50% 42% 42%; background: radial-gradient(circle at 35% 26%,#ffd978 0 24%,#ff8026 25% 64%,#e94b18 65% 100%); }
.mh-logo strong { color: #f25722; font-weight: 900; }
.mh-search-input { border-color: #fff; box-shadow: 0 8px 18px rgba(255,122,26,.12); }
.mh-search button { background: linear-gradient(135deg,#ff6b12,#ff9a2f); }
.mh-hero { min-height: 174px; border-radius: 12px; background-position: center; box-shadow: 0 16px 32px rgba(255,122,26,.16); }
.mh-hero::after { background: linear-gradient(90deg,rgba(34,24,18,.82),rgba(34,24,18,.12) 70%,rgba(255,122,26,.18)); }
.mh-hero-content { width: 74%; padding: 22px 17px; }
.mh-hero h1 { font-size: 26px; font-weight: 900; }
.mh-hero p { width: 100%; color: rgba(255,255,255,.88); }
.mh-hero-coupon { position: absolute; z-index: 2; right: 14px; bottom: 18px; display: flex; flex-direction: column; justify-content: center; width: 82px; height: 62px; padding: 8px 10px; color: #ff3d31; border: 1px dashed #ff6b12; border-radius: 10px; background: linear-gradient(135deg,#fff8e8,#ffe3b3); transform: rotate(4deg); box-shadow: 0 12px 22px rgba(51,31,12,.16); }
.mh-hero-coupon span { color: #7c4a11; font-size: 11px; }
.mh-hero-coupon strong { font-size: 25px; line-height: 1; font-weight: 900; }
.mh-notice { border-radius: 999px; }
.mh-actions { gap: 9px; }
.mh-action { min-height: 82px; border-radius: 10px; box-shadow: 0 8px 18px rgba(31,41,55,.05); }
.mh-action-icon { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 9px 16px rgba(31,41,55,.12); }
.mh-action-icon svg { width: 22px; height: 22px; color: #fff; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mh-panel { border-radius: 10px; }
.mh-game img { width: 50px; height: 50px; border-radius: 12px; box-shadow: 0 7px 14px rgba(31,41,55,.08); }
.mh-safe-card { position: relative; min-height: 84px; border-radius: 10px; }
.mh-safe-card::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,122,26,.12); }
.mh-safe-card:last-child::after { background: rgba(10,188,214,.12); }
.mh-card { border-radius: 10px; }
.mh-card-img { border-radius: 8px; }
.mh-card-img img[src*="none"] { opacity: .15; }
.mh-tabbar { border-radius: 14px 14px 0 0; }
