/* 文件描述：产品下载页样式（前缀 pd-） */

/* ── PD-PAGE — 页面级 ── */
body.pd-page {
  padding-top: 0;
  color: var(--on-surface);
}



.pd-hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .inner-topbanner-bg img {
    object-position: 85% bottom;
    opacity: 0.6;
  }
}

/* ── PD-FADE — 滚动入场 ── */
.pd-page .pd-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pd-page .pd-fade.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .pd-page .pd-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.inner-topbanner-desc-sm {
  font-size: var(--fs-12);
  color: var(--primary-dec);
  margin-top: 12px;
}

/* Hero 中的产品名称强调 */
.pd-hero-product {
  font-weight: 700;
  color: var(--primary, #115391);
}

/* ── PD-MAIN — 主内容区 ── */
.pd-main {
  padding: clamp(24px, calc(100vw * 40 / 1440), 40px) 0 clamp(64px, calc(100vw * 80 / 1440), 80px);
  background-color: #fff;
  background-image: linear-gradient(180deg, #639ce133 0%, #639ce113 60%, #639ce100 100%);
  background-repeat: no-repeat;
  background-size: 100% 198px;
  background-position: top center;
}

.pd-layout {
  display: flex;
  align-items: flex-start;
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 560px;
}

/* ── 左侧版本菜单 ── */
.pd-sidebar {
  position: sticky;
  top: var(--nav-height, 64px);
  z-index: 15;
  align-self: flex-start;
  flex: 0 0 clamp(160px, calc(100vw * 200 / 1440), 200px);
  max-height: calc(100vh - var(--nav-height, 64px));
  padding: clamp(32px, calc(100vw * 40 / 1440), 40px) 0;
  border-left: 1px solid var(--slate-200);
  overflow-y: auto;
  scrollbar-width: thin;
}

.pd-sidebar-title {
  margin: 0 0 clamp(20px, calc(100vw * 28 / 1440), 28px);
  padding: 0 var(--container-px);
  font-size: clamp(18px, calc(100vw * 20 / 1440), 20px);
  font-weight: 600;
  color: var(--slate-900);
}

.pd-version-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pd-version-item {
  margin: 0;
}

.pd-version-btn {
  display: block;
  width: 100%;
  padding: 14px var(--container-px);
  border: none;
  border-left: 3px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-16);
  font-weight: 500;
  color: var(--slate-700);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.pd-version-btn:hover {
  color: var(--blue);
  background: var(--blue-bg);
}

.pd-version-btn.is-active {
  color: var(--blue);
  background: var(--blue-bg);
  border-left-color: var(--blue);
}

/* ── 右侧内容区 ── */
.pd-content {
  flex: 1;
  min-width: 0;
  padding: clamp(32px, calc(100vw * 40 / 1440), 40px) clamp(24px, calc(100vw * 40 / 1440), 40px)
    clamp(48px, calc(100vw * 64 / 1440), 64px);
}

/* ── 版本概况（有特性时置于分类栏上方） ── */
.pd-version-overview {
  margin-bottom: clamp(20px, calc(100vw * 28 / 1440), 28px);
  padding: clamp(20px, calc(100vw * 24 / 1440), 24px);
  background: #fff;
  border: 1px solid rgba(17, 83, 145, 0.16);
  border-radius: var(--r8);
}

.pd-version-overview[hidden] {
  display: none !important;
}

.pd-version-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.pd-version-overview-title {
  margin: 0;
  font-size: clamp(18px, calc(100vw * 22 / 1440), 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--slate-900);
}

.pd-version-overview-more {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pd-version-overview-more:hover {
  color: var(--blue-dk);
  transform: translateX(2px);
}

.pd-version-overview-body {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--slate-600);
}

.pd-version-overview-scope {
  margin: 0 0 6px;
  color: var(--slate-700);
}

.pd-type-bar {
  position: sticky;
  top: var(--nav-height, 64px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(12px, calc(100vw * 20 / 1440), 20px);
  margin-bottom: clamp(24px, calc(100vw * 32 / 1440), 32px);
  padding-top: 12px;
  padding-bottom: clamp(16px, calc(100vw * 20 / 1440), 20px);
  border-bottom: 1px solid transparent;
  background: transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 贴顶后才显示背景与底边 */
.pd-type-bar.is-stuck {
  border-bottom-color: var(--slate-200);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.pd-type-bar-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

.pd-type-bar::-webkit-scrollbar {
  display: none;
}

.pd-type-label {
  flex-shrink: 0;
  font-size: var(--fs-16);
  font-weight: 500;
  color: var(--slate-600);
}

.pd-type-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, calc(100vw * 16 / 1440), 16px);
  flex-wrap: nowrap;
}

.pd-type-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--slate-700);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.pd-type-btn:hover {
  color: var(--blue);
}

.pd-type-btn.is-active {
  color: #fff;
  background: var(--blue);
}

.pd-type-btn[hidden] {
  display: none !important;
}

.pd-download-body {
  min-height: 240px;
}

.pd-empty {
  padding: 48px 0;
  text-align: center;
  font-size: var(--fs-16);
  color: var(--slate-500);
}

.pd-empty[hidden] {
  display: none;
}

/* ── 文件分组与卡片 ── */
.pd-file-group + .pd-file-group {
  margin-top: clamp(28px, calc(100vw * 36 / 1440), 36px);
}

.pd-file-group-title {
  margin: 0 0 16px;
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--slate-900);
}

.pd-file-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r8);
  padding: clamp(20px, calc(100vw * 24 / 1440), 24px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pd-file-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 83, 145, 0.22);
  box-shadow: 0 10px 28px rgba(17, 83, 145, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pd-file-card + .pd-file-card {
  margin-top: 16px;
}

.pd-file-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.pd-file-card-title {
  margin: 0;
  font-size: clamp(16px, calc(100vw * 18 / 1440), 18px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue);
}

.pd-file-card-title--file {
  color: var(--slate-900);
}

.pd-file-card-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pd-file-card-action:hover {
  color: var(--blue-dk);
  transform: translateY(-1px);
}

.pd-file-card-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url(/static/skin/images/product/downloads/icon-download.webp) no-repeat center center;
  background-size: auto 24px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  line-height: 1;
  color: transparent;
  transition: transform 0.25s ease;
}

.pd-file-card-action:hover .pd-file-card-action-icon {
  transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  .pd-file-card,
  .pd-file-card-action,
  .pd-file-card-action-icon {
    transition: none;
  }

  .pd-file-card:hover,
  .pd-file-card-action:hover,
  .pd-file-card-action:hover .pd-file-card-action-icon {
    transform: none;
  }
}

.pd-file-card-body {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--slate-600);
}

.pd-file-card-body p {
  margin: 0 0 6px;
}

.pd-file-card-body ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.pd-file-card-body li + li {
  margin-top: 4px;
}

/* 版本特性卡片：对齐官网亮点勾选样式 */
.pd-file-card--feature {
  border-color: rgba(17, 83, 145, 0.18);
}

.pd-file-card--feature .pd-file-card-action-icon--more {
  background: none;
  width: auto;
  height: auto;
  color: inherit;
  font-size: 14px;
  transform: none;
}

.pd-file-card--feature .pd-file-card-action:hover .pd-file-card-action-icon--more {
  transform: translateX(2px);
}

.pd-feature-highlights-label {
  margin: 8px 0 0;
  color: var(--slate-700);
}

.pd-feature-highlights {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pd-feature-highlights li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
  color: var(--slate-700);
}

.pd-feature-highlights li + li {
  margin-top: 8px;
}

/* 蓝色圆形勾选图标 */
.pd-feature-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.pd-feature-highlights li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.42em;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pd-file-card-foot {
  margin-top: 12px;
  text-align: right;
  font-size: var(--fs-14);
  color: var(--slate-500);
}

/* ── 相关帮助文档 ── */
.pd-help {
  margin-top: clamp(40px, calc(100vw * 56 / 1440), 56px);
  padding-top: clamp(24px, calc(100vw * 32 / 1440), 32px);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
 
}

.pd-help-title {
  margin: 0 40px 0 0;
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--slate-900);
}

.pd-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, calc(100vw * 30 / 1440), 30px);
}

.pd-help-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-16);
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}

.pd-help-link:hover {
  color: var(--blue-dk);
}

.pd-help-icon {
  width: 22px;
  height: 22px;
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 22px;
}

.pd-help-icon--manual {
  background-image: url(/static/skin/images/product/downloads/icon-manual.webp);
}

.pd-help-icon--tutorial {
  background-image: url(/static/skin/images/product/downloads/icon-tutorial.webp);
}

.pd-help-icon--license {
  background-image: url(/static/skin/images/product/downloads/icon-license.webp);
}


/* ── 响应式 ── */
@media (max-width: 768px) {
  .pd-layout {
    flex-direction: column;
  }

  .pd-sidebar {
    position: sticky;
    top: var(--nav-height, 64px);
    z-index: 19;
    flex: none;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
    padding-top: 24px;
    padding-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .pd-sidebar-title {
    padding: 0 var(--container-px);
    margin-bottom: 12px;
  }

  .pd-version-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--container-px) 12px;
    gap: 8px;
  }

  .pd-version-list::-webkit-scrollbar {
    display: none;
  }

  .pd-version-item {
    flex-shrink: 0;
  }

  .pd-version-btn {
    width: auto;
    padding: 10px 16px;
    border-left: none;
    border-radius: var(--r8);
    white-space: nowrap;
  }

  .pd-version-btn.is-active {
    border-left: none;
  }

  .pd-content {
    padding: 24px var(--container-px) 40px;
  }

  .pd-type-bar {
    flex-direction: column;
    align-items: flex-start;
    overflow-x: visible;
  }

  .pd-type-nav {
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
    gap: 8px 10px;
  }

  .pd-type-btn {
    flex-shrink: 1;
    white-space: normal;
    text-align: center;
  }

  .pd-download-body {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pd-file-card {
    max-width: 100%;
  }

  .pd-file-card-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pd-file-card-body,
  .pd-file-card-body p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pd-file-card-foot {
    text-align: left;
  }

  .pd-file-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-help {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-help-title {
    margin: 0 0 16px;
  }

  .pd-help-links {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
}

/* ── 其它历史版本 ── */
.pd-more-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
}

.pd-version-btn.is-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── 登录 / 确认下载弹窗 ── */
.pd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 30, 50, 0.55);
  padding: 20px;
}

.pd-modal.is-visible {
  display: flex;
  animation: pd-modal-backdrop-in 0.22s ease both;
}

.pd-modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

/* 短距上滑 + 淡入 */
.pd-modal.is-visible .pd-modal-box {
  animation: pd-modal-box-in 0.28s ease both;
}

@keyframes pd-modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pd-modal-box-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-modal.is-visible,
  .pd-modal.is-visible .pd-modal-box {
    animation: none;
  }
}

.pd-modal-box--confirm {
  max-width: 520px;
  text-align: left;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.pd-modal-box--history {
  max-width: 420px;
  text-align: center;
  padding-top: 36px;
}

.pd-history-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4aa3e8;
  background: rgba(74, 163, 232, 0.14);
}

.pd-history-text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: #64748b;
  text-align: center;
}

.pd-history-text a {
  color: var(--primary, #115391);
  text-decoration: none;
  font-weight: 500;
}

.pd-history-text a:hover {
  text-decoration: underline;
}

.pd-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pd-modal-close:hover {
  color: #334155;
}

.pd-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2736;
  margin: 0 0 8px;
}

.pd-modal-desc {
  font-size: var(--fs-14);
  color: #6b7f92;
  margin: 0 0 24px;
  line-height: 1.6;
}

.pd-modal-desc--left {
  text-align: left;
  margin-bottom: 16px;
}

.pd-confirm-meta {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #f5f8fb;
  border-radius: 12px;
  border: 1px solid #e6edf4;
}

.pd-confirm-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e8eef4;
  font-size: var(--fs-14);
  line-height: 1.5;
}

.pd-confirm-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-confirm-row:first-child {
  padding-top: 0;
}

.pd-confirm-row dt {
  margin: 0;
  color: #7a8fa3;
  font-weight: 500;
}

.pd-confirm-row dd {
  margin: 0;
  color: #1a2736;
  word-break: break-word;
}

.pd-confirm-md5 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.pd-confirm-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  cursor: pointer;
  text-align: left;
}

.pd-confirm-agree input {
  margin-top: 3px;
  flex-shrink: 0;
}

.pd-confirm-agree a {
  color: var(--primary, #115391);
  text-decoration: underline;
}

.pd-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pd-modal-box--confirm .pd-modal-actions {
  justify-content: flex-end;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: var(--fs-14);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.pd-btn--primary {
  background: var(--primary, #115391);
  color: #fff;
}

.pd-btn--primary:hover {
  opacity: 0.92;
  color: #fff;
}

.pd-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-btn.is-loading {
  position: relative;
  pointer-events: none;
  padding-left: 36px;
}

.pd-btn.is-loading::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pd-btn-spin 0.7s linear infinite;
}

@keyframes pd-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.pd-btn--ghost {
  background: #fff;
  color: #334155;
  border-color: #cbd5e1;
}

.pd-btn--ghost:hover {
  background: #f8fafc;
}
