body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  background: #fafafa;
}

.hidden {
  display: none !important;
}

/* ===== 训练页 V3 ===== */
body.train-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  background: #fafafa;
  font-size: 16px;
  height: 100vh;
  overflow: hidden;
}

.train-page .hidden {
  display: none !important;
}

/* 顶部固定 */
.train-page .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 60px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 16px;
  z-index: 100;
  box-sizing: border-box;
}

.train-page .menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  flex-shrink: 0;
}

.train-page .topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 220px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #111;
}

.train-page .topbar-right {
  min-width: 88px;
  max-width: 120px;
  text-align: center;
  font-size: 16px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.train-page .topbar-right:hover {
  background: #ededed;
}

/* 会话区固定在中间，只自己滚动 */
.train-page .chat {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 68px;

  overflow-y: auto;
  padding: 12px;
  background: #fafafa;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.train-page .msg {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 8px 0;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 16px;
  box-sizing: border-box;
}

.train-page .msg.user {
  margin-left: auto;
  background: #dbeafe;
}

.train-page .msg.assistant {
  margin-right: auto;
  background: #fff;
  border: 1px solid #eee;
}

/* 底部输入区固定 */
.train-page .composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 10px 12px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #fff;
  box-sizing: border-box;
  z-index: 101;
}

.train-page #input {
  flex: 1;
  resize: none;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;

  min-height: 44px;
  max-height: 66vh;
  overflow-y: hidden;
}

.train-page #send {
  width: 92px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: #e9e9e9;
  color: #111;
  font-size: 16px;
  font-family: inherit;
  flex-shrink: 0;
}

.train-page #send:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 抽屉 */
.train-page .drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1000;
}

.train-page .drawer-actions {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f1f1;
}

.train-page .drawer-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

.train-page .drawer-head-left,
.train-page .drawer-head-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.train-page .drawer-head-left {
  left: 14px;
}

.train-page .drawer-head-right {
  right: 14px;
}

.train-page .drawer-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.train-page .drawer-toggle-btn {
  width: 36px;
  height: 36px;
}

.train-page .session-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 82vw);
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.train-page .new-session-btn {
  width: 100%;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.train-page .session-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.train-page .session-empty {
  color: #999;
  font-size: 16px;
  text-align: center;
  padding: 20px 0;
}

.train-page .session-item {
  width: 100%;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  margin-bottom: 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.train-page .session-item.active {
  border-color: #4CAF50;
  background: #f7fff7;
}

.train-page .session-item-title {
  font-size: 16px;
  color: #111;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.train-page .session-item-time {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 用户页 / 资料页 ===== */
.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 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 24px;
}

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

.user-page .top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 40px;
  padding: 0 14px;
  box-sizing: border-box;
  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 .head-left {
  visibility: hidden;
}

.user-page .top-link-right {
  justify-self: end;
}

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

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

.user-page .section-title {
  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;
}

/* 表单行容器：用于承载覆盖提示层（sms-hint-layer），不要删除或改定位 */
.form-inline-wrap {
  position: relative;
}

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

.is-muted,
.user-page button:disabled {
  opacity: 0.5;
  filter: grayscale(0.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;   /* 和 form 的 label 对齐 */
  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 0.2s ease;
}

#copyInviteBtn.is-ok {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

#copyInviteBtn.is-error {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.course-hint-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 120px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.course-hint-overlay.hidden {
  display: none;
}

.course-hint-card {
  width: calc(100% - 32px);
  max-width: 420px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 18px 16px 16px;
  pointer-events: auto;
}

.course-hint-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin-bottom: 10px;
  text-align: center;
}

.course-hint-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  text-align: center;
  margin-bottom: 16px;
}

.course-hint-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.course-hint-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.course-hint-btn.primary {
  background: #4caf50;
  color: #fff;
}

.course-hint-btn.ghost {
  background: #f5f5f5;
  color: #333;
}

@media (max-width: 768px) {
  .course-hint-overlay {
    top: 110px;
  }

  .course-hint-card {
    width: calc(100% - 24px);
    border-radius: 16px;
    padding: 16px 14px 14px;
  }

  .course-hint-title {
    font-size: 18px;
  }

  .course-hint-desc {
    font-size: 14px;
  }
}

.pay-order-row {
  margin-bottom: 8px;
  font-size: 15px;
  word-break: break-all;
}

.pay-tip {
  margin-bottom: 14px;
  color: #666;
  font-size: 14px;
}

.pay-qrcodes {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 16px;
}

.pay-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pay-item img {
  width: 100%;
  max-width: 260px;   /* 你可以改成 280px 试试 */
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
}

.pay-label {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

@media (max-width: 768px) {
  .pay-qrcodes {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .pay-item {
    width: 100%;
  }

  .pay-item img {
    max-width: 220px;
  }
}

#submittedBtn {
  display: block;
  margin: 0 auto;
  min-width: 160px;
}

@media (max-width: 768px) {
  .user-page .share-section-title {
    text-align: center;
  }

  .user-page .share-main {
    flex-direction: column;
    align-items: center;
    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: center;
    padding-right: 0;
    padding-top: 6px;
    text-align: center;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .user-page .share-main {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .user-page .share-main input {
    width: 100%;
  }

  .user-page button.copy-btn {
    width: 100%;
    min-width: 0;
  }

  .copy-hint-layer {
    position: static;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding-right: 0;
    padding-top: 6px;
    font-size: 13px;
  }
}

.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;
}

/* ===== 移动端 ===== */
@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;
  }
}

@media (max-width: 768px) {
  .train-page .session-drawer {
    width: 100vw;
    max-width: none;
  }
}

/* ===== 用户中心覆盖层 ===== */
.train-page .user-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1002;
}

.train-page .user-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  max-width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 1003;
  box-shadow: -2px 0 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.train-page .user-drawer-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
  flex-shrink: 0;
}

.train-page .user-drawer-head-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 110px;
  height: 40px;
}

.train-page .user-drawer-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.train-page .drawer-close-link {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.train-page .user-drawer-frame {
  width: 100%;
  height: calc(100vh - 60px);
  border: 0;
  display: block;
  background: #fff;
}

.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;
}

@media (max-width: 768px) {
  .train-page .user-drawer {
    width: 100vw;
    max-width: none;
  }

  .train-page .user-drawer-head-left {
    width: 82px;
  }
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-main {
  flex: 1;
  min-width: 0;
}

.benefit-name {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 4px;
}

.benefit-desc {
  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;
}

.secondary-btn {
  background: #f5f5f5;
  color: #222;
  border: 1px solid #e6e6e6;
}

@media (max-width: 768px) {
  .benefit-item {
    align-items: flex-start;
  }

  .benefit-action .action-btn {
    min-width: 96px;
    padding: 0 12px;
    font-size: 14px;
  }

  .benefit-name {
    font-size: 17px;
  }

  .benefit-desc {
    font-size: 13px;
  }
}

.benefit-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.benefit-action-row .action-btn {
  min-width: 96px;
}

.benefit-item-course {
  align-items: flex-start;
}

.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) {
  .benefit-item-course {
    align-items: flex-start;
  }

  .benefit-price-now {
    font-size: 18px;
  }

  .benefit-link-btn {
    font-size: 13px;
  }
}

.benefit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.benefit-title {
  font-size: 16px;
  font-weight: 500;
}

.primary-btn {
  background: #4CAF50;
  color: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  border: none;
}

.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;
}

@media (max-width: 768px) {
  .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-card {
  padding-top: 8px;
  padding-bottom: 8px;
}

.benefit-item-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.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;
}

@media (max-width: 768px) {
  .benefit-item-simple {
    gap: 12px;
  }

  .benefit-item-simple .benefit-title {
    font-size: 16px;
  }

  .benefit-item-simple .action-btn {
    min-width: 120px;
    padding: 10px 16px;
  }
}

.price-old {
  font-size: 16px;
  font-weight: 500;
  color: #8a8a8a;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #a0a0a0;
  line-height: 1;
}

.price-now {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

#upgradePaidBtn {
  display: block;
  margin: 16px auto 0;
  min-width: 180px;
}

.upgrade-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.upgrade-tab {
  width: 100%;
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 1px solid #dddddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.upgrade-tab-name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 10px;
}

.upgrade-tab-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.price-old {
  font-size: 18px;
  font-weight: 500;
  color: #8a8a8a;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #a0a0a0;
  line-height: 1;
}

.price-now {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.upgrade-tab.active {
  border: 2px solid #4caf50;
  background: #4caf50;
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.22);
}

.upgrade-tab.active .upgrade-tab-name,
.upgrade-tab.active .price-now {
  color: #ffffff;
}

.upgrade-tab.active .price-old {
  color: rgba(255, 255, 255, 0.72);
  text-decoration-color: rgba(255, 255, 255, 0.72);
}

.upgrade-tab:hover {
  border-color: #b9dcbf;
}

.upgrade-order-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  word-break: break-all;
  line-height: 1.4;
}

.upgrade-hint {
  margin-top: 12px;
  text-align: center;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}

#upgradePaidBtn {
  display: block;
  margin: 18px auto 0;
  min-width: 180px;
}

@media (max-width: 768px) {
  .upgrade-tabs {
    gap: 10px;
  }

  .upgrade-tab {
    padding: 12px 8px 10px;
    border-radius: 14px;
  }

  .upgrade-tab-name {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .price-old {
    font-size: 15px;
  }

  .price-now {
    font-size: 24px;
  }

  .upgrade-order-title {
    font-size: 18px;
  }

  .upgrade-hint {
    font-size: 14px;
  }
}

.benefit-main-lite {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefit-meta {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 课程页面价格样式 */
.course-price {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* 价格之间的间距 */
}

.discount-price {
    font-size: 24px;
    color: #f44336; /* 红色，突出显示内测价 */
    font-weight: bold;
}

.original-price {
    font-size: 18px;
    color: #999999; /* 灰色，正式价 */
    text-decoration: line-through; /* 划掉正式价 */
}
