/* Price定价模块样式 */

/* 标题区域 */
.price-header {
    text-align: center;
    margin-bottom: 60px;
}

.price-title {
    font-size: 48px;
    font-weight: 400;
    color: #1b5e20;
    margin-bottom: 16px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.price-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #2e7d32;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 定价卡片网格 */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 风格5: 彩虹渐变 Rainbow Gradient */
.price-card {
    position: relative;
    padding: 40px 32px;
    border-radius: 25px;
    background: linear-gradient(45deg, #52c234 0%, #38ef7d 25%, #11998e 50%, #38ef7d 75%, #52c234 100%);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 15px 40px rgba(82, 194, 52, 0.5);
    transition: transform 0.3s ease;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.price-card:hover {
    transform: scale(1.05);
}

/* 推荐卡片特殊样式 */
.price-card.recommended {
    background: linear-gradient(45deg, #52c234 0%, #38ef7d 25%, #11998e 50%, #38ef7d 75%, #52c234 100%);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 20px 50px rgba(82, 194, 52, 0.6);
}

.price-card.recommended:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 60px rgba(82, 194, 52, 0.7);
}

/* 推荐标签样式 - 左上角三角旗帜 */
.price-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px 8px 16px;
    border-radius: 0 0 20px 0;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* 卡片标题 */
.price-card-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

/* 卡片副标题 */
.price-card-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* 价格区域 */
.price-card-price {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.price-currency {
    font-size: 32px;
    font-weight: 700;
    color: white;
    vertical-align: top;
    margin-right: 4px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.price-unit {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 4px;
}

/* 功能列表 */
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    position: relative;
    z-index: 1;
}

.price-features li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.price-features li::before {
    content: "✓";
    color: white;
    font-weight: 600;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

/* 按钮样式 */
.price-button {
    width: 100%;
    background: white;
    color: #56ab2f;
    border: none;
    padding: 16px 24px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.price-button:active {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 按钮加载状态 */
.price-button.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.price-button.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #56ab2f;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* 推荐卡片的按钮特殊样式 */
.price-card.recommended .price-button {
    background: white;
    color: #56ab2f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.price-card.recommended .price-button:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .price-header {
        margin-bottom: 40px;
    }

    .price-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .price-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .price-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .price-card {
        padding: 32px 24px;
    }

    .price-card-title {
        font-size: 20px;
    }

    .price-card-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .price-currency {
        font-size: 28px;
    }

    .price-amount {
        font-size: 36px;
    }

    .price-unit {
        font-size: 16px;
    }

    .price-features {
        margin-bottom: 28px;
    }

    .price-features li {
        font-size: 14px;
        padding: 8px 0;
    }

    .price-features li::before {
        font-size: 16px;
        margin-right: 10px;
    }

    .price-button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .price-badge {
        font-size: 12px;
        padding: 8px 16px 6px 12px;
    }

    /* 移动端卡片悬停效果优化 */
    .price-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .price-card.recommended:hover {
        transform: translateY(-6px) scale(1.02);
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .price-card {
        padding: 36px 28px;
    }

    .price-title {
        font-size: 40px;
    }
}