/* ========================================
   Pricing Page Styles
   专用于定价页面的样式
   ======================================== */

/* ========================================
   Hero Section
   ======================================== */
.pricing-hero-section {
    padding: calc(var(--header-height) + var(--spacing-4xl)) 0 var(--spacing-3xl);
    background-color: #fff;
}

.pricing-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    color: var(--text-primary-dark);
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
}

.pricing-hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-primary-dark-lighter);
    line-height: 1.7;
    max-width: 900px;
    margin: 0;
}

/* ========================================
   Pricing Cards Section
   ======================================== */
.pricing-cards-section {
    padding: var(--spacing-2xl) 0 var(--spacing-4xl);
    background-color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Pricing Card
   ======================================== */
.pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

/* 卡片入场动画 */
.pricing-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

/* Card Header */
.pricing-card-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    border-bottom: 1px solid #f3f4f6;
}

.pricing-brand {
    margin-bottom: var(--spacing-lg);
}

.pricing-brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.pricing-plan-name {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.pricing-duration {
    font-size: var(--font-size-base);
    color: var(--text-primary-dark-lighter);
    margin-bottom: var(--spacing-lg);
}

/* Order Button */
.pricing-btn {
    width: 100%;
    padding: 12px var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(1, 89, 189, 0.3);
}

/* Card Body */
.pricing-card-body {
    padding: var(--spacing-xl);
}

.pricing-contents-label {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary-dark);
    margin-bottom: var(--spacing-md);
}

/* Features List */
.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

/* 功能项悬停效果 */
.pricing-features-list li:hover {
    transform: translateX(4px);
}

/* Feature Icons */
.pricing-feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Check Icon - 蓝色勾选 */
.pricing-feature-icon.check::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230159BD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Dash Icon - 灰色横线 */
.pricing-feature-icon.dash::before {
    content: '';
    width: 12px;
    height: 2px;
    background-color: #555;
    border-radius: 1px;
}

/* Feature Text */
.pricing-feature-text {
    color: var(--text-primary-dark);
    flex: 1;
}

/* Disabled Feature */
.feature-disabled .pricing-feature-text {
    color: #555;
}

/* Highlight Number */
.highlight-number {
    color: var(--color-primary);
    font-weight: 600;
}

/* Feature Highlight */
.feature-highlight {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md) !important;
    border-top: 1px solid #f3f4f6;
}

/* ========================================
   Card Hover Animations
   ======================================== */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #146ed5 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card {
    position: relative;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Staggered Animation Delays
   ======================================== */
.pricing-card:nth-child(1) {
    transition-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    transition-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* ========================================
   Feature List Item Stagger Animation
   ======================================== */
.pricing-features-list li {
    opacity: 0;
    transform: translateX(-10px);
}

.pricing-card.animate-in .pricing-features-list li {
    animation: featureSlideIn 0.4s ease forwards;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(2) {
    animation-delay: 0.15s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(3) {
    animation-delay: 0.2s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(4) {
    animation-delay: 0.25s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(5) {
    animation-delay: 0.3s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(6) {
    animation-delay: 0.35s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(7) {
    animation-delay: 0.4s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(8) {
    animation-delay: 0.45s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(9) {
    animation-delay: 0.5s;
}

.pricing-card.animate-in .pricing-features-list li:nth-child(10) {
    animation-delay: 0.55s;
}

@keyframes featureSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Button Ripple Effect
   ======================================== */
.pricing-btn {
    position: relative;
    overflow: hidden;
}

.pricing-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.pricing-btn:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* 第三张卡片居中 */
    .pricing-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }
}

@media screen and (max-width: 768px) {
    .pricing-hero-section {
        padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }

    .pricing-hero-title {
        font-size: 28px;
    }

    .pricing-hero-description {
        font-size: var(--font-size-base);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .pricing-card:nth-child(3) {
        max-width: none;
    }

    .pricing-card-header,
    .pricing-card-body {
        padding: var(--spacing-lg);
    }
}

@media screen and (max-width: 480px) {
    .pricing-hero-title {
        font-size: 24px;
    }

    .pricing-plan-name {
        font-size: var(--font-size-xl);
    }

    .pricing-features-list li {
        font-size: var(--font-size-xs);
    }
}