* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
}

.hub-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.hub-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #000000;
}

.hub-lang {
  color: #333333;
  font-size: 0.9rem;
}

.hub-lang a {
  color: #000000;
  margin-left: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.hub-lang a:hover {
  opacity: 0.75;
}

.hub-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.hub-main h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #000000;
}

.hub-lead {
  margin: 0 0 28px;
  color: #333333;
  line-height: 1.6;
  max-width: 640px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  border-radius: 12px;
  border: 1px solid #dddddd;
  background: #ffffff;
  padding: 16px;
  text-decoration: none;
  color: #111111;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  border-color: #999999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.game-card-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid #eeeeee;
  overflow: hidden;
  background: #f5f5f5;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #000000;
}

.game-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.5;
}

.game-card-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.game-card-links span,
.game-card-links a {
  font-size: 0.8rem;
  font-weight: 700;
}

.game-card-links a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-site-intro {
  margin-top: 36px;
  padding: 24px 0 4px;
  border-top: 1px solid #e8e8e8;
  max-width: 720px;
  color: #333333;
  line-height: 1.75;
  font-size: 0.95rem;
}

.hub-site-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 2.5vw, 1.28rem);
  font-weight: 800;
  color: #000000;
  line-height: 1.35;
}

.hub-site-intro h3 {
  margin: 1.15em 0 0.45em;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
}

.hub-site-intro h3:first-of-type {
  margin-top: 0.85em;
}

.hub-site-intro p {
  margin: 0 0 0.95em;
}

.hub-site-intro p:last-child {
  margin-bottom: 0;
}

.hub-site-intro a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-site-intro a:hover {
  color: #1d4ed8;
}

.hub-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.85rem;
  color: #555555;
}

.hub-footer .hub-original {
  margin: 0;
  max-width: 720px;
  line-height: 1.65;
}

.hub-footer .hub-original > p {
  margin: 0;
}

.hub-footer .hub-original > p + p {
  margin-top: 0.65em;
}

.hub-footer .hub-original-title {
  margin-bottom: 0.15em;
}

.hub-footer .hub-original strong {
  color: #111111;
}

.hub-footer code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #111111;
}

@media (max-width: 400px) {
  .game-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .game-card-body {
    align-items: center;
  }
}
