/* =====================================================================
 * V8 合伙人介绍页 —— 独立样式
 * 说明：本文件仅被 application/index/view/partner/index.html 引用，
 *       所有选择器均以 .v8partner- / .v8p- 前缀限定，不会影响其它页面。
 * 主题色：主色 #ff5a5f（珊瑚红），深色 Hero #2b2b45。
 * ===================================================================== */

/* 让本页整体在 mall.css 基础上正常显示 */
.v8partner-body {
    background: #fff;
}

/* ---------- 顶部简易导航微调（复用 mall.css 的 .navbar-site） ---------- */
.v8p-nav .nav-menu a.active {
    color: #ff5a5f;
    font-weight: 600;
}

/* =====================================================================
 * ① 全屏 Hero 通栏
 * 想换背景图：把下面 .v8p-hero 的 background 改成
 *   background: linear-gradient(rgba(30,30,50,.72), rgba(30,30,50,.72)), url('__CDN__/img/your-hero.jpg') center/cover no-repeat;
 * ===================================================================== */
.v8p-hero {
    width: 100%;
    /* 背景图：public/img/hhrbj.png（相对本 CSS 用 ../../img 解析，兼容 CDN 前缀）；
       横向深色蒙层：左侧略透（衬产品图），右侧加深（保证白色标题/正文清晰可读） */
    background:
        radial-gradient(1200px 500px at 85% 20%, rgba(255, 90, 95, .18), transparent 60%),
        linear-gradient(90deg, rgba(24, 24, 42, .55) 0%, rgba(24, 24, 42, .72) 45%, rgba(24, 24, 42, .88) 100%),
        url('../../img/hhrbj.png') center center / cover no-repeat;
    background-color: #20203a; /* 图片加载失败时的兜底底色 */
    color: #fff;
    padding: 52px 0 60px;
    position: relative;
    overflow: hidden;
}
/* ---------- Hero 两栏：左图右文 ---------- */
.v8p-hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.v8p-hero-media {
    flex: 0 0 auto;
    width: 420px;
    max-width: 46%;
    transition: transform .4s ease;
}
.v8p-hero-media:hover {
    transform: translateY(-6px);
}
/* 现代窄边框显示器：深色金属机身 + 悬浮冷光 */
.v8p-monitor {
    position: relative;
    background: linear-gradient(180deg, #2b2b34 0%, #16161c 100%);
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(0, 0, 0, .4),
        inset 0 1px 1px rgba(255, 255, 255, .12);
}
/* 机身周围冷光晕，增强科技感 */
.v8p-monitor::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    box-shadow: 0 0 46px rgba(90, 150, 255, .22);
    pointer-events: none;
}
.v8p-screen {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}
.v8p-screen img {
    display: block;
    width: 100%;
    height: auto;
}
/* 现代显示器底座：细颈 + 扁平金属足 */
.v8p-stand {
    position: relative;
    width: 150px;
    height: 34px;
    margin: -1px auto 0;
}
.v8p-stand::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 46px;
    height: 22px;
    background: linear-gradient(180deg, #26262e, #14141a);
}
.v8p-stand::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 150px;
    height: 12px;
    border-radius: 12px 12px 4px 4px / 20px 20px 4px 4px;
    background: linear-gradient(180deg, #34343e, #14141a);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
}
/* 图片底部标题 */
.v8p-media-cap {
    margin-top: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}
.v8p-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.v8p-hero-tagline {
    font-size: 20px;
    font-weight: 600;
    color: #ffd0d1;
    letter-spacing: .5px;
    margin: 0 0 16px;
}
.v8p-hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.v8p-hero-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    margin-top: 20px;
    background: linear-gradient(90deg, #ff5a5f, #ff8a8d);
}
.v8p-hero-sub {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
    max-width: 620px;
    margin: 16px 0 32px;
}
.v8p-hero-sub strong {
    color: #fff;
    font-weight: 700;
}
.v8p-hero-btns {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* ---------- 通用按钮 ---------- */
.v8p-btn {
    display: inline-block;
    height: 46px;
    line-height: 46px;
    padding: 0 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5px;
    text-align: center;
    transition: all .25s ease;
    cursor: pointer;
    text-decoration: none;
}
.v8p-btn-primary {
    background: linear-gradient(135deg, #ff6a6f, #f8484d);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 22px rgba(248, 72, 77, .38);
}
.v8p-btn-primary:hover {
    background: linear-gradient(135deg, #ff575c, #e63b40);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(248, 72, 77, .48);
}
.v8p-btn-ghost {
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(2px);
}
.v8p-btn-ghost:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}
.v8p-btn-light {
    background: #fff;
    color: #ff5a5f;
    border: 1px solid #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.v8p-btn-light:hover {
    background: #fff5f5;
    color: #ff4348;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

/* =====================================================================
 * ② 为什么要成为合伙人（三栏）
 * ===================================================================== */
.v8p-why {
    width: 100%;
    background: #fff;
    padding: 76px 0 84px;
}
.v8p-sec-title {
    font-size: 30px;
    font-weight: 700;
    color: #2b2b45;
    text-align: center;
    margin: 0 0 20px;
    letter-spacing: 1px;
}
.v8p-sec-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    border-radius: 2px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, #ff5a5f, #ff8a8d);
}
.v8p-sec-sub {
    text-align: center;
    font-size: 15px;
    color: #9aa0b0;
    margin: 0 0 52px;
}
.v8p-feats {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
.v8p-feat {
    flex: 1;
    text-align: center;
    padding: 34px 22px 30px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef0f6;
    box-shadow: 0 6px 22px rgba(43, 43, 69, .05);
    transition: all .3s ease;
}
.v8p-feat:hover {
    border-color: #ffe0e1;
    box-shadow: 0 16px 40px rgba(255, 90, 95, .12);
    transform: translateY(-6px);
}
.v8p-feat-ico {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 2px solid #ffdada;
    background: #fff5f5;
    color: #ff5a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.v8p-feat-ico i {
    font-size: 38px;
}
.v8p-feat:hover .v8p-feat-ico {
    background: linear-gradient(135deg, #ff6a6f, #f8484d);
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 26px rgba(248, 72, 77, .32);
}
.v8p-feat h3 {
    font-size: 20px;
    color: #2b2b45;
    margin: 0 0 14px;
    font-weight: 600;
}
.v8p-feat p {
    font-size: 15px;
    line-height: 1.85;
    color: #6b7280;
    margin: 0;
}

/* =====================================================================
 * ②.5 合伙人尊享五大权益（悬停切换）
 * 默认选中第一项；悬停项变红底白字并展开描述，右侧联动图片
 * ===================================================================== */
.v8p-rights {
    width: 100%;
    background: #f6f7fb;
    padding: 72px 0 80px;
}
.v8p-rights-wrap {
    display: flex;
    align-items: stretch;
    gap: 56px;
    margin-top: 8px;
}
.v8p-rights-list {
    flex: 0 0 42%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.v8p-right-item {
    background: #fff;
    border-radius: 0;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(43, 43, 69, .05);
    cursor: pointer;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.v8p-right-title {
    font-size: 20px;
    font-weight: 600;
    color: #2b2b45;
    margin: 0;
    transition: color .3s ease;
}
.v8p-right-desc {
    font-size: 14px;
    line-height: 1.85;
    color: #6b7280;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
/* 激活项：红底白字 + 展开描述 */
.v8p-right-item.is-active {
    background: linear-gradient(135deg, #ff6a6f, #f8484d);
    box-shadow: 0 10px 24px rgba(248, 72, 77, .16);
}
.v8p-right-item.is-active .v8p-right-title {
    color: #fff;
}
.v8p-right-item.is-active .v8p-right-desc {
    color: rgba(255, 255, 255, .95);
    max-height: 220px;
    opacity: 1;
    margin-top: 12px;
}
/* 右侧展示图：叠放淡入切换 */
.v8p-rights-media {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    min-height: 460px;
}
.v8p-right-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 6px;
}
.v8p-right-img.is-active {
    opacity: 1;
}

/* =====================================================================
 * ③ 合作流程（通栏）
 * ===================================================================== */
.v8p-steps {
    width: 100%;
    background: #f6f7fb;
    padding: 72px 0 80px;
}
.v8p-step-list {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}
.v8p-step {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 38px 24px 32px;
    text-align: center;
    border: 1px solid #eef0f6;
    box-shadow: 0 6px 20px rgba(43, 43, 69, .06);
    position: relative;
    transition: all .28s ease;
}
.v8p-step:hover {
    transform: translateY(-8px);
    border-color: #ffe0e1;
    box-shadow: 0 16px 36px rgba(43, 43, 69, .12);
}
/* 步骤间连接箭头（>），最后一个不显示 */
.v8p-step:not(:last-child)::after {
    content: "\f105";
    font-family: "FontAwesome";
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #ffc4c6;
    z-index: 2;
}
.v8p-step-no {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a6f, #f8484d);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(248, 72, 77, .3);
}
.v8p-step h4 {
    font-size: 18px;
    color: #2b2b45;
    margin: 0 0 10px;
    font-weight: 600;
}
.v8p-step p {
    font-size: 14px;
    line-height: 1.75;
    color: #6b7280;
    margin: 0;
}

/* =====================================================================
 * ④ 联系合作 CTA（通栏）
 * ===================================================================== */
.v8p-cta {
    width: 100%;
    background:
        radial-gradient(700px 300px at 50% -20%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(120deg, #ff6a6f 0%, #ff5a5f 55%, #f8484d 100%);
    color: #fff;
    text-align: center;
    padding: 72px 0 76px;
    position: relative;
    overflow: hidden;
}
.v8p-cta-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 30px;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.v8p-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 44px;
    margin-bottom: 38px;
}
.v8p-contact-item {
    font-size: 16px;
    color: rgba(255, 255, 255, .96);
    display: inline-flex;
    align-items: center;
}
.v8p-contact-item i {
    margin-right: 8px;
    font-size: 18px;
}

/* =====================================================================
 * 响应式：窄屏时纵向堆叠（本站前台默认按 1280 渲染，此处为兼容更宽/窄屏）
 * ===================================================================== */
@media (max-width: 1000px) {
    .v8p-hero {
        padding: 48px 0 56px;
    }
    .v8p-hero-flex {
        flex-direction: column;
        gap: 32px;
    }
    .v8p-hero-media {
        flex: none;
        width: 100%;
        max-width: 360px;
    }
    .v8p-rights-wrap {
        flex-direction: column;
        gap: 28px;
    }
    .v8p-rights-list {
        flex: none;
        max-width: none;
    }
    .v8p-rights-media {
        min-height: 320px;
    }
    .v8p-feats,
    .v8p-step-list {
        flex-direction: column;
        gap: 20px;
    }
    .v8p-step:not(:last-child)::after {
        content: none;
    }
    .v8p-hero-title {
        font-size: 32px;
    }
    .v8p-sec-title {
        font-size: 24px;
    }
    .v8p-cta-title {
        font-size: 22px;
    }
}

/* =====================================================================
 * ⑤ 客服微信弹窗（立即咨询）+ 微信号可复制
 * ===================================================================== */
.v8p-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
}
.v8p-modal.show {
    display: flex;
}
.v8p-modal-box {
    position: relative;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
}
.v8p-modal-close {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 20px;
    color: #bbb;
    cursor: pointer;
}
.v8p-modal-close:hover {
    color: #666;
}
.v8p-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 18px;
}
.v8p-modal-qr {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background: #f7f9fc;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c3cdd9;
    font-size: 60px;
    overflow: hidden;
}
.v8p-modal-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.v8p-modal-qr span {
    font-size: 13px;
    color: #aaa;
    margin-top: 8px;
}
.v8p-modal-tip {
    margin-top: 14px;
    font-size: 13px;
    color: #666;
}
/* 微信号可点击复制（白字下用下划线提示可交互） */
.v8p-contact-wechat {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.v8p-contact-wechat:hover {
    opacity: .9;
}
