/* 字体设置 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body, html {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    background-color: #0a0f2c;
    color: #e0e0e0;
}

/* 顶部导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111a3b;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nav-left {
    font-size: 1.6rem;
    font-weight: bold;
    color: #64b5f6;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dcdcdc;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #64b5f6;
    bottom: -4px;
    left: 0;
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: #64b5f6;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 活跃状态样式 */
.nav-links a.active {
    color: #64b5f6;
}

.nav-links a.active::after {
    width: 100%;
}

/* 主页特定样式 */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 200px;
}

.intro-video {
    width: 160px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #64b5f6;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.intro-content {
    flex: 1;
    min-width: 300px;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #d0d0d0;
}

.interests {
    font-size: 1rem;
    color: #64b5f6;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

/* 座右铭部分样式 */
.motto-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(100, 181, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid #64b5f6;
}

.motto-intro {
    font-size: 1.18rem;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.motto-note {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-top: 1rem;
    font-style: italic;
}

/* 故事部分样式 */
.story-section {
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

.story-section:last-child {
    border-bottom: none;
}

.story-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-left: 4px solid #64b5f6;
    padding-left: 1rem;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 0 6px 6px 0;
}

.story-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #d0d0d0;
    text-align: justify;
    margin-top: 1rem;
}

/* 引用样式 */
.quote-section {
    margin: 1.5rem 0;
}

.motto-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #64b5f6;
    border-left: 3px solid #64b5f6;
    padding-left: 1rem;
    margin: 1rem 0;
    background: rgba(100, 181, 246, 0.08);
    padding: 0.8rem 1rem;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
}

.motto-source {
    font-size: 1rem;
    color: #b0b0b0;
    font-style: italic;
    margin: 1.5rem 0;
    text-align: center;
}

/* 页面卡片容器 */
.page-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease-in;
}

.card {
    background-color: #1b223d;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card h2 {
    color: #64b5f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p,
.card li {
    font-size: 1.18rem;
    line-height: 1.7;
    color: #d0d0d0;
}

/* 动画淡入 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 展开卡片控制 */
.expandable {
    max-height: 0;
    overflow: hidden;
    transition: all 0.7s ease;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(-10px);
}

.expandable.expanded {
    max-height: none;
    height: auto;
    padding: 2rem;
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    background-color: #64b5f6;
    color: #0a0f2c;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(100, 181, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .intro-video {
        width: 120px;
        height: 90px;
    }
    
    .intro-content {
        min-width: auto;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-left {
        margin-right: 1rem;
        font-size: 1.4rem;
    }
}

.gallery-expand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expand-card {
    display: flex;
    background-color: #1b223d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.expand-img {
    flex: 1;
    overflow: hidden;
}

.expand-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expand-text {
    flex: 1;
    padding: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expand-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.expand-card:hover .expand-img img {
    transform: scale(1.1);
}

.expand-card:hover .expand-text {
    opacity: 1;
    transform: translateX(0);
}

.expand-text h2 {
    font-size: 1.5rem;
    color: #64b5f6;
    margin-bottom: 1rem;
}

.expand-text p {
    font-size: 1.18rem;
    color: #d0d0d0;
    line-height: 1.6;
}

/* Research Focus 样式 */
.research-focus {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.focus-group {
    border: 2px dashed #64b5f6;
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(100, 181, 246, 0.05);
    position: relative;
}

.group-label {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #1b223d;
    color: #64b5f6;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 12px;
    border-radius: 6px;
}

.keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.keyword {
    padding: 0.5rem 1rem;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid #64b5f6;
    border-radius: 20px;
    color: #64b5f6;
    font-weight: 600;
    transition: all 0.3s ease;
}

.keyword:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

/* 前四个关键词的特殊悬停效果 */
.keyword.large:nth-child(1):hover {
    background: rgba(100, 181, 246, 0.4);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.5);
}

.keyword.large:nth-child(2):hover {
    background: rgba(100, 181, 246, 0.35);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 16px rgba(100, 181, 246, 0.4);
}

.keyword.large:nth-child(3):hover {
    background: rgba(100, 181, 246, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 14px rgba(100, 181, 246, 0.35);
}

.keyword.large:nth-child(4):hover {
    background: rgba(100, 181, 246, 0.25);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 3px 12px rgba(100, 181, 246, 0.3);
}

.keyword.large {
    font-size: 1.2rem;
}

.keyword.medium {
    font-size: 1rem;
}

/* 第一行关键词大小渐变 */
.keyword.large:nth-child(1) { 
    font-size: 1.6rem; 
    background: rgba(100, 181, 246, 0.2);
    border: 2px solid #64b5f6;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.3);
}
.keyword.large:nth-child(2) { 
    font-size: 1.5rem; 
    background: rgba(100, 181, 246, 0.18);
    border: 2px solid #64b5f6;
    box-shadow: 0 2px 6px rgba(100, 181, 246, 0.25);
}
.keyword.large:nth-child(3) { 
    font-size: 1.4rem; 
    background: rgba(100, 181, 246, 0.15);
    border: 2px solid #64b5f6;
    box-shadow: 0 2px 4px rgba(100, 181, 246, 0.2);
}
.keyword.large:nth-child(4) { 
    font-size: 1.3rem; 
    background: rgba(100, 181, 246, 0.12);
    border: 2px solid #64b5f6;
    box-shadow: 0 1px 3px rgba(100, 181, 246, 0.15);
}
.keyword.large:nth-child(5) { font-size: 1.15rem; }
.keyword.large:nth-child(6) { font-size: 1.1rem; }

/* 第二行关键词大小渐变 */
.keyword.medium:nth-child(1) { font-size: 1.1rem; }
.keyword.medium:nth-child(2) { font-size: 1.05rem; }
.keyword.medium:nth-child(3) { font-size: 1rem; }

/* Research Experience 样式 */
.research-experience {
    margin-top: 2rem;
}

.research-experience h2 {
    color: #64b5f6;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-card {
    background: linear-gradient(135deg, #1b223d 0%, #1f2a4a 100%);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #64b5f6 0%, #4a90e2 100%);
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100, 181, 246, 0.2);
    border-color: rgba(100, 181, 246, 0.5);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.institution-info h3 {
    color: #64b5f6;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.department {
    color: #d0d0d0;
    font-size: 1rem;
    margin: 0.2rem 0;
    font-weight: 500;
}

.location {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0.2rem 0;
    font-style: italic;
}

.position-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.position {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.duration {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 500;
}

.experience-content {
    padding-left: 1rem;
}

.experience-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-content li {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-content li::before {
    content: '▸';
    color: #64b5f6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.experience-content li:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .position-info {
        align-items: flex-start;
        text-align: left;
    }
    
    .institution-info h3 {
        font-size: 1.2rem;
    }
}

/* Chip Gallery 横向信息卡片样式 */
.gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.chip-card {
    background: #1b223d;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(100,181,246,0.10);
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    transition: box-shadow 0.3s;
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    box-sizing: border-box;
    gap: 2.5rem;
}
.chip-card:hover {
    box-shadow: 0 12px 36px rgba(100,181,246,0.22);
}

.chip-img-wrap {
    width: 320px;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    margin-bottom: 0;
}

.chip-img {
    display: block;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(100,181,246,0.10);
    width: 100%;
    height: auto;
    max-width: 320px;
    max-height: 320px;
    object-fit: contain;
    transition: transform 1.2s cubic-bezier(.23,1.02,.32,1), box-shadow 1.2s cubic-bezier(.23,1.02,.32,1), filter 1.2s cubic-bezier(.23,1.02,.32,1);
    z-index: 1;
    will-change: transform, box-shadow, filter;
}
.chip-card:hover .chip-img,
.chip-img-wrap:focus-within .chip-img {
    transform: scale(1.18);
    box-shadow: 0 16px 48px 0 rgba(100,181,246,0.30), 0 0 0 10px rgba(100,181,246,0.10);
    filter: brightness(1.08) contrast(1.08) saturate(1.1);
}

.chip-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    padding-left: 2.5rem;
    box-sizing: border-box;
}

.chip-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
    text-align: left;
    margin-top: 0.2rem;
    margin-bottom: 1.1rem;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
    width: 100%;
}

.chip-desc {
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(.23,1.02,.32,1), max-height 1.2s cubic-bezier(.23,1.02,.32,1), transform 1.2s cubic-bezier(.23,1.02,.32,1);
    background: rgba(20,30,60,0.97);
    color: #e0e0e0;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    font-size: 1.18rem;
    line-height: 1.7;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    z-index: 2;
    position: relative;
    min-width: 0;
    width: 100%;
    text-align: left;
    pointer-events: none;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
}
.chip-card:hover .chip-desc,
.chip-img-wrap:focus-within + .chip-info-block .chip-desc {
    opacity: 1;
    max-height: 400px;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 900px) {
    .chip-card {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .chip-img-wrap {
        width: 100%;
        max-width: 98vw;
        margin-bottom: 0;
        justify-content: center;
    }
    .chip-info-block {
        padding-left: 0;
        width: 100%;
    }
    .chip-img {
        max-width: 98vw;
        max-height: 180px;
    }
}

/* Internship 横向卡片样式 */
.internship-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.internship-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #1b223d;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(100,181,246,0.10);
    max-width: 1100px;
    width: 100%;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    position: relative;
    box-sizing: border-box;
    gap: 2.5rem;
    overflow: visible;
}

.internship-media {
    width: 320px;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.internship-video {
    width: 100%;
    max-width: 320px;
    max-height: 220px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(100,181,246,0.10);
    background: #222;
    object-fit: cover;
}

.internship-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    position: relative;
    padding-left: 2.5rem;
    box-sizing: border-box;
}

.internship-proof {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 140px;
    height: 70px;
    overflow: hidden;
    pointer-events: auto;
    border-top-right-radius: 14px;
    transition: width 0.5s cubic-bezier(.23,1.02,.32,1), height 0.5s cubic-bezier(.23,1.02,.32,1);
}
.internship-proof-img {
    width: 140px;
    height: auto;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 6px 24px rgba(100,181,246,0.18), 0 0 0 3px #fff;
    opacity: 0.97;
    border: 2px solid #64b5f6;
    border-bottom: none;
    transform: translateY(-25%) rotate(-12deg);
    transition: width 0.5s cubic-bezier(.23,1.02,.32,1), transform 0.5s cubic-bezier(.23,1.02,.32,1), box-shadow 0.5s cubic-bezier(.23,1.02,.32,1);
    cursor: pointer;
}
.internship-proof:hover,
.internship-proof:focus-within {
    width: 200px;
    height: 280px;
    overflow: visible;
    transition: width 0.5s cubic-bezier(.23,1.02,.32,1), height 0.5s cubic-bezier(.23,1.02,.32,1);
}
.internship-proof:hover .internship-proof-img,
.internship-proof:focus-within .internship-proof-img {
    width: 200px;
    border-radius: 10px;
    border-bottom: 2px solid #64b5f6;
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 12px 36px rgba(100,181,246,0.22), 0 0 0 4px #fff;
    transition: width 0.5s cubic-bezier(.23,1.02,.32,1), transform 0.5s cubic-bezier(.23,1.02,.32,1), box-shadow 0.5s cubic-bezier(.23,1.02,.32,1);
}

.internship-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 0.7rem;
    margin-top: 0.2rem;
    line-height: 1.4;
    word-break: break-word;
    width: 100%;
}

.internship-meta {
    color: #b0b0b0;
    font-size: 1.18rem;
    margin-bottom: 1.1rem;
    font-style: italic;
}

.internship-desc {
    padding-left: 1.2rem;
    margin: 0;
    color: #e0e0e0;
    font-size: 1.18rem;
    line-height: 1.7;
    list-style: disc;
    width: 100%;
}
.internship-desc li {
    margin-bottom: 0.7rem;
    word-break: break-word;
}
.internship-desc li:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .internship-card {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .internship-media {
        width: 100%;
        max-width: 98vw;
        margin-bottom: 0;
        justify-content: center;
    }
    .internship-info {
        padding-left: 0;
        width: 100%;
    }
    .internship-proof {
        width: 80px;
        height: 40px;
    }
    .internship-proof-img {
        width: 80px;
    }
    .internship-proof:hover,
    .internship-proof:focus-within {
        width: 120px;
        height: 168px;
    }
    .internship-proof:hover .internship-proof-img,
    .internship-proof:focus-within .internship-proof-img {
        width: 120px;
    }
    .internship-video {
        max-width: 98vw;
        max-height: 180px;
    }
}

/* Publication 横向卡片样式 */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.publication-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #1b223d;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(100,181,246,0.10);
    max-width: 1100px;
    width: 100%;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
    position: relative;
    box-sizing: border-box;
    gap: 2.5rem;
    overflow: visible;
}

.publication-img-wrap {
    width: 320px;
    min-width: 180px;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.publication-img {
    width: 100%;
    max-width: 320px;
    max-height: 320px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(100,181,246,0.10);
    object-fit: cover;
    background: #222;
    transition: transform 0.7s cubic-bezier(.23,1.02,.32,1), box-shadow 0.7s cubic-bezier(.23,1.02,.32,1), filter 0.7s cubic-bezier(.23,1.02,.32,1);
    z-index: 1;
    will-change: transform, box-shadow, filter;
}

.publication-img-wrap:hover .publication-img,
.publication-img:focus {
    transform: scale(1.18);
    box-shadow: 0 16px 48px 0 rgba(100,181,246,0.30), 0 0 0 10px rgba(100,181,246,0.10);
    filter: brightness(1.08) contrast(1.08) saturate(1.1);
}

.publication-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    padding-left: 2.5rem;
    box-sizing: border-box;
}

.publication-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 0.7rem;
    margin-top: 0.2rem;
    line-height: 1.4;
    word-break: break-word;
    width: 100%;
}

.publication-authors {
    color: #b0b0b0;
    font-size: 1.18rem;
    margin-bottom: 1.1rem;
    font-style: italic;
}

.publication-btn {
    margin-bottom: 1.1rem;
    min-width: 120px;
}

.publication-abstract {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(.23,1.02,.32,1), max-height 0.7s cubic-bezier(.23,1.02,.32,1), transform 0.7s cubic-bezier(.23,1.02,.32,1);
    background: rgba(20,30,60,0.97);
    color: #e0e0e0;
    border-radius: 10px;
    padding: 0 1.2rem;
    font-size: 1.18rem;
    line-height: 1.7;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}
.publication-abstract.show {
    opacity: 1;
    max-height: 1200px;
    transform: translateY(0);
    padding: 1.1rem 1.2rem;
}

.abstract-content {
    margin-bottom: 1.1rem;
}

.publication-download {
    display: inline-block;
    background: #64b5f6;
    color: #0a0f2c;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}
.publication-download:hover {
    background: #4a90e2;
    color: #fff;
}

@media (max-width: 900px) {
    .publication-card {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .publication-img-wrap {
        width: 100%;
        max-width: 98vw;
        margin-bottom: 0;
        justify-content: center;
    }
    .publication-info {
        padding-left: 0;
        width: 100%;
    }
    .publication-img {
        max-width: 98vw;
        max-height: 180px;
    }
}

.publication-section {
    width: 100%;
    max-width: 1100px;
    margin-bottom: 2.5rem;
}
.publication-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
    margin-bottom: 2.2rem;
    letter-spacing: 0.5px;
    border-left: 6px solid #64b5f6;
    padding-left: 1.2rem;
    background: rgba(100,181,246,0.07);
    border-radius: 6px;
    box-sizing: border-box;
}

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 30, 60, 0.88);
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.img-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(100,181,246,0.25);
    background: #fff;
    object-fit: contain;
    display: block;
}
.img-modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    color: #fff;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 12px #000, 0 0 2px #64b5f6;
    transition: color 0.2s;
}
.img-modal-close:hover {
    color: #64b5f6;
}
@media (max-width: 600px) {
    .img-modal-content {
        max-width: 98vw;
        max-height: 60vh;
    }
    .img-modal-close {
        top: 12px;
        right: 18px;
        font-size: 2rem;
    }
}

.contact-card {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #1b223d;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(100,181,246,0.10);
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1.08rem;
    width: 100%;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #e0e0e0;
    word-break: break-all;
}
.contact-icon {
    font-size: 1.35rem;
    margin-right: 0.3rem;
    vertical-align: middle;
}
.contact-item a {
    color: #64b5f6;
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.contact-item a:hover {
    color: #4a90e2;
}

.intro-content .contact-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2.2rem;
    font-size: 1.08rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.intro-content .contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #e0e0e0;
    word-break: break-all;
}
@media (max-width: 600px) {
    .intro-content .contact-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.nav-links a, .nav-left, .intro-text, .interests, .motto-section, .motto-intro, .motto-note, .story-title, .story-section p, .motto-quote, .motto-source, .card, .card h2, .card p, .btn, .keyword, .group-label, .institution-info h3, .department, .location, .position, .duration, .experience-content, .chip-title, .chip-desc, .internship-title, .internship-meta, .internship-desc, .publication-title, .publication-authors, .publication-btn, .publication-abstract, .publication-section-title {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

.nav-links a {
    font-size: 1.25rem;
}

.nav-left {
    font-size: 1.9rem;
}

.intro-text, .motto-intro, .motto-note, .story-section p, .motto-source, .card p, .btn, .keyword, .group-label, .department, .location, .position, .duration, .experience-content, .chip-desc, .internship-meta, .internship-desc, .publication-authors, .publication-btn, .publication-abstract {
    font-size: 1.18rem;
}

.card h2, .story-title, .chip-title, .internship-title, .publication-title, .publication-section-title {
    font-size: 1.5rem;
}

