:root {
  --bg: #0f172a;
  --surface: #020617;
  --surface-alt: #0b1120;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  color: var(--text-main);
}

img {
  max-width: 100%;
  display: block;
}

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

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 10px 14px 8px;
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0, #ffffff 0, #bae6fd 25%, #0ea5e9 65%, #020617 100%);
}

.logo-text {
  font-weight: 700;
  font-size: 15px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.search-shell {
  flex: 1;
  max-width: 380px;
}

.search {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-main);
}

.search::placeholder {
  color: var(--text-muted);
}

.main {
  flex: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 14px 40px;
}

.hero-strip {
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 220px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 20px;
  margin: 0 0 6px;
}

.hero-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.hero-tag {
  padding: 2px 7px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.8);
  background-color: #020617;
}

.hero-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

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

.card {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.9);
  padding: 8px 9px 10px;
}

.card h2 {
  font-size: 13px;
  margin: 0 0 4px;
}

.card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.chip-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 10px;
  color: var(--text-muted);
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  padding: 6px 10px 8px;
  background: linear-gradient(180deg, transparent 0, rgba(15, 23, 42, 0.9) 18%);
}

.bottom-nav-inner {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 11px;
}

.bottom-link {
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--text-muted);
}

.bottom-link.active {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
}

@media (max-width: 880px) {
  .hero-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main {
    padding-bottom: 64px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

