@charset "utf-8";

/* ================================================================
   AURORA CINEMA THEME  ·  mobile-first / desk-centered
   浅色底（灰白）+ 琥珀金强调
   源码顺序与视觉顺序解耦：一律由 flex order 与 grid-template-areas 接管
   ================================================================ */

:root {
    --ink: #f4f5f8;
    --panel: #ffffff;
    --panel-alt: #eceff4;
    --seam: #e4e7ee;
    --text: #1c2029;
    --muted: #6a7284;
    --faint: #98a0b0;
    --gold: #c07c09;
    --gold-face: linear-gradient(135deg, #f2ad2e, #ffd489);
    --gold-ink: #4a3405;
    --violet: #6355e6;
    --hot: #ef4f5f;
    --radius: 12px;
    --radius-sm: 6px;
    --shell: 760px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--ink);
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink);
    max-width: var(--shell);
    margin: 0 auto;
}

@media (min-width: 761px) {
    body {
        box-shadow: 0 0 28px rgba(24, 32, 56, .10);
    }
}

img {
    border: 0;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

/* 隐藏干扰位：仅供索引，不参与渲染流 */

.void-mark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

/* ---------------- 骨架容器：源码倒序 → order 归位 ---------------- */

.viewport-frame {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, var(--ink) 300px);
}

.masthead-bar {
    order: 1;
}

.channel-rail {
    order: 2;
}

.marquee-alert {
    order: 3;
}

.content-flow {
    order: 4;
    flex: 1 1 auto;
}

.site-base {
    order: 5;
}

/* ---------------- 顶栏 ---------------- */

.masthead-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px 12px;
    background: var(--ink);
    border-bottom: 1px solid var(--seam);
}

.brand-mark {
    flex: 0 0 auto;
    height: 38px;
    width: auto;
}

.quest-form {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    min-width: 0;
    background: #f3f5f9;
    border: 1px solid var(--seam);
    border-radius: 999px;
    overflow: hidden;
}

.quest-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

.quest-input::placeholder {
    color: var(--faint);
}

.quest-trigger {
    flex: 0 0 auto;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-ink);
    background: var(--gold-face);
}

/* ---------------- 频道轨道（横向滚动） ---------------- */

.channel-rail {
    background: var(--panel);
    border-bottom: 1px solid var(--seam);
}

.rail-track {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
    display: none;
}

.rail-chip {
    flex: 0 0 auto;
    padding: 6px 13px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: color .25s, border-color .25s, background .25s;
}

.rail-chip:hover {
    color: var(--text);
    background: #f3f5f9;
    border-color: var(--seam);
}

.rail-chip--live {
    position: sticky;
    left: 0;
    z-index: 2;
    color: var(--gold-ink);
    font-weight: 700;
    background: var(--gold-face);
}

/* ---------------- 走马灯提示 ---------------- */

.marquee-alert {
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    color: #a06705;
    background: #fff8e7;
    border-bottom: 1px solid #f6e6c2;
    padding: 6px 0;
}

.marquee-belt {
    display: inline-block;
    padding-left: 100%;
    animation: belt-drift 16s linear infinite;
}

@keyframes belt-drift {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ---------------- 板块头 ---------------- */

.showcase-block {
    padding: 16px 15px 4px;
}

.block-crest {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
}

.crest-label {
    position: relative;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    padding-left: 12px;
}

.crest-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 15px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: linear-gradient(180deg, #f2ad2e, var(--hot));
}

.crest-jump {
    font-size: 12px;
    color: var(--faint);
}

.crest-jump:hover {
    color: var(--gold);
}

/* ---------------- 影片矩阵（grid，非 float/flex-wrap） ---------------- */

.reel-collection {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 9px;
    padding: 4px 15px 18px;
}

@media (min-width: 561px) {
    .reel-collection {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.media-cell {
    min-width: 0;
    animation: cell-rise .45s both;
}

@keyframes cell-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.cell-portal {
    display: block;
}

.cell-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    margin: 0 0 7px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--panel-alt) url("../img/load.gif") center center / 44px 44px no-repeat;
    box-shadow: 0 4px 12px rgba(24, 32, 56, .12);
}

.cell-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.media-cell:hover .cell-art {
    transform: scale(1.06);
}

.cell-tagline {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tag-alpha,
.tag-beta,
.tag-gamma,
.tag-delta {
    position: absolute;
    padding: 2px 6px;
    font-size: 11px;
    font-style: normal;
    line-height: 1.4;
    border-radius: 4px;
}

.tag-alpha {
    right: 4px;
    bottom: 4px;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    background: rgba(18, 22, 32, .72);
}

.tag-beta {
    left: 4px;
    bottom: 4px;
    color: #fff;
    background: rgba(18, 22, 32, .72);
}

.tag-gamma {
    left: 4px;
    top: 4px;
    color: #fff;
    background: rgba(18, 22, 32, .62);
}

.tag-delta {
    right: 4px;
    top: 4px;
    font-weight: 800;
    color: var(--gold-ink);
    background: var(--gold-face);
}

.cell-caption {
    padding: 0 1px;
}

.caption-headline {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caption-subline {
    margin-top: 2px;
    font-size: 11px;
    color: var(--faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------- 翻页 ---------------- */

.leaf-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 18px 15px 24px;
}

.leaf-node {
    min-width: 34px;
    height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--seam);
    border-radius: var(--radius-sm);
    transition: all .25s;
}

.leaf-node:hover,
.leaf-node--edge {
    color: var(--gold-ink);
    background: var(--gold-face);
    border-color: transparent;
}

/* ---------------- 详情页：居中背景图 + 图文叠加 ---------------- */

.feature-stage {
    padding: 0 0 6px;
}

.stage-grid {
    display: grid;
    grid-template-areas: "hero" "dossier" "controls" "story";
    gap: 0;
}

.stage-hero {
    grid-area: hero;
    position: relative;
    isolation: isolate;
    padding: 26px 15px 20px;
    text-align: center;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: -18% -12%;
    z-index: -2;
    background-image: var(--art);
    background-size: cover;
    background-position: center 22%;
    filter: blur(34px) saturate(1.35) brightness(1.12);
    opacity: .5;
    transform: scale(1.15);
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .84) 58%, var(--ink) 100%);
}

.hero-plate {
    position: relative;
    width: 148px;
    margin: 0 auto 14px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel-alt) url("../img/load.gif") center center / 44px 44px no-repeat;
    box-shadow: 0 14px 30px rgba(24, 32, 56, .28), 0 0 0 4px rgba(255, 255, 255, .9);
}

.plate-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plate-seal {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 6px 5px;
    font-size: 11px;
    font-weight: 700;
    color: #ffd489;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
}

.plate-heading {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--text);
    text-shadow: 0 1px 2px rgba(255, 255, 255, .85);
}

.plate-alias {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.chip {
    padding: 3px 10px;
    font-size: 12px;
    color: #4d5464;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--seam);
    border-radius: 999px;
}

.chip--flare {
    color: var(--gold-ink);
    font-weight: 700;
    background: var(--gold-face);
    border-color: transparent;
}

/* 档案栏：两列自适应，非表格非 ul */

.stage-dossier {
    grid-area: dossier;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 15px;
    background: var(--seam);
    border: 1px solid var(--seam);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(24, 32, 56, .06);
}

.dossier-row {
    display: flex;
    gap: 6px;
    padding: 9px 11px;
    font-size: 12.5px;
    background: var(--panel);
}

.dossier-row--wide {
    grid-column: 1 / -1;
}

.dossier-key {
    flex: 0 0 auto;
    color: var(--faint);
}

.dossier-val {
    flex: 1 1 auto;
    min-width: 0;
    color: #414959;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dossier-val a {
    color: var(--gold);
}

.dossier-row--wide .dossier-val {
    white-space: normal;
}

/* 操作条 */

.stage-controls {
    grid-area: controls;
    display: flex;
    gap: 10px;
    padding: 14px 15px 4px;
}

.control-primary,
.control-ghost {
    flex: 1 1 0;
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
    transition: transform .2s, opacity .25s;
}

.control-primary {
    color: var(--gold-ink);
    background: var(--gold-face);
    box-shadow: 0 6px 16px rgba(232, 168, 60, .35);
}

.control-ghost {
    color: var(--gold);
    background: #fff8ea;
    border: 1px solid #f0d9a8;
}

.control-primary:active,
.control-ghost:active {
    transform: translateY(1px);
}

/* 剧情正文 */

.stage-story {
    grid-area: story;
    padding: 18px 15px 6px;
}

.story-heading {
    position: relative;
    margin-bottom: 10px;
    padding-left: 12px;
    font-size: 15px;
    font-weight: 800;
}

.story-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 14px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: linear-gradient(180deg, var(--violet), #f2ad2e);
}

.story-para {
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.85;
    color: #545c6d;
}

.story-para strong {
    color: var(--text);
}

/* ---------------- 链接云 ---------------- */

.linkweb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 4px 15px 20px;
}

.linkweb-item {
    padding: 5px 10px;
    font-size: 12px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--seam);
    border-radius: var(--radius-sm);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linkweb-item:hover {
    color: var(--gold);
    background: #fff8ea;
    border-color: #f0d9a8;
}

/* ---------------- 页脚 ---------------- */

.site-base {
    margin-top: 18px;
    padding: 20px 15px 26px;
    background: var(--panel);
    border-top: 1px solid var(--seam);
}

.base-toolbar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.base-return {
    padding: 8px 22px;
    font-size: 13px;
    color: var(--gold);
    border: 1px solid #f0d9a8;
    background: #fff8ea;
    border-radius: 999px;
}

.ally-zone {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--seam);
    text-align: center;
}

.ally-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.ally-zone a {
    display: inline-block;
    margin: 0 8px;
    font-size: 12px;
    color: var(--muted);
}

.ally-zone a:hover {
    color: var(--gold);
}

.base-notice {
    font-size: 11.5px;
    line-height: 1.85;
    color: var(--faint);
    text-align: center;
}

.base-credit {
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--faint);
    text-align: center;
}

.base-credit a {
    margin: 0 5px;
}

.base-credit a:hover {
    color: var(--gold);
}

/* 悬浮回顶 */

.ascend-key {
    position: fixed;
    right: 14px;
    bottom: 78px;
    z-index: 90;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gold-ink);
    background: var(--gold-face);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(24, 32, 56, .25);
}

.ascend-key.is-lifted {
    display: flex;
}

.ascend-key svg {
    display: block;
}

/* 轻提示气泡 */

.flash-bubble {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 999;
    transform: translate(-50%, 12px);
    padding: 9px 18px;
    font-size: 13px;
    color: #fff;
    background: rgba(28, 32, 41, .92);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s, transform .28s;
}

.flash-bubble.is-open {
    opacity: 1;
    transform: translate(-50%, 0);
}

img[data-src] {
    min-height: 60px;
}
