/* Download page: widen right content (legacy global.min.css caps dl at 350px) */
body.presscenter.download-page .knowledge.knowledge-index .pd15 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

body.presscenter.download-page .knowledge .category {
  float: none !important;
  flex: 0 0 310px;
  width: 310px !important;
}

body.presscenter.download-page .knowledge .category .subnav {
  width: 270px;
}

body.presscenter.download-page .knowledge .category-listings {
  float: none !important;
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  max-width: none;
}

body.presscenter.download-page .knowledge .category-listings .inner-group,
body.presscenter.download-page .knowledge .category-listings .inner-group dl,
body.presscenter.download-page .knowledge .category-listings .downloadinfo {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
}

body.presscenter.download-page .knowledge .category-listings .inner-group dl p,
body.presscenter.download-page .knowledge .category-listings .inner-group dl ul {
  max-width: none;
}

/* Avoid double line above "选择下载格式" (inner-group bottom + downloadinfo top) */
body.presscenter.download-page .knowledge .category-listings .inner-group:last-of-type {
  border-bottom: none;
}

/* Override presscenter banner: stretch bg image to full dynamic height */
.presscenter .banner.download-hero {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-top: 40px;
  padding-bottom: 32px;
  background-color: #414166;
  background-image: url(../images/banner/press-banner.jpg);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Tighten gap between hero and FAQ content (global default is 50px) */
.presscenter .banner.download-hero + .knowledge.knowledge-index {
  padding-top: 30px;
}

.presscenter .banner.download-hero h1 {
  margin-top: 20px;
  margin-bottom: 16px;
}

.download-hero .hero-subtitle {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.5;
  opacity: 0.92;
}

.download-cta {
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.download-cta-primary {
  display: inline-block;
  background: linear-gradient(288deg, #fd0017 0, #fd5c1b 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 32px;
  padding: 14px 42px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 2px solid #ff7c39;
  transition: background 0.3s, border-color 0.3s;
}

.download-cta-primary:hover,
.download-cta-primary:focus {
  background: linear-gradient(288deg, #ff3c3c 0, #ff7c39 100%);
  border-color: #ff3c3c;
  color: #fff;
}

.download-cta-alt {
  margin-top: 14px;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.download-cta-alt a {
  display: inline-block;
  padding: 6px 8px;
  color: #c8d0ff;
  text-decoration: underline;
  position: relative;
  z-index: 2;
}

.download-cta-alt a:hover {
  color: #fff;
}

.download-cta-alt .sep {
  margin: 0 4px;
  opacity: 0.5;
}

.download-trust {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Bottom download format cards */
.downloadinfo {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

.downloadinfo .download-note {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.download-btn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 240px;
  padding: 20px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.download-btn-card:hover {
  border-color: #1264fc;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18, 100, 252, 0.12);
  color: #333;
}

.download-btn-card.download-btn-recommended {
  border-color: #23fd47;
  background: #f0fff4;
}

.download-btn-card.download-btn-recommended:hover {
  border-color: #1ad93c;
  box-shadow: 0 4px 16px rgba(35, 253, 71, 0.2);
}

.download-btn-type {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1264fc;
  line-height: 1.2;
}

.download-btn-card.download-btn-recommended .download-btn-type {
  color: #0a8c24;
}

.download-btn-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 6px;
  color: #1c1c1c;
}

.download-btn-desc {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .presscenter .banner.download-hero {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .presscenter .banner.download-hero + .knowledge.knowledge-index {
    padding-top: 24px;
  }

  .download-cta-primary {
    font-size: 1rem;
    padding: 12px 28px;
    width: 90%;
    max-width: 320px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-btn-card {
    max-width: none;
    flex: 1 1 auto;
  }

  body.presscenter.download-page .knowledge.knowledge-index .pd15 {
    display: block;
  }

  body.presscenter.download-page .knowledge .category,
  body.presscenter.download-page .knowledge .category-listings {
    float: none !important;
    width: 100% !important;
    flex: none;
  }

  body.presscenter.download-page .knowledge .category .subnav {
    width: auto;
  }
}
