:root {
  --ink: #121212;
  --muted: #686868;
  --line: #d9d9d6;
  --paper: #f7f7f4;
  --white: #ffffff;
  --yellow: #f0c742;
  --coral: #f45b4f;
  --teal: #159f94;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-moon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}

.logo-pools {
  position: absolute;
  inset: 0;
}

.logo-pools i {
  position: absolute;
  bottom: 9px;
  width: 4px;
  height: 13px;
  border-radius: 3px 3px 1px 1px;
  background: var(--ink);
}

.logo-pools i::before {
  position: absolute;
  top: -3px;
  left: -2px;
  width: 8px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.logo-pools i::after {
  position: absolute;
  top: 3px;
  left: 1px;
  width: 2px;
  height: 3px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.logo-pools i:nth-child(1) {
  left: 7px;
  transform: scale(0.82);
}

.logo-pools i:nth-child(2) {
  left: 15px;
  bottom: 10px;
}

.logo-pools i:nth-child(3) {
  left: 23px;
  transform: scale(0.82);
}

.logo-ripple,
.logo-ripple::after {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 22px;
  height: 3px;
  border-top: 1px solid var(--ink);
  border-radius: 50%;
}

.logo-ripple::after {
  left: 3px;
  bottom: -3px;
  width: 16px;
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #353535;
  font-size: 14px;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a,
.site-nav .nav-disabled {
  padding: 22px 0 18px;
  border-bottom: 3px solid transparent;
}

.site-nav .nav-disabled {
  color: #999;
  cursor: not-allowed;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--coral);
  outline: none;
}

.header-tools,
.account-area,
.account-button {
  display: flex;
  align-items: center;
}

.header-tools {
  min-width: 0;
  gap: 22px;
}

.account-button,
.login-button {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.account-button {
  max-width: 160px;
  gap: 8px;
  padding: 3px 10px 3px 4px;
}

.account-button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-button {
  padding: 0 12px;
  white-space: nowrap;
}

.account-avatar,
.message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.account-avatar {
  width: 30px;
  height: 30px;
}

.account-avatar img,
.message-avatar img,
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: min(52vh, 530px);
  display: flex;
  align-items: flex-end;
  background: #1b1b1b url("assets/nightlife-hero.jpg") center 58% / cover no-repeat;
  color: var(--white);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.48);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 58px;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: end;
  gap: 44px;
}

.hero-title-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 1100px;
  margin-bottom: 16px;
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin-bottom: 0;
  color: #efefec;
  font-size: 17px;
}

.guide-entry {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.72);
  color: var(--white);
}

.guide-entry-list {
  display: grid;
  gap: 12px;
}

.guide-entry:hover,
.guide-entry:focus-visible {
  border-color: var(--yellow);
  outline: 3px solid var(--yellow);
  outline-offset: -4px;
}

.guide-entry-kicker {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.guide-entry strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.guide-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #eeeeea;
  font-size: 13px;
}

.content-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-heading h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.2;
}

.section-heading p,
.page-heading p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

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

.index-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background-position: center;
  background-size: cover;
  color: var(--white);
  isolation: isolate;
}

.index-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(0, 0, 0, 0.42);
}

.index-card-content {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.index-card h3 {
  max-width: 100%;
  margin-bottom: 0;
  font-size: 28px;
  overflow-wrap: anywhere;
}

.index-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.index-card-footer > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.index-card:hover,
.index-card:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: -5px;
}

.index-card.locked {
  cursor: not-allowed;
}

.index-card.locked:hover {
  outline: none;
}

.index-card.club {
  background-image: url("assets/category-club.jpg");
}

.index-card.livehouse {
  background-image: url("assets/category-livehouse.jpg");
}

.index-card.homebar {
  background-image: url("assets/category-homebar.jpg");
}

.index-card.ranking {
  background: #25191d url("assets/index-ranking.jpg") center 48% / cover no-repeat;
}

.index-card.ranking::after {
  background: rgba(18, 18, 18, 0.64);
}

.index-card.map {
  background: #26343a url("assets/index-map.jpg") center 48% / cover no-repeat;
}

.index-card.map::after {
  background: rgba(18, 18, 18, 0.58);
}

.index-card.groups {
  background: #1d1d1d url("assets/index-groups.jpg") center 56% / cover no-repeat;
}

.index-card.groups::after {
  background: rgba(18, 18, 18, 0.7);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - var(--header-height) - 100px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #383838;
  font-size: 14px;
  font-weight: 700;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.guide-shell {
  width: min(920px, calc(100% - 48px));
}

.guide-article {
  max-width: 820px;
}

.guide-article h1 {
  margin-bottom: 8px;
  font-size: 44px;
  line-height: 1.18;
}

.guide-article h2,
.guide-article h3 {
  scroll-margin-top: 92px;
}

.guide-article h2 {
  margin: 54px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  line-height: 1.3;
}

.guide-article h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.guide-article p,
.guide-article li {
  color: #303030;
  line-height: 1.85;
}

.guide-article p {
  margin-bottom: 16px;
}

.guide-updated {
  color: var(--muted) !important;
  font-size: 13px;
}

.guide-article ul,
.guide-article ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.guide-article li + li {
  margin-top: 7px;
}

.guide-article [id="指南索引"] {
  margin-top: 32px;
}

.guide-article [id="指南索引"] + ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0 20px;
  padding: 18px 22px 18px 42px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.guide-article [id="指南索引"] + ul a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.guide-article [id="指南索引"] + ul a:hover,
.guide-article [id="指南索引"] + ul a:focus-visible {
  color: var(--coral);
  outline: none;
}

.guide-table-wrap {
  max-width: 100%;
  margin: 20px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--white);
}

.guide-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.guide-table-wrap th,
.guide-table-wrap td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-table-wrap th {
  background: var(--yellow);
  font-weight: 900;
}

.guide-table-wrap th:last-child,
.guide-table-wrap td:last-child {
  border-right: 0;
}

.guide-table-wrap tr:last-child td {
  border-bottom: 0;
}

.list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.search-box {
  width: min(100%, 360px);
  height: 44px;
  padding: 0 14px;
  border: 1px solid #a7a7a2;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}

.search-box:focus {
  border-color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.venue-list {
  display: grid;
  gap: 12px;
}

.venue-row {
  display: grid;
  grid-template-columns: 108px minmax(190px, 0.9fr) minmax(240px, 1.35fr) minmax(110px, 0.5fr) minmax(130px, 0.55fr) 28px;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.venue-row:hover,
.venue-row:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.leading-media {
  position: relative;
  display: block;
  width: 108px;
}

.rank-number {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--yellow);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.venue-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  min-height: 86px;
  place-items: center;
  overflow: hidden;
  background: #242424;
  color: #d6d6d3;
  border: 1px solid #3b3b3b;
  font-size: 12px;
  text-align: center;
}

.venue-placeholder span::before {
  display: block;
  margin-bottom: 5px;
  content: "◇";
  color: var(--yellow);
  font-size: 26px;
}

.venue-photo {
  display: block;
  width: 100%;
  min-height: 86px;
  aspect-ratio: 4 / 3;
  border: 1px solid #3b3b3b;
  object-fit: cover;
  object-position: center;
}

.venue-title {
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.venue-short-name,
.venue-address,
.venue-fact span {
  color: var(--muted);
  font-size: 13px;
}

.venue-address {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.venue-fact strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.venue-arrow {
  font-size: 25px;
  text-align: right;
}

.empty-state {
  padding: 54px 24px;
  border: 1px dashed #999;
  text-align: center;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(280px, 0.8fr);
  gap: 38px;
  align-items: stretch;
  margin-bottom: 48px;
}

.detail-image {
  min-height: 430px;
  border-radius: 4px;
}

.venue-photo.detail-image {
  height: 100%;
  aspect-ratio: 4 / 3;
}

.detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.detail-summary h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detail-summary .venue-short-name {
  margin-bottom: 28px;
  font-size: 15px;
}

.detail-key-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.detail-key-fact {
  min-height: 94px;
  padding: 16px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-key-fact:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.detail-key-fact:nth-child(even) {
  padding-left: 16px;
}

.detail-key-fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-key-fact strong {
  overflow-wrap: anywhere;
}

.detail-section h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.detail-field {
  min-height: 108px;
  padding: 17px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-field:not(:nth-child(3n)) {
  border-right: 1px solid var(--line);
}

.detail-field:nth-child(3n + 2),
.detail-field:nth-child(3n) {
  padding-left: 18px;
}

.detail-field dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.detail-field dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.detail-field a {
  color: #08796f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-grid .detail-field--seat-map {
  grid-column: 1 / -1;
  padding-right: 0;
  border-right: 0;
}

.seat-map-value {
  font-weight: 400;
}

.seat-map-hint {
  margin-left: 3px;
  color: var(--muted);
  font-weight: 500;
}

.detail-field .seat-map-link {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f1f1ed;
  color: inherit;
  cursor: zoom-in;
}

.seat-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-field .seat-map-link:hover,
.detail-field .seat-map-link:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.seat-map-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 18, 18, 0.86);
}

.seat-map-dialog {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
}

.seat-map-dialog img {
  display: block;
  max-width: min(1200px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--white);
  object-fit: contain;
}

.seat-map-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.missing {
  color: #9a9a96;
  font-weight: 500;
}

.type-badge {
  display: inline-block;
  padding: 3px 7px;
  background: var(--teal);
  color: var(--white);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
}

.map-page {
  width: min(1380px, calc(100% - 48px));
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.map-legend i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
}

.club-dot,
.map-list-number.club,
.map-marker.club > span:first-child {
  background: var(--yellow);
}

.livehouse-dot,
.map-list-number.livehouse,
.map-marker.livehouse > span:first-child {
  background: var(--coral);
}

.homebar-dot,
.map-list-number.homebar,
.map-marker.homebar > span:first-child {
  background: var(--teal);
  color: var(--white);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.static-map-scroll {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: #dfe2dc;
}

.static-map {
  position: relative;
  width: 100%;
  min-width: 760px;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: url("assets/hangzhou-static-map.png") center / cover no-repeat;
}

.map-marker {
  position: absolute;
  z-index: 2;
  left: var(--marker-x);
  top: var(--marker-y);
  width: 32px;
  height: 40px;
  transform: translate(-50%, -100%);
}

.map-marker > span:first-child {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 2px 0 rgba(18, 18, 18, 0.22);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-45deg);
}

.map-marker > span:first-child b {
  font-variant-numeric: tabular-nums;
  transform: rotate(45deg);
}

.map-marker .map-tooltip {
  position: absolute;
  bottom: 45px;
  left: 50%;
  z-index: 4;
  display: none;
  width: 220px;
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(18, 18, 18, 0.16);
}

.map-tooltip strong,
.map-tooltip small,
.map-directory-item strong,
.map-directory-item small,
.map-pending a span {
  display: block;
}

.map-tooltip small,
.map-directory-item small,
.map-pending a span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.map-marker:hover,
.map-marker:focus-visible {
  z-index: 5;
  outline: none;
}

.map-marker:hover .map-tooltip,
.map-marker:focus-visible .map-tooltip {
  display: block;
}

.map-marker.tooltip-below .map-tooltip {
  top: 42px;
  bottom: auto;
}

.map-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid #9a9c96;
  background: rgba(255, 255, 255, 0.92);
  color: #555852;
  font-size: 11px;
}

.map-multi-location {
  position: absolute;
  left: 14px;
  bottom: 66px;
  z-index: 3;
  display: grid;
  grid-template-columns: 32px auto;
  column-gap: 10px;
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.map-multi-location > span {
  grid-row: 1 / 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.map-multi-location strong { font-size: 13px; }
.map-multi-location small { color: var(--muted); font-size: 11px; }
.map-multi-location:hover,
.map-multi-location:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.map-directory {
  max-height: min(68vh, 690px);
  overflow-y: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.map-directory h2 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 14px 0 12px;
  background: var(--paper);
  font-size: 19px;
}

.map-directory-section h3 {
  margin: 0;
  padding: 12px 0 7px;
  border-top: 2px solid var(--ink);
  font-size: 13px;
}

.map-directory-section:first-child h3 { border-top-width: 1px; }

.map-directory-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.map-directory-item:hover strong,
.map-directory-item:focus-visible strong {
  color: var(--coral);
}

.map-list-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.map-pending {
  padding: 14px 0;
  border-top: 2px solid var(--ink);
}

.map-pending > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 12px;
}

.map-pending a {
  display: block;
}

.groups-page {
  width: min(1180px, calc(100% - 48px));
}

.groups-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.groups-heading h1 {
  margin-bottom: 4px;
  font-size: 34px;
}

.groups-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.groups-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.groups-heading-actions .primary-command,
.groups-heading-actions .secondary-command {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  line-height: 1;
}

.primary-command,
.group-join-panel button,
.join-dialog button,
.create-group-form > button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.group-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.group-toolbar label,
.create-group-form label,
.join-dialog label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.group-toolbar select,
.create-group-form input,
.create-group-form select,
.create-group-form textarea,
.join-dialog input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #a7a7a2;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.group-toolbar select {
  min-width: 190px;
}

.group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.group-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.group-card:hover,
.group-card:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.group-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.group-kind {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.group-kind.player {
  background: var(--yellow);
}

.group-card h2 {
  margin-bottom: 6px;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.group-venue {
  min-height: 42px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.group-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.group-progress > span {
  height: 8px;
  overflow: hidden;
  background: #e2e2de;
}

.group-progress i {
  display: block;
  height: 100%;
  background: var(--coral);
}

.group-progress strong {
  font-size: 13px;
}

.group-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-card-facts > span {
  padding: 12px 10px 12px 0;
}

.group-card-facts > span + span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.group-card-facts small,
.group-card-facts strong {
  display: block;
}

.group-card-facts small {
  margin-bottom: 4px;
  color: var(--muted);
}

.group-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-weight: 800;
}

.group-card-action b {
  font-size: 23px;
}

.gender-availability {
  display: flex;
  gap: 8px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gender-availability span {
  padding: 3px 7px;
  border: 1px solid var(--line);
}

.group-detail-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.group-detail-heading h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.group-detail-heading p {
  color: var(--muted);
}

.group-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 38px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.group-detail-summary > div {
  min-height: 88px;
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--line);
}

.group-detail-summary > div:not(:nth-child(3n + 1)) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.group-detail-summary span,
.group-detail-summary strong {
  display: block;
}

.group-detail-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.group-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.group-description h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.group-description h2:not(:first-child) {
  margin-top: 30px;
}

.group-description dl {
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.group-description dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.group-description dt {
  color: var(--muted);
  font-size: 12px;
}

.group-description dd {
  margin: 0;
  font-weight: 700;
}

.group-description ul {
  margin: 0;
  padding-left: 20px;
}

.group-description li + li {
  margin-top: 8px;
}

.group-join-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.group-join-panel > span {
  color: var(--muted);
  font-size: 12px;
}

.group-join-panel > strong {
  font-size: 26px;
}

.group-join-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.group-join-panel a {
  color: #08796f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
}

.secondary-command {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--white) !important;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.member-section,
.discussion-section {
  margin-bottom: 38px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.discussion-section {
  margin-top: 48px;
  margin-bottom: 0;
}

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

.section-row h2 {
  margin-bottom: 3px;
  font-size: 22px;
}

.section-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.member-slots {
  display: flex;
  min-height: 116px;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

.member-slot {
  display: grid;
  flex: 0 0 76px;
  justify-items: center;
  gap: 6px;
}

.member-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #777;
  border-radius: 50%;
  background: var(--white);
  color: #999;
  font-size: 28px;
}

button.member-avatar {
  padding: 0;
  font: inherit;
}

.member-slot-join {
  cursor: pointer;
}

.member-slot-join:hover,
.member-slot-join:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  color: var(--ink);
}

.member-slot-join:disabled {
  cursor: wait;
  opacity: 0.55;
}

.member-slot.occupied .member-avatar {
  border-color: var(--ink);
}

.member-slot.male strong,
.member-slot.female strong {
  width: 66px;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 2px;
  color: var(--white);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-slot.male strong {
  background: #3977b9;
}

.member-slot.female strong {
  background: var(--coral);
}

.member-only-state,
.loading-state {
  padding: 34px 18px;
  border: 1px dashed #999;
  color: var(--muted);
  text-align: center;
}

.message-list {
  display: grid;
  max-height: 480px;
  gap: 18px;
  overflow-y: auto;
  padding: 2px 0 20px;
}

.message-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
}

.message-avatar {
  width: 42px;
  height: 42px;
}

.message-item > div {
  min-width: 0;
}

.message-item p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.message-item time {
  color: var(--muted);
  font-size: 11px;
}

.message-item > div > div {
  max-width: 760px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.message-form textarea {
  min-height: 72px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #a7a7a2;
  border-radius: 3px;
}

.message-form button,
.wechat-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18, 18, 18, 0.72);
}

.join-dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.join-dialog h2 {
  margin: 12px 0 6px;
  font-size: 26px;
}

.join-dialog form {
  display: grid;
  gap: 13px;
  margin: 20px 0 12px;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px !important;
  padding: 0 !important;
  background: var(--white) !important;
  font-size: 24px;
}

.join-dialog > small {
  color: var(--muted);
}

.auth-dialog .wechat-login {
  min-height: 46px;
  margin-top: 18px;
  background: #20a162;
  color: var(--white);
}

.auth-dialog fieldset {
  display: flex;
  gap: 22px;
  padding: 10px 12px;
  border: 1px solid #a7a7a2;
}

.auth-dialog fieldset legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-dialog fieldset label {
  display: flex;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.text-command {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.auth-unavailable {
  margin: 18px 0 0;
  color: var(--muted);
}

.site-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(380px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--teal);
  color: var(--white);
  box-shadow: 4px 4px 0 rgba(18, 18, 18, 0.2);
  font-weight: 700;
}

.site-notice.error {
  background: var(--coral);
}

.create-group-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.create-group-form .form-wide,
.create-group-form > button {
  grid-column: 1 / -1;
}

.create-group-form textarea {
  resize: vertical;
}

.local-preview {
  margin-top: 24px;
  padding: 22px 0;
  border-top: 3px solid var(--yellow);
}

.local-preview h2 {
  margin: 12px 0 6px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #d6d6d3;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-title-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guide-entry-list {
    width: min(320px, 100%);
  }

  .venue-row {
    grid-template-columns: 96px minmax(160px, 0.9fr) minmax(210px, 1.2fr) minmax(100px, 0.5fr) 24px;
  }

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

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-directory {
    max-height: none;
  }

  .group-detail-layout {
    grid-template-columns: 1fr;
  }

  .group-join-panel {
    position: static;
  }

  .detail-field:not(:nth-child(3n)) {
    border-right: 0;
  }

  .detail-field:nth-child(3n + 2),
  .detail-field:nth-child(3n) {
    padding-left: 0;
  }

  .detail-field:nth-child(odd) {
    padding-right: 18px;
    border-right: 1px solid var(--line);
  }

  .detail-field:nth-child(even) {
    padding-left: 18px;
  }

  .detail-grid .detail-field--seat-map {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .site-nav {
    gap: 13px;
    overflow-x: auto;
    font-size: 12px;
  }

  .header-tools {
    gap: 10px;
  }

  .account-button > span:last-child {
    display: none;
  }

  .account-button {
    padding-right: 4px;
  }

  .site-nav a,
  .site-nav .nav-disabled {
    padding: 19px 0 15px;
    white-space: nowrap;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content,
  .content-band,
  .page-shell {
    width: calc(100% - 32px);
  }

  .hero-content {
    padding: 56px 0 46px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  .guide-entry-list {
    width: 100%;
  }

  .guide-entry {
    width: 100%;
    min-height: 118px;
    padding: 17px;
  }

  .guide-entry strong {
    font-size: 19px;
  }

  .content-band {
    padding: 38px 0 54px;
  }

  .section-heading,
  .page-heading {
    display: block;
  }

  .section-heading h2,
  .page-heading h1 {
    margin-bottom: 8px;
    font-size: 26px;
  }

  .index-grid {
    grid-template-columns: 1fr;
  }

  .index-card,
  .index-card-content {
    min-height: 190px;
  }

  .page-shell {
    padding: 28px 0 52px;
  }

  .guide-article h1 {
    font-size: 34px;
  }

  .guide-article h2 {
    margin-top: 42px;
    font-size: 24px;
  }

  .guide-article [id="指南索引"] + ul {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .guide-table-wrap {
    overflow-x: visible;
  }

  .guide-table-wrap table {
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  .guide-table-wrap th,
  .guide-table-wrap td {
    padding: 9px 7px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .list-toolbar {
    justify-content: stretch;
  }

  .search-box {
    width: 100%;
  }

  .venue-row {
    position: relative;
    grid-template-columns: 96px minmax(0, 1fr) 18px;
    gap: 8px 12px;
    min-height: 154px;
    padding: 13px;
  }

  .leading-media {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 96px;
    align-self: start;
  }

  .rank-number {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .venue-row > span:nth-child(2),
  .venue-row .venue-address,
  .venue-row .venue-fact {
    grid-column: 2;
  }

  .venue-row .venue-address {
    font-size: 12px;
  }

  .venue-row .venue-fact {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
  }

  .venue-row .venue-arrow {
    grid-column: 3;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .detail-image {
    width: 100%;
    min-height: 0;
  }

  .detail-summary {
    padding: 0;
  }

  .detail-summary h1 {
    font-size: 38px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .map-page {
    width: calc(100% - 32px);
  }

  .groups-page,
  .group-detail-page,
  .create-group-page {
    width: calc(100% - 32px);
  }

  .groups-heading {
    display: grid;
    align-items: start;
  }

  .groups-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .groups-heading h1 {
    font-size: 30px;
  }

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

  .group-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .group-list {
    grid-template-columns: 1fr;
  }

  .group-card {
    min-height: 300px;
  }

  .member-slots {
    gap: 14px;
  }

  .message-form {
    grid-template-columns: 1fr;
  }

  .message-form button {
    min-height: 44px;
  }

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

  .group-detail-summary > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }

  .group-detail-summary > div:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  .create-group-form {
    grid-template-columns: 1fr;
  }

  .create-group-form .form-wide,
  .create-group-form > button {
    grid-column: auto;
  }

  .static-map {
    min-width: 720px;
  }

  .detail-field,
  .detail-field:nth-child(odd),
  .detail-field:nth-child(even) {
    min-height: auto;
    padding: 15px 0;
    border-right: 0;
  }

  .site-footer {
    display: grid;
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
