/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

li {
    list-style: none;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    /* 关键：给body设置相对定位，让伪元素基于body定位 */
    position: relative;
    /* 保证背景铺满整个视口 */
    min-height: 100vh;
    /* 防止伪元素遮挡内容 */
    z-index: 0;
  }
  
  /* 伪元素承载背景图 + 透明度 */
  body::before {
    content: ""; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('.././images/tower_background.jpg');
    /* 背景图适配：铺满+居中，避免拉伸变形 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2; 
    z-index: -1;
  }
.wrapper {
    width: 1200px;
}

/* 主体区域样式 */
.page-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 40px;
    color: #923836;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 16px;
}

/* 师生祝福轮播 */
/* 师生祝福模块整体 */
.blessing-section {
    display: flex;
    position: relative;
    margin-bottom: 25px;
    width: 1220px;
    
  }
  
  /* 标题+控制区域布局 */
  .blessing-top {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  /* 竖排“师生祝福”标题 */
  .blessing-section .section-title {
    font-size: 40px;
    font-weight: bold;
    color: #923836;
    font-weight: 400;
    /* 实现文字竖排 */
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin-right: 15px;
  }
  
  /* 控制按钮+分页容器 */
  .blessing-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* 轮播按钮样式（小箭头） */
  .blessing-controls .carousel-btn {
    width: 40px;
    height: 40px;
    color: #923836;
    background-color: rgba(221, 221, 221, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
  }
  .blessing-controls .carousel-btn:hover {
    background-color: #923836;
    color: #fff;
  }
  
  /* 分页样式 */
  .carousel-pagination {
    width: 60px;
    text-align: center;
    font-size: 24px;
    color: #923836;
  }
  
  /* 轮播容器（带背景图） */
  .carousel-container {
    /* 后图的建筑背景图（需替换为实际路径） */
    background-size: cover;
    background-position: center;
    padding: 0 20px 0 20px;
    overflow: hidden;
    margin-bottom: 48px;
  }
  
  /* 轮播包裹层 */
  .carousel-wrapper {
    overflow: hidden;
  }
  
  /* 轮播轨道（横向排列多个卡片） */
  .carousel-track {
    display: flex;
    gap: 20px; /* 卡片之间的间距 */
    transition: transform 0.5s ease;
  }
  
  /* 轮播项（固定宽度，不缩小） */
  .carousel-item {
    width: 500px; /* 卡片宽度，可按需调整 */
    flex-shrink: 0;
  }
  
  /* 半透明圆角卡片（后图样式核心） */
  .item-card {
    width: 100%;
    height: 300px; /* 卡片高度，可按需调整 */
    background-color: rgba(255, 255, 255, 0.85); /* 半透明白色背景 */
    border-radius: 12px; /* 卡片圆角，匹配后图 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 卡片阴影 */
  }

/* 捐赠信息模块样式 */
.donation-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
    width: 1200px;
}

/* 竖排标题样式 */
.donation-title .section-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 40px;
    font-weight: 400;
    color: #923836;
    line-height: 40px;
    margin-right: 45px;
    margin-left: 10px;
    white-space: nowrap;
}

/* 表格容器 */
.donation-table {
    width: 1150px;
    height: 347px; /* 包含表头的总高度 */
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
}

/* 表格列样式 */
.table-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-right: 1px dashed #ccc;
    height: 100%;
}

/* 列宽分配 */
.table-col:nth-child(1) { flex: 0.8; }
.table-col:nth-child(2) { flex: 0.7; }
.table-col:nth-child(3) { 
    flex: 1.5; 
    border-right: none; 
}

/* 表头样式 */
.table-header {
    background-color: #8b1a1a;
    color: #fff;
    padding: 12px 0;
    font-size: 24px;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-body {
    height: 288px; /* 强制高度，覆盖可能的冲突样式 */
    position: relative;
    /* 新增：确保内容溢出方向正确 */
}

/* 表格行样式 */
.table-row {
    padding: 12px 0;
    color: #333;
    background-color: transparent;
    height: 36px; /* 固定高度 */
    line-height: 12px; /* 内容高度 = 36px - 24px(padding) = 12px */
    font-size: 22px; /* 限制字体大小，避免换行 */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* 防止内容换行增加高度 */
}

/* 行hover效果 */
.table-row:hover {
    background-color: #923836;
    color: #fff;
}

/* 珍贵记忆 */
.memory-section {
    margin-bottom: 48px;
}

.memory-section-title {
    letter-spacing: normal;
}

.memory-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.memory-box .memory-item img {
    width: 397px;
    height: 300px;
}

header .top {
    backgroud-color: #6a131b;
}

header .top .right-box h1 {
    color: #fff;
    font-size: 128px;
}

footer .bottom {
    backgroud-color: #6a131b;
}