/* Figma: 4.3-瓜条中心-求瓜条-详情页 (node 290:27275) */
.request-detail-page,
.tip-center-page .gua-modal--request-detail,
.profile-page .gua-modal--request-detail,
.search-page .gua-modal--request-detail,
.tip-center-page .tc-feed.tc-feed--inline-detail {
  --rd-modal-w: 700px;
  --rd-bg: #100f0f;
  --rd-surface: #201f1f;
  --rd-head-bg: rgba(40, 42, 46, 0.5);
  --rd-border: rgba(255, 255, 255, 0.05);
  --rd-border-strong: rgba(255, 255, 255, 0.1);
  --rd-text: rgba(255, 255, 255, 0.8);
  --rd-muted: rgba(255, 255, 255, 0.5);
  --rd-stat-value: #ff494c;
  --rd-pledge-amt: #ff5050;
  --rd-green: #03c75a;
  --rd-yellow: #f3ce00;
  --rd-accent: #ff494c;
}

/* ── Profile / search overlay shell (求瓜详情弹窗) ── */
.profile-page .gua-overlay,
.search-page .gua-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 200;
}

.profile-page .gua-overlay.open,
.search-page .gua-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-page .gua-modal,
.search-page .gua-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(520px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--home-panel, #201f1f);
  border: 1px solid var(--home-border, rgba(255, 255, 255, 0.05));
  border-radius: 10px;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 201;
}

.profile-page .gua-modal.open,
.search-page .gua-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.profile-page .gua-ov-head,
.search-page .gua-ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--home-border, rgba(255, 255, 255, 0.05));
}

.profile-page .gua-ov-head h2,
.search-page .gua-ov-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.profile-page .gua-ov-close,
.search-page .gua-ov-close {
  border: 0;
  background: transparent;
  color: var(--home-muted, rgba(255, 255, 255, 0.5));
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.profile-page .gua-ov-body,
.search-page .gua-ov-body {
  padding: 18px;
}

/* ── Detail content ── */
.rd-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--rd-text);
}

.rd-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rd-back {
  margin: 0 0 4px;
  font-size: 14px;
}

.rd-back a {
  color: var(--rd-muted);
}

.rd-back a:hover {
  color: var(--rd-text);
}

.rd-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--rd-muted);
}

.rd-status-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.rd-status-claimed {
  color: var(--rd-muted);
}

.rd-status-open::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rd-green);
}

.rd-status-expired {
  color: rgba(255, 255, 255, 0.35);
}

.rd-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.8px;
  color: var(--rd-text);
}

.rd-intro {
  margin: 0;
  padding-top: 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--rd-muted);
}

.rd-related {
  margin: 0;
  font-size: 14px;
  color: var(--rd-muted);
}

.rd-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rd-media-video {
  width: 200px;
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.rd-media-img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rd-border-strong);
}

.rd-delivered {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--rd-border);
  border-radius: 8px;
  background: rgba(16, 15, 15, 0.2);
  box-sizing: border-box;
}

.rd-delivered-head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.rd-delivered-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.rd-delivered-copy {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #fff;
  text-align: center;
}

.rd-delivered-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  padding: 12px 40px;
  border-radius: 6px;
  background: var(--rd-green);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  box-sizing: border-box;
}

/* Stats + actions panel */
.rd-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--rd-border);
  border-radius: 8px;
  background: rgba(16, 15, 15, 0.2);
  box-sizing: border-box;
}

.rd-stats {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.rd-stat-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 94px;
  padding: 0 12px;
  border: 1px solid var(--rd-border-strong);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
  text-align: center;
}

.rd-stat-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  color: var(--rd-muted);
}

.rd-stat-value {
  font-size: 24px;
  font-weight: 500;
  line-height: 38px;
  letter-spacing: -0.32px;
  color: var(--rd-stat-value);
}

.rd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rd-actions-login {
  margin: 0;
}

.rd-amt-stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 110px;
  height: 40px;
  padding: 5px;
  border: 1px solid var(--rd-border-strong);
  border-radius: 4px;
  background: #0c0e12;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.rd-amt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.rd-amt-btn img {
  display: block;
  width: 100%;
  height: 100%;
}

.rd-amt-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.rd-amt-input::-webkit-outer-spin-button,
.rd-amt-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.rd-btn-add {
  flex-shrink: 0;
  width: 122px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.rd-btn-watch {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.rd-btn-watch.is-watched {
  background: var(--rd-yellow);
  color: #000;
}

.rd-btn-claim {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 40px;
  background: var(--rd-green);
  color: #fff;
}

.rd-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.rd-act-err {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: var(--rd-pledge-amt);
}

/* Pledge list */
.rd-pledges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rd-pledges-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.rd-pledges-bar {
  display: block;
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  background: var(--rd-green);
}

.rd-pledges-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--rd-text);
}

.rd-pledges-hint {
  margin: 0;
  font-size: 14px;
  line-height: 26px;
  color: var(--rd-muted);
}

.rd-pledges-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rd-pledge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  box-sizing: border-box;
}

.rd-pledge-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05);
}

.rd-pledge-user {
  color: var(--rd-muted);
}

.rd-pledge-amt {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: var(--rd-pledge-amt);
}

.rd-pledge-empty {
  margin: 0;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--rd-muted);
}

.rd-error,
.rd-loading {
  padding: 40px 0;
  text-align: center;
  color: var(--rd-muted);
}

.rd-error {
  color: var(--rd-pledge-amt);
}

/* Figma 4.10 — 瓜条中心内嵌求瓜详情 (node 290:27250) */
.tip-center-page.is-request-inline .home-ads,
.tip-center-page.is-request-inline .tc-hero,
.tip-center-page.is-request-inline .tc-policy,
.tip-center-page.is-request-inline .tc-tabs,
.tip-center-page.is-request-inline #tc-subfilter,
.tip-center-page.is-request-inline #tc-pager {
  display: none;
}

.tip-center-page .tc-feed.tc-feed--inline-detail {
  width: 100%;
  max-width: 100%;
}

.tip-center-page .rd-inline-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 7px;
  font-size: 16px;
  line-height: normal;
  color: #a1a1a1;
}

.tip-center-page .rd-inline-breadcrumb a {
  padding: 14px 10px;
  color: #a1a1a1;
  text-decoration: none;
}

.tip-center-page .rd-inline-breadcrumb a:hover {
  color: var(--rd-text);
}

.tip-center-page .rd-inline-breadcrumb-arrow {
  display: block;
  width: 11px;
  height: 9px;
  flex-shrink: 0;
  background: url("/assets/figma/svg/submit-sell-web/breadcrumb-arrow.svg") center / 11px 9px no-repeat;
}

.tip-center-page .rd-inline-breadcrumb-current {
  padding: 14px 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  color: var(--rd-green);
}

.tip-center-page .rd-detail--inline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  color: var(--rd-text);
}

.tip-center-page .rd-detail--inline .rd-status.rd-status-open {
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: var(--rd-text);
}

.tip-center-page .rd-detail--inline .rd-status.rd-status-open::before {
  width: 4px;
  height: 18px;
  border-radius: 0;
}

.tip-center-page .rd-detail--inline .rd-hero {
  gap: 0;
}

.tip-center-page .rd-detail--inline .rd-hero .rd-status {
  margin-bottom: 24px;
}

.tip-center-page .rd-detail--inline .rd-title {
  color: #fff;
}

.tip-center-page .rd-detail--inline .rd-btn-add,
.tip-center-page .rd-detail--inline .rd-btn-watch {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.tip-center-page .rd-detail--inline .rd-btn-watch.is-watched {
  background: var(--rd-yellow);
  color: #000;
}

.tip-center-page .rd-detail--inline .rd-btn-claim {
  background: var(--rd-green);
  color: #fff;
}

.tip-center-page .rd-detail--inline .rd-pledge-row {
  height: 46px;
}

@media (max-width: 800px) {
  /* Axure H5: docs/axure-source/flows-h5 — 355px column */
  .request-detail-page .request-detail-main {
    width: 100%;
    max-width: 355px;
    margin: 0 auto;
    padding: 10px var(--home-gutter) 32px;
    box-sizing: border-box;
  }

  .request-detail-page .rd-title {
    font-size: 18px;
    line-height: 24px;
  }

  .request-detail-page .rd-btn {
    height: 44px;
  }
}
