/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Microsoft YaHei", sans-serif;
}

/* ========== 首页样式 ========== */

/* 首页三栏布局 */
.home-wrap {
    display: flex;
    width: 100%;
    height: 100vh;
}

.home-left {
    width: 40%;
    background: url(../images/1.jpg) center/cover no-repeat;
}

.home-center {
    width: 20%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    position: relative;
}

.home-right {
    width: 40%;
    background: url(../images/2.jpg) center/cover no-repeat;
}

/* 首页导航 */
.nav-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    width: 130px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.nav-item span {
    font-size: 12px;
    margin-top: 3px;
}

.item1 { background: #0088ee; }
.item2 { background: #38c138; }
.item3 { background: #ff9529; }
.item4 { background: #ed3939; }
.item5 { background: #e846b8; }
.item6 { background: #b864c8; }

/* 首页竖排标题与英文副标题 */
.vertical-title {
    writing-mode: vertical-rl;
    font-size: 72px;
    letter-spacing: 16px;
    font-weight: bold;
    color: #222;
}

.en-text {
    position: absolute;
    bottom: 30px;
    font-size: 24px;
    color: #444;
    white-space: nowrap;
    font-weight: bold;
}

/* ========== 子页面通用样式 ========== */

body {
    background: #fff;
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
}

/* 子页面容器 */
.page-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
}

.page-wrap h1 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 28px;
}

/* 返回首页按钮 */
.back-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2980b9;
}

/* ========== Home 个人简介页 ========== */

.page-wrap.home {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.photo-section {
    width: 100%;
    margin-bottom: 40px;
}

.photo-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.text-section {
    line-height: 2.2;
}

.text-section .cn {
    font-size: 18px;
    color: #222;
    margin-bottom: 30px;
}

.text-section .en-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.text-section .en-content {
    font-size: 15px;
    color: #444;
}

/* ========== 双语分栏布局 ========== */

.bilingual-container {
    width: 100%;
    max-width: 1250px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    position: relative;
    text-align: left;
    gap: 35px;
}

.divider-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #d1d9e6;
    transform: translateX(-50%);
}

.bilingual-en, .bilingual-zh {
    width: 48%;
}

.bilingual-container h2 {
    font-size: 24px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    margin-bottom: 25px;
}

.bilingual-container h3 {
    font-size: 18px;
    color: #3498db;
    margin: 22px 0 10px;
    display: inline-block;
}

.bilingual-container p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 8px;
    text-align: justify;
}

.section-item {
    margin-bottom: 20px;
}

/* ========== 链接组（科研成果页） ========== */

.link-group {
    display: inline-block;
    margin-left: 10px;
    white-space: nowrap;
}

.link-group a {
    color: #3498db;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #3498db;
    border-radius: 4px;
    font-size: 14px;
    margin: 0 3px;
    cursor: pointer;
}

.link-group a:hover {
    background: #3498db;
    color: #fff;
}

/* ========== 联系方式页 ========== */

.contact-info {
    font-size: 18px;
    line-height: 2;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ========== 移动端自适应 ========== */

@media (max-width: 992px) {
    .bilingual-container {
        flex-direction: column;
    }
    .divider-line {
        display: none;
    }
    .bilingual-en, .bilingual-zh {
        width: 100%;
    }
    .bilingual-en {
        padding-bottom: 30px;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .home-wrap {
        flex-direction: column;
        height: auto;
    }
    .home-left, .home-right {
        width: 100%;
        height: 200px;
    }
    .home-center {
        width: 100%;
        padding: 20px;
        flex-direction: column;
    }
    .vertical-title {
        font-size: 36px;
        letter-spacing: 8px;
    }
    .en-text {
        position: static;
        font-size: 16px;
    }
}
