/* ==========================================================================
   下载中心（2026-11-28 · 去复刻化第二页）
   对应模板：resources/views/pages/fluid/product-data-download.blade.php
   前任：config/pages/product-data-download.php（绝对坐标 4310px 高、44 行靠 28 条 y 坐标补线）
   ========================================================================== */

.dl { padding-bottom: 88px; }

/* ---------- ① 头部 ---------- */
.dl-hero { width: 1256px; margin: 0 auto; padding-top: 44px; }
.dl-hero h1 { max-width: 900px; }
.dl-hero__lead {
  margin: 20px 0 0;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.95;
  color: #4a4a4a;
}

.dl-hero__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 32px;
}

/* 搜索框：带图标的输入框，高度与药丸一致 */
.dl-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 360px;
  min-width: 240px;
}
.dl-search svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #9a9a9a;
  pointer-events: none;
}
.dl-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid #e0e0e0;
  border-radius: 23px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;   /* 🔴 不能小于 16：iOS 会自动放大整页 */
  color: #111;
  transition: border-color .18s, box-shadow .18s;
}
.dl-search input::placeholder { color: #a8a8a8; }
.dl-search input:focus {
  outline: 0;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(226, 35, 26, .10);
}

/* 系列跳转：药丸，锚点到下面各表 */
.dl-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-jump a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  border: 1px solid #e4e4e4;
  background: #fff;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.dl-jump a:hover { border-color: #111; color: #111; }

/* ---------- ② 分系列表格 ---------- */
.dl-body { width: 1256px; margin: 0 auto; }

.dl-sec { margin-top: 56px; scroll-margin-top: 96px; }  /* 锚点跳转时留出吸顶导航的高度 */

.dl-sec__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}
.dl-sec__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #111;
}
.dl-sec__count { font-size: 14px; color: #9a9a9a; }

.dl-tbl-wrap { margin-top: 4px; }

.dl-tbl { width: 100%; border-collapse: collapse; }
.dl-tbl thead th {
  padding: 12px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #8a8a8a;
  border-bottom: 1px solid #ececec;
}
.dl-tbl thead th:first-child { padding-left: 0; }
.dl-tbl tbody td,
.dl-tbl tbody th {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
}
.dl-tbl tbody th:first-child,
.dl-tbl tbody td:first-child { padding-left: 0; }
.dl-tbl tbody tr:hover { background: #fbfbfb; }

/* 型号列：能对上产品页的给链接，退市/无页的只显示型号名 */
.dl-model { width: 240px; font-size: 15px; font-weight: 700; color: #111; }
.dl-model a { color: #111; text-decoration: none; }
.dl-model a:hover { color: var(--c-primary); }

.dl-file a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: color .15s;
}
.dl-file a:hover { color: var(--c-primary); }
.dl-file__ico { display: inline-flex; width: 16px; height: 16px; color: #9a9a9a; }
.dl-file a:hover .dl-file__ico { color: var(--c-primary); }
.dl-file__ico svg { width: 16px; height: 16px; }

/* 缺文件：一个浅灰破折号，明确表示「没有」而不是「加载失败」 */
.dl-none { color: #d4d4d4; }

.dl-sec__empty,
.dl-empty { margin: 18px 0 0; font-size: 15px; color: #8a8a8a; }
.dl-empty { margin-top: 40px; }

/* ---------- ③ 索要资料 ---------- */
.dl-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 1256px;
  margin: 72px auto 0;
  padding: 30px 36px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.dl-help strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 700; color: #111; }
.dl-help p { margin: 8px 0 0; max-width: 720px; font-size: 14px; line-height: 1.75; color: #6b6b6b; }
.dl-help__acts { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.dl-btn:hover { transform: translateY(-1px); }
.dl-btn--pri { background: var(--c-primary); color: #fff; }
.dl-btn--pri:hover { background: #c81e16; }
.dl-btn--line { background: #fff; border: 1px solid #dcdcdc; color: #111; }
.dl-btn--line:hover { border-color: #111; }

/* .ui-cta 在满宽父容器里要自己居中 */
.dl .ui-cta { max-width: 1256px; margin-left: auto; margin-right: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .dl-hero, .dl-body { width: auto; padding-left: 40px; padding-right: 40px; }
  .dl-hero { padding-top: 32px; }
  .dl-help { width: auto; margin-left: 40px; margin-right: 40px; }
}

/* 手机上表格转卡片：一行 = 型号 + 三个药丸按钮。
   不转的话 4 列表格在 390 宽下每列不到 90px，中文全折行。 */
@media (max-width: 767px) {
  .dl { padding-bottom: 60px; }
  .dl-hero, .dl-body { padding-left: 20px; padding-right: 20px; }
  .dl-help { margin-left: 20px; margin-right: 20px; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }

  .dl-sec { margin-top: 40px; }

  .dl-tbl, .dl-tbl tbody, .dl-tbl tr, .dl-tbl td, .dl-tbl tbody th { display: block; }
  .dl-tbl thead { display: none; }
  .dl-tbl tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #ececec;
    border-radius: 14px;
  }
  .dl-tbl tbody tr:hover { background: #fff; }
  .dl-model, .dl-tbl tbody th:first-child {
    flex: 1 1 100%;
    width: auto;
    padding: 0 0 4px;
    border: 0;
  }
  .dl-file { padding: 0 !important; border: 0 !important; }
  .dl-file a {
    height: 32px;
    padding: 0 13px;
    border-radius: 16px;
    background: #f6f6f6;
    font-size: 14px;
  }
  .dl-file a:hover { background: #111; color: #fff; }
  .dl-file a:hover .dl-file__ico { color: #fff; }
  .dl-none { display: none; }   /* 手机上一排「—」很吵，缺的直接不显示 */
}
