
/* ==========================================================
   App Download Hero
   文件：assets/css/hero.css

   设计目标：
   1. 独立 CSS 命名空间，不污染全局样式。
   2. 深蓝金融科技风格。
   3. 突出品牌 Logo、H1 和 App 下载 CTA。
   4. 新增查看返佣详情 CTA。
   5. 保留 FxPro 返佣 CTA。
   6. 桌面、平板、手机全面响应式适配。
   7. 支持键盘焦点、减少动态效果及高对比度模式。
   8. 兼容 WordPress 常见主题样式。
   ========================================================== */


/* ==========================================================
   01. Hero 全局设计变量
   ========================================================== */

.article-app-download__hero {

    --hero-bg-start: #0b1730;
    --hero-bg-end: #122d50;

    --hero-text: #ffffff;
    --hero-text-secondary: #d5e2f2;
    --hero-text-muted: #a9bdd5;

    --hero-accent: #58b5ff;
    --hero-accent-hover: #80c7ff;

    --hero-cta-text: #09213d;
    --hero-cta-bg: #8bd0ff;
    --hero-cta-bg-hover: #b2e1ff;

    --hero-border: rgba(255, 255, 255, 0.14);

    --hero-surface: rgba(255, 255, 255, 0.07);
    --hero-surface-hover: rgba(255, 255, 255, 0.13);

    --hero-detail-border: rgba(88, 181, 255, 0.65);
    --hero-detail-bg: rgba(44, 139, 220, 0.13);
    --hero-detail-bg-hover: rgba(44, 139, 220, 0.25);

    --hero-radius: 18px;
    --hero-radius-small: 12px;

    --hero-content-width: 920px;

    --hero-transition: 220ms ease;

    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    color: var(--hero-text);

    background:
        radial-gradient(
            ellipse at 12% 8%,
            rgba(56, 151, 230, 0.23),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 92% 88%,
            rgba(40, 110, 190, 0.22),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--hero-bg-start) 0%,
            #102440 52%,
            var(--hero-bg-end) 100%
        );

    padding: clamp(48px, 7vw, 88px) 24px;

    overflow: hidden;
}


/* Hero 内部统一盒模型 */

.article-app-download__hero *,
.article-app-download__hero *::before,
.article-app-download__hero *::after {
    box-sizing: border-box;
}


/* ==========================================================
   02. 背景装饰
   ========================================================== */

.article-app-download__hero::before {

    content: "";

    position: absolute;
    z-index: -1;

    top: -180px;
    right: -130px;

    width: 460px;
    height: 460px;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 50%;

    box-shadow:
        0 0 0 40px rgba(255, 255, 255, 0.018),
        0 0 0 80px rgba(255, 255, 255, 0.014),
        0 0 0 120px rgba(255, 255, 255, 0.01);

    pointer-events: none;
}


.article-app-download__hero::after {

    content: "";

    position: absolute;
    z-index: -1;

    left: -120px;
    bottom: -230px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(56, 151, 230, 0.09);

    filter: blur(70px);

    pointer-events: none;
}


/* ==========================================================
   03. Hero 主体布局
   ========================================================== */

.article-app-download__hero-inner {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: clamp(32px, 6vw, 76px);

    width: 100%;
    max-width: var(--hero-content-width);

    margin: 0 auto;

    position: relative;
    z-index: 1;

    min-width: 0;
}


/* ==========================================================
   04. 品牌 Logo 区域
   ========================================================== */

.article-app-download__hero-brand {

    display: flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;
}


/* Logo 容器 */

.article-app-download__hero-brand-link {

    display: flex;

    align-items: center;
    justify-content: center;

    width: clamp(112px, 14vw, 156px);
    height: clamp(112px, 14vw, 156px);

    padding: 20px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.65);

    border-radius: 26px;

    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.23),
        0 2px 8px rgba(0, 0, 0, 0.08);

    text-decoration: none;

    transition:
        transform var(--hero-transition),
        box-shadow var(--hero-transition),
        border-color var(--hero-transition);
}


/* Logo 悬停 */

.article-app-download__hero-brand-link:hover {

    transform: translateY(-4px);

    border-color: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Logo 图片 */

.article-app-download__hero-brand-image {

    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;
}


/* Logo 文字备用 */

.article-app-download__hero-brand-fallback {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #12365c;

    font-size: clamp(18px, 2.2vw, 24px);

    font-weight: 800;

    line-height: 1.2;

    text-align: center;

    overflow-wrap: anywhere;
}


/* Logo 键盘焦点 */

.article-app-download__hero-brand-link:focus-visible {

    outline: 3px solid var(--hero-accent);

    outline-offset: 6px;
}


/* ==========================================================
   05. 标题及内容区域
   ========================================================== */

.article-app-download__hero-content {

    flex: 1 1 auto;

    min-width: 0;

    max-width: 700px;
}


/* 页面类型说明 */

.article-app-download__hero-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin: 0 0 17px;

    color: var(--hero-accent);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;

    letter-spacing: 0.08em;
}


/* 类型说明装饰点 */

.article-app-download__hero-eyebrow::before {

    content: "";

    display: inline-block;

    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--hero-accent);

    box-shadow: 0 0 12px rgba(88, 181, 255, 0.7);
}


/* ==========================================================
   06. H1 主标题
   ========================================================== */

.article-app-download__hero-title {

    margin: 0;

    max-width: 780px;

    color: var(--hero-text);

    font-size: clamp(30px, 4.2vw, 48px);

    font-weight: 800;

    line-height: 1.22;

    letter-spacing: -0.035em;

    text-wrap: balance;

    overflow-wrap: anywhere;
}


/* ==========================================================
   07. Hero 描述
   ========================================================== */

.article-app-download__hero-description {

    max-width: 680px;

    margin: 20px 0 0;

    color: var(--hero-text-secondary);

    font-size: clamp(15px, 1.5vw, 17px);

    font-weight: 400;

    line-height: 1.85;

    overflow-wrap: anywhere;
}


/* ==========================================================
   08. 内容核验日期
   ========================================================== */

.article-app-download__hero-updated {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 6px;

    margin: 18px 0 0;

    color: var(--hero-text-muted);

    font-size: 13px;

    line-height: 1.6;
}


/* 日期文字 */

.article-app-download__hero-updated time {

    color: #d8eaff;

    font-weight: 600;

    font-variant-numeric: tabular-nums;
}


/* ==========================================================
   09. CTA 按钮区域
   ========================================================== */

.article-app-download__hero-actions {

    display: flex;

    flex-wrap: wrap;

    align-items: flex-start;

    gap: 14px;

    margin-top: 30px;

    min-width: 0;
}


/* ==========================================================
   10. 主下载 CTA 外层
   ========================================================== */

.article-app-download__hero-page-cta-wrap {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    min-width: 0;
    max-width: 100%;
}


/* ==========================================================
   11. 主下载 CTA
   视觉级别：一级
   ========================================================== */

.article-app-download__hero-page-cta {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 50px;

    max-width: 100%;

    padding: 13px 23px;

    color: var(--hero-cta-text);

    background: linear-gradient(
        135deg,
        #a8ddff 0%,
        var(--hero-cta-bg) 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: var(--hero-radius-small);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    font-size: 15px;

    font-weight: 750;

    line-height: 1.5;

    text-align: center;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition:
        background var(--hero-transition),
        box-shadow var(--hero-transition),
        transform var(--hero-transition),
        border-color var(--hero-transition);
}


/* 主 CTA 悬停 */

.article-app-download__hero-page-cta:hover {

    color: var(--hero-cta-text);

    background: var(--hero-cta-bg-hover);

    border-color: rgba(255, 255, 255, 0.7);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);

    transform: translateY(-2px);
}


/* 主 CTA 箭头 */

.article-app-download__hero-page-cta-arrow {

    display: inline-block;

    flex: 0 0 auto;

    font-size: 19px;

    font-weight: 500;

    line-height: 1;

    transition: transform var(--hero-transition);
}


/* 主 CTA 箭头悬停 */

.article-app-download__hero-page-cta:hover
.article-app-download__hero-page-cta-arrow {

    transform: translateX(4px);
}


/* 主 CTA 焦点 */

.article-app-download__hero-page-cta:focus-visible {

    outline: 3px solid #ffffff;

    outline-offset: 4px;

    box-shadow: 0 0 0 7px rgba(88, 181, 255, 0.4);
}


/* ==========================================================
   12. 次级 CTA 通用样式

   对应：
   .article-app-download__hero-fxpro-cta

   用于：
   1. 查看返佣详情
   2. FxPro 返佣开户链接
   ========================================================== */

.article-app-download__hero-fxpro-cta {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    min-height: 50px;

    max-width: 100%;

    padding: 13px 21px;

    color: #ffffff;

    background: var(--hero-surface);

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: var(--hero-radius-small);

    font-size: 15px;

    font-weight: 700;

    line-height: 1.5;

    text-align: center;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition:
        background var(--hero-transition),
        border-color var(--hero-transition),
        box-shadow var(--hero-transition),
        transform var(--hero-transition);
}


/* 次级 CTA 悬停 */

.article-app-download__hero-fxpro-cta:hover {

    color: #ffffff;

    background: var(--hero-surface-hover);

    border-color: rgba(255, 255, 255, 0.65);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);

    transform: translateY(-2px);
}


/* 次级 CTA 箭头 */

.article-app-download__hero-fxpro-cta-arrow {

    display: inline-block;

    flex: 0 0 auto;

    font-size: 19px;

    line-height: 1;

    transition: transform var(--hero-transition);
}


/* 次级 CTA 箭头悬停 */

.article-app-download__hero-fxpro-cta:hover
.article-app-download__hero-fxpro-cta-arrow {

    transform: translateX(4px);
}


/* 次级 CTA 焦点 */

.article-app-download__hero-fxpro-cta:focus-visible {

    outline: 3px solid var(--hero-accent);

    outline-offset: 4px;
}


/* ==========================================================
   13. 查看返佣详情 CTA 专属样式

   对应：
   .article-app-download__hero-rebate-detail-cta

   视觉级别：二级

   与 FxPro CTA 区分：
   使用蓝色描边和蓝色透明背景。
   ========================================================== */

.article-app-download__hero-rebate-detail-cta {

    color: #d9edff;

    background: var(--hero-detail-bg);

    border: 1px solid var(--hero-detail-border);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


/* 返佣详情 CTA 悬停 */

.article-app-download__hero-rebate-detail-cta:hover {

    color: #ffffff;

    background: var(--hero-detail-bg-hover);

    border-color: #80c7ff;

    box-shadow:
        0 8px 22px rgba(31, 133, 220, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transform: translateY(-2px);
}


/* 返佣详情 CTA 焦点 */

.article-app-download__hero-rebate-detail-cta:focus-visible {

    outline: 3px solid #80c7ff;

    outline-offset: 4px;
}


/* 返佣详情 CTA 箭头 */

.article-app-download__hero-rebate-detail-cta
.article-app-download__hero-fxpro-cta-arrow {

    color: #80c7ff;
}


/* 返佣详情 CTA 箭头悬停 */

.article-app-download__hero-rebate-detail-cta:hover
.article-app-download__hero-fxpro-cta-arrow {

    color: #ffffff;
}


/* ==========================================================
   14. 第三方网站提示
   ========================================================== */

.article-app-download__hero-external-note {

    margin: 8px 0 0;

    color: var(--hero-text-muted);

    font-size: 12px;

    line-height: 1.6;
}


/* ==========================================================
   15. 平板适配
   ========================================================== */

@media (max-width: 1024px) {

    .article-app-download__hero {

        padding: 58px 24px;
    }

    .article-app-download__hero-inner {

        gap: 38px;
    }

    .article-app-download__hero-brand-link {

        width: 116px;
        height: 116px;

        padding: 17px;

        border-radius: 22px;
    }

    .article-app-download__hero-title {

        font-size: clamp(30px, 4vw, 40px);
    }

    .article-app-download__hero-actions {

        gap: 12px;
    }

}


/* ==========================================================
   16. 手机横屏及窄屏平板
   ========================================================== */

@media (max-width: 767px) {

    .article-app-download__hero {

        padding: 48px 20px;
    }

    .article-app-download__hero-inner {

        flex-direction: column;

        align-items: center;

        gap: 26px;

        text-align: center;
    }

    .article-app-download__hero-brand {

        width: 100%;
    }

    .article-app-download__hero-brand-link {

        width: 108px;
        height: 108px;

        padding: 16px;

        border-radius: 20px;
    }

    .article-app-download__hero-content {

        width: 100%;

        max-width: 620px;
    }

    .article-app-download__hero-eyebrow {

        justify-content: center;

        margin-bottom: 13px;

        font-size: 12px;
    }

    .article-app-download__hero-title {

        max-width: 100%;

        font-size: clamp(28px, 6vw, 38px);

        line-height: 1.3;

        letter-spacing: -0.025em;
    }

    .article-app-download__hero-description {

        margin-top: 16px;

        font-size: 15px;

        line-height: 1.8;
    }

    .article-app-download__hero-updated {

        justify-content: center;

        margin-top: 15px;
    }

    .article-app-download__hero-actions {

        justify-content: center;

        align-items: center;

        margin-top: 25px;

        gap: 12px;
    }

    .article-app-download__hero-page-cta-wrap {

        align-items: center;

        width: 100%;
    }

    .article-app-download__hero-page-cta {

        justify-content: center;

        width: min(100%, 420px);

        min-height: 50px;
    }

    .article-app-download__hero-fxpro-cta {

        justify-content: center;
    }

    .article-app-download__hero-external-note {

        text-align: center;
    }

}


/* ==========================================================
   17. 小屏手机适配
   ========================================================== */

@media (max-width: 480px) {

    .article-app-download__hero {

        padding: 38px 16px 42px;
    }

    .article-app-download__hero::before {

        top: -210px;

        right: -230px;

        width: 360px;
        height: 360px;
    }

    .article-app-download__hero::after {

        left: -180px;

        bottom: -240px;

        width: 320px;
        height: 320px;
    }

    .article-app-download__hero-inner {

        gap: 22px;
    }

    .article-app-download__hero-brand-link {

        width: 92px;
        height: 92px;

        padding: 14px;

        border-radius: 17px;
    }

    .article-app-download__hero-brand-fallback {

        font-size: 17px;
    }

    .article-app-download__hero-eyebrow {

        margin-bottom: 11px;

        font-size: 11px;

        letter-spacing: 0.045em;
    }

    .article-app-download__hero-title {

        font-size: clamp(25px, 7vw, 32px);

        line-height: 1.32;
    }

    .article-app-download__hero-description {

        margin-top: 14px;

        font-size: 14px;

        line-height: 1.8;
    }

    .article-app-download__hero-updated {

        gap: 4px;

        font-size: 12px;
    }

    /* 三个 CTA 在手机端统一纵向排列 */

    .article-app-download__hero-actions {

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        gap: 13px;

        margin-top: 23px;
    }

    .article-app-download__hero-page-cta-wrap {

        width: 100%;
    }

    .article-app-download__hero-page-cta {

        width: 100%;

        min-height: 48px;

        padding: 12px 15px;

        font-size: 14px;
    }

    .article-app-download__hero-fxpro-cta {

        width: 100%;

        min-height: 46px;

        padding: 11px 15px;

        font-size: 14px;
    }

    .article-app-download__hero-rebate-detail-cta {

        width: 100%;
    }

}


/* ==========================================================
   18. 超窄屏幕适配
   ========================================================== */

@media (max-width: 360px) {

    .article-app-download__hero {

        padding-right: 13px;

        padding-left: 13px;
    }

    .article-app-download__hero-title {

        font-size: 25px;
    }

    .article-app-download__hero-description {

        font-size: 13px;
    }

    .article-app-download__hero-page-cta {

        font-size: 13px;

        gap: 8px;
    }

    .article-app-download__hero-fxpro-cta {

        font-size: 13px;

        gap: 8px;
    }

}


/* ==========================================================
   19. 减少动态效果
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .article-app-download__hero *,
    .article-app-download__hero *::before,
    .article-app-download__hero *::after {

        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .article-app-download__hero-brand-link:hover,
    .article-app-download__hero-page-cta:hover,
    .article-app-download__hero-fxpro-cta:hover {

        transform: none;
    }

}


/* ==========================================================
   20. 高对比度模式
   ========================================================== */

@media (forced-colors: active) {

    .article-app-download__hero {

        border: 1px solid CanvasText;
    }

    .article-app-download__hero-brand-link,
    .article-app-download__hero-page-cta,
    .article-app-download__hero-fxpro-cta {

        border: 1px solid ButtonText;
    }

    .article-app-download__hero-page-cta,
    .article-app-download__hero-fxpro-cta {

        forced-color-adjust: auto;
    }

}


/* ==========================================================
   21. WordPress 主题样式冲突防护
   ========================================================== */

.article-app-download__hero img {

    vertical-align: middle;
}

.article-app-download__hero a {

    text-decoration-thickness: from-font;

    text-underline-offset: 3px;
}

.article-app-download__hero p {

    overflow-wrap: break-word;
}

.article-app-download__hero h1 {

    font-family: inherit;
}


/* ==========================================================
   Hero CSS 结束
   ========================================================== */
