/* =============================================================
 * Zibll 销售页样式（重构版 · v1）
 * Section: Hero
 * ============================================================= */

body {
    --a-text-gradient-color: linear-gradient(99deg, #fc6161 0%, #ee34d8 100%); /*文字渐变色*/
    --a-card-radius: 18px;
}

/* ---------- CSS 变量（仅 hero 用到的局部主题变量） ---------- */
.zibapi-pay-main {
    --hero-bg: var(--body-bg-color, #fafbff);
    --hero-bg-soft: #f3f1ff;
    --hero-text: var(--main-color, #1f2433);
    --hero-text-mute: var(--muted-color, #7a8294);
    --hero-pink-1: #ff8e81;
    --hero-pink-2: #ff3d84;
    --hero-blue: #3877ff;
    --hero-violet: #9b6dff;
    --hero-radius: 18px;
    --hero-shadow-lg: 0 24px 60px -20px rgba(94, 104, 154, 0.25);
    --hero-shadow-md: 0 8px 24px -8px rgba(94, 104, 154, 0.18);
    overflow: hidden;
}

/* ============================================================
 * Hero 容器
 * ============================================================ */
.zibapi-hero {
    position: relative;
    background: var(--hero-bg);
    color: var(--hero-text);
}

.zibapi-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin: 0 auto;
    gap: 60px;
}

.zibapi-hero-left {
    flex: 1 1 50%;
    min-width: 0;
    padding-top: 80px;
    padding-bottom: 120px;
}

.zibapi-hero-right {
    flex: 1 1 50%;
    min-width: 0;
    position: relative;
    transition-delay: 0.2s !important;
}

/* ---------- 装饰背景（径向光斑 + 点阵） ---------- */
.zibapi-hero-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.decor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.decor-blob-1 {
    width: 820px;
    height: 620px;
    top: -200px;
    left: -120px;
    background: radial-gradient(circle, rgba(196, 63, 98, 0.55), transparent 70%);
}

.decor-blob-2 {
    width: 600px;
    height: 600px;
    bottom: -40px;
    right: 0;
    background: radial-gradient(circle, rgba(91, 108, 255, 0.45), transparent 70%);
}

.decor-dots {
    position: absolute;
    top: 90px;
    right: 10%;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(currentColor 2px, transparent 2px);
    background-size: 16px 16px;
    color: rgba(7, 190, 246, 0.25);
    opacity: 0.7;
}

.decor-dots.left-dots {
    top: auto;
    bottom: 150px;
    right: 35%;
    color: rgba(146, 58, 254, 0.15);
}

/* ============================================================
 * 左栏内容
 * ============================================================ */

/* 顶部小徽章 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 28px;
    border-radius: 100px;
    background: rgba(91, 108, 255, 0.1);
    color: var(--hero-blue);
    font-size: 13px;
    font-weight: 500;
}

.hero-badge i {
    font-size: 14px;
}

/* 主标题 */
.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.18;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    color: var(--key-color);
}

.hero-title-hl,
.a-text-gradient-color {
    background: var(--a-text-gradient-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* 主标题多行：首行主字号，第二行及以后略小 */
.hero-title-line {
    display: block;
}

.hero-title-line--secondary {
    font-size: 0.8em;
    margin-top: 0.14em;
    opacity: 0.9;
}

/* 副标题 */
.hero-subtitle {
    font-size: 16px;
    line-height: 1.75;
    color: var(--hero-text-mute);
    margin: 0 0 28px;
    max-width: 520px;
}

/* 特性标签 */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hero-text);
}

/* 价格（仅未购时显示） */
.hero-price {
    margin: 0 0 24px;
}

.hero-price .badg.payvip-icon {
    border-radius: 100px;
    padding: 2px 20px;
}

.hero-price .price-box {
    color: var(--hero-text);
}

.hero-price .pay-mark {
    font-size: 0.6em;
    margin-right: 4px;
}

.hero-price b.em3x {
    font-size: 46px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--hero-pink-1) 30%, var(--hero-pink-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-price .original-price {
    margin-top: 6px;
    opacity: 0.7;
}

/* ---------- 主操作按钮 ---------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}

/* 通用按钮基础 */
.hero-actions .hero-btn,
.hero-actions .but,
.hero-actions a.but,
.hero-actions .cashier-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    padding: 0 30px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: 0.25s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    min-width: 180px;
}

.hero-actions .hero-btn-ghost {
    min-width: auto;
}

.hero-actions .cashier-link {
    min-width: 190px;
}

.hero-actions .hero-btn i,
.hero-actions .but i {
    font-size: 16px;
}

/* 主按钮：粉红渐变 */
.hero-btn-primary,
.hero-actions .pay-form .but.jb-red,
.hero-actions .pay-form .but.cashier-link {
    color: #fff !important;
    background: linear-gradient(135deg, var(--hero-pink-1) 30%, var(--hero-pink-2) 100%);
    box-shadow: 0 12px 28px -8px rgba(255, 61, 110, 0.5);
}

.hero-btn-primary:hover,
.hero-actions .pay-form .but.jb-red:hover,
.hero-actions .pay-form .but.cashier-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(255, 61, 110, 0.6);
    color: #fff !important;
}

/* 次按钮：透明 + 边框 */
.hero-btn-secondary {
    background: var(--main-bg-color);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.04);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--hero-shadow-md);
}

/* 幽灵按钮：纯文字（演示站等） */
.hero-btn-ghost {
    color: var(--hero-text-mute) !important;
    background: transparent;
    border: none;
    padding: 0 4px !important;
    font-weight: normal !important;
}

.hero-btn-ghost:hover {
    color: var(--hero-pink-2) !important;
}

.hero-btn-ghost i {
    transition: transform 0.25s ease;
}

.hero-btn-ghost:hover i {
    transform: translateX(4px);
}

/* 按钮上的小徽标（如试用剩余天数） */
.hero-btn-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    margin-left: 4px;
    border-radius: 100px;
    background: #ffd33d;
    color: #5a3700;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

/* 已购买标识 */
.hero-paid-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    color: var(--hero-text-mute);
}

.hero-paid-tag i {
    color: #00b96b;
}

/* hero 内嵌 form 不影响布局 */
.hero-pay-form {
    display: contents;
}

.hero-pay-form .pay-form,
.hero-pay-form .hero-buy-wrap {
    display: contents;
}

/* ---------- 信任标识 ---------- */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    color: var(--hero-text-mute);
    font-size: 13px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust i,
.hero-trust .icon {
    color: var(--hero-blue);
    font-size: 1.2em;
}

/* ============================================================
 * 右栏：3D 展示图
 * ============================================================ */
.hero-showcase {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.showcase-img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.2s ease-out;
    will-change: transform;
    --pc-left: 0;
    --pc-top: 0;
    --m-left: 0;
    --m-top: 0;
    left: var(--pc-left);
    top: var(--pc-top);
}

/* 浮动小图标（装饰） */
.float-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: var(--hero-shadow-md);
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-showcase-small-icons > .float-icon:nth-of-type(1) {
    top: 8%;
    right: 5%;
    background: linear-gradient(135deg, #ff5263, #ffaf81);
    animation-delay: 0s;
    box-shadow: 3px 7px 10px 0 rgba(255, 99, 105, 0.3);
}
.hero-showcase-small-icons > .float-icon:nth-of-type(2) {
    top: 35%;
    right: 1%;
    background: linear-gradient(135deg, #5969f8, #9872ea);
    animation-delay: 0.8s;
    box-shadow: 3px 7px 10px 0 rgba(99, 109, 255, 0.3);
}
.hero-showcase-small-icons > .float-icon:nth-of-type(3) {
    top: 65%;
    right: 0;
    background: linear-gradient(135deg, #e97e44, #cdad44);
    box-shadow: 3px 7px 10px 0 rgba(255, 177, 99, 0.3);
    animation-delay: 1.6s;
}

.hero-showcase-small-icons > .float-icon:nth-of-type(4) {
    top: 90%;
    right: 12%;
    background: linear-gradient(135deg, #5bbce9, #2bdce9);
    box-shadow: 3px 7px 10px 0 rgba(99, 190, 255, 0.3);
    animation-delay: 2.2s;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* 空状态占位（仅管理员可见） */
.hero-showcase-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 360px;
    border: 2px dashed var(--main-border-color, rgba(31, 36, 51, 0.12));
    border-radius: var(--hero-radius);
    text-align: center;
    padding: 20px;
}

.hero-showcase-empty .em3x {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ============================================================
 * 倒计时活动条（hero 内顶部）—— 沿用旧样式但调整为浅色场景
 * ============================================================ */
.zibapi-hero .countdown-activity {
    position: relative;
    z-index: 3;
    padding: 16px 20px;
    color: #ff2d74;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 0, 102, 0.05);
    gap: 70px;
}

.zibapi-hero .activity-content {
    flex-wrap: wrap;
}

.zibapi-hero .activity-title {
    font-size: 2em;
    font-weight: bold;
}

.zibapi-hero .activity-desc {
    font-size: 1.2em;
}

/* 活动倒计时 */
.zibapi-countdown-activity {
    border: 1px solid hsla(334, 100%, 59%, 0.3);
    border-radius: 8px;
    background: hsla(336, 100%, 50%, 0.04);
    padding: 5px 10px;
    color: #ff3378;
}

.zibapi-countdown-activity .countdown-time .unit {
    font-size: 12px;
    opacity: 0.8;
}

.zibapi-countdown-activity .countdown-time .number {
    font-size: 16px;
    font-weight: 700;
    padding: 4px;
    border: 1px solid hsla(334, 100%, 59%, 0.3);
    border-radius: 4px;
    margin: 2px;
    background: var(--main-bg-color);
    text-align: center;
    min-width: 26px;
    line-height: 1;
}

/*=============================================================
 * 弹窗选项
 *=============================================================*/

.a-opt-box {
    margin: -4px;
}
.a-opt-item {
    border-radius: 8px;
    border: 1px solid var(--main-border-color);
    margin: 4px;
    cursor: pointer;
    transition: 0.3s;
    width: calc(50% - 8px);
    list-style: none;
}

.a-opt-item a {
    display: block;
    padding: 10px;
}

.a-opt-item:hover {
    border-color: var(--focus-color-opacity3);
}

.a-opt-item.active {
    border-color: var(--focus-color);
    background: var(--focus-color-opacity05);
}

.a-opt-item-content {
    text-align: center;
}

.a-opt-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(99deg, #d68bf8 0%, #7658e2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.a-opt-item-0 .a-opt-title {

    background: var(--a-text-gradient-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.a-opt-price {
    line-height: 1.1;
    min-height: 32px;
    font-size: 13px;
}

.a-opt-price .em2x {
    font-weight: 700;
}

.a-opt-tag {
    position: absolute;
    top: 6px;
    right: 8px;
}

/* ============================================================
 * 响应式
 * ============================================================ */

@media (max-width: 960px) {
    .zibapi-hero .countdown-activity {
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 44px;
    }
    .zibapi-hero-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .zibapi-hero-container {
        flex-direction: column;
        gap: 36px;
    }

    .zibapi-hero-left,
    .zibapi-hero-right {
        flex: 0 0 auto;
        width: 100%;
    }

    .zibapi-hero-right {
        transition-delay: 0s !important;
    }

    .zibapi-hero-left {
        order: 2;
        padding: 20px 10px;
    }

    .hero-badge {
        margin-bottom: 18px;
    }

    .hero-title {
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-features {
        gap: 6px 16px;
        margin-bottom: 22px;
    }

    .hero-actions {
        gap: 10px;
    }
    .hero-showcase-small-icons > .float-icon {
        right: 1px !important;
    }

    .hero-actions .hero-btn,
    .hero-actions .but,
    .hero-actions .cashier-link {
        width: auto !important;
        flex: 1 1 45%;
    }

    .hero-trust {
        gap: 6px 18px;
        font-size: 12px;
    }

    .showcase-img {
        left: var(--m-left);
        top: var(--m-top);
    }

    .showcase-main {
        max-width: 96% !important;
        left: 2% !important;
        right: 2% !important;
        margin: 0 auto;
    }

    .float-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .decor-blob-1 {
        width: 260px;
        height: 260px;
        top: -80px;
        left: -60px;
    }
    .decor-blob-2 {
        width: 220px;
        height: 320px;
        bottom: -100px;
        right: 0;
    }

    .decor-dots {
        opacity: 0.6;
        right: 6px;
        top: 60px;
    }

    .decor-dots.left-dots{
        right: 62%;
    }


    .zibapi-hero .countdown-activity {
        padding: 12px;
        font-size: 13px;
    }
}
