/* Academic Portfolio - Professor Li Style with Better Visual Elements */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background-color: #fafafa;
    padding: 30px 20px;
}

/* Main Table Layout - 2 Columns */
.main-table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 4px;
}

/* Left Column - Photo and Links */
.left-column {
    width: 220px;
    vertical-align: top;
    padding: 40px 25px;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
}

.profile-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    border: 3px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 20px 0;
}

.link-section {
    font-size: 14px;
    line-height: 2.2;
    text-align: center;
}

.link-section a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    display: inline-block;
}

.link-section a i {
    margin-right: 6px;
    width: 18px;
    text-align: center;
}

.link-section a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Right Column - Main Content */
.right-column {
    vertical-align: top;
    padding: 40px 50px;
}

h1 {
    font-family: 'Georgia', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

h2 {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

h2 i {
    color: #2563eb;
    margin-right: 8px;
    font-size: 18px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 12px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 12px;
    text-align: justify;
    color: #444;
}

p i {
    color: #2563eb;
    margin-right: 6px;
    width: 18px;
    display: inline-block;
    text-align: center;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: #1a1a1a;
}

em {
    font-style: italic;
    color: #666;
}

/* Lists */
ul {
    margin-left: 22px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    line-height: 1.7;
}

li::marker {
    color: #2563eb;
}

/* Publications */
.publications {
    list-style: none;
    margin-left: 0;
}

.publications li {
    margin-bottom: 20px;
    padding-left: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.publications li:last-child {
    border-bottom: none;
}

/* Projects */
.project {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2563eb;
}

.project h3 {
    margin-top: 0;
}

.project h3 a {
    color: #2563eb;
    font-weight: 600;
}

.project h3 a:hover {
    color: #1d4ed8;
}

.project p {
    margin-bottom: 8px;
}

.project-tech {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

/* More Link */
.more-link {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    text-align: center;
}

/* Footer */
.footer {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 25px 0;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    color: #666;
    background-color: #fafafa;
}

.footer p {
    margin: 5px 0;
    text-align: center;
}

.footer-note {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .main-table,
    .main-table tbody,
    .main-table tr,
    .main-table td {
        display: block;
        width: 100% !important;
    }
    
    .left-column {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding: 25px 20px;
        text-align: center;
        background-color: #fff;
    }
    
    .right-column {
        padding: 30px 20px;
    }
    
    .profile-photo {
        margin: 0 auto 20px;
    }
    
    h1 {
        font-size: 26px;
        text-align: center;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .project {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 11pt;
        background-color: #fff;
        padding: 0;
    }
    
    .main-table {
        box-shadow: none;
    }
    
    .left-column {
        background-color: #fff;
    }
    
    .project {
        background-color: #fff;
        border-left: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .footer {
        background-color: #fff;
        page-break-before: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease;
}

/* Selection Color */
::selection {
    background-color: #2563eb;
    color: white;
}

::-moz-selection {
    background-color: #2563eb;
    color: white;
}
