:root {
  color-scheme: light dark;
  --bg: #0f172a;
  --panel: #111827;
  --border: #1f2937;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Microsoft Yahei', sans-serif;
  background: var(--bg);
  color: #e2e8f0;
}
.site-header,
.site-footer {
  text-align: center;
  padding: 20px;
}
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  justify-items: center;
}
.header-bar h1 {
  margin: 0;
  grid-column: 2;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  grid-column: 3;
  justify-self: end;
}
.lang-switch.field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.lang-switch.field span {
  white-space: nowrap;
  color: var(--muted);
}
.select {
  appearance: none;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: #e2e8f0;
}
.header-actions .select {
  width: auto;
  min-width: 140px;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
.app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(14, 116, 144, 0.2), transparent 55%),
    #020617;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
}
.app-card-main {
  display: grid;
  gap: 8px;
}
.app-title {
  margin: 0;
  font-size: 20px;
}
.app-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.app-card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #020617;
  color: #e2e8f0;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn:hover {
  border-color: #334155;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-footer .legal {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
