/* ========== 全局 Reset & 基础布局 ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
  }
  body {
    font-weight: 400;
    display: flex;
    flex-direction: column;
  }
  .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .page-content {
    flex: 1;
    padding-top: 4rem; /* 如果 header 高度是 4rem，可调整 */
  }
  
  /* ========== Header ========== */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 1rem 0;
  }
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-logo img {
    height: 50px;
    display: block;
  }
  
  /* 导航 */
  .site-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  .nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: .5rem;
  }
  .nav-list a {
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-weight: 500;
  }
  .site-nav.is-open { display: block; }
  
  @media (min-width: 768px) {
    .mobile-menu-toggle { display: none; }
    .site-nav { display: block; margin-left: auto; }
    .nav-list {
      flex-direction: row;
      gap: 24px;
      margin-top: 0;
    }
  }
  
  /* ========== Download Hero 区域 ========== */
  .download-hero {
    position: relative;
    background: url('https://assets.slarkvan.com/image/desktopeventi_image1.jpg') center/cover no-repeat;
    height: 60vh;
    overflow: hidden;
    margin-top: -4rem; /* 保证在 header 之下 */
    padding-top: 4rem; /* 再给内部留同样的间距，确保内容不被导航栏挡住 */
  }
  .download-hero__overlay {
    position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  /* 改成竖直排列，居中对齐 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
  .download-hero__title {
    font-size: clamp(2.5rem,8vw,5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
  }
/* ========== 搜索框容器 ========== */
.download-search {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;     /* 居中 */
  }
  
  /* 输入区自动撑满剩余空间 */
  .download-search__input {
    position: relative;
    flex: 1;
  }
  
  /* 文本输入框 */
  .download-search__input input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  /* 放大镜图标（如果是按钮，保持可点击） */
  .download-search__input .search-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }
  
  /* 提交按钮 */
  .download-search__btn {
    flex: 0 0 180px;     /* 初始固定宽度 */
    background: #C01C20;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: flex-basis 0.2s, font-size 0.2s;
  }
  
  /* 中等屏：按钮略微变小 */
  @media (max-width: 1200px) {
    .download-search__btn {
      flex: 0 0 150px;
    }
  }
  
  /* 小平板：按钮和输入框字体更紧凑 */
  @media (max-width: 992px) {
    .download-search__btn {
      flex: 0 0 130px;
      font-size: 0.9rem;
    }
    .download-search__input input {
      padding: 0.6rem 2.5rem 0.6rem 0.8rem;
    }
  }
  
  /* 手机窄屏：上下堆叠，宽度 100% */
  @media (max-width: 767px) {
    .download-search {
      flex-direction: column;
    }
    .download-search__input,
    .download-search__btn {
      width: 100%;
      flex: none;
    }
    .download-search__btn {
      font-size: 1rem;
    }
  }
  
  /* —— Altri Download —— */
.other-download {
    padding: 4rem 1rem;
    text-align: center;
    padding: 4rem 0;
    background: #f5f5f5;
  }
  .other-download__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
  }
  .other-download__title::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: #C01C20;
    margin: 0.5rem auto 2rem;
  }
  
  /* —— 卡片容器 —— */
  .other-download__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* —— 单张卡片 —— */
  .card {
    position: relative;
    background: #f9f9f9;
    padding: 2rem 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
  }
  
  /* 水印数字 */
  .card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0,0,0,0.04);
    pointer-events: none;
  }
  
  /* 图标与文字 */
  .card-icon {
    display: block;
    margin: 1.5rem auto 1rem;
    width: 48px;
    height: auto;
  }
  .card-label {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #C01C20;
    font-weight: 600;
  }
  
  /* —— 悬浮态 —— */
  .card:hover {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  .card:hover .card-icon {
    filter: brightness(0) invert(1);
  }
  .card:hover .card-label  {
    color: #fff;
  }
  .card-number {
    color: #fff;
  /* 可选：让水印数字在 hover 时更明显 */
  // .card:hover .card-number {
  //   color: r#fff;(255,255,255,0.1);
  //}
  
/* ================= Events 区块 ================= */
.events {
  padding: 4rem 1rem;
  background: #fff;
}
/* 1. 选项卡导航 */
.events__tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.tab {
  background: none;
  border: none;
  padding: .5rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #333;
  transition: color .2s;
}
.tab--active,
.tab:hover {
  color: #C01C20;
}
.tab--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #C01C20;
  border-radius: 2px;
}

/* 2. 内部容器 & 标题 */
.events__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.events__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.events__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: #C01C20;
  margin: .5rem 0 2rem;
}

/* 3. 筛选下拉 */
.events__filters {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter {
  display: flex;
  flex-direction: column;
  font-size: .9rem;
}
.filter label {
  margin-bottom: .25rem;
  color: #333;
}
..filter select {
    padding: .5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
  }  
}

/* 响应式：筛选栏在窄屏下居中并换行 */
@media (max-width: 768px) {
  .events__filters {
    justify-content: center;
    gap: 1rem;
  }
}

/* 4. 卡片布局 */
.events__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* 单张卡片 */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform .2s, box-shadow .3s;
  cursor: pointer;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* 左侧图片 */
.event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧内容 */
.event-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-card__date {
  font-size: .9rem;
  color: #C01C20;
  margin-bottom: .5rem;
}
.event-card__heading {
  font-size: 1.25rem;
  margin: 0 0 .75rem;
}
.event-card__text {
  flex: 1;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.event-card__btn {
  align-self: flex-start;
  padding: .65rem 1.2rem;
  background: #C01C20;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.event-card__btn:hover {
  background: #a01a15;
}

/* 窄屏时卡片上下堆叠 */
@media (max-width: 992px) {
  .events__cards {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
}
/* ======================
   1. 选项卡导航（Tabs）
   ====================== */
.events__tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.tab {
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}
.tab:hover,
.tab--active {
  color: #C01C20;
}
.tab--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #C01C20;
  border-radius: 2px;
}

/* ======================
   2. 容器 & 标题
   ====================== */
.events__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  margin-top: 4rem;
}
.events__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}
.events__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: #C01C20;
  margin: 0.5rem 0 2rem;
}

/* ======================
   3. 筛选器（Filters）
   ====================== */
.events__filters {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.filter {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}
.filter label {
  margin-bottom: 0.25rem;
  color: #333;
}
.filter select {
    padding: .5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
  }  

/* 窄屏下把筛选器居中 */
@media (max-width: 768px) {
  .events__filters {
    justify-content: center;
  }
}

/* ======================
   4. 卡片布局 & 悬浮效果
   ====================== */
.events__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 单张卡片整体 */
.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* 左侧图片 */
.event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 右侧文字区 */
.event-card__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-card__date {
  font-size: 0.9rem;
  color: #C01C20;
  margin-bottom: 0.5rem;
}
.event-card__heading {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.event-card__text {
  flex: 1;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.event-card__btn {
  align-self: flex-start;
  padding: 0.65rem 1.2rem;
  background: #C01C20;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.event-card__btn:hover {
  background: #a01a15;
}

/* 窄屏下卡片上下堆叠 */
@media (max-width: 992px) {
  .events__cards {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
}

/* ========== Newsletter ========== */
.newsletter {
    padding: 4rem 0;
    margin-top: 5rem;
  }
  .newsletter__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
  }
  .newsletter__input {
    flex: 1 1 300px;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: 1px solid #DDD;
  }
  .newsletter__btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    background-color: #C01C20;
    color: #FFF;
  }
  
  /* ========== Footer ========== */
  .site-footer {
    background: #000;
    color: #FFF;
    padding: 2rem 0;
  }
  .footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
  }
  .footer__socials a {
    margin-right: 0.5rem;
  }
  .footer__socials img {
    width: 24px;
    height: auto;
  }
  
  /* ===== Newsletter Signup ===== */
  .newsletter {
    background: #fff;
    padding: 4rem 0;
  }
  
  .newsletter__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .newsletter__text {
    flex: 1 1 300px;
  }
  
  .newsletter__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .newsletter__subtitle {
    font-size: 1rem;
    color: #666;
  }
  
  .newsletter__form {
    flex: 1 1 300px;
    display: flex;
    gap: 0.5rem;
  }
  
  .newsletter__input {
    flex: 1;
    padding: 0.75rem 1rem;
    height: au;
    border: 1px solid #ddd;
    border-radius: 9999px 0 0 9999px;
    font-size: 1rem;
  }
  
  .newsletter__btn {
    padding: 0 1.5rem;
    width: 30%;
    background-color: #C01C20;
    color: #fff;
    border: none;
    border-radius: 0 9999px 9999px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }
  
  .newsletter__btn:hover {
    background-color: #621c1c;
  }
  
  /* Mobile: form 堆叠 */
  @media (max-width: 600px) {
    .newsletter__inner {
      flex-direction: column;
      align-items: stretch;
    }
    .newsletter__form {
      flex-direction: column;
    }
    .newsletter__input,
    .newsletter__btn {
      border-radius: 9999px;
    }
  }
  
  /* ===== Footer ===== */
  .site-footer {
    background: #000;
    color: #fff;
    padding: 2rem 0;
    height: 300px
  }
  
  .footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .footer__socials a img {
    width: 24px;
    height: auto;
    margin-right: 0.5rem;
  }
  
  .footer__socials {
    flex: 1 1 200px;
  }
  
  .footer__copyright {
    flex: 1 1 200px;
    text-align: center;
    font-size: 0.9rem;
  }
  
  .footer__logo img {
    height: 40px;
    width: auto;
  }
  
  .footer__logo {
    flex: 1 1 200px;
    text-align: right;
  }
  
  /* Mobile: 堆叠居中 */
  @media (max-width: 600px) {
    .footer__inner {
      flex-direction: column;
      text-align: center;
    }
    .footer__socials,
    .footer__copyright,
    .footer__logo {
      flex: none;
      margin-bottom: 1rem;
    }
    .footer__socials a img {
      margin-right: 1rem;
    }
  }
  
  /* 1) 让 html、body 占满整个视口高度 */
  html, body {
    height: 100%;
    margin: 0;          /* 清除默认 margin */
    padding: 0;
  }
  
  /* 2) body 作为 flex 容器，纵向排列 */
  body {
    display: flex;
    flex-direction: column;
  }
  
  /* 3) 主内容区自动拉伸 */
  .page-content {
    flex: 1;            /* 占据 header/footer 以外的所有剩余空间 */
  }
  
  /* 4) footer 固定在底部，不拉伸 */
  .site-footer {
    flex-shrink: 0;
  }
  