:root {
  --bg: #f5f5f5;
  --bg-deep: #eef2f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --surface-strong: #f3f5f9;
  --line: rgba(24, 33, 54, 0.08);
  --line-strong: rgba(24, 33, 54, 0.14);
  --text: #162033;
  --text-2: #5b667a;
  --text-3: #8b96aa;
  --blue: #0f4c75;
  --blue-2: #3282b8;
  --cyan: #5bc0f8;
  --gold: #d4af37;
  --gold-2: #ffd77a;
  --gold-soft: #f8eed7;
  --danger: #e94560;
  --danger-2: #ff7a48;
  --success: #1abc9c;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 69, 96, 0.06), transparent 22%),
    linear-gradient(180deg, #f7f8fb 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font);
}

body {
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  outline: 0;
}

img {
  display: block;
}

#app {
  min-height: 100vh;
}

.web-shell {
  min-height: 100vh;
}

.webbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(24, 33, 54, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.webbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.brand-mark.sm {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-subline {
  font-size: 12px;
  color: var(--text-3);
}

.webnav {
  display: flex;
  gap: 6px;
  margin-right: auto;
  /* 窄屏横向滚动时不显示滚动条（导航只有 5 项，滑动即可） */
  scrollbar-width: none;
}

.webnav::-webkit-scrollbar {
  display: none;
}

.webnav-item {
  /* 窄屏下 .webnav 靠 overflow-x:auto 横向滚动；不锁 flex-shrink 的话
     导航项会被 flex 压扁成两行（「天梯排/行」），根本滚不起来。 */
  flex: 0 0 auto;
  white-space: nowrap;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.webnav-item:hover {
  background: rgba(15, 76, 117, 0.08);
  color: var(--blue);
}

.webnav-item.active {
  background: linear-gradient(135deg, rgba(15, 76, 117, 0.12), rgba(50, 130, 184, 0.08));
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(50, 130, 184, 0.12);
}

.webbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.env-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243,245,249,0.98), rgba(236,240,246,0.98));
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(24, 33, 54, 0.06);
}

.webuser {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.webuser-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.web-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}

.app-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card,
.panel,
.login-card,
.sheet,
.info-card,
.overview-card {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card,
.panel,
.info-card,
.overview-card {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 247, 252, 0.985));
  border: 1px solid rgba(24, 33, 54, 0.06);
  box-shadow:
    0 24px 54px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-card {
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(212, 175, 55, 0.18), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(233, 69, 96, 0.14), transparent 26%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 55%, #0f1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(11, 18, 32, 0.22);
}

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

.hero-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

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

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 215, 122, 0.92);
  margin-bottom: 4px;
}

.hero-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.hero-subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-badge,
.chip,
.honor-chip,
.soft-chip {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.honor-chip {
  background: linear-gradient(135deg, rgba(255, 247, 227, 0.96), rgba(248, 233, 191, 0.92));
  color: #8b6115;
  box-shadow: 0 10px 18px rgba(212, 175, 55, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.54);
}

/* 排行 / 我的主页的 hero 另有更大字号的覆盖，这里是通用底稿 */
.hero-stat-value {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.panel-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 4px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.data-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.data-card.clickable {
  cursor: pointer;
}

.data-card.clickable:hover {
  border-color: #cbdbec;
  transform: translateY(-1px);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rank-pill {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f8fd;
  color: var(--text-2);
  font-weight: 800;
  font-size: 13px;
}

.rank-pill.rank-1 {
  background: linear-gradient(135deg, #ffe7a6, #d9a441);
  color: #fff;
}

.rank-pill.rank-2 {
  background: linear-gradient(135deg, #dde8f6, #a9b8ca);
  color: #fff;
}

.rank-pill.rank-3 {
  background: linear-gradient(135deg, #f8d4bc, #cd7f32);
  color: #fff;
}

.card-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.card-user-meta {
  min-width: 0;
  flex: 1;
}

.card-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub,
.card-meta-row,
.card-desc,
.card-note {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}

.card-sub {
  margin-top: 3px;
}

.card-main-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}

.card-main-value.gold {
  color: var(--gold);
}

.card-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: #f1f6fb;
  color: var(--text-2);
}

.chip.primary {
  background: #ecf5ff;
  color: var(--blue);
}

.chip.gold {
  background: var(--gold-soft);
  color: #9b6c1e;
}

.chip.success {
  background: #ebfff5;
  color: var(--success);
}

.chip.danger {
  background: #fff1f3;
  color: var(--danger);
}

.card-cover {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef3f9;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text-3);
  font-weight: 800;
}

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

.match-card-web,
.tournament-card-web {
  position: relative;
  overflow: hidden;
}

.match-card-web::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #1890ff, #17b6d6 56%, #e94560);
}

.match-card-web {
  padding-top: 18px;
}

.match-avatar-wrap .avatar {
  box-shadow:
    0 0 0 2px rgba(24, 144, 255, 0.12),
    0 6px 14px rgba(24, 144, 255, 0.16);
}

.match-distance-chip {
  background: rgba(138, 147, 163, 0.08);
  color: #8a93a3;
  box-shadow: none;
}

.match-card-meta .card-meta-row {
  color: #4f5c70;
}

.tournament-card-web {
  border-radius: 22px;
}

.tournament-card-web.tournament-signing {
  box-shadow: 0 10px 26px rgba(54, 118, 84, 0.08), inset 0 1px 0 rgba(255,255,255,0.92);
}

.tournament-card-web.tournament-ready {
  box-shadow: 0 10px 26px rgba(41, 128, 185, 0.1), inset 0 1px 0 rgba(255,255,255,0.92);
}

.tournament-card-web.tournament-running {
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.12), inset 0 1px 0 rgba(255,255,255,0.92);
}

.tournament-status-chip {
  font-weight: 800;
}

.tournament-count-chip {
  color: #7a4595;
  background: rgba(108, 52, 131, 0.08);
}

.tournament-cover {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.tournament-card-name {
  font-size: 16px;
  line-height: 1.32;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tournament-card-meta .card-meta-row {
  color: #566477;
}

.profile-detail-hero {
  align-items: flex-start;
}

.profile-detail-badges {
  margin-top: 10px;
}

.coach-detail-hero {
  align-items: flex-start;
}

.coach-detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coach-detail-row {
  margin-top: 10px;
}

.coach-stats-web {
  margin-top: 16px;
}

.profile-region-chip {
  background: #f3f6fa;
  color: #5d6675;
  box-shadow: none;
}

.profile-honor-web {
  display: inline-flex;
  align-items: center;
}

.profile-stats-web {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 18px;
  padding: 18px 12px;
  border-radius: 18px;
  background: #f7f8fb;
  border: 1px solid rgba(24, 33, 54, 0.05);
}

.profile-stat-web {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-stat-web:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e8ebf1;
}

.profile-stat-web-value {
  font-size: 34px;
  font-weight: 700;
  color: #182136;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat-web.primary .profile-stat-web-value {
  color: #e94560;
  font-size: 40px;
  font-weight: 800;
}

.profile-stat-web-label {
  font-size: 12px;
  font-weight: 700;
  color: #7b8794;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-group {
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.info-group-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.info-row span {
  color: var(--text-3);
}

.info-row strong {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.empty,
.loading,
.banner-error {
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}

.empty,
.loading {
  background: #f8fbff;
  color: var(--text-3);
  border: 1px dashed var(--line-strong);
}

.banner-error {
  background: #fff2f3;
  color: #cf4253;
  border: 1px solid #ffd6da;
}

.btn,
.btn-sm,
.btn-inline {
  height: 36px;
  padding: 0 14px;
  background: linear-gradient(180deg, #f4f7fb 0%, #ecf1f7 100%);
  color: var(--text-2);
  border: 1px solid rgba(24, 33, 54, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.btn-inline.primary,
.btn-sm.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(50, 130, 184, 0.18);
}

.btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 480px);
  gap: 22px;
  align-items: stretch;
}

.login-hero {
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(212, 175, 55, 0.22), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(233, 69, 96, 0.16), transparent 24%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 56%, #0f3460 100%);
  color: #fff;
  box-shadow: 0 28px 48px rgba(17, 33, 58, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
}

.login-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-hero-title {
  margin: 22px 0 10px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 900;
}

.login-hero-copy {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.login-hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.login-point {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-point-value {
  font-size: 22px;
  font-weight: 800;
}

.login-point-label {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.login-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(223, 233, 243, 0.86);
  display: flex;
  flex-direction: column;
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.login-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.login-subtitle {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.qr-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: grid;
  place-items: center;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-3);
  line-height: 1.7;
  font-size: 14px;
}

.qr-status {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}

.login-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.login-actions .btn,
.login-actions .btn-sm {
  flex: 1;
}

.login-hint {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

.dev-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff8eb;
  border: 1px solid #f3dfb1;
}

.dev-title {
  font-size: 13px;
  font-weight: 800;
  color: #a06e1b;
  margin-bottom: 10px;
}

.dev-row {
  display: flex;
  gap: 10px;
}

.dev-row input,
.env-row input,
.env-row select,
.ff input,
.ff select,
.ff textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 0 12px;
}

.dev-row input,
.env-row input,
.env-row select,
.ff input,
.ff select {
  height: 42px;
}

.env-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.env-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
}

.avatar {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f6a46, #173b21);
  color: #fff;
}

.avatar-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 0;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ff {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 发布约战：球房名称 + 合作球房快速选择 */
.cm-venue-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cm-venue-inputrow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.cm-venue-inputrow input {
  flex: 1 1 auto;
  min-width: 0;
}
.cm-venue-pick-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.venue-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.06);
  border: 1px solid rgba(127, 127, 127, 0.12);
}
/* display:flex 会盖掉 hidden 属性，需显式让 hidden 生效——未展开时不显示空框 */
.venue-picker[hidden] { display: none; }
.venue-picker-hint {
  font-size: 12px;
  color: var(--text-muted, #7b8494);
  padding: 6px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.venue-pick-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(127, 127, 127, 0.14);
  background: var(--card-bg, #fff);
  cursor: pointer;
}
.venue-pick-item:hover {
  border-color: var(--page-accent, #2393ff);
}
.venue-pick-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.venue-pick-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong, #182136);
}
.venue-pick-dist {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--page-accent, #2393ff);
}
.venue-pick-addr {
  font-size: 12px;
  color: var(--text-muted, #7b8494);
}

.ff > span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 700;
}

.ff-static {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid rgba(24, 33, 54, 0.06);
  color: #243246;
  font-size: 14px;
  font-weight: 700;
}

.ff textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
}

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

.ff-hint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
}

#detail-host:empty {
  display: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 12, 20, 0.54);
  backdrop-filter: blur(10px);
}

.sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 91;
  width: min(700px, calc(100vw - 24px));
  max-height: min(86vh, 920px);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 247, 252, 0.985));
  box-shadow:
    0 24px 72px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sheet-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 16px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom: 1px solid rgba(24, 33, 54, 0.08);
}

.sheet-headcopy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sheet-kicker {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #a16f1a;
  letter-spacing: 0;
}

.sheet-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.sheet-close {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(24, 33, 54, 0.08);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(20, 34, 57, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.sheet-close:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
  box-shadow: 0 10px 18px rgba(20, 34, 57, 0.12);
  transform: translateY(-1px);
}

.sheet-close:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(20, 34, 57, 0.08);
}

.sheet-close-icon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.sheet-close-icon::before,
.sheet-close-icon::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: #6b7b8d;
}

.sheet-close-icon::before {
  transform: rotate(45deg);
}

.sheet-close-icon::after {
  transform: rotate(-45deg);
}

.sheet-body {
  padding: 20px 22px 22px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.92) 0%, #ffffff 28%);
}

.sheet-foot {
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(24, 33, 54, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #f8fbff 100%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sheet-foot .btn {
  flex: 1;
  min-width: 160px;
}

.detail-cover {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #eef3f9;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tour-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 15px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 123, 84, 0.12), transparent 34%),
    linear-gradient(135deg, #fffaf6 0%, #ffffff 52%, #f8fbff 100%);
  border: 1px solid rgba(233, 69, 96, 0.1);
  box-shadow: 0 12px 26px rgba(20, 34, 57, 0.06);
}
.tour-group-copy { min-width: 0; }
.tour-group-copy span { display: inline-flex; margin-bottom: 5px; color: #e94560; font-size: 12px; font-weight: 800; }
.tour-group-copy strong { display: block; color: var(--text); font-size: 16px; line-height: 1.25; }
.tour-group-copy p { margin: 6px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.tour-group-qr { flex: 0 0 auto; width: 96px; height: 96px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid rgba(24, 33, 54, 0.08); box-shadow: 0 10px 20px rgba(20, 34, 57, 0.08); }
.tour-group-qr img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
@media (max-width: 520px) { .tour-group-card { align-items: stretch; flex-direction: column; } .tour-group-qr { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 220px; } }

.detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(24, 33, 54, 0.08);
}

.detail-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.detail-subtitle {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.detail-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(230, 237, 245, 0.88);
}

.detail-vs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.detail-vs-name {
  font-size: 14px;
  font-weight: 800;
}

.detail-vs-score {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  white-space: nowrap;
}

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

.detail-item {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
  border: 1px solid rgba(225, 235, 244, 0.96);
  box-shadow: 0 8px 18px rgba(20, 34, 57, 0.04);
}

.detail-item-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 700;
}

.detail-item-value {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
  word-break: break-word;
  color: var(--text);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-cell {
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.summary-cell-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.summary-cell-value {
  font-size: 22px;
  font-weight: 800;
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(18, 30, 49, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.toast.success {
  background: rgba(24, 180, 108, 0.94);
}

.toast.error {
  background: rgba(239, 90, 103, 0.95);
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .login-hero {
    min-height: auto;
  }
}

@media (max-width: 840px) {
  .hero-stats,
  .summary-strip,
  .card-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .webbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }

  .webnav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .web-main {
    padding: 20px 16px 28px;
  }

  .env-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-top,
  .detail-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-stats,
  .summary-strip,
  .card-grid,
  .detail-grid,
  .ff-row,
  .login-hero-points {
    grid-template-columns: 1fr;
  }

  .env-row {
    grid-template-columns: 1fr;
  }

  .env-label {
    margin-bottom: -2px;
  }

  .dev-row,
  .login-actions,
  .webbar-right {
    flex-wrap: wrap;
  }

  .webuser-name {
    max-width: 88px;
  }

  .sheet {
    width: calc(100vw - 12px);
    max-height: 92vh;
    border-radius: 22px;
  }

  .sheet-body,
  .sheet-foot,
  .sheet-bar,
  .hero-card,
  .panel,
  .info-card,
  .overview-card,
  .login-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}




.rank-card-web {
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(22, 33, 62, 0.05);
}

.rank-card-web .card-topline {
  margin-bottom: 10px;
}

.rank-card-web .rank-pill {
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 14px;
}

.rank-card-web .card-user {
  gap: 14px;
}

.rank-card-web .avatar {
  box-shadow: 0 0 0 2px rgba(22, 33, 62, 0.05);
}

.rank-card-web .card-name {
  font-size: 15px;
  color: #182136;
}

.rank-card-web .card-sub {
  margin-top: 4px;
  color: #7b8794;
}

.rank-card-web .card-main-value {
  font-size: 28px;
  line-height: 1;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  color: var(--danger);
}

.mine-side-stack {
  gap: 14px;
}

.mine-summary-card,
.mine-side-card {
  overflow: hidden;
}

.mine-summary-card .info-head,
.mine-side-card .info-head {
  padding-bottom: 2px;
}

.mine-summary-group {
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}

.mine-summary-list {
  gap: 10px;
}

.mine-summary-list .info-row {
  align-items: center;
  padding: 2px 0;
}

.mine-summary-list .info-row span {
  font-weight: 700;
  color: #7b8794;
}

.mine-summary-list .info-row strong {
  font-weight: 800;
  color: #182136;
}

.mine-side-card .data-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.mine-side-card .card-topline {
  margin-bottom: 8px;
}

.mine-side-card .card-name {
  font-size: 14px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mine-side-card .card-sub {
  margin-top: 5px;
  color: #6f7d8f;
}

.detail-grid {
  gap: 10px;
}

.detail-item {
  min-height: 92px;
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
  border: 1px solid rgba(24, 33, 54, 0.06);
  box-shadow: 0 8px 18px rgba(20, 34, 57, 0.035);
}

.detail-item-label {
  margin-bottom: 9px;
  font-size: 12px;
  color: #8a93a3;
  font-weight: 800;
}

.detail-item-value {
  font-size: 14px;
  line-height: 1.55;
  color: #182136;
  font-weight: 700;
  word-break: break-word;
}

.sheet-foot {
  padding: 12px 22px 18px;
  gap: 12px;
}

.sheet-foot .btn {
  min-width: 0;
  height: 46px;
  border-radius: 14px;
}

.sheet-foot .btn.primary {
  background: linear-gradient(135deg, #e94560, #ff7b54);
  box-shadow: 0 12px 22px rgba(233, 69, 96, 0.22);
}

.sheet-foot .btn.danger {
  background: linear-gradient(180deg, #fff5f6 0%, #ffedef 100%);
  color: #df5060;
  border: 1px solid rgba(245, 200, 206, 0.95);
}

@media (max-width: 860px) {
  .rank-card-web .card-main-value {
    font-size: 24px;
  }

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

  .detail-item {
    min-height: 0;
  }
}

.match-card-web,
.tournament-card-web {
  padding: 14px 14px 13px;
}

.match-card-web {
  padding-top: 17px;
}

.match-card-web .card-topline,
.tournament-card-web .card-topline {
  margin-bottom: 9px;
  gap: 8px;
}

.match-card-web .card-user,
.tournament-card-web .card-user {
  align-items: center;
  gap: 10px;
}

.match-card-web .card-user-meta,
.tournament-card-web .card-user-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.match-card-web .card-name,
.tournament-card-web .card-name {
  font-size: 14px;
  line-height: 1.28;
}

.match-card-web .card-sub,
.tournament-card-web .card-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
}

.match-card-web .card-section,
.tournament-card-web .card-section {
  margin-top: 9px;
  gap: 4px;
}

.match-card-web .card-meta-row,
.tournament-card-web .card-meta-row {
  font-size: 11px;
  line-height: 1.45;
}

.match-card-web .chip,
.tournament-card-web .chip,
.match-card-web .soft-chip,
.tournament-card-web .soft-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.match-avatar-wrap .avatar {
  width: 50px !important;
  height: 50px !important;
}

.tournament-cover {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.tournament-card-name {
  font-size: 15px;
  line-height: 1.28;
}

.hero-profile {
  align-items: center;
}

.hero-profile > .avatar,
.hero-profile .avatar {
  flex-shrink: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badges {
  align-items: center;
  gap: 7px;
}

.hero-badges .hero-badge,
.hero-badges .soft-chip,
.hero-badges .honor-chip {
  min-height: 30px;
}

.profile-detail-hero {
  gap: 16px;
  padding: 16px 17px;
}

.profile-detail-hero > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-detail-hero .detail-title {
  line-height: 1.2;
}

.profile-detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-stats-web {
  margin: 16px 0 16px;
  padding: 16px 10px;
}

.profile-stat-web {
  justify-content: center;
}

.profile-stat-web-value {
  line-height: 1;
}

.mine-summary-card .info-meta,
.mine-side-card .info-meta {
  font-weight: 700;
}

.mine-side-card .card-list {
  gap: 10px;
}

.mine-side-card .data-card:hover,
.rank-card-web:hover,
.match-card-web:hover,
.tournament-card-web:hover {
  transform: translateY(-1px);
}

.sheet-body {
  padding: 18px 20px 20px;
}

.detail-hero,
.detail-vs {
  margin-bottom: 14px;
}

.detail-grid {
  gap: 9px;
}

.detail-item {
  min-height: 84px;
  padding: 13px 14px;
}

.detail-item-label {
  margin-bottom: 7px;
}

.detail-item-value {
  font-size: 13px;
  line-height: 1.48;
}

.sheet-foot {
  align-items: stretch;
}

.sheet-foot .btn {
  font-size: 14px;
  font-weight: 800;
}

@media (min-width: 861px) {
  .card-grid {
    gap: 10px;
  }
}

.rank-side-stack {
  gap: 0;
}

.rank-side-card {
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(247,249,252,0.98) 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.rank-side-group {
  padding: 12px;
  background: rgba(243, 246, 250, 0.7);
}

.rank-side-list {
  gap: 10px;
}

.rank-side-list .info-row {
  align-items: center;
}

.rank-side-list .info-row span {
  font-size: 12px;
  font-weight: 700;
  color: #8a93a3;
}

.rank-side-list .info-row strong {
  font-size: 13px;
  font-weight: 800;
  color: #182136;
}

@media (min-width: 1180px) {
  .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(240px, 0.7fr);
    gap: 14px;
    align-items: start;
  }

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

  .match-card-web,
  .tournament-card-web {
    min-height: 178px;
  }
}

@media (min-width: 1440px) {
  .web-main {
    max-width: 1320px;
  }

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

.hero-top {
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-actions {
  flex-shrink: 0;
}

.summary-strip {
  margin-top: 2px;
}

.summary-cell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.summary-cell::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
}

.summary-cell-label {
  color: rgba(255,255,255,0.56);
  font-weight: 700;
}

.summary-cell-value {
  color: #ffffff;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-head > div:first-child {
  min-width: 0;
}

.panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #182136;
}

.panel-desc {
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
}

.panel-head > div:first-child {
  max-width: min(100%, 360px);
}

.data-card.clickable {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.data-card.clickable:hover {
  box-shadow: 0 14px 28px rgba(20, 34, 57, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.data-card.clickable:active {
  transform: translateY(0) scale(0.992);
  box-shadow: 0 8px 18px rgba(20, 34, 57, 0.06);
}

.empty,
.loading,
.banner-error {
  position: relative;
  overflow: hidden;
}

.empty::before,
.loading::before,
.banner-error::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
}

.empty {
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
  color: #8290a3;
  border: 1px dashed rgba(24, 33, 54, 0.12);
}

.loading {
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
  color: #607086;
  border: 1px dashed rgba(24, 33, 54, 0.14);
}

.banner-error {
  background: linear-gradient(180deg, #fff5f6 0%, #ffedef 100%);
  color: #cf4253;
  border: 1px solid rgba(255, 214, 218, 0.95);
}

.sheet {
  border: 1px solid rgba(24, 33, 54, 0.06);
}

.sheet-close {
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.sheet-close:hover {
  border-color: rgba(50, 130, 184, 0.18);
}

.sheet-foot .btn {
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.sheet-foot .btn:hover {
  transform: translateY(-1px);
}

.sheet-foot .btn:active {
  transform: translateY(0) scale(0.992);
}

.sheet-foot .btn:not(.primary):not(.danger):hover {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
  box-shadow: 0 10px 18px rgba(20, 34, 57, 0.08);
}

@media (min-width: 1180px) {
  .hero-top {
    gap: 22px;
  }

  .hero-actions {
    align-self: flex-start;
    padding-top: 2px;
  }
}

.rank-page-web {
  gap: 14px;
}

.rank-hero-web {
  padding: 22px 24px 20px;
}

.rank-hero-top {
  align-items: flex-start;
  margin-bottom: 14px;
}

.rank-hero-copy {
  max-width: none;
}

.rank-hero-actions {
  align-items: center;
  gap: 10px;
}

.rank-hero-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 228, 148, 0.92);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.rank-profile-stat {
  align-items: stretch;
  text-align: left;
}

.rank-profile-stat-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-profile-stat-main .avatar {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.rank-profile-stat-copy {
  min-width: 0;
}

.rank-profile-stat-copy .hero-stat-label {
  text-align: left;
}

.rank-profile-stat-name {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list-more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.rank-list-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 360px);
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(239, 244, 250, 0.98));
  color: #66758a;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

.rank-list-more-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(160, 175, 196, 0), rgba(160, 175, 196, 0.65), rgba(160, 175, 196, 0));
}

.rank-list-more-text {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.rank-list-more-btn:hover {
  color: #506176;
  background: linear-gradient(180deg, rgba(250, 252, 255, 1), rgba(243, 247, 252, 1));
}

.rank-hero-stats .hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rank-hero-stats .hero-stat-label {
  width: 100%;
  text-align: center;
}

.rank-hero-stats .hero-stat-value {
  width: 100%;
  margin-top: 6px;
  text-align: center;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
}

.rank-hero-stats {
  grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.rank-honor-inline {
  font-size: 17px;
  line-height: 1.18;
  white-space: normal;
}

.rank-podium-web {
  position: relative;
  overflow: hidden;
  padding: 24px 18px 18px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 52% at 50% 0%, rgba(255, 220, 140, 0.22), transparent 62%),
    radial-gradient(ellipse 62% 46% at 100% 80%, rgba(233, 69, 96, 0.12), transparent 66%),
    linear-gradient(135deg, #111827 0%, #16213e 50%, #0f1a2e 100%);
  border: 1px solid rgba(255, 220, 140, 0.16);
  box-shadow:
    0 16px 34px rgba(8, 19, 39, 0.18),
    inset 0 1px 0 rgba(255, 220, 140, 0.22);
}

.rank-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.rank-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.rank-podium-item.first {
  transform: translateY(-12px);
}

.rank-podium-crown {
  min-height: 24px;
  margin-bottom: 8px;
  color: rgba(255, 228, 148, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rank-podium-core {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px 12px;
}

.rank-podium-avatar {
  margin-bottom: 10px;
}

.rank-podium-avatar .avatar {
  box-shadow:
    0 0 0 4px rgba(17, 24, 39, 1),
    0 0 0 6px rgba(255,255,255,0.10),
    0 10px 24px rgba(0,0,0,0.22);
}

.rank-podium-avatar.first .avatar,
.rank-podium-item.first .avatar {
  box-shadow:
    0 0 0 4px rgba(17, 24, 39, 1),
    0 0 0 6px rgba(255, 220, 140, 0.55),
    0 12px 28px rgba(212, 175, 55, 0.30);
}

.rank-podium-avatar.second .avatar,
.rank-podium-item.second .avatar {
  box-shadow:
    0 0 0 4px rgba(17, 24, 39, 1),
    0 0 0 6px rgba(210, 220, 235, 0.42),
    0 10px 22px rgba(135, 149, 171, 0.20);
}

.rank-podium-avatar.third .avatar,
.rank-podium-item.third .avatar {
  box-shadow:
    0 0 0 4px rgba(17, 24, 39, 1),
    0 0 0 6px rgba(232, 168, 124, 0.42),
    0 10px 22px rgba(181, 101, 29, 0.22);
}

.rank-podium-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.rank-podium-tier {
  margin-top: 4px;
  color: rgba(255, 228, 148, 0.70);
  font-size: 12px;
  font-weight: 700;
}

.rank-podium-power {
  margin-top: 6px;
  color: #ffe494;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.24);
}

.rank-podium-stand {
  width: calc(100% - 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 18px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.rank-podium-stand.first {
  min-height: 100px;
  background: linear-gradient(180deg, #f6de8d 0%, #d9a93a 100%);
}

.rank-podium-stand.second {
  min-height: 84px;
  background: linear-gradient(180deg, #dbe5f2 0%, #8b98ae 100%);
}

.rank-podium-stand.third {
  min-height: 76px;
  background: linear-gradient(180deg, #efc69f 0%, #bc7b49 100%);
}

.rank-podium-position {
  color: rgba(17, 24, 39, 0.92);
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rank-list-panel {
  position: relative;
  padding: 18px 18px 16px;
}

.rank-list-panel .rank-podium-web,
.rank-list-panel .rank-list-web,
.rank-list-panel .rank-list-more {
  transition: opacity 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.rank-list-panel.is-refreshing .rank-podium-web,
.rank-list-panel.is-refreshing .rank-list-web,
.rank-list-panel.is-refreshing .rank-list-more {
  opacity: 0.58;
}

.rank-list-refresh {
  position: absolute;
  top: 17px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f6fb;
  color: #53657a;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  animation: rank-refresh-in 160ms cubic-bezier(0.25, 1, 0.5, 1) both;
}

.rank-list-refresh-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(83, 101, 122, 0.22);
  border-top-color: #e94560;
  border-radius: 50%;
  animation: rank-refresh-spin 700ms linear infinite;
}

@keyframes rank-refresh-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rank-refresh-spin {
  to { transform: rotate(360deg); }
}

.rank-list-web {
  gap: 8px;
}

.rank-card-web {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  overflow: hidden;
}

.rank-card-web::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.72), rgba(24, 144, 255, 0.50), transparent);
}

.rank-row-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f2f6fb;
  color: #5f6b7a;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.rank-row-body {
  min-width: 0;
}

.rank-tier-chip {
  height: 24px;
  padding: 0 10px;
  background: rgba(24, 144, 255, 0.10);
  color: #1677ff;
  box-shadow: none;
}

.rank-inline-honor {
  max-width: 18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-honor-badge {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  vertical-align: middle;
  align-self: center;
  flex: 0 0 auto;
}

.ranking-honor-badge.compact {
  width: 30px;
  height: 30px;
}

.ranking-honor-badge__image {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
}

.ranking-honor-badge--district .ranking-honor-badge__image {
  filter: drop-shadow(0 1.5px 3.5px rgba(146, 85, 48, 0.16));
}

.ranking-honor-badge--city .ranking-honor-badge__image {
  filter: drop-shadow(0 1.5px 3.5px rgba(102, 120, 148, 0.16));
}

.ranking-honor-badge--province .ranking-honor-badge__image {
  filter: drop-shadow(0 1.5px 4px rgba(191, 142, 24, 0.18));
}

.ranking-honor-badge--national .ranking-honor-badge__image {
  filter: drop-shadow(0 2px 4.5px rgba(118, 84, 176, 0.18));
}

.ranking-honor-badge__rank {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  min-width: 14px;
  max-width: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  color: #fffdf5;
  text-shadow:
    0 1px 0 rgba(112, 64, 0, 0.52),
    0 0 3px rgba(73, 38, 0, 0.26);
  z-index: 2;
  pointer-events: none;
}

.ranking-honor-badge__rank.is-hidden {
  display: none;
}

.rank-inline-honor {
  max-width: 18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-honor-inline .ranking-honor-badge {
  transform: translateY(1px);
}

.rank-card-web .card-user {
  gap: 10px;
  align-items: center;
}

.rank-card-web .avatar {
  box-shadow: 0 0 0 2px rgba(22, 33, 62, 0.05);
  flex-shrink: 0;
}

.rank-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rank-name-row .card-name {
  min-width: 0;
  flex: 0 1 auto;
}

.rank-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
}

.rank-subtle {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #7b8794;
  line-height: 1.35;
}

.rank-score-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: 8px;
}

.rank-card-web .card-main-value {
  font-size: 24px;
  line-height: 1;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  color: var(--danger);
}

@media (max-width: 860px) {
  .rank-podium-grid {
    gap: 8px;
  }

  .rank-podium-power {
    font-size: 22px;
  }

  .rank-podium-stand.first {
    min-height: 88px;
  }

  .rank-podium-stand.second {
    min-height: 74px;
  }

  .rank-podium-stand.third {
    min-height: 68px;
  }

  .rank-podium-position {
    font-size: 19px;
  }

  .rank-card-web {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
  }

  .rank-row-num {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .rank-card-web .card-main-value {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .rank-hero-top,
  .rank-self-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-hero-actions {
    width: 100%;
    justify-content: space-between;
  }

  .rank-podium-grid {
    grid-template-columns: 1fr;
  }

  /* 单列时 DOM 顺序是 亚-冠-季（为了三列时冠军居中），得把冠军提回首位 */
  .rank-podium-item.first {
    transform: none;
    order: -1;
  }

  .rank-card-web {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rank-row-num {
    width: 44px;
    height: 44px;
  }
}


.rank-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.rank-main-seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-main-seg-item,
.rank-region-chip {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  transition: color 160ms cubic-bezier(0.25, 1, 0.5, 1), background-color 160ms cubic-bezier(0.25, 1, 0.5, 1), transform 120ms cubic-bezier(0.25, 1, 0.5, 1);
}

.rank-main-seg-item {
  padding: 10px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.rank-main-seg-item.active {
  background: #e94560;
  color: #fff;
}

.rank-region-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.rank-region-chip {
  min-width: 58px;
  min-height: 34px;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.rank-region-chip.active {
  background: rgba(233, 69, 96, 0.9);
  color: #fff;
}

.rank-region-chip.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rank-region-chip:active,
.rank-main-seg-item:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .rank-list-panel .rank-podium-web,
  .rank-list-panel .rank-list-web,
  .rank-list-panel .rank-list-more,
  .rank-main-seg-item,
  .rank-region-chip {
    transition: none;
  }

  .rank-list-refresh,
  .rank-list-refresh-spinner {
    animation: none;
  }
}

.team-logo-web {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #1890ff, #17b6d6);
  box-shadow:
    0 0 0 2px rgba(22, 33, 62, 0.05),
    0 0 0 4px rgba(24, 144, 255, 0.16);
  flex-shrink: 0;
}

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

.team-logo-initial {
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.team-rank-card-web .card-main-value {
  color: #182136;
}

.team-rank-chip {
  color: #6c3483;
  background: rgba(108, 52, 131, 0.1);
}

@media (max-width: 640px) {
  .rank-filter-row {
    align-items: flex-start;
  }

  .rank-region-chips {
    justify-content: flex-start;
  }
}

/* ---- panel header separation ---- */
.panel {
  padding: 18px 18px 16px;
  overflow: hidden;
}

.panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 33, 54, 0.06);
}

.panel-head > div:first-child {
  min-width: 0;
  max-width: min(100%, 360px);
}

.panel-desc {
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
}

.panel .card-grid,
.panel .card-list {
  position: relative;
  z-index: 0;
}



/* ---- match page sync with mini-program ---- */
.match-page-web {
  gap: 12px;
}

.match-hero-web {
  padding: 18px 20px 16px;
}

.match-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.match-header-left {
  min-width: 0;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.match-header-top .hero-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.match-header-count {
  font-size: 13px;
  color: rgba(255,255,255,0.54);
  font-weight: 700;
}

.match-mine-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 700;
}

/* 约战大厅头部按钮组：发布约战（主操作）+ 我的约战 */
.match-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.match-publish-btn {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  border-color: transparent;
  color: #fff;
}

.match-location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.match-location-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.match-location-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(31, 122, 162, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.match-location-copy {
  min-width: 0;
}

.match-location-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.match-location-desc {
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.45;
}

.match-location-refresh {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(31, 122, 162, 0.28);
  border: 1px solid rgba(31, 122, 162, 0.36);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.match-refresh-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.match-distance-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.match-dist-tab {
  min-width: 0;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 700;
}

.match-dist-tab.active {
  background: rgba(31, 122, 162, 0.88);
  color: #fff;
}

.match-toolbar-panel {
  padding-top: 12px;
  padding-bottom: 12px;
}

.match-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.match-sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.match-sort-pill,
.match-filter-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f6fa;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.match-sort-pill.active,
.match-filter-chip.active,
.match-filter-toggle.active {
  background: linear-gradient(135deg, #e94560, #ff7b54);
  color: #fff;
}

.match-nearby-badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(31, 122, 162, 0.08);
  color: #1f7aa2;
  font-size: 12px;
  font-weight: 700;
}

.match-filter-toggle {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: #f5f5f5;
  color: #666;
  font-size: 13px;
  font-weight: 700;
}

.match-filter-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 33, 54, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-filter-label {
  width: 44px;
  flex: 0 0 auto;
  color: #8a93a3;
  font-size: 12px;
  font-weight: 700;
}

.match-filter-chips,
.match-filter-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.match-filter-input {
  width: 90px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f5f6f8;
  padding: 0 12px;
}

.match-filter-sep {
  color: #b0b7c3;
}

.match-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.match-list-panel .panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.match-request-list-web {
  gap: 12px;
}

.match-request-card-web {
  padding: 16px 16px 14px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(20, 34, 57, 0.05);
}

.match-publisher-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f4f8;
}

.match-avatar-shell {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
}

.match-avatar-shell .avatar {
  position: relative;
  z-index: 1;
}

.match-avatar-honor {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 3;
  pointer-events: none;
}

.match-publisher-info {
  min-width: 0;
  flex: 1;
}

.match-publisher-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.match-publisher-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.match-type-tag,
.match-balance-tag,
.match-tier-tag,
.match-distance-tag,
.match-side-btn,
.match-footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.match-type-tag.ranked {
  background: rgba(233, 69, 96, 0.10);
  color: #d93452;
}

.match-type-tag.casual {
  background: rgba(92, 200, 160, 0.12);
  color: #198c67;
}

.match-type-tag.chase {
  background: rgba(74, 111, 255, 0.12);
  color: #355bdc;
}

.match-balance-tag,
.match-tier-tag {
  background: #f3f6fa;
  color: #637188;
}

.match-power-text {
  color: #445167;
  font-size: 13px;
  font-weight: 700;
}

.match-publisher-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.match-distance-tag {
  background: rgba(138, 147, 163, 0.10);
  color: #7a8393;
}

.match-side-btn {
  border: 0;
  background: #f5f7fb;
  color: #617286;
}

.match-side-btn.nav,
.match-footer-chip.accept {
  background: linear-gradient(135deg, #e94560, #ff7b54);
  color: #fff;
}

.match-side-btn.match {
  background: rgba(26, 188, 156, 0.10);
  color: #149879;
}

.match-side-btn.unmatch {
  background: rgba(138, 147, 163, 0.10);
  color: #8a93a3;
}

.match-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.match-detail-cell {
  min-width: 0;
  padding: 11px 11px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
  border: 1px solid rgba(225, 235, 244, 0.96);
}

.match-detail-kicker {
  display: block;
  margin-bottom: 6px;
  color: #97a3b6;
  font-size: 11px;
  font-weight: 700;
}

.match-detail-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.match-date,
.match-time,
.match-detail-text {
  color: #213047;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.match-detail-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.match-remark-row {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #66758a;
  font-size: 12px;
  line-height: 1.55;
}

.match-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.match-publish-time {
  color: #98a3b5;
  font-size: 12px;
  font-weight: 700;
}

.match-footer-chip.mine {
  background: #eef3f9;
  color: #66758a;
}

.match-footer-chip.contact {
  background: rgba(31, 122, 162, 0.12);
  color: #1f7aa2;
}

@media (max-width: 980px) {
  .match-distance-tabs,
  .match-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .match-hero-web {
    padding: 18px 16px 16px;
  }

  .match-header-top,
  .match-publisher-row,
  .match-card-footer,
  .match-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* 定位卡保持横排：左侧定位信息 + 右侧「地图」与刷新钮。纵向堆叠会把圆形的
     刷新图标钮拉成一个整宽椭圆（.match-location-refresh 曾被设成 width:100%）。 */
  .match-location-card {
    gap: 10px;
  }

  .match-mine-btn,
  .match-filter-toggle {
    width: 100%;
  }

  /* 头部按钮组占满整行，两个按钮平分（覆盖上面的 width:100%，否则会各自撑满并溢出） */
  .match-header-actions {
    width: 100%;
  }
  .match-header-actions .match-mine-btn {
    width: auto;
    flex: 1 1 0;
  }

  .match-publisher-side {
    align-items: flex-start;
  }

  .match-distance-tabs,
  .match-detail-grid {
    grid-template-columns: 1fr;
  }
}
/* nearby location source */
.loc-source { font-weight: 700; opacity: .9; }

/* 地图选点弹窗 */
#map-host:empty { display: none; }
.map-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; }
.map-modal { position: fixed; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(720px, 94vw); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.map-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eef1f5; }
.map-modal-title { font-size: 16px; font-weight: 800; color: #182131; }
.map-modal-close { border: 0; background: none; font-size: 18px; color: #8d98a9; cursor: pointer; }
.map-modal-hint { padding: 10px 18px 0; font-size: 13px; color: #6f7d93; }
.map-canvas { position: relative; height: min(56vh, 460px); margin: 12px 18px; border-radius: 12px; overflow: hidden; background: #eef1f5; }
.map-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8d98a9; font-size: 14px; }
.map-modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 16px; }
/* 约战大厅定位卡：地图选点小按钮 */
.match-location-map { flex-shrink: 0; margin-right: 8px; padding: 0 12px; height: 34px; border-radius: 999px; border: 1px solid rgba(47,128,255,.28); background: rgba(47,128,255,.08); color: #2f6df0; font-size: 13px; font-weight: 700; cursor: pointer; }


.nearby-page-web,
.mine-page-web {
  gap: 18px;
}

.mine-hero-web {
  padding: 22px;
}

.mine-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mine-hero-copy {
  min-width: 0;
  flex: 1;
}

/* 我的主页：入口按钮组靠 hero 右上，不随左侧资料列拉伸 */
.mine-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.mine-shortcut-meta {
  color: #6f7d93;
  font-size: 13px;
  line-height: 1.5;
}

.mine-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mine-shortcut-card {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(223, 232, 242, 0.96);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.96));
}

.mine-shortcut-title {
  color: #8f9bad;
  font-size: 12px;
  font-weight: 700;
}

.mine-shortcut-value {
  margin-top: 8px;
  color: #1f2d42;
  font-size: 22px;
  font-weight: 900;
}

/* 附近球友概览条：沿用 hero-stats 的深色半透明格子，仅改为 3 列 */
.nearby-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.nearby-list-web {
  gap: 12px;
}

.nearby-card-web {
  padding: 16px 18px;
}

.nearby-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nearby-avatar-shell,
.mine-avatar-shell,
.mine-honor-badge {
  position: relative;
  flex: 0 0 auto;
}

.nearby-avatar-honor {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 3;
}

.nearby-card-copy {
  min-width: 0;
  flex: 1;
}

.nearby-name-row,
.nearby-tier-row,
.nearby-meta-row,
.nearby-coach-row,
.mine-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nearby-card-name {
  color: #1f2d42;
  font-size: 18px;
  font-weight: 800;
}

.nearby-coach-chip,
.nearby-coach-note-chip,
.nearby-coach-pill,
.nearby-distance-chip,
.nearby-side-btn,
.mine-hero-honor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.nearby-gender-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nearby-gender-male {
  background-color: #5ab4f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='15' r='4.5'/%3E%3Cpath d='M12 12 L19 5'/%3E%3Cpath d='M14 5 L19 5 L19 10'/%3E%3C/svg%3E");
}

.nearby-gender-female {
  background-color: #f57eb6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='4.5'/%3E%3Cline x1='12' y1='13' x2='12' y2='20'/%3E%3Cline x1='9' y1='17' x2='15' y2='17'/%3E%3C/svg%3E");
}

.nearby-coach-chip {
  background: rgba(26, 188, 156, 0.12);
  color: #18a487;
}

.nearby-coach-note-chip {
  max-width: 180px;
  min-width: 0;
  background: rgba(255, 209, 102, 0.18);
  color: #b87412;
  border: 1px solid rgba(215, 127, 31, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-tier-text,
.nearby-power-text,
.nearby-meta-row span,
.nearby-coach-venue,
.nearby-coach-price,
.mine-honor-text,
.mine-info-row strong {
  color: #445167;
  font-size: 13px;
  font-weight: 700;
}

.nearby-meta-row {
  margin-top: 6px;
  gap: 12px;
}

.nearby-meta-row span {
  color: #7c8798;
  font-size: 12px;
}

.nearby-coach-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.nearby-coach-pill {
  max-width: 220px;
  min-width: 0;
  border: 1px solid rgba(255, 171, 64, 0.18);
  background: rgba(255, 188, 92, 0.12);
  box-sizing: border-box;
}

.nearby-coach-pill-identity {
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.2) 0%, rgba(255, 168, 76, 0.16) 100%);
  border-color: rgba(255, 160, 67, 0.26);
}

.nearby-coach-pill-venue {
  background: rgba(255, 188, 92, 0.12);
}

.nearby-coach-pill-price {
  background: rgba(233, 69, 96, 0.08);
  border-color: rgba(233, 69, 96, 0.14);
}

.nearby-coach-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.nearby-coach-pill-identity .nearby-coach-pill-text,
.nearby-coach-venue {
  color: #7f5a19;
}

.nearby-coach-price {
  color: #d64057;
}

.nearby-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.nearby-distance-chip {
  color: #5f6d82;
  background: rgba(138, 147, 163, 0.1);
}

.nearby-side-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #e94560, #ff7b54);
  box-shadow: 0 12px 22px rgba(233, 69, 96, 0.16);
}

.mine-hero-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.mine-title-row .hero-title {
  margin: 0;
}

.mine-hero-honor {
  gap: 6px;
  padding: 4px 10px 4px 6px;
  background: linear-gradient(135deg, rgba(255, 241, 208, 0.92), rgba(255, 231, 176, 0.88));
  border: 1px solid rgba(235, 197, 101, 0.4);
  color: #8e6416;
}

.mine-hero-honor .ranking-honor-badge {
  width: 28px;
  height: 28px;
}

.mine-hero-honor-text {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mine-hero-stats {
  margin-top: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mine-profile-stat .rank-profile-stat-main .avatar {
  display: none;
}

.tier-badge-web {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--tier-bg, linear-gradient(135deg, #eef2f7, #d8e0ea));
  border: 1px solid var(--tier-border, rgba(130,145,164,.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(31, 45, 66, 0.12);
}

.tier-badge-web::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.26);
}

.tier-badge-web__text {
  position: relative;
  z-index: 1;
  color: var(--tier-color, #617187);
  font-weight: 900;
  line-height: 1;
}

.tier-badge-web--sm {
  width: 28px;
  height: 28px;
}

.tier-badge-web--sm .tier-badge-web__text {
  font-size: 14px;
}

.tier-badge-web--md {
  width: 34px;
  height: 34px;
}

.tier-badge-web--md .tier-badge-web__text {
  font-size: 16px;
}

.mine-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr);
  gap: 18px;
}

.mine-main-stack,
.mine-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mine-panel,
.mine-side-card,
.mine-summary-card,
.mine-identity-card {
  border-radius: 22px;
}

.mine-identity-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mine-honor-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,248,232,0.96), rgba(255,240,214,0.92));
  border: 1px solid rgba(238, 211, 143, 0.42);
}

.mine-honor-copy {
  min-width: 0;
}

.mine-honor-title {
  color: #5a4420;
  font-size: 15px;
  font-weight: 800;
}

.mine-honor-sub,
.mine-honor-empty,
.mine-info-row span {
  color: #7f8ca1;
  font-size: 12px;
}

.mine-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}

.mine-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mine-info-row strong {
  max-width: 62%;
  text-align: right;
}

.mine-bio-card .card-sub {
  color: #576579;
  line-height: 1.7;
}

.mine-shortcut-card.is-rank {
  background: linear-gradient(135deg, rgba(255,247,232,0.98), rgba(255,238,205,0.94));
}

.mine-shortcut-card.is-match {
  background: linear-gradient(135deg, rgba(255,243,245,0.98), rgba(255,231,235,0.94));
}

.mine-shortcut-card.is-tour {
  background: linear-gradient(135deg, rgba(240,247,255,0.98), rgba(228,240,255,0.94));
}

@media (max-width: 1080px) {
  .mine-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mine-hero-top,
  .nearby-card-main,
  .mine-hero-profile {
    flex-direction: column;
    align-items: stretch;
  }

  /* hero-top 已转为纵向堆叠，按钮组不再是「右侧一列」，右对齐会让换行后的
     按钮参差不齐 —— 改为左对齐 */
  .mine-hero-actions {
    justify-content: flex-start;
  }

  .nearby-summary-strip,
  .mine-shortcut-grid,
  .mine-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* 排行页 hero 的 5 格默认是 minmax(220px,1.25fr)+repeat(4,1fr)，窄屏挤到文字
     竖排换行。限定 .rank-page-web，避免误伤同样带 .rank-hero-stats 类的我的主页。 */
  .rank-page-web .rank-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* 「我的昵称」格带头像，比其余四格宽，单独占一行 */
  .rank-page-web .rank-hero-stats .rank-profile-stat {
    grid-column: 1 / -1;
  }

  .nearby-card-side {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nearby-summary-strip,
  .mine-shortcut-grid,
  .mine-hero-stats,
  .rank-page-web .rank-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* 侧栏卡片头部（账号摘要 / 我的赛事）：与 .panel-head / .panel-title 同一套视觉 */
.info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.info-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #182136;
}

.info-meta {
  flex: 0 0 auto;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}

.mine-identity-card .info-head {
  margin-bottom: 6px;
}

.mine-identity-card .mine-honor-panel {
  margin-bottom: 2px;
}

.mine-identity-card .mine-honor-empty {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 248, 252, 0.92);
}

.mine-info-row {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(247, 250, 253, 0.92);
  border: 1px solid rgba(230, 236, 244, 0.92);
}

.mine-info-row strong {
  max-width: 58%;
}


.mine-page-web .mine-hero-profile {
  align-items: center;
}

.mine-page-web .mine-hero-honor {
  align-self: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
}

.mine-page-web .mine-shortcut-grid {
  margin-top: 18px;
}

.mine-page-web .mine-content-grid {
  align-items: start;
}

.mine-page-web .mine-identity-body {
  gap: 12px;
}

.mine-page-web .mine-summary-list {
  gap: 10px;
}

.mine-page-web .mine-summary-row,
.mine-page-web .mine-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 250, 253, 0.94);
  border: 1px solid rgba(229, 236, 244, 0.94);
}

.mine-page-web .mine-summary-label,
.mine-page-web .mine-info-row span {
  flex: 0 0 auto;
  color: #7f8ca1;
  font-size: 12px;
  font-weight: 700;
}

.mine-page-web .mine-summary-honor {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mine-page-web .mine-summary-honor .ranking-honor-badge {
  width: 24px;
  height: 24px;
}

.mine-page-web .mine-summary-honor-text,
.mine-page-web .mine-info-row strong {
  min-width: 0;
  color: #445167;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.mine-page-web .mine-summary-honor-text {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mine-page-web .mine-summary-empty {
  color: #97a3b5;
  font-size: 12px;
  font-weight: 700;
}

.mine-page-web .mine-info-row strong {
  max-width: 60%;
}


/* ---- page theme sync with mini-program ---- */
:root {
  --page-accent: #2f6df0;
  --page-accent-2: #39b5ff;
  --page-accent-rgb: 47, 109, 240;
  --page-hero-start: #132946;
  --page-hero-end: #10345f;
  --page-hero-glow: rgba(57, 181, 255, 0.18);
  --page-hero-ember: rgba(233, 69, 96, 0.14);
  --page-soft: rgba(47, 109, 240, 0.08);
  --page-soft-strong: rgba(47, 109, 240, 0.14);
  --page-pill-bg: rgba(47, 109, 240, 0.12);
  --page-pill-text: #2457bf;
  --page-tint: rgba(47, 109, 240, 0.06);
  --page-tint-2: rgba(57, 181, 255, 0.05);
  --page-shadow: rgba(47, 109, 240, 0.16);
}

.web-shell,
.web-main {
  --accent: var(--page-accent);
  --accent-2: var(--page-accent-2);
}

.web-shell.theme-rank,
.web-main.theme-rank {
  --page-accent: #d7a53e;
  --page-accent-2: #8d63ff;
  --page-accent-rgb: 215, 165, 62;
  --page-hero-start: #1f2334;
  --page-hero-end: #27213f;
  --page-hero-glow: rgba(215, 165, 62, 0.18);
  --page-hero-ember: rgba(141, 99, 255, 0.12);
  --page-soft: rgba(215, 165, 62, 0.08);
  --page-soft-strong: rgba(215, 165, 62, 0.14);
  --page-pill-bg: rgba(215, 165, 62, 0.13);
  --page-pill-text: #8f6518;
  --page-tint: rgba(215, 165, 62, 0.06);
  --page-tint-2: rgba(141, 99, 255, 0.05);
  --page-shadow: rgba(215, 165, 62, 0.16);
}

.web-shell.theme-match,
.web-main.theme-match,
.sheet--themed.theme-match {
  --page-accent: #2393ff;
  --page-accent-2: #22d3ee;
  --page-accent-rgb: 35, 147, 255;
  --page-hero-start: #0f2745;
  --page-hero-end: #103d66;
  --page-hero-glow: rgba(35, 147, 255, 0.18);
  --page-hero-ember: rgba(34, 211, 238, 0.14);
  --page-soft: rgba(35, 147, 255, 0.08);
  --page-soft-strong: rgba(35, 147, 255, 0.14);
  --page-pill-bg: rgba(35, 147, 255, 0.12);
  --page-pill-text: #1a68c4;
  --page-tint: rgba(35, 147, 255, 0.06);
  --page-tint-2: rgba(34, 211, 238, 0.05);
  --page-shadow: rgba(35, 147, 255, 0.18);
}

.web-shell.theme-tournament,
.web-main.theme-tournament,
.sheet--themed.theme-tournament {
  --page-accent: #7c4dff;
  --page-accent-2: #c084fc;
  --page-accent-rgb: 124, 77, 255;
  --page-hero-start: #25173f;
  --page-hero-end: #3e2268;
  --page-hero-glow: rgba(124, 77, 255, 0.2);
  --page-hero-ember: rgba(192, 132, 252, 0.14);
  --page-soft: rgba(124, 77, 255, 0.08);
  --page-soft-strong: rgba(124, 77, 255, 0.14);
  --page-pill-bg: rgba(124, 77, 255, 0.13);
  --page-pill-text: #6840d8;
  --page-tint: rgba(124, 77, 255, 0.06);
  --page-tint-2: rgba(192, 132, 252, 0.05);
  --page-shadow: rgba(124, 77, 255, 0.18);
}

.web-shell.theme-nearby,
.web-main.theme-nearby,
.sheet--themed.theme-nearby {
  --page-accent: #e94560;
  --page-accent-2: #ff7b54;
  --page-accent-rgb: 233, 69, 96;
  --page-hero-start: #7e2436;
  --page-hero-end: #e94560;
  --page-hero-glow: rgba(255, 209, 102, 0.22);
  --page-hero-ember: rgba(255, 123, 84, 0.16);
  --page-soft: rgba(233, 69, 96, 0.08);
  --page-soft-strong: rgba(233, 69, 96, 0.14);
  --page-pill-bg: rgba(233, 69, 96, 0.12);
  --page-pill-text: #c93752;
  --page-tint: rgba(233, 69, 96, 0.06);
  --page-tint-2: rgba(255, 123, 84, 0.05);
  --page-shadow: rgba(233, 69, 96, 0.18);
}

.web-shell.theme-mine,
.web-main.theme-mine {
  --page-accent: #2f6df0;
  --page-accent-2: #5cc8ff;
  --page-accent-rgb: 47, 109, 240;
  --page-hero-start: #162844;
  --page-hero-end: #1b4f7d;
  --page-hero-glow: rgba(47, 109, 240, 0.18);
  --page-hero-ember: rgba(92, 200, 255, 0.12);
  --page-soft: rgba(47, 109, 240, 0.08);
  --page-soft-strong: rgba(47, 109, 240, 0.14);
  --page-pill-bg: rgba(47, 109, 240, 0.12);
  --page-pill-text: #2658bf;
  --page-tint: rgba(47, 109, 240, 0.06);
  --page-tint-2: rgba(92, 200, 255, 0.05);
  --page-shadow: rgba(47, 109, 240, 0.18);
}

.sheet--themed.theme-pk {
  --page-accent: #e84a5f;
  --page-accent-2: #ff8a3d;
  --page-accent-rgb: 232, 74, 95;
  --page-hero-start: #3f1820;
  --page-hero-end: #6f241e;
  --page-hero-glow: rgba(232, 74, 95, 0.18);
  --page-ember: rgba(255, 138, 61, 0.12);
  --page-soft: rgba(232, 74, 95, 0.08);
  --page-soft-strong: rgba(232, 74, 95, 0.14);
  --page-pill-bg: rgba(232, 74, 95, 0.12);
  --page-pill-text: #cf3d53;
  --page-tint: rgba(232, 74, 95, 0.06);
  --page-tint-2: rgba(255, 138, 61, 0.05);
  --page-shadow: rgba(232, 74, 95, 0.18);
}

.web-shell.theme-rank,
.web-shell.theme-match,
.web-shell.theme-tournament,
.web-shell.theme-nearby,
.web-shell.theme-mine {
  background:
    radial-gradient(circle at top left, var(--page-tint), transparent 30%),
    radial-gradient(circle at top right, var(--page-tint-2), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.web-shell.theme-rank .webnav-item:hover,
.web-shell.theme-match .webnav-item:hover,
.web-shell.theme-tournament .webnav-item:hover,
.web-shell.theme-nearby .webnav-item:hover,
.web-shell.theme-mine .webnav-item:hover {
  background: var(--page-soft);
  color: var(--page-pill-text);
}

.web-shell.theme-rank .webnav-item.active,
.web-shell.theme-match .webnav-item.active,
.web-shell.theme-tournament .webnav-item.active,
.web-shell.theme-nearby .webnav-item.active,
.web-shell.theme-mine .webnav-item.active {
  background: linear-gradient(135deg, var(--page-soft-strong), var(--page-soft));
  color: var(--page-pill-text);
  box-shadow: inset 0 0 0 1px rgba(var(--page-accent-rgb), 0.14);
}

.web-main.theme-rank .hero-card,
.web-main.theme-match .hero-card,
.web-main.theme-tournament .hero-card,
.web-main.theme-nearby .hero-card,
.web-main.theme-mine .hero-card,
.sheet--themed .sheet-bar {
  background:
    radial-gradient(circle at 18% 18%, var(--page-hero-glow), transparent 28%),
    radial-gradient(circle at 82% 78%, var(--page-hero-ember, var(--page-ember, rgba(255,255,255,0.12))), transparent 26%),
    linear-gradient(135deg, var(--page-hero-start) 0%, var(--page-hero-end) 100%);
}

.web-main.theme-rank .panel,
.web-main.theme-rank .overview-card,
.web-main.theme-match .panel,
.web-main.theme-match .overview-card,
.web-main.theme-tournament .panel,
.web-main.theme-tournament .overview-card,
.web-main.theme-nearby .panel,
.web-main.theme-nearby .overview-card,
.web-main.theme-mine .panel,
.web-main.theme-mine .overview-card,
.sheet--themed {
  box-shadow:
    0 24px 54px rgba(15, 23, 42, 0.08),
    0 8px 20px rgba(var(--page-accent-rgb), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.web-main.theme-rank .panel-head,
.web-main.theme-match .panel-head,
.web-main.theme-tournament .panel-head,
.web-main.theme-nearby .panel-head,
.web-main.theme-mine .panel-head {
  border-bottom-color: rgba(var(--page-accent-rgb), 0.08);
}

.web-main.theme-rank .chip.primary,
.web-main.theme-match .chip.primary,
.web-main.theme-tournament .chip.primary,
.web-main.theme-nearby .chip.primary,
.web-main.theme-mine .chip.primary,
.web-main.theme-rank .soft-chip,
.web-main.theme-match .soft-chip,
.web-main.theme-tournament .soft-chip,
.web-main.theme-nearby .soft-chip,
.web-main.theme-mine .soft-chip {
  background: var(--page-pill-bg);
  color: var(--page-pill-text);
}

.web-main.theme-rank .btn.primary,
.web-main.theme-rank .btn-sm.primary,
.web-main.theme-rank .btn-inline.primary,
.web-main.theme-match .btn.primary,
.web-main.theme-match .btn-sm.primary,
.web-main.theme-match .btn-inline.primary,
.web-main.theme-tournament .btn.primary,
.web-main.theme-tournament .btn-sm.primary,
.web-main.theme-tournament .btn-inline.primary,
.web-main.theme-nearby .btn.primary,
.web-main.theme-nearby .btn-sm.primary,
.web-main.theme-nearby .btn-inline.primary,
.web-main.theme-mine .btn.primary,
.web-main.theme-mine .btn-sm.primary,
.web-main.theme-mine .btn-inline.primary,
.sheet--themed .btn.primary,
.sheet--themed .btn-sm.primary,
.sheet--themed .btn-inline.primary {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 20px rgba(var(--page-accent-rgb), 0.2);
}

.web-main.theme-match .match-mine-btn,
.web-main.theme-nearby .match-mine-btn,
.web-main.theme-mine .match-mine-btn,
.web-main.theme-tournament .match-mine-btn,
.web-main.theme-rank .match-mine-btn {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

/* 赛事页也复用了这张定位卡，一并纳入主题着色，否则「地图」钮会留着一颗
   与紫色主题不搭的默认蓝。 */
.web-main.theme-match .match-location-icon,
.web-main.theme-nearby .match-location-icon,
.web-main.theme-tournament .match-location-icon {
  background: rgba(var(--page-accent-rgb), 0.22);
}

.web-main.theme-match .match-location-refresh,
.web-main.theme-nearby .match-location-refresh,
.web-main.theme-tournament .match-location-refresh,
.web-main.theme-match .match-location-map,
.web-main.theme-nearby .match-location-map,
.web-main.theme-tournament .match-location-map,
.web-main.theme-match .match-dist-tab.active,
.web-main.theme-nearby .match-dist-tab.active {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  border-color: transparent;
  color: #fff;
}

.web-main.theme-match .match-filter-toggle.active,
.web-main.theme-match .match-sort-pill.active,
.web-main.theme-match .match-filter-chip.active,
.web-main.theme-nearby .match-filter-toggle.active,
.web-main.theme-nearby .match-sort-pill.active,
.web-main.theme-nearby .match-filter-chip.active {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  color: #fff;
}

.web-main.theme-match .match-nearby-badge,
.web-main.theme-nearby .match-nearby-badge,
.web-main.theme-nearby .nearby-gender-chip,
.web-main.theme-nearby .nearby-distance-chip,
.web-main.theme-nearby .match-distance-chip,
.web-main.theme-match .match-distance-tag,
.web-main.theme-nearby .match-distance-tag {
  background: var(--page-pill-bg);
  color: var(--page-pill-text);
}

.web-main.theme-match .match-side-btn.nav,
.web-main.theme-match .match-footer-chip.accept,
.web-main.theme-nearby .nearby-side-btn {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  box-shadow: 0 12px 22px rgba(var(--page-accent-rgb), 0.16);
}

.web-main.theme-tournament .summary-cell-value,
.web-main.theme-tournament .card-main-value,
.web-main.theme-rank .rank-podium-power,
.web-main.theme-rank .card-main-value,
.web-main.theme-mine .mine-shortcut-value {
  color: var(--page-pill-text);
}

.web-main.theme-tournament .summary-strip {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}

.web-main.theme-tournament .summary-cell:not(:last-child)::after {
  background: rgba(255,255,255,0.12);
}

.web-main.theme-tournament .tournament-count-chip {
  background: var(--page-pill-bg);
  color: var(--page-pill-text);
}

.web-main.theme-rank .rank-main-seg-item.active,
.web-main.theme-rank .rank-region-chip.active {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  color: #fff;
  border-color: transparent;
}

.web-main.theme-rank .rank-region-chip,
.web-main.theme-rank .rank-main-seg-item {
  box-shadow: none;
}

.web-main.theme-mine .mine-hero-honor,
.web-main.theme-mine .mine-shortcut-card.is-rank {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(220, 236, 255, 0.94));
  border-color: rgba(var(--page-accent-rgb), 0.18);
}

.sheet--themed .sheet-kicker {
  color: rgba(255,255,255,0.72);
}

.sheet--themed .sheet-title {
  color: #fff;
}

.sheet--themed .sheet-close {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
  box-shadow: none;
}

.sheet--themed .sheet-close:hover {
  background: rgba(255,255,255,0.18);
}

.sheet--themed .sheet-foot .btn:not(.primary):not(.danger) {
  background: var(--page-soft);
  color: var(--page-pill-text);
  border-color: rgba(var(--page-accent-rgb), 0.12);
}

.sheet--themed .detail-title,
.sheet--themed .detail-vs-score,
.sheet--themed .profile-stat-web.primary .profile-stat-web-value {
  color: var(--page-pill-text);
}


/* ---- product page refinements ---- */
.web-main.theme-rank .rank-hero-web,
.web-main.theme-match .match-hero-web,
.web-main.theme-nearby .match-hero-web,
.web-main.theme-mine .mine-hero-web,
.web-main.theme-tournament .tournament-hero-web {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.web-main.theme-rank .rank-hero-stats,
.web-main.theme-nearby .nearby-summary-strip,
.web-main.theme-mine .mine-hero-stats,
.web-main.theme-tournament .summary-strip {
  border-radius: 18px;
  overflow: hidden;
}

.web-main.theme-rank .rank-hero-stats .hero-stat,
.web-main.theme-nearby .nearby-summary-strip .hero-stat,
.web-main.theme-mine .mine-hero-stats .hero-stat,
.web-main.theme-tournament .summary-cell {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.web-main.theme-rank .rank-hero-stats .hero-stat-value,
.web-main.theme-nearby .nearby-summary-strip .hero-stat-value,
.web-main.theme-mine .mine-hero-stats .hero-stat-value,
.web-main.theme-tournament .summary-cell-value {
  color: #fff;
}

.web-main.theme-rank .rank-hero-stats .hero-stat-label,
.web-main.theme-nearby .nearby-summary-strip .hero-stat-label,
.web-main.theme-mine .mine-hero-stats .hero-stat-label,
.web-main.theme-tournament .summary-cell-label {
  color: rgba(255,255,255,0.62);
}

/* 本主题下三名各自成卡片。容器要留出边距：冠军有 translateY(-12px)，
   顶部不留白就会被 .rank-podium-web 的 overflow:hidden 裁掉冠冕文字。 */
.web-main.theme-rank .rank-podium-web {
  padding: 24px 14px 14px;
  overflow: visible;
}

/* 领奖台现在是「排行列表」面板内的头部区块（前三名 → 第 4 名起紧随其后），
   需要与下方列表拉开间距，否则底座会直接贴住第 4 名那一行 */
.rank-list-panel .rank-podium-web {
  margin-bottom: 14px;
}

.web-main.theme-rank .rank-podium-item {
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 223, 139, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(24, 31, 47, 0.94), rgba(15, 21, 35, 0.98));
  border: 1px solid rgba(255, 223, 139, 0.14);
  box-shadow:
    0 18px 36px rgba(8, 14, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 卡片有了自己的圆角，冠冕与底座也得跟着收进圆角内 */
.web-main.theme-rank .rank-podium-crown {
  margin-top: 12px;
}

.web-main.theme-rank .rank-podium-stand {
  margin-bottom: 12px;
}

.web-main.theme-rank .rank-podium-item.first {
  border-color: rgba(255, 229, 158, 0.24);
  box-shadow:
    0 22px 42px rgba(215, 165, 62, 0.22),
    inset 0 1px 0 rgba(255, 245, 214, 0.12);
}

.web-main.theme-rank .rank-podium-item.second {
  border-color: rgba(220, 230, 242, 0.16);
}

.web-main.theme-rank .rank-podium-item.third {
  border-color: rgba(238, 193, 155, 0.16);
}

.web-main.theme-rank .rank-podium-name {
  color: #fff7de;
}

.web-main.theme-rank .rank-podium-tier {
  color: rgba(255, 229, 158, 0.74);
}

.web-main.theme-rank .rank-card-web {
  border: 1px solid rgba(222, 229, 239, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(249,250,253,0.98));
}

.web-main.theme-rank .rank-row-num {
  background: linear-gradient(180deg, rgba(244, 235, 210, 0.96), rgba(232, 216, 177, 0.9));
  color: #8d6a20;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.web-main.theme-rank .rank-name-row {
  align-items: center;
}

.web-main.theme-rank .rank-info-row {
  margin-top: 6px;
  gap: 8px;
}

.web-main.theme-rank .rank-subtle {
  color: #7d8799;
  font-size: 12px;
  font-weight: 700;
}

.web-main.theme-rank .rank-list-more-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,252,0.98));
  border: 1px solid rgba(225, 231, 239, 0.96);
  color: #8f6518;
}

.web-main.theme-match .match-toolbar-panel,
.web-main.theme-nearby .nearby-list-panel,
.web-main.theme-match .match-list-panel,
.web-main.theme-tournament .panel,
.web-main.theme-mine .mine-panel,
.web-main.theme-mine .mine-side-card,
.web-main.theme-mine .mine-identity-card {
  border: 1px solid rgba(224, 231, 241, 0.88);
}

.web-main.theme-match .match-request-card-web {
  border: 1px solid rgba(222, 231, 241, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,251,255,0.98));
  box-shadow: 0 14px 28px rgba(22, 70, 118, 0.06);
}

.web-main.theme-match .match-request-card-web::before {
  height: 3px;
  background: linear-gradient(90deg, var(--page-accent), var(--page-accent-2));
}

.web-main.theme-match .match-publisher-row {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.web-main.theme-match .match-detail-cell {
  background: linear-gradient(180deg, #fbfdff 0%, #f5faff 100%);
  border-color: rgba(220, 232, 244, 0.96);
}

.web-main.theme-match .match-remark-row {
  background: rgba(35, 147, 255, 0.05);
  color: #5d6d85;
}

.web-main.theme-nearby .nearby-card-web {
  border: 1px solid rgba(233, 69, 96, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,249,249,0.98));
  box-shadow: 0 14px 28px rgba(126, 36, 54, 0.08);
}

.web-main.theme-nearby .nearby-card-name {
  font-size: 17px;
}

.web-main.theme-nearby .nearby-card-web.is-coach {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,251,246,0.98));
  border-color: rgba(255, 183, 77, 0.3);
  box-shadow: 0 16px 30px rgba(126, 36, 54, 0.09);
}

.web-main.theme-nearby .nearby-meta-row {
  margin-top: 4px;
}

.web-main.theme-nearby .nearby-coach-row {
  margin-top: 6px;
}

.web-main.theme-nearby .nearby-side-btn {
  min-width: 76px;
}

.web-main.theme-mine .mine-shortcut-card,
.web-main.theme-mine .mine-summary-row,
.web-main.theme-mine .mine-info-row,
.web-main.theme-mine .mine-honor-panel {
  box-shadow: 0 10px 20px rgba(26, 68, 116, 0.05);
}

.web-main.theme-mine .mine-shortcut-card {
  border-color: rgba(220, 231, 244, 0.94);
}

.web-main.theme-mine .mine-shortcut-value {
  font-size: 24px;
}

.web-main.theme-mine .mine-identity-card,
.web-main.theme-mine .mine-side-card,
.web-main.theme-mine .mine-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,250,253,0.98));
}

.web-main.theme-tournament .tournament-card-web {
  border: 1px solid rgba(225, 229, 243, 0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(249,248,255,0.98));
  box-shadow: 0 14px 30px rgba(71, 43, 145, 0.06);
}

.web-main.theme-tournament .tournament-status-chip {
  background: rgba(124, 77, 255, 0.12);
  color: #6d42df;
}

.web-main.theme-tournament .tournament-card-meta .card-meta-row {
  color: #5c6278;
}

.web-main.theme-tournament .tournament-card-name {
  font-size: 15px;
}

.sheet--themed .detail-hero,
.sheet--themed .detail-vs,
.sheet--themed .detail-item {
  border-color: rgba(var(--page-accent-rgb), 0.1);
}

.sheet--themed .detail-hero {
  background:
    radial-gradient(circle at top left, rgba(var(--page-accent-rgb), 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* ── PK / 约战记录：与小程序保持同一套状态语汇与配色 ──────────────────
   取自 miniprogram pages/pk/history/history.scss 与
   pages/match-request/mine/mine.scss（rpx 按 750rpx=375px 折算为 px）。 */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.status-open {
  color: #1677ff;
  background: rgba(24, 144, 255, 0.1);
}

.status-waiting,
.status-active {
  color: #0d8d79;
  background: rgba(26, 188, 156, 0.12);
}

.status-conflict {
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
}

.status-done {
  color: #6b7280;
  background: #eef2f7;
}

.status-cancelled,
.status-expired {
  color: #8a93a3;
  background: #eef2f7;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.result-tag.win {
  background: #52c41a;
}

.result-tag.lose {
  background: #e94560;
}

.match-type-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.match-type-tag.tag-ranked {
  background: linear-gradient(135deg, #e94560, #ff7b54);
  color: #fff;
  box-shadow: 0 2px 6px rgba(233, 69, 96, 0.16);
}

.match-type-tag.tag-casual {
  background: rgba(26, 188, 156, 0.12);
  color: #0d8d79;
}

/* ── PK 记录卡 ── */
.pk-record {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pk-record-top,
.pk-record-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pk-record-bottom {
  padding-top: 12px;
  border-top: 1px solid rgba(230, 236, 244, 0.92);
}

.pk-record-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pk-record-copy {
  min-width: 0;
}

.pk-opponent-name {
  color: #1f2d42;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pk-record-venue {
  margin-top: 2px;
  color: #8a93a3;
  font-size: 12px;
}

.pk-record-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pk-record-date {
  color: #8a93a3;
  font-size: 12px;
}

.pk-score-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pk-score-text {
  color: #1f2d42;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.pk-score-text.is-pending {
  color: #97a3b5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.pk-delta {
  flex: 0 0 auto;
  font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.pk-delta.delta-up {
  color: #52c41a;
}

.pk-delta.delta-down {
  color: #e94560;
}

/* ── 约战记录卡 ── */
.match-record {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-record-date {
  color: #8a93a3;
  font-size: 12px;
}

.match-record-name {
  color: #1f2d42;
  font-size: 15px;
  font-weight: 800;
}

.match-record-sub {
  color: #8a93a3;
  font-size: 12px;
}

/* 已过期：整卡压暗，与小程序 card-expired 一致 */
.match-record.is-expired {
  opacity: 0.66;
}

/* ── 赛事广场：与小程序 pages/tournament/list 同步 ──────────────────── */

/* hero 内的搜索与筛选（深色底，沿用约战大厅的半透明语汇） */
.tour-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tour-search-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
}

.tour-search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.tour-search-btn,
.tour-search-clear {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tour-search-btn {
  /* 跟随各页 hero 的主题色（赛事页为紫），不写死蓝色 */
  background: var(--page-accent, rgba(31, 122, 162, 0.88));
  border-color: transparent;
  color: #fff;
}

.tour-search-clear {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.tour-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.tour-filter-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 700;
}

.tour-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-chip {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tour-chip.active {
  background: var(--page-accent, rgba(31, 122, 162, 0.88));
  color: #fff;
}

/* ── 赛事卡 ── */
.tour-list-web {
  gap: 10px;
}

/* 单元格骨架：窄屏堆叠（两列 area），宽屏一行铺开 —— 见下方 min-width: 1080px */
.tour-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "status   distance"
    "main     main"
    "format   time"
    "signup   signup"
    "fee      fee";
  align-items: center;
  gap: 10px 12px;
}

.tour-cell { min-width: 0; }
.tour-cell-status   { grid-area: status; }
.tour-cell-main     { grid-area: main; }
.tour-cell-format   { grid-area: format; }
.tour-cell-time     { grid-area: time; }
.tour-cell-signup   { grid-area: signup; }
.tour-cell-fee      { grid-area: fee; }
.tour-cell-distance { grid-area: distance; justify-self: end; }

.tour-status,
.tour-format,
.tour-distance {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tour-status-signing { color: #27ae60; background: rgba(39, 174, 96, 0.1); }
.tour-status-ready   { color: #2980b9; background: rgba(41, 128, 185, 0.1); }
.tour-status-running { color: #e94560; background: rgba(233, 69, 96, 0.1); }
.tour-status-finished{ color: #999999; background: rgba(153, 153, 153, 0.1); }
.tour-status-cancelled,
.tour-status-draft   { color: #e67e22; background: rgba(230, 126, 34, 0.1); }

.tour-format {
  color: #7b8494;
  background: #f3f6fa;
}

.tour-distance {
  color: #7a4595;
  background: rgba(108, 52, 131, 0.08);
}

.tour-card-name {
  color: #1f2d42;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-card-venue,
.tour-card-time {
  color: #7c8798;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-card-venue { margin-top: 2px; }

.tour-countdown {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(233, 69, 96, 0.08);
  color: #e94560;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tour-metric-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tour-metric-value {
  color: #1f2d42;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.tour-metric-sep {
  color: #b6bfcc;
  font-weight: 700;
}

.tour-fee {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.fee-value { color: #e94560; }
.fee-free  { color: #2ecc71; }

.tour-avail {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.tour-avail-open     { color: #2d8a57; background: rgba(39, 174, 96, 0.1); }
.tour-avail-warm     { color: #b36b00; background: rgba(243, 156, 18, 0.12); }
.tour-avail-hot,
.tour-avail-running  { color: #d83b57; background: rgba(233, 69, 96, 0.12); }
.tour-avail-full,
.tour-avail-ready    { color: #2a79c4; background: rgba(24, 144, 255, 0.12); }
.tour-avail-finished { color: #7f8a99; background: rgba(127, 138, 153, 0.12); }

.tour-progress {
  margin-top: 8px;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf1f6;
}

.tour-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c3483, #a569bd);
}

.tour-progress-fill-open     { background: linear-gradient(90deg, #27ae60, #58d68d); }
.tour-progress-fill-warm     { background: linear-gradient(90deg, #f39c12, #f5b041); }
.tour-progress-fill-hot,
.tour-progress-fill-running  { background: linear-gradient(90deg, #e94560, #ff7b54); }
.tour-progress-fill-full,
.tour-progress-fill-ready    { background: linear-gradient(90deg, #1890ff, #17b6d6); }
.tour-progress-fill-finished { background: linear-gradient(90deg, #9aa5b1, #c0c7d1); }

/* 列头只在宽屏出现（窄屏是堆叠卡片，不需要表头） */
.tour-list-head {
  display: none;
}

/* ── 宽屏：一场赛事一行铺开，信息密度优先 ──
   列宽与列头共用同一份 grid 定义，改一处两边同步。 */
@media (min-width: 1080px) {
  .tour-list-head,
  .tour-card {
    display: grid;
    grid-template-columns:
      76px                  /* 状态 */
      minmax(0, 1.7fr)      /* 赛事 / 球房 */
      88px                  /* 赛制 */
      minmax(146px, 1fr)    /* 开赛时间 / 倒计时 */
      minmax(176px, 1.05fr) /* 报名进度 */
      76px                  /* 报名费 */
      68px;                 /* 距离 */
    grid-template-areas: "status main format time signup fee distance";
    align-items: center;
    gap: 16px;
  }

  .tour-list-head {
    padding: 0 18px 8px;
    color: #97a3b5;
    font-size: 12px;
    font-weight: 700;
  }

  .tour-list-head > span:last-child {
    text-align: right;
  }

  .tour-card {
    padding: 12px 18px;
  }

  /* 横排后没有行内标签，纵向留白也要收紧 */
  .tour-cell-time .tour-countdown {
    margin-top: 2px;
  }

  .tour-progress {
    margin-top: 6px;
  }
}

@media (max-width: 720px) {
  .tour-filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ── 赛事广场轮播图（对应小程序 banner-swiper）── */
.tour-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(24, 33, 54, 0.06);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  background: #10162a;
}

.tour-banner-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 后台建议上传 1280×720（16:9）。网页顶部 banner 不能真按 16:9 铺满宽度
   （1220px 宽会撑出 686px 高），所以容器取一个折中的扁比例，再让图片以
   contain 完整落进去 —— 不裁一个像素。 */
.tour-banner-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 18 / 5;
  max-height: 340px;
  overflow: hidden;
  background: #0f1626;
  cursor: pointer;
}

/* 前景：完整显示整张图，居中，绝不裁切 */
.tour-banner-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 背景：同一张图放大模糊铺满，把 contain 留下的两侧空白填掉，
   比死板的黑边好看，也不会喧宾夺主 */
.tour-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(26px) brightness(0.55) saturate(1.1);
  display: block;
}

/* 底部压一层渐变，保证标题在任何底图上都读得清。必须叠在前景图（z-index:1）
   之上，否则会被图盖住。只对带标题的 banner 生效 —— 无标题的图没有理由被压暗。 */
.tour-banner-slide.has-title::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 56%;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 24, 0.72));
  pointer-events: none;
}

.tour-banner-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-banner-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.tour-banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 200ms ease, background 200ms ease;
}

.tour-banner-dot.active {
  width: 20px;
  background: #fff;
}

@media (max-width: 720px) {
  /* 窄屏直接按建议尺寸的 16:9 来：容器比例与图一致，contain 时整张图正好铺满，
     没有模糊边，观感与小程序一致 */
  .tour-banner-slide {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .tour-banner-title {
    font-size: 15px;
  }
}
