/* 解决方案详情页样式 */

/* 主内容区 */
.main-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* 解决方案详情容器 */
.solution-detail {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 解决方案头部 */
.solution-header {
    margin-bottom: 2rem;
}

/* 解决方案分类标签 */
.solution-category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 解决方案标题 */
.solution-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* 解决方案元信息 */
.solution-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 元信息项 */
.meta-item {
    display: inline-block;
    margin-right: 1rem;
}

.meta-item i {
    margin-right: 0.25rem;
}

/* 解决方案章节 */
.solution-section {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
}

.solution-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 章节标题 */
.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    text-align: left;
}

/* 覆盖common.css中的全局section-title::after样式 */
.section-title::after {
    display: none;
}

.section-title-text {
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.section-title-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    border-radius: 1px;
}

.section-title i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    color: #007bff;
    flex-shrink: 0;
}

/* 章节内容 */
.section-content {
    color: #495057;
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* 技术栈 */
.tech-stack {
    margin: 1rem 0;
}

.tech-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    background-color: #6c757d;
    color: white;
    transition: all 0.3s ease;
}

.tech-item .badge:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 功能列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.feature-item i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* 成果统计 */
.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 返回列表按钮 */
.back-to-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-list:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .solution-detail {
        padding: 1.5rem;
    }
    
    .solution-title {
        font-size: 1.75rem;
    }
    
    .result-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .meta-item {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

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

.solution-section {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.solution-section:nth-child(1) { animation-delay: 0.1s; }
.solution-section:nth-child(2) { animation-delay: 0.2s; }
.solution-section:nth-child(3) { animation-delay: 0.3s; }
.solution-section:nth-child(4) { animation-delay: 0.4s; }
.solution-section:nth-child(5) { animation-delay: 0.5s; }

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
