/* ===== 买家端 · 红金版式（覆盖旧 landing / reader 样式） ===== */
.ml {
  background: #d9131f;
  min-height: 100vh;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.ml-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 14px 46px;
  min-height: 100vh;
  background:
    radial-gradient(120% 55% at 50% -8%, rgba(255,96,84,.85) 0%, rgba(255,96,84,0) 62%),
    radial-gradient(85% 45% at -12% 2%, rgba(176,10,22,.45) 0%, rgba(176,10,22,0) 60%),
    radial-gradient(90% 48% at 112% 98%, rgba(170,8,20,.4) 0%, rgba(170,8,20,0) 62%),
    linear-gradient(180deg, #ee2a30 0%, #de1822 45%, #cc0f1c 100%);
}

/* ---- 顶部品牌区 ---- */
.ml-hero { text-align: center; padding: 34px 6px 18px; }
.ml-hero--compact { padding-top: 26px; }
.ml-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 22px;
}
.ml-badge {
  flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: 21px; letter-spacing: -.5px;
  color: #ffe9a8;
  background: radial-gradient(circle at 34% 28%, #3a7ede 0%, #1a4a9c 55%, #0a1f4d 100%);
  border: 3px solid #f6d98d;
  box-shadow: 0 0 0 2px #c8963f, 0 6px 16px rgba(0,0,0,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.ml-gold {
  font-family: "STKaiti", "KaiTi", "Songti SC", "STSong", serif;
  font-size: 46px; font-weight: 800; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(180deg, #fff8dc 6%, #f7dea0 34%, #d8a848 58%, #fbeab6 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.ml-title {
  font-size: 38px; font-weight: 900; letter-spacing: -.6px;
  color: #fff; margin: 0 0 16px; line-height: 1.24;
  text-shadow: 0 3px 10px rgba(0,0,0,.35);
  overflow-wrap: anywhere;
}
.ml-intro {
  color: #f6dcd6; font-size: 15px; line-height: 1.7;
  margin: 0 auto; max-width: 22em;
}
.ml-time { color: #fff2ee; font-size: 16px; margin: 0 0 6px; }
.ml-private { color: #ffe27a; font-size: 16px; margin: 0; }

/* ---- 白色卡片 ---- */
.ml-card {
  background: #fff; border-radius: 16px;
  padding: 26px 22px;
  color: #1b1b1b;
  box-shadow: 0 14px 36px rgba(140,6,16,.28);
  margin-top: 22px;
}
.ml-body {
  overflow-wrap: anywhere;
  font-size: 19px; line-height: 1.9;
  color: #222; font-weight: 500; letter-spacing: .2px;
}
/* 富文本正文（已由服务端白名单过滤） */
.ml-body p { margin: 0 0 .9em; min-height: 1em; }
.ml-body img { max-width: 100%; height: auto; border-radius: 8px; }
.ml-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.ml-body td, .ml-body th { border: 1px solid #ddd; padding: 6px 8px; vertical-align: top; }
.ml-body blockquote { border-left: 4px solid #c8202a; margin: 0 0 .9em; padding-left: 12px; color: #555; }
.ml-body ul, .ml-body ol { padding-left: 1.4em; margin: 0 0 .9em; }
.ml-body h1, .ml-body h2, .ml-body h3, .ml-body h4 { line-height: 1.4; margin: .6em 0 .4em; }
.ml-image {
  width: 100%; border-radius: 10px; display: block;
  margin: 0 0 20px; max-height: 620px; object-fit: contain; background: #f5f5f5;
}
.ml-disclaimer {
  margin: 30px 0 0; padding-top: 4px;
  text-align: center; color: #9c9c9c;
  font-size: 14px; line-height: 1.85;
  white-space: pre-wrap;
}

/* ---- 表单 ---- */
.ml-form label { display: block; font-size: 14px; font-weight: 700; color: #333; margin-bottom: 9px; }
.ml-form input {
  width: 100%; border: 1px solid #dcdcd6; border-radius: 10px;
  padding: 14px 15px; font-size: 16px; outline: none; color: #1b1b1b; background: #fff;
}
.ml-form input::placeholder { color: #b0afa8; }
.ml-form input:focus { border-color: #e4202c; box-shadow: 0 0 0 3px rgba(228,32,44,.16); }
.ml-button {
  display: block; width: 100%; box-sizing: border-box;
  background: linear-gradient(180deg, #ff4a3d 0%, #e4202c 100%);
  color: #fff !important; text-decoration: none; text-align: center;
  border: 0; border-radius: 10px; padding: 15px;
  font-size: 17px; font-weight: 700; min-height: 52px; margin-top: 16px;
  box-shadow: 0 6px 18px rgba(228,32,44,.38);
}
.ml-button:active { transform: translateY(1px); }

/* ---- 提示 / 分隔 / 购买区 ---- */
.ml-notice {
  padding: 12px 14px; border-radius: 9px; margin: 0 0 16px;
  font-size: 13.5px; line-height: 1.6;
}
.ml-notice.error { background: #fff0eb; color: #9b2b25; border: 1px solid #f1cbbf; }
.ml-notice.success { background: #e9f5ee; color: #276447; border: 1px solid #b9ddca; }
.ml-divider {
  display: flex; align-items: center; gap: 12px;
  color: #9b9b95; font-size: 13px; margin: 26px 0 18px;
}
.ml-divider::before, .ml-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8e8e1;
}
.ml-purchase { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ml-purchase h3 { font-size: 16px; margin: 0 0 7px; color: #1b1b1b; }
.ml-purchase p { font-size: 13px; line-height: 1.6; color: #6f6f68; margin: 0 0 12px; }
.ml-purchase img {
  flex: none; width: 132px; height: 132px;
  border: 1px solid #ece6dc; padding: 4px; background: #fff; border-radius: 8px;
}
.ml-link { color: #d9131f; font-weight: 700; font-size: 14px; text-underline-offset: 4px; }
.ml-link--block {
  display: block; margin-top: 24px; padding: 13px 16px;
  border: 1px solid #e6cfcc; border-radius: 10px; text-align: center;
  text-decoration: none; background: #fff7f6;
}
.ml-muted { color: #8d8d86; font-size: 13px; line-height: 1.7; margin: 0; }
.ml-body-note {
  color: #555; font-size: 15px; line-height: 1.75;
  margin: 0 0 18px; text-align: left;
}
.ml-access-note {
  color: #276447; background: #eef8f2; border: 1px solid #cbe7d8;
  border-radius: 9px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; text-align: center;
}
.ml-footer {
  text-align: center; color: #ffe6df; font-size: 12px; line-height: 1.8;
  margin: 26px auto 0; max-width: 33em; white-space: pre-wrap;
}

/* ---- 目录列表 ---- */
.ml-list { display: grid; gap: 14px; }
.ml-item {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: 14px; padding: 20px 20px 18px;
  box-shadow: 0 10px 28px rgba(140,6,16,.22);
}
.ml-item:active { transform: translateY(1px); }
.ml-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ml-item-date { font-size: 12.5px; color: #9a9a92; }
.ml-item-badge {
  font-size: 11px; color: #d9131f; background: #ffe9e6;
  border-radius: 20px; padding: 4px 10px; font-weight: 700;
}
.ml-item h2 { font-size: 21px; margin: 0 0 8px; color: #1a1a1a; line-height: 1.35; overflow-wrap: anywhere; }
.ml-item p { margin: 0; color: #6d6d66; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.ml-empty { text-align: center; }
.ml-empty p { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #222; }
.ml-empty span { font-size: 13px; color: #90908a; }
.ml-nav { text-align: center; margin-top: 26px; }
.ml-nav a { color: #fff0ec; font-size: 14px; text-decoration: none; }
.ml-nav a:hover { color: #fff; }

@media (max-width: 390px) {
  .ml-title { font-size: 32px; }
  .ml-gold { font-size: 39px; }
  .ml-badge { width: 50px; height: 50px; font-size: 19px; }
  .ml-card { padding: 22px 17px; border-radius: 14px; }
  .ml-body { font-size: 18px; line-height: 2.05; }
  .ml-purchase img { width: 112px; height: 112px; }
  .ml-purchase { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml * { animation: none !important; transition: none !important; }
}

/* ===== 首页版式（参考图）：红金头部 + 米色卡片内容，控制在一屏内 ===== */
.ml-lock {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
.ml-lock .ml-page { overflow-x: hidden; }

/* 首页整体：用 dvh 撑满可视区，内部按比例收缩，尽量免去上下滚动 */
.ml-lock .ml-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}
.ml-lock .ml-hero { padding: 16px 6px 10px; flex: none; }
.ml-lock .ml-brand { gap: 8px; margin-bottom: 6px; }
.ml-lock .ml-badge { width: 42px; height: 42px; font-size: 16px; }
.ml-lock .ml-gold { font-size: 32px; letter-spacing: 1px; }
.ml-lock .ml-time { font-size: 14px; margin: 0 0 2px; }
.ml-lock .ml-title { font-size: 25px; margin: 0 0 10px; line-height: 1.3; }
.ml-lock .ml-card {
  margin-top: 12px;
  padding: 18px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.ml-card .gate-question {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: #1b1b1b;
  text-align: center;
  letter-spacing: .5px;
}
.ml-card .gate-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  margin: 0 0 14px;
}
.gate-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  border: 1px solid #d9d5c4;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  font-size: 16px;
  color: #1b1b1b;
  outline: none;
}
.gate-form input:focus { border-color: #c8202a; box-shadow: 0 0 0 3px rgba(200,32,42,.14); }
.gate-submit {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #e1121b;
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200,20,26,.28);
}
.gate-submit:active { transform: translateY(1px); }
.gate-contact {
  margin: 0 0 10px;
  font-size: 17px;
  color: #1f1f1f;
  text-align: center;
  line-height: 1.5;
}
.gate-price {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: #e1121b;
  text-align: center;
  letter-spacing: .5px;
}
.gate-qr { display: flex; justify-content: center; margin: 0 0 14px; }
.gate-qr img {
  display: block;
  width: min(210px, 54vw);
  height: auto;
  border: 2px solid #e1121b;
  border-radius: 4px;
  background: #fff;
  padding: 3px;
  box-sizing: border-box;
}
.gate-disclaimer {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  text-align: center;
  white-space: pre-wrap;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 矮屏（小手机 / 横屏）再收一档，保证一屏放下 */
@media (max-height: 760px) {
  .ml-lock .ml-hero { padding-top: 10px; padding-bottom: 6px; }
  .ml-lock .ml-badge { width: 36px; height: 36px; font-size: 14px; }
  .ml-lock .ml-gold { font-size: 27px; }
  .ml-lock .ml-title { font-size: 22px; margin-bottom: 6px; }
  .ml-lock .ml-time { font-size: 12.5px; }
  .ml-lock .ml-card { margin-top: 8px; padding: 14px 14px; }
  .ml-card .gate-question { font-size: 19px; margin-bottom: 9px; }
  .gate-form input, .gate-submit { height: 42px; }
  .gate-form input { font-size: 15px; }
  .gate-submit { font-size: 16px; }
  .gate-contact { font-size: 15.5px; margin-bottom: 7px; }
  .gate-price { font-size: 17px; margin-bottom: 10px; }
  .gate-qr { margin-bottom: 10px; }
  .gate-qr img { width: min(178px, 46vw); }
  .gate-disclaimer { font-size: 12.5px; line-height: 1.65; }
}
@media (max-height: 640px) {
  .ml-lock .ml-badge { width: 30px; height: 30px; font-size: 12px; }
  .ml-lock .ml-gold { font-size: 22px; }
  .ml-lock .ml-title { font-size: 19px; }
  .gate-qr img { width: min(140px, 36vw); }
  .gate-contact, .gate-price { margin-bottom: 6px; }
  .gate-disclaimer { font-size: 11.5px; line-height: 1.55; }
}

@media (max-width: 430px) {
  .ml-lock .ml-hero { padding-left: 0; padding-right: 0; }
  .ml-card .gate-form { flex-direction: row; gap: 8px; }
  .gate-form input { flex: 1 1 auto; width: auto; }
  .gate-submit { flex: 0 0 auto; width: auto; }
}
