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

/* 分类导航样式 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    list-style-type: none;
}

.category-nav li {
    margin: 5px;
}

.category-nav a {
    display: inline-block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 1px solid var(--border-color);
}

.category-nav a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(8, 102, 255, 0.15);
}

.category-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(8, 102, 255, 0.25);
}

/* 内容区域样式 */
section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    padding: 30px;
    margin-bottom: 40px;
}

/* 文章样式 */
article {
    max-width: 100%;
}

article h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

article h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

article p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

article img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 25px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 80%;
    display: block;
}

article img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 特点列表 */
.features-list {
    margin: 30px 0;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    list-style-type: none;
}

.features-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

/* 产品规格表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.specs-table tr:nth-child(even) {
    background-color: #f8fafc;
}

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

/* 应用场景卡片 */
.application-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.application-card {
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.application-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.application-card h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.application-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-nav {
        padding: 10px;
        justify-content: center;
    }
    
    .category-nav a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    section {
        padding: 20px;
    }
    
    article h2 {
        font-size: 1.5rem;
    }
    
    .application-cards {
        grid-template-columns: 1fr;
    }
    
    .specs-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .category-nav a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    section {
        padding: 15px;
    }
    
    article img {
        margin: 15px 0;
    }
}