/**
 * 劳模工匠助企行首页 - 样式表
 * 文件位置: /public/templates/pc/css/labormodel.css
 * 依赖: common.css (CSS变量)
 */

/* ========== 主容器布局 ========== */
.main-container {
    display: flex;
    background-color: #EEF5FB;
    min-height: 600px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-area {
    flex: 1;
    background: #fff;
}

.content-area .detail-top {
    width: 100%;
}

.content-area .title {
    width: 100%;
    height: 150px;
    background: url('/templates/pc/images/larm-title.png') no-repeat center center;
    background-size: 100% 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 17px;
}

.content-area .title-inner {
    width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    float: right;
}

.content-area .title .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-area .title span {
    width: 71px;
    height: 17px;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 17px;
    color: #005CD5;
    padding: 0 10px;
}

.content-area .detail-top .title {}

.content-area .title span {
    width: auto;
    height: 17px;
    font-family: PingFang SC;
    font-weight: 500;
    font-size: 17px;
    color: #005CD5;
}

.content-area .news {
    width: 100%;
    position: relative;
}

.content-area .news img {
    width: 100%;
    margin-top: 32px;
    display: block;
}

.content-area .more {
    position: absolute;
    right: 0;
    bottom: -5px;
    color: #939393;
    font-size: 16px;
}

.content-area .fc {
    width: 100%;
    position: relative;
}

.content-area .fc img {
    width: 100%;
    margin-top: 32px;
    display: block;
}

.news-container {
    width: 100%;
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.news-container .news-right {
    flex: 1;
    height: 100%;

}

.news-container .news-right .swiper-wrapper {
    width: 100%;
    height: 380px;
}

.news-container .news-right .swiper-slide {
    width: 100%;
    height: 100%;
}

.news-container .news-left {
    width: 550px;
    height: 500px;
    position: relative;
}

.mySwiper {
    height: 100%;
}

.news-container .news-left .swiper-wrapper {
    width: 100%;
    height: 380px;
}

.news-container .news-left .swiper-slide {
    width: 100%;
    height: 100%;
    font-family: PingFang SC;
    font-weight: bold;
    font-size: 23px;
    color: #005CD5;
}

.news-container .news-left .swiper-slide p {
    margin-top: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 限制2行 */
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-all;
}

.news-container .news-left .swiper-slide img {
    width: 100%;
    height: 100%;
}

.news-container .news-left .swiper-slide .news-title {
    position: absolute;
    bottom: 0;
}

.news-container .news-left img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.news-container .news-left .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.news-container .news-left .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 1;
    border-radius: 50%;
    margin: 0 5px;
    border: 1px solid #005CD5;
}

.news-container .news-left .swiper-pagination-bullet-active {
    background: #005CD5;
}

.swiper-button-prev,
.swiper-button-next {
    display: none;
}

.news-right ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-right ul li {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #939393;
    height: 100px;
    font-family: PingFang SC;
    font-weight: bold;
    font-size: 17px;
    color: #000000;
}

.news-right ul li p {
    display: block;
    height: 80px;
    margin-top: -10px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-all;
}

.news-right ul li .left {
    width: 80px;
    border-right: 1px solid #005CD5;
    margin-right: 10px;
    margin-top: -10px;
    height: 80px;
    display: block;
    width: 120px;
}

.news-right ul li .left .day {
    display: block;
    font-size: 38px;
    font-weight: bold;
    color: #005CD5;
    text-align: center;
    width: 100%;
}


.news-right ul li .left .year {
    display: block;
    font-family: PingFang SC;
    font-weight: 800;
    font-size: 15px;
    color: #000000;
    text-align: center;
    width: 100%;
}

.personal-container {
    width: 100%;
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.personal-container .cates {
    width: 150px;
    height: 365px;
}

.personal-container .cates ul {
    width: 100%;
    height: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.personal-container .cates ul li {
    width: 100%;
    height: 66px;
    background: url('/templates/pc/images/pleft.png') no-repeat center center;
    background-size: 100% 100%;
    font-family: PingFang SC;
    font-weight: 800;
    font-size: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personal-container .list {
    flex: 1;
}

.personal-container .list ul{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    gap: 35px;
}

/* 卡片 li 整体 */
.personal-container .list ul li {
    width: 100%;
    height: 162px;
    background: linear-gradient(160deg, #D8EBFF 0%, #EEF6FF 60%, #FFFFFF 100%);
    border-radius: 10px;
    border: 1px solid #BDD8F7;
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
}

/* 选中/高亮卡片（虚线边框 + 浅蓝背景） */
.personal-container .list ul li.card-selected {
    border: 2px dashed #4EA3F0;
    background: linear-gradient(160deg, #C6E0FF 0%, #E0F0FF 60%, #F5FAFF 100%);
}

.personal-container .list ul li:hover {
    box-shadow: 0 4px 18px rgba(0, 92, 213, 0.18);
    border-color: #4EA3F0;
}

/* 卡片内部 a 链接 */
.personal-container .list ul li > a {
    display: flex;
    align-items: flex-start;
    padding: 12px 10px 10px 10px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 卡片头像 */
.personal-container .list ul li img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 10px;
}

/* 卡片右侧信息区 */
.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: PingFang SC, sans-serif;
}

/* 姓名行 */
.card-name {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.card-name .name {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

/* 徽章 */
.card-name .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.card-name .badge.verified {
    background: #F0A500;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    padding: 0;
    font-size: 13px;
}

.card-name .badge.expert {
    background: linear-gradient(90deg, #3A8BEF, #005CD5);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 擅长方向 */
.card-skill {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 过往案例区 */
.card-cases {
    flex: 1;
}

.cases-label {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin-bottom: 2px;
}

.cases-item {
    font-size: 11px;
    color: #555;
    display: flex;
    align-items: center;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 省略号填充（用于"2022年…………能源化工"效果） */
.dots {
    flex: 1;
    border-bottom: 1px dotted #999;
    margin: 0 4px;
    min-width: 20px;
}

/* 显示更多 */
.card-more {
    font-size: 12px;
    color: #005CD5;
    text-align: right;
    margin-top: 6px;
    cursor: pointer;
}

.card-more:hover {
    text-decoration: underline;
}