body.user-page {
  background: #fafafa;
}

.user-page .page {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 12px 36px;
}

.user-page .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.user-page .page-head h2,
.user-page h2 {
  margin: 0;
  font-size: 24px;
}

.user-page .page-head h2 {
  flex: 1;
  text-align: center;
}

.user-page .top-link,
.user-page .head-left,
.user-page .head-right {
  width: 110px;
  flex-shrink: 0;
}
.user-page .head-left { visibility: hidden; }
.user-page .top-link-right { justify-self: end; }

.user-page .top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 40px;
  padding: 0 14px;
  text-decoration: none;
  color: #4CAF50;
  border: 1px solid #4CAF50;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}
.user-page .top-link:hover { background: #f4fbf4; }

.user-page .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.user-page .section-title {
  justify-content: center;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.user-page .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.user-page .card-head button {
  min-width: 120px;
  background: #fff;
  color: #4CAF50;
  border: 1px solid #4CAF50;
}
.user-page .card-head button:hover { background: #f4fbf4; }

.user-page .muted {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.user-page input,
.user-page select,
.user-page button,
.user-page .back-btn,
.user-page .action-btn {
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
}

.user-page input,
.user-page select {
  width: 100%;
  padding: 8px 14px;
}

.user-page button {
  padding: 8px 16px;
  min-width: 120px;
  cursor: pointer;
}

.user-page .form-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.user-page .form-inline input { flex: 1; }
.user-page .form-inline button { width: 160px; flex-shrink: 0; }
.form-inline-wrap { position: relative; }

#sendSmsBtn,
#verifyBtn {
  transition: opacity .2s ease, filter .2s ease, background-color .2s ease, color .2s ease;
}

.is-muted,
.user-page button:disabled {
  opacity: .5;
  filter: grayscale(.35);
  cursor: not-allowed;
}

.sms-hint-layer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 14px;
  color: #f59e0b;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sms-hint-layer.ok { color: #16a34a; font-weight: 600; }
.sms-hint-layer.error { color: #dc2626; font-weight: 600; }

.user-page .form-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.user-page .form-row:last-child { margin-bottom: 0; }
.user-page .label {
  width: 120px;
  text-align: right;
  color: #333;
  font-size: 15px;
  flex-shrink: 0;
}
.user-page .field { flex: 1; }

.user-page .info-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 16px;
}
.user-page .info-line:last-child { margin-bottom: 0; }
.user-page .info-label {
  width: 120px;
  text-align: right;
  color: #666;
  flex-shrink: 0;
}
.user-page .info-line span:last-child { flex: 1; }

.user-page .share-section-title { margin-bottom: 12px; }
.user-page .share-main-wrap { position: relative; }
.user-page .share-main { display: flex; align-items: center; gap: 12px; }
.user-page .share-main input {
  flex: 1;
  min-width: 0;
  height: 40px;
  text-align: left;
}
.user-page button.copy-btn {
  width: 150px;
  min-width: 150px;
  flex-shrink: 0;
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}
.user-page button.copy-btn:hover { background: #0f67e6; }

.copy-hint-layer {
  position: absolute;
  top: 0;
  right: 0;
  height: 40px;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666;
}
.copy-hint-layer.ok { color: #16a34a; font-weight: 600; }
.copy-hint-layer.error { color: #dc2626; font-weight: 600; }

#copyInviteBtn { transition: all .2s ease; }
#copyInviteBtn.is-ok { background: #16a34a; border-color: #16a34a; color: #fff; }
#copyInviteBtn.is-error { background: #dc2626; border-color: #dc2626; color: #fff; }

.user-page .compact-card {
  padding: 14px 18px;
  margin-bottom: 12px;
}

.user-page .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.user-page .action-btn.primary-btn { background: #4CAF50; color: #fff; border-color: #4CAF50; }
.user-page .action-btn.primary-btn:hover { background: #43a047; }
.user-page .action-btn.secondary-btn { background: #fff; color: #111; border-color: #ccc; }

.user-page .back-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
  font-size: 18px;
  font-weight: 700;
}
.user-page .back-btn:hover { background: #43a047; }

.user-page.embedded { background: #fff; }
.user-page.embedded .page {
  max-width: none;
  margin: 0;
  padding: 16px 14px 24px;
}
.user-page.embedded .page-head { display: none; }

.benefit-card { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.benefit-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.benefit-item-course { align-items: flex-start; }
.benefit-item-simple { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.benefit-item-simple .benefit-title {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}
.benefit-item-simple .action-btn {
  width: auto;
  min-width: 140px;
  padding: 10px 20px;
  flex-shrink: 0;
}
.benefit-main { flex: 1; min-width: 0; }
.benefit-main-lite { display: flex; flex-direction: column; gap: 6px; }
.benefit-name { font-size: 18px; font-weight: 700; color: #111; line-height: 1.4; margin-bottom: 4px; }
.benefit-desc,
.benefit-meta { font-size: 14px; color: #666; line-height: 1.6; }
.benefit-action { flex-shrink: 0; }
.benefit-action .action-btn {
  min-width: 110px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.benefit-action-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.benefit-action-row .action-btn { min-width: 96px; }
.benefit-title { font-size: 16px; font-weight: 500; }
.primary-btn { background: #4CAF50; color: #fff; border-radius: 20px; padding: 8px 18px; border: none; }
.secondary-btn { background: #f5f5f5; color: #222; border: 1px solid #e6e6e6; }
.benefit-price-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.benefit-price-old { font-size: 14px; color: #999; text-decoration: line-through; }
.benefit-price-now { font-size: 20px; font-weight: 700; color: #111; line-height: 1; }
.benefit-price-tag { font-size: 12px; color: #4caf50; border: 1px solid #b7e1b9; background: #eef8ef; border-radius: 999px; padding: 2px 8px; }
.benefit-link-btn { margin-top: 8px; padding: 0; background: transparent; border: none; color: #4caf50; font-size: 14px; font-weight: 600; cursor: pointer; }
.benefit-link-btn:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .user-page .share-section-title { text-align: center; }
  .user-page .share-main {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .user-page .share-main input { width: 100%; max-width: 100%; text-align: center; }
  .user-page button.copy-btn { width: 100%; min-width: 0; max-width: 100%; }
  .copy-hint-layer {
    position: static;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding-right: 0;
    padding-top: 6px;
    font-size: 13px;
    text-align: left;
  }

  .benefit-item,
  .benefit-item-course { align-items: flex-start; }
  .benefit-item-simple { gap: 12px; }
  .benefit-item-simple .benefit-title { font-size: 16px; }
  .benefit-item-simple .action-btn { min-width: 120px; padding: 10px 16px; }
  .benefit-action .action-btn { min-width: 96px; padding: 0 12px; font-size: 14px; }
  .benefit-name { font-size: 17px; }
  .benefit-desc,
  .benefit-meta,
  .benefit-link-btn { font-size: 13px; }
  .benefit-price-now { font-size: 18px; }
}

@media (max-width: 640px) {
  .user-page .page {
    max-width: 100%;
    padding: 16px 10px 28px;
  }
  .user-page .card { padding: 14px; border-radius: 14px; }
  .user-page .top-link,
  .user-page .head-left,
  .user-page .head-right { width: 82px; }
  .user-page .page-head h2 { font-size: 22px; }
  .user-page .form-inline button { width: 130px; }
  .user-page .label { width: 96px; font-size: 14px; }
  .user-page input,
  .user-page select,
  .user-page button,
  .user-page .back-btn,
  .user-page .action-btn { font-size: 15px; }
}

.user-page .form-inline .ghost-btn {
  width: 160px;
  flex-shrink: 0;

  /* 核心：极淡处理 */
  opacity: 1;   /* 不用整体透明了 */
  background-color: rgba(0, 0, 0, 0.03);   /* 极淡底色 */
  color: rgba(0,0,0,0.02);      /* 文字更淡 */
  border: 1px solid rgba(0, 0, 0, 0.03);   /* 轻边框 */

  background: transparent;

  pointer-events: none;
}

.user-page .form-inline.submit-row {
  justify-content: center;
}
