:root {
  color-scheme: dark;
  --bg: #040814;
  --panel: rgba(8, 22, 38, 0.58);
  --ink: #f1fffd;
  --muted: rgba(220, 244, 246, 0.74);
  --cyan: #2ff3ff;
  --green: #3fffbf;
  --gold: #ffd166;
  --pink: #ff4fd8;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(47, 243, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(255, 79, 216, 0.12), transparent 30%),
    linear-gradient(180deg, #050914, #020611 58%, #050914);
}

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

button,
input {
  font: inherit;
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(47, 243, 255, 0.18);
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(20px);
}

.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.market-brand span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #041116;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(47, 243, 255, 0.42);
}

.market-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(235, 255, 253, 0.84);
  font-weight: 800;
}

.market-hero,
.market-layout {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
}

.market-hero {
  padding: clamp(54px, 8vw, 106px) 0 34px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-hero h1 {
  max-width: 920px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.market-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  max-width: 820px;
  margin-top: 28px;
}

.search-bar input,
.search-bar button,
.category-button,
.post-link {
  min-height: 50px;
  border: 1px solid rgba(226, 255, 255, 0.2);
  border-radius: 8px;
}

.search-bar input {
  padding: 0 18px;
  color: var(--ink);
  background: rgba(0, 8, 18, 0.54);
  outline: none;
}

.search-bar button,
.post-link {
  display: grid;
  place-items: center;
  color: #001318;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  cursor: pointer;
}

.market-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 80px;
}

.glass-panel,
.board-section,
.job-card {
  border: 1px solid rgba(226, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 58px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.category-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 22px;
}

.category-panel h2,
.section-title h2 {
  margin: 8px 0 8px;
  letter-spacing: 0;
}

.category-button {
  padding: 0 14px;
  color: var(--ink);
  background: rgba(0, 8, 18, 0.4);
  cursor: pointer;
  text-align: left;
}

.category-button.active {
  border-color: rgba(47, 243, 255, 0.7);
  color: #001318;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 950;
}

.post-link {
  margin-top: 8px;
}

.market-content {
  display: grid;
  gap: 24px;
}

.board-section {
  padding: clamp(20px, 3vw, 34px);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.section-title span {
  color: var(--gold);
  font-weight: 950;
}

.job-grid {
  display: grid;
  gap: 14px;
}

.job-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.job-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.job-card h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 32px);
}

.job-card strong {
  color: rgba(235, 255, 253, 0.82);
}

.job-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-tags span {
  border: 1px solid rgba(47, 243, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(235, 255, 253, 0.88);
  background: rgba(47, 243, 255, 0.07);
  font-size: 12px;
  font-weight: 850;
}

.contact-line {
  color: #eaffff;
  font-weight: 900;
}

.empty-state {
  border: 1px dashed rgba(226, 255, 255, 0.2);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .market-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-header nav {
    flex-wrap: wrap;
  }

  .market-hero,
  .market-layout {
    width: min(100% - 28px, 760px);
  }

  .search-bar,
  .market-layout {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
  }
}
