/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
    
}

body::after{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to right, rgba(240, 240, 235, 0.4) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(240, 240, 235, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 30px 0 15px 0;
    color: #000;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
}

p {
    margin-bottom: 10px;
    text-align: justify;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: bold;
}

/* Header Section */
.main-header {
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.profile-info {
    flex: 1;
}

.profile-photo {
    flex: 0 0 250px;
}

.profile-photo img {
    width: 250px;
    height: 270px;
    border-radius: 0;
    object-fit: cover;
}

.profile-photo figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    text-align: center;
}

/* 桌面端和移动端图片显示控制 */
.mobile-photo {
    display: none;
}

.bio {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.research-interests {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-links {
    font-size: 1.1rem;
    margin-top: 10px;
}

.contact-links a {
    margin-right: 5px;
}

/* News Section */
.news-section {
    margin-bottom: 30px;
}

.news-list {
    margin-left: 20px;
}

.news-item {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.news-date {
    color: #0066cc;
    font-weight: bold;
    min-width: 100px;
}

.news-content {
    font-size: 1.1rem;
    flex: 1;
}

/* Publications Section */
.publications-section {
    margin-bottom: 30px;
}

.publications-list {
    margin-left: 20px;
}

.publication-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
}

.pub-image {
    flex: 0 0 284px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-image img {
    width: 284px;
    height: 156px;
    object-fit: cover;
}

.pub-content {
    flex: 1;
}

.pub-content h3 {
    margin-bottom: 5px;
    line-height: 1.3;
}

.authors {
    margin-bottom: 3px;
    font-style: italic;
}

.venue {
    margin-bottom: 8px;
    font-weight: bold;
}

.pub-links {
    margin-bottom: 8px;
}

.pub-links a {
    margin-right: 10px;
    color: #0066cc;
}

.pub-links .link-disabled {
    color: #999;
    margin-right: 10px;
}

.pub-description {
    font-style: italic;
    color: #666;
}

/* Research Projects Section */
.research-projects-section {
    margin-bottom: 30px;
}

.research-projects-section .projects-list {
    margin-left: 20px;
}

.projects-section {
    margin-bottom: 30px;
}

.projects-list {
    margin-left: 20px;
}

.project-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.project-image {
    flex: 0 0 284px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 284px;
    height: 156px;
    object-fit: cover;
}

.project-content {
    flex: 1;
}

.project-content h3 {
    margin-bottom: 5px;
}

.project-content p {
    color: #666;
    font-size: 16px;
    font-style: italic;
}

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

.project-links a {
    margin-right: 10px;
    color: #0066cc;
}

.project-links .link-disabled {
    color: #999;
    margin-right: 10px;
}

/* Education Section */
.education-section {
    margin-bottom: 30px;
}

.education-list {
    margin-left: 20px;
}

.education-item {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    padding-bottom: 5px;
}

.edu-period {
    flex: 0 0 100px;
    font-weight: bold;
    color: #0066cc;
    font-size: 0.9rem;
}

.edu-content {
    flex: 1;
}

.edu-content h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.edu-content p {
    margin-bottom: 6px;
    color: #666;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
}

.visitor-counter {
    display: inline-block;
    margin-bottom: 10px;
}

.footer-info {
    margin-top: 10px;
}

.footer-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* Citation Modal */
.citation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.citation-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
}

.citation-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.citation-close:hover {
    color: #000;
}

.citation-text-container {
    background-color: #f5f5f5;
    padding: 15px;
    margin: 15px 0;
    border-radius: 3px;
    max-height: 300px;
    overflow-y: auto;
}

#citation-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-citation-btn {
    background-color: #0066cc;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.copy-citation-btn:hover {
    background-color: #0052a3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 20px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .profile-photo {
        flex: 0 0 200px;
    }
    
    .profile-photo img {
        width: 200px;
        height: 200px;
    }
    
    .pub-image {
        flex: 0 0 240px;
    }
    
    .pub-image img {
        width: 240px;
        height: 132px;
    }
    
    .project-image {
        flex: 0 0 240px;
    }
    
    .project-image img {
        width: 240px;
        height: 132px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: left;
        gap: 15px;
    }
    
    .desktop-photo {
        display: none;
    }
    
    .desktop-photo figcaption {
        display: none;
    }
    
    .mobile-photo {
        display: block;
        float: right;
        margin: 0 0 10px 10px;
        width: 120px;
    }
    
    .mobile-photo img {
        width: 120px;
        height: 120px;
        object-fit: cover;
    }
    
    .profile-info h1 {
        text-align: left;
    }
    
    .bio, .research-interests {
        text-align: left;
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .contact-links {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .contact-links a {
        margin-right: 8px;
    }
    
    .publication-item,
    .project-item {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .research-projects-section .projects-list {
        margin-left: 20px;
    }
    
    .pub-image,
    .project-image {
        align-self: center;
        flex: none;
    }
    
    .pub-image img,
    .project-image img {
        width: 100%;
        max-width: 260px;
        height: auto;
        aspect-ratio: 284/156;
    }
    
    .education-item {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .edu-period {
        flex: none;
        font-size: 1rem;
        color: #0066cc;
        font-weight: bold;
        margin-bottom: 0;
        order: 1;
    }
    
    .edu-content {
        order: 2;
    }
    
    .edu-content h3 {
        margin-top: 0;
        margin-bottom: 1px;
        font-size: 19.2px;
        line-height: 1.2;
    }
    
    .edu-content p {
        margin-bottom: 1px;
        font-size: 19.2px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem;
        margin: 20px 0 8px 0;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .news-item {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 10px;
    }
    
    .news-date {
        min-width: auto;
        color: #0066cc;
        font-size: 0.9rem;
        font-weight: bold;
    }
    
    .news-content {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .pub-links a,
    .project-links a {
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .citation-modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 15px;
    }
    
    .visitor-counter {
        transform: scale(0.8);
    }
    
    /* 移动端学校图标调整 */
    .bio img[src*="icon-title"] {
        width: 18px !important;
        height: 18px !important;
        margin-left: 3px !important;
    }
    
    .bio img[src*="scuec.png"] {
        width: 65px !important;
        height: 25px !important;
        margin-left: 3px !important;
    }
    
    .contact-links a {
        padding: 0 !important;
        margin: 0 8px 0 0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
    }
    
    .contact-links a:hover {
        background-color: transparent !important;
    }
    
    .pub-links a,
    .project-links a {
        padding: 0 !important;
        margin: 0 8px 0 0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
    }
    
    .pub-links a:hover,
    .project-links a:hover {
        background-color: transparent !important;
    }
    
    .contact-links a:active,
    .pub-links a:active,
    .project-links a:active {
        background-color: transparent !important;
        transform: none !important;
    }
    
    .news-item {
        background-color: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 8px;
        text-align: left;
    }
    
    h2 {
        font-size: 1.4rem;
        margin: 15px 0 6px 0;
        line-height: 1.1;
    }
    
    h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .mobile-photo {
        width: 100px;
    }
    
    .mobile-photo img {
        width: 120px;
        height: 200px;
    }
    
    .bio, .research-interests {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .contact-links {
        font-size: 0.9rem;
    }
    
    .contact-links a {
        margin-right: 6px;
    }
    
    .news-list,
    .publications-list,
    .research-projects-section .projects-list,
    .projects-list,
    .education-list {
        margin-left: 5px;
    }
    
    .news-item {
        margin-bottom: 8px;
    }
    
    .news-date {
        font-size: 0.85rem;
        margin-bottom: 1px;
    }
    
    .news-content {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .pub-image img,
    .project-image img {
        max-width: 100%;
        width: 220px;
        height: auto;
    }
    
    .pub-content,
    .project-content {
        padding: 0;
    }
    
    .authors {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }
    
    .venue {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .pub-description,
    .project-content p {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .pub-links a,
    .project-links a {
        margin-right: 6px;
        font-size: 0.85rem;
    }
    
    .education-item {
        flex-direction: column;
        gap: 3px;
        margin-bottom: 12px;
        padding-bottom: 2px;
    }
    
    .edu-period {
        flex: none;
        font-size: 0.9rem;
        order: 1;
        margin-bottom: 2px;
    }
    
    .edu-content {
        order: 2;
    }
    
    .edu-content h3 {
        font-size: 1rem;
    }
    
    .edu-content p {
        font-size: 0.85rem;
    }
    
    .visitor-counter {
        transform: scale(0.7);
        margin-bottom: 5px;
    }
    
    .footer-info p {
        font-size: 0.8rem;
    }
    
    /* 移动端学校图标调整 */
    .bio img[src*="icon-title"] {
        width: 15px !important;
        height: 15px !important;
        margin-left: 2px !important;
    }
    
    .bio img[src*="scuec.png"] {
        width: 60px !important;
        height: 20px !important;
        margin-left: 2px !important;
    }
}

/* Print Styles */
@media print {
    .visitor-counter {
        display: none;
    }
    
    .citation-modal {
        display: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* 滚动和交互体验优化 */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* 优化文本选择 */
    p, h1, h2, h3 {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* 防止文本缩放 */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* Visitor Counter 溢出处理 */
    .visitor-counter {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .visitor-counter > * {
        max-width: 100%;
    }
} 