/* ==========================================================================
   黄果短剧 · 魔改夜场
   骨白 / 酒红 / 酸柠；杂志式成人向短剧页
   ========================================================================== */

:root {
  --hgm-bg: #f3ede2;
  --hgm-paper: #fffdf8;
  --hgm-ink: #1c1512;
  --hgm-wine: #5c1b2a;
  --hgm-wine-2: #7a2438;
  --hgm-lime: #d9f45b;
  --hgm-lime-2: #e7ff86;
  --hgm-rust: #c65a32;
  --hgm-muted: #75655d;
  --hgm-muted-2: #a8988d;
  --hgm-line: #ddd2c2;
  --hgm-line-dark: rgba(243, 237, 226, 0.18);
  --hgm-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --hgm-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hgm-bg);
  color: var(--hgm-ink);
  font-family: var(--hgm-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--hgm-wine); color: var(--hgm-lime); }
:focus-visible { outline: 3px solid var(--hgm-wine); outline-offset: 3px; border-radius: 3px; }

.hgm-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.hgm-skip {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 9px 16px; border-radius: 999px;
  background: var(--hgm-lime); color: var(--hgm-ink);
  transform: translateY(-160%);
}
.hgm-skip:focus { transform: translateY(0); }

/* 年龄条 */
.hgm-agebar { background: var(--hgm-wine); color: rgba(243, 237, 226, 0.78); font-size: 10px; text-align: center; }
.hgm-agebar div { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 27px; padding: 3px 12px; }
.hgm-agebar b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 25px; height: 15px; padding: 0 5px;
  border: 1px solid rgba(217, 244, 91, 0.7); border-radius: 2px;
  color: var(--hgm-lime); font-family: var(--hgm-mono); font-size: 8px;
}

/* 页头 */
.hgm-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 237, 226, 0.95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hgm-line);
}
.hgm-head-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.hgm-brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.hgm-brand img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.hgm-brand b { color: var(--hgm-wine); font-size: 17px; letter-spacing: -0.02em; }
.hgm-nav { display: flex; gap: 22px; margin-left: auto; }
.hgm-nav a { padding: 5px 0; font-size: 12.5px; font-weight: 600; color: var(--hgm-muted); transition: color 0.2s ease; }
.hgm-nav a:hover { color: var(--hgm-wine); }
.hgm-head-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 4px;
  background: var(--hgm-wine); color: var(--hgm-bg);
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.hgm-head-cta:hover { transform: translateY(-1px); background: var(--hgm-wine-2); }

.hgm-menu-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hgm-line); border-radius: 5px;
}
.hgm-menu-btn i { position: relative; display: block; width: 17px; height: 1.5px; background: var(--hgm-ink); }
.hgm-menu-btn i::before,
.hgm-menu-btn i::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px;
  background: var(--hgm-ink); transition: transform 0.22s ease;
}
.hgm-menu-btn i::before { top: -6px; }
.hgm-menu-btn i::after { top: 6px; }
.hgm-menu-btn[aria-expanded="true"] i { background: transparent; }
.hgm-menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.hgm-menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

.hgm-mobile {
  display: none; position: fixed; inset: 95px 0 auto; z-index: 95;
  padding: 10px 24px 22px; background: var(--hgm-paper);
  border-bottom: 1px solid var(--hgm-line);
  box-shadow: 0 22px 40px -30px rgba(28, 21, 18, 0.35);
}
.hgm-mobile.is-open { display: block; }
.hgm-mobile a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--hgm-line); font-size: 14px; font-weight: 600; }
.hgm-mobile .hgm-head-cta { margin-top: 16px; }

/* 首屏 */
.hgm-hero {
  position: relative; overflow: hidden; min-height: 620px;
  display: flex; align-items: flex-end;
  background: var(--hgm-wine); color: var(--hgm-bg);
}
.hgm-hero-bg { position: absolute; inset: 0; }
.hgm-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hgm-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 15, 24, 0.98) 0%, rgba(52, 15, 24, 0.8) 48%, rgba(52, 15, 24, 0.22) 100%),
    linear-gradient(0deg, var(--hgm-wine) 0%, transparent 36%);
}
.hgm-hero-inner { position: relative; z-index: 2; width: 100%; padding: 78px 0 48px; }
.hgm-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: var(--hgm-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--hgm-lime);
}
.hgm-kicker::before { content: ""; width: 22px; height: 1px; background: var(--hgm-lime); }
.hgm-hero h1 {
  max-width: 780px; margin: 0 0 15px;
  font-size: clamp(46px, 6.1vw, 80px); font-weight: 900;
  line-height: 1.01; letter-spacing: -0.06em;
}
.hgm-hero h1 em { display: block; font-style: normal; color: var(--hgm-lime); }
.hgm-lead { max-width: 610px; margin: 0 0 19px; font-size: 13.5px; line-height: 1.85; color: rgba(243, 237, 226, 0.62); }
.hgm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hgm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border: 1.5px solid transparent; border-radius: 4px;
  font-size: 12.5px; font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hgm-btn svg { width: 14px; height: 14px; }
.hgm-btn--lime { background: var(--hgm-lime); border-color: var(--hgm-lime); color: var(--hgm-ink); }
.hgm-btn--lime:hover { transform: translateY(-2px); background: var(--hgm-lime-2); border-color: var(--hgm-lime-2); }
.hgm-btn--line { border-color: rgba(243, 237, 226, 0.28); color: var(--hgm-bg); }
.hgm-btn--line:hover { transform: translateY(-2px); border-color: var(--hgm-lime); color: var(--hgm-lime); }
.hgm-stats { display: flex; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.hgm-stats li { padding: 0 17px; border-left: 1px solid var(--hgm-line-dark); font-size: 9px; color: rgba(243, 237, 226, 0.44); }
.hgm-stats li:first-child { border-left: 0; padding-left: 0; }
.hgm-stats b { display: block; font-size: 21px; line-height: 1.1; color: var(--hgm-bg); }

/* 字条 */
.hgm-ticker {
  overflow: hidden; background: var(--hgm-wine);
  border-top: 1px solid var(--hgm-line-dark); border-bottom: 1px solid var(--hgm-line-dark);
  color: var(--hgm-lime); font-family: var(--hgm-mono);
  font-size: 9px; letter-spacing: 0.14em; white-space: nowrap;
}
.hgm-ticker div { display: inline-block; padding: 8px 0; animation: hgm-marquee 30s linear infinite; }
.hgm-ticker span { padding: 0 18px; }
@keyframes hgm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 区块 */
.hgm-section { padding: 54px 0; }
.hgm-section--paper { background: var(--hgm-paper); border-top: 1px solid var(--hgm-line); border-bottom: 1px solid var(--hgm-line); }
.hgm-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 23px; padding-bottom: 12px; border-bottom: 2px solid var(--hgm-ink);
}
.hgm-head-left { display: flex; align-items: baseline; gap: 13px; }
.hgm-issue { font-family: var(--hgm-mono); font-size: 8.5px; color: var(--hgm-rust); }
.hgm-head h2 { margin: 0; font-size: clamp(26px, 3.3vw, 38px); font-weight: 900; line-height: 1.1; letter-spacing: -0.05em; }
.hgm-head h2 em { font-style: normal; color: var(--hgm-wine); }
.hgm-head p { max-width: 300px; margin: 0 0 2px; font-size: 10.5px; line-height: 1.7; color: var(--hgm-muted); }

/* 魔改片库 */
.hgm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hgm-card { min-width: 0; }
.hgm-cover { position: relative; overflow: hidden; border-radius: 4px; background: #e7dfd2; }
.hgm-cover img { width: 100%; height: auto; aspect-ratio: 3 / 4.1; object-fit: cover; transition: transform 0.4s ease; }
.hgm-card:hover .hgm-cover img { transform: scale(1.03); }
.hgm-no {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%;
  background: var(--hgm-lime); color: var(--hgm-ink);
  font-family: var(--hgm-mono); font-size: 8px; font-weight: 700;
}
.hgm-card h3 { margin: 8px 0 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.hgm-card p { margin: 0; font-family: var(--hgm-mono); font-size: 8px; color: var(--hgm-muted-2); }

/* 三种看法 */
.hgm-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.hgm-zone { padding: 18px; border: 1px solid var(--hgm-line); border-radius: 4px; background: var(--hgm-bg); }
.hgm-zone span { display: block; margin-bottom: 9px; font-family: var(--hgm-mono); font-size: 8px; color: var(--hgm-rust); }
.hgm-zone h3 { margin: 0 0 4px; font-size: 18px; }
.hgm-zone p { margin: 0; font-size: 10.5px; line-height: 1.7; color: var(--hgm-muted); }

/* 热播 */
.hgm-hot { border-top: 1px solid var(--hgm-line); }
.hgm-hot-item {
  display: grid; grid-template-columns: 38px 52px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hgm-line);
}
.hgm-hot-no { font-family: var(--hgm-mono); font-size: 13px; color: var(--hgm-wine); text-align: center; }
.hgm-hot-item img { width: 52px; height: 70px; object-fit: cover; border-radius: 3px; }
.hgm-hot-copy h3 { margin: 0 0 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.hgm-hot-copy p { margin: 0; font-size: 9px; color: var(--hgm-muted); }
.hgm-hot-tag {
  padding: 3px 8px; border: 1px solid var(--hgm-line); border-radius: 999px;
  font-family: var(--hgm-mono); font-size: 7.5px; color: var(--hgm-wine); white-space: nowrap;
}

/* 入场须知 */
.hgm-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hgm-rule { padding: 17px; border-left: 2px solid var(--hgm-rust); background: rgba(92, 27, 42, 0.035); }
.hgm-rule span { display: block; margin-bottom: 8px; font-family: var(--hgm-mono); font-size: 8px; color: var(--hgm-rust); }
.hgm-rule h3 { margin: 0 0 3px; font-size: 16px; }
.hgm-rule p { margin: 0; font-size: 10px; line-height: 1.7; color: var(--hgm-muted); }

/* 下载 */
.hgm-download { background: var(--hgm-lime); color: var(--hgm-ink); padding: 44px 0; text-align: center; }
.hgm-download h2 { margin: 0 0 8px; font-size: clamp(27px, 3.4vw, 40px); font-weight: 900; line-height: 1.14; letter-spacing: -0.05em; }
.hgm-download h2 em { font-style: normal; color: var(--hgm-wine); }
.hgm-download p { max-width: 600px; margin: 0 auto 18px; font-size: 12px; line-height: 1.8; color: rgba(28, 21, 18, 0.66); }
.hgm-download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hgm-download .hgm-btn--wine { background: var(--hgm-wine); border-color: var(--hgm-wine); color: var(--hgm-bg); }
.hgm-download .hgm-btn--wine:hover { transform: translateY(-2px); background: var(--hgm-wine-2); border-color: var(--hgm-wine-2); }
.hgm-download .hgm-btn--paper { background: var(--hgm-paper); border-color: var(--hgm-paper); color: var(--hgm-ink); }
.hgm-download .hgm-btn--paper:hover { transform: translateY(-2px); }
.hgm-device-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 780px;
  margin: 23px auto 0;
  border-top: 1px solid rgba(28, 21, 18, 0.22); border-bottom: 1px solid rgba(28, 21, 18, 0.22);
}
.hgm-device { padding: 9px 8px; border-left: 1px solid rgba(28, 21, 18, 0.22); }
.hgm-device:first-child { border-left: 0; }
.hgm-device b { display: block; font-size: 10.5px; }
.hgm-device span { display: block; margin-top: 1px; font-family: var(--hgm-mono); font-size: 7.5px; color: rgba(28, 21, 18, 0.55); }

/* FAQ */
.hgm-faq { background: var(--hgm-bg); padding: 54px 0; }
.hgm-faq-inner { max-width: 880px; margin-inline: auto; }
.hgm-faq-head { margin-bottom: 20px; text-align: center; }
.hgm-faq-head h2 { margin: 0 0 7px; font-size: clamp(26px, 3.3vw, 38px); font-weight: 900; line-height: 1.14; letter-spacing: -0.05em; }
.hgm-faq-head h2 em { font-style: normal; color: var(--hgm-wine); }
.hgm-faq-head p { margin: 0; font-size: 11px; color: var(--hgm-muted); }
.hgm-faq-list { border-top: 1px solid var(--hgm-line); }
.hgm-q { border-bottom: 1px solid var(--hgm-line); }
.hgm-q-btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  width: 100%; padding: 15px 2px; text-align: left; font-size: 14px; font-weight: 600;
}
.hgm-q-btn:hover { color: var(--hgm-wine); }
.hgm-q-icon {
  position: relative; flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px;
  border: 1px solid var(--hgm-line); border-radius: 50%; background: var(--hgm-paper);
}
.hgm-q-icon::before,
.hgm-q-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 1.2px;
  background: var(--hgm-wine); transform: translate(-50%, -50%);
}
.hgm-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.hgm-q.is-open .hgm-q-icon { background: var(--hgm-wine); border-color: var(--hgm-wine); }
.hgm-q.is-open .hgm-q-icon::before,
.hgm-q.is-open .hgm-q-icon::after { background: var(--hgm-lime); }
.hgm-q.is-open .hgm-q-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.hgm-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.hgm-q.is-open .hgm-a { grid-template-rows: 1fr; }
.hgm-a-inner { overflow: hidden; }
.hgm-a-inner p { margin: 0; padding: 0 30px 15px 0; font-size: 12px; line-height: 1.85; color: var(--hgm-muted); }

/* 页脚 */
.hgm-footer { background: var(--hgm-wine); color: rgba(243, 237, 226, 0.55); padding: 27px 0 19px; }
.hgm-footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; }
.hgm-footer-brand { display: flex; align-items: center; gap: 8px; }
.hgm-footer-brand img { width: 31px; height: 31px; border-radius: 7px; }
.hgm-footer-brand b { font-size: 15px; color: var(--hgm-bg); }
.hgm-footer p { max-width: 34em; margin: 0; font-size: 10px; line-height: 1.7; color: rgba(243, 237, 226, 0.4); }
.hgm-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--hgm-line-dark);
  font-family: var(--hgm-mono); font-size: 8.5px; color: rgba(243, 237, 226, 0.32);
}

/* 响应式 */
@media (max-width: 1000px) {
  .hgm-hero { min-height: 540px; }
  .hgm-grid { grid-template-columns: repeat(4, 150px); overflow-x: auto; padding-bottom: 6px; }
}

@media (max-width: 820px) {
  .hgm-nav { display: none; }
  .hgm-menu-btn { display: inline-flex; }
  .hgm-head-inner { gap: 12px; }
  .hgm-brand { margin-right: auto; }
  .hgm-hero-inner { padding: 60px 0 38px; }
  .hgm-hero h1 { font-size: clamp(38px, 10.6vw, 58px); }
  .hgm-section { padding: 38px 0; }
  .hgm-head { display: block; margin-bottom: 18px; }
  .hgm-head p { margin-top: 5px; max-width: none; }
  .hgm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .hgm-zones { grid-template-columns: 1fr; }
  .hgm-rules { grid-template-columns: 1fr; }
  .hgm-download { padding: 38px 0; }
  .hgm-faq { padding: 38px 0; }
  .hgm-footer-main { display: block; }
  .hgm-footer p { margin-top: 7px; }
}

@media (max-width: 560px) {
  .hgm-wrap { width: calc(100% - 30px); }
  .hgm-head-inner { height: 62px; }
  .hgm-brand img { width: 32px; height: 32px; }
  .hgm-brand b { font-size: 15px; }
  .hgm-head-cta { padding: 7px 11px; font-size: 10px; }
  .hgm-mobile { inset: 89px 0 auto; }
  .hgm-hero { min-height: 500px; }
  .hgm-hero h1 { font-size: clamp(35px, 11.5vw, 49px); }
  .hgm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .hgm-stats li { padding: 0 8px; font-size: 8px; }
  .hgm-stats b { font-size: 17px; }
  .hgm-grid { gap: 9px; }
  .hgm-card h3 { font-size: 12px; }
  .hgm-device-row { grid-template-columns: 1fr 1fr; }
  .hgm-device:nth-child(3) { border-left: 0; }
  .hgm-device:nth-child(n + 3) { border-top: 1px solid rgba(28, 21, 18, 0.22); }
  .hgm-footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hgm-ticker div { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* PC 字号 */
@media (min-width: 821px) {
  .hgm-agebar { font-size: 11.5px; }
  .hgm-brand b { font-size: 18px; }
  .hgm-nav a { font-size: 13.5px; }
  .hgm-head-cta { font-size: 12.5px; padding: 10px 18px; }
  .hgm-kicker { font-size: 10px; }
  .hgm-lead { font-size: 15.5px; line-height: 1.85; }
  .hgm-btn { font-size: 13.5px; padding: 13px 22px; }
  .hgm-stats li { font-size: 10px; }
  .hgm-stats b { font-size: 23px; }
  .hgm-head p { font-size: 12.5px; line-height: 1.75; }
  .hgm-card h3 { font-size: 16px; }
  .hgm-card p { font-size: 9.5px; }
  .hgm-zone h3 { font-size: 21px; }
  .hgm-zone p { font-size: 12px; }
  .hgm-hot-copy h3 { font-size: 15px; }
  .hgm-hot-copy p { font-size: 11px; }
  .hgm-hot-tag { font-size: 8.5px; padding: 3px 9px; }
  .hgm-rule h3 { font-size: 18px; }
  .hgm-rule p { font-size: 12px; }
  .hgm-download p { font-size: 13.5px; }
  .hgm-device b { font-size: 11.5px; }
  .hgm-device span { font-size: 9px; }
  .hgm-faq-head p { font-size: 12px; }
  .hgm-q-btn { font-size: 15.5px; padding: 17px 2px; }
  .hgm-a-inner p { font-size: 13.5px; line-height: 1.9; }
  .hgm-footer p { font-size: 11px; }
  .hgm-footer-bottom { font-size: 9.5px; }
}
