/* 编辑部成员展示页面样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Times New Roman', 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 主内容区域 */
main {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

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

/* 返回链接 */
.back-link {
    margin-bottom: 15px;
}

.back-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    color: #00629B;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border: 1px solid #00629B;
    border-radius: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.back-button:hover {
    background-color: #00629B;
    color: white;
}

/* 页面标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    color: #003C6B;
    font-size: 2em;
    margin: 0;
    border-bottom: 3px solid #D36A00;
    display: inline-block;
    padding-bottom: 10px;
}

.subhead {
    color: #666;
    font-size: 1em;
    margin-top: 10px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 40px;
    font-size: 1.1em;
    color: #00629B;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #D36A00;
    background-color: #fff5f5;
    border-left: 4px solid #D36A00;
    border-radius: 4px;
}

/* 作者卡片网格 */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* 作者卡片 */
.author-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* h-index 徽章 - 右侧显示 */
.h-index-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFDAB9 0%, #FFE4B5 100%);
    color: #D36A00;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(211, 106, 0, 0.2);
    border: 3px solid white;
    z-index: 10;
    min-width: 80px;
    text-align: center;
}

.h-index-label {
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.h-index-value {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 作者头部信息 */
.author-header {
    background: linear-gradient(135deg, #003C6B 0%, #00629B 100%);
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    min-height: 280px;
    padding: 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 背景图片遮罩层 */
.author-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
}

/* 确保内容在遮罩层上方 */
.author-header > * {
    position: relative;
    z-index: 2;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin: 0 auto 15px;
    background-color: #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.author-name {
    font-size: 1.6em;
    font-weight: bold;
    margin: 10px 0 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.author-position {
    font-size: 1em;
    opacity: 0.9;
    margin: 5px 0;
}

/* 所属机构·学术头衔样式 */
.author-institution-title {
    font-size: 0.9em;
    opacity: 0.85;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

/* 作者详细信息 */
.author-body {
    padding: 25px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #003C6B;
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label::before {
    content: "▸";
    color: #D36A00;
    font-size: 1.2em;
}

.info-content {
    color: #555;
    font-size: 0.95em;
    line-height: 1.7;
    padding-left: 20px;
}

/* 个人简介 */
.bio-text {
    text-align: justify;
    line-height: 1.8;
}

/* 个人简介区块样式（无标签） */
.bio-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.bio-label {
    text-align: center;
    justify-content: center;
}

.bio-label::before {
    display: none;
}

.bio-section .info-content {
    padding-left: 0;
    text-align: center;
    font-size: 1em;
    color: #444;
    line-height: 1.9;
}

/* 研究方向标签 */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 20px;
}

.research-tag {
    background-color: #00629B;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.research-tag:hover {
    background-color: #D36A00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 106, 0, 0.3);
}

/* 论文列表 */
.papers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.paper-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #D36A00;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.paper-item:hover {
    background-color: #f0f0f0;
}

.paper-title {
    font-weight: bold;
    color: #003C6B;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.paper-meta {
    color: #666;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.paper-doi {
    color: #00629B;
    font-size: 0.8em;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.paper-doi a {
    color: #00629B;
    text-decoration: none;
}

.paper-doi a:hover {
    text-decoration: underline;
    color: #D36A00;
}

/* 调试信息 */
.debug-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    font-size: 0.85em;
    color: #666;
    font-family: 'Courier New', monospace;
    display: none;
}

.debug-info.visible {
    display: block;
}

/* 页脚 */
.site-footer {
    background: linear-gradient(to bottom, #003C6B, #002147);
    padding: 20px 0;
    margin-top: 50px;
}

.footer-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .author-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.6em;
    }
    
    .author-header {
        padding: 20px;
    }
    
    .author-avatar {
        width: 100px;
        height: 100px;
    }
    
    .author-name {
        font-size: 1.4em;
    }
    
    /* 小屏幕时论文列表改为单栏 */
    .papers-list {
        grid-template-columns: 1fr;
    }
}
