@font-face {
    font-family: 'HarmonySans';
    src: url('../assets/HarmonyOS_Sans_SC_Bold.ttf') format('truetype');
    font-weight: medium;
    font-style: normal;
}

body {
    font-family: 'HarmonySans',Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.header {
    display:flex;
    justify-content: flex-start;
    background-color: #fff;
    padding: 10px;
    font-size:24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content {
    padding: 15px;
}

.intro, .work, .events {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-image {
    width: 50%;
    border-radius: 8px;
    margin-bottom: 15px;
}

h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0;
}

.back-link{
    margin-right: 10px;
    text-decoration: none;
}

.back-icon{
    width:20px;
    height: 20px;
    vertical-align: middle;
    margin-top: auto;
}

.header h1 {
    margin:0;
    vertical-align: middle;
    margin-top: auto;
    font-size:18px;
}

.image-con{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent
}

.work-icon {
    width: 20px; /* 根据需要调整宽度 */
    height: 20px; /* 根据需要调整高度 */
    vertical-align: middle; /* 图标与文本垂直居中 */
    margin-right: 5px; /* 图标与文本之间的间距 */
}

.work-item {
    margin-bottom: 10px;
}

.work-item span {
    font-weight: bold;
}

.event {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.event h3 {
    margin: 0;
    font-size: 14px;
    color: #007bff;
}

.event p{
    margin: 5px 0 0 0;
    font-size: 14px;
}

.footer {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.return-home-button {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center;
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none; /* 确保整个按钮没有下划线 */
    transition: background-color 0.3s ease;
}

.return-home-button:hover {
    background-color: #0056b3; /* 悬停时的背景色 */
}

.return-home-text{
    text-decoration: none;
    color:#fff;
    text-align: center;
}

.home-icon{
    width: 20px; /* 根据需要调整图标的宽度 */
    height: 20px; /* 根据需要调整图标的高度 */
    margin-right: 8px; /* 图标与文字之间的间距 */
    vertical-align: middle;
}


.past-leaders {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.past-leaders h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.leaders {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.leader-item {
    background-color: #f8f9fa;
    flex-basis: calc(40% - 10px);
    display: flex;
    align-items: center;
    padding: 10px;
    margin:0 auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leader-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.leader-info {
    text-align: left;
}

.leader-name {
    font-size: 14px;
    font-weight: bold;
}

.leader-year {
    font-size: 12px;
    color: #666;
}

/* 凉尘新增的样式 */

.history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 每行四列 */
    gap: 10px; /* 列之间的间距 */
}

.leader-row {
    display: contents; /* 保持每一行的内容自适应布局 */
}

.generation {
    font-weight: bold;
    font-size: clamp(12px, 4vw, 16px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.leader-title {
    font-weight: bold;
    font-size: clamp(12px, 4vw, 16px); /* 根据屏幕大小调整字体 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.leader-person {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 向左对齐 */
    font-size: clamp(12px, 4vw, 16px);
}

.history-grid .leader-person img {
    width: clamp(20px, 5vw, 30px); /* 头像宽度从 20px 到 40px 自适应 */
    height: clamp(20px, 5vw, 30px); /* 头像高度与宽度一致，确保头像为正方形 */
    vertical-align: middle;
    margin-right: 10px;
}

/* 控制社长和副社长的排列对齐 */
.history-grid .leader-row:nth-child(odd) {
    grid-column: span 2; /* 奇数行（社长）对齐 */
}

.history-grid .leader-row:nth-child(even) {
    grid-column: span 4; /* 偶数行显示副社长和其他成员 */
}

.blank-space {
    /* 留空格的样式 */
    width: 1px; /* 可以控制宽度，确保为空格列 */
}
