/* 全局通用样式重置 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: white;
    font-size: 12pt;
    line-height: 1.75em;
    font-family: Tahoma, sans-serif;
    -webkit-text-size-adjust: 100%; /* 禁止字体自动缩放 */
}

br.clearfix {
    clear: both;
}

/* 固定布局容器 - 全站通用 */
#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* LOGO容器 - 全站通用 */
#logo-container {
    position: fixed !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    height: 99px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    width: 100vw !important; /* 强制占满手机屏幕宽度 */
    padding: 0 10px !important; /* 左右留边，避免内容贴边 */
    box-sizing: border-box !important; /* 边距不占宽度，防止溢出 */
}

#logo-container img {
    max-width: 100% !important; /* LOGO自适应屏幕，不超出 */
    height: auto !important; /* 保持LOGO比例，不拉伸 */
    max-height: 80px !important; /* 限制LOGO高度，避免遮挡导航 */
}

/* 顶部导航栏 - 全站通用 */
#menunav {
    position: fixed !important;
    top: 90px;
    left: 0 !important;
    right: 0 !important;
    background: #455A64 repeat-x top left;
    font-family: Oswald, sans-serif;
    padding: 0 5px !important;
    border-top: solid 1px white;
    border-bottom: solid 1px white;
    height: 55px;
    z-index: 1000;
    font-weight: bold;
    width: 100vw !important; /* 导航栏强制占满手机屏幕宽度 */
    box-sizing: border-box !important;
    overflow-x: auto !important; /* 导航项太多时，手机端可左右滑动查看 */
    overflow-y: hidden !important;
    white-space: nowrap !important; /* 导航项不换行，避免挤在一起 */
}

#navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    width: max-content !important; /* 导航栏宽度随内容自适应，不截断 */
    margin: 0 auto !important; /* 导航项居中 */
}

#navbar li {
    list-style: none;
    display: inline-block !important; /* 导航项横向排列 */
    margin: 0 6px !important; /* 减小导航项间距，适配手机 */
}

#navbar li a {
    display: block;
    padding: 3px 8px;
    color: #fff;
    text-decoration: none;
}

/* 页面主体容器 - 全站通用 */
#page {
    width: 100%;
    position: relative;
    border-top: solid 1px #FFFFFF;
    border-bottom: solid 5px #D0D0D0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-top: 120px !important; /* 适配LOGO+导航高度，保证内容完整显示 */
}

#padd {
    padding: 40px 35px 15px 35px;
}

#page h2,
#page h3,
#page h4 {
    color: #2F2F2F;
    text-shadow: 0px 2px 0px #FFFFFF;
}

/* 通用标题样式 */
.componentheading {
    border-bottom: #336699 1px solid;
    color: #336699;
    font-weight: bold;
    font-size: 20px;
    margin: 0.75em 0 0.25em;
    white-space: nowrap;
}

/* 子导航栏 - 全站通用 */
.sub-navbar {
    list-style-type: none;
    margin: 10px 0;
    padding: 0;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.sub-navbar li a {
    display: block;
    color: #333;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
}

/* 底部文本通用样式 */
p#z_foot {
    text-align: center;
    margin: 20px 0;
}

/* 人员页面专属样式（保留，其他页面引用后若无对应DOM则不生效） */
.teacher-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap !important; /* 强制小屏/放大时自动换行，上下排列 */
    gap: 30px !important; /* 给两张卡片加足够间距，避免紧贴 */
    width: 100% !important;
    box-sizing: border-box !important;
}

.top-member {
    width: calc(50% - 15px) !important; /* 大屏平分宽度，适配gap */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 360px !important; /* 给卡片设最小宽度，防止被挤扁 */
    box-sizing: border-box !important;
}

.top-member img {
    width: 300px;
    height: 300px;
    border: 0;
    max-width: 100% !important; /* 图片最大不超过卡片宽度，不溢出 */
    height: auto !important; /* 保持图片比例，不拉伸 */
    flex-shrink: 0 !important; /* 禁止图片被压缩变形 */
}

.member-details {
    padding: 10px;
    line-height: 1.2em;
}

/* 成员卡片通用样式 */
.member {
    display: inline-block;
    width: calc(25% - 20px); /* 确保宽度设置合理 */
    min-width: 220px;
    padding: 20px;
    text-align: center;
    margin: 10px 5px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    vertical-align: top;
}

.member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 0;
    margin-bottom: 20px;
}

.member a {
    text-decoration: none;
    color: #333;
}

.member b {
    display: block;
    margin-bottom: 5px;
}

.member p {
    margin: 0;
    font-size: 11pt;
}

/* 响应式适配 - 全站通用 */
@media (max-width: 768px) {
    .top-member {
        width: 100% !important;
    }
}
