/* 新增板块样式（仅用于“兴趣交流”“合作邀请”页新增结构，不改动模板原有样式） */
.xwh-interest {
    border: 1px solid #d6e4f0;
    border-top: 3px solid #196CA2;
    background: #fff;
    margin: 0 0 34px;
}

.xwh-interest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 22px;
    background: #eef6fb;
    border-bottom: 1px solid #d6e4f0;
}

.xwh-interest-head h4 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #0965A5;
}

.xwh-meta {
    font-size: 15px;
    line-height: 1.6;
    color: #196CA2;
}

.xwh-meta span {
    display: inline-block;
    margin-left: 18px;
}

.xwh-interest-body {
    display: flex;
    gap: 24px;
    padding: 22px;
}

.xwh-cover {
    flex: 0 0 300px;
    width: 300px;
    height: 180px;
    border: 1px solid #cfe0ef;
    box-shadow: 0 3px 12px rgba(3, 41, 67, 0.12);
    overflow: hidden;
}

.xwh-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xwh-desc {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.xwh-desc p {
    margin-bottom: 10px;
}

.xwh-label {
    display: block;
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #005c96;
}

.xwh-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xwh-list li {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.xwh-gallery {
    margin: 0 22px 20px;
    padding-top: 16px;
    border-top: 1px dashed #c9dced;
}

.xwh-gallery-title {
    font-size: 16px;
    font-weight: 700;
    color: #005c96;
    margin-bottom: 12px;
}

.xwh-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.xwh-slot {
    flex: 1 1 180px;
    min-width: 150px;
    height: 110px;
    border: 1px solid #cfe0ef;
    background: #f6fafd;
    overflow: hidden;
    color: #7fa0b8;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.xwh-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xwh-note {
    margin-top: 18px;
}

.xwh-note-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #005c96;
}

.xwh-project {
    border: 1px solid #d6e4f0;
    border-top: 3px solid #196CA2;
    background: #fff;
    margin: 0 0 34px;
}

.xwh-project .tabs_box {
    padding: 18px 22px 0;
}

.xwh-project .tabs_box table {
    table-layout: fixed;
    min-width: 720px;
}

.xwh-project .tabs_box table th:nth-child(1) {
    width: 30%;
}

.xwh-project .tabs_box table th:nth-child(2) {
    width: 12%;
}

.xwh-project .tabs_box table th:nth-child(3) {
    width: 15%;
}

.xwh-project .tabs_box table th:nth-child(4) {
    width: 13%;
}

.xwh-project .tabs_box table th:nth-child(5) {
    width: 30%;
}

.xwh-project-body {
    display: flex;
    gap: 24px;
    padding: 22px;
}

.xwh-project-body .xwh-desc {
    font-size: 17px;
}

/* 个人信息页表格：统一列宽，保证多个表格的列上下对齐 */
.post-31 .tabs_box table.xwh-align {
    width: 100%;
    table-layout: fixed;
}

.post-31 .tabs_box table.xwh-align th,
.post-31 .tabs_box table.xwh-align td {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    word-break: break-word;
}

.post-31 .tabs_box table.xwh-align th {
    white-space: normal;
}

/* 3 列表格：名称列占满，类型/时间两列收窄靠右 */
.post-31 .tabs_box table.xwh-align th:nth-child(1) {
    width: 70%;
}

.post-31 .tabs_box table.xwh-align th:nth-child(2) {
    width: 15%;
}

.post-31 .tabs_box table.xwh-align th:nth-child(3) {
    width: 15%;
}

/* 项目经历：名称列 40%，其后 4 列等宽 */
.post-31 .tabs_box table.xwh-align-5 th:nth-child(1) {
    width: 40%;
}

.post-31 .tabs_box table.xwh-align-5 th:nth-child(2),
.post-31 .tabs_box table.xwh-align-5 th:nth-child(3),
.post-31 .tabs_box table.xwh-align-5 th:nth-child(4),
.post-31 .tabs_box table.xwh-align-5 th:nth-child(5) {
    width: 15%;
}

/* 见习参观：地址列加宽，时间与其他表最后一列对齐 */
.post-31 .tabs_box table.xwh-visit th:nth-child(1) {
    width: 30%;
}

.post-31 .tabs_box table.xwh-visit th:nth-child(2) {
    width: 55%;
}

.post-31 .tabs_box table.xwh-visit th:nth-child(3) {
    width: 15%;
}

/* 图片点击放大查看 */
.xwh-cover img,
.xwh-slot img {
    cursor: zoom-in;
}

.xwh-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.xwh-lightbox img {
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 86vh;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.xwh-lightbox-close {
    position: absolute;
    top: 14px;
    right: 26px;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.xwh-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    padding: 0 16px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 999px) {
    .xwh-interest-body,
    .xwh-project-body {
        flex-direction: column;
    }

    .xwh-cover {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .xwh-project .tabs_box {
        padding: 12px 12px 0;
        overflow-x: auto;
    }
}
