
/* ============================================================
   Waihuibu - Deposit & Withdrawal Hero
   文件：hero.css
   主题：waihuibu

   适用 HTML：
   .deposit-page__hero

   对应模板：
   template-parts/deposit-withdrawal/hero.php

   设计目标：
   1. 与网站 design-system.css 保持视觉协调。
   2. 不完全依赖全局颜色和组件样式。
   3. 建立清晰的品牌、标题、说明、导航、CTA 层级。
   4. 两个 CTA 并排显示，区分主次按钮。
   5. 保证桌面、平板、手机端自适应。
   6. 提供文字对比度和键盘焦点状态。
   7. 所有选择器使用 deposit-page__ 前缀。
   8. 不影响网站其他页面。

   注意：
   本文件只负责 Hero 样式。
============================================================ */


/* ============================================================
   01. Hero 局部设计变量
============================================================ */

.deposit-page__hero {

    --hero-bg: #f1f6fc;

    --hero-blue: #12345b;

    --hero-blue-light: #1d5488;

    --hero-primary: #287fc5;

    --hero-primary-hover: #1769ac;

    --hero-text: #142b45;

    --hero-muted: #52677e;

    --hero-subtle: #647b93;

    --hero-border: #dce6f0;

    --hero-white: #ffffff;

    --hero-light-blue: #edf5fd;

    --hero-success: #16845b;

    --hero-radius: 18px;

    --hero-shadow:
        0 12px 35px rgba(22, 54, 86, 0.08);

    --hero-transition: 0.22s ease;

    position: relative;

    width: 100%;

    padding: 44px 0 42px;

    background:
        linear-gradient(
            180deg,
            #eaf2fb 0%,
            #f6f9fd 58%,
            #ffffff 100%
        );

    color: var(--hero-text);

    overflow: hidden;

}


/* ============================================================
   02. 背景装饰
============================================================ */

.deposit-page__hero::before {

    content: "";

    position: absolute;

    top: -180px;

    right: -120px;

    width: 480px;

    height: 480px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(56, 151, 230, 0.12) 0%,
            rgba(56, 151, 230, 0.035) 45%,
            transparent 72%
        );

    pointer-events: none;

}


.deposit-page__hero::after {

    content: "";

    position: absolute;

    bottom: -230px;

    left: -160px;

    width: 460px;

    height: 460px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(29, 84, 136, 0.07) 0%,
            transparent 70%
        );

    pointer-events: none;

}


/* 内容层级 */

.deposit-page__hero > .container {

    position: relative;

    z-index: 1;

}


/* ============================================================
   03. Hero 主卡片
============================================================ */

.deposit-page__hero-inner {

    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    align-items: center;

    gap: 38px;

    width: 100%;

    padding: 34px 38px;

    background: var(--hero-white);

    border: 1px solid rgba(214, 227, 241, 0.95);

    border-radius: var(--hero-radius);

    box-shadow: var(--hero-shadow);

}


/* ============================================================
   04. 品牌信息区域
============================================================ */

.deposit-page__hero-brand {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 17px;

    min-width: 0;

}


/* ============================================================
   05. 品牌 Logo
============================================================ */

.deposit-page__hero-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 86px;

    height: 86px;

    flex-shrink: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4ebf3;

    border-radius: 18px;

    box-shadow:
        0 5px 18px rgba(22, 54, 86, 0.07);

}


.deposit-page__hero-logo img {

    display: block;

    width: 100%;

    height: 100%;

    max-width: 100%;

    object-fit: contain;

    padding: 9px;

}


.deposit-page__hero-logo-text {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    padding: 8px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #173d68,
            #287fc5
        );

    font-size: 15px;

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: 0.3px;

    text-align: center;

    overflow-wrap: anywhere;

}


/* ============================================================
   06. 品牌文字
============================================================ */

.deposit-page__hero-brand-info {

    min-width: 0;

}


.deposit-page__hero-eyebrow {

    display: inline-flex;

    align-items: center;

    margin-bottom: 7px;

    color: #287fc5;

    font-size: 12px;

    line-height: 1.5;

    font-weight: 700;

    letter-spacing: 0.8px;

}


.deposit-page__hero-brand-name {

    color: #173653;

    font-size: 22px;

    line-height: 1.4;

    font-weight: 800;

    overflow-wrap: anywhere;

}


/* ============================================================
   07. Hero 主内容区域
============================================================ */

.deposit-page__hero-content {

    min-width: 0;

    width: 100%;

}


/* ============================================================
   08. H1 主标题
============================================================ */

.deposit-page__hero-title {

    margin: 0 0 15px;

    color: #142b45;

    font-size: clamp(26px, 2.5vw, 36px);

    line-height: 1.38;

    font-weight: 800;

    letter-spacing: -0.7px;

    overflow-wrap: anywhere;

    word-break: normal;

}


/* ============================================================
   09. 页面描述
============================================================ */

.deposit-page__hero-description {

    max-width: 850px;

    margin: 0 0 20px;

    color: #52677e;

    font-size: 15px;

    line-height: 1.9;

    font-weight: 400;

}


/* ============================================================
   10. 数据更新时间
============================================================ */

/*
 * 当前 hero.php 可以选择隐藏该模块。
 * 保留此样式，方便以后重新启用。
 */

.deposit-page__hero-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px 20px;

    margin-bottom: 23px;

    color: #647b93;

    font-size: 12px;

    line-height: 1.7;

}


.deposit-page__hero-meta-item {

    display: inline-flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    color: #425a73;

    font-weight: 600;

}


.deposit-page__hero-meta-dot {

    display: inline-block;

    width: 8px;

    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--hero-success);

    box-shadow:
        0 0 0 3px rgba(22, 132, 91, 0.12);

}


.deposit-page__hero-meta-item time {

    color: #173d68;

    font-weight: 700;

    font-variant-numeric: tabular-nums;

}


.deposit-page__hero-meta-note {

    color: #647b93;

}


/* ============================================================
   11. 快捷导航
============================================================ */

.deposit-page__hero-nav {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 24px;

}


.deposit-page__hero-nav-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-height: 42px;

    padding: 9px 15px;

    color: #24577f;

    background: #f1f7fd;

    border: 1px solid #d9e8f7;

    border-radius: 9px;

    font-size: 13px;

    line-height: 1.4;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color var(--hero-transition),
        background var(--hero-transition),
        border-color var(--hero-transition),
        transform var(--hero-transition),
        box-shadow var(--hero-transition);

}


.deposit-page__hero-nav-link span {

    display: inline-block;

    color: #287fc5;

    font-size: 15px;

    line-height: 1;

    transition: transform var(--hero-transition);

}


.deposit-page__hero-nav-link:hover {

    color: #174d7b;

    background: #e4f1fd;

    border-color: #9fc8ed;

    transform: translateY(-2px);

    box-shadow:
        0 5px 14px rgba(40, 127, 197, 0.09);

}


.deposit-page__hero-nav-link:hover span {

    transform: translateX(3px);

}


.deposit-page__hero-nav-link:focus-visible {

    outline: 3px solid rgba(40, 127, 197, 0.32);

    outline-offset: 3px;

}


/* ============================================================
   12. CTA 按钮区域
============================================================ */

/*
 * 桌面端：
 * 两个 CTA 横向排列。
 *
 * 开户按钮：主 CTA。
 * 详情按钮：次 CTA。
 *
 * 允许换行，避免内容过长造成溢出。
 */

.deposit-page__hero-cta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

}


/* ============================================================
   13. 主 CTA：开户链接
============================================================ */

.deposit-page__hero-cta-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    min-height: 46px;

    padding: 12px 22px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #287fc5 0%,
            #1769ac 100%
        );

    border: 1px solid #287fc5;

    border-radius: 10px;

    box-shadow:
        0 6px 16px rgba(23, 105, 172, 0.18);

    font-size: 14px;

    line-height: 1.4;

    font-weight: 800;

    text-decoration: none;

    transition:
        color var(--hero-transition),
        background var(--hero-transition),
        border-color var(--hero-transition),
        transform var(--hero-transition),
        box-shadow var(--hero-transition);

}


.deposit-page__hero-cta-btn span {

    display: inline-block;

    font-size: 16px;

    line-height: 1;

    transition: transform var(--hero-transition);

}


.deposit-page__hero-cta-btn:hover {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1769ac 0%,
            #12578f 100%
        );

    border-color: #1769ac;

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(23, 105, 172, 0.25);

}


.deposit-page__hero-cta-btn:hover span {

    transform: translate(2px, -2px);

}


.deposit-page__hero-cta-btn:focus-visible {

    outline: 3px solid rgba(40, 127, 197, 0.35);

    outline-offset: 4px;

}


/* ============================================================
   14. 次 CTA：返佣详情
============================================================ */

/*
 * 对应 hero.php：
 *
 * .deposit-page__hero-cta-btn--details
 *
 * 设计目的：
 * 与开户按钮保持统一尺寸。
 * 通过浅蓝底色和描边区分次级操作。
 */

.deposit-page__hero-cta-btn--details {

    color: #24577f;

    background: #edf5fd;

    border: 1px solid #c9dff2;

    box-shadow:
        0 4px 12px rgba(22, 54, 86, 0.04);

}


/* 详情按钮箭头 */

.deposit-page__hero-cta-btn--details span {

    color: #287fc5;

}


/* Hover */

.deposit-page__hero-cta-btn--details:hover {

    color: #174d7b;

    background: #e0effc;

    border-color: #8ebce5;

    box-shadow:
        0 7px 17px rgba(40, 127, 197, 0.11);

}


/* 详情按钮 Hover 箭头 */

.deposit-page__hero-cta-btn--details:hover span {

    transform: translateX(3px);

}


/* 键盘焦点 */

.deposit-page__hero-cta-btn--details:focus-visible {

    outline: 3px solid rgba(40, 127, 197, 0.35);

    outline-offset: 4px;

}


/* ============================================================
   15. 推广说明
============================================================ */

.deposit-page__hero-cta-note {

    display: inline-flex;

    align-items: center;

    color: #647b93;

    font-size: 12px;

    line-height: 1.6;

}


/* ============================================================
   16. 平板端
============================================================ */

@media (max-width: 1024px) {

    .deposit-page__hero {

        padding: 34px 0;

    }


    .deposit-page__hero-inner {

        grid-template-columns: 160px minmax(0, 1fr);

        gap: 25px;

        padding: 28px;

    }


    .deposit-page__hero-logo {

        width: 76px;

        height: 76px;

    }


    .deposit-page__hero-brand-name {

        font-size: 20px;

    }


    .deposit-page__hero-title {

        font-size: clamp(25px, 3vw, 32px);

    }


    .deposit-page__hero-nav {

        gap: 8px;

    }


    .deposit-page__hero-nav-link {

        padding: 9px 12px;

    }


    .deposit-page__hero-cta {

        gap: 10px;

    }


    .deposit-page__hero-cta-btn {

        padding: 11px 17px;

    }

}


/* ============================================================
   17. 手机端
============================================================ */

@media (max-width: 768px) {

    .deposit-page__hero {

        padding: 22px 0 28px;

    }


    /* 品牌和正文纵向排列 */

    .deposit-page__hero-inner {

        grid-template-columns: minmax(0, 1fr);

        gap: 23px;

        padding: 23px 20px;

        border-radius: 15px;

    }


    /* Logo 与品牌名称横向排列 */

    .deposit-page__hero-brand {

        flex-direction: row;

        align-items: center;

        gap: 14px;

    }


    .deposit-page__hero-logo {

        width: 62px;

        height: 62px;

        border-radius: 13px;

    }


    .deposit-page__hero-logo img {

        padding: 6px;

    }


    .deposit-page__hero-logo-text {

        font-size: 13px;

    }


    .deposit-page__hero-eyebrow {

        margin-bottom: 4px;

        font-size: 11px;

    }


    .deposit-page__hero-brand-name {

        font-size: 19px;

    }


    /* H1 */

    .deposit-page__hero-title {

        margin-bottom: 12px;

        font-size: clamp(23px, 5.5vw, 29px);

        line-height: 1.48;

        letter-spacing: -0.4px;

    }


    /* 描述 */

    .deposit-page__hero-description {

        margin-bottom: 16px;

        font-size: 14px;

        line-height: 1.85;

    }


    /* 数据时间 */

    .deposit-page__hero-meta {

        flex-direction: column;

        align-items: flex-start;

        gap: 7px;

        margin-bottom: 19px;

        font-size: 11px;

    }


    .deposit-page__hero-meta-item {

        align-items: flex-start;

    }


    /* 快捷导航 */

    .deposit-page__hero-nav {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 9px;

        margin-bottom: 20px;

    }


    .deposit-page__hero-nav-link {

        justify-content: space-between;

        min-width: 0;

        min-height: 43px;

        padding: 10px 12px;

        white-space: normal;

        font-size: 12px;

    }


    /* CTA */

    .deposit-page__hero-cta {

        display: grid;

        grid-template-columns: minmax(0, 1fr);

        gap: 10px;

        width: 100%;

    }


    .deposit-page__hero-cta-btn {

        width: 100%;

        min-height: 47px;

        padding: 12px 16px;

        font-size: 14px;

    }


    .deposit-page__hero-cta-note {

        font-size: 11px;

    }


    /* 背景装饰 */

    .deposit-page__hero::before {

        width: 280px;

        height: 280px;

        top: -100px;

        right: -120px;

    }


    .deposit-page__hero::after {

        width: 260px;

        height: 260px;

        bottom: -150px;

        left: -140px;

    }

}


/* ============================================================
   18. 小屏手机
============================================================ */

@media (max-width: 380px) {

    .deposit-page__hero {

        padding: 17px 0 22px;

    }


    .deposit-page__hero-inner {

        padding: 19px 15px;

        gap: 20px;

    }


    .deposit-page__hero-title {

        font-size: 23px;

        letter-spacing: -0.3px;

    }


    .deposit-page__hero-nav {

        grid-template-columns: minmax(0, 1fr);

    }


    .deposit-page__hero-nav-link {

        min-height: 42px;

    }


    .deposit-page__hero-cta {

        gap: 9px;

    }


    .deposit-page__hero-cta-btn {

        min-height: 45px;

        padding: 11px 12px;

        font-size: 13px;

    }

}


/* ============================================================
   19. 超宽屏
============================================================ */

@media (min-width: 1440px) {

    .deposit-page__hero-inner {

        padding: 40px 46px;

        gap: 44px;

    }


    .deposit-page__hero-title {

        font-size: 37px;

    }

}


/* ============================================================
   20. 锚点滚动偏移
============================================================ */

#deposit-methods,
#withdrawal-process,
#processing-time,
#troubleshooting {

    scroll-margin-top: 100px;

}


/* ============================================================
   21. 触屏设备优化
============================================================ */

@media (hover: none) {

    .deposit-page__hero-nav-link:hover {

        transform: none;

        box-shadow: none;

    }


    .deposit-page__hero-cta-btn:hover {

        transform: none;

    }


    .deposit-page__hero-cta-btn--details:hover {

        transform: none;

    }

}


/* ============================================================
   22. 减少动态效果
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .deposit-page__hero *,
    .deposit-page__hero *::before,
    .deposit-page__hero *::after {

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

    }

}


/* ============================================================
   23. 高对比度模式
============================================================ */

@media (forced-colors: active) {

    .deposit-page__hero-inner {

        border: 1px solid CanvasText;

    }


    .deposit-page__hero-nav-link,
    .deposit-page__hero-cta-btn {

        border: 1px solid ButtonText;

    }


    .deposit-page__hero-nav-link:focus-visible,
    .deposit-page__hero-cta-btn:focus-visible {

        outline: 2px solid Highlight;

        outline-offset: 3px;

    }

}


/* ============================================================
   END - Waihuibu Hero CSS
============================================================ */
