﻿/* ========== Download Center Page Styles ========== */
/* 下载中心页面专属样式 */

.dl-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/reinwind_images/pic/flash/banner-3.jpg') center center / cover no-repeat;
}
.dl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}
.dl-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.dl-hero-title .accent-line {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--color-primary);
  margin: 0 auto 16px;
}


/* ========== Tab Navigation ========== */
.navlist{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  background: #fff;
  border-bottom: 2px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.dl-tab-btn {
  position: relative;
  padding: 18px 40px;
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 16px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
}
.dl-tab-btn:hover {
  color: var(--color-primary);
}
.dl-tab-btn.active {
  color: var(--color-primary);
  font-weight: 600;
}
.dl-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px 3px 0 0;
}

/* ========== Tab Panel Visibility ========== */
.dl-tab-panel {
  display: none;
}
.dl-tab-panel.active {
  display: block;
}

/* ========== Placeholder Panels ========== */
.dl-placeholder {
  max-width: 640px;
  margin: 60px auto;
  text-align: center;
  padding: 60px 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.dl-placeholder svg {
  width: 56px;
  height: 56px;
  color: #ccc;
  margin-bottom: 24px;
}
.dl-placeholder h2 {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 24px;
  color: var(--color-black);
  margin: 0 0 16px;
}
.dl-placeholder p {
  font-family: var(--font-body);
  font-size: 15px;
  color: #777;
  line-height: 1.8;
  margin: 0 0 24px;
}
.dl-placeholder-tag {
  display: inline-block;
  padding: 6px 18px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(20, 95, 251, 0.06);
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ========== Main Content Area ========== */
.dl-main {
  background: #f8f8f8;
  padding: 60px 0 80px;
}
.dl-container {
  max-width: 85%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== Search Bar ========== */
.dl-search-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 32px;
  transition: box-shadow 0.3s;
}
.dl-search-wrap:focus-within {
  box-shadow: 0 4px 24px rgba(20,95,251,0.12);
}
.dl-search-icon {
  width: 20px;
  height: 20px;
  color: #aaa;
  flex-shrink: 0;
  margin-right: 12px;
}
.dl-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-black);
  background: transparent;
  height: 100%;
}
.dl-search-input::placeholder {
  color: #bbb;
}
.dl-search-btn {
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.dl-search-btn:hover {
  background: #0d4fd4;
  transform: translateY(-1px);
}

/* ========== Content Wrap: Sidebar + Grid ========== */
.dl-content-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ========== Left Sidebar: Category Filter ========== */
.dl-sidebar {
  flex-shrink: 0;
  width: 180px;
  position: sticky;
  top: 100px;
}
.dl-sidebar-title {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 16px;
  color: var(--color-black);
  margin: 0 0 16px;
}
.dl-sidebar-group {
  margin-bottom: 24px;
}
.dl-sidebar-group:last-child {
  margin-bottom: 0;
}
.dl-sidebar-group-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-black);
  margin: 0 0 12px;
  padding-left: 18px;
  letter-spacing: 0.5px;
}
.dl-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-filter-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid #e8e8e8;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  text-align: left;
}
.dl-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(20,95,251,0.03);
}
.dl-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 500;
}

/* ========== Product Grid (3 columns) ========== */
.dl-product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-width: 0;
}

/* ========== Product Item (vertical card) ========== */
.dl-product-item {
  background: #f6f6f6;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.dl-product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}
.dl-product-img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 文件卡片图徽（无产品图时用文件类型图标） */
.dl-file-badge {
  background: rgba(20, 95, 251, 0.09);
  color: var(--color-primary);
}
.dl-file-badge svg {
  width: 48px;
  height: 48px;
}
.dl-doc-note {
  font-size: 12px;
  color: #999;
}
.dl-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.dl-product-name {
  font-family: var(--font-body);
  font-weight: var(--fw-title);
  font-size: 16px;
  color: var(--color-black);
  margin: 0 0 6px;
  line-height: 1.3;
}
.dl-product-model {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: center;
}
.dl-product-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dl-product-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.dl-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.dl-doc-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(20,95,251,0.04);
}
.dl-doc-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.dl-doc-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dl-preview-btn {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.dl-preview-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ========== Empty State ========== */
.dl-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #aaa;
  grid-column: 1 / -1;
}
.dl-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.dl-empty p {
  font-family: var(--font-body);
  font-size: 15px;
  margin: 0;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .dl-container {
    padding: 0 40px;
  }

  .dl-content-wrap {
    gap: 24px;
  }
  .dl-sidebar {
    width: 160px;
  }
  .dl-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dl-container {
    padding: 0 24px;
  }
  /* [未使用] 已迁移至 .page-hero */
  /*  .dl-hero {
    height: 300px;
  }*/
  /* [未使用] 已迁移至 .page-hero */
  /*  .dl-hero-title {
    font-size: 32px;
  }*/
  /* [未使用] 已迁移至 .page-hero */
  /*  .dl-hero-subtitle {
    font-size: 14px;
  }*/
  /* Tabs: horizontal scroll on small screens */
  .navlist {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dl-tab-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  .dl-placeholder {
    padding: 40px 24px;
    margin: 32px auto;
  }
  .dl-placeholder h2 {
    font-size: 20px;
  }
  .dl-main {
    padding: 40px 0 60px;
  }
  /* Sidebar becomes horizontal on tablet */
  .dl-content-wrap {
    flex-direction: column;
    gap: 20px;
  }
  .dl-sidebar {
    width: 100%;
    position: static;
  }
  .dl-sidebar-title {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .dl-filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .dl-filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
  /* Product item: smaller on tablet */
  .dl-product-item {
    padding: 20px;
    gap: 14px;
  }
  .dl-product-img-wrap {
    width: 110px;
    height: 110px;
  }
  .dl-product-name {
    font-size: 15px;
  }
  .dl-product-desc {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* [未使用] 已迁移至 .page-hero */
  /*  .dl-hero {
    height: 240px;
  }*/
  /* [未使用] 已迁移至 .page-hero */
  /*  .dl-hero-title {
    font-size: 26px;
  }*/
  /* [未使用] 已迁移至 .page-hero */
  /*  .dl-hero-subtitle {
    font-size: 12px;
  }*/
  .dl-search-wrap {
    height: 48px;
    padding: 0 16px;
  }
  .dl-search-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
  /* Grid becomes 1 column on small screens */
  .dl-product-grid {
    grid-template-columns: 1fr;
  }
  /* Product item: vertical layout on mobile */
  .dl-product-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }
  .dl-product-info {
    align-items: center;
  }
  .dl-product-img-wrap {
    width: 180px;
    height: 180px;
  }
  .dl-product-docs {
    flex-direction: column;
    width: 100%;
  }
  .dl-doc-group {
    flex-direction: column;
    width: 100%;
  }
  .dl-doc-btn {
    justify-content: center;
  }
}


/* ========== Iframe Embed Styles ========== */
.dl-embed-wrap {
  width: 100%;
  background: #f8f9fb;
  overflow: hidden;
}
.dl-embed-frame {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
  background: transparent;
}
/* Responsive adjustments for embedded content */
@media (max-width: 768px) {
  .dl-embed-frame {
    min-height: 500px;
  }
}
