/** Shopify CDN: Minification failed

Line 185:0 Unexpected "<"
Line 189:2 Comments in CSS use "/* ... */" instead of "//"
Line 199:6 Comments in CSS use "/* ... */" instead of "//"
Line 206:2 Comments in CSS use "/* ... */" instead of "//"
Line 218:24 Unexpected "{"
Line 218:33 Expected ":"
Line 218:79 Unexpected "<"
Line 219:21 Unexpected "{"
Line 219:30 Expected ":"
Line 219:78 Unexpected "<"
... and 3 more hidden warnings

**/
/* ============ 文档下载容器 ============ */
.document-downloads {
  display: block;
  width: 100%;
  max-width: 1170px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ============ 标题样式 ============ */
.documents-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px 0;
  width: 100%;
  text-align: center;
  color: #333;
  position: relative;
  
  &::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #f2515d;
    margin: 10px auto 0;
  }
}

/* ============ 文档列表 ============ */
.documents-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============ 文档项 ============ */
.document-item {
  width: 100%;
  max-width: 400px;
}

/* ============ 下载按钮 ============ */
.document-link {
  /* 基础样式 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  background: #000;
  color: #fff; /* 固定文字颜色为白色 */
  border-radius: 4px;
  min-width: 200px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  
  /* 确保所有子元素文字颜色不变 */
  * {
    color: inherit !important;
  }
  
  /* 图标样式 */
  .document-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1); /* 白色图标 */
  }
  
  /* 文字样式 */
  .document-name {
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    color: inherit; /* 继承父元素颜色 */
    
    .document-size {
      font-size: 12px;
      opacity: 0.8;
      font-weight: 400;
      margin-left: 8px;
      color: inherit; /* 继承父元素颜色 */
    }
  }
  
  /* 悬停效果 - 只改变背景色，不改变文字颜色 */
  &:hover {
    background: #f2515d;
    border-color: #f2515d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 81, 93, 0.3);
    color: #fff; /* 确保悬停时文字保持白色 */
    
    .document-icon {
      transform: scale(1.1);
    }
  }
}

/* ============ 文件类型图标 ============ */
/* 保持原有图标样式不变 */
.document-pdf .document-icon {
  background-image: url("data:image/svg+xml,%3Csvg...");
}
/* 其他文件类型图标... */

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
  .document-downloads {
    padding: 0 15px;
  }
  
  .document-link {
    padding: 12px 20px;
    min-width: 180px;
  }
}



 /* 新增的下拉菜单样式 */
  .dropdown-container {
    position: relative;
  }
  .dropdown-toggle {
    cursor: pointer;
    justify-content: space-between;
  }
  .dropdown-arrow {
    margin-left: 10px;
    transition: transform 0.3s;
  }
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 5px 0;
  }
  .dropdown-item .dropdown-link {
    padding: 10px 15px;
    background: #f9f9f9;
    color: #333;
  }
  .dropdown-item .dropdown-link:hover {
    background: #f0f0f0;
  }
  .dropdown-container.active .dropdown-menu {
    display: block;
  }
  .dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
  }
</style>

<script>
document.addEventListener('DOMContentLoaded', function() {
  // 下拉菜单交互
  const dropdowns = document.querySelectorAll('.dropdown-container');
  
  dropdowns.forEach(dropdown => {
    const toggle = dropdown.querySelector('.dropdown-toggle');
    
    toggle.addEventListener('click', function(e) {
      e.stopPropagation();
      dropdown.classList.toggle('active');
      
      // 关闭其他打开的菜单
      dropdowns.forEach(other => {
        if (other !== dropdown) other.classList.remove('active');
      });
    });
  });

  // 点击页面其他位置关闭菜单
  document.addEventListener('click', function() {
    dropdowns.forEach(dropdown => {
      dropdown.classList.remove('active');
    });
  });
});
</script>


<div style="background:#f8f8f8; padding:15px; margin:20px 0; border:2px dashed #f2515d;">
  <h4>Debug信息：</h4>
  <p>Metafield存在：{{ product.metafields.custom.Download_file_3 != blank }}</p>
  <p>文件数量：{{ product.metafields.custom.Download_file_3.value.size }}</p>
  <p>第一个文件名：{{ product.metafields.custom.Download_file_3.value.first.alt }}</p>
</div>













.description-block .content-box .heading{
    display: block;
    font-family: var(--title-font);
    font-size: var(--title-mobile-font-size);
    font-weight: var(--title-font-weight);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--title-color);
}

.description-block .content-box .content{
    font-size: var(--font-size);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    color: var(--text-color);
}

.description-block .content-box.text-center .content{
    padding-left: 15px;
    padding-right: 15px;
}

.description-block .halo-items + .halo-items{
    margin-top: 40px;
}

.description-block .halo-items + .halo-text-format{
    margin-top: 33px;
}

body.dark-mode .description-block .content-box .heading {
    color: var(--color-text);
}

body.dark-mode .description-block .content-box .content{
    color: var(--text-color2);
}

@media (min-width: 768px) {
    .description-block .content-box .heading{
        font-size: var(--title-tablet-font-size);
    }
}

@media (min-width: 1025px){
    .description-block .content-box .heading{
        font-size: var(--title-font-size);
        margin-bottom: 39px;
    }

    .halo-product-description.style-2  .description-block .content-box .heading{
        margin-bottom: 26px
    }
}

@media (min-width: 1200px){
    .halo-product-description.style-2 .description-block .halo-items + .halo-items{
        margin-top: 70px;
    }
}

@media (min-width: 1600px){
    .halo-product-description.style-2 .description-block .halo-items + .halo-items{
        margin-top: 100px;
    }

    .halo-product-description.style-2 .description-block .content-box .content {
        padding-left: 50px;
        padding-right: 50px;
    }
}