/* 下载中心专用样式 —— 沿用官网蓝调配色与卡片风格 */

.dl-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 80px 20px 64px;
  text-align: center;
}
.dl-hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.dl-hero p {
  font-size: 16px;
  opacity: .9;
  margin: 0 auto;
  max-width: 640px;
}

.download-section {
  padding: 56px 20px 72px;
  background: #f5f7fa;
  min-height: 60vh;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.dl-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(30, 58, 138, .06);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: dl-rise .5s ease both;
}
.dl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(30, 58, 138, .14);
}
@keyframes dl-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.dl-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
  letter-spacing: .5px;
}
.dl-icon.t-pdf  { background: #e5533c; }
.dl-icon.t-doc  { background: #2563eb; }
.dl-icon.t-xls  { background: #2ba471; }
.dl-icon.t-zip  { background: #f59e0b; }
.dl-icon.t-default { background: #64748b; }

.dl-title {
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
}
.dl-desc {
  font-size: 14px;
  color: #5a6b7b;
  line-height: 1.6;
  flex: 1 1 auto;
  margin: 0 0 16px;
}

.dl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #5a6b7b;
  margin-bottom: 16px;
}
.dl-size {
  background: #eef3fb;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.dl-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dl-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff4e5;
  color: #d97706;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.dl-card .btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* 按钮（与官网一致，仅补充分级） */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #2563eb;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease;
}
.btn-ghost:hover { background: #eef3fb; }

/* 落地页信息卡片 */
.dl-detail-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.dl-info {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(30, 58, 138, .08);
  text-align: center;
}
.dl-info .dl-icon {
  width: 64px; height: 64px; font-size: 15px;
  margin: 0 auto 18px;
}
.dl-info h2 { font-size: 22px; color: #1e293b; margin: 0 0 10px; }
.dl-info .dl-desc { margin-bottom: 18px; }
.dl-stat {
  display: inline-block;
  background: #eef3fb;
  color: #2563eb;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* 密码门禁 */
.dl-pw {
  margin-top: 22px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 22px;
}
.dl-pw label { display: block; font-size: 14px; color: #1e293b; margin-bottom: 10px; font-weight: 500; }
.dl-pw-row { display: flex; gap: 10px; }
.dl-pw-input {
  flex: 1 1 auto;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dl-pw-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.dl-error { color: #e5533c; font-size: 13px; margin-top: 10px; min-height: 18px; }

.dl-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.dl-empty {
  text-align: center;
  color: #5a6b7b;
  padding: 60px 20px;
  font-size: 16px;
}

.dl-back {
  text-align: center;
  margin-top: 28px;
}

@media (max-width: 600px) {
  .dl-hero h1 { font-size: 26px; }
  .dl-pw-row { flex-direction: column; }
}

/* PDF 在线预览 */
.pdf-preview-box {
  margin-top: 22px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 58, 138, .08);
}
.pdf-preview {
  width: 100%;
  height: 72vh;
  border: 0;
  display: block;
}
.dl-detail-wrap.wide { max-width: 920px; }
