/* ====== 全局重置与变量 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --bg-dark: #0f1115;
    --bg-card: #1e2128;
    --bg-tint: #16181d;
    --text-main: #ffffff;
    --text-sub: #a0a0a0;
    --accent: #ff6b00;
    --accent-hover: #e05e00;
    --border-color: #2a2d35;
    --radius: 12px;
    --max-width: 1200px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.ref-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== 顶部导航 ====== */
.ref-topbar {
    background-color: rgba(15, 17, 21, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
}

.ref-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.ref-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.ref-nav {
    display: flex;
    gap: 28px;
}

.ref-nav a {
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 500;
}

.ref-nav a:hover {
    color: #fff;
}

.ref-download {
    background-color: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.ref-download:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.ref-download--small {
    padding: 8px 20px;
    font-size: 14px;
}

.ref-outline {
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    background: transparent;
}

.ref-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ref-outline--light {
    border-color: rgba(255,255,255,0.2);
}

.ref-outline--light:hover {
    border-color: var(--accent);
}

/* ====== Hero 区域 ====== */
.ref-hero {
    padding: 60px 0 40px;
}

.ref-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.ref-engine-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.ref-hero-copy h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #ffb380 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ref-hero-kicker {
    font-size: 20px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.ref-hero-desc {
    color: var(--text-sub);
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 540px;
}

.ref-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.ref-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.ref-tags li {
    background: var(--bg-card);
    color: var(--text-sub);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.ref-stats {
    display: flex;
    gap: 30px;
}

.ref-stats > div {
    display: flex;
    flex-direction: column;
}

.ref-stats b {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.ref-stats span {
    font-size: 14px;
    color: var(--text-sub);
}

.ref-stats small {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Hero 展示图 */
.ref-showcase {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ref-orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 107, 0, 0.2);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ref-poster {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s;
}

.ref-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-poster--left {
    width: 140px;
    height: 200px;
    left: 20px;
    top: 40px;
    transform: rotate(-8deg);
    z-index: 1;
}

.ref-poster--main {
    width: 180px;
    height: 260px;
    z-index: 2;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

.ref-poster--right {
    width: 140px;
    height: 200px;
    right: 20px;
    bottom: 40px;
    transform: rotate(8deg);
    z-index: 1;
}

.ref-showcase:hover .ref-poster--left {
    transform: rotate(-12deg) translateY(-10px);
}
.ref-showcase:hover .ref-poster--right {
    transform: rotate(12deg) translateY(10px);
}

.ref-app-chip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 33, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 20px 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    white-space: nowrap;
}

.ref-app-chip img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.ref-app-chip span {
    font-weight: 700;
    font-size: 15px;
}

.ref-app-chip small {
    font-size: 12px;
    color: var(--text-sub);
    display: block;
    line-height: 1;
}

/* ====== 分类快捷入口 ====== */
.ref-category {
    padding: 20px 0 40px;
}

.ref-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ref-category-grid a {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: 0.3s;
}

.ref-category-grid a:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: #252932;
}

.ref-category-grid b {
    font-size: 24px;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.ref-category-grid span {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ref-category-grid strong {
    font-size: 16px;
    color: #fff;
}

.ref-category-grid small {
    font-size: 13px;
    color: var(--text-sub);
}

.ref-category-grid em {
    font-size: 13px;
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* ====== 通用区块 ====== */
.ref-section {
    padding: 60px 0;
}

.ref-section--tint {
    background: var(--bg-tint);
}

.ref-section--dark {
    background: #0a0b0e;
}

.ref-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

.ref-eyebrow {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ref-section-head h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ref-section-head p {
    color: var(--text-sub);
    font-size: 15px;
    max-width: 600px;
}

.ref-text-link {
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ref-text-link:hover {
    color: var(--accent);
}

/* ====== 为什么选择 ====== */
.ref-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ref-why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: 0.3s;
}

.ref-why-card:hover {
    border-color: rgba(255, 107, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.ref-why-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(255, 107, 0, 0.1);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 12px;
    color: var(--accent);
}

.ref-why-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #fff;
}

.ref-why-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ====== 热门推荐：排行榜形式 ====== */
.ref-rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ref-rank-list li {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 20px;
    gap: 16px;
    transition: 0.3s;
}

.ref-rank-list li:hover {
    border-color: rgba(255, 107, 0, 0.4);
    background: #252932;
}

.ref-rank-list strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    width: 36px;
    flex-shrink: 0;
}

.ref-rank-info {
    flex: 1;
    min-width: 0;
}

.ref-rank-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.ref-rank-info p {
    font-size: 13px;
    color: var(--text-sub);
}

.ref-rank-tag {
    background: rgba(255, 107, 0, 0.15);
    color: var(--accent);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ref-rank-score {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.ref-rank-time {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* ====== 精选片单 ====== */
.ref-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ref-list-feature {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.ref-list-feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.ref-list-feature img {
    width: 140px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.ref-list-feature div {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ref-list-feature span {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}

.ref-list-feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.ref-list-feature p {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 12px;
    line-height: 1.5;
}

.ref-list-feature small {
    font-size: 12px;
    color: #666;
}

/* ====== 剧场版/AI 区域 ====== */
.ref-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ref-ai-grid h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.ref-ai-grid p {
    color: var(--text-sub);
    margin-bottom: 24px;
    font-size: 15px;
}

.ref-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ref-steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ref-steps b {
    background: var(--accent);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ref-steps span {
    display: flex;
    flex-direction: column;
}

.ref-steps strong {
    font-size: 16px;
    margin-bottom: 2px;
}

.ref-steps small {
    font-size: 13px;
    color: var(--text-sub);
}

/* ====== 下载面板 ====== */
.ref-download-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid var(--border-color);
}

.ref-download-panel h2 {
    font-size: 30px;
    margin-bottom: 16px;
}

.ref-download-panel p {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 20px;
}

.ref-download-panel ul {
    margin-bottom: 28px;
}

.ref-download-panel ul li {
    font-size: 15px;
    color: #ddd;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ref-download-panel ul li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

.ref-qr {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
}

.ref-qr img {
    width: 160px;
    height: 160px;
}

.ref-qr small {
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

/* ====== FAQ ====== */
.ref-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ref-faq details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
}

.ref-faq details[open] {
    border-color: rgba(255, 107, 0, 0.3);
}

.ref-faq summary {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.ref-faq summary::-webkit-details-marker {
    display: none;
}

.ref-faq summary span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.ref-faq summary b {
    margin-left: auto;
    color: var(--accent);
    font-size: 18px;
    transition: 0.3s;
}

.ref-faq details[open] summary b {
    transform: rotate(45deg);
}

.ref-faq p {
    padding: 0 24px 20px 56px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
}

/* ====== 页脚 ====== */
.ref-footer {
    background: #0a0b0e;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.ref-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ref-footer-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ref-footer-brand img {
    width: 28px;
    height: 28px;
}

.ref-footer-brand p {
    color: var(--text-sub);
    font-size: 14px;
    max-width: 280px;
}

.ref-footer-grid h3 {
    font-size: 15px;
    margin-bottom: 16px;
    color: #fff;
}

.ref-footer-grid a {
    display: block;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.ref-footer-grid a:hover {
    color: var(--accent);
}

.ref-footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 13px;
    color: #666;
}

/* ====== 下载弹窗 ====== */
.hg-download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-download-modal[hidden] {
    display: none;
}

.hg-download-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.hg-download-modal__panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hg-download-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 24px;
    cursor: pointer;
}

.hg-download-modal__eyebrow {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hg-download-modal__panel h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.hg-download-modal__description {
    color: var(--text-sub);
    font-size: 14px;
    margin-bottom: 20px;
}

.hg-download-modal__label {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.hg-download-modal__copy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.hg-download-modal__url {
    flex: 1;
    background: #0f1115;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.hg-download-modal__copy {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
}

.hg-download-modal__status {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 20px;
}

.hg-download-modal__done {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.hg-download-modal__done:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ====== 响应式适配 ====== */
@media (max-width: 992px) {
    .ref-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ref-hero-desc {
        margin: 0 auto 28px;
    }
    .ref-actions {
        justify-content: center;
    }
    .ref-tags {
        justify-content: center;
    }
    .ref-stats {
        justify-content: center;
    }
    .ref-showcase {
        height: 320px;
    }
    .ref-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ref-ai-grid {
        grid-template-columns: 1fr;
    }
    .ref-download-panel {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }
    .ref-download-panel ul li {
        justify-content: center;
    }
    .ref-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ref-nav {
        display: none;
    }
    .ref-hero-copy h1 {
        font-size: 32px;
    }
    .ref-category-grid {
        grid-template-columns: 1fr;
    }
    .ref-list-grid {
        grid-template-columns: 1fr;
    }
    .ref-rank-list li {
        flex-wrap: wrap;
        padding: 12px;
    }
    .ref-rank-info {
        flex: 1 1 100%;
        margin-top: 8px;
    }
    .ref-rank-score,
    .ref-rank-time {
        margin-left: auto;
    }
    .ref-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ref-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .ref-download {
        width: 100%;
    }
    .ref-outline {
        width: 100%;
    }
    .ref-actions {
        flex-direction: column;
        width: 100%;
    }
}