/* 黄果短剧 官方首页纯净样式表 | 场景化推广与 SEO 优化版 */
:root {
    color-scheme: dark;
    --header-height: 104px;
    --gold: #f8ca06;
    --gold-deep: #c7822f;
    --page-bg: #0b0b0b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body.hgdj-landing-page {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: #fff;
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

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

/* 顶部跑马福利公告栏 */
.top-notice-bar {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 16px;
    font-size: 13px;
    color: #ffd21c;
    background: linear-gradient(90deg, #120e03, #2a2007 50%, #120e03);
    border-bottom: 1px solid rgba(248, 202, 6, 0.25);
    text-align: center;
}

.top-notice-bar .badge {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #0b0b0b;
    background: #ffd21c;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.top-notice-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
    transition: opacity 160ms ease;
}

.top-notice-bar a:hover {
    opacity: 0.85;
}

/* 顶部导航头 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(11, 11, 11, 0.96);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: grid;
    grid-template-columns: 248px minmax(540px, 1fr) 235px;
    align-items: center;
    width: min(100% - 80px, 1414px);
    height: 100%;
    margin: 0 auto;
    gap: 48px;
}

.brand-link {
    display: flex;
    align-items: center;
    width: 248px;
    height: 72px;
}

.brand-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-width: 0;
    height: 100%;
}

.section-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 0 17px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.section-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    border-radius: 5px;
    content: "";
    opacity: 0;
    background: var(--gold);
    transform: scaleX(0.45);
    transition: opacity 160ms ease, transform 160ms ease;
}

.section-nav a:hover {
    color: var(--gold);
}

.section-nav a.is-active {
    color: var(--gold);
    font-weight: 700;
}

.section-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* 导航头高转化 CTA 按钮 */
.header-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 235px;
    height: 64px;
    gap: 12px;
    border-radius: 14px;
    color: #050505;
    background: linear-gradient(135deg, #ffd21c, #ff9800);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.35);
    transition: transform 160ms ease, box-shadow 160ms ease;
    cursor: pointer;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 152, 0, 0.35);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 210, 28, 0.65);
        transform: translateY(-2px);
    }
}

.header-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 210, 28, 0.7);
}

.download-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffd21c;
    background: #050505;
    font-size: 24px;
    line-height: 1;
}

/* 核心展示区画卷 */
.landing-shell,
.visual-section {
    position: relative;
    width: 100%;
}

.visual-section {
    scroll-margin-top: var(--header-height);
    overflow: hidden;
    background: #000;
}

.section-art,
.section-art picture,
.section-art img {
    width: 100%;
}

.section-art img {
    height: auto;
}

.mobile-only {
    display: none;
}

/* 交互热区按钮 */
.hit-area {
    position: absolute;
    z-index: 5;
    display: block;
    border-radius: 18px;
    color: transparent;
    text-indent: -9999px;
    cursor: pointer;
}

.hit-area:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.home-download {
    left: 51.615%;
    top: 79.655%;
    width: 16.458%;
    height: 11.097%;
}

.home-explore {
    left: 70.938%;
    top: 79.655%;
    width: 16.563%;
    height: 11.097%;
    border-radius: 50px;
    background: linear-gradient(180deg, #18140c, #0a0805);
    border: 1.5px solid #8e6a2b;
    box-shadow: inset 0 1px 2px rgba(255, 215, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #f5ba56;
    font-size: clamp(14px, 1.35vw, 24px);
    font-weight: 700;
    text-indent: 0;
    text-decoration: none;
    z-index: 10;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-explore:hover {
    transform: translateY(-2px);
    border-color: #ffd21c;
    box-shadow: inset 0 1px 2px rgba(255, 215, 0, 0.25), 0 6px 22px rgba(255, 210, 28, 0.35);
    color: #ffe082;
}

.home-explore .btn-play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(24px, 2.2vw, 42px);
    height: clamp(24px, 2.2vw, 42px);
    border-radius: 50%;
    background: #e8a838;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.home-explore .btn-play-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: clamp(5px, 0.48vw, 9px) 0 clamp(5px, 0.48vw, 9px) clamp(8px, 0.78vw, 15px);
    border-color: transparent transparent transparent #000;
    margin-left: 2px;
}

.home-explore .btn-label {
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.wishlist-action {
    left: 39.583%;
    top: 81.804%;
    width: 20.833%;
    height: 6.431%;
}

.creator-action {
    left: 14.063%;
    top: 62.207%;
    width: 20.833%;
    height: 8.789%;
}

/* 底部页脚 */
.site-footer {
    min-height: 265px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    background: #121211;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(430px, 1fr) repeat(3, 150px);
    width: min(100% - 80px, 1440px);
    min-height: 265px;
    margin: 0 auto;
    padding: 38px 0 30px;
    column-gap: 90px;
    row-gap: 0;
}

.footer-brand img {
    width: 190px;
    height: 44px;
    object-fit: contain;
}

.footer-tagline {
    margin: 14px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-addresses {
    display: grid;
    gap: 8px;
    font-size: 12px;
}

.footer-addresses a {
    color: #ffd21c;
    text-decoration: none;
    transition: opacity 160ms ease;
}

.footer-addresses a:hover {
    opacity: 0.8;
}

.footer-column h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    margin: 0 0 13px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-copyright {
    grid-column: 2 / -1;
    justify-self: end;
    align-self: end;
    margin-top: -22px;
    font-size: 12px;
}

/* 屏幕阅读辅助类 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 常驻极速悬浮挂件 (右下角) */
.speed-float-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(18, 18, 20, 0.94);
    border: 1px solid rgba(248, 202, 6, 0.4);
    border-radius: 50px;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(248, 202, 6, 0.2);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.speed-float-widget:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(248, 202, 6, 0.4);
    border-color: #ffd21c;
}

.speed-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.widget-info {
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd21c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.widget-btn {
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd21c, #f59e0b);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.widget-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #252528;
    border: 1px solid #444;
    color: #aaa;
    font-size: 11px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.widget-close:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

/* 通用全屏模态框与极速测速弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    overflow-y: auto;
    color: #222;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn 200ms ease;
}

.modal-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 测速弹窗专属科技卡片容器 */
.speed-modal-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #141417;
    border: 1px solid rgba(248, 202, 6, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(248, 202, 6, 0.15);
    color: #fff;
    overflow: hidden;
}

.speed-modal-card .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.speed-modal-card .title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #ffd21c;
}

.modal-close-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    color: #aaa;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.modal-close-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.speed-modal-body {
    padding: 24px;
}

.speed-intro-tip {
    padding: 12px 16px;
    background: rgba(248, 202, 6, 0.08);
    border-left: 4px solid #ffd21c;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #e5e5e5;
    margin-bottom: 20px;
}

/* 节点状态列表 */
.node-list {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.node-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: border-color 160ms ease, background 160ms ease;
}

.node-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(248, 202, 6, 0.3);
}

.node-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.node-flag {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    min-width: 32px;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.node-meta h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.node-meta p {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.node-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.node-ping {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    font-family: monospace;
}

.node-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 弹窗核心注册行动按钮 */
.speed-modal-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-speed-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd21c, #ff9800);
    color: #000;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(255, 152, 0, 0.4);
    transition: transform 160ms ease, box-shadow 160ms ease;
    cursor: pointer;
}

.btn-speed-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 210, 28, 0.6);
}

.cta-subtext {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* 原有教程弹窗兼容 */
.tutorial-modal-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 20px;
    color: #222;
    overflow: hidden;
}

.tutorial-modal-card .header {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.modal-back-btn {
    width: 56px;
    height: 56px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-back-btn::before {
    color: #222;
    content: "‹";
    font-size: 42px;
    line-height: 1;
}

.tutorial-modal-card .title {
    text-align: center;
}

.tutorial-modal-card .title img {
    max-width: 220px;
    margin: 0 auto;
}

.tutorial-modal-card .content {
    padding: 20px;
}

.platform-item {
    display: inline-block;
    width: calc(33.333% - 12px);
    margin: 6px;
    cursor: pointer;
    transition: transform 160ms ease;
}

.platform-item:hover {
    transform: translateY(-2px);
}

.modal-common-img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 8px;
}

/* 响应式平板尺寸 */
@media (max-width: 1180px) and (min-width: 769px) {
    .header-inner {
        grid-template-columns: 200px 1fr 200px;
        width: calc(100% - 40px);
        gap: 24px;
    }

    .brand-link {
        width: 200px;
    }

    .section-nav {
        gap: 20px;
    }

    .section-nav a {
        font-size: 19px;
    }

    .header-download {
        width: 200px;
        height: 56px;
        font-size: 18px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    :root {
        --header-height: 58px;
    }

    .top-notice-bar {
        font-size: 11px;
        padding: 6px 10px;
        gap: 6px;
    }

    .site-header {
        position: relative;
        height: 58px;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 12px;
    }

    .brand-link {
        width: 118px;
        height: 40px;
    }

    .header-download {
        width: 132px;
        height: 38px;
        gap: 6px;
        border-radius: 10px;
        font-size: 14px;
    }

    .download-symbol {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .section-nav {
        position: absolute;
        top: 58px;
        right: 0;
        left: 0;
        z-index: 60;
        justify-content: flex-start;
        height: 52px;
        gap: 22px;
        padding: 0 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        background: rgba(7, 7, 7, 0.9);
        backdrop-filter: blur(10px);
    }

    .section-nav::-webkit-scrollbar {
        display: none;
    }

    .section-nav a {
        padding: 14px 0 12px;
        font-size: 15px;
    }

    .section-nav a::after {
        height: 3px;
    }

    .visual-section {
        scroll-margin-top: 0;
    }

    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .home-download {
        left: 3.333%;
        top: 91.013%;
        width: 45.333%;
        height: 7.568%;
    }

    .home-explore {
        left: 51.333%;
        top: 91.013%;
        width: 45.333%;
        height: 7.568%;
        border-radius: 50px;
        gap: 6px;
        font-size: 13px;
        border-width: 1px;
    }

    .home-explore .btn-play-circle {
        width: 20px;
        height: 20px;
    }

    .home-explore .btn-play-triangle {
        border-width: 4px 0 4px 7px;
        margin-left: 1px;
    }

    .wishlist-action {
        left: 12.933%;
        top: 87.482%;
        width: 74.267%;
        height: 12.518%;
    }

    .mobile-creator-art,
    .mobile-about-art {
        position: relative;
        width: 100%;
    }

    .mobile-creator-art > img:first-child,
    .mobile-about-art > img:first-child {
        width: 100%;
        height: auto;
    }

    .mobile-creator-copy {
        position: absolute;
        left: 6.533%;
        top: 13.201%;
        width: 56.933%;
        height: auto;
    }

    .creator-action {
        left: 7.733%;
        top: 58.911%;
        width: 37.333%;
        height: 9.901%;
    }

    .mobile-about-content {
        position: absolute;
        left: 18.533%;
        top: 14.917%;
        width: 68.667%;
        height: auto;
    }

    .site-footer {
        min-height: 263px;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        min-height: 263px;
        padding: 24px 12px 18px;
        gap: 18px 10px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand img {
        width: 124px;
        height: 42px;
    }

    .footer-tagline {
        margin: 8px 0 0;
        font-size: 12px;
    }

    .footer-addresses {
        display: none;
    }

    .footer-column h2,
    .footer-column a {
        font-size: 12px;
    }

    .footer-column h2 {
        margin-bottom: 12px;
    }

    .footer-column a {
        margin-bottom: 9px;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        justify-self: center;
        margin: 0;
        font-size: 11px;
    }

    .speed-float-widget {
        bottom: 18px;
        right: 14px;
        left: 14px;
        border-radius: 16px;
        justify-content: space-between;
    }

    .platform-item {
        width: calc(50% - 12px);
    }
}

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