/* 全局重置 */
* {
    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;
    position: relative;
    min-height: 100vh;
    z-index: 0;
  }
  
  body::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh; 
    background-image: url('../images/tower_background.jpg');
    background-size: cover;
    background-position: 100% center; 
    background-attachment: fixed; 
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}
.wrapper {
    width: 1200px;
    margin: 0 auto;
}

header .top {
    backgroud-color: #6a131b;
}

.top .right-box h1 {
    width: 364px;
    font-size: 52px; 
    color: #fff; 
    font-weight: bold; 
    text-shadow: 3px 3px 4px rgba(0,0,0,0.3); 
    font-family: "KaiTi", "楷体", "STKaiti", "Kaiti SC", "Kaiti TC", serif;
}

/* 主体区域样式 */
.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: 1200px;
    
  }
  
  /* 标题+控制区域布局 */
  .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;
    padding-right: 20px;
  }
  
  /* 轮播按钮样式（小箭头） */
  .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;
    width: 970px;
    padding: 25px 0 25px 0;
    overflow: hidden;
    margin-bottom: 48px;
  }
  
  .carousel-track {
    display: flex;
    gap: 20px; 
    transition: transform 0.5s ease;
  }
  
.carousel-item {
    width: 500px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    
    box-shadow: 8px 8px 12px hsla(354, 70%, 25%, 1);
    transition: all 0.3s ease; 
}
  

  .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-title {
    display: flex;
    align-items: center;
}

.donation-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 15px;
}

.donation-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;
}

.donation-controls .carousel-btn:hover {
    background-color: #923836;
    color: #fff;
}

/* 表格容器 */
.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: 21px;
    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; 
    font-size: 16px; 
    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;
    overflow: hidden;
}

.memory-section-title {
    letter-spacing: normal;
}

.memory-box {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 0;
    flex-wrap: nowrap;
    gap: 100px; 
    justify-content: flex-start; 
    align-items: center; 
}

.memory-item {
    min-width: calc(100% / 3);
    transition: transform 0.5s ease;
}

.memory-item img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.memory-item.center {
    transform: scale(1.2);
    z-index: 2;
}

footer .bottom {
    backgroud-color: #6a131b;
}