:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #182230;
  --muted: #64748b;
  --line: #dbe4f0;
  --brand: #0f4c97;
  --brand-deep: #0a3365;
  --accent-soft: #fff4db;
  --shadow: 0 18px 40px rgba(15, 52, 101, 0.10);
  --content: min(1180px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 76, 151, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 18%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: var(--content); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.9);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr minmax(260px, 420px);
  align-items: center;
  gap: 20px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  max-width: 148px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-title { min-width: 0; }
.brand-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: var(--brand-deep);
  font-weight: 700;
}
.brand-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #334155;
  font-size: 15px;
  flex-wrap: wrap;
}
.top-links a:hover { color: var(--brand); }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(15, 76, 151, 0.08);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  padding: 0 6px;
}
.search-box button {
  border: 0;
  min-width: 108px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #1e63b9);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.hero {
  padding: 40px 0 20px;
}
.hero-main {
  padding: 48px;
  background: linear-gradient(135deg, rgba(15, 76, 151, 0.96), rgba(10, 51, 101, 0.98));
  color: #fff;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(219, 228, 240, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-main::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -36px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.20), rgba(255,255,255,0));
}
.hero-main h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.15;
  max-width: 100%;
}
.hero-main p {
  margin: 16px 0 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}
.hero-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-tags span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.category-section {
  padding: 16px 0 6px;
}
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  color: #334155;
  box-shadow: 0 8px 20px rgba(15, 76, 151, 0.06);
}
.category-link.is-active,
.category-link:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.software-section {
  padding: 18px 0 56px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h3 {
  margin: 0;
  font-size: 30px;
  color: var(--brand-deep);
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.software-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.software-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 52, 101, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.software-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 76, 151, 0.26);
  box-shadow: 0 22px 42px rgba(15, 52, 101, 0.14);
}
.software-cover {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(10, 51, 101, 0.96), rgba(30, 99, 185, 0.94));
}
.software-cover.alt-a { background: linear-gradient(135deg, #0a3365, #0f4c97); }
.software-cover.alt-b { background: linear-gradient(135deg, #2f4858, #33658a); }
.software-cover.alt-c { background: linear-gradient(135deg, #5b3c88, #2a5ca8); }
.software-cover.alt-d { background: linear-gradient(135deg, #13547a, #1e63b9); }
.software-cover.alt-e { background: linear-gradient(135deg, #15616d, #0f4c97); }
.software-cover.alt-f { background: linear-gradient(135deg, #8a3b12, #d97706); }
.software-cover.alt-g { background: linear-gradient(135deg, #1f4d3a, #159a72); }
.software-cover.has-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #edf4fb);
}
.software-cover.has-image img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 12px;
}
.software-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.software-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a16207;
  font-size: 12px;
  font-weight: 700;
}
.software-body h4 {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--brand-deep);
}
.software-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
}
.software-actions {
  margin-top: 18px;
  display: flex;
}
.software-actions a {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 30px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.footer-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
}
.footer-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.footer-item strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}
.footer-note {
  margin-top: 18px;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1180px) {
  .site-header-inner { grid-template-columns: 1fr; padding: 18px 0; }
  .top-links { justify-content: flex-start; }
  .software-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .brand { flex-wrap: wrap; }
  .brand-logo { max-width: 124px; height: 38px; }
  .brand-title h1 { font-size: 24px; }
  .search-box { width: 100%; }
  .hero { padding-top: 24px; }
  .hero-main { padding: 28px 22px; }
  .section-head { display: block; }
  .software-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}