/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    background: linear-gradient(135deg, #f5f1e6 0%, #e8e0d0 100%);
    color: #2c2416;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部导航 */
header {
    background: rgba(44, 36, 22, 0.95);
    color: #f5f1e6;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: #d4af37;
}

.nav-controls {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    background: #d4af37;
    color: #2c2416;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #e6c448;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #2c2416;
}

/* 主容器 */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* 介绍区域 */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c2416;
}

.intro p {
    font-size: 1.2rem;
    color: #5a4a32;
    max-width: 800px;
    margin: 0 auto;
}



/* 人物卡片弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #2c2416;
}

.person-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #d4af37;
}

.person-name {
    font-size: 2rem;
    color: #2c2416;
    margin-bottom: 0.5rem;
}

.person-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.person-section {
    margin-bottom: 1.5rem;
}

.person-section h3 {
    color: #2c2416;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.person-section h3::before {
    content: '';
    width: 4px;
    height: 1.2rem;
    background: #d4af37;
    border-radius: 2px;
}

.related-people {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-person-tag {
    padding: 0.3rem 0.8rem;
    background: #f0e9d8;
    border-radius: 20px;
    color: #8b6f47;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.related-person-tag:hover {
    background: #d4af37;
    color: #2c2416;
    transform: translateY(-2px);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(44, 36, 22, 0.95);
    color: #f5f1e6;
    margin-top: 3rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .intro h1 {
        font-size: 2rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .person-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
