/* ========== 全局 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/desktopdocumentazione_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: 1200px;
  }
  .download-search__input {
    position: relative;
    flex: 1;
  }
  .download-search__input input {
    width: 100%;
    padding: .75rem 3rem .75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  .download-search__input .search-icon {
    position: absolute;
    top: 50%; right: .75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
  }
  .download-search__btn {
    flex: 0 0 150px;
    background: #C01C20;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
  }
  @media (max-width: 767px) {
    .download-search { flex-direction: column; }
    .download-search__btn { width: 100%; }
  }
  
 /* ====== Download Filters ====== */
.download-filters {
    background: #f9f9f9;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
  
    /* 新增：垂直堆叠 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* 标题居中 */
  }
  
  .download-filters__heading {
    font-size: 2rem;
    margin-bottom: 1.5rem; /* 标题下方留空 */
    position: relative;
    margin-top: -2rem;
  }
  
  .download-filters__heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: #C01C20;
    margin: 0.5rem auto 2rem;
  }
  
  /* 保持 grid 在下面，并且居中 */
  .download-filters__grid {
    display: grid;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -2rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  
    /* 默认 6 列 */
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Tablet：3 列 */
  @media (max-width: 1199px) {
    .download-filters__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Mobile：1 列 */
  @media (max-width: 767px) {
    .download-filters__grid {
      grid-template-columns: 1fr;
    }
  }  

  /* —— 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);
  //}
  
  
/* ========== Newsletter ========== */
.newsletter {
    padding: 4rem 0;
  }
  .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;
  }
  