/* ==========================================================================
   mjapp168.com — 首页骨架（杂志编排风）
   ========================================================================== */

.hm-page { background: var(--paper); }

/* ---------- Hero ---------- */
.hm-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(200, 16, 46, .2), transparent 62%),
    linear-gradient(160deg, #101a2c 0%, #0a101c 58%, #070b13 100%);
  color: #e9eef7;
}

.hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 199, 122, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 199, 122, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%);
  pointer-events: none;
}

.hm-hero .container { position: relative; }

.hm-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 40px;
  align-items: center;
  padding-block: 72px 76px;
}

.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(230, 199, 122, .28);
  border-radius: 999px;
  background: rgba(230, 199, 122, .06);
  font-size: 12.5px;
  font-weight: 600;
  color: #e6c77a;
  letter-spacing: .5px;
}

.hm-pill i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

.hm-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.5px;
}

.hm-hero h1 span {
  display: block;
  background: linear-gradient(100deg, #f8e7b8, #e6c77a 45%, #c8102e 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.95;
  color: #a7b2c4;
}

.hm-lead strong { color: #f3e7c8; font-weight: 700; }

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hm-actions .btn { padding: 14px 24px; font-size: 14.5px; }

.hm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(230, 199, 122, .13);
  font-size: 12.5px;
  color: #7f8ca2;
}

.hm-meta b { color: #e6c77a; font-weight: 700; }

.hm-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(230, 199, 122, .18);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
}

.hm-visual img { width: 100%; }

.hm-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  pointer-events: none;
}

/* ---------- 通用区块头 ---------- */
.hm-sec { padding: 84px 0; }

.hm-sec.cream { background: var(--cream); }

.hm-head { max-width: 700px; margin-bottom: 40px; }

.hm-head .k {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2.4px;
  color: var(--brand);
  text-transform: uppercase;
}

.hm-head h2 {
  margin-top: 10px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -.4px;
  font-weight: 900;
}

.hm-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.hm-head.center { margin-inline: auto; text-align: center; }

/* ---------- 入口网格 ---------- */
.hm-entries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hm-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.hm-entry::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, .08), transparent 70%);
  transition: transform .35s;
}

.hm-entry:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 16, 46, .26);
  box-shadow: var(--shadow-m);
}

.hm-entry:hover::after { transform: scale(1.4); }

.hm-entry.wide { grid-column: span 2; }

.hm-entry .no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--gold);
}

.hm-entry h3 {
  margin-top: 12px;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.4;
}

.hm-entry p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.hm-entry .go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}

.hm-entry .go i { font-style: normal; transition: margin .2s; }
.hm-entry:hover .go i { margin-left: 5px; }

.hm-entry.dark {
  background: linear-gradient(150deg, #151f32, #0b111d);
  border-color: rgba(230, 199, 122, .24);
  color: #eef2f9;
}

.hm-entry.dark .no { color: #e6c77a; }
.hm-entry.dark p { color: #8f9bb0; }
.hm-entry.dark .go { color: #e6c77a; }
.hm-entry.dark::after { background: radial-gradient(circle, rgba(230, 199, 122, .12), transparent 70%); }

.hm-entry.room {
  background: linear-gradient(150deg, #c8102e, #8f0b20);
  border-color: transparent;
  color: #fff;
}

.hm-entry.room .no { color: #ffd9df; }
.hm-entry.room p { color: rgba(255, 255, 255, .78); }
.hm-entry.room .go { color: #fff; }
.hm-entry.room::after { background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }

/* ---------- 数据条 ---------- */
.hm-stats {
  background: #0a101c;
  color: #e9eef7;
  padding: 34px 0;
}

.hm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hm-stat {
  padding: 6px 22px;
  border-left: 1px solid rgba(230, 199, 122, .16);
}

.hm-stat:first-child { border-left: 0; padding-left: 0; }

.hm-stat b {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  color: #e6c77a;
  line-height: 1.2;
}

.hm-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: #7f8ca2;
  letter-spacing: .5px;
}

/* ---------- 关于 ---------- */
.hm-about {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 46px;
  align-items: start;
}

.hm-def {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}

.hm-def::before {
  content: "MJ";
  position: absolute;
  right: 22px; top: 16px;
  font-family: Georgia, serif;
  font-size: 54px;
  font-weight: 700;
  color: rgba(200, 16, 46, .07);
}

.hm-def h3 { font-size: 20px; font-weight: 800; }

.hm-def p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.9;
}

.hm-def dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}

.hm-def dt { color: var(--muted); }
.hm-def dd { margin: 0; font-weight: 700; }

.hm-about-body h2 {
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.32;
  font-weight: 900;
}

.hm-about-body > p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.95;
}

.hm-about-body > p strong { color: var(--brand); }

.hm-facts {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hm-fact {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(13, 19, 32, .05);
}

.hm-fact b { display: block; font-size: 14px; }
.hm-fact span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ---------- 功能 ---------- */
.hm-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hm-feature {
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.hm-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }

.hm-feature .ic {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(200, 16, 46, .08);
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.hm-feature h3 { margin-top: 15px; font-size: 16.5px; font-weight: 800; }
.hm-feature p { margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 三步 ---------- */
.hm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.hm-step {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.hm-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: rgba(200, 16, 46, .14);
  line-height: 1;
}

.hm-step h3 { margin-top: 10px; font-size: 17px; font-weight: 800; }
.hm-step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.hm-step a { color: var(--brand); font-weight: 700; border-bottom: 1px solid rgba(200, 16, 46, .3); }

/* ---------- 房间 ---------- */
.hm-room {
  background:
    radial-gradient(700px 360px at 18% 40%, rgba(200, 16, 46, .32), transparent 65%),
    linear-gradient(120deg, #101a2c, #070b13);
  color: #eef2f9;
  padding: 72px 0;
}

.hm-room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hm-room-no {
  font-family: Georgia, serif;
  font-size: clamp(70px, 10vw, 138px);
  line-height: .95;
  letter-spacing: 4px;
  background: linear-gradient(120deg, #fff, #e6c77a 50%, #c8102e 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hm-room-label {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 4px;
  color: #8f9bb0;
}

.hm-room-info h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; line-height: 1.35; }
.hm-room-info p { margin-top: 14px; font-size: 14.5px; color: #a7b2c4; line-height: 1.95; }
.hm-room-info p strong { color: #e6c77a; }

.hm-room-list {
  margin-top: 20px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: #b9c3d4;
}

.hm-room-list li { display: flex; gap: 10px; }
.hm-room-list li::before { content: "—"; color: #c8102e; }

.hm-room-info .btn { margin-top: 24px; }

/* ---------- 安全 ---------- */
.hm-safety {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.hm-safety h2 { font-size: clamp(25px, 3vw, 35px); font-weight: 900; line-height: 1.32; }
.hm-safety > div > p { margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.9; }

.hm-check { display: grid; gap: 12px; }

.hm-check li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.hm-check .n {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(15, 118, 110, .1);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.hm-check b { display: block; font-size: 14.5px; }
.hm-check span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---------- 新手指引 ---------- */
.hm-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: g;
}

.hm-guide li {
  position: relative;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid rgba(13, 19, 32, .06);
}

.hm-guide li::before {
  counter-increment: g;
  content: counter(g);
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: #e6c77a;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.hm-guide h3 { margin-top: 14px; font-size: 15.5px; font-weight: 800; }
.hm-guide p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ---------- 版本表 ---------- */
.hm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.hm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 640px;
}

.hm-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--cream);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.hm-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(13, 19, 32, .06);
  color: var(--ink-2);
}

.hm-table tr:last-child td { border-bottom: 0; }
.hm-table td b { color: var(--ink); }
.hm-table .tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- 设备 ---------- */
.hm-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.hm-device {
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.hm-device .top { display: flex; align-items: center; justify-content: space-between; }
.hm-device .os { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.4px; color: var(--gold); }
.hm-device .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.hm-device h3 { margin-top: 12px; font-size: 18px; font-weight: 800; }
.hm-device p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }

.hm-device dl {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  font-size: 12.5px;
}

.hm-device dt { color: var(--muted); }
.hm-device dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- 文化专栏 ---------- */
.hm-poetry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.hm-poem {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 34px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #fbf7ec, #efe6d2);
  transition: transform .25s, box-shadow .25s;
}

.hm-poem:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }

.hm-poem.dark {
  background: linear-gradient(150deg, #141d30, #080d16);
  border-color: rgba(230, 199, 122, .24);
  color: #eef2f9;
}

.hm-poem .k { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--brand); }
.hm-poem.dark .k { color: #e6c77a; }

.hm-poem h3 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 3px;
}

.hm-poem .line {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 15px;
  color: #7a7262;
  letter-spacing: 2px;
}

.hm-poem.dark .line { color: #9aa6ba; }

.hm-poem p {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #6f6858;
  max-width: 420px;
}

.hm-poem.dark p { color: #8f9bb0; }

.hm-poem .go { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 700; color: var(--brand); }
.hm-poem.dark .go { color: #e6c77a; }

/* ---------- FAQ ---------- */
.hm-faq { display: grid; gap: 10px; max-width: 880px; }

.hm-acc {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.acc-trigger::after {
  content: "+";
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brand);
  font-size: 17px;
  line-height: 1;
  transition: transform .25s, background .25s;
}

.hm-acc.is-open .acc-trigger::after { transform: rotate(45deg); background: rgba(200, 16, 46, .1); }

.acc-body {
  display: none;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.85;
}

.hm-acc.is-open .acc-body { display: block; }
.acc-body a { color: var(--brand); font-weight: 700; }

/* ---------- 客服 ---------- */
.hm-support {
  background: var(--cream);
  padding: 64px 0;
}

.hm-support-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.hm-support h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 900; }
.hm-support p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.hm-support-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hm-support .tg-link { background: #fff; }

/* ---------- 结尾 CTA ---------- */
.hm-cta {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(200, 16, 46, .28), transparent 70%),
    #080d16;
  color: #eef2f9;
  padding: 78px 0;
  text-align: center;
}

.hm-cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.hm-cta p { margin: 14px auto 0; max-width: 620px; font-size: 14.5px; color: #a7b2c4; }

.hm-cta .hm-actions { justify-content: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hm-hero-grid { grid-template-columns: 1fr; padding-block: 54px 60px; }
  .hm-visual { order: -1; max-width: 640px; }
  .hm-entries { grid-template-columns: repeat(2, 1fr); }
  .hm-entry.wide { grid-column: span 2; }
  .hm-about { grid-template-columns: 1fr; gap: 30px; }
  .hm-features { grid-template-columns: repeat(2, 1fr); }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-room-grid { grid-template-columns: 1fr; gap: 30px; }
  .hm-safety { grid-template-columns: 1fr; gap: 28px; }
  .hm-guide { grid-template-columns: repeat(2, 1fr); }
  .hm-devices { grid-template-columns: 1fr; }
  .hm-poetry { grid-template-columns: 1fr; }
  .hm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  .hm-sec { padding: 58px 0; }
  .hm-entries { grid-template-columns: 1fr; }
  .hm-entry.wide { grid-column: auto; }
  .hm-features { grid-template-columns: 1fr; }
  .hm-facts { grid-template-columns: 1fr; }
  .hm-guide { grid-template-columns: 1fr; }
  .hm-stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hm-stat { padding: 4px 14px; }
  .hm-actions .btn { width: 100%; }
  .hm-poem { padding: 26px; min-height: 240px; }
  .hm-visual { order: 0; }
  .hm-hero-grid { padding-top: 34px; }
}
