/* ===== 技术服务页面专用样式 ===== */

/* 静态 Banner */
.page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 250px;
    background-image: url('/assets/home/images/technical-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 142, 79, 0.8) 0%, rgba(0, 142, 79, 0.4) 100%);
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner h1 span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #008e4f;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #008e4f;
    font-weight: 500;
}

/* ===== 主体内容区域 - 左右布局 ===== */
.technical-page {
    max-width: 1400px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

/* ===== 左侧分类导航 - 修改为与新闻页面一致 ===== */
.technical-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 技术服务分类 - 移除单独的sticky */
.service-menu {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-menu__title {
    background: #008e4f;
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-menu__title i {
    font-size: 1.2rem;
}

.service-menu__list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.service-menu__item {
    margin: 0;
    padding: 0;
}

.service-menu__item a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    gap: 0.5rem;
    justify-content: space-between;
}

.service-menu__item a i {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.service-menu__item a:hover {
    background-color: #f8fafc;
    color: #008e4f;
    border-left-color: #008e4f;
}

.service-menu__item a:hover i {
    color: #008e4f;
    transform: translateX(3px);
}

.service-menu__item.active a {
    background-color: rgba(0, 142, 79, 0.05);
    color: #008e4f;
    border-left-color: #008e4f;
    font-weight: 500;
}

.service-menu__item.active a i {
    color: #008e4f;
}

.service-menu__count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-menu__item.active .service-menu__count {
    background: #008e4f;
    color: white;
}

/* 联系方式卡片 - 移除单独的sticky和复杂计算 */
.contact-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.contact-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #008e4f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card__title i {
    color: #008e4f;
    font-size: 1.2rem;
}

.contact-card__item {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.contact-card__item i {
    color: #008e4f;
    font-size: 1rem;
    width: 20px;
    margin-top: 3px;
}

.contact-card__item-content {
    flex: 1;
}

.contact-card__item-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-card__item-value {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-card__item-value a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card__item-value a:hover {
    color: #008e4f;
}

.contact-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #008e4f;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-card__btn:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.2);
}

/* ===== 右侧技术服务列表 ===== */
.technical-main {
    flex: 1;
}

/* 列表头部 */
.technical-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.technical-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
}

.technical-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.technical-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
}

.technical-sort select {
    padding: 0.5rem 1rem;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #334155;
    outline: none;
    cursor: pointer;
    background: transparent;
}

.technical-sort i {
    color: #94a3b8;
    margin-right: 0.3rem;
}

/* 技术服务列表 - 一行一条，横着放 */
.technical-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 技术服务卡片 - 水平布局 */
.technical-card {
    display: flex;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.technical-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #008e4f;
}

.technical-card__image {
    width: 200px;
    flex-shrink: 0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-right: 1px solid #e2e8f0;
}

.technical-card__image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s;
}

.technical-card:hover .technical-card__image img {
    transform: scale(1.05);
}

.technical-card__content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.technical-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.technical-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.technical-card__title a:hover {
    color: #008e4f;
    text-decoration: none;
    padding-left: 3px;
}

.technical-card__desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.technical-card__meta {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.technical-card__date {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.technical-card__date i {
    color: #008e4f;
    font-size: 0.8rem;
}

.technical-card__views {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.technical-card__views i {
    color: #008e4f;
    font-size: 0.8rem;
}

/* ===== 统一分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-item:hover:not(.disabled):not(.active) {
    border-color: #008e4f;
    color: #008e4f;
    background: #f8fafc;
}

.page-item.active {
    background: #008e4f;
    border-color: #008e4f;
    color: white;
}

.page-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.page-dots {
    color: #94a3b8;
    padding: 0 5px;
    font-size: 0.9rem;
}

.page-item i {
    font-size: 0.8rem;
}

/* 无数据样式 */
.no-data {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 1.1rem;
    width: 100%;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1024px) {
    .technical-page {
        flex-direction: column;
    }

    .technical-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        gap: 1.5rem;
    }

    .service-menu,
    .contact-card {
        width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 180px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .technical-sidebar {
        flex-direction: column;
    }

    .service-menu,
    .contact-card {
        width: 100%;
    }

    .technical-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .technical-sort {
        width: 100%;
    }

    .technical-sort select {
        width: 100%;
    }

    .technical-card {
        flex-direction: column;
    }

    .technical-card__image {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-item {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .technical-card__meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .technical-page {
        padding: 0 1rem;
    }

    .technical-card__meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 移除重复的标题链接样式 */
.technical-card__title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.technical-card__title a:hover {
    color: #008e4f;
    text-decoration: none;
    padding-left: 3px;
}

.news-card__title a:hover {
    color: #008e4f;
}