/* ======= Global Layout ======= */
body{
    font-family:'Arial',sans-serif;
    line-height:1.15;
    max-width:1000px;
    margin:0 auto;
    padding:10px;
    background:#f5f5f5;
}

/* ======= Header ======= */
.header{
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:2px solid #333;
}
.header h1{font-size:2.2em;margin:0;}
.header-container{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.header-text{flex:1;margin-right:10px;}
.header-photo img{max-width:160px;height:auto;border-radius:77%;}

/* ======= Section Wrapper ======= */
.section{
    background:#fff;
    padding:12px;
    margin:12px 0;
    border-radius:6px;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.section h2{
    border-left:4px solid #e70000;
    padding-left:8px;
    margin:4px 0 12px;
}

/* ======= Sub-Section Titles ======= */
.sub-section > h3{
    color:#2c3e50;
    border-bottom:2px solid #3498db;
    position:relative;
    padding-bottom:4px;
    margin:15px 0 8px;
    font-size:1.15em;
}
.sub-section > h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:40px;
    height:2px;
    background:#3498db;
}

/* ======= List Items ======= */
.education-item,
.publication-item,
.teaching-item,
.others-item{
    margin:10px 0;
    padding:6px 8px;
    border-left:3px solid #3498db;
    border-radius:4px;
    background:#f9f9f9;
    transition:transform .3s;
    font-size:0.9em;
}
.education-item:hover,
.publication-item:hover,
.teaching-item:hover,
.others-item:hover{transform:translateX(8px);}

.date{color:#7f8c8d;font-style:italic;margin:2px 0;}

/* ======= Skills ======= */
.skills{list-style:none;padding:0;margin:5px 0;}
.skills li{
    display:inline-block;
    background:#ecf0f1;
    padding:5px 12px;
    margin:3px;
    border-radius:18px;
    font-size:.9em;
}

/* ======= Teaching Item ======= */
.teaching-item h3{margin:0 0 3px;font-size:1em;}
.teaching-item .role{margin:0 0 3px;font-size:.9em;}
.teaching-item .location{margin:0;font-size:.85em;}

/* ======= Publication Title (no underline) ======= */
.publication-item h3{
    border-bottom:none;          /* 去掉论文标题那条线 */
    padding-bottom:0;
    margin:0 0 4px;
    font-size:1.05em;
    font-weight:600;
}

/* 论文标题作为超链接时的样式 */
.publication-item h3 a{
    color:inherit;
    text-decoration:none;
}
.publication-item h3 a:hover{
    text-decoration:underline;
}
