/* ===== 下载页专用样式 ===== */

/* 下载页主体 */
.ec-download-page {
  min-height: calc(100vh - var(--ec-navbar-height));
  padding: 4rem 0 5rem;
  position: relative;
}

/* 标题区 */
.ec-download-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* 版本卡片容器 */
.ec-version-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  padding: 2.5rem;
  background: linear-gradient(160deg, rgba(17, 23, 38, 0.85) 0%, rgba(10, 14, 26, 0.85) 100%);
  border: 1px solid rgba(76, 175, 80, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.ec-version-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ec-accent), transparent);
  opacity: 0.6;
}

/* 版本头部 */
.ec-version-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.ec-version-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.ec-version-tag.stable {
  color: var(--ec-accent);
  border: 1px solid rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.1);
}

.ec-version-tag.beta {
  color: #ffb74d;
  border: 1px solid rgba(255, 183, 77, 0.45);
  background: rgba(255, 183, 77, 0.1);
}

.ec-version-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ec-text);
  letter-spacing: 0.5px;
}

.ec-version-build {
  color: var(--ec-text-muted);
  font-size: 0.92rem;
}

/* 更新日志 */
.ec-release-notes {
  margin-bottom: 1.8rem;
}

.ec-release-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ec-accent);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.ec-release-body {
  background: rgba(10, 14, 26, 0.55);
  border-left: 2px solid rgba(76, 175, 80, 0.4);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  color: var(--ec-text);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-line;
}

/* 下载链接列表 */
.ec-dl-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ec-dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid rgba(76, 175, 80, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ec-text);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.ec-dl-item:hover {
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(76, 175, 80, 0.1);
}

.ec-dl-info {
  flex: 1;
  min-width: 0;
}

.ec-dl-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.ec-dl-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ec-dl-type.direct {
  color: var(--ec-accent);
  background: rgba(76, 175, 80, 0.15);
}

.ec-dl-type.web {
  color: #64b5f6;
  background: rgba(100, 181, 246, 0.15);
}

.ec-dl-extra {
  color: var(--ec-text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.ec-dl-arrow {
  color: var(--ec-accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* SHA256 */
.ec-sha-block {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(76, 175, 80, 0.2);
}

.ec-sha-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ec-text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.ec-sha-value {
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--ec-text);
  word-break: break-all;
  background: rgba(10, 14, 26, 0.55);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(76, 175, 80, 0.12);
}

/* 加载/错误状态 */
.ec-status {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ec-text-muted);
}

.ec-status.error {
  color: #ef5350;
}
