@charset "UTF-8";

/* ================================
   全局设置
================================ */
html {
    overflow-y: scroll;
}

:root {
    --primary-color: #003366;
    --accent-color: #c49b66;
    --text-dark: #222;
    --text-gray: #555;
    --bg-color: #f4f4f4;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans Pro', sans-serif, "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.0rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================================
   布局结构
================================ */
.container {
    display: flex;
    width: 95%;
    max-width: 1150px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px auto;
    flex: 1;
}

.sidebar {
    width: var(--sidebar-width);
    background: #fdfdfd;
    padding: 40px 30px;
    border-right: 1px solid #eaeaea;
    text-align: center;
    flex-shrink: 0;
}

.avatar-box {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.15);
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

.name { font-size: 1.8rem; margin-bottom: 5px; color: var(--primary-color); font-weight: bold; }
.title { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 20px; }

.contact-info {
    text-align: left;
    margin-top: 30px;
    font-size: 0.9rem;
    list-style: none !important;
}
.contact-info li { margin-bottom: 15px; display: flex; align-items: center; }
.contact-info i { width: 25px; text-align: center; color: var(--accent-color); margin-right: 8px; }
.contact-info a { color: var(--primary-color); text-decoration: none; }

.main-content {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 必须加这一行，防止内容撑爆 Flex 容器 */
    overflow: hidden; /* 辅助限制 */
}

/* ================================
   导航菜单 (核心滚动逻辑)
================================ */
.nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 0px;
    overflow-x: auto;        /* 关键：允许横向溢出滚动 */
    overflow-y: hidden;
    white-space: nowrap;     /* 关键：强制不换行 */
    -webkit-overflow-scrolling: touch; /* iOS 滑动优化 */
}

.nav::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.nav a {
    margin-right: 30px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 12px;
    display: inline-block;
    flex-shrink: 0;          /* 关键：防止文字被压缩 */
}

.nav a.active, .nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

#main { flex: 1; }

h2 {
    font-size: 1.5rem; color: var(--primary-color);
    margin-bottom: 25px; padding-bottom: 10px;
    border-bottom: 1px solid #eee; position: relative; margin-top: 30px;
}
h2::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 50px; height: 3px; background: var(--accent-color);
}

a { color: #52adc8; transition: 0.3s; }
a:hover { color: var(--accent-color); }

ul.pub-list {
    list-style: disc !important;
    padding-left: 25px !important;
    margin: 20px 0;
}
ul.pub-list li { margin-bottom: 12px; color: var(--text-dark); }

footer {
    text-align: center; font-size: 0.8rem; color: #aaa;
    border-top: 1px solid #eee; padding: 20px 0; margin-top: 40px;
}

/* ================================
   响应式适配
================================ */
@media (max-width: 850px) {
    .container { flex-direction: column; width: 100%; margin: 0; border-radius: 0; box-shadow: none; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding: 40px 20px; }
    .main-content { padding: 30px 20px; }
    .nav { margin-bottom: 20px; }
    .nav a { margin-right: 20px; font-size: 0.95rem; }
}