/* ==================== 定价页面样式 ==================== */

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.pricing-description {
    font-size: 1.25rem;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #F3F4F6;
    border-top: 4px solid #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 定价卡片容器 */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 定价卡片 */
.pricing-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #7C3AED;
}

/* 推荐标签 */
.pricing-card.recommended {
    border-color: #7C3AED;
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.pricing-card.recommended::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #7C3AED;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 卡片标题 */
.pricing-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.pricing-card-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color, #4A90E2);
    margin-bottom: 0.25rem;
}

.pricing-card-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-card-period {
    font-size: 0.875rem;
    color: #666;
}

/* 卡片内容 */
.pricing-card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-card-description {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4b5563;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary-color, #4A90E2);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* 卡片按钮 */
.pricing-card-footer {
    text-align: center;
}

.pricing-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricing-btn-primary {
    background: var(--primary-color, #4A90E2);
    color: white;
}

.pricing-btn-primary:hover {
    background: var(--primary-color-dark, #357ABD);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.pricing-btn-secondary {
    background: white;
    color: var(--primary-color, #4A90E2);
    border: 2px solid var(--primary-color, #4A90E2);
}

.pricing-btn-secondary:hover {
    background: var(--primary-color, #4A90E2);
    color: white;
}

.pricing-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.pricing-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 当前套餐标识 */
.current-plan-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 4rem 0;
    color: #ef4444;
}

/* 页脚说明 */
.pricing-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.pricing-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pricing-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .pricing-card-price {
        font-size: 2.5rem;
    }
}
