/* 版本功能对比页面样式 */

/* Hero 区域 */
.compare-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
    text-align: center;
}

.compare-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.compare-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.compare-hero-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color, #EF443B);
    top: -100px;
    right: 10%;
}

.compare-hero-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-color, #EF443B);
    bottom: -50px;
    left: 5%;
    opacity: 0.2;
}

.compare-hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.compare-hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(239, 68, 59, 0.15);
    border: 1px solid rgba(239, 68, 59, 0.3);
    border-radius: 50px;
    color: var(--primary-color, #EF443B);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.compare-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.compare-hero-title .text-primary {
    color: var(--primary-color, #EF443B);
}

.compare-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 版本卡片区域 */
.compare-plans {
    padding: 60px 0;
    background: #f8f9fa;
}

.compare-plans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.compare-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.compare-plan-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compare-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.compare-plan-popular {
    border: 2px solid var(--primary-color, #EF443B);
}

.compare-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color, #EF443B);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.compare-plan-header {
    margin-bottom: 24px;
}

.compare-plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.compare-plan-desc {
    font-size: 14px;
    color: #666;
}

/* 功能对比表格区域 */
.compare-table-section {
    padding: 80px 0;
    background: #fff;
}

.compare-table-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.compare-category {
    margin-bottom: 60px;
}

.compare-category:last-child {
    margin-bottom: 0;
}

.compare-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}

.compare-category-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color, #EF443B);
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 700px;
}

.compare-table thead {
    background: #f8f9fa;
}

.compare-table th {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    border-bottom: 2px solid #eee;
}

.compare-table th.feature-col {
    text-align: left;
    width: 30%;
}

.compare-table th.highlight {
    background: rgba(239, 68, 59, 0.08);
    color: var(--primary-color, #EF443B);
}

.compare-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.compare-table td.feature-col {
    text-align: left;
    font-weight: 500;
    color: #1a1a1a;
}

.compare-table td.highlight {
    background: rgba(239, 68, 59, 0.03);
}

.compare-table tbody tr:hover {
    background: #fafafa;
}

.compare-table tbody tr:hover td.highlight {
    background: rgba(239, 68, 59, 0.06);
}

.compare-table td small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* 功能解释样式 */
.feature-col {
    position: relative;
}

.feature-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: none;
    padding: 0;
    line-height: 1;
}

.feature-toggle:hover {
    background: var(--primary-color, #EF443B);
    color: #fff;
}

.feature-toggle.active {
    background: var(--primary-color, #EF443B);
    color: #fff;
    transform: rotate(45deg);
}

.feature-desc {
    display: none;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 2px solid var(--primary-color, #EF443B);
    animation: fadeIn 0.2s ease;
}

.feature-desc.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 状态标识 */
.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.dash {
    color: #ccc;
    font-size: 18px;
}

.addon {
    display: inline-block;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.limited {
    display: inline-block;
    padding: 4px 10px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* CTA 区域 */
.compare-cta {
    padding: 80px 0;
    background: #f8f9fa;
}

.compare-cta-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.compare-cta-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compare-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--primary-color, #EF443B);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.compare-cta-content {
    position: relative;
    z-index: 1;
}

.compare-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.compare-cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.compare-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式补充 */
.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1a1a1a;
}

.compare-plan-card .btn-outline {
    border-color: #ddd;
    color: #333;
}

.compare-plan-card .btn-outline:hover {
    border-color: var(--primary-color, #EF443B);
    background: var(--primary-color, #EF443B);
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .compare-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compare-hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .compare-hero {
        padding: 100px 0 60px;
    }
    
    .compare-hero-title {
        font-size: 28px;
    }
    
    .compare-hero-desc {
        font-size: 16px;
    }
    
    .compare-plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .compare-category-title {
        font-size: 20px;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .compare-cta-box {
        padding: 40px 24px;
    }
    
    .compare-cta-title {
        font-size: 28px;
    }
    
    .compare-cta-desc {
        font-size: 16px;
    }
    
    .compare-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .compare-cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .compare-hero-title {
        font-size: 24px;
    }
    
    .compare-table th.feature-col,
    .compare-table td.feature-col {
        min-width: 120px;
    }
}
