/* ============================================================
   DL Cloud 下载站 · 前台样式（晴空蓝 · 官方下载站风）
   移动端 / PC 双适配，卡片防挤压布局
   ============================================================ */
:root {
  --pri1: #3D7BFD;
  --pri2: #22B8F0;
  --ink: #14213D;
  --ink2: #5D6B85;
  --line: #E6ECF5;
  --grad: linear-gradient(120deg, #3D7BFD, #22B8F0);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #F6F8FC;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* 移动端点击体验：去掉蓝色高亮闪块与点击延迟 */
* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* 锚点定位避开 sticky 顶栏 */
.card, .products, .footer { scroll-margin-top: 72px; }

/* ---------- 背景（轻量径向渐变，无大模糊，性能友好） ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 460px at 12% -8%, #DCE8FF 0%, rgba(220, 232, 255, 0) 62%),
    radial-gradient(820px 420px at 90% -6%, #CFF0FF 0%, rgba(207, 240, 255, 0) 58%),
    radial-gradient(760px 520px at 50% 112%, #E8E2FF 0%, rgba(232, 226, 255, 0) 60%),
    linear-gradient(180deg, #F7FAFF 0%, #F4F7FC 100%);
}
.aurora i { display: none; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(233, 238, 246, .9);
}
.topbar.scrolled { box-shadow: 0 6px 22px rgba(31, 56, 120, .08); }
.topbar-in {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: .2px;
  min-width: 0;
}
.brand small {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 400;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(61, 123, 253, .38);
  flex-shrink: 0;
  position: relative;
}
.brand-logo::after {
  content: "";
  position: absolute;
  left: 8px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .95);
}
.nav { display: flex; gap: 6px; }
.nav a {
  font-size: 14px;
  color: #3D4761;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--pri1); background: #EFF5FF; }

/* ---------- Hero 主视觉（居中） ---------- */
.hero { position: relative; }
.hero-in {
  max-width: 780px;
  margin: 0 auto;
  padding: 84px 24px 70px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #E3EBF7;
  border-radius: 999px;
  padding: 7px 17px;
  font-size: 13px;
  font-weight: 600;
  color: #3D4761;
  box-shadow: 0 4px 16px rgba(31, 56, 120, .07);
  max-width: 100%;
}
.hero-badge i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(61, 123, 253, .16);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 123, 253, .16); }
  50% { box-shadow: 0 0 0 6px rgba(61, 123, 253, .07); }
}
.hero h1 {
  margin-top: 24px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #14275E;
}
.hero-desc {
  margin: 16px auto 0;
  font-size: 16px;
  color: var(--ink2);
  max-width: 560px;
  line-height: 1.85;
}
.hero-btns {
  margin-top: 32px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.hero-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 13.5px;
  color: var(--ink2);
}
.hero-meta b { color: var(--pri1); font-weight: 700; }
.meta-dot { color: #B9C4D8; }
.meta-item { white-space: nowrap; }

/* ---------- 下载按钮 ---------- */
.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  min-width: 216px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, filter .22s;
}
.dl-ico {
  width: 16px; height: 16px;
  flex-shrink: 0;
  background:
    linear-gradient(#fff, #fff) center / 2px 9px no-repeat,
    linear-gradient(#fff, #fff) center / 9px 2px no-repeat,
    linear-gradient(#fff, #fff) center bottom / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center bottom 4px left 1px / 4px 2px no-repeat,
    linear-gradient(#fff, #fff) center bottom 4px right 1px / 4px 2px no-repeat;
}
.btn-hero {
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(61, 123, 253, .36);
}
.btn-hero::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 46%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -80%; } 100% { left: 135%; } }
.btn-hero:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 38px rgba(61, 123, 253, .44); }
.btn-card {
  background: var(--grad);
  height: 44px;
  min-width: 176px;
  padding: 0 26px;
  font-size: 14.5px;
  box-shadow: 0 8px 22px rgba(61, 123, 253, .30);
}
.btn-card:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 28px rgba(61, 123, 253, .40); }
.btn-dl.is-disabled {
  background: #EDF1F8;
  color: #9AA6BC;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.btn-dl.is-disabled::after { display: none; }
.btn-dl.is-disabled .dl-ico { opacity: .55; }

/* 幽灵按钮 */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid #D9E3F4;
  background: rgba(255, 255, 255, .72);
  color: #3D4761;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color .22s, color .22s, transform .22s, background .22s;
}
.btn-ghost:hover { border-color: var(--pri1); color: var(--pri1); transform: translateY(-2px); background: #fff; }

/* ---------- 产品区 ---------- */
.products { padding: 26px 0 40px; }
.sec-title {
  text-align: center;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #14275E;
}
.sec-sub { text-align: center; color: var(--ink2); margin: 9px 0 34px; font-size: 14px; }

.card {
  position: relative;
  background: #fff;
  border: 1px solid #EEF2F9;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(31, 56, 120, .06);
  margin-bottom: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(31, 56, 120, .11);
  border-color: #DFE9F8;
}
.card-main { padding: 28px 32px; }

/* 卡片头：图标 + 标题 + 按钮
   flex-basis 兜底保证标题列不回被压成竖排 */
.card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.s-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s-icon img { width: 100%; height: 100%; object-fit: cover; }
.s-icon-def {
  background: var(--grad);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(61, 123, 253, .32);
}
.card-tt { flex: 1 1 220px; min-width: 0; }
.card-tt h3 { font-size: 20px; font-weight: 700; line-height: 1.4; }
.card-tt p { color: var(--ink2); margin-top: 3px; font-size: 13.5px; line-height: 1.7; }
.card-act { margin-left: auto; }

.card-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
}
.card-meta .meta-item {
  background: #F3F7FD;
  border: 1px solid #E7EEF8;
  border-radius: 999px;
  padding: 4px 13px;
  white-space: nowrap;
}
.card-meta .meta-item b { color: var(--pri1); font-weight: 700; }
.card-meta .meta-dot { display: none; }

/* SHA256 行 */
.sha-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F7FAFE;
  border: 1px solid #E9F0F9;
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 720px;
}
.sha-label {
  font-size: 11px;
  font-weight: 700;
  color: #8A94AB;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.sha-val {
  font-family: Consolas, Menlo, monospace;
  font-size: 12px;
  color: #46507A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.sha-copy {
  flex-shrink: 0;
  border: 0;
  background: #E8F1FF;
  color: var(--pri1);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  transition: .18s;
}
.sha-copy:hover { background: #D9E8FF; }
.sha-copy.ok { background: #E8F7EE; color: #0A7A43; }

/* 更新日志 */
.card-log { margin-top: 15px; }
.log-panel {
  background: #F6F9FE;
  border: 1px solid #E9F0F9;
  border-left: 3px solid #3D7BFD;
  border-radius: 12px;
  padding: 14px 18px 12px;
}
.log-title {
  font-size: 12px;
  font-weight: 700;
  color: #7C88A5;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.log-list { list-style: none; }
.log-list li {
  position: relative;
  padding-left: 17px;
  color: #46507A;
  font-size: 13.5px;
  line-height: 2;
}
.log-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.log-more { color: #97A2BA; font-size: 12.5px; }

.card-empty {
  margin-top: 18px;
  color: #97A2BA;
  text-align: center;
  padding: 28px 0 10px;
  font-size: 14px;
}

/* 历史版本折叠 */
.hist { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.hist summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pri1);
  user-select: none;
}
.hist summary::-webkit-details-marker { display: none; }
.hist .arr {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s;
  margin-top: -4px;
}
.hist[open] .arr { transform: rotate(225deg); margin-top: 4px; }
.hist-list { list-style: none; margin-top: 12px; }
.hist-list li {
  padding: 13px 4px;
  border-bottom: 1px solid #F1F5FB;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13.5px;
}
.hist-list li:last-child { border-bottom: 0; }
.hist-ver { font-weight: 700; color: var(--ink); min-width: 72px; }
.hist-date, .hist-size { color: #8A94AB; }
.hist-dl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pri1);
  background: #E8F1FF;
  border-radius: 7px;
  padding: 4px 14px;
  transition: .18s;
}
.hist-dl:hover { background: #D9E8FF; }
.hist-dl.is-none { background: #F0F3F8; color: #97A2BA; cursor: default; }
.hist-log {
  width: 100%;
  color: #5A6480;
  font-size: 13px;
  line-height: 1.9;
  padding: 4px 2px 0;
}

/* 提示 */
.dl-tip {
  text-align: center;
  color: #97A2BA;
  font-size: 13px;
  margin: 10px 0 30px;
}

/* ---------- 页脚（深藏青，正式收尾） ---------- */
.footer {
  background: #101B36;
  color: #8D9AB8;
  padding: 40px 0 46px;
  margin-top: 34px;
  text-align: center;
  font-size: 13px;
  line-height: 2.1;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3D7BFD, #22B8F0, transparent);
}
.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
  color: #EAF0FB;
  margin-bottom: 8px;
}
.foot-brand .brand-logo { width: 24px; height: 24px; border-radius: 7px; }
.foot-brand .brand-logo::after { left: 6px; top: 6px; width: 6px; height: 6px; border-width: 2px; }
.footer a { color: #A9B8D8; }
.footer a:hover { color: #fff; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
  .topbar-in { height: 54px; padding: 0 14px; gap: 8px; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .nav { gap: 2px; }
  .nav a { font-size: 13px; padding: 6px 9px; }

  .hero-in { padding: 46px 18px 44px; }
  .hero-badge { font-size: 12px; padding: 6px 13px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 14.5px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .btn-dl, .btn-ghost { width: 100%; max-width: 340px; height: 50px; }

  .wrap { padding: 0 14px; }
  .products { padding: 10px 0 22px; }
  .sec-title { font-size: 22px; }
  .card-main { padding: 20px 16px; }
  .card-head { gap: 12px; }
  .s-icon { width: 48px; height: 48px; border-radius: 12px; }
  .s-icon-def { font-size: 21px; }
  .card-tt { flex: 1 1 150px; }
  .card-tt h3 { font-size: 17px; }
  /* 按钮独占一行全宽，永不挤压标题 */
  .card-act { width: 100%; margin-left: 0; margin-top: 2px; }
  .card-act .btn-dl { width: 100%; min-width: 0; height: 46px; }

  .sha-row { padding: 9px 11px; }
  .sha-val { font-size: 11px; }
  .log-panel { padding: 12px 13px 10px; }
  .hist-list li { gap: 8px 12px; }
  .footer { padding: 30px 0 36px; }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero-badge i, .btn-hero::after { animation: none !important; }
  .btn-hero::after { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}
