/* Light Court — visual system from design-demo. Existing image sources are retained. */
:root {
  --bg: #f3f5ef;
  --surface: #fff;
  --surface-soft: #eef2e9;
  --ink: #16332a;
  --ink-2: #41564c;
  --ink-3: #667a6c;
  --line: #e4e9e0;
  --brand: #1d5c45;
  --brand-deep: #143d2f;
  --brand-soft: #e3efe7;
  --accent: #e8603f;
  --accent-deep: #b83d22;
  --accent-soft: #fdeee8;
  --gold: #d9a441;
  --grad-brand: linear-gradient(135deg, #1d5c45 0%, #2e7d59 100%);
  --grad-accent: linear-gradient(135deg, #e8603f 0%, #f2a03d 100%);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-card: 0 1px 2px rgb(22 51 42 / 5%), 0 14px 34px -18px rgb(22 51 42 / 22%);
  --shadow-pop: 0 18px 44px -14px rgb(22 51 42 / 30%);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
:where(button, input, textarea, select, summary, a):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cdd8cb;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #a6bba7;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(29 92 69 / 8%);
}
textarea {
  min-height: 92px;
  resize: vertical;
}
label,
legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
fieldset {
  min-width: 0;
  border: 0;
  margin: 0 0 25px;
  padding: 0;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--brand-deep);
  font-weight: 750;
  box-shadow: 0 12px 24px -10px rgb(232 96 63 / 45%);
  transition:
    transform 0.18s var(--ease-spring),
    box-shadow 0.18s;
}
.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -10px rgb(232 96 63 / 55%);
}
.primary:active:not(:disabled) {
  transform: scale(0.98);
}
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  transition:
    background 0.16s,
    border-color 0.16s;
}
.secondary:hover:not(:disabled) {
  background: var(--brand-soft);
  border-color: #cfe2d4;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-2);
  transition:
    background 0.16s,
    color 0.16s;
}
.icon-button:hover {
  background: var(--surface-soft);
  color: var(--brand);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 0.02em;
}
.brand span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}
.loading {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  color: var(--ink-3);
}
.muted {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
}
.form-error {
  color: #a83224;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 14px;
  min-height: 21px;
  overflow-wrap: anywhere;
}
.form-error:empty {
  min-height: 0;
  margin: 0;
}
.error-message {
  overflow-wrap: anywhere;
}
.text-button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 12px 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
.danger-text {
  color: #a83224;
}
.danger {
  background: #a83224;
  color: #fff;
  box-shadow: none;
}

/* Entry screens use the same surfaces and typography as the signed-in app. */
.entry-page {
  min-height: 100dvh;
}
.entry-header {
  max-width: 1360px;
  margin: auto;
  padding: 26px 32px;
}
.entry-content {
  width: calc(100% - 40px);
  max-width: 460px;
  margin: 40px auto 70px;
  padding: 30px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  animation: surface-enter 0.3s ease-out;
}
.entry-content h1 {
  font-size: 28px;
  margin: 6px 0 14px;
  letter-spacing: -0.02em;
}
.entry-content > p {
  color: var(--ink-3);
  line-height: 1.8;
}
.entry-symbol {
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 16px;
}
.code-form {
  margin-top: 26px;
}
.code-form .primary,
.invite-form .primary {
  width: 100%;
}
.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stacked-form label {
  margin: 8px 0 0;
}
.stacked-form fieldset {
  margin: 10px 0;
}
.stacked-form .primary {
  margin-top: 12px;
}
.auth-tabs {
  display: flex;
  margin: 20px 0;
}
.auth-tabs button {
  flex: 1;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.checkbox-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  padding: 0;
  accent-color: var(--brand);
}
.invite-page {
  min-height: 100dvh;
  background: var(--surface);
}
.invite-hero {
  position: relative;
  min-height: 320px;
  height: min(41dvh, 380px);
  color: #fff;
  background:
    linear-gradient(90deg, rgb(22 36 28 / 72%), rgb(22 36 28 / 8%)),
    url('/images/夕阳下的羽球跃击.png') center 59% / cover;
}
.invite-brand {
  padding: 26px 30px;
}
.invite-brand .brand span {
  color: #edf0e7;
}
.invite-title {
  position: absolute;
  bottom: 27px;
  left: 30px;
  right: 30px;
  max-width: 560px;
  text-shadow: 0 2px 8px #243d3480;
}
.invite-title p {
  font-size: 13px;
  margin-bottom: 10px;
  color: #ffe2b6;
}
.invite-title h1 {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.invite-title span {
  font-size: 13px;
}
.invite-form {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 30px 28px 40px;
}
.invite-form h2 {
  font-size: 21px;
  margin-bottom: 26px;
}
.invite-avatars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.invite-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 22px;
  transition:
    border-color 0.16s,
    background 0.16s;
}
.invite-avatar.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Three-column composition from the reference, with the existing brand images. */
.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 620px) 260px;
  justify-content: center;
  gap: 28px;
  max-width: 1360px;
  margin: auto;
  padding: 0 24px;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 30px 8px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar .brand {
  padding: 0 10px;
}
.club-name {
  margin: 25px 10px 14px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: var(--ink-2);
  border: 0;
  border-radius: var(--r-md);
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: left;
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.16s;
}
.nav-item:hover {
  background: var(--surface-soft);
  transform: translateX(2px);
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #cfe2d4;
}
.nav-item .badge {
  margin-left: auto;
}
.compose {
  width: 100%;
  margin: 26px 0;
}
.member-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  min-width: 0;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.member-line .member-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.member-info strong {
  display: block;
  font-size: 14px;
}
.member-info small {
  display: block;
  color: var(--ink-3);
  margin-top: 3px;
  font-size: 12px;
}
.member-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
}
.member-line .member-avatar {
  background: var(--accent-soft);
}
.avatar-button {
  border: 0;
  padding: 0;
  transition:
    background 0.16s,
    transform 0.16s;
}
.avatar-button:hover {
  background: #cfe2d4;
  transform: scale(1.04);
}
.main-views {
  min-width: 0;
}
.home {
  min-width: 0;
  padding: 30px 0 90px;
  animation: surface-enter 0.25s ease-out;
}
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.home-header > div {
  min-width: 0;
}
.eyebrow {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.home-header h1 {
  font-size: 29px;
  letter-spacing: -0.02em;
  margin: 0;
  outline: none;
  overflow-wrap: anywhere;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.feed-photo {
  margin: 22px 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.feed-photo img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 62%;
}
.home-banner {
  height: 180px;
  color: #fff;
  padding: 26px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(90deg, rgb(22 36 28 / 82%), rgb(22 36 28 / 5%)),
    url('/images/落日余晖下的羽毛球时光.png') center 62% / cover;
}
.home-banner p {
  color: #ffe0b3;
  font-size: 12px;
  margin-bottom: 12px;
}
.home-banner h2 {
  font-size: 25px;
  line-height: 1.4;
  margin-bottom: 0;
}
.feed-scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.segmented {
  display: inline-flex;
  min-width: 0;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.segmented button {
  min-height: 42px;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  transition:
    background 0.16s,
    color 0.16s;
}
.segmented button[aria-selected='true'] {
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
}
.auth-tabs {
  display: flex;
  background: var(--surface-soft);
  box-shadow: none;
}
.today-players {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 2px 0;
  font-size: 13px;
  color: var(--brand);
  line-height: 1.6;
}
.today-players:empty {
  display: none;
}
.today-players:not(:empty)::before {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #3fae76;
  box-shadow: 0 0 0 4px rgb(63 174 118 / 10%);
}
.section-title {
  font-size: 16px;
  margin: 24px 2px 14px;
}
.feed-list,
.public-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  color: var(--ink-3);
  text-align: center;
}
.empty-state svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.right-rail {
  align-self: start;
  position: sticky;
  top: 30px;
  margin-top: 30px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  /* 右栏内容较高（含球场小知识展开）时，限制高度并内部滚动，避免底部被视口截断 */
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.right-rail h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.right-rail img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.right-rail p {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 20px;
  line-height: 1.8;
}
/* 球场小知识挂载点：桌面端在右栏（#court-knowledge，右栏 ≤1180px 隐藏时自然不可见）；
   窄屏与手机端在找球馆页内（.ck-mobile-slot），宽屏下不重复显示。 */
.ck-mobile-slot {
  margin: 0 0 18px;
}
@media (min-width: 1181px) {
  .ck-mobile-slot {
    display: none;
  }
}

/* Feed, images and reactions retain the existing visibility and permission controls. */
.entry-card {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s;
}
.entry-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.entry-head {
  min-width: 0;
  flex: 1;
}
.entry-head strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.entry-meta {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.entry-mood {
  display: inline-flex;
  align-items: center;
  margin: 14px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
}
.entry-note {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.entry-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 7px 12px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.entry-venue svg {
  width: 15px;
  height: 15px;
}
.entry-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.entry-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-soft);
}
.image-open {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.image-failed {
  color: var(--ink-3);
  font-size: 12px;
}
.full-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
}
.reacted-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--brand);
}
.entry-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  position: relative;
}
.reaction-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.reaction-counts > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 7px 11px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.reaction-picker {
  margin-top: 0;
}
.reaction-picker > summary {
  list-style: none;
  border-radius: 999px;
  background: var(--bg);
}
.reaction-picker > summary::-webkit-details-marker {
  display: none;
}
.reaction-picker[open] {
  flex: 1 0 100%;
}
.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 0;
}
.reaction-chip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  transition:
    transform 0.16s var(--ease-spring),
    background 0.16s,
    border-color 0.16s;
}
.reaction-chip.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  animation: reaction-pop 0.3s var(--ease-spring);
}
.privacy-note {
  color: var(--ink-3);
  font-size: 12px;
  margin: 8px 0 0;
}
.comment-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
}
.comment-trigger svg {
  width: 18px;
  height: 18px;
}
.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mood-chip {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 14px;
}
.mood-chip[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.image-thumb {
  position: relative;
  width: 72px;
  height: 72px;
}
.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.image-thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  padding: 0;
}
.image-thumb button svg {
  width: 16px;
  height: 16px;
}

/* Messages, profiles and administration share the same surface hierarchy. */
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 750;
}
.nav-icon {
  position: relative;
  height: 20px;
}
.nav-icon .badge {
  position: absolute;
  top: -7px;
  left: 10px;
  margin: 0;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  font-size: 10px;
}
.message-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  color: inherit;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: background 0.16s;
}
.message-row:hover {
  background: #fafff8;
}
.message-row.unread {
  border-color: var(--accent);
}
.message-row > span:last-child {
  min-width: 0;
}
.message-text,
.message-sub {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.message-sub {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 5px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.profile-card > div {
  min-width: 0;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  font-size: 26px;
}
.profile-card h2 {
  font-size: 20px;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.profile-bio {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.profile-tags {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  margin: 14px 0;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 18px 8px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.profile-stats > div {
  text-align: center;
  padding: 4px;
}
.profile-stats > div + div {
  border-left: 1px solid var(--line);
}
.profile-stats strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.profile-stats span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-3);
}
.profile-line {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--brand);
}
.profile-mark {
  margin: 14px 0 0;
  color: var(--accent-deep);
  font-size: 14px;
}
.profile-venues {
  padding: 0;
  margin: 0;
  list-style: none;
}
.profile-venues li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 12px;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.admin-stats strong {
  display: block;
  font-size: 24px;
}
.admin-stats span {
  color: var(--ink-3);
  font-size: 12px;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-row-main strong {
  font-size: 14px;
  display: block;
}
.admin-row-main > span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}
.invitation-output {
  margin-bottom: 16px;
}
.invitation-output input {
  font-size: 13px;
}
.moderation-entry {
  position: relative;
  margin: 14px 0;
}
.moderation-entry .entry-card header {
  padding-right: 36px;
}
.moderation-entry > button {
  position: absolute;
  right: 12px;
  top: 12px;
}
.load-more {
  display: flex;
  margin: 20px auto 0;
}
.membership-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 18px 0;
  line-height: 1.6;
  color: var(--brand);
}
.membership-status span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.membership-status svg {
  margin-top: 1px;
  width: 18px;
  height: 18px;
}

/* Dialogs stay above the mobile navigation and respect small viewports. */
dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 24px;
  color: var(--ink);
  background: var(--surface);
  overflow-y: auto;
  box-shadow: var(--shadow-pop);
}
dialog[open] {
  animation: dialog-enter 0.2s ease-out;
}
dialog::backdrop {
  background: rgb(18 35 28 / 45%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.dialog-header h2 {
  font-size: 21px;
  margin: 0;
}
.dialog-header .icon-button {
  background: var(--bg);
  border-radius: 50%;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-form input {
  min-width: 0;
}
.inline-form button {
  flex-shrink: 0;
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-list p {
  margin: 0;
}
.venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.venue-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.source-row,
.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}
.source-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.source-row > span:last-child {
  margin-left: auto;
  flex-shrink: 0;
}
.comment-main {
  flex: 1;
  min-width: 0;
}
.comment-main p {
  margin: 8px 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-main strong {
  overflow-wrap: anywhere;
}
.comment-main time {
  font-size: 12px;
  color: var(--ink-3);
}
.comment-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.comment-section h3 {
  font-size: 16px;
}
.comment-section .primary {
  margin: 10px 0 10px auto;
}
.report-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.report-row p {
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 12px 0;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--r-md);
  padding: 13px 20px;
  width: max-content;
  max-width: calc(100% - 32px);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  overflow-wrap: anywhere;
  box-shadow: var(--shadow-pop);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.bottom-nav,
.mobile-avatar,
.mobile-compose {
  display: none;
}
@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes reaction-pop {
  0% {
    transform: scale(0.86);
  }
  65% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@media (hover: hover) and (pointer: fine) {
  .entry-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
  }
  .reaction-chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px) scale(1.04);
  }
}
@media (min-width: 801px) {
  .invite-brand,
  .invite-title {
    left: max(30px, calc((100% - 1000px) / 2));
  }
  .invite-brand {
    position: absolute;
    left: max(0px, calc((100% - 1060px) / 2));
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 230px minmax(0, 620px);
  }
  .right-rail {
    display: none;
  }
}
@media (max-width: 800px) {
  .entry-header {
    padding: 22px;
  }
  .entry-content {
    margin: 24px auto 40px;
    padding: 26px;
  }
  .invite-brand {
    padding: 22px;
  }
  .invite-title {
    left: 22px;
    right: 22px;
    bottom: 25px;
  }
  .invite-title h1 {
    font-size: 28px;
  }
  .invite-hero {
    min-height: 280px;
    height: 36dvh;
    max-height: 350px;
    background-position: 55% 62%;
  }
  .invite-form {
    padding: 26px 22px 34px;
  }
  .invite-avatar {
    font-size: 20px;
  }
  .invite-avatars {
    gap: 8px;
  }
  .app-shell {
    display: block;
    padding: 0 16px;
  }
  .sidebar {
    display: none;
  }
  .home {
    padding: 24px 0 calc(176px + env(safe-area-inset-bottom));
    max-width: 640px;
    margin: auto;
  }
  .home-header {
    gap: 8px;
  }
  .home-header h1 {
    font-size: 25px;
  }
  .header-actions {
    gap: 2px;
  }
  #view-profile .home-header {
    flex-wrap: wrap;
  }
  #view-profile .header-actions {
    margin-left: auto;
  }
  .mobile-avatar {
    display: grid;
    width: 32px;
    height: 32px;
  }
  .home-banner {
    height: 158px;
    padding: 23px;
  }
  .home-banner h2 {
    font-size: 23px;
  }
  .entry-card {
    padding: 18px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 40;
    left: max(14px, calc((100vw - 640px) / 2));
    right: max(14px, calc((100vw - 640px) / 2));
    bottom: calc(14px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    padding: 10px 8px;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 24px;
    background: rgb(255 255 255 / 88%);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 12px 34px -10px rgb(22 51 42 / 30%);
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 48px;
    width: 70px;
    height: 48px;
    padding: 5px 8px;
    font-size: 11px;
    background: transparent;
    border: 0;
    border-radius: 16px;
    color: var(--ink-3);
    transition:
      background 0.16s,
      color 0.16s;
  }
  .bottom-nav button.active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 700;
  }
  .mobile-compose {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 41;
    right: max(20px, calc((100vw - 628px) / 2));
    bottom: calc(100px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--grad-accent);
    color: var(--brand-deep);
    box-shadow: 0 14px 30px -8px rgb(232 96 63 / 60%);
    transition: transform 0.18s var(--ease-spring);
  }
  .mobile-compose svg {
    width: 25px;
    height: 25px;
  }
  .mobile-compose:active {
    transform: scale(0.92);
  }
  .toast {
    bottom: calc(172px + env(safe-area-inset-bottom));
  }
  dialog {
    padding: 22px;
  }
}
@media (max-width: 360px) {
  .app-shell {
    padding: 0 12px;
  }
  .entry-content {
    width: calc(100% - 24px);
    padding: 22px;
  }
  .entry-card {
    padding: 15px;
  }
  .entry-card header {
    gap: 8px;
  }
  .entry-meta {
    font-size: 11px;
  }
  .profile-card {
    padding: 18px;
  }
  .profile-stats strong {
    font-size: 20px;
  }
  .profile-actions {
    gap: 8px;
  }
  .profile-actions .secondary {
    padding: 10px 12px;
    font-size: 13px;
  }
  .inline-form {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Platform, city directory and native emoji */
.city-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 11px;
}
.city-switch select {
  width: auto;
  max-width: 110px;
  font-weight: 700;
  padding: 8px 10px;
}
.directory-shortcut {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 22px 0;
}
.directory-shortcut p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}
.directory-shortcut button {
  flex-shrink: 0;
}
.directory-search {
  display: flex;
  gap: 10px;
  margin: 22px 0 14px;
}
.directory-search input {
  min-width: 0;
  flex: 1;
}
.directory-search select {
  width: auto;
  max-width: 45%;
}
.directory-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.public-venue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line, #e0e8df);
}
.public-venue > div:first-child {
  min-width: 0;
}
.public-venue h3 {
  font-size: 16px;
  margin: 0;
  overflow-wrap: anywhere;
}
.public-venue p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.venue-price {
  text-align: right;
  font-size: 14px;
  flex-shrink: 0;
  max-width: 140px;
}
.venue-price small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.venue-price button {
  font-size: 12px;
}
.directory-rail {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 10px 0 !important;
}
.directory-rail > section {
  border-bottom: 1px solid var(--line, #e0e8df);
  padding: 0 0 25px;
  margin: 0 0 25px;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rail-heading small {
  font-size: 11px;
  color: var(--muted);
}
.directory-rail h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.rail-venue {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line, #e0e8df);
  background: none;
  padding: 16px 0;
  text-align: left;
}
.rail-venue strong {
  font-size: 14px;
  display: block;
}
.rail-venue small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.directory-rail details {
  font-size: 12px;
  color: var(--muted);
}
.directory-rail details img {
  width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 12px;
}
.directory-club {
  border-top: 1px solid var(--line, #e0e8df);
  padding: 25px 0;
}
.directory-club h3 {
  margin: 0;
  font-size: 19px;
}
.club-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.club-identity img {
  object-fit: contain;
  border-radius: 14px;
  background: white;
  flex-shrink: 0;
}
.club-identity p {
  margin: 5px 0 0;
  font-size: 12px;
}
.club-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.club-banner {
  margin: 18px 0;
}
.club-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 12px;
}
.origin-club {
  margin: 22px 0 30px;
}
.origin-club-card {
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--green, #246c52) 18%, white);
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--green, #246c52) 8%, white), #fffaf2);
}
.origin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green, #246c52) 12%, white);
  color: var(--green, #246c52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.origin-club-card .club-identity h2 {
  margin: 0;
  font-size: 22px;
}
.origin-club-card > p {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.city-club-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 8px;
}
.city-club-heading h2 {
  margin: 0;
  font-size: 20px;
}
.city-club-heading span {
  color: var(--muted);
  font-size: 12px;
}
.club-directory-empty {
  padding: 24px 0;
  border-top: 1px solid var(--line, #e0e8df);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.venue-facts {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px 12px;
  margin: 24px 0;
  font-size: 14px;
}
.venue-facts dt {
  color: var(--muted);
}
.venue-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.platform-user {
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #e0e8df);
}
.platform-user small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.platform-user p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.emoji-picker {
  border: 1px solid var(--line, #e0e8df);
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
}
.emoji-picker summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  flex-wrap: wrap;
}
.emoji-picker summary .muted {
  font-size: 11px;
  margin-left: auto;
}
.emoji-preview {
  font-size: 30px;
}
.emoji-controls {
  display: flex;
  gap: 8px;
  margin: 14px 0 10px;
}
.emoji-controls input {
  min-width: 0;
  flex: 1;
  padding: 10px;
  font-size: 12px;
}
.emoji-controls select {
  width: auto;
  max-width: 45%;
  padding: 8px;
  font-size: 12px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 4px;
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.emoji-option {
  border: 0;
  background: transparent;
  min-height: 42px;
  font:
    27px/1.25 'Apple Color Emoji',
    'Segoe UI Emoji',
    'Noto Color Emoji',
    sans-serif;
  border-radius: 9px;
  cursor: pointer;
}
.emoji-option:hover,
.emoji-option:focus-visible {
  background: #e2eee3;
}
.emoji-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.member-avatar {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
.comment-emoji {
  margin: 10px 0;
  grid-column: 1/-1;
}
.comment-emoji summary {
  font-size: 13px;
}
.comment-section #commentForm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.comment-section #commentForm textarea,
.comment-section #commentForm details {
  width: 100%;
}
.invite-rows {
  margin-top: 20px;
}
#newInvitation {
  margin: 18px 0;
}
#newInvitation label {
  display: block;
  margin-bottom: 8px;
}
#newInvitation .secondary {
  margin-top: 10px;
}
@media (max-width: 800px) {
  .city-switch {
    margin: 10px 0;
  }
  .directory-shortcut {
    margin: 17px 0;
  }
  .directory-search {
    gap: 8px;
  }
  .public-venue {
    gap: 10px;
    padding: 20px 0;
  }
  .public-venue h3 {
    font-size: 15px;
  }
  .venue-price {
    font-size: 12px;
    max-width: 110px;
  }
  .venue-facts {
    grid-template-columns: 70px minmax(0, 1fr);
    font-size: 13px;
  }
  .profile-actions {
    flex-wrap: wrap;
  }
  .club-actions > .secondary {
    max-width: 100%;
  }
  .origin-club-card {
    padding: 18px;
    border-radius: 18px;
  }
  .origin-club-card .club-identity {
    align-items: flex-start;
  }
  .origin-club-card .club-identity h2 {
    font-size: 19px;
  }
  .city-club-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .directory-search input {
    padding: 12px;
    font-size: 13px;
  }
  .directory-search select {
    font-size: 13px;
    padding: 8px;
  }
  .emoji-controls {
    flex-wrap: wrap;
  }
  .emoji-controls select {
    max-width: 100%;
  }
  .sidebar nav {
    gap: 2px;
  }
  .emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  }
  .emoji-option {
    font-size: 25px;
  }
  .comment-section #commentForm {
    display: flex;
  }
  .bottom-nav {
    gap: 2px;
  }
}

/* 游客只读首页（A2）：与会员版共用卡片与排版，但不含侧栏、底部导航、发布入口与私有数据 */
.guest-shell {
  max-width: 1360px;
  margin: auto;
  padding: 0 24px 56px;
  min-height: 100dvh;
}
.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 26px 0 10px;
}
.guest-actions {
  display: flex;
  flex: none;
  gap: 8px;
}
.guest-actions .primary,
.guest-actions .secondary {
  min-width: 74px;
}
.guest-main {
  max-width: 620px;
  margin: 0 auto;
}
.guest-hero {
  padding: 8px 0 6px;
}
.guest-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(23px, 5vw, 32px);
  line-height: 1.2;
}
.guest-lead {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.guest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.guest-scope-label {
  color: var(--ink-3);
  font-size: 13px;
}
.guest-footnote {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}
.login-prompt {
  margin-left: auto;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 800px) {
  .guest-shell {
    padding: 0 16px 44px;
  }
  .guest-header {
    padding: 16px 0 6px;
  }
  .guest-actions .primary,
  .guest-actions .secondary {
    padding-inline: 16px;
  }
}

/* 登录页「挥拍 · 暖场」：Canvas 在内容之下，暖纸底与金/珊瑚橙环境光。 */
.auth-page {
  position: relative;
  min-height: 100dvh;
}
.court-bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.court-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.court-bg-glow {
  position: fixed;
  z-index: 0;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}
.court-bg-glow-gold {
  left: 0;
  top: 0;
  opacity: 0.55;
  background: radial-gradient(circle, rgb(242 184 61 / 30%), transparent 62%);
}
.court-bg-glow-coral {
  right: 0;
  bottom: 0;
  opacity: 0.5;
  background: radial-gradient(circle, rgb(223 100 75 / 26%), transparent 62%);
}
.auth-page .entry-header,
.auth-page .auth-main {
  position: relative;
  z-index: 1;
}
.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  width: calc(100% - 48px);
  max-width: 1060px;
  margin: 24px auto 56px;
}
.auth-slogan .eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid #e7e2d6;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 14px -6px rgb(36 61 52 / 14%);
}
.auth-slogan h2 {
  margin: 26px 0 0;
  color: #243d34;
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.auth-slogan h2 span {
  color: #df644b;
}
.auth-slogan > p:not(.eyebrow) {
  max-width: 38ch;
  margin-top: 22px;
  color: #6b7f73;
  font-size: 15px;
  line-height: 1.95;
}
.auth-slogan small {
  display: block;
  margin-top: 30px;
  color: rgb(107 127 115 / 75%);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.auth-page .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px 34px 30px;
  border: 1px solid #e7e2d6;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(36 61 52 / 5%),
    0 24px 60px -24px rgb(36 61 52 / 28%);
  animation: none;
  transform-style: preserve-3d;
}
.auth-page .entry-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #205440, #df644b);
}
.auth-page .auth-tabs {
  padding: 4px;
  border-radius: 999px;
  background: #e9efe2;
}
.auth-page .auth-tabs button {
  border-radius: 999px;
}
.auth-page .stacked-form input {
  min-height: 50px;
  border-color: #d4cfc0;
  border-radius: 10px;
  background: #fff;
}
.auth-page .stacked-form input:focus {
  border-color: #df644b;
  box-shadow: 0 0 0 4px rgb(223 100 75 / 14%);
}
.auth-page [data-auth-submit] {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  background: linear-gradient(135deg, #df644b, #f2a03d);
  box-shadow: 0 12px 26px -8px rgb(223 100 75 / 55%);
}
.auth-page [data-auth-submit]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80px;
  width: 60px;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 45%), transparent);
  animation: auth-submit-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes auth-submit-shine {
  0%,
  55% {
    left: -80px;
  }
  85%,
  100% {
    left: 110%;
  }
}
@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 460px;
    margin-top: 6px;
  }
  .auth-slogan h2 {
    margin-top: 16px;
    font-size: clamp(32px, 8vw, 46px);
  }
  .auth-slogan > p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 14px;
  }
  .auth-slogan small {
    display: none;
  }
}
@media (max-width: 480px) {
  .auth-page .entry-header {
    padding: 18px 20px;
  }
  .auth-main {
    width: calc(100% - 32px);
    gap: 20px;
    margin-bottom: 32px;
  }
  .auth-slogan .eyebrow {
    font-size: 11px;
  }
  .auth-slogan h2 {
    font-size: 32px;
  }
  .auth-slogan > p:not(.eyebrow) {
    display: none;
  }
  .auth-page .entry-content {
    padding: 28px 24px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page [data-auth-submit]::after {
    animation: none;
  }
  .court-bg-glow {
    transform: none !important;
  }
}

/* 手机端的城市切换：侧栏在 ≤800px 隐藏，改放在「找球馆」页内 */
.directory-city {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.directory-city select {
  flex: 1;
  min-width: 0;
  max-width: 220px;
  padding: 8px 10px;
  font-weight: 700;
}
@media (max-width: 800px) {
  .directory-city {
    display: flex;
  }
}

/* 现场分场入口：游客页脚上方的轻量链接，不加载工具脚本 */
.guest-tool-link {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}
.guest-tool-link .gear-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 460px;
  padding: 10px;
  color: #233e34;
  background: #f8f4ec;
  border: 1px solid #deded1;
  border-radius: 6px;
  text-decoration: none;
}
.gear-promo img {
  width: 100px;
  height: 82px;
  object-fit: cover;
  border-radius: 4px;
}
.gear-promo > span {
  display: grid;
  gap: 4px;
}
.gear-promo small {
  color: #996048;
  font-size: 12px;
}
.gear-promo strong {
  font-size: 16px;
}
.gear-promo span span {
  color: #617266;
  font-size: 12px;
}
.gear-promo b {
  color: #a34529;
  font-size: 12px;
}
.guest-tool-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
