/* ============================================================
   solutions.css — 迈驰智能技术（江苏）有限公司
                  "解决方案" 列表页 + 详情页 合并样式
   版本: 2.0
   说明: 解决方案列表页（solutions.html）与解决方案详情页
         （solution-detail.html）的完整样式。
         全局基础、导航、页面横幅、底部版权等请引用 common.css。
   ============================================================ */

/* ============================================================
   第一部分：详情页布局
   ============================================================ */

.detail-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ============================================================
   第二部分：详情页左侧分类树（6个一级分类）
   ============================================================ */

.category-sidebar {
    flex: 0 0 280px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0 0 12px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.category-sidebar::-webkit-scrollbar {
    width: 4px;
}
.category-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
.category-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.category-sidebar .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    padding: 16px 20px;
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    letter-spacing: 0.5px;
}

/* 一级分类（无二级展开） */
.cat-item {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all var(--transition);
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.cat-item:last-child {
    border-bottom: none;
}
.cat-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
.cat-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   第三部分：解决方案列表页专属（solutions.html）
   ============================================================ */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.solution-card .img-link {
    display: block;
    overflow: hidden;
}
.solution-card .img-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}
.solution-card:hover .img-link img {
    transform: scale(1.03);
}

.solution-card .card-body {
    padding: 20px 22px 26px;
}
.solution-card .card-body .title-link {
    display: block;
    transition: color var(--transition);
}
.solution-card .card-body .title-link h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.solution-card .card-body .title-link:hover h3 {
    color: var(--primary);
}
.solution-card .card-body p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.solution-card .card-body .link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.solution-card .card-body .link:hover {
    gap: 10px;
}

/* ============================================================
   第四部分：解决方案详情页专属（solution-detail.html）
   ============================================================ */

.detail-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 36px 48px;
    box-shadow: var(--shadow);
}
.detail-content .content-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.detail-content .content-title .highlight {
    color: var(--primary);
}
.detail-content .divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 20px;
}
.detail-content .content-body {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.9;
}
.detail-content .content-body p {
    margin-bottom: 16px;
}
.detail-content .content-body p:last-child {
    margin-bottom: 0;
}
.detail-content .content-body strong {
    color: var(--text-dark);
}

/* ============================================================
   第五部分：解决方案页导航高亮（纯 CSS 控制）
   ============================================================ */
.nav-menu > li > a[href="/solutions.html"].active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}
.navbar.scrolled .nav-menu > li > a[href="/solutions.html"].active {
    color: var(--primary);
    background: rgba(0, 82, 217, 0.06);
}

/* ============================================================
   第六部分：响应式
   ============================================================ */

/* 1024px 以下 */
@media (max-width: 1024px) {
    /* 列表页 */
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    /* 详情页 */
    .category-sidebar {
        flex: 0 0 240px;
    }
}

/* 768px 以下 */
@media (max-width: 768px) {
    /* 列表页 */
    .solution-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    /* 详情页 */
    .detail-layout {
        flex-direction: column;
        gap: 30px;
    }
    .category-sidebar {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        padding: 0 0 12px 0;
    }
    .category-sidebar .sidebar-title {
        font-size: 18px;
    }
    .cat-item {
        font-size: 15px;
        padding: 12px 18px;
    }
    .detail-content {
        padding: 30px 24px 36px;
    }
    .detail-content .content-title {
        font-size: 24px;
    }
}

/* 480px 以下 */
@media (max-width: 480px) {
    /* 列表页 */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .solution-card .img-link img {
        height: 160px;
    }
    /* 详情页 */
    .detail-content {
        padding: 24px 16px 28px;
    }
    .detail-content .content-title {
        font-size: 20px;
    }
    .detail-content .content-body {
        font-size: 14px;
    }
    .category-sidebar .sidebar-title {
        font-size: 17px;
        padding: 14px 16px;
    }
    .cat-item {
        font-size: 14px;
        padding: 10px 16px;
    }
}