/* ===========================================
   门店通 - 产品功能页样式
   设计理念：清晰、系统化、易浏览
   =========================================== */

/* ---------- 1. 页面Header ---------- */
.features-header {
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #111827 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content .subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ---------- 2. 功能导航 ---------- */
.features-nav {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 5rem;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.nav-container h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 600;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.nav-tab.active {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.nav-tab i {
    font-size: 1rem;
}

/* ---------- 3. 功能模块 ---------- */
.feature-module {
    padding: 5rem 0;
    background: white;
    position: relative;
}

.feature-module:nth-child(even) {
    background: #f9fafb;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.module-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #7c3aed;
}

.module-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.module-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #7c3aed;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #7c3aed;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.feature-stats {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: center;
}

.feature-stats .stat {
    text-align: center;
}

.feature-stats .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
}

.feature-stats .label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ---------- 4. 平台通用功能 ---------- */
.platform-features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.platform-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.platform-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #3b82f6;
    margin: 0 auto 1.5rem;
}

.platform-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.platform-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ---------- 5. 功能对比表 ---------- */
.features-comparison {
    padding: 5rem 0;
    background: white;
}

.comparison-table {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    overflow-x: auto;
}

.table-container {
    min-width: 800px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    padding: 1.5rem;
    background: #f9fafb;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table th.feature-col {
    text-align: left;
    background: white;
    position: sticky;
    left: 0;
    z-index: 20;
    border-right: 1px solid #e5e7eb;
    width: 300px;
    min-width: 200px;
}

.comparison-table th.plan-col {
    min-width: 200px;
}

.comparison-table th.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(79, 70, 229, 0.05));
    border: 2px solid #7c3aed;
    position: relative;
}

.plan-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #7c3aed;
    margin-bottom: 1rem;
}

.plan-price span {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: normal;
}

.plan-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.plan-btn:hover {
    background: #e5e7eb;
}

.plan-btn.primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    border-color: #7c3aed;
}

.plan-btn.primary:hover {
    background: linear-gradient(135deg, #6d28d9, #4338ca);
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: #111827;
    text-align: left;
    background: white;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 1px solid #f3f4f6;
    width: 300px;
    min-width: 200px;
}

.comparison-table tr:hover td {
    background: #f9fafb;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr.category-header td {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
    font-size: 1.125rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr.category-header td:first-child {
    background: #f3f4f6;
    border-right: 1px solid #e5e7eb;
}

.comparison-table i.fa-check {
    color: #10b981;
    font-size: 1.125rem;
}

.comparison-table i.fa-times {
    color: #ef4444;
    font-size: 1.125rem;
}

/* ---------- 6. 常见问题 ---------- */
.features-faq {
    padding: 5rem 0;
    background: #f9fafb;
}

.faq-grid {
    max-width: 48rem;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.faq-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question h4 {
    font-size: 1rem;
    color: #111827;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: #9ca3af;
    transition: transform 0.2s ease;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: #7c3aed;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
    border-top-color: #e5e7eb;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ---------- 7. CTA区域 ---------- */
.features-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    text-align: center;
}

.features-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.cta-features i {
    color: #10b981;
    margin-right: 0.5rem;
}

/* ---------- 8. 动画 ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 9. 响应式设计 ---------- */
@media (max-width: 1024px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .features-header {
        padding: 4rem 0 3rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content .subtitle {
        font-size: 1.125rem;
    }
    
    .features-nav {
        position: static;
    }
    
    .nav-tabs {
        gap: 0.5rem;
    }
    
    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .module-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .comparison-table table {
        font-size: 0.75rem;
    }
    
    .plan-btn {
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
    }
}