/* =========================================
   download_minimal · GitHub Releases 风格
   ========================================= */

:root {
  --dl-primary: #0969da;
  --dl-primary-hover: #0860c4;
  --dl-success: #1f883d;
  --dl-bg: #ffffff;
  --dl-bg-soft: #f6f8fa;
  --dl-border: #d0d7de;
  --dl-border-soft: #e6ebf1;
  --dl-text: #1f2328;
  --dl-muted: #656d76;
  --dl-shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.04);
  --dl-shadow: 0 4px 14px rgba(31, 35, 40, 0.08);
  --dl-radius: 10px;
  --dl-radius-lg: 14px;
}

html, body {
  background: var(--dl-bg);
  color: var(--dl-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dl-primary); text-decoration: none; }
a:hover { color: var(--dl-primary-hover); }

.dl-muted { color: var(--dl-muted); }

.dl-link {
  color: var(--dl-primary);
  font-weight: 500;
  text-decoration: none;
}
.dl-link:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.btn-dl-primary {
  background: var(--dl-primary);
  color: #fff;
  border: 1px solid var(--dl-primary);
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
}
.btn-dl-primary:hover,
.btn-dl-primary:focus {
  background: var(--dl-primary-hover);
  border-color: var(--dl-primary-hover);
  color: #fff;
}

.btn-dl-outline {
  background: #fff;
  color: var(--dl-text);
  border: 1px solid var(--dl-border);
  font-weight: 500;
  border-radius: 8px;
  transition: all .2s;
}
.btn-dl-outline:hover {
  background: var(--dl-bg-soft);
  border-color: var(--dl-primary);
  color: var(--dl-primary);
}

.btn-dl-platform {
  background: #fff;
  color: var(--dl-text);
  border: 1px solid var(--dl-border);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 500;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
}
.btn-dl-platform:hover {
  background: var(--dl-bg-soft);
  border-color: var(--dl-primary);
  color: var(--dl-primary);
  transform: translateY(-1px);
}

.btn-dl-main {
  padding: 12px 22px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 2px 0 rgba(31, 35, 40, 0.08);
}
.btn-dl-main .dl-btn-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.btn-dl-main .dl-btn-text small {
  font-weight: 400;
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* ===== Header ===== */
.dl-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dl-border-soft);
  z-index: 1030;
}
.dl-header .navbar { padding: .5rem 0; }
.dl-brand-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--dl-text);
}
.dl-header .nav-link {
  color: var(--dl-text);
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: 6px;
}
.dl-header .nav-link:hover { color: var(--dl-primary); background: var(--dl-bg-soft); }
.dl-header .nav-link.active { color: var(--dl-primary); background: var(--dl-bg-soft); }

/* ===== Sections ===== */
.dl-section { padding: 64px 0; }
.dl-section-soft { background: var(--dl-bg-soft); }
.dl-section-head { margin-bottom: 24px; }
.dl-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dl-text);
  letter-spacing: -.5px;
  margin: 0 0 6px;
}

/* ===== Hero ===== */
.dl-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--dl-bg-soft) 100%);
  border-bottom: 1px solid var(--dl-border-soft);
}
.dl-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--dl-text);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.dl-hero-sub {
  color: var(--dl-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

.dl-version-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--dl-border);
  background: #fff;
  color: var(--dl-text);
}
.dl-badge-success {
  background: rgba(31, 136, 61, 0.1);
  border-color: rgba(31, 136, 61, 0.3);
  color: var(--dl-success);
}
.dl-badge-soft { background: var(--dl-bg-soft); color: var(--dl-muted); }

/* Search */
.dl-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  padding: 4px 4px 4px 44px;
  margin-bottom: 24px;
  max-width: 560px;
  box-shadow: var(--dl-shadow-sm);
  transition: all .2s;
}
.dl-search:focus-within {
  border-color: var(--dl-primary);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, .15);
}
.dl-search-icon {
  position: absolute;
  left: 16px;
  color: var(--dl-muted);
}
.dl-search input.form-control {
  border: 0;
  box-shadow: none;
  padding: .55rem .25rem;
  background: transparent;
}
.dl-search input.form-control:focus { box-shadow: none; }
.dl-search .btn-dl-primary { border-radius: 8px; padding: 8px 18px; }

/* Download buttons */
.dl-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.dl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--dl-muted);
  font-size: 14px;
}
.dl-hero-meta strong { color: var(--dl-text); }

.dl-hero-shot {
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius-lg);
  padding: 16px;
  box-shadow: var(--dl-shadow);
}

/* ===== Cards ===== */
.dl-card {
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  padding: 20px;
  transition: all .2s;
}

/* Changelog */
.dl-changelog-card { padding: 24px; }
.dl-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-feature-list > li {
  display: flex;
  gap: 12px;
  color: var(--dl-text);
  line-height: 1.6;
}
.dl-feature-list > li > i {
  color: var(--dl-success);
  margin-top: 4px;
  flex-shrink: 0;
}
.dl-changelog-body {
  color: var(--dl-text);
  line-height: 1.8;
}

/* Platform card */
.dl-platform-card { display: flex; flex-direction: column; align-items: stretch; }
.dl-platform-card:hover {
  border-color: var(--dl-primary);
  box-shadow: var(--dl-shadow);
  transform: translateY(-2px);
}
.dl-platform-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--dl-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--dl-text);
  margin-bottom: 12px;
}
.dl-platform-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--dl-text);
}
.dl-platform-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--dl-muted);
  flex-grow: 1;
}
.dl-platform-meta > li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--dl-border-soft);
}
.dl-platform-meta > li:last-child { border-bottom: 0; }
.dl-sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
  word-break: break-all;
}

/* Requirements table */
.dl-req-table th {
  background: var(--dl-bg-soft);
  color: var(--dl-text);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dl-border);
}
.dl-req-table td {
  padding: 14px 18px;
  color: var(--dl-text);
  font-size: 14px;
  border-bottom: 1px solid var(--dl-border-soft);
}
.dl-req-table tr:last-child td { border-bottom: 0; }

/* News card */
.dl-news-card {
  text-decoration: none;
  color: var(--dl-text);
  padding: 16px;
}
.dl-news-card:hover {
  border-color: var(--dl-primary);
  box-shadow: var(--dl-shadow);
}
.dl-news-thumb {
  width: 96px; height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.dl-news-thumb-placeholder {
  background: var(--dl-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: var(--dl-muted);
}
.dl-news-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--dl-text);
}
.dl-news-card:hover .dl-news-title { color: var(--dl-primary); }
.dl-news-desc {
  color: var(--dl-muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.dl-news-meta {
  display: flex;
  gap: 14px;
  color: var(--dl-muted);
  font-size: 12px;
}

/* FAQ */
.dl-faq { max-width: 820px; }
.dl-faq .accordion-item {
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.dl-faq .accordion-button {
  font-weight: 600;
  color: var(--dl-text);
  background: #fff;
  padding: 16px 20px;
}
.dl-faq .accordion-button:not(.collapsed) {
  background: var(--dl-bg-soft);
  color: var(--dl-primary);
  box-shadow: none;
}
.dl-faq .accordion-button:focus { box-shadow: none; border-color: var(--dl-border); }
.dl-faq .accordion-body {
  color: var(--dl-muted);
  line-height: 1.7;
  background: #fff;
}

/* ===== Article List ===== */
.dl-breadcrumb .breadcrumb { background: transparent; padding: 0; font-size: 14px; }
.dl-breadcrumb .breadcrumb-item.active { color: var(--dl-muted); }

.dl-list-item {
  color: var(--dl-text);
  overflow: hidden;
  padding: 0;
}
.dl-list-item:hover {
  border-color: var(--dl-primary);
  box-shadow: var(--dl-shadow);
  color: var(--dl-text);
}
.dl-list-thumb {
  width: 200px;
  min-height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--dl-bg-soft);
}
.dl-list-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--dl-muted);
}
.dl-list-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dl-text);
  margin: 0 0 8px;
}
.dl-list-item:hover .dl-list-title { color: var(--dl-primary); }
.dl-list-desc {
  color: var(--dl-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.dl-list-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--dl-muted);
}

/* Pagination */
.dl-pagination ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.dl-pagination li a,
.dl-pagination li span {
  display: block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: 8px;
  color: var(--dl-text);
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
}
.dl-pagination li a:hover,
.dl-pagination li.active span {
  background: var(--dl-primary);
  border-color: var(--dl-primary);
  color: #fff;
}

/* Sidebar */
.dl-sidebar { padding: 22px; }
.dl-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dl-text);
  margin: 0 0 14px;
}
.dl-hot-list {
  list-style: decimal inside;
  padding: 0;
  margin: 0;
  counter-reset: hot;
}
.dl-hot-list > li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--dl-border-soft);
}
.dl-hot-list > li:last-child { border-bottom: 0; }
.dl-hot-list > li a {
  color: var(--dl-text);
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.dl-hot-list > li a:hover { color: var(--dl-primary); }

.dl-sidebar-cta {
  background: linear-gradient(180deg, #fff 0%, var(--dl-bg-soft) 100%);
}
.dl-cta-icon {
  font-size: 32px;
  color: var(--dl-primary);
  margin-bottom: 8px;
}

/* ===== Article Detail ===== */
.dl-detail-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--dl-text);
  letter-spacing: -.5px;
  margin: 0 0 14px;
  line-height: 1.35;
}
.dl-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--dl-muted);
  font-size: 13px;
}
.dl-divider {
  border: 0;
  border-top: 1px solid var(--dl-border-soft);
  margin: 20px 0;
}
.dl-detail-content {
  color: var(--dl-text);
  font-size: 16px;
  line-height: 1.85;
}
.dl-detail-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px 0; }
.dl-detail-content h2,
.dl-detail-content h3 { margin: 1.4em 0 .6em; font-weight: 700; }
.dl-detail-content p { margin-bottom: 1em; }
.dl-detail-content code {
  background: var(--dl-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 90%;
}
.dl-detail-content pre {
  background: var(--dl-bg-soft);
  padding: 14px 16px;
  border-radius: 8px;
  overflow: auto;
}

.dl-prev-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.dl-prev-next a {
  flex: 1 1 280px;
  padding: 10px 14px;
  background: var(--dl-bg-soft);
  border: 1px solid var(--dl-border-soft);
  border-radius: 8px;
  color: var(--dl-text);
}
.dl-prev-next a:hover { color: var(--dl-primary); border-color: var(--dl-primary); }

/* ===== Footer ===== */
.dl-footer {
  background: var(--dl-bg-soft);
  border-top: 1px solid var(--dl-border-soft);
  color: var(--dl-text);
}
.dl-footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dl-text);
  margin-bottom: 14px;
}
.dl-footer-desc {
  color: var(--dl-muted);
  font-size: 13px;
  line-height: 1.7;
}
.dl-footer-links { margin: 0; }
.dl-footer-links li { margin-bottom: 8px; }
.dl-footer-links a {
  color: var(--dl-muted);
  font-size: 13px;
  text-decoration: none;
}
.dl-footer-links a:hover { color: var(--dl-primary); }
.dl-footer-copy {
  color: var(--dl-muted);
  font-size: 13px;
  border-top: 1px solid var(--dl-border-soft);
}
.dl-footer-copy a { color: var(--dl-muted); }
.dl-footer-copy a:hover { color: var(--dl-primary); }

/* ===== 404 ===== */
.dl-404 {
  min-height: 70vh;
  background: linear-gradient(180deg, #fff 0%, var(--dl-bg-soft) 100%);
}
.dl-404-code {
  font-size: 96px;
  font-weight: 800;
  color: var(--dl-primary);
  letter-spacing: -3px;
  line-height: 1;
}
.dl-404-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dl-text);
  margin: 12px 0 6px;
}
.dl-404-desc { color: var(--dl-muted); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .dl-hero { padding: 56px 0 36px; }
  .dl-hero-title { font-size: 32px; }
  .dl-section { padding: 48px 0; }
  .dl-section-title { font-size: 22px; }
  .dl-detail-title { font-size: 24px; }
}

@media (max-width: 767.98px) {
  .dl-hero-title { font-size: 28px; }
  .dl-hero-sub { font-size: 15px; }
  .dl-search { padding-left: 40px; }
  .btn-dl-main { width: 100%; justify-content: center; }
  .dl-download-buttons .btn-dl-platform { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .dl-list-item { flex-direction: column; }
  .dl-list-thumb { width: 100%; height: 180px; min-height: 0; }
  .dl-prev-next a { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
  .dl-hero { padding: 40px 0 28px; }
  .dl-hero-title { font-size: 24px; }
  .dl-section { padding: 36px 0; }
  .dl-changelog-card { padding: 18px; }
  .dl-news-thumb { width: 72px; height: 72px; }
}
