/* ========== 会员服务页面样式 ========== */

/* 页面整体背景 */
.vip-page {
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
}

/* 通用内容容器 */
.vip-container {
    width: 75rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ===========================================
   一、Hero 区（AI编标会员）
   =========================================== */
.vip-hero {
    width: 100%;
    height: 30rem;
    background: url(/static/img/vipServiceImages/topPoster.png);
    background-size: 100% 30rem;
    background-position: top center;
    background-repeat: no-repeat;
    /* 改善缩放时的文字边缘锯齿（与 .pd-hero-banner 策略一致） */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    /* 强制 GPU 渲染，避免某些情况下 text 重采样模糊 */
    transform: translateZ(0);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.vip-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.vip-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18.75rem;
    height: 4rem;
    line-height: 4rem;
    font-family: Alibaba PuHuiTi;
    font-size: 1.875rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(94deg, #2563eb 0%, #80cce5 99%);
    box-shadow: 0px 6px 20px 0px rgba(8, 58, 167, 0.35);
    border-radius: 2.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: absolute;
    bottom: 6.5rem;
    /* 使用 left+right+margin 居中，不占用 transform，便于后续 hover 直接套用 self-btn 同款效果 */
    left: 0;
    right: 0;
    margin: 0 auto;
    /* 配合 ::before 高光扫光需要 */
    overflow: hidden;
}

/* 高光扫光层（与 self-btn::before 一致） */
.vip-hero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.vip-hero-btn:hover {
    /* 与 home.css 中 .self-btn 的 hover 保持一致 */
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(37, 99, 235, 0.4);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

/* hover 时高光从左滑到右 */
.vip-hero-btn:hover::before {
    left: 100%;
}

.vip-hero-btn:active {
    /* 与 home.css 中 .self-btn 的 active 保持一致 */
    transform: translateY(0);
    box-shadow: 0 0.25rem 0.625rem 0 rgba(37, 99, 235, 0.3);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
}

.vip-hero-btn .arrow-icon {
    display: inline-block;
    animation: arrowWiggle 2s ease-in-out infinite;
}

@keyframes arrowWiggle {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(0.625rem);
    }
}

/* ===========================================
   二、三重福利区
   =========================================== */
.vip-benefit {
    position: relative;
    width: 100%;
    background: #ffffff;
    box-sizing: border-box;
}

.vip-benefit-card {
    position: relative;
    background: #FFF7F3;
    border-radius: 1.125rem;
    padding: 2.8125rem 1.25rem 0.75rem;
    box-sizing: border-box;
}

.vip-benefit-header {
    display: inline-block;
    background: #FF4D4F;
    color: #ffffff;
    font-family: Alibaba PuHuiTi;
    font-size: 1.75rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    position: absolute;
    top: -1.625rem;
    left: 1.75rem;
    box-sizing: border-box;
}

.vip-benefit-desc {
    font-family: Source Han Sans SC;
    font-size: 1.125rem;
    font-weight: normal;
    color: #333333;
}

.vip-benefit-grid {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.vip-benefit-item {
    width: 23.375rem;
    height: 13.125rem;
    background: url(/static/img/vipServiceImages/fuliBg.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.vip-benefit-item-label {
    font-family: Source Han Sans SC;
    font-size: 1.375rem;
    font-weight: bold;
    color: #333333;
    padding: 0.75rem 2.25rem;
    box-sizing: border-box;
}

.line-divider {
    /* 虚线分隔线：单条水平 dashed 线，颜色 #D3BCAA */
    border-top: 0.0625rem dashed #D3BCAA;
    margin: 0 2.25rem;
}



.vip-benefit-item-value {
    font-family: Source Han Sans SC;
    font-size: 3.5rem;
    line-height: 3.5rem;
    font-weight: 700;
    color: #CD4700;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0 2.25rem;
    box-sizing: border-box;
}

.vip-benefit-item-value .unit {
    font-size: 1.625rem;
}

.vip-tip-action-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 1.875rem;
}

.vip-benefit-item-tip {
    font-family: Source Han Sans SC;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: normal;
    color: #333333;
    padding-left: 2.25rem;
    box-sizing: border-box;
}

.vip-benefit-item-action {
    width: 7.375rem;
    height: 2.25rem;
    line-height: 2.25rem;
    border-radius: 1.4375rem;
    font-family: Source Han Sans SC;
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    background: linear-gradient(270deg, #ff9a52 0%, #ff4f50 100%);
    cursor: pointer;
    user-select: none;
}

.vip-benefit-item-action .arrow-icon {
    display: inline-block;
    animation: arrowWiggle 2s ease-in-out infinite;
}

.vip-benefit-item-action:hover {}

/* ===========================================
   三、灵活定价区
   =========================================== */
.vip-pricing {
    width: 100%;
    /* padding: 4rem 0 5rem;
    background: #f9fafd; */
}

.vip-section-title {
    text-align: center;
    font-family: Source Han Sans SC;
    font-size: 2.125rem;
    font-weight: bold;
    line-height: normal;
    color: #333333;
    padding: 4.25rem 0 1.25rem;
}

.vip-section-subtitle {
    text-align: center;
    font-family: Source Han Sans SC;
    font-size: 1.5rem;
    line-height: normal;
    font-weight: normal;
    color: #333333;
}

.vip-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.vip-pricing-card {
    width: 24.125rem;
    height: 14.25rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 三张卡片对应不同的背景图 */
.vip-pricing-card.freeTrial {
    background-image: url("/static/img/vipServiceImages/freeTrial.png");
}

.vip-pricing-card.wordCount {
    background-image: url("/static/img/vipServiceImages/wordCount.png");
}

.vip-pricing-card.member {
    background-image: url("/static/img/vipServiceImages/member.png");
}

/* ===========================================
   四、套餐选择区
   =========================================== */
.vip-package {
    width: 100%;
    margin: 4.5rem 0 5.75rem;
    box-sizing: border-box;
    background: #FFF8F5;
}

.vip-package-tabs {
    width: 33rem;
    height: 4.375rem;
    line-height: 4.375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.625rem;
    border-radius: 0.375rem;
    background: #ffffff;
    box-shadow: 0px 8px 20px 0px rgba(255, 100, 58, 0.1);
    box-sizing: border-box;
    margin: 2.125rem auto 2.5rem;
}

.vip-package-tab {
    width: 7.875rem;
    height: 2.75rem;
    line-height: 2.75rem;
    text-align: center;
    border-radius: 0.375rem;
    font-family: Source Han Sans SC;
    font-size: 1.5rem;
    font-weight: normal;
    color: #666666;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.vip-package-tab.active {
    color: #ffffff;
    background: #FF6B35;
}

.vip-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.vip-package-card {
    border-radius: 1.5rem;
    padding: 2.25rem 1.875rem 1.5rem;
    background: #FFFFFF;
    border: 0.125rem solid #FCEAD9;
    box-shadow: 0 0.25rem 0.625rem 0 rgba(255, 107, 53, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.vip-package-card:hover {
    border: 0.125rem solid #FF6B35;
}

.vip-package-card-tag {
    width: 6rem;
    height: 1.875rem;
    position: absolute;
    top: -0.0625rem;
    left: -0.0625rem;
    background: #FF4D4F;
    color: #ffffff;
    font-family: Source Han Sans SC;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.875rem;
    border-top-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

.vip-package-card-title {
    font-family: Source Han Sans SC;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
}

.vip-package-card-price {
    display: flex;
    align-items: flex-end;
    gap: 0.625rem;
    font-family: Source Han Sans SC;
    color: #FF4D4F;
    line-height: normal;
}

.vip-package-card-price .symbol {
    font-size: 1.5rem;
    font-weight: normal;

}

.vip-package-card-price .amount {
    font-size: 2.5rem;
    font-weight: bold;
}

.vip-package-card-original {
    font-family: Source Han Sans SC;
    font-size: 1.25rem;
    font-weight: normal;
    line-height: normal;
    color: #9E9E9E;
    margin: 0.5rem 0 1.125rem;
}

.vip-package-card-unit {
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    font-family: Source Han Sans SC;
    font-size: 1rem;
    font-weight: bold;
    color: #FFFFFF;
    background: #469F1B;
    padding: 0 1.125rem;
    border-radius: 1.25rem;
    box-sizing: border-box;
}

.vip-package-card-feature {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    font-family: Source Han Sans SC;
    font-size: 1.125rem;
    font-weight: normal;
    line-height: 1.125rem;
    color: #666666;
    margin: 2rem 0 3.5rem;
}

.vip-package-card-feature .feature-value {
    font-size: 1.5rem;
    color: #FF643A;
    font-weight: 700;
    line-height: 1.5rem;
}

.vip-package-card-btn {
    width: 6.5rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 0.5rem;
    font-family: Source Han Sans SC;
    font-size: 1.125rem;
    font-weight: 500;
    color: #FF643A;
    background: #FAEBE6;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    align-self: flex-end;
}

.vip-package-card:hover .vip-package-card-btn {
    color: #ffffff;
    background: #FF6B35;
}

.vip-package-card-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 0.875rem rgba(239, 68, 68, 0.45);
}

.vip-package-card-btn-disabled {
    color: #cbd5e1;
    background: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* ========== 套餐卡片 - 加载骨架屏 ========== */
.vip-package-card--skeleton {
    pointer-events: none;
    /* 让骨架整体仍按真实卡片高度占位，避免高度塌陷抖动 */
    min-height: 22rem;
    justify-content: flex-start;
    padding-top: 2.25rem;
}

.vip-package-card--skeleton .skeleton-line {
    height: 1rem;
    border-radius: 0.375rem;
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #f8f8f8 50%,
            #f0f0f0 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    margin-bottom: 1rem;
}

.vip-package-card--skeleton .skeleton-tag {
    width: 30%;
    height: 1.875rem;
}

.vip-package-card--skeleton .skeleton-title {
    width: 45%;
    height: 1.75rem;
    margin: 0.5rem auto 0.5rem;
}

.vip-package-card--skeleton .skeleton-price {
    width: 55%;
    height: 2.5rem;
}

.vip-package-card--skeleton .skeleton-original {
    width: 60%;
    height: 1.25rem;
}

.vip-package-card--skeleton .skeleton-unit {
    width: 35%;
    height: 2rem;
    border-radius: 1.25rem;
}

.vip-package-card--skeleton .skeleton-feature {
    width: 70%;
    height: 1.5rem;
}

.vip-package-card--skeleton .skeleton-btn {
    width: 6.5rem;
    height: 2rem;
    align-self: center;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========== 套餐卡片 - 空状态 ========== */
.vip-package-empty {
    grid-column: 1 / -1;
    padding: 5rem 0;
    text-align: center;
    font-family: Source Han Sans SC;
    font-size: 1.125rem;
    color: #999999;
}

.vip-package-card-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===========================================
   用户购买记录 - 向上无限循环滚动
   =========================================== */
.vip-purchase-records {
    width: 100%;
    margin-top: 2.25rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 0.0625rem solid #FCEAD9;
    overflow: hidden;
    box-sizing: border-box;
}

.vip-purchase-records-viewport {
    width: 100%;
    height: 17.5rem;
    /* 约可显示 5 条记录 */
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0,
            #000 1.5rem,
            #000 calc(100% - 1.5rem),
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0,
            #000 1.5rem,
            #000 calc(100% - 1.5rem),
            transparent 100%);
}

.vip-purchase-records-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    /* height 由 JS 设置为 BUFFER_COUNT * itemHeight */
    /* overflow: hidden 由父级 .vip-purchase-records-viewport 提供 */
}

.vip-purchase-record {
    /* 绝对定位，由 JS 实时设置 top 推进滚动位置；循环时复用同一些 DOM 节点 */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1.75rem;
    border-bottom: 0.0625rem solid #f1f5f9;
    font-family: Source Han Sans SC;
    font-size: 0.875rem;
    font-weight: normal;
    color: #4A362F;
    box-sizing: border-box;
}

/* ===========================================
   入场动画 - 与 index.html 风格保持一致
   =========================================== */
/* 通用 fade-up 已由 home.css 定义（包含 .fade-up + .active 组合），
   此处仅补充 vipService 特有的卡片组 staggered 动画。 */

/* 三重福利卡片 - 从下方滑入 + 淡入（staggered） */
.vip-benefit-item {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.vip-benefit-item.vip-benefit-item-visible {
    opacity: 1;
    transform: translateY(0);
}

.vip-benefit-item:nth-child(2).vip-benefit-item-visible {
    transition-delay: 0.1s;
}

.vip-benefit-item:nth-child(3).vip-benefit-item-visible {
    transition-delay: 0.2s;
}

/* 三重福利卡片 - hover 上浮效果（入场完成后才生效，避免与入场动画冲突） */
.vip-benefit-item.vip-benefit-item-visible:hover {
    transform: translateY(-0.25rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

/* 灵活定价卡片 - 从下方滑入 + 淡入（staggered） */
.vip-pricing-card {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.vip-pricing-card.vip-pricing-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.vip-pricing-card:nth-child(2).vip-pricing-card-visible {
    transition-delay: 0.1s;
}

.vip-pricing-card:nth-child(3).vip-pricing-card-visible {
    transition-delay: 0.2s;
}

/* 灵活定价卡片 - hover 上浮效果（入场完成后才生效，避免与入场动画冲突） */
.vip-pricing-card.vip-pricing-card-visible:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 1.875rem 0 rgba(255, 100, 58, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

/* 为什么选择我们卡片 - 从下方滑入 + 淡入（4 张 staggered） */
.vip-why-card {
    opacity: 0;
    transform: translateY(2.5rem);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.vip-why-card.vip-why-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.vip-why-card:nth-child(2).vip-why-card-visible {
    transition-delay: 0.1s;
}

.vip-why-card:nth-child(3).vip-why-card-visible {
    transition-delay: 0.2s;
}

.vip-why-card:nth-child(4).vip-why-card-visible {
    transition-delay: 0.3s;
}

.vip-purchase-record:last-child {
    border-bottom: none;
}

.vip-purchase-record-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vip-purchase-record-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    display: block;
}

.vip-purchase-record-phone {
    color: #4A362F;
    font-size: 0.875rem;
}

.vip-purchase-record-right {
    color: #999999;
    font-size: 0.875rem;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.vip-purchase-record-package {
    color: #4A362F;
}

/* ===========================================
   五、为什么选择我们
   =========================================== */
.vip-why {
    width: 100%;
    padding: 0 0 6rem;
    background: #ffffff;
}

.vip-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.vip-why-card {
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.875rem;
}

.vip-why-card:hover {
    border-radius: 1.25rem;
    transform: translateY(-0.25rem);
    background: #FFF9F6;
}

.vip-why-card-icon {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
}

.vip-why-card-title {
    font-family: Source Han Sans SC;
    font-size: 1.375rem;
    font-weight: bold;
    line-height: normal;
    color: #333333;
    margin: 1.25rem 0;
}

.vip-why-card-desc {
    font-family: Source Han Sans SC;
    font-size: 1.125rem;
    font-weight: normal;
    line-height: normal;
    color: #333333;
}