@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --ink: #111927;
  --muted: rgba(17, 25, 39, 0.62);
  --accent: #6d49f2;
  --paper: rgba(249, 245, 236, 0.94);
  --white-glass: rgba(255, 255, 255, 0.76);
  --line: #edf0f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #cfc8c5;
  font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

.site-bg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-video,
.site-tint {
  position: fixed;
  inset: 0;
}

.site-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-tint {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 61, 110, 0.14), transparent 26%),
    linear-gradient(120deg, rgba(247, 243, 235, 0.62) 0%, rgba(247, 243, 235, 0.38) 46%, rgba(17, 25, 39, 0.1) 100%),
    rgba(215, 208, 202, 0.28);
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 24px));
  padding: 12px 0;
  transform: translateX(-50%);
}

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

.site-logo {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(17, 25, 39, 0.22);
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-logo img[src=""] {
  display: none;
}

.site-logo img:not([src=""]) + b {
  display: none;
}

.site-brand-text {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.site-brand-text strong {
  max-width: 300px;
  overflow: hidden;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-brand-text small {
  overflow: hidden;
  color: rgba(17, 25, 39, 0.55);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav,
.site-action-light,
.section-head a {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(17, 25, 39, 0.1);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  border-radius: 999px;
  padding: 6px;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 15px;
  color: rgba(17, 25, 39, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a.active {
  background: #fff;
  color: var(--ink);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-action-light,
.site-action-dark {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 900;
}

.site-action-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 34px rgba(17, 25, 39, 0.24);
}

.site-main {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding-top: 72px;
}

.hero,
.category-hero {
  display: grid;
  align-items: end;
}

.hero {
  min-height: 230px;
  padding: 32px 0 12px;
}

.hero p,
.category-hero > p,
.section-head p {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 10px 0;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.content-section {
  padding: 14px 0 34px;
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.section-head a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.activity-grid,
.club-grid {
  display: grid;
  gap: 14px;
}

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

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

.activity-card,
.club-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(17, 25, 39, 0.1);
}

.activity-card {
  background: #fff;
}

.activity-card-image {
  display: block;
  background: #f3f5f8;
}

.activity-card-image img {
  width: 100%;
  aspect-ratio: 750 / 235;
  object-fit: contain;
}

.activity-card-body {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 13px 14px 14px;
}

.activity-card h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card p {
  display: flex;
  min-width: 0;
  gap: 5px;
  margin: 5px 0 0;
  color: rgba(17, 25, 39, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.activity-card em {
  min-width: 0;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card i {
  color: rgba(17, 25, 39, 0.34);
  font-style: normal;
}

.activity-card time {
  color: rgba(17, 25, 39, 0.55);
  font-size: 13px;
  font-weight: 900;
}

.activity-tone {
  color: var(--accent);
  font-weight: 900;
}

.activity-tone.tone-version {
  color: #2563eb;
}

.activity-tone.tone-sale {
  color: #f97316;
}

.activity-tone.tone-event {
  color: #d946ef;
}

.activity-tone.tone-platform {
  color: #0891b2;
}

.club-card {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(17, 25, 39, 0.14);
}

.club-card-cover {
  position: relative;
  height: 144px;
  overflow: hidden;
}

.club-card-cover > a,
.club-card-cover > a img {
  width: 100%;
  height: 100%;
}

.club-card-cover > a img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.club-card:hover .club-card-cover > a img {
  transform: scale(1.05);
}

.club-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 25, 39, 0.06) 0%, rgba(17, 25, 39, 0.18) 46%, rgba(17, 25, 39, 0.58) 100%);
  pointer-events: none;
}

.club-game-badge,
.club-member-badge {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(17, 25, 39, 0.18);
}

.club-game-badge {
  left: 12px;
  max-width: calc(100% - 112px);
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.club-game-badge img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

.club-game-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-member-badge {
  right: 12px;
  padding: 8px 10px;
  background: rgba(17, 25, 39, 0.84);
  color: #fff;
}

.club-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.club-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.club-card-title > img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(17, 25, 39, 0.16);
}

.club-card-title div {
  min-width: 0;
}

.club-card-title p {
  margin: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-card-title h3 {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.club-join {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #18a8ff 0%, #49d6c8 48%, #7b61ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(24, 168, 255, 0.28);
}

.club-join span:last-child {
  position: absolute;
  right: 16px;
  font-size: 18px;
}

.category-hero {
  gap: 14px;
  padding: 28px 0 18px;
}

.category-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.category-title-row h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
}

.category-title-row span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.category-title-row strong {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(17, 25, 39, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(17, 25, 39, 0.2);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 25, 39, 0.12);
  backdrop-filter: blur(18px);
}

.filter-tabs,
.filter-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs a,
.filter-games a,
.filter-more {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(17, 25, 39, 0.72);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(17, 25, 39, 0.06);
  cursor: pointer;
}

.filter-tabs a.active,
.filter-games a.active {
  background: linear-gradient(135deg, #18a8ff 0%, #49d6c8 48%, #7b61ff 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(24, 168, 255, 0.22);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(430px, 100%);
  border-radius: 999px;
  padding: 10px 12px 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(17, 25, 39, 0.08);
}

.filter-search span {
  color: rgba(17, 25, 39, 0.48);
  font-size: 18px;
  font-weight: 900;
}

.filter-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
}

.filter-search button {
  display: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 25, 39, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.filter-search.has-value button {
  display: grid;
  place-items: center;
}

.filter-games-wrap {
  display: grid;
  gap: 10px;
}

.club-filter-panel:not(.expanded):not(.is-searching) .filter-games a:nth-child(n+11),
.activity-filter-panel:not(.expanded):not(.is-searching) .filter-games a:nth-child(n+12) {
  display: none;
}

.filter-games a.filter-hidden {
  display: none !important;
}

.filter-more {
  justify-self: start;
  background: rgba(17, 25, 39, 0.08);
  color: var(--ink);
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(17, 25, 39, 0.55);
  text-align: center;
  font-weight: 900;
}

.empty-state.visible {
  display: block;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 0 32px;
  color: rgba(17, 25, 39, 0.55);
  font-size: 13px;
  font-weight: 700;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a:empty {
  display: none;
}

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

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

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .site-brand-text {
    display: grid;
    max-width: 150px;
  }

  .site-brand-text strong {
    max-width: 150px;
    font-size: 20px;
  }

  .site-brand-text small {
    max-width: 150px;
    font-size: 11px;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .site-main {
    padding-top: 62px;
  }

  .hero {
    min-height: 175px;
  }

  .category-title-row {
    align-items: start;
  }

  .category-title-row h1,
  .section-head h2 {
    font-size: 32px;
  }

  .category-title-row span {
    display: none;
  }

  .category-title-row strong,
  .section-head a {
    padding: 8px 12px;
    font-size: 12px;
  }

  .filter-panel {
    padding: 14px;
  }

  .filter-tabs a,
  .filter-games a,
  .filter-more {
    padding: 9px 12px;
    font-size: 12px;
  }

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

  .activity-card-body,
  .club-card-body {
    padding: 10px;
  }

  .activity-card h3,
  .club-card-title h3 {
    font-size: 14px;
  }

  .activity-card h3 {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .activity-card p,
  .activity-card time {
    font-size: 12px;
  }

  .club-card-cover {
    height: 96px;
  }

  .club-game-badge,
  .club-member-badge {
    bottom: 8px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .club-game-badge {
    left: 8px;
    max-width: calc(100% - 76px);
  }

  .club-member-badge {
    right: 8px;
  }

  .club-game-badge img {
    width: 16px;
    height: 16px;
  }

  .club-card-title {
    min-height: 44px;
    gap: 9px;
  }

  .club-card-title > img {
    width: 42px;
    height: 42px;
  }

  .club-card-title p {
    font-size: 10px;
  }

  .club-join {
    padding: 8px 12px;
    font-size: 12px;
  }
}
