/* 套餐选择页面样式 */

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 标题区域 */
.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h1 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pricing-header p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 32px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 周期切换 */
.duration-toggle {
    display: inline-flex;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.duration-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.duration-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.save-badge {
    display: inline-block;
    background: #f56c6c;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* 套餐卡片 */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.pricing-card.recommended {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.pricing-card.current {
    border-color: #67c23a;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.current-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: #67c23a;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 14px;
    color: #5a6c7d;
}

.card-price {
    text-align: center;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
}

.price-currency {
    font-size: 24px;
    vertical-align: super;
}

.price-period {
    font-size: 16px;
    color: #999;
    margin-left: 4px;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-top: 4px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.card-features li {
    padding: 12px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.card-features li::before {
    content: '✓';
    color: #67c23a;
    font-weight: bold;
    font-size: 18px;
}

.card-features li.disabled {
    color: #ccc;
}

.card-features li.disabled::before {
    content: '✗';
    color: #ccc;
}

.card-action {
    text-align: center;
}

.btn-upgrade {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upgrade.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-upgrade.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-upgrade.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-upgrade.secondary:hover {
    background: #f8f9ff;
}

.btn-upgrade:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border: none;
}

/* 对比表 */
.comparison-section {
    margin-bottom: 80px;
}

.comparison-section h2 {
    text-align: center;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table th:not(:first-child) {
    text-align: center;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: #1a1a1a;
}

.comparison-table td:not(:first-child) {
    text-align: center;
    color: #666;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: #f8f9ff;
}

/* FAQ */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .pricing-header h1 {
        font-size: 28px;
    }

    .pricing-header p {
        font-size: 16px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
}
