/* Features 页面样式 */
:root {
    --brand-primary: #2563eb;
    --brand-primary-dark: #1d4ed8;
    --brand-primary-light: #dbeafe;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-heading: #334155;
    --border-subtle: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-section: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
}

/* Hero 区域样式 */
.features-hero {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/features.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    z-index: 2;
}

.features-hero .container {
    position: relative;
    z-index: 3;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.features-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.features-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 通用区域样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 版本对比区域 */
.version-comparison {
    padding: 100px 0;
    background-color: var(--bg-light);
}

/* 现代化对比表格样式 */
.comparison-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-section);
}

.comparison-table {
    display: flex;
    flex-direction: column;
}

/* 表头样式 */
.table-header {
    display: flex;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    font-weight: 700;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.feature-col {
    flex: 3;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.free-col, .premium-col {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.version-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.version-badge.free {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.version-badge.premium {
    background: #fbbf24;
    color: #334155;
}

/* 功能分类样式 */
.feature-category {
    border-bottom: 1px solid var(--border-subtle);
}

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

.feature-category.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-left: 4px solid #fbbf24;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(248, 250, 252, 0.7);
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.category-header i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* 功能项样式 */
.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

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

.feature-item:hover {
    background-color: rgba(37, 99, 235, 0.03);
}

.feature-name {
    flex: 3;
    padding: 0 1.25rem;
    font-weight: 500;
    color: var(--text-heading);
    display: flex;
    align-items: center;
}

.feature-status {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    height: 100%;
}

.feature-status.free {
    color: #64748b;
}

.feature-status.premium {
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--brand-primary);
    position: relative;
}

.feature-status.free .fa-check {
    color: #10b981;
}

.feature-status.premium .fa-check {
    color: var(--brand-primary);
}

.feature-status.free .fa-times {
    color: #ef4444;
}

.feature-status.premium .fa-times {
    color: #ef4444;
}

.feature-status.text-support {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.feature-status.free.text-support {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.feature-status.premium.text-support {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary);
    font-weight: 700;
}

/* 添加动画效果 */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.05) 100%);
    transition: width 0.3s ease;
}

.feature-item:hover::before {
    width: 10px;
}

/* CTA 区域 */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background: white;
    color: var(--brand-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
        justify-content: center;
    }
    
    /* 对比表格响应式样式 */
    .comparison-container {
        max-width: 100% !important;
    }
    
    .table-header,
    .feature-item {
        flex-direction: column;
    }
    
    .feature-col,
    .free-col,
    .premium-col,
    .feature-name {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: center;
    }
    
    .feature-name {
        padding: 1rem;
        font-weight: 700;
        background: rgba(248, 250, 252, 0.7);
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .feature-status {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .feature-status:last-child {
        border-bottom: none;
    }
    
    .feature-item:last-child .feature-status:last-child {
        border-bottom: none;
    }
    
    .category-header {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .version-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .feature-status.text-support {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .feature-category.highlight {
        border-left: none;
        border-top: 4px solid #fbbf24;
    }
}