/* 价格页面样式 */

/* 套餐切换按钮容器 - 简洁下划线风格 */
.pricing-tabs-container {
    padding: 0.8em 0;
    background-color: white;
    position: sticky;
    top: 70px;
    z-index: 10;
    /* 提高z-index值，确保在移动端菜单上方 */
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    /* 整体居中 */
    gap: 2rem;
    /* 按钮间距 */
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

.tab-btn {
    padding: 0.8rem 0.5rem;
    background-color: transparent;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-medium);
    position: relative;
    min-width: auto;
}

/* 仅保留下划线作为选中效果 */
.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.tab-btn:hover:not(.active) {
    color: var(--text-dark);
    transform: translateY(0);
}

.pricing-section {
    display: none;
    padding: 3rem 0 5rem;
}

.pricing-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 商户套餐卡片样式 */
/* 前三个卡片为白色 */
#merchant-packages .pricing-card:nth-child(1),
#merchant-packages .pricing-card:nth-child(2),
#merchant-packages .pricing-card:nth-child(3) {
    background-color: white;
    border: 1px solid #f0f0f0;
}

/* 后三个为淡蓝色渐变背景 */
/* #merchant-packages .pricing-card:nth-child(4) {
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f4ff 100%);
    border: 1px solid rgba(224, 236, 255, 0.8);
}

#merchant-packages .pricing-card:nth-child(5) {
    background: linear-gradient(180deg, #e6f7ff 0%, #d1ebff 100%);
    border: 1px solid rgba(224, 236, 255, 0.8);
}

#merchant-packages .pricing-card:nth-child(6) {
    background: linear-gradient(180deg, #d1ebff 0%, #b8ddff 100%);
    border: 1px solid rgba(224, 236, 255, 0.8);
} */

/* 授权套餐卡片样式 - 全部为淡蓝色渐变背景 */
#license-packages .pricing-card {
    background: linear-gradient(180deg, #f0f7ff 0%, #e6f4ff 100%);
    border: 1px solid rgba(224, 236, 255, 0.8);
}

/* 授权套餐按钮样式 */
/* 试用版按钮 - 镂空样式 */
#license-packages .pricing-card:nth-child(1) .btn {
    background: transparent;
    border: 1px solid #2574f4;
    color: #2574f4;
}

#license-packages .pricing-card .btn {
    background-color: rgba(37, 116, 244, 0.05);
}

#license-packages .pricing-card:nth-child(1) .btn:hover {
    background-color: rgba(37, 116, 244, 0.05);
    color: white;
}

/* 后续按钮背景依次为蓝色、紫色、金色、黑色 */
/* #license-packages .pricing-card:nth-child(2) .btn {
    background: linear-gradient(135deg, #2574f4 0%, #1a56db 100%);
    border-color: #2574f4;
    color: white;
}

#license-packages .pricing-card:nth-child(3) .btn {
    background: linear-gradient(135deg, #7b61ff 0%, #5d45d8 100%);
    border-color: #7b61ff;
    color: white;
} */

#license-packages .btn {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-color: #ffd700;
    color: #333;
}

#license-packages .btn:hover {
    color: white;
}

#license-packages .pricing-card:nth-child(5) .btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: #333333;
    color: #96baf5;
}

#license-packages .pricing-card:nth-child(5) .btn:hover {
    color: white;
}

#license-packages .pricing-card:nth-child(6) .btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: #333333;
    color: #96baf5;
}

#license-packages .pricing-card:nth-child(6) .btn:hover {
    color: white;
}

/* 时长标签样式 */
.duration-tag {
    display: inline-block;
    background-color: rgba(37, 116, 244, 0.1);
    color: #2574f4;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* 最受欢迎角标 */
.pricing-card.popular::before {
    content: '最受欢迎';
    position: absolute;
    top: 18px;
    right: -38px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    width: 160px;
    text-align: center;
    transform: rotate(45deg);
}

.pricing-card-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* 原价 */
.original-price {
    margin-left: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.pricing-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricing-card-desc {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pricing-card-price {
    margin: 1.5rem 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-period {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.pricing-card-features {
    margin: 2rem 0;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-item img {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
    object-fit: contain;
}

.feature-item.disabled {
    color: var(--text-light);
}

.feature-item.disabled img {
    opacity: 0.5;
}

.pricing-card-cta {
    margin-top: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.pricing-card .btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* FAQ部分 */
.pricing-faq {
    padding: 4rem 0;
    background-color: white;
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    text-align: left;
    background-color: white;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    background-color: white;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* 定制套餐样式 */
.custom-package {
    background: linear-gradient(135deg, #2d1b69 0%, #1a0b3c 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.custom-package-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 1.5rem;
}

.custom-package-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #f0e6ff;
}

.custom-package-content p {
    color: #d9c8ff;
    max-width: 700px;
}

.custom-package-cta {
    min-width: 200px;
}

.btn-custom {
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.btn-custom:hover {
    background: linear-gradient(135deg, #b771ff 0%, #9d4edd 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.4);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 3rem 0 1.5rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .custom-package {
        flex-direction: column;
        text-align: center;
    }

    .custom-package-cta {
        width: 100%;
    }

    .btn-custom {
        width: 100%;
    }

    .pricing-tabs {
        max-width: 100%;
        gap: 1.5rem;
    }

    .tab-btn {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .pricing-hero h1 {
        font-size: 1.5rem;
    }

    .pricing-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}


/* 限时标签样式 */
.limited-time-tag {
    display: inline-block;
    background-color: #ff4d4f;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    margin: 0rem 0rem 0.4rem 0.5rem;
    font-weight: 600;
    animation: pulse 1.5s infinite;
    position: relative;
    overflow: hidden;
    vertical-align: middle; /* 确保与标题文字水平对齐 */
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(255, 77, 79, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 79, 0);
    }
}

/* 增加标签的闪光效果 */
.limited-time-tag::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-100%, -100%);
    }
    100% {
        transform: rotate(30deg) translate(100%, 100%);
    }
}