:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e5eaf1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --soft-primary: #eff6ff;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 320px);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

button {
  font-family: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
  flex: 0 0 auto;
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title strong {
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: #475569;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  transition: 0.15s;
}

.nav a:hover {
  color: var(--primary);
  background: var(--soft-primary);
}

.hero {
  padding: 48px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.hero-main,
.hero-side,
.section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 36px;
}

.hero-side {
  padding: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--soft-primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.hero p {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.light {
  border-color: var(--border);
  background: #fff;
}

.btn.light:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.side-title {
  margin: 0 0 16px;
  font-size: 18px;
}

.stats {
  display: grid;
  gap: 12px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfdff;
}

.stat strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin: 22px 0;
  padding: 26px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}

.tab:hover {
  border-color: #bfdbfe;
  color: var(--primary);
  background: var(--soft-primary);
}

.tab.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  padding: 20px;
  transition: 0.16s;
  min-width: 0;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.project-name {
  margin: 0;
  font-size: 20px;
}

.project-desc {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.version-tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--soft-primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.download-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fbfdff;
  min-width: 0;
}

.file-title {
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
}

.pill.android {
  color: #15803d;
  background: #dcfce7;
}

.pill.windows {
  color: #1d4ed8;
  background: #dbeafe;
}

.pill.macos {
  color: #6d28d9;
  background: #ede9fe;
}

.pill.linux {
  color: #b45309;
  background: #fef3c7;
}

.pill.recommended {
  color: #047857;
  background: #d1fae5;
}

.empty {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
}

.notice {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  line-height: 1.7;
  font-size: 14px;
}

.update-list {
  display: grid;
  gap: 14px;
}

.update-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.update-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.update-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  padding: 28px 0 42px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
  transition: 0.18s;
  z-index: 50;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .download-item {
    grid-template-columns: 1fr;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions .btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding-top: 28px;
  }

  .hero-main,
  .hero-side,
  .section {
    padding: 20px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .brand-title span {
    display: none;
  }
}
