/* ============================================================
   SoftHub 软件下载站 - 清爽现代主题
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #06b6d4;
  --text: #1e293b;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-hover: 0 10px 30px rgba(37,99,235,.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--text); white-space: nowrap; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; color: #fff; font-size: 19px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.main-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 8px 12px; font-size: 14px; color: var(--text-soft); border-radius: 8px; white-space: nowrap; transition: .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-light); }
.search-box { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; height: 38px; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.search-box input { border: 0; outline: 0; background: transparent; padding: 0 12px; width: 180px; font-size: 14px; color: var(--text); }
.search-box button { border: 0; background: transparent; cursor: pointer; padding: 0 12px; font-size: 15px; }

/* ---------- Main ---------- */
.site-main { min-height: 60vh; padding-top: 28px; padding-bottom: 48px; }
.breadcrumb { font-size: 13px; color: var(--text-soft); margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb .sep { color: #cbd5e1; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h1, .section-head h2 { font-size: 24px; font-weight: 750; }
.section-head h2 { font-size: 19px; }
.section-head .sub { color: var(--text-soft); font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0891b2 100%);
  color: #fff; border-radius: 18px; padding: 48px 40px; margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.hero p { font-size: 16px; opacity: .9; max-width: 620px; margin-bottom: 24px; }
.hero-search { display: flex; max-width: 560px; background: #fff; border-radius: 10px; padding: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 14px; font-size: 15px; color: var(--text); border-radius: 6px; }
.hero-search button { border: 0; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; padding: 0 24px; border-radius: 7px; cursor: pointer; transition: .2s; }
.hero-search button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; gap: 30px; margin-top: 26px; font-size: 13px; opacity: .9; }
.hero-stats b { font-size: 18px; display: block; }

/* ---------- Category chips ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 36px; }
.cat-chip {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 12px; transition: .2s; box-shadow: var(--shadow);
}
.cat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.cat-chip .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: grid; place-items: center; font-size: 20px; }
.cat-chip .txt strong { display: block; font-size: 15px; }
.cat-chip .txt small { color: var(--text-soft); font-size: 12px; }

/* ---------- Software card ---------- */
.soft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.soft-card {
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  transition: .2s; box-shadow: var(--shadow);
}
.soft-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #bfdbfe; }
.soft-card-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.soft-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.soft-card-body { flex: 1; min-width: 0; }
.soft-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.badge { font-size: 10px; color: #fff; background: #f59e0b; padding: 1px 6px; border-radius: 4px; font-weight: 500; }
.soft-card-desc { color: var(--text-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.soft-card-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-soft); }
.soft-card-meta span { background: var(--bg); padding: 1px 7px; border-radius: 4px; }
.soft-card-btn { flex: 0 0 auto; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px; transition: .2s; }
.soft-card-btn:hover { background: var(--primary-dark); color: #fff; }
.section-block { margin-bottom: 36px; }
.more-link { font-size: 13px; color: var(--primary); }

/* ---------- Detail page ---------- */
.detail-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.detail-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: fit-content; box-shadow: var(--shadow); }
.detail-logo { width: 96px; height: 96px; border-radius: 18px; margin: 0 auto 16px; border: 1px solid var(--border); object-fit: cover; }
.detail-sidebar h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.detail-version { text-align: center; color: var(--text-soft); font-size: 13px; margin-bottom: 18px; }
.info-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.info-table td { padding: 7px 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
.info-table td:first-child { color: var(--text-soft); width: 72px; }
.detail-main { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.download-box { background: linear-gradient(135deg, #eff6ff, #f0fdfa); border: 1px solid #bfdbfe; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.download-box h2 { font-size: 17px; margin-bottom: 14px; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: 9px; transition: .2s; }
.dl-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.dl-note { font-size: 12px; color: var(--text-soft); margin-top: 12px; }
.dl-sources { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dl-source { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.dl-source a { color: var(--primary); font-weight: 600; }
.detail-content h2 { font-size: 18px; margin: 24px 0 12px; padding-left: 10px; border-left: 3px solid var(--primary); }
.detail-content h2:first-child { margin-top: 0; }
.detail-content p, .detail-content li { font-size: 14px; color: #334155; margin-bottom: 8px; }
.detail-content ul { padding-left: 20px; }
.screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.screenshots img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }

/* ---------- Pagination / empty ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; background: #fff; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty .big { font-size: 48px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 40px; }
.footer-links { padding: 32px 20px 24px; border-bottom: 1px solid #1e293b; }
.footer-links h3 { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.link-cloud a { font-size: 13px; color: #94a3b8; transition: .2s; }
.link-cloud a:hover { color: #fff; }
.footer-bottom { padding: 20px; text-align: center; font-size: 12px; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .main-nav { order: 3; width: 100%; flex: none; }
  .search-box { margin-left: auto; }
  .search-box input { width: 130px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-sidebar { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: start; }
  .detail-logo { grid-row: span 2; margin: 0; }
  .info-table { grid-column: 2; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .soft-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; }
  .footer-links { padding: 24px 20px; }
}
