/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    font-weight: 400;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner / Navigation */
.banner {
    background: transparent;
    padding: 10px 0 10px 0;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 40px;
}

.navbar .nav-link {
    margin: 0 60px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: #f4a261;
}

/* Intro Section */
.intro-container {
    display: flex;
    align-items: flex-start;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 20px auto;
    gap: 40px;
}

.profile-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}

.intro-text h1:last-of-type {
    font-family: "KaiTi", "楷体", "STKaiti", "华文楷体", "SimKai", serif;
    margin-bottom: 8px;
}

.social-icons {
    margin-top: 12px;
}

.social-icons a {
    margin: 0 15px 0 0;
    font-size: 1.3rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #f4a261;
}

.school-info {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.school-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
}

.school-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Section Styling */
.section {
    padding: 0;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.section h2 {
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 10px;
}

.section p {
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 1rem;
    color: #333;
}

.section details {
    margin-bottom: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 0;
}

.section summary {
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px 20px 10px 20px;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    color: #1a1a1a;
    transition: background-color 0.2s ease;
}

.section summary:hover {
    background-color: #e9ecef;
}

.section details[open] summary {
    border-bottom: 1px solid #e1e5e9;
    border-radius: 8px 8px 0 0;
}

.section details > div {
    padding: 20px;
}

.section ol, .section ul {
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 20px;
}

.section li {
    margin-bottom: 12px;
    color: #333;
}

.section a {
    color: #f4a261;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section a:hover {
    color: #e76f51;
    text-decoration: underline;
}

h1, h2 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}

/* Publications Section */
.pub-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pub-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

.pub-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pub-item img {
    margin-right: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pub-item a {
    color: #f4a261;
    margin-left: 8px;
}

.pub-info {
    flex: 1;
}

.pub-item .pub-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pub-item .pub-authors {
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 4px;
}

.pub-item .pub-venue {
    font-weight: 500;
    font-size: 0.85rem;
    color: #f4a261;
    line-height: 1.4;
    margin-bottom: 0;
}

/* News Section */
#news ul {
    list-style: none;
    padding: 0;
}

#news li {
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1rem;
}

#news li:last-child {
    border-bottom: none;
}

#upcoming li {
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    background-color: #007acc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background-color: transparent;
    color: #666;
    border-top: 1px solid #e1e5e9;
    margin-top: 60px;
}

.title-figure-container {
    margin: 0 auto 32px auto;
    max-width: 900px;
    padding: 0;
    text-align: center;
}

.title-figure {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.student-container {
    margin: 0 auto;
    max-width: 900px;
    padding: 0;
}

.students-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.student-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
}

.student-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.student-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.student-program {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.students-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.students-row .name,
.students-row .program,
.students-row .duration {
    font-size: 1rem;
    line-height: 1.6;
}

.students-row .name {
    flex: 1;
    font-weight: 600;
    color: #1a1a1a;
}

.students-row .program {
    flex: 2;
    color: #333;
}

.students-row .duration {
    flex: 1;
    color: #666;
    text-align: right;
}

.students-row p {
    margin-bottom: 12px;
    padding: 0;
}
