/* ========================================
   学术成果模块样式 - Academic Achievements Styles
   ======================================== */

/* ========================================
   个人照片横拉框样式 - Gallery Styles
   ======================================== */

/* 学术成果区域背景色 */
.publications {
    background: var(--bg-dark);
}

/* 论文列表容器：垂直排列，间距2rem */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 单个论文项：Grid布局，左侧图片350px，右侧内容自适应 */
.pub-item {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;  /* 左侧图片宽度350px，右侧内容占剩余空间 */
    align-items: stretch;  /* 左右两侧高度拉伸对齐 */
    transition: all 0.3s;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* 悬浮效果：阴影和边框颜色变化 */
.pub-item:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

/* 缩略图容器：固定高度200px，图片居中显示 */
.pub-thumbnail {
    display: flex;
    align-items: center;  /* 垂直居中 */
    justify-content: center;  /* 水平居中 */
    overflow: hidden;
    background: transparent;
    height: 200px;  /* 固定高度，防止图片过大 */
}

/* 缩略图图片：完整显示，等比例缩放 */
.pub-thumbnail img {
    width: 100%;  /* 宽度填满容器 */
    height: 100%;  /* 高度填满容器 */
    object-fit: contain;  /* 完整显示图片，保持比例，可能有留白 */
    display: block;
}

/* 右侧内容区域：内边距0.8rem，内容溢出可滚动 */
.pub-content {
    padding: 0.8rem;  /* 上下左右内边距 */
    overflow: auto;  /* 内容超出时显示滚动条 */
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.pub-authors {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.pub-authors .me {
    font-weight: 600;
    color: var(--text-dark);
}

.pub-venue {
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
}

.pub-venue i {
    margin-right: 0.4rem;
}

.pub-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pub-links a {
    padding: 0.4rem 0.85rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.pub-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 15px rgba(139, 92, 246, 0.4);
}

.pub-links a i {
    font-size: 1rem;
}

/* 投稿中论文样式 */
.pub-under-review {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--border-color);
}

.pub-under-review h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pub-under-review h3 i {
    color: #f59e0b;
}

.under-review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.review-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d97706;
    flex-shrink: 0;
}

.review-status i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.review-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
}

.review-venue {
    font-size: 0.9rem;
    color: #b45309;
}

/* 响应式 */
@media (max-width: 600px) {
    .pub-item {
        grid-template-columns: 1fr;
    }

    .pub-thumbnail {
        height: 150px;
    }

    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .review-status {
        align-self: flex-start;
    }
}

/* ========================================
   个人照片横拉框样式 - Gallery Styles
   ======================================== */

.gallery {
    background: var(--bg-dark);
    padding: 4rem 0;
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 1.5rem 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #a78bfa;
}

.gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery-item img {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* 响应式 */
@media (max-width: 600px) {
    .gallery-item img {
        width: 280px;
        height: 380px;
    }
}
