.scale-fill {
    object-fit: fill;
}

.scale-contain {
    object-fit: contain;
}

.scale-cover {
    object-fit: cover;
}

.scale-down {
    object-fit: scale-down;
}

.scale-none {
    object-fit: none;
}



.card {
    position: relative;
    overflow: hidden;
}

.description-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.4s ease;
    overflow: auto;
}

.card:hover .description-link {
    opacity: 1;
    transform: scale(1);
}

.description-link:hover {
    color: #fff;
    /* 避免链接变色 */
}

.falling-leaf {
    position: fixed;
    top: -50px;
    width: 30px;
    height: 30px;
    background-image: url('/assets/img/leaf.png');
    background-size: cover;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 9999;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}



.ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 150, 0, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleAnim 0.8s ease-out;
    z-index: 10000;
}

.text-shadow{
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);    
}

@keyframes rippleAnim {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

.content-wrapper {
  background-color: #fffaf0;

  /* 三层波浪线（加大间距） */
  background-image: 
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='800' height='240' viewBox='0 0 800 240'>\
        <path d='M0 120 Q200 0 400 120 T800 120' fill='none' stroke='rgba(231,111,81,0.20)' stroke-width='3'/>\
      </svg>"),
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='1000' height='280' viewBox='0 0 1000 280'>\
        <path d='M0 140 Q250 280 500 140 T1000 140' fill='none' stroke='rgba(244,162,97,0.15)' stroke-width='3'/>\
      </svg>"),
    url("data:image/svg+xml;utf8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='1200' height='320' viewBox='0 0 1200 320'>\
        <path d='M0 160 Q300 40 600 160 T1200 160' fill='none' stroke='rgba(233,196,106,0.12)' stroke-width='3'/>\
      </svg>");

  background-repeat: repeat;

  /* 每层线条的周期变大，波浪更稀疏 */
  background-size: 1600px 480px, 2000px 560px, 2400px 640px;

  animation: autumnWave 200s linear infinite;
}

@keyframes autumnWave {
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 2400px 0, -2000px 0, 1600px 0; }
}



ul.timeline {
	 position: relative;
	 list-style-type: none;
	 padding-left: 180px;
}
 ul.timeline:before {
	 position: absolute;
	 display: block;
	 left: 136px;
	 width: 8px;
	 height: 100%;
	 border-radius: 4px;
	 background-color: #07b;
	 content: ' ';
}
 ul.timeline .event {
	 position: relative;
	 padding: 16px;
	 background: white;
	 border-radius: 2px;
	 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
	 padding: 16px;
	 margin-bottom: 30px;
}
 ul.timeline .event:before {
	 display: block;
	 position: absolute;
	 top: 30px;
	 left: -55px;
	 width: 30px;
	 height: 30px;
	 border: 6px solid #07b;
	 border-radius: 50%;
	 background-color: white;
	 box-shadow: 0 0 4px -1px rgba(0, 0, 0, 0.6);
	 content: ' ';
}
 ul.timeline h3 {
	 font-size: 1.5em;
	 margin-top: 0;
	 margin-bottom: 10px;
}
 ul.timeline .time {
	 position: absolute;
	 display: block;
	 width: 120px;
	 top: 35px;
	 left: -179px;
	 font-size: 0.9em;
	 text-align: right;
	 font-weight: 600;
	 text-transform: uppercase;
}
 ul.timeline .time > .glyphicon-time {
	 top: 2px;
}
 ul.timeline .left-arrow:before {
	 position: absolute;
	 top: 30px;
	 left: -15px;
	 display: inline-block;
	 border-top: 15px solid transparent;
	 border-right: 15px solid #ddd;
	 border-left: 0 solid #ddd;
	 border-bottom: 15px solid transparent;
	 content: ' ';
}
 ul.timeline .left-arrow:after {
	 position: absolute;
	 top: 30px;
	 left: -14px;
	 display: inline-block;
	 border-top: 15px solid transparent;
	 border-right: 15px solid #fff;
	 border-left: 0 solid #fff;
	 border-bottom: 15px solid transparent;
	 content: ' ';
}
 

/* =========================
   Mobile timeline (≤768px)
   ========================= */
@media (max-width: 768px) {

  /* 整体改为单列，左侧时间轴 */
  ul.timeline {
    padding-left: 0;         /* 不再为右侧卡片留大空白 */
    margin-left: 16px;       /* 给左侧竖线留出一点空间 */
  }

  /* 竖线更细一点，靠左放 */
  ul.timeline:before {
    left: 9px;              /* 竖线距离屏幕左侧 */
    width: 3px;              /* 线更细 */
    border-radius: 2px;
    background-color: #07b;
  }

  /* 事件卡片：占满宽度，留出左边给圆点/竖线 */
  ul.timeline .event {
    margin: 0 0 16px 32px;   /* 左边为圆点留空间 */
    padding: 14px 14px 14px 14px;
    border-radius: 8px;      /* 手机端更柔和 */
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }

  /* 圆点更小更靠左，与竖线对齐 */
  ul.timeline .event:before {
    top: 18px;
    left: -28px;             /* 与上面的 margin-left 呼应 */
    width: 12px;
    height: 12px;
    border: 3px solid #07b;
    box-shadow: none;
  }

  /* 时间：从绝对定位改为块级，显示在标题上方，左对齐 */
  ul.timeline .time {
    position: static;
    width: auto;
    margin: 0 0 6px 0;
    font-size: .85em;
    font-weight: 600;
    text-transform: none;    /* 手机上不强制大写，便于阅读 */
    text-align: left;
    color: #6b7280;          /* 温和的灰色 */
  }
  ul.timeline .time > .glyphicon-time { top: 0; }

  /* 箭头去掉（移动端卡片贴竖线即可，更简洁） */
  ul.timeline .left-arrow:before,
  ul.timeline .left-arrow:after {
    display: none;
  }

  /* 标题与正文的间距/字号微调，提升可读性 */
  ul.timeline h3 {
    font-size: 1.1rem;
    margin: 2px 0 8px;
    line-height: 1.35;
  }
  ul.timeline .description p {
    margin-bottom: 0;
    line-height: 1.6;
  }

  /* 卡片 clickable 区域更大更“按钮感”（可选） */
  ul.timeline .event a {
    word-break: break-all;
  }
}

@media (max-width: 768px) {
    h1{
        font-size: 1.8rem;
    }

    h2{
        font-size: 1.8rem;
        
    }

    h3{
        font-size: 1.1rem;
    }

    .carousel-caption{
        left: 5%;
        right: 5%;
    }
}

.object-cover {
    object-fit: cover;
}

.carousel-item {
  transition: opacity 0.5s ease-in-out;
}

.carousel-item img.carousel-zoom {
  animation: zoomFade 8s ease-in-out infinite;
}

@keyframes zoomFade {
  0% { transform: scale(1) ; opacity: 0.3; }
  20% { transform: scale(1.05); opacity: 1; }
  80% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.3; }
}

.event-card {
  position: relative;
  overflow: hidden;
}

.event-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.event-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.event-card .card-overlay .excerpt {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

