@charset "UTF-8";

/* 陪练大厅与改枪码：按目标站公开页面的尺寸、间距和色彩独立复刻。 */
.gds-main.market-view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------------- 陪练大厅 ---------------- */
.playmate-lobby {
  min-height: calc(100vh - 110px);
  padding: 20px 60px;
  background: #f5f7fa;
  box-sizing: border-box;
}

.playmate-banner {
  margin-bottom: 16px;
  padding: 20px 30px;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(102, 126, 234, .24);
}

.playmate-banner h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.playmate-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.55;
}

.playmate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.playmate-card {
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .09);
  transition: transform .22s ease, box-shadow .22s ease;
}

.playmate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
}

.playmate-card:focus-visible {
  outline: 3px solid rgba(102, 126, 234, .34);
  outline-offset: 2px;
}

.playmate-image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #e7ecff, #f2eaff);
}

.playmate-image-area img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playmate-status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .16);
}

.playmate-status-tag.gameplay { background: linear-gradient(135deg, #667eea, #764ba2); }
.playmate-status-tag.match { background: linear-gradient(135deg, #fb923c, #f97316); }

.playmate-card-content {
  min-height: 111px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0f5ff, #eef2ff);
  box-sizing: border-box;
}

.playmate-card-title {
  margin: 0 0 7px;
  overflow: hidden;
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playmate-card-desc {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ---------------- 陪练自主下单 ---------------- */
.gude-service-modal {
  z-index: 160;
  padding: 18px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.gude-service-modal .playmate-order-card {
  width: min(720px, 96vw);
  max-width: 720px;
  height: 85vh;
  max-height: 85vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
}

.playmate-order-head {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-sizing: border-box;
}

.playmate-order-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.playmate-order-head > div { display: flex; align-items: center; gap: 8px; }
.playmate-order-head .icon-btn { width: 30px; height: 30px; color: rgba(255,255,255,.82); background: transparent; }
.playmate-order-head .icon-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.playmate-share-btn { padding: 5px 8px; color: #fff; font-size: 13px; background: transparent; }

.playmate-order-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 16px;
  overflow: auto;
  background: #fff;
}

.playmate-form-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.playmate-form-row > label,
.playmate-form-label { margin: 0; color: #475569; font-size: 13px; font-weight: 500; }

.playmate-order-card .playmate-control,
.playmate-order-card textarea.playmate-control {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  color: #334155;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-sizing: border-box;
  outline: 0;
}

.playmate-order-card textarea.playmate-control { min-height: 64px; resize: vertical; }
.playmate-order-card .playmate-control:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.12); }

.playmate-count-control { display: inline-flex; width: 150px; height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.playmate-count-control button { width: 38px; color: #64748b; background: #f8fafc; border-right: 1px solid #e2e8f0; }
.playmate-count-control button:last-child { border-right: 0; border-left: 1px solid #e2e8f0; }
.playmate-count-control input { width: 74px; min-height: 32px; margin: 0; padding: 0; text-align: center; background: #fff; border: 0; border-radius: 0; }

.playmate-gender-list { display: flex; flex-wrap: wrap; gap: 12px; }
.playmate-gender-item { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: 13px; }
.playmate-gender-item select { width: 92px; min-height: 34px; margin: 0; padding: 6px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }

.playmate-order-type {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 7px 14px;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(102,126,234,.25);
}

.playmate-order-icon { font-size: 24px; }
.playmate-order-name { display: block; font-size: 14px; font-weight: 600; }
.playmate-order-price { display: block; color: rgba(255,255,255,.9); font-size: 13px; }

.playmate-summary {
  margin-top: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(251,146,60,.12);
}

.playmate-summary-title { padding: 6px 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(135deg, #fb923c, #f97316); }
.playmate-summary-row { display: flex; justify-content: space-between; padding: 8px 14px; color: #64748b; font-size: 13px; }
.playmate-summary-row strong { color: #ea580c; font-size: 22px; }

.playmate-detail-section {
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.playmate-detail-heading { margin: 0 0 8px; padding-bottom: 7px; color: #334155; font-size: 13px; font-weight: 600; border-bottom: 1px dashed #cbd5e1; }
.playmate-detail-item { margin-bottom: 8px; padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; }
.playmate-detail-item:last-child { margin-bottom: 0; }
.playmate-detail-label { display: block; margin-bottom: 4px; color: #667eea; font-size: 12px; font-weight: 600; }
.playmate-richtext { color: #475569; font-size: 12px; line-height: 1.6; word-break: break-word; }
.playmate-richtext p { margin: 0 0 7px; }
.playmate-richtext p:last-child { margin-bottom: 0; }

.playmate-order-footer {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}

.playmate-order-card .playmate-order-footer .btn-ghost,
.playmate-contact-pay { flex: 1; width: auto; height: 44px; margin: 0; border-radius: 10px; font-size: 15px; }
.playmate-order-card .playmate-order-footer .btn-ghost { color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; }
.playmate-contact-pay { color: #fff; background: linear-gradient(135deg, #667eea, #764ba2); border: 0; }

/* ---------------- 改枪码 ---------------- */
#view-gun { padding: 0; }
.gun-code-page { min-height: calc(100vh - 110px); color: #111827; background: #f5f7fa; }
.gun-page-inner { width: 100%; padding: 20px 12px 40px; box-sizing: border-box; }

.gun-page-header {
  margin-bottom: 14px;
  padding: 16px 16px 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 9px rgba(0,0,0,.035);
}

.gun-title-row { display: flex; align-items: flex-start; justify-content: space-between; min-height: 51px; }
.gun-title-row h1 { margin: 0 0 5px; color: #1f2937; font-size: 22px; font-weight: 700; line-height: 1.25; }
.gun-title-row p { margin: 0; color: #9ca3af; font-size: 13px; }
.gun-actions { display: flex; align-items: center; margin-top: 13px; }
.gun-search-wrap { display: flex; width: 320px; max-width: 100%; height: 34px; }
.gun-search-wrap input { min-width: 0; flex: 1; margin: 0; padding: 0 12px; color: #374151; font-size: 13px; background: #fff; border: 1px solid #dcdfe6; border-right: 0; border-radius: 6px 0 0 6px; outline: 0; }
.gun-search-wrap input:focus { border-color: #409eff; }
.gun-search-wrap button { width: 64px; color: #fff; font-size: 13px; background: #409eff; border-radius: 0 6px 6px 0; }

.gun-tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.gun-filter-chip { height: 28px; padding: 0 13px; color: #606266; font-size: 12px; background: #f5f7fa; border: 1px solid #e4e7ed; border-radius: 14px; }
.gun-filter-chip:hover { color: #409eff; border-color: #a0cfff; }
.gun-filter-chip.active { color: #fff; background: #409eff; border-color: #409eff; }

.gun-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
}

.gun-type-btn { min-height: 32px; padding: 6px 15px; color: #606266; font-size: 13px; background: #fff; border: 1px solid #dcdfe6; border-radius: 5px; }
.gun-type-btn:hover { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.gun-type-btn.active { color: #fff; background: #409eff; border-color: #409eff; }

.gun-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.gun-code-card { display: flex; min-width: 0; flex-direction: column; padding: 16px 20px 18px; background: #fff; border: 1px solid #eef0f3; border-radius: 10px; box-shadow: 0 2px 9px rgba(0,0,0,.035); }
.gun-code-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gun-code-card-head h3 { min-width: 0; margin: 0; overflow: hidden; color: #303133; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gun-more-btn { flex: 0 0 auto; padding: 4px 7px; color: #409eff; font-size: 12px; background: transparent; }
.gun-meta { display: flex; min-height: 24px; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gun-meta-tag { padding: 3px 8px; color: #409eff; font-size: 11px; background: #ecf5ff; border: 1px solid #d9ecff; border-radius: 4px; }
.gun-meta-tag.hot { color: #e6a23c; background: #fdf6ec; border-color: #faecd8; }

.gun-code-box { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; margin-bottom: 9px; padding: 10px 12px; background: #f8fafc; border: 1px solid #edf0f3; border-radius: 7px; }
.gun-code-box:last-child { margin-bottom: 0; }
.gun-code-texts { min-width: 0; }
.gun-code-value { overflow: hidden; color: #374151; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; font-weight: 600; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.gun-code-remark { overflow: hidden; margin-top: 4px; color: #909399; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.gun-code-actions { display: flex; align-items: center; gap: 4px; }
.gun-code-action { min-height: 27px; padding: 4px 7px; color: #606266; font-size: 11px; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px; white-space: nowrap; }
.gun-code-action.copy { color: #409eff; border-color: #b3d8ff; background: #ecf5ff; }
.gun-code-action.voted { color: #fff; background: #409eff; border-color: #409eff; }
.gun-empty { grid-column: 1 / -1; padding: 80px 20px; color: #909399; text-align: center; background: #fff; border-radius: 10px; }

.gun-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 24px 0 4px; }
.gun-page-btn { min-width: 32px; height: 32px; padding: 0 9px; color: #606266; font-size: 13px; background: #fff; border: 1px solid #dcdfe6; border-radius: 5px; }
.gun-page-btn.active { color: #fff; background: #409eff; border-color: #409eff; }
.gun-page-btn:disabled { cursor: default; opacity: .45; }
.gun-page-summary { margin-left: 5px; color: #909399; font-size: 12px; }

.gude-service-modal .gun-detail-card { width: min(720px, 96vw); max-width: 720px; max-height: 82vh; margin: auto; padding: 0; overflow: hidden; border-radius: 16px; }
.gun-detail-body { max-height: calc(82vh - 54px); padding: 16px 20px 22px; overflow: auto; background: #f5f7fa; }
.gun-detail-card .gun-code-box { background: #fff; }

@media (max-width: 1100px) {
  .gun-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .gds-main.market-view { min-height: calc(100vh - 134px); }
  .playmate-lobby { min-height: calc(100vh - 134px); padding: 10px 10px 94px; }
  .playmate-banner { padding: 18px 20px; border-radius: 10px; }
  .playmate-banner h1 { font-size: 21px; }
  .playmate-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .playmate-card-content { min-height: 108px; }

  .gude-service-modal { padding: 8px; }
  .gude-service-modal .playmate-order-card { width: 95vw; height: 88vh; max-height: 88vh; }
  .playmate-order-head { padding: 0 14px; }
  .playmate-order-body { padding: 8px 12px; }
  .playmate-form-row { grid-template-columns: 90px minmax(0,1fr); gap: 8px; }
  .playmate-gender-list { gap: 7px; }
  .playmate-gender-item select { width: 74px; }
  .playmate-order-footer { gap: 10px; padding: 10px 12px; }
  .playmate-order-card .playmate-order-footer .btn-ghost,
  .playmate-contact-pay { height: 42px; font-size: 14px; }

  .gun-code-page { min-height: calc(100vh - 134px); }
  .gun-page-inner { padding: 12px 10px 96px; }
  .gun-page-header { padding: 14px 12px 10px; }
  .gun-title-row h1 { font-size: 20px; }
  .gun-search-wrap { width: 100%; }
  .gun-category-filter { gap: 8px; padding: 12px; }
  .gun-type-btn { padding: 6px 11px; font-size: 12px; }
  .gun-list { grid-template-columns: 1fr; gap: 12px; }
  .gun-code-card { padding: 14px 12px 16px; }
  .gun-code-box { grid-template-columns: minmax(0,1fr); }
  .gun-code-actions { justify-content: flex-start; }
  .gun-detail-body { padding: 12px; }
}

@media (max-width: 390px) {
  .playmate-banner { padding: 16px; }
  .playmate-card-title { font-size: 14px; }
  .playmate-form-row { grid-template-columns: 1fr; }
  .playmate-order-footer { gap: 8px; }
  .playmate-contact-pay { flex: 1.6; }
  .gun-filter-chip { padding: 0 10px; }
  .gun-type-btn { padding: 6px 9px; }
}

/* ============================================================
 * 注册打手：与目标站桌面 / 手机入口及保证金弹窗一致
 * ============================================================ */
.gds-desktop-header .auth-area .runner-register-header {
  padding: 6px 16px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: transform .3s, box-shadow .3s, background .3s;
}

.gds-desktop-header .auth-area .runner-register-header:hover {
  background: linear-gradient(135deg, #5a6fd6, #6a4191) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, .4) !important;
}

.runner-register-card { color: #27bb9b !important; cursor: pointer; }
.gds-mobile-header .runner-register-card .runner-register-icon {
  color: #27bb9b;
  background: rgba(39, 187, 155, .1);
}
.gds-mobile-header .runner-register-card .runner-register-icon span {
  color: #27bb9b;
  font-size: 20px;
  font-weight: 600;
}

.runner-register-bottom { cursor: pointer; }
.tab-bar-container .bottom-tab.active::before { display: none; }

.runner-register-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  overflow: auto;
  background: rgba(0, 0, 0, .5);
  color: #333;
  font: 14px/1.4 "Microsoft Yahei", "PingFang SC", Avenir, "Segoe UI", "Hiragino Sans GB", STHeiti, "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif;
}

.runner-register-dialog {
  position: relative;
  width: 500px;
  margin: 15vh auto 50px;
  padding: 16px;
  overflow-wrap: break-word;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .08);
}

.runner-register-dialog__header {
  height: 40px;
  margin: 0;
  padding: 0 32px 16px 0;
}

.runner-register-dialog__header h2 {
  margin: 0;
  color: #303133;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.runner-register-close {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #909399;
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
}

.runner-register-close svg { width: 16px; height: 16px; }
.runner-register-close:hover { color: #409eff; }

.runner-register-dialog__body {
  margin: 0;
  padding: 10px 0;
  color: #606266;
}

.runner-deposit-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  background: #fdf6ec;
  border: 1px solid #f5dab1;
  border-radius: 8px;
}

.runner-warning-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #e6a23c;
}

.runner-notice-text { flex: 1; min-width: 0; }
.runner-notice-title {
  margin: 0 0 8px;
  color: #e6a23c;
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
}
.runner-notice-desc {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 19.6px;
}
.runner-notice-desc strong { font-weight: 700; }

.runner-deposit-info {
  padding: 0 16px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}
.runner-deposit-info p { margin: 0 0 8px; font-weight: 600; }
.runner-deposit-info ul { margin: 0; padding-left: 20px; list-style: none; }

.runner-register-dialog__footer {
  display: flex;
  height: 48px;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 16px 0 0;
  text-align: right;
}

.runner-register-dialog__footer button {
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 15px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
  border-radius: 4px;
  cursor: pointer;
}
.runner-cancel-btn {
  color: #606266;
  background: #fff;
  border: 1px solid #dcdfe6;
}
.runner-pay-btn {
  margin-left: 0 !important;
  color: #fff;
  background: #409eff;
  border: 1px solid #409eff;
}
.runner-cancel-btn:hover { color: #409eff; border-color: #c6e2ff; background: #ecf5ff; }
.runner-pay-btn:hover { background: #66b1ff; border-color: #66b1ff; }

@media (max-width: 900px) {
  .runner-register-dialog { width: 350px; }
  .runner-deposit-info { line-height: 1.4; }
  .runner-deposit-info p { margin: 0 0 10px; }
  .runner-deposit-info li { margin-bottom: 8px; }
}

@media (max-width: 359px) {
  .runner-register-dialog { width: calc(100vw - 24px); }
  .runner-register-dialog__footer button { padding-right: 10px; padding-left: 10px; }
}
