/* ==================================================
 * 团队版套餐页面样式
 * 命名空间：.team-page * / .team-* （与 .vip-* 完全隔离）
 * ================================================== */

.team-page {
    width: 100%;
    background: #FAFAFC;
    overflow: hidden;
}

.team-container {
    width: 75rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.team-section-title {
    font-family: fantasy;
    font-size: 3rem;
    font-weight: bold;
    line-height: normal;
    color: #333333;
    text-align: center;
}

.team-section-subtitle {
    font-size: 1.25rem;
    font-weight: normal;
    line-height: normal;
    color: #666666;
    text-align: center;
    margin-top: 0.875rem;
}

/* ==================================================
 * 一、Hero 区（背景图渲染，标题/副标题/数据指标都在图里，前景只保留按钮）
 * 策略与 .vip-hero 完全一致：background-size 锁死宽高，避免 img 拉伸锯齿
 * ================================================== */
.team-hero {
    width: 100%;
    height: 35rem;
    background: url(/static/img/teamVipService/teamTopBg.png);
    background-size: 100% 35rem;
    background-position: top center;
    background-repeat: no-repeat;
    /* 改善缩放时的文字边缘锯齿（与 .vip-hero / .pd-hero-banner 策略一致） */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    /* 强制 GPU 渲染，避免某些情况下 text 重采样模糊 */
    transform: translateZ(0);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.team-hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18.75rem;
    height: 4rem;
    font-family: fantasy;
    font-size: 1.875rem;
    font-weight: bold;
    line-height: normal;
    color: #FFFFFF;
    background: linear-gradient(94deg, #ff7a59 0%, #ff9a7a 100%);
    border-radius: 2rem;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 0.5rem 1.5rem rgba(255, 122, 89, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    bottom: 12.125rem;
    /* 使用 left+right+margin 居中，不占用 transform */
    left: 0;
    right: 0;
    margin: 0 auto;
    /* 配合 ::before 高光扫光需要 */
    overflow: hidden;
}

/* 高光扫光层（与 vipService 一致） */
.team-hero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.team-hero-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.75rem 2rem rgba(255, 122, 89, 0.45);
}

.team-hero-btn:hover::before {
    left: 100%;
}

.team-hero-btn .arrow-icon {
    display: inline-block;
    margin-left: 0.5rem;
    /* 与 vipService 同名关键帧，箭头左右摇摆引导点击 */
    animation: arrowWiggle 2s ease-in-out infinite;
}

@keyframes arrowWiggle {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(0.625rem);
    }
}

/* ==================================================
 * 二、套餐选择区
 * ================================================== */
.team-package {
    padding: 6.875rem 0 6.875rem;
}

.team-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 5rem;
}

.team-package-card {
    position: relative;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem 2.25rem 1.125rem 1.75rem;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 0.0625rem solid #E9E5EA;
    box-shadow: 0 0.5rem 1.875rem 0 rgba(255, 107, 53, 0.1);
}

.team-package-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08);
}

.team-package-card-featured {
    border: 0.0625rem solid #FF6B35;
    box-shadow: 0 0.5rem 1.875rem 0 rgba(255, 107, 53, 0.1);
}

.team-package-card-name {
    font-family: fantasy;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: normal;
    color: #333333;
}

.team-package-card-desc {
    margin-top: 0.625rem;
    font-size: 1rem;
    font-weight: normal;
    line-height: normal;
    color: #9E9E9E;
}

.team-package-card-price {
    display: flex;
    align-items: baseline;
    margin-top: 2.5rem;
    color: #333333;
}

.team-package-card-featured .team-package-card-price {
    color: #FF6B35;
}

.team-package-card-price .symbol {
    font-family: fantasy;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: normal;
}

.team-package-card-price .amount {
    font-family: fantasy;
    font-size: 4rem;
    font-weight: normal;
    line-height: normal;
    margin: 0 0.5rem 0 1rem;
}

.team-package-card-price .unit {
    font-family: fantasy;
    font-size: 1.75rem;
    font-weight: normal;
    line-height: normal;
    color: #999999;
}

.team-package-card-meta {
    font-size: 1rem;
    font-weight: normal;
    line-height: normal;
    text-decoration: line-through;
    color: #9E9E9E;
    margin-top: 0.875rem;
}

.team-package-card-divider {
    margin: 1.5rem 0;
    height: 0;
    border-top: 0.0625rem dashed #C9CDD4;
}

.team-package-card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.team-package-card-features li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: normal;
    line-height: 2rem;
    color: #333333;
    margin-bottom: 0.325rem;
}

.team-package-card-features li:last-child {
    margin-bottom: 0;
}

.team-package-card-features li strong {
    font-weight: 700;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.team-package-card-features li:first-child strong {
    margin-left: 0;
}

.feature-bullet {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    background-color: #ff7a59;
    border-radius: 50%;
    margin-right: 0.625rem;
    flex-shrink: 0;
}

/* ==================================================
 * 三、完整权益对比
 * ================================================== */
.team-compare {
    padding: 4.375rem 0 3.125rem;
    background-color: #ffffff;
}

.team-compare-table {
    margin-top: 3.5rem;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 0.0625rem solid #E9E5EA;
    box-shadow: 0 0.5rem 1.875rem 0 rgba(201, 205, 212, 0.3);
}

.team-compare-row {
    display: grid;
    /* 5 列：权益明细(1fr) + 体验版(1fr) + 基础版(1fr) + 专业版(1fr) + 尊享版(1fr) */
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    border-bottom: 0.0625rem solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.team-compare-row:last-child {
    border-bottom: none;
}

.team-compare-row:not(.team-compare-header):hover {
    background-color: #fafafa;
}

.team-compare-header {
    background: #FF8A5F;
    color: #ffffff;
    font-family: Microsoft YaHei;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1.375rem;
    border-bottom: none;
}

.team-compare-cell {
    padding: 1rem 0.875rem;
    font-size: 0.9375rem;
    font-family: Microsoft YaHei;
    font-size: 0.875rem;
    font-weight: normal;
    line-height: 1.375rem;
    color: #333333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-compare-cell-label {
    justify-content: flex-start;
    color: #333333;
}

.team-compare-cell-head {
    font-weight: bold;
    color: #ffffff;
}

.team-compare-cell--featured {
    font-weight: bold;
}

/* ==================================================
 * 四、常见问题
 * ================================================== */
.team-faq {
    padding: 4.5rem 0 5.5rem;
}

.team-faq-list {
    margin-top: 1.875rem;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.team-faq-item {
    background: #ffffff;
    box-sizing: border-box;
    border: 0.0625rem solid #E9E5EA;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.team-faq-item:hover {
    border-color: #F4C7B2;
}

.team-faq-item--active {
    border-color: #F4C7B2;
    box-shadow: 0 0.375rem 1.25rem rgba(255, 122, 89, 0.08);
}

.team-faq-q {
    display: flex;
    align-items: center;
    font-family: Source Han Sans SC;
    font-size: 1rem;
    font-weight: 500;
    line-height: normal;
    color: #000000;
}

.team-faq-q-icon {
    display: inline-block;
    width: 1.875rem;
    height: 1.5rem;
    /* 文本 "问" 仅作无图兜底，视觉由背景图渲染 */
    font-size: 0;
    color: transparent;
    background: url(/static/img/teamVipService/wenIco.png) no-repeat center / 1.875rem 1.5rem;
    margin-right: 0.625rem;
    flex-shrink: 0;
}

.team-faq-q-text {
    flex: 1;
}

.team-faq-a {
    display: none;
    font-family: Source Han Sans SC;
    font-size: 1rem;
    font-weight: normal;
    line-height: normal;
    color: #333333;
    background: #FCF8F6;
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

.team-faq-item--active .team-faq-a {
    display: block;
}

/* ==================================================
 * 入场动画（staggered）
 * ================================================== */
.team-package-card,
.team-compare-table,
.team-faq-item {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-package-card-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-package-card:nth-child(1).team-package-card-visible {
    transition-delay: 0s;
}

.team-package-card:nth-child(2).team-package-card-visible {
    transition-delay: 0.12s;
}

.team-package-card:nth-child(3).team-package-card-visible {
    transition-delay: 0.24s;
}

.team-compare-visible {
    opacity: 1;
    transform: translateY(0);
}

.team-faq-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
 * 骨架屏（接口加载前 / 失败时的占位）
 * 用法：包裹动态文本 <span class="is-skeleton">占位文字</span>
 * - 文字透明、灰底带闪光动画
 * - 盒子宽高由内层文字撑开，与有数据时一致（不产生布局抖动）
 * - 接口成功回填时，外层元素的 .text() 会把该 span 整体替换掉，无需手动移除类
 * ================================================== */
.is-skeleton {
    display: inline-block;
    /* 最小宽度：保证像 "√" / "—" / "尊享" 这类短文本也能撑出与 "2000万字" / "5,000张" 一致的灰条视觉 */
    min-width: 2.5rem;
    color: transparent;
    background: linear-gradient(90deg, #f0f0f0 0%, #e6e6e6 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 0.25rem;
    user-select: none;
    pointer-events: none;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    vertical-align: baseline;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}