/* ============================================================
   黄果短剧官网样式表
   包含：下载弹窗样式 + 全局主题变量 + 页面布局 + 差异化模块
   ============================================================ */

/* ---------- 下载弹窗 ---------- */
.hg-download-modal,
.hg-download-modal * { box-sizing: border-box; }
.hg-download-modal[hidden] { display: none; }
.hg-download-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 32px);
    font-family: PingFang SC, Microsoft YaHei, system-ui, sans-serif;
}
.hg-download-modal__backdrop {
    position: absolute;
    inset: 0;
    background: #08080cb8;
}
.hg-download-modal__panel {
    position: relative;
    width: min(100%, 540px);
    max-height: min(760px, calc(100dvh - 32px));
    overflow: auto;
    padding: clamp(26px, 5vw, 40px);
    border: 1px solid rgba(255, 214, 76, .28);
    border-radius: 22px;
    background: #17171c;
    color: #f7f2e8;
    box-shadow: 0 24px 80px #00000075;
    outline: none;
    animation: hg-download-modal-in .18s ease-out both;
}
.hg-download-modal__close {
    position: absolute;
    top: 15px;
    right: 17px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #ffffff14;
    color: #d6cec0;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.hg-download-modal__close:hover,
.hg-download-modal__close:focus-visible {
    background: #ffd64c2e;
    color: #fff4b4;
}
.hg-download-modal__eyebrow {
    margin: 0 0 7px;
    color: #9ed49b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}
.hg-download-modal h2 {
    margin: 0;
    padding-right: 36px;
    font-size: clamp(24px, 5vw, 32px);
    line-height: 1.22;
}
.hg-download-modal__description {
    margin: 14px 0 24px;
    color: #bdb4a5;
    font-size: 14px;
    line-height: 1.75;
}
.hg-download-modal__label {
    display: block;
    margin-bottom: 8px;
    color: #f0c94a;
    font-size: 12px;
    font-weight: 800;
}
.hg-download-modal__copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.hg-download-modal__url {
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: #0f0f13;
    color: #eee7d9;
    font: 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    outline: none;
}
.hg-download-modal__url:focus {
    border-color: #ffd64c;
    box-shadow: 0 0 0 3px #ffd64c29;
}
.hg-download-modal__copy,
.hg-download-modal__done {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
}
.hg-download-modal__copy {
    background: #ffd64c;
    color: #241b00;
}
.hg-download-modal__copy:hover,
.hg-download-modal__copy:focus-visible {
    background: #ffe686;
}
.hg-download-modal__copy[data-state=success] {
    background: #91d7a0;
    color: #12351d;
}
.hg-download-modal__copy[data-state=success]:hover,
.hg-download-modal__copy[data-state=success]:focus-visible {
    background: #b0e7ba;
}
.hg-download-modal__status {
    min-height: 24px;
    margin: 10px 0 0;
    color: #bdb4a5;
    font-size: 12px;
}
.hg-download-modal__status[data-state=success] { color: #9ed49b; }
.hg-download-modal__status[data-state=fallback] { color: #ffd27a; }
.hg-download-modal__hint {
    margin: 18px 0 22px;
    color: #807a70;
    font-size: 12px;
}
.hg-download-modal__done {
    width: 100%;
    border: 1px solid rgba(255, 214, 76, .34);
    background: transparent;
    color: #ffd64c;
}
.hg-download-modal__done:hover,
.hg-download-modal__done:focus-visible {
    border-color: #ffd64c;
    background: #ffd64c14;
}
body.hg-download-modal-open { overflow: hidden; }
@keyframes hg-download-modal-in {
    0% { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 520px) {
    .hg-download-modal { align-items: end; padding: 0; }
    .hg-download-modal__panel {
        width: 100%;
        max-height: calc(100dvh - 12px);
        padding: 28px 18px calc(22px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }
    .hg-download-modal__copy-row { grid-template-columns: 1fr; }
    .hg-download-modal__copy { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hg-download-modal__panel { animation: none; }
}

/* ---------- 全局主题变量 ---------- */
:root {
    --ref-bg: #0b0b0d;
    --ref-panel: #15151a;
    --ref-panel-2: #1b1b21;
    --ref-ink: #f7f2e8;
    --ref-soft: #b2a895;
    --ref-muted: #807a70;
    --ref-yellow: #ffd64c;
    --ref-yellow-2: #ffb522;
    --ref-orange: #ff8b26;
    --ref-green: #9ed49b;
    --ref-line: rgba(255, 214, 92, .13);
    --ref-shell: min(1180px, calc(100% - 40px));
    --ref-shadow: 0 18px 55px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ref-bg); }
body {
    margin: 0;
    background: var(--ref-bg);
    color: var(--ref-ink);
    font: 15px/1.75 PingFang SC, Microsoft YaHei, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 480px at 95% -10%, rgba(255, 199, 63, .08), transparent 65%),
        radial-gradient(720px 430px at -10% 20%, rgba(120, 192, 101, .06), transparent 65%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }

.ref-page, .ref-page *, .ref-article, .ref-article * { box-sizing: border-box; }
.ref-shell { width: var(--ref-shell); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.ref-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #0b0b0de0;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ref-nav-row { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.ref-brand { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.ref-brand img { width: 48px; height: 48px; object-fit: contain; object-position: left center; }
.ref-brand span { color: var(--ref-ink); font-size: 18px; font-weight: 900; white-space: nowrap; }
.ref-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; color: #b7b0a3; font-weight: 700; }
.ref-nav a { position: relative; padding: 8px 0; white-space: nowrap; transition: color .2s ease; }
.ref-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 1px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ref-yellow), var(--ref-orange));
    transition: right .2s ease;
}
.ref-nav a:hover, .ref-nav a:focus-visible { color: var(--ref-ink); }
.ref-nav a:hover:after, .ref-nav a:focus-visible:after { right: 0; }

/* ---------- 按钮 ---------- */
.ref-download, .ref-outline {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.ref-download {
    color: #17110a;
    background: linear-gradient(135deg, var(--ref-yellow), var(--ref-orange));
    box-shadow: 0 5px #b86f1d, 0 14px 28px #ff912a2e;
}
.ref-download:hover, .ref-download:focus-visible { transform: translateY(-2px); filter: brightness(1.05); }
.ref-download--small { min-height: 42px; padding: 0 21px; font-size: 14px; }
.ref-outline {
    border: 1px solid rgba(255, 211, 73, .4);
    color: var(--ref-yellow);
    background: transparent;
}
.ref-outline:hover, .ref-outline:focus-visible { border-color: var(--ref-yellow); transform: translateY(-2px); }
.ref-outline--light { color: var(--ref-ink); border-color: #ffffff47; }

/* ---------- HERO ---------- */
.ref-hero { padding: 76px 0 66px; }
.ref-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 58px; align-items: center; }
.ref-eyebrow { margin: 0 0 8px; color: var(--ref-green); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.ref-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -.035em;
}
.ref-hero-kicker {
    margin: 7px 0 18px;
    width: fit-content;
    color: var(--ref-yellow);
    font-size: clamp(24px, 3.1vw, 39px);
    line-height: 1.2;
    font-weight: 950;
    background: linear-gradient(transparent 68%, #ffb91f2e 68%);
}
.ref-hero-desc { max-width: 620px; margin: 0 0 28px; color: var(--ref-soft); font-size: 16px; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.ref-tags li {
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: var(--ref-soft);
    font-size: 13px;
    font-weight: 700;
    background: #ffffff06;
}
.ref-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 650px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, .16);
}
.ref-stats div { display: flex; flex-direction: column; gap: 0; padding-right: 14px; }
.ref-stats b { color: var(--ref-yellow); font-size: 25px; line-height: 1.2; }
.ref-stats span { color: var(--ref-ink); font-weight: 800; }
.ref-stats small { color: var(--ref-muted); }

/* ---------- Showcase ---------- */
.ref-showcase { position: relative; height: 560px; }
.ref-orbit {
    position: absolute;
    inset: 7% 4%;
    border: 2px dashed rgba(255, 210, 81, .24);
    border-radius: 50%;
    transform: rotate(-9deg);
}
.ref-orbit:after {
    content: "";
    position: absolute;
    inset: 17%;
    border-radius: 50%;
    background: #ffc94409;
    box-shadow: inset 0 0 0 18px #ffffff06;
}
.ref-poster {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 5px solid #24242b;
    border-radius: 24px;
    background: #1a1a20;
    box-shadow: var(--ref-shadow);
}
.ref-poster img { width: 100%; height: 100%; object-fit: cover; }
.ref-poster--main { z-index: 4; left: 50%; top: 50%; width: 245px; height: 360px; transform: translate(-50%, -50%) rotate(-1deg); }
.ref-poster--left { z-index: 2; left: 4%; top: 23%; width: 170px; height: 250px; transform: rotate(-10deg); }
.ref-poster--right { z-index: 2; right: 2%; top: 19%; width: 175px; height: 258px; transform: rotate(10deg); }
.ref-app-chip {
    position: absolute;
    z-index: 7;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%);
    min-width: 220px;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 11px 18px;
    background: #19191ef0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: var(--ref-shadow);
}
.ref-app-chip img { width: 48px; height: 48px; object-fit: contain; grid-row: 1/3; }
.ref-app-chip span { font-weight: 900; }
.ref-app-chip small { color: var(--ref-muted); }

/* ---------- 分类快捷入口 ---------- */
.ref-category { padding: 0 0 42px; }
.ref-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--ref-line);
    border-radius: 26px;
    background: var(--ref-panel);
    box-shadow: var(--ref-shadow);
}
.ref-category-grid a {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 24px;
    border-right: 1px solid var(--ref-line);
    transition: background .2s ease;
}
.ref-category-grid a:last-child { border-right: 0; }
.ref-category-grid a:hover { background: #ffffff09; }
.ref-category-grid b {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #4d3700;
    font-size: 18px;
    background: linear-gradient(145deg, #fff1a7, #ffb92f);
}
.ref-category-grid span { display: flex; flex-direction: column; }
.ref-category-grid strong { font-size: 18px; }
.ref-category-grid small { color: var(--ref-muted); }
.ref-category-grid em { color: var(--ref-yellow); font-style: normal; font-size: 20px; font-weight: 900; }

/* ---------- 通用 Section ---------- */
.ref-section { padding: 76px 0; }
.ref-section--tint {
    background: linear-gradient(180deg, #ffc43a0b, #ffffff03);
    border-block: 1px solid rgba(255, 214, 92, .08);
}
.ref-section--dark {
    background: #101014;
    border-block: 1px solid rgba(255, 214, 92, .09);
}
.ref-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 34px;
}
.ref-section-head h2,
.ref-creator h2,
.ref-download-panel h2,
.ref-ai-grid h2 {
    margin: 5px 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.16;
    letter-spacing: -.02em;
}
.ref-section-head p,
.ref-creator p,
.ref-download-panel p,
.ref-ai-grid > div > p { max-width: 650px; margin: 0; color: var(--ref-soft); }
.ref-text-link { color: var(--ref-yellow); font-weight: 800; white-space: nowrap; }
.ref-text-link:hover { color: #fff; }

/* ---------- 海报网格 ---------- */
.ref-poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ref-poster-card {
    overflow: hidden;
    border: 1px solid var(--ref-line);
    border-radius: 24px;
    background: var(--ref-panel);
    box-shadow: 0 14px 34px #0000003d;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ref-poster-card:hover { transform: translateY(-5px); box-shadow: var(--ref-shadow); }
.ref-poster-media {
    position: relative;
    display: block;
    aspect-ratio: 4/4.8;
    overflow: hidden;
    background: #202027;
}
.ref-poster-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ref-poster-card:hover .ref-poster-media img { transform: scale(1.035); }
.ref-status, .ref-episodes {
    position: absolute;
    top: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.ref-status { left: 12px; color: #271d00; background: var(--ref-yellow); }
.ref-episodes { right: 12px; color: #fff; background: #0f0f13d6; }
.ref-poster-body { padding: 16px 17px 18px; }
.ref-poster-body h3 { margin: 0 0 8px; color: #fff; font-size: 17px; }
.ref-poster-body p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ref-poster-body p span {
    padding: 2px 9px;
    border: 1px solid rgba(255, 160, 48, .28);
    border-radius: 999px;
    color: #ffad3d;
    font-size: 12px;
}
.ref-poster-body p b { margin-left: auto; color: #ff7b63; font-size: 12px; }

/* ---------- 排行榜 ---------- */
.ref-rank-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ref-rank-list li {
    display: grid;
    grid-template-columns: 48px 58px 1fr auto 84px;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border: 1px solid var(--ref-line);
    border-radius: 18px;
    background: var(--ref-panel);
    box-shadow: 0 7px 22px #00000038;
}
.ref-rank-list li > strong { color: var(--ref-yellow); font: 900 21px/1 ui-monospace, monospace; }
.ref-rank-list img { width: 58px; height: 72px; border-radius: 10px; object-fit: cover; }
.ref-rank-list h3 { margin: 0; color: #fff; font-size: 15px; }
.ref-rank-list p { margin: 2px 0 0; color: var(--ref-muted); font-size: 12px; }
.ref-rank-list li > b { color: #ffad3d; font-size: 17px; text-align: right; }
.ref-rank-tag {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--ref-green);
    background: #65c67821;
    font-size: 12px;
    font-weight: 800;
}

/* ---------- 精选片单 ---------- */
.ref-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ref-list-feature {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 185px;
    overflow: hidden;
    border: 1px solid var(--ref-line);
    border-radius: 20px;
    background: var(--ref-panel);
    transition: transform .2s ease, border-color .2s ease;
}
.ref-list-feature:hover { transform: translateY(-4px); border-color: #ffd65c52; }
.ref-list-feature img { width: 100%; height: 100%; min-height: 185px; object-fit: cover; }
.ref-list-feature > div { display: flex; flex-direction: column; padding: 20px; }
.ref-list-feature span { color: var(--ref-yellow); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.ref-list-feature h3 { margin: 6px 0 8px; color: #fff; font-size: 20px; }
.ref-list-feature p { margin: 0; color: var(--ref-soft); }
.ref-list-feature small { margin-top: auto; color: var(--ref-muted); }

/* ---------- AI 漫剧 ---------- */
.ref-ai-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.ref-ai-grid h2 em { display: block; color: var(--ref-yellow); font-style: normal; }
.ref-ai-grid .ref-outline { margin-top: 25px; }
.ref-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ref-steps li {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: #ffffff09;
}
.ref-steps b {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    color: #1a1300;
    background: linear-gradient(135deg, var(--ref-yellow), var(--ref-orange));
    font-weight: 950;
}
.ref-steps span { display: flex; flex-direction: column; }
.ref-steps strong { color: #fff; }
.ref-steps small { color: var(--ref-muted); }

/* ---------- 创作者中心 ---------- */
.ref-creator { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
.ref-creator .ref-actions { margin-top: 26px; }
.ref-creator ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ref-creator li {
    padding: 16px;
    border: 1px solid var(--ref-line);
    border-radius: 14px;
    color: var(--ref-soft);
    background: var(--ref-panel);
}

/* ---------- 下载面板 ---------- */
.ref-download-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 60px;
    align-items: center;
    padding: 42px;
    border: 1px solid var(--ref-line);
    border-radius: 26px;
    background: linear-gradient(135deg, #ffcf3d1a, #ff89200a), var(--ref-panel);
}
.ref-download-panel ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 20px 0 28px;
    padding: 0;
    list-style: none;
    color: var(--ref-soft);
}
.ref-download-panel li:before { content: "✓"; margin-right: 8px; color: var(--ref-yellow); }
.ref-qr { display: grid; justify-items: center; gap: 11px; }
.ref-qr img {
    width: 180px;
    height: 180px;
    padding: 8px;
    border-radius: 12px;
    background: #fffdf5;
}
.ref-qr small { color: var(--ref-muted); text-align: center; }

/* ---------- FAQ ---------- */
.ref-faq { display: grid; gap: 10px; max-width: 860px; }
.ref-faq details { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ref-faq summary {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 20px 0;
    color: #fff;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 800;
}
.ref-faq summary::-webkit-details-marker { display: none; }
.ref-faq summary span { color: var(--ref-yellow); font: 900 13px/1 ui-monospace, monospace; }
.ref-faq summary b {
    color: var(--ref-yellow);
    font-size: 22px;
    font-weight: 400;
    transition: transform .2s ease;
}
.ref-faq details[open] summary b { transform: rotate(45deg); }
.ref-faq details p { margin: -4px 0 20px 56px; color: var(--ref-soft); }

/* ---------- 页脚 ---------- */
.ref-footer { padding: 64px 0 26px; border-top: 1px solid rgba(255, 255, 255, .09); background: #08080a; }
.ref-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.ref-footer-brand > a { display: inline-flex; align-items: center; gap: 10px; }
.ref-footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.ref-footer-brand span { color: var(--ref-ink); font-size: 18px; font-weight: 900; white-space: nowrap; }
.ref-footer-brand p { max-width: 270px; margin: 12px 0 0; color: var(--ref-muted); }
.ref-footer h3 { margin: 0 0 14px; color: #fff; font-size: 15px; }
.ref-footer a:not(.ref-brand) { display: block; width: fit-content; margin: 9px 0; color: var(--ref-muted); }
.ref-footer a:hover { color: var(--ref-yellow); }
.ref-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #69645c;
    font-size: 12px;
}

/* ---------- 文章页（备用） ---------- */
.ref-article-shell { min-height: 55vh; padding: 70px 0 90px; }
.ref-article { max-width: 900px; margin-inline: auto; }
.ref-crumb { margin: 0 0 18px; color: var(--ref-muted); font-size: 13px; }
.ref-crumb a { color: var(--ref-yellow); }
.ref-article h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -.03em;
}
.ref-article h1 em {
    display: block;
    margin-top: 12px;
    color: var(--ref-yellow);
    font-size: clamp(18px, 2.5vw, 27px);
    font-style: normal;
    letter-spacing: 0;
}
.ref-article-lead { max-width: 760px; margin: 0 0 46px; color: var(--ref-soft); font-size: 17px; }
.ref-article section { padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.ref-article h2 { margin: 0 0 18px; color: #fff; font-size: 25px; }
.ref-article h3 { margin: 24px 0 8px; color: var(--ref-yellow); font-size: 18px; }
.ref-article p { color: var(--ref-soft); }
.ref-article ul, .ref-article ol { margin: 0; padding-left: 22px; color: var(--ref-soft); }
.ref-article li { margin: 10px 0; }
.ref-article strong { color: #fff; }
.ref-article .ref-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ref-article .ref-list li {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--ref-line);
    border-radius: 14px;
    background: var(--ref-panel);
}
.ref-article .ref-list strong { display: block; margin-bottom: 5px; }
.ref-note {
    margin: 34px 0;
    padding: 17px 20px;
    border-left: 3px solid var(--ref-yellow);
    color: var(--ref-soft);
    background: #ffd65c0f;
}
.ref-sub-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding: 28px;
    border: 1px solid var(--ref-line);
    border-radius: 18px;
    background: var(--ref-panel);
}
.ref-sub-cta h2 { margin-bottom: 4px; }
.ref-sub-cta p { margin: 0; }
.ref-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ref-contact-card {
    padding: 20px;
    border: 1px solid var(--ref-line);
    border-radius: 15px;
    background: var(--ref-panel);
}
.ref-contact-card h3 { margin-top: 0; }
.ref-contact-card a { color: var(--ref-yellow); word-break: break-word; }

/* ---------- 子页 Hero ---------- */
.ref-subpage-main { overflow: hidden; }
.ref-sub-hero {
    position: relative;
    padding: 62px 0 70px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(115deg, rgba(255, 206, 65, .09), transparent 44%);
}
.ref-sub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 55px;
    align-items: center;
}
.ref-sub-hero-grid--plain { display: block; }
.ref-sub-hero-grid--plain .ref-sub-hero-copy { max-width: 830px; }
.ref-sub-hero-copy { max-width: 650px; }
.ref-sub-hero .ref-crumb { display: flex; gap: 10px; margin: 20px 0 18px; }
.ref-sub-hero .ref-crumb span { color: var(--ref-muted); }
.ref-sub-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(35px, 5vw, 68px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.ref-subtitle {
    max-width: 620px;
    margin: 14px 0 12px;
    color: var(--ref-yellow);
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 900;
    line-height: 1.35;
}
.ref-sub-hero .ref-hero-desc { max-width: 600px; margin-bottom: 26px; }
.ref-sub-visual {
    position: relative;
    height: 360px;
    max-width: 500px;
    width: 100%;
    margin-inline: auto;
}
.ref-sub-cover {
    position: absolute;
    width: 175px;
    height: 255px;
    margin: 0;
    overflow: hidden;
    border: 5px solid #24242b;
    border-radius: 22px;
    background: #1a1a20;
    box-shadow: var(--ref-shadow);
}
.ref-sub-cover img { width: 100%; height: 100%; object-fit: cover; }
.ref-sub-cover--1 { left: 4%; top: 45px; transform: rotate(-11deg); }
.ref-sub-cover--2 { z-index: 2; left: 50%; top: 14px; transform: translate(-50%) rotate(1deg); width: 195px; height: 285px; }
.ref-sub-cover--3 { right: 4%; top: 50px; transform: rotate(10deg); }
.ref-sub-visual:before {
    content: "";
    position: absolute;
    inset: 4% 5%;
    border: 1px dashed rgba(255, 211, 73, .24);
    border-radius: 50%;
    transform: rotate(-8deg);
}
.ref-sub-visual-label {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 0;
    min-width: 190px;
    transform: translate(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: #17171cf0;
    box-shadow: var(--ref-shadow);
}
.ref-sub-visual-label strong { color: #fff; }
.ref-sub-visual-label small { color: var(--ref-muted); }

/* ---------- 富文章 ---------- */
.ref-article--rich { max-width: 980px; padding-top: 28px; }
.ref-rich-section { position: relative; padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, .09); }
.ref-rich-section--tint {
    margin-inline: -120px;
    padding-inline: 120px;
    background: linear-gradient(90deg, #ffcc3d09, #ffffff02);
}
.ref-rich-section--faq { padding-bottom: 54px; }
.ref-rich-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}
.ref-rich-head h2 {
    max-width: 760px;
    margin: 4px 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.2;
}
.ref-rich-head > div > p:not(.ref-eyebrow) { max-width: 670px; margin: 0; color: var(--ref-soft); }
.ref-rich-paragraph { max-width: 790px; color: var(--ref-soft); font-size: 16px; }
.ref-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref-media-card {
    overflow: hidden;
    border: 1px solid var(--ref-line);
    border-radius: 18px;
    background: var(--ref-panel);
    transition: transform .2s ease, border-color .2s ease;
}
.ref-media-card:hover { transform: translateY(-4px); border-color: #ffd65c59; }
.ref-media-image { position: relative; }
.ref-media-image img { width: 100%; aspect-ratio: 4 / 4.9; object-fit: cover; }
.ref-media-image small {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: #0c0c0fd1;
    font-size: 11px;
    font-weight: 800;
}
.ref-media-card > div { padding: 15px 16px 17px; }
.ref-media-card span { color: var(--ref-yellow); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.ref-media-card h3 { margin: 5px 0 6px; color: #fff; font-size: 17px; }
.ref-media-card p, .ref-info-card p, .ref-step-grid p { margin: 0; color: var(--ref-soft); font-size: 14px; }
.ref-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ref-info-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    padding: 20px;
    border: 1px solid var(--ref-line);
    border-radius: 16px;
    background: var(--ref-panel);
}
.ref-info-card-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #4c3700;
    background: linear-gradient(145deg, #fff1a7, #ffb92f);
}
.ref-info-card h3 { margin: 0 0 5px; color: #fff; font-size: 17px; }
.ref-info-card small { display: inline-block; margin-top: 8px; color: var(--ref-yellow); font-size: 12px; }
.ref-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ref-step-grid li {
    min-height: 180px;
    padding: 19px;
    border: 1px solid var(--ref-line);
    border-radius: 17px;
    background: var(--ref-panel);
}
.ref-step-grid b { display: block; margin-bottom: 28px; color: var(--ref-yellow); font: 900 22px/1 ui-monospace, monospace; }
.ref-step-grid h3 { margin: 0 0 5px; color: #fff; font-size: 17px; }
.ref-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 820px;
    margin-top: 25px;
    padding: 16px 18px;
    border-left: 3px solid var(--ref-yellow);
    color: var(--ref-soft);
    background: #ffd65c0f;
}
.ref-note strong { color: var(--ref-yellow); white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
    .ref-nav-row { gap: 14px; }
    .ref-brand img { width: 44px; height: 44px; }
    .ref-brand span { font-size: 16px; }
    .ref-nav { gap: 14px; font-size: 14px; }
    .ref-hero-grid, .ref-ai-grid { grid-template-columns: 1fr; }
    .ref-showcase { max-width: 620px; width: 100%; margin-inline: auto; }
    .ref-category-grid { grid-template-columns: 1fr; }
    .ref-category-grid a { border-right: 0; border-bottom: 1px solid var(--ref-line); }
    .ref-category-grid a:last-child { border-bottom: 0; }
    .ref-poster-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-creator { grid-template-columns: 1fr; align-items: start; }
    .ref-download-panel { grid-template-columns: 1fr 190px; gap: 30px; padding: 30px; }
    .ref-footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
    .ref-shell { width: min(100% - 28px, 560px); }
    .ref-nav-row { min-height: 68px; }
    .ref-brand { gap: 7px; }
    .ref-brand img { width: 40px; height: 40px; }
    .ref-brand span { font-size: 15px; }
    .ref-nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0; padding-bottom: 5px; gap: 19px; }
    .ref-nav-row { flex-wrap: wrap; }
    .ref-download--small { margin-left: auto; min-height: 40px; padding: 0 15px; font-size: 13px; }
    .ref-hero { padding: 52px 0 50px; }
    .ref-hero h1 { font-size: clamp(45px, 15vw, 70px); }
    .ref-hero-kicker { font-size: clamp(22px, 7vw, 32px); }
    .ref-hero-desc { font-size: 15px; }
    .ref-showcase { height: 410px; }
    .ref-poster--main { width: 182px; height: 270px; }
    .ref-poster--left { width: 126px; height: 188px; left: 1%; }
    .ref-poster--right { width: 130px; height: 193px; right: 0; }
    .ref-app-chip { min-width: 180px; padding: 9px 13px; }
    .ref-app-chip img { width: 40px; height: 40px; }
    .ref-stats { gap: 8px; }
    .ref-stats b { font-size: 20px; }
    .ref-stats span, .ref-stats small { font-size: 12px; }
    .ref-section { padding: 55px 0; }
    .ref-section-head { display: block; margin-bottom: 26px; }
    .ref-section-head .ref-text-link { display: inline-block; margin-top: 16px; }
    .ref-section-head h2, .ref-creator h2, .ref-download-panel h2, .ref-ai-grid h2 { font-size: 33px; }
    .ref-poster-grid, .ref-list-grid, .ref-contact-grid { grid-template-columns: 1fr; }
    .ref-poster-card { border-radius: 18px; }
    .ref-rank-list li { grid-template-columns: 34px 52px 1fr auto; gap: 10px; padding: 10px; }
    .ref-rank-list img { width: 52px; height: 66px; }
    .ref-rank-list li > b { grid-column: 4; grid-row: 1; font-size: 14px; }
    .ref-rank-tag { grid-column: 3 / 5; grid-row: 2; justify-self: start; }
    .ref-list-feature { grid-template-columns: 118px 1fr; }
    .ref-list-feature img { min-height: 170px; }
    .ref-download-panel { grid-template-columns: 1fr; padding: 24px; }
    .ref-qr { justify-items: start; }
    .ref-qr img { width: 155px; height: 155px; }
    .ref-footer { padding-bottom: 28px; }
    .ref-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
    .ref-footer-brand { grid-column: 1 / -1; }
    .ref-footer-brand img { width: 42px; height: 42px; }
    .ref-footer-brand span { font-size: 16px; }
    .ref-footer-bottom { display: grid; gap: 7px; margin-top: 32px; }
    .ref-article-shell { padding: 48px 0 66px; }
    .ref-article h1 { font-size: 42px; }
    .ref-sub-cta { align-items: flex-start; flex-direction: column; }
    .ref-sub-hero { padding: 44px 0 50px; }
    .ref-sub-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .ref-sub-hero h1 { font-size: clamp(36px, 11vw, 52px); }
    .ref-subtitle { font-size: 22px; }
    .ref-sub-visual { max-width: 430px; height: 310px; }
    .ref-sub-cover { width: 140px; height: 208px; }
    .ref-sub-cover--2 { width: 160px; height: 235px; }
    .ref-rich-section { padding: 48px 0; }
    .ref-rich-section--tint { margin-inline: -14px; padding-inline: 14px; }
    .ref-rich-head { display: block; }
    .ref-rich-head .ref-text-link { display: inline-block; margin-top: 15px; }
    .ref-media-grid, .ref-info-grid { grid-template-columns: 1fr; }
    .ref-step-grid { grid-template-columns: repeat(2, 1fr); }
    .ref-step-grid li { min-height: 155px; }
    .ref-step-grid b { margin-bottom: 20px; }
    .ref-note { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ============================================================
   差异化补充样式
   ============================================================ */

/* 年龄提示条 */
.ref-age-notice {
    background: #2d1e12;
    color: #f0e4d8;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 160, 80, 0.25);
}
.ref-age-notice strong { color: #ffb067; font-weight: 700; }
.ref-age-notice span { opacity: 0.85; }
.ref-age-badge {
    display: inline-block;
    background: #e86f1e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
    margin-right: 0.25rem;
}

/* 双引擎徽章 */
.ref-engine-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #e86f1e 0%, #f59e42 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* 为什么选择黄果短剧 */
.ref-why-section {
    background: linear-gradient(145deg, #fff8f0 0%, #fef7ee 100%);
    border-top: 1px solid #f0e4d8;
    border-bottom: 1px solid #f0e4d8;
}
.ref-why-section .ref-section-head h2 { color: #2d1e12; }
.ref-why-section .ref-section-head p { color: #5a4a3a; }
.ref-why-section .ref-eyebrow { color: #e86f1e; }
.ref-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.ref-why-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 160, 80, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ref-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(255, 120, 40, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 140, 40, 0.35);
}
.ref-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: #fff0e0;
    color: #e86f1e;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.ref-why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #2d1e12;
}
.ref-why-card p {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}