:root {
  --text-main: #333;
  --title-blue: #2A7990;
  --bg-contributors: #478C8A;
  --color-name: #F7CF65;
  --bg-garden: #659E59;
  --bg-hub: #D5E7A5;
  --bg-stage: #FDDDA4;
  --bg-megaphone: #FCD6D6;
  --bg-room: #A7D8E1;
  --border-rad-lg: 30px;
  --border-rad-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #ffffff; color: var(--text-main); padding-bottom: 50px; }

/* ================= 头部区域 ================= */
/* .header { 
  position: relative; 
  width: calc(100vw - 120px); 
  max-width: 1800px; 
  margin: 40px auto 30px; 
  text-align: center; 
}
.header h1 { color: var(--title-blue); font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.header-decor { color: var(--title-blue); font-size: 12px; letter-spacing: 2px; margin-top: 5px; opacity: 0.8; } */

/* ================= 主体 Flex 布局 ================= */
.main-container {
  width: calc(100vw - 120px);
  max-width: 1800px;
  margin: 0 auto 60px;
  display: flex;       
  gap: 30px;           
  justify-content: center; 
}

.left-col, .right-col {
  flex: 1;
  max-width: 885px;
  min-width: 0; 
}

.campus-news a{color:#1a1a1a;}
.campus-news .contributors a{color:#fff;}

/* ================= 右侧专属：搜索框及下拉Tags ================= */

.search-wrapper {
  position: relative;
  margin-bottom: 15px; /* 与下方绿色卡片的间距 */
  width: 100%;
}
.right-search-bar {
  background: #F4F5F7; 
  padding: 8px 15px; 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; /* 允许内部元素换行 */
  gap: 6px; 
  cursor: text;
  border-radius: 60px;
  height: 58px;
}
.right-search-bar svg { width: 22px; height: 22px; fill: #999; flex-shrink: 0; }

.right-search-bar input { 
  border: none; background: transparent; outline: none; 
  flex: 1; min-width: 120px; font-size: 14px; color: #333; padding: 4px 0;
}

/* 新增：选中标签的胶囊样式 */
.selected-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--title-blue); color: #fff; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.chip-close { cursor: pointer; font-weight: bold; font-size: 20px; opacity: 0.8;height:16px;line-height: 16px; }
.chip-close:hover { opacity: 1; color: #ffcccc; }

/* Tags 下拉面板 */
.tags-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; width: 100%;
  background: white; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 20px; z-index: 100;
}
.tags-dropdown p { font-size: 13px; color: #666; margin-bottom: 12px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: #eee; padding: 6px 15px; border-radius: 20px; font-size: 13px;
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.tag.selected { background: var(--title-blue); color: white; }

/* 公共卡片样式 */
.card { border-radius: var(--border-rad-lg); overflow: hidden; position: relative; }

/* ================= 左侧区域 ================= */
.hero-news { height: 590px; margin-bottom: 30px; } 
.hero-swiper .swiper-slide { height: 100%; }
.hero-swiper .swiper-slide a{display: block;height: inherit;}
.hero-news img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  padding: 40px 25px 30px; color: #fff;
}
.hero-date { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.hero-title { font-size: 16px; font-weight: 500; }

.hero-swiper .swiper-pagination-bullets { bottom: 15px; width: 100%; display: flex; justify-content: center; gap: 6px; }
.hero-swiper .swiper-pagination-bullet { width: 18px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 2px; opacity: 1; margin: 0 !important; }
.hero-swiper .swiper-pagination-bullet-active { background: #fff; }

.contributors { background: var(--bg-contributors); color: #fff; padding: 30px 44px; height: 524px; display: flex; flex-direction: column; }
.contributor-title { font-size: 36px; font-weight: bold; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.contributor-title a{display: flex;align-items: center;gap:10px;}
.contributor-title .icon-list{width:32px;height:auto;}

.contributors-swiper { height: 260px; width: 100%; overflow: hidden; }
.contributor-item>a{ display: flex; gap: 20px; height: auto !important; align-items: center; }
.avatar { width: 58px; height: 58px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; flex-shrink: 0; overflow: hidden; }
.avatar img {width: 100%;height: 100%;}
.info-col { flex: 1; }
.name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.name { color: var(--color-name); font-size: 28px; font-weight: bold; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 12px; color: #333; font-weight: bold; }
.badge:empty{display: none;}
.badge.writer { background: #C5E5A5; }
.badge.editor { background: #E8E596; }
.desc { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.article { font-size: 14px; font-weight: 500; }

.controls { display: flex; justify-content: center; gap: 10px; margin-top: auto; }
.btn-square { width: 32px; height: 32px; background: #fff; border: none; border-radius: 6px; color: var(--bg-contributors); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; outline: none; }

/* ================= 右侧区域 ================= */
.shared-garden {position: relative;  padding: 30px 40px 40px; margin-bottom: 30px; overflow: hidden;border-radius: 60px;}
.section-header-center { position: relative;z-index: 2; text-align: center; margin-bottom: 10px; }
.section-header-center h2 { font-size: 32px; color: #111; margin-bottom: 4px; }
.section-header-center p { font-size: 24px; font-weight: normal; color: #222; }
.garden-grid { position: relative;z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.shared-garden .card-bg{ position: absolute; top: 0; left:0; width: 100%; height: 100%;  object-fit: cover;}
.garden-item img { width: 100%; height: 227px; object-fit: cover; display: block; border-radius: var(--border-rad-sm); margin-bottom: 15px; }
.garden-item p { font-size: 13px; line-height: 1.5; color: #111; font-weight: 500; 
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tips-more{position: absolute;z-index: 2;bottom: 12px;font-size: 14px;right: 12px;padding: 8px;}
.tips-more:hover{
  color: #fff;
}
.quad-grid { position: relative;z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mini-card {position: relative; padding: 34px 30px; display: flex; flex-direction: column; height: 290px; transition: all .23s;overflow: hidden;}
.mini-card .card-bg{ position: absolute; top: 0; left:0;width:100%; height: 100%;object-fit: cover; }

.mini-card:hover { transform: translateY(-10px);}
.mini-card .mini-text{ display: flex; height: inherit; flex-direction: column; justify-content: space-between;}
.mini-icon img{width: 100%; max-width: 100%;}
.hub { background: var(--bg-hub); }
.stage { background: var(--bg-stage); }
.megaphone { background: var(--bg-megaphone); }
.room { background: var(--bg-room); }
.mini-header { position: relative;z-index:2; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.mini-header h3 { font-size: 24px; color: #111; margin-bottom: 4px; }
.mini-header p { font-size: 20px; color: #333; }
.mini-icon { z-index: 2; position: absolute; right: 33px; top: 15px; }
.mini-content { position: relative;z-index:2; display: flex; gap: 15px;  }
.mini-content img { width: 109px; height: 109px; flex-shrink: 0; object-fit: cover; display: block; border-radius: var(--border-rad-sm); }
.mini-text .title { font-size: 15px; font-weight: bold; color: #111; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mini-text .date { font-size: 15px; font-weight: bold; }



/* ================= 贡献者无缝滚动区 ================= */
.marquee-viewport {
    height: 365px; /* 大约刚好容纳 3 个元素的高度 */
    overflow: hidden; 
    position: relative;
    /* 遮罩渐变：让列表在顶部和底部看起来是渐隐消失的，更显高级 */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}
.marquee-viewport.no-mask {
  -webkit-mask-image: none;
  mask-image: none;
}

.marquee-track {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 元素之间的间距 */
}

/* 鼠标悬停时，暂停动画 */
.marquee-viewport:hover .marquee-track {
    animation-play-state: paused !important;
}

.arrow-btn-group {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 100%;
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-btn {
  width: 44px;
  height: 43px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 7px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  /* 添加微妙的阴影 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
              0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
}

/* 悬停效果 */
.arrow-btn:hover {
  background-color: #f5f7fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 
              0 2px 4px rgba(0, 0, 0, 0.06);
}

/* 点击时的按下效果 */
.arrow-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #e8ecf1;
}

/* 点击时的波纹效果 */
.arrow-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* 点击时激活波纹 */
.arrow-btn.clicked::after {
  width: 100px;
  height: 100px;
  opacity: 1;
}

/* 图标样式 */
.arrow-btn .icon-up-btn,
.arrow-btn .icon-down-btn {
  width: 10px;
  transition: transform 0.2s ease;
}

/* 悬停时图标微动 */
.arrow-btn:hover .icon-up-btn {
  transform: translateY(-2px);
}

.arrow-btn:hover .icon-down-btn {
  transform: translateY(2px);
}

/* 点击时图标缩放 */
.arrow-btn:active .icon-up-btn,
.arrow-btn:active .icon-down-btn {
  transform: scale(0.9);
}

/* 禁用状态（滚动时） */
.arrow-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 滚动中的脉冲动画 */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                0 0 0 3px rgba(0, 0, 0, 0.05);
  }
}

.arrow-btn.scrolling {
  animation: pulse 1s ease-in-out;
}

/* 成功反馈（绿色闪烁） */
@keyframes successFlash {
  0%, 100% {
    background-color: #ffffff;
  }
  50% {
    background-color: #e8f5e9;
  }
}

.arrow-btn.success {
  animation: successFlash 0.4s ease;
  border-color: #4caf50;
}

/* 动画关键帧：向上平移自身高度的一半 */
@keyframes marqueeUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}


/* ================= 响应式设计 (Responsive) ================= */

/* 笔记本/较小桌面端 (最大宽度 1480px) */
@media screen and (max-width: 1480px) {
  /* 1. 缩小整体间距 */
  .main-container {
    gap: 20px; /* 缩小左右两栏的间距 */
  }
  .contributor-title { font-size: 28px; margin-bottom: 15px; }
  .name { font-size: 22px; }
  .desc, .article { font-size: 13px; }
  
  .hero-date { font-size: 28px; }
  .section-header-center h2 { font-size: 28px; }
  .section-header-center p { font-size: 20px; }
  
  .mini-header h3 { font-size: 20px; }
  .mini-header p { font-size: 16px; }
  .mini-text .title { font-size: 14px; }

  /* 3. 适度降低左侧卡片高度，保持比例协调 */
  .hero-news {
    height: 480px; 
    margin-bottom: 20px;
  }
  .contributors {
    height: 517px;
    padding: 25px 30px;
  }
  .marquee-viewport {
    height: 280px; /* 配合缩小后的文字高度微调 */
  }

  /* 4. 优化右侧卡片内边距和图片大小 */
  .shared-garden {
    padding: 25px 30px 30px;
    margin-bottom: 20px;
  }
  .quad-grid {
    gap: 20px; /* 缩小四宫格间距，防止内部元素被挤压 */
  }
  .mini-card {
    padding: 25px 20px;
    height: 250px; /* 稍微降低固定高度 */
  }
  .mini-content {
    gap: 12px;
  }
  .mini-content img {
    width: 120px; /* 缩小缩略图，给文字留出足够的呼吸空间 */
    height: 85px;
  }
  .mini-icon {
    transform: scale(0.8); /* 缩小右上角背景装饰图标 */
    right: 20px;
    top: 10px;
  }
}
/* 平板端 (最大宽度 1024px) */
@media screen and (max-width: 1024px) {
  /* 缩小页面两侧留白 */
  .header, .main-container {
    width: calc(100vw - 40px);
  }

  /* 主体左右两栏改为上下排列 */
  .main-container {
    flex-direction: column;
  }
  
  .left-col, .right-col {
    max-width: 100%;
  }

  /* 调整左侧轮播图高度 */
  .hero-news {
    height: 450px;
  }

  /* 取消右侧 mini-card 的固定高度，让内容自动撑开 */
  .mini-card {
    height: auto;
    padding: 24px;
  }
}

/* 手机端 (最大宽度 768px) */
@media screen and (max-width: 768px) {
  .section-header-center h2 {
    font-size: 24px;
  }
  .section-header-center p {
    font-size: 18px;
  }

  /* 将所有的 2 列网格 (1fr 1fr) 改为 1 列 (1fr) */
  .garden-grid, 
  .quad-grid {
    grid-template-columns: 1fr;
  }

  /* 左侧区块调整 */
  .hero-news {
    height: 300px;
  }
  .hero-date {
    font-size: 24px;
  }
  
  /* 贡献者区域高度自适应，减小 padding */
  .contributors {
    height: auto;
    padding: 20px;
  }
  .contributor-title {
    font-size: 24px;
  }
  .marquee-viewport {
    height: 300px; /* 根据实际显示效果微调 */
  }

  /* 右侧区域调整 */
  .shared-garden {
    padding: 20px;
  }
  
  /* mini-card 图文改为上下排列，适应小屏幕 */
  .mini-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .mini-content img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 保持优雅的图片比例 */
  }
  
  /* 缩小背景装饰 icon，防止遮挡文字 */
  .mini-icon {
    transform: scale(0.6);
    right: 10px;
    top: 10px;
    opacity: 0.3; /* 降低透明度，让文字更易读 */
  }
  
  .mini-header {
    margin-bottom: 15px;
  }
  .mini-header h3 {
    font-size: 20px;
  }
  .mini-header p {
    font-size: 16px;
  }
}

/* 极小屏幕微调 (最大宽度 480px) */
@media screen and (max-width: 480px) {
  .hero-news {
    height: 250px;
  }
  .right-search-bar {
    border-radius: 20px;
  }
  .avatar {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  .name {
    font-size: 20px;
  }
}







/* ================= 贡献者列表页样式 (Flex 版) ================= */
/* 列表容器：利用 Flex 实现响应式自动换行 */
.editor-list-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* 核心修改：让所有元素始终靠左对齐，解决最后一行居中错位的问题 */
  gap: 30px;
  padding: 40px 0;
  margin: 0 auto;
  width: 1194px;
  max-width: 100%;
}

/* 单个卡片主体保持不变 */
.editor-item {
  flex: 0 0 276px;
  /* 锁死宽度，不允许放大或缩小 */
  width: 276px;

  background-color: #EFF6F8;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 25px;
  padding-bottom: 20px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
}

.editor-item:hover {
  transform: translateY(-5px);
}

/* 顶部标签 */
.editor-header {
  text-align: center;
  color: #1B7A8B;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 10;
  height: 35px;
  /* 超出两行显示省略号 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 视觉中心（头像及背景图形） */
.editor-visual {
  position: relative;
  height: 200px;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* 让人物靠下对齐 */
}

/* 人物背后的左上圆角带白边方块 */
.visual-bg {
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 85%;
  height: 90%;
  z-index: 1;
}

/* 装饰点阵：使用径向渐变纯 CSS 生成 */
.dots {
  position: absolute;
  width: 40px;
  height: 40px;
  background-image: radial-gradient(#FFF 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  z-index: 2;
  opacity: 0.8;
}

.dot-top {
  top: 10px;
  right: 25px;
}

.dot-left {
  bottom: 40px;
  left: 20px;
}

/* 人物头像 */
.editor-avatar {
  position: relative;
  z-index: 5;
  width: 190px;
  height: auto;
  object-fit: contain;
  margin-bottom: -5px;
  /* 让头像稍微下沉，覆盖在深色区域边缘 */
}

/* 底部深色信息区 */
.editor-footer {
  position: relative;
  background-color: #1F7D8F;
  color: #FFF;
  padding: 25px 20px;
  border-bottom-right-radius: 70px;
  /* 右下角夸张的圆角 */
  z-index: 6;
  width: 100%;
  box-sizing: border-box;
}

/* 姓名和描述文字 */
.editor-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
}

.editor-desc {
  font-size: 14px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* 底部深色区的线条装饰 */
.footer-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-bottom-right-radius: 70px;
}

.footer-decor::before,
.footer-decor::after {
  content: '';
  position: absolute;
  height: 40px;
  /* 使用线性渐变生成横线条 */
  background-image: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.15) 0,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px,
      transparent 4px);
}

.footer-decor::before {
  bottom: 10px;
  left: 0;
  width: 60px;
}

.footer-decor::after {
  top: 20px;
  right: 20px;
  width: 80px;
}

/* 当屏幕放不下 4 列时，强制容器变为 3 列的宽度 */
@media screen and (max-width: 1250px) {
  .editor-list-container {
    /* 3 列：(276px * 3) + (30px * 2) = 888px */
    width: 888px;
  }
}

/* 当屏幕放不下 3 列时，强制容器变为 2 列的宽度 */
@media screen and (max-width: 950px) {
  .editor-list-container {
    /* 2 列：(276px * 2) + 30px = 582px */
    width: 582px;
  }
}

/* 手机端：只能放下 1 列时 */
@media screen and (max-width: 650px) {
  .editor-list-container {
    /* 1 列：刚好是一个卡片的宽度 */
    width: 276px;
  }
}


/* 卡片容器 */
.profile-card {
  background-color: #ffffff;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

/* 头像区域 */
.profile-card .avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 0 20px;
}
.profile-card .avatar-container-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.profile-card .avatar-img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 90%;
  height: 90%;
  margin: auto;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0eaf3;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 30px;
  /* 占位色 */
}

/* 标签 (总编辑) */
.profile-card .badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff9d84;
  color: white;
  padding: 4px 15px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

/* 名字区域 */
.profile-card .name-section {
  margin-top: 15px;
}

.profile-card .name-en {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.profile-card .name-zh {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 5px 0 15px;
}

/* 班级和作品统计 */
.profile-card .info-meta {
  font-size: 16px;
  color: #999;
  margin-bottom: 25px;
  font-weight: bold;
}

.info-meta span {
  margin: 0 8px;
}

/* 代表作品 */
.profile-card .works-section {
  font-size: 16px;
  color: #888;
  line-height: 1.6;
  text-align: left;
  padding: 0 0;
  word-break: break-all;
  font-weight: bold;
}

.profile-card .works-label {
  color: #999;
  font-weight: bold;
}