/* 邀请有礼页面样式 */
.invite-poster-modal .ant-modal-content {
  overflow: hidden;
  border-radius: 12px;
}

.invite-poster-modal .ant-modal-header {
  height: 56px;
  padding: 16px 24px;
  border-bottom: 0;
}

.invite-poster-modal .ant-modal-title {
  color: #262626;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.invite-poster-modal .ant-modal-close-x {
  width: 56px;
  height: 56px;
  line-height: 56px;
}

.invite-poster-modal .ant-modal-body {
  max-height: calc(100vh - 104px);
  padding: 0 32px 32px;
  overflow-y: auto;
}

.poster-template-selector {
  position: relative;
  padding: 4px 0;
}

.poster-thumbnail-track {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.poster-thumbnail-track::-webkit-scrollbar {
  display: none;
}

.poster-thumbnail {
  flex: 0 0 calc((100% - 40px) / 6);
  min-width: 0;
  padding: 2px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
}

.poster-thumbnail.is-selected {
  border-color: #1890ff;
}

.poster-thumbnail:focus-visible,
.poster-template-arrow:focus-visible {
  outline: 2px solid #1890ff;
  outline-offset: -2px;
}

.poster-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.poster-template-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #bfbfbf;
  border-radius: 50%;
  background: #fff;
  color: #595959;
  cursor: pointer;
  transform: translateY(-50%);
}

.poster-template-arrow.is-prev {
  left: -12px;
}

.poster-template-arrow.is-next {
  right: -12px;
}

.poster-template-arrow:disabled {
  color: #bfbfbf;
  cursor: default;
}

.poster-template-preview {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.poster-template-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(520px, calc(100vh - 320px));
  border-radius: 12px;
  object-fit: contain;
}

.poster-template-download {
  margin-top: 18px;
  text-align: center;
}

.poster-template-download .ant-btn {
  min-width: 140px;
  height: 40px;
  border-radius: 4px;
}

.invite-page-wrapper {
  width: 100%;
  min-height: calc(100vh - 350px);
  background: #ffffff;
  color: #1d2129;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 顶部 Hero Banner 区 */
.invite-hero {
  width: 100%;
  height: 576px;
  background: #F4F8FE url('/static/image/home/new-home/invite-top-img-bg.png') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.invite-hero-content {
  width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-top: 50px;
}

.invite-hero-text {
  max-width: 580px;
}

.invite-hero-text .hero-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.35;
  color: #242933;
  margin: 0 0 32px 0;
  letter-spacing: -0.5px;
}

.invite-hero-text .hero-title .brand-blue {
  color: #2475fc;
}

.invite-hero-text .hero-sub {
  font-size: 24px;
  color: #595959;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

/* 中间活动引导标题 */
.invite-main-section {
  width: 1200px;
  margin: 60px auto 60px;
}

.invite-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.invite-section-header .section-title-1 {
  font-size: 30px;
  font-weight: 700;
  color: #242933;
  line-height: 1.4;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}

.invite-section-header .section-desc {
  font-size: 14px;
  color: #595959;
  line-height: 1.6;
  margin: 0;
}

.invite-section-header .highlight-red {
  color: #FB363F;
  font-weight: 600;
}

/* 三个卡片容器 */
.activity-cards-wrap {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
}

.activity-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  will-change: transform;
}

.activity-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 36px rgba(36, 117, 252, 0.12) !important;
  border-color: #bad8ff !important;
}

.activity-card-body {
  padding: 30px 26px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  background: #f2f3f5;
  color: #4e5969;
  font-size: 13px;
  border-radius: 4px;
  font-weight: 500;
  line-height: 1.5;
}

.activity-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #1d2129;
  margin: 16px 0 12px 0;
  line-height: 1.4;
}

.activity-reward-text {
  font-size: 14px;
  color: #86909c;
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
}

.activity-reward-text .reward-num {
  font-size: 32px;
  font-weight: 700;
  color: #1d2129;
  margin: 0 6px;
  line-height: 1;
}

.activity-method-label {
  font-size: 13px;
  color: #86909c;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-method-label .dot {
  font-size: 8px;
  color: #c9cdd4;
}

.activity-steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.activity-step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  line-height: 1.5;
}

.activity-step-item:last-child {
  margin-bottom: 0;
}

.activity-step-item .step-index {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #c9cdd4;
  color: #86909c;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  margin-right: 9px;
}

.activity-step-item .step-content {
  font-size: 14px;
  color: #4e5969;
  line-height: 20px;
}

/* 按钮样式 */
.activity-action-area {
  margin-top: auto;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.activity-action-area.is-card3 {
  margin-top: auto;
  margin-bottom: 0;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 0;
  position: relative;
  z-index: 2;
}

.btn-two-col {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-two-col .invite-btn {
  flex: 1;
}

.invite-btn {
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.invite-btn-primary {
  background: #2475fc;
  border: 1px solid #2475fc;
  color: #ffffff;
}

.invite-btn-primary:hover {
  background: #1b63dd;
  border-color: #1b63dd;
}

.invite-btn-primary:active {
  background: #1352be;
  border-color: #1352be;
}

.invite-btn-outline {
  background: #ffffff;
  color: #1d2129;
  border: 1px solid #d9d9d9;
}

.invite-btn-outline:hover {
  background: #f8faff;
  border-color: #2475fc;
  color: #2475fc;
}

.invite-btn-block {
  width: 100%;
}

.invite-btn:disabled,
.invite-btn:disabled:hover,
.invite-btn:disabled:active {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #bfbfbf;
  cursor: not-allowed;
}

.activity-reject-reason {
  margin: 12px 0;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
  color: #f53f3f;
}

/* 卡片底部插画区 */
.activity-card-illustration {
  width: 100%;
  margin-top: -40px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.activity-card-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* 响应式兼容 */
@media (max-width: 1240px) {
  .invite-hero-content,
  .invite-main-section {
    width: 95%;
  }
  .activity-cards-wrap {
    flex-direction: column;
    align-items: center;
  }
  .activity-card {
    width: 100%;
    max-width: 480px;
  }
}

/* 提交分享截图 弹窗样式 */
.invite-review-modal .ant-modal-content,
.invite-detail-modal .ant-modal-content {
  background: transparent;
  box-shadow: none;
}

.invite-review-modal .ant-modal-body,
.invite-detail-modal .ant-modal-body {
  padding: 0;
}

.review-modal-container {
  position: relative;
  width: 840px;
  height: 564px;
  max-width: 95vw;
  max-height: 95vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  box-sizing: border-box;
}

.review-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #86909c;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
  padding: 0;
}

.review-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d2129;
}

.review-modal-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

/* 左侧栏 */
.review-modal-left {
  width: 444px;
  flex: 0 0 444px;
  height: 100%;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #ffffff;
}

.review-modal-header {
  margin-bottom: 34px;
}

.review-modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.35;
  margin: 0 0 8px 0;
}

.review-modal-subtitle {
  font-size: 14px;
  color: #86909c;
  line-height: 1.5;
  margin: 0;
}

.review-tips-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 26px;
}

.review-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.review-tip-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.review-tip-img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.review-tip-content {
  flex: 1;
}

.review-tip-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
  margin-bottom: 4px;
}

.review-tip-desc {
  font-size: 13px;
  color: #86909c;
  line-height: 1.6;
}

.review-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px dashed #7cb4ff;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-upload-card:hover {
  border-color: #2475fc;
  background: #f7faff;
}

.review-upload-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.review-upload-icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-upload-img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.review-upload-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.review-upload-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-upload-subtitle {
  font-size: 13px;
  color: #86909c;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-upload-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.review-modal-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.review-action-btn {
  height: 40px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.review-btn-cancel {
  width: 72px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  color: #4e5969;
}

.review-btn-cancel:hover {
  border-color: #2475fc;
  color: #2475fc;
}

.review-btn-submit {
  width: 108px;
  background: #2475fc;
  border: 1px solid #2475fc;
  color: #ffffff;
}

.review-btn-submit:hover {
  background: #1b63dd;
  border-color: #1b63dd;
}

.review-btn-submit:active {
  background: #1352be;
  border-color: #1352be;
}

.review-btn-submit.is-loading {
  opacity: 0.75;
  cursor: not-allowed;
}

/* 右侧栏 */
.review-modal-right {
  width: 396px;
  flex: 0 0 396px;
  height: 100%;
  background: #edf4fe;
  padding: 34px 34px 28px 34px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.review-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.review-preview-header-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.review-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}

.review-preview-card {
  width: 252px;
  height: 382px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(36, 117, 252, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

.review-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.review-empty-icon-wrap {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.review-empty-yl-img {
  width: 88px;
  height: 88px;
  display: block;
  object-fit: contain;
}

.review-empty-text {
  font-size: 15px;
  color: #4e5969;
  font-weight: 500;
  margin: 0 0 6px 0;
}

.review-empty-sub {
  font-size: 13px;
  color: #86909c;
  margin: 0;
}

.review-preview-active {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-preview-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.review-preview-remove-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}

.review-preview-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 6px;
}

.review-preview-footer-tip {
  margin-top: 16px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #4e5969;
}

.review-tip-gt-icon {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .review-modal-container {
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .review-modal-layout {
    flex-direction: column;
    height: auto;
  }
  .review-modal-left {
    width: 100%;
    flex: none;
    height: auto;
  }
  .review-modal-right {
    width: 100%;
    flex: none;
    height: 360px;
  }
}

/* 查看邀请接入明细 弹窗 */
.invite-detail-modal-container {
  position: relative;
  width: 720px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  box-sizing: border-box;
  padding: 24px 28px 24px;
}

.invite-detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.invite-detail-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
  margin: 0;
}

.invite-detail-modal-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #86909c;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  outline: none;
  padding: 0;
}

.invite-detail-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d2129;
}

.invite-detail-modal-body {
  display: flex;
  flex-direction: column;
}

.invite-detail-table-wrap {
  width: 100%;
  max-height: 50vh;
  margin-top: 16px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.invite-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.invite-detail-table thead tr {
  background: #f7f8fa;
  border-radius: 6px;
}

.invite-detail-table th {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #4e5969;
  text-align: left;
  line-height: 1.4;
}

.invite-detail-table th:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  padding-left: 18px;
}

.invite-detail-table th:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  padding-right: 18px;
}

.invite-detail-table td {
  padding: 16px 14px;
  font-size: 14px;
  color: #1d2129;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  line-height: 1.4;
}

.invite-detail-table td:first-child {
  padding-left: 18px;
}

.invite-detail-table td:last-child {
  padding-right: 18px;
}

.invite-detail-table tbody tr:last-child td {
  border-bottom: 1px solid #f0f2f5;
}

.invite-detail-table .th-corp-name,
.invite-detail-table .td-corp-name {
  width: 38%;
}

.invite-detail-table td.invite-detail-state {
  padding: 32px 18px;
  text-align: center;
  color: #86909c;
}

.invite-detail-pagination {
  margin-bottom: 24px;
  text-align: right;
}

.invite-detail-table .td-corp-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-detail-table .th-join-time,
.invite-detail-table .td-join-time {
  width: 25%;
}

.invite-detail-table .th-verify-status,
.invite-detail-table .td-verify-status {
  width: 17%;
}

.invite-detail-table .th-reward-detail,
.invite-detail-table .td-reward-detail {
  width: 20%;
}


