/* 下载中心(公开页)样式 —— soft.it865.com/download */
:root {
  --brand: #4f6ef7;
  --brand-dark: #3b55d9;
  --ink: #1c2333;
  --ink-2: #5a6478;
  --line: #e6e9f2;
  --bg: #f6f8fc;
  --card: #ffffff;
  --ok: #16a34a;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.dl-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.dl-nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.dl-nav .logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, #6d8bff, #4f6ef7 55%, #7a5cf0);
  color: #fff;
}
.dl-nav .spacer { flex: 1; }
.dl-nav .ver-chip {
  font-size: 12px; color: var(--brand-dark); font-weight: 600;
  background: #eef1ff; border: 1px solid #dbe3ff; border-radius: 999px; padding: 3px 12px;
}
.dl-nav .login-link {
  font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  transition: all .18s;
}
.dl-nav .login-link:hover { color: var(--brand-dark); border-color: #c9d3ff; background: #f4f6ff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 24px 64px;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #24304f 0%, #2c3a68 45%, #4557b8 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .35; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; left: -120px; top: -140px; background: #7a8ff5; }
.hero::after  { width: 380px; height: 380px; right: -110px; bottom: -160px; background: #9a6cf5; }
.hero .inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: .5px; }
.hero h1 .accent { background: linear-gradient(90deg, #ffd08a, #ff9db5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 14px auto 8px; max-width: 560px; color: #c6ceef; font-size: 16px; }
.hero .meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero .meta .chip {
  font-size: 12.5px; color: #e7ebff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 4px 14px;
}
.hero .cta-row { margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #24304f;
  font-size: 16px; font-weight: 700;
  padding: 13px 30px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(10,16,40,.35);
  transition: transform .16s, box-shadow .16s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10,16,40,.42); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45);
  transition: background .16s, border-color .16s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.75); }

/* ---------- 区块通用 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 46px 0 8px; }
.section > .head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section > .head h2 { font-size: 22px; font-weight: 800; }
.section > .head .tip { font-size: 13px; color: var(--ink-2); }

/* ---------- 主程序系统卡片 ---------- */
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.os-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 22px; position: relative;
  box-shadow: 0 4px 18px rgba(28,35,51,.05);
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.os-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(28,35,51,.10); }
.os-card .badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11.5px; font-weight: 700; color: var(--brand-dark);
  background: #eef1ff; border-radius: 999px; padding: 3px 11px;
}
.os-card .badge.green { color: var(--ok); background: #e9f9ef; }
.os-card .os-icon { font-size: 30px; }
.os-card h3 { font-size: 18px; margin: 10px 0 4px; }
.os-card p.desc { font-size: 13.5px; color: var(--ink-2); min-height: 42px; }
.os-card .file-meta { margin: 12px 0 16px; font-size: 12.5px; color: #8a93a8; word-break: break-all; }
.os-card .file-meta b { color: var(--ink-2); font-weight: 600; }
.os-card .dl-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #5d78ff, #4f6ef7 60%, #6a5cf0);
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(79,110,247,.30);
  transition: filter .16s, transform .16s;
}
.os-card .dl-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- 小应用网格 ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.app-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s, box-shadow .18s;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(28,35,51,.09); }
.app-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: #f0f3ff;
}
.app-card h4 { font-size: 15.5px; margin-top: 4px; }
.app-card .desc { font-size: 12.5px; color: var(--ink-2); flex: 1; min-height: 38px; }
.app-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #9aa2b5; }
.app-card .mini-dl {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--brand-dark);
  background: #eef1ff; border-radius: 8px; padding: 6px 12px;
  transition: background .16s, color .16s;
}
.app-card .mini-dl:hover { background: var(--brand-dark); color: #fff; }

/* ---------- 更新日志 ---------- */
.changelog { padding-bottom: 10px; }
.changelog ul { list-style: none; }
.changelog li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 4px; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.changelog li:last-child { border-bottom: none; }
.changelog li .tag {
  flex-shrink: 0; font-size: 11.5px; font-weight: 700;
  color: var(--brand-dark); background: #eef1ff;
  border-radius: 6px; padding: 2px 9px;
}

/* ---------- 页脚 ---------- */
.dl-footer {
  margin-top: 40px; padding: 26px 24px 34px;
  text-align: center; font-size: 12.5px; color: #9aa2b5;
  border-top: 1px solid var(--line); background: #fff;
}
.dl-footer .links { margin-top: 6px; }
.dl-footer a { color: var(--ink-2); margin: 0 10px; }
.dl-footer a:hover { color: var(--brand-dark); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .os-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .apps-grid { grid-template-columns: 1fr; }
  .section > .head h2 { font-size: 19px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 52px 18px 46px; }
  .dl-nav { padding: 12px 16px; }
  .dl-nav .ver-chip { display: none; }
}
