:root {
  --primary: #0b63d8;
  --primary-dark: #074ea9;
  --bg: #f4f7fb;
  --text: #1e293b;
  --muted: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { font-size: 22px; font-weight: 700; color: #0f172a; }
.main-nav { display: flex; gap: 18px; }
.main-nav a { font-size: 14px; color: #334155; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.main-nav a.active { color: var(--primary-dark); border-color: var(--primary-dark); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; }
.hero {
  padding: 76px 0;
  background: linear-gradient(130deg,#0d3f89,#0b63d8);
  color: #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: stretch; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .08em; opacity: .9; }
h1 { margin: 10px 0 16px; font-size: 40px; line-height: 1.2; }
h2 { margin: 0 0 18px; font-size: 30px; }
.panel {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 20px;
}
.panel ul { margin: 8px 0 0; padding-left: 20px; }
.section { padding: 64px 0; }
.highlight { background: var(--bg); }
.grid { display: grid; gap: 16px; }
.col3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.col2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.card p { margin: 8px 0 0; color: #475569; }
.article ul { padding-left: 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-block;
  border: 1px solid #9ec5ff;
  border-radius: 10px;
  padding: 10px 16px;
  color: #0f172a;
  background: #fff;
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-dark); }
.text-link { color: var(--primary); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; background: #fff; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .hero-grid, .col3, .col2 { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 4%; right: 4%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    z-index: 60;
  }
  .main-nav.open { display: flex; }
}


.qr-section p { color: var(--muted); margin-top: -6px; margin-bottom: 18px; }
.qr-grid { align-items: stretch; }
.qr-card { text-align: center; }
.qr-img {
  width: min(100%, 320px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

/* === Download Page Beautify Start === */
.download-page {
  background:
    radial-gradient(920px 360px at 0% -10%, rgba(59,130,246,.16), transparent 58%),
    radial-gradient(820px 320px at 100% -20%, rgba(99,102,241,.13), transparent 62%),
    #f5f9ff;
}

.download-section { padding: 40px 0 66px; }

.download-shell {
  background: #fff;
  border: 1px solid #d8e4f6;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
  padding: 20px;
}

.download-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.download-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 6px;
}

.download-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.download-desc {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
}

.download-action-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.download-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.download-path,
.download-stats {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #dbe6f6;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 13px;
}

.download-breadcrumb {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  line-height: 1.8;
  word-break: break-word;
}

.download-breadcrumb a {
  color: #2563eb;
  font-weight: 600;
}

.download-breadcrumb .sep {
  color: #94a3b8;
  margin: 0 6px;
}

.download-toolbar {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-search {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 40px;
  border: 1px solid #cfe0fb;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.download-search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.download-search-btn {
  height: 40px;
  padding: 0 16px;
  min-width: 88px;
  white-space: nowrap;
}

.download-msg {
  margin: 12px 0 14px;
  padding: 8px 10px;
  border-left: 4px solid #3b82f6;
  background: #f0f7ff;
  color: #334155;
  border-radius: 8px;
  font-size: 13px;
}

.download-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
}

.download-grid.search-mode {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
}

.download-page .card {
  border-radius: 12px;
  border-color: #dbe6f6;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  padding: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.download-page .card:hover {
  transform: translateY(-2px);
  border-color: #b7cdf3;
  box-shadow: 0 12px 24px rgba(37,99,235,.11);
}

.dl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}

.dl-badge.dir {
  background: #dbeafe;
  color: #1d4ed8;
}

.dl-badge.file {
  background: #f1f5f9;
  color: #334155;
}

.dl-time {
  font-size: 11px;
  color: #94a3b8;
}

.dl-title {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.35;
  word-break: break-word;
}

.dl-meta {
  margin-top: 8px !important;
  color: #64748b !important;
  font-size: 12px;
  word-break: break-word;
}

.dl-actions { margin-top: 10px; }

.dl-empty {
  text-align: center;
  padding: 24px 10px;
}

.dl-empty h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.dl-empty p { margin: 0; }

.download-page .btn {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.download-page .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37,99,235,.16);
}

.download-page .btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .download-shell {
    padding: 16px;
    border-radius: 14px;
  }

  .download-head {
    flex-direction: column;
  }

  .download-head h1 { font-size: 26px; }

  .download-action-group {
    width: 100%;
  }

  .download-action-group .btn {
    flex: 1;
    text-align: center;
  }

  .download-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .download-search-btn {
    width: 100%;
  }

  .download-path,
  .download-stats {
    width: 100%;
    border-radius: 10px;
  }

  .download-grid,
  .download-grid.search-mode {
    grid-template-columns: 1fr !important;
  }
}
/* === Download Page Beautify End === */
