/* ===========================================
   门店通 - 解决方案列表页样式
   设计理念：清晰、专业、易于导航
   =========================================== */

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

.page-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: 3.5rem;
    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. 解决方案筛选 ---------- */
.solutions-filter {
    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);
}

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

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

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-tag {
    padding: 0.5rem 1.25rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #e5e7eb;
    color: #374151;
}

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

.filter-divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
}

.filter-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.filter-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: white;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ---------- 3. 解决方案列表 ---------- */
.solutions-list {
    padding: 4rem 0;
    background: #f9fafb;
}

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

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

.solution-card:hover {
    transform: translateY(-8px);
    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;
}

.solution-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.1));
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    z-index: 1;
}

.solution-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.solution-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;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.3;
}

.solution-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.solution-highlights {
    margin: 1.5rem 0;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.highlight i {
    color: #10b981;
    font-size: 0.75rem;
}

.solution-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

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

.solution-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.solution-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.solution-link:hover {
    color: #6d28d9;
    gap: 0.5rem;
}

.solution-link i {
    transition: transform 0.2s ease;
}

.solution-link:hover i {
    transform: translateX(4px);
}

/* ---------- 4. 行业解决方案 ---------- */
.industry-solutions {
    padding: 4rem 0;
    background: white;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.industry-tab {
    padding: 1rem 2rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.industry-tab:hover {
    background: #f3f4f6;
    color: #374151;
}

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

.industry-tab i {
    font-size: 1.125rem;
}

.industry-overview {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.industry-overview h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.industry-overview p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b7280;
}

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

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

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.feature-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;
    margin: 0 auto 1.5rem;
}

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

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

/* ---------- 5. 解决方案对比 ---------- */
.solution-comparison {
    padding: 4rem 0;
    background: #f9fafb;
}

.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;
}

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

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

.comparison-table th:first-child {
    background: white;
    position: sticky;
    left: 0;
    z-index: 20;
    border-right: 1px solid #e5e7eb;
}

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

.comparison-table td:first-child {
    background: white;
    font-weight: 500;
    color: #111827;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 1px solid #e5e7eb;
}

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

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

/* ---------- 6. 常见问题 ---------- */
.solution-faq {
    padding: 4rem 0;
    background: white;
}

.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;
}

.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;
}

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

.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: #f9fafb;
    border-top: 1px solid transparent;
}

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

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

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

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

.solution-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;
}

/* ---------- 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;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content .subtitle {
        font-size: 1.125rem;
    }
    
    .solutions-filter {
        position: static;
    }
    
    .filter-tags {
        gap: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .industry-tab {
        justify-content: center;
    }
    
    .industry-features {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .solution-content {
        padding: 1.5rem;
    }
    
    .solution-footer {
        padding: 1rem 1.5rem;
    }
    
    .comparison-table {
        border-radius: 0.5rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
    }
}