/* ============================================
   免费使用页面样式 - free.css (双方案并排版)
   无需切换，一眼看清两种模式
   ============================================ */

.free-page,
.free-page *,
.free-page *::before,
.free-page *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.free-page {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    padding-bottom: 60px;
}

.free-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   页面标题
   ============================================ */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
}

.page-header h1 {
    font-size: 36px;
    color: #1e40af;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header .subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

/* ============================================
   双方案并排卡片 - 核心布局
   ============================================ */
.plans-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 50px;
}

.plan-card {
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* 推荐方案突出样式 */
.plan-recommended {
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.plan-recommended::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.recommended-ribbon {
    position: absolute;
    top: 12px;
    right: -35px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 6px 40px;
    font-size: 13px;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* VS 分隔 */
.plan-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #cbd5e1;
    position: relative;
}

.plan-divider::before,
.plan-divider::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
}

.plan-divider::before {
    top: -50px;
}

.plan-divider::after {
    bottom: -50px;
}

.plan-divider span {
    background: #f8fafc;
    padding: 10px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

/* ============================================
   卡片头部
   ============================================ */
.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.plan-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vip-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.plan-header h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 6px;
    font-weight: 700;
}

.plan-desc {
    font-size: 14px;
    color: #64748b;
}

/* ============================================
   价格区域
   ============================================ */
.plan-price {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    color: #10b981;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.price-value.permanent {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-note {
    font-size: 14px;
    color: #64748b;
}

/* ============================================
   特性列表
   ============================================ */
.plan-features {
    flex: 1;
    margin-bottom: 24px;
}

.feature-highlight {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.vip-highlight {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.feature-highlight strong {
    display: block;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 6px;
}

.feature-highlight p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px solid #f8fafc;
}

.feature-list li:last-child {
    border-bottom: none;
}

.check {
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
}

.vip-check {
    color: #f59e0b;
}

.warning-item {
    background: #fef2f2;
    margin: 0 -8px;
    padding: 10px 8px !important;
    border-radius: 6px;
    margin-top: 4px;
}

.warning-icon {
    color: #ef4444;
    font-weight: bold;
    flex-shrink: 0;
}

.warning-item strong {
    color: #dc2626;
}

/* ============================================
   CTA按钮
   ============================================ */
.plan-cta {
    margin-top: auto;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.cta-note {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
}

.vip-note {
    color: #f59e0b;
    font-weight: 600;
}

/* ============================================
   快速对比表格
   ============================================ */
.quick-compare {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.quick-compare h3 {
    text-align: center;
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 25px;
    font-weight: 700;
}

.compare-table-simple {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.compare-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    background: #ffffff;
    align-items: center;
}

.compare-row.header {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
}

.compare-row .cell {
    padding: 14px 16px;
    font-size: 14px;
    color: #475569;
}

.compare-row.header .cell {
    padding: 12px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-row .cell.label {
    font-weight: 600;
    color: #1e293b;
    background: #fafafa;
}

.compare-row .cell.highlight {
    background: #f0fdf4;
    color: #059669;
    font-weight: 600;
}

/* ============================================
   步骤流程
   ============================================ */
.steps-section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    color: #64748b;
    font-size: 15px;
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s;
}

.step:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.step-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto 12px;
}

.step-warning .step-num {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.step-content h4 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.text-warning {
    color: #dc2626;
}

/* 步骤连接线 */
@media (min-width: 768px) {
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 44px;
        right: -20px;
        width: 20px;
        height: 2px;
        background: linear-gradient(90deg, #3b82f6, transparent);
    }
    .step-warning:not(:last-child)::after {
        background: linear-gradient(90deg, #f59e0b, transparent);
    }
}

/* ============================================
   保障区域
   ============================================ */
.guarantee-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #fde68a;
    text-align: center;
}

.guarantee-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.guarantee-icon {
    font-size: 28px;
}

.guarantee-header h3 {
    font-size: 24px;
    color: #92400e;
    font-weight: 700;
}

.guarantee-subtitle {
    color: #92400e;
    font-size: 15px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.guarantee-item {
    background: rgba(255,255,255,0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #fde68a;
}

.guarantee-item strong {
    display: block;
    color: #78350f;
    font-size: 15px;
    margin-bottom: 6px;
}

.guarantee-item span {
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

/* ============================================
   重要说明
   ============================================ */
.notice-section {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 40px;
}

.notice-section h4 {
    color: #dc2626;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.notice-section h4 span {
    font-size: 20px;
}

.notice-section ul {
    list-style: none;
    color: #7f1d1d;
}

.notice-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.notice-section li::before {
    content: "!";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.notice-section li strong {
    font-weight: 700;
}

/* ============================================
   底部CTA
   ============================================ */
.final-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
}

.final-cta h3 {
    font-size: 28px;
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 700;
}

.final-cta > p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-group {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.cta-divider {
    font-size: 16px;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-outline {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    padding: 14px 36px;
    white-space: nowrap;
}

.btn-outline:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

.btn-gradient {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    padding: 16px 40px;
    font-size: 16px;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.support-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    margin-top: 10px;
}

.support-box span {
    color: #64748b;
    font-size: 14px;
}

.support-box a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.support-box a:hover {
    color: #2563eb;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 900px) {
    .plans-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .plan-divider {
        display: none;
    }
    
    .plan-recommended {
        order: -1;
    }
    
    .compare-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .compare-row .cell:first-child {
        grid-column: 1 / -1;
        background: #f8fafc;
        font-weight: 600;
        color: #1e293b;
        padding: 10px 16px;
    }
    
    .compare-row.header {
        display: none;
    }
    
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-divider {
        display: none;
    }
    
    .btn-outline,
    .btn-gradient {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }
    
    .plan-card {
        padding: 25px 20px;
    }
    
    .recommended-ribbon {
        font-size: 11px;
        padding: 5px 30px;
        right: -30px;
        top: 10px;
    }
    
    .quick-compare,
    .guarantee-section,
    .final-cta {
        padding: 25px 20px;
    }
    
    .support-box {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card,
.step,
.guarantee-item {
    animation: fadeInUp 0.5s ease-out;
}

.plan-recommended {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}
