/* New UI Styles from welcome/assets/styles.css */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "TencentSans", "Microsoft YaHei", system-ui, sans-serif;
  background-color: #F0F4F9;
  color: #1E1A4C;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  background-image: url("../images/bg.png");
  background-size: cover;
  background-position: center 51px;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  z-index: 1000;
}

.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.navbar-logo {
  width: 227px;
  height: 56px;
  border-radius: 8px;
  background-image: url("../images/logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.navbar-title {
  font-family: "TencentSans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: #0790D9;
  white-space: nowrap;
}

.navbar-middle {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 32px;
  flex: 1;
}

.nav-link-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.43;
}

.nav-link {
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: #0790D9;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-label {
  color: #1E1A4C;
}

.nav-rank-icon {
  width: 24px;
  height: 29px;
  background-image: url("../images/rank.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.nav-rank-text {
  color: #1E1A4C;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.43;
  color: #1E1A4C;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.navbar-link-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
  height: 22px;
  border-radius: 10px 0 10px 0;
  background-image: linear-gradient(90deg, rgba(3, 161, 234, 1) 0%, rgba(32, 91, 175, 1) 100%);
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 9px;
  line-height: 1.56;
  /* font-weight: 500; removed to match designs if needed, relying on system font weights */
}

/* Activate Rights Button Style - Premium Gold Theme */
.navbar-btn-activate {
  background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%) !important;
  color: #FFFFFF !important;
  padding: 6px 12px 6px 16px;
  /* Adjusted padding for balance */
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 143, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-btn-activate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 143, 0, 0.4);
}

.navbar-btn-activate span {
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Inner VIP Badge - Clean White Pill */
.navbar-btn-activate .navbar-link-vip {
  background: #FFFFFF !important;
  color: #FF8F00 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  margin-left: 6px;
  border-radius: 10px;
  padding: 1px 8px;
  font-weight: 800;
  height: 18px;
  line-height: 16px;
  /* Center text vertically */
  display: inline-flex;
  align-items: center;
  border: 0;
}

.navbar-account {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-avatar {
  width: 35px;
  height: 35px;
  border-radius: 999px;
  background-image: url("../images/avatar.png");
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.navbar-logout {
  font-size: 14px;
  line-height: 1.43;
  color: #1E1A4C;
  cursor: pointer;
  white-space: nowrap;
}

.glass-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 100px 30px rgba(31, 38, 135, 0.12);

}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 64px;
  /* 移除独立的背景和边框，由 glass-container 接管 */
}

.banner {
  /* width: 100vw;
      margin-left: calc(50% - 50vw); */
  background: linear-gradient(270deg, rgba(0, 176, 255, 0.3) 0%, rgba(18, 120, 197, 1) 100%);
  position: relative;
}

.banner-frame {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1440 / 346;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: cover;
  background-position: center;
}

.banner-mask {
  position: absolute;
  left: 50%;
  top: 0.8671%;
  transform: translateX(-50%);
  /* width: 100vw; */
  height: 99.1329%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.banner-title {
  position: absolute;
  left: 16.3889%;
  top: 15.3179%;
  width: 37.1528%;
  height: 23.9884%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: "ReeJi-BigRuixain-BlackGBV1.0", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4.8vw, 68px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
}

.banner-feature {
  position: absolute;
  left: 16.8056%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #FFFFFF;
}

.banner-feature-1 {
  top: 45.3757%;
  width: 20.4167%;
  height: 13.8728%;
}

.banner-feature-2 {
  top: 64.7399%;
  width: 20.3472%;
  height: 15.0289%;
}

.banner-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.banner-feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-feature-2 .banner-feature-text {
  padding-top: 4px;
}

.banner-feature-title {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.7vw, 24px);
  line-height: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.banner-feature-desc {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.banner-hero {
  position: absolute;
  left: 56.8056%;
  top: 14.7399%;
  width: 37.4306%;
  height: 84.3931%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.course-feed {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 11px;
}

.course-card {
  background-color: #FFFFFF;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 260px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.course-card-image {
  width: 280px;
  height: 240px;
  margin-left: -10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #eee;
}

.feed-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* .course-card-image.course-1 {
  background-image: url("../images/image-119.png");
}

.course-card-image.course-2 {
  background-image: url("../images/image-120.png");
}

.course-card-image.course-3 {
  background-image: url("../images/image-121.png");
}

.course-card-image.course-4 {
  background-image: url("../images/image-118.png");
} */

.course-card-content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.course-card-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
  color: rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.course-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}

.tag-primary {
  background-color: #F2F3FF;
  color: #0052D9;
}

.tag-success {
  background-color: #E3F9E9;
  color: #2BA471;
}

.course-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.66;
  border-radius: 32px;
  height: 24px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-icon-1 {
  width: 76px;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-image: url("../images/btn-icon-1.png");
}

.btn-icon-2 {
  width: 76px;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-image: url("../images/btn-icon-2.png");
}

.btn-primary {
  background-image: linear-gradient(90deg, rgba(3, 161, 234, 1) 0%, rgba(32, 91, 175, 1) 100%);
  color: #FFFFFF;
}

.btn-link {
  background-color: transparent;
  color: #2966FF;
}

.footer {
  margin-top: auto;
  padding: 16px 24px 20px 24px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  padding-top: 10px;
}

.footer-text {
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #6B7280;
}

.footer-text span {
  margin: 0 16px;
  display: inline-block;
}

@media (max-width: 960px) {
  .navbar-middle {
    display: none;
  }

  .navbar {
    gap: 12px;
  }
}


/* Modal styles from previous version */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.modal-basic-info {
  width: 720px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0px 34px 44px -20px rgba(185, 206, 234, 0.25);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.modal-title {
  flex: 1;
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: #1E293B;
  text-align: left;
  /* Align to left to match grid usually, or Keep Center? User asked to beautify logic. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Left align title and subtitle */
  gap: 4px;
}

.modal-close {
  top: 0 !important;
  right: 0 !important;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#current-rank-display {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content */
  margin: 4px 0 0 0;
  /* Add top margin, remove others */
}

.modal-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.modal-info {
  width: 100%;
  max-width: 100%;
  min-height: 291.95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.info-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-item {
  width: 176px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-item.expiry {
  height: 70px;
}

.info-label {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
}

.info-value {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.info-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  height: 22px;
  color: rgba(0, 0, 0, 0.9);
  text-align: center;
  outline: none;
}

.info-input:focus {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.info-chip {
  align-self: center;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 3px;
  background: #F2F3FF;
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #0052D9;
  white-space: nowrap;
}

.modal-actions {
  display: flex;
  justify-content: center;
}

.modal-primary-btn {
  border: 0;
  cursor: pointer;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(3, 161, 234, 1) 0%, rgba(32, 91, 175, 1) 100%);
  color: #FFFFFF;
  padding: 10px 18px;
  height: 44px;
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Password Change Modal Styles */
.modal-password {
  width: 450px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0px 34px 44px -20px rgba(185, 206, 234, 0.25);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.modal-header-spacer {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field-label {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19.36px;
  color: #000000;
}

.input-gradient {
  width: 100%;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(164deg, rgba(226, 230, 255, 1) 24%, rgba(255, 234, 227, 1) 95%);
}

.field-input {
  width: 100%;
  height: 44px;
  border-radius: 7px;
  border: 0;
  padding: 0 12px;
  background: #F5F6F9;
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #0F172A;
  outline: none;
}

.field-input::placeholder {
  color: #7D91A1;
}

.primary-btn {
  width: 180px;
  height: 48px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(3, 161, 234, 1) 0%, rgba(32, 91, 175, 1) 100%);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

/* Rank Badge Container in Navbar */
#user-rank-badge {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

#user-rank-badge .rank-badge {
  height: 29px;
}

/* Rank Intro Modal Styles */
.modal-rank-intro {
  width: 1144px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0px 34px 44px -20px rgba(185, 206, 234, 0.25);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.current-card {
  border-radius: 9px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.current-card-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px 16px;
}

.current-rank {
  width: 312px;
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.9);
  text-align: right;
  white-space: nowrap;
}

.rank-row {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.rank-card {
  width: 200px;
  border-radius: 9px;
  background: #F2F2F5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rank-card.is-active {
  background: #EAF0FF;
}

.rank-icon {
  width: 128px;
  height: 155px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.rank-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px 16px;
}

.rank-title-row {
  display: flex;
  /* justify-content: space-between; */
  align-items: flex-start;
  gap: 8px;
}




.rank-title {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
}

.rank-title.gray9 {
  color: #5E5E5E;
}

.rank-title.bronze {
  color: rgba(170, 180, 27, 0.9);
}

.rank-title.gray6 {
  color: #A6A6A6;
}

.rank-title.gold {
  color: rgba(235, 181, 33, 0.9);
}

.rank-title.gray8 {
  color: #777777;
}

.rank-title.diamond {
  color: rgba(219, 203, 19, 0.6);
}

.rank-title.master {
  color: rgba(174, 33, 144, 0.9);
}

.rank-title.grandmaster {
  color: #D54941;
}

.rank-title.king {
  color: #E37318;
}

.rank-tag {
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 3px;
  background: #F2F3FF;
  font-family: "PingFang SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 16px;
  color: #0052D9;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-footnote {
  width: 1080px;
  max-width: 100%;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19.36px;
  color: #475569;
  text-align: center;
}

/* Account Activation Modal Styles */
.modal-activate {
  width: 705px;
  max-width: calc(100vw - 48px);
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0px 34px 44px -20px rgba(185, 206, 234, 0.25);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
}

.modal-activate .modal-content {
  display: flex;
  gap: 32px;
}

.modal-left {
  width: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.modal-left-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  color: #475569;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19.36px;
  text-align: center;
  white-space: pre-line;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 330px;
}

.field-input-wrap {
  position: relative;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(164deg, rgba(226, 230, 255, 1) 24%, rgba(255, 234, 227, 1) 95%);
}

.modal-left-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.modal-submit {
  width: 280px;
  height: 48px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(3, 161, 234, 1) 0%, rgba(32, 91, 175, 1) 100%);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.modal-try {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19.36px;
  color: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.modal-divider {
  width: 1px;
  height: 281px;
  background: #E7E7E7;
  flex-shrink: 0;
}

.modal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.modal-right-title {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 19.36px;
  color: #475569;
  white-space: nowrap;
}

.modal-qr {
  width: 246px;
  height: 246px;
  display: block;
}

@media (max-width: 768px) {
  .modal-activate {
    width: auto;
    max-width: calc(100vw - 32px);
    align-items: stretch;
    padding: 20px 16px;
    gap: 20px;
  }

  .modal-activate .modal-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .modal-divider {
    width: 100%;
    height: 1px;
  }

  .modal-left {
    width: 100%;
    max-width: 330px;
  }
}

/* Toast Notification Styles */
/* Toast 容器 */
#toast-container {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100002;
  /* 确保在最上层 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  /* 允许点击穿透 */
}

/* 单个 Toast */
.toast {
  min-width: 250px;
  max-width: 350px;
  padding: 15px 20px;
  border-radius: 50px;
  color: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 居中文本 */
  text-align: center;
  /* 居中文本 */
  pointer-events: auto;
  /* 允许 Toast 接收事件 */
}

/* 成功 Toast */
.toast.success {
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.4);
  background-image: linear-gradient(#00ff00, #009245);
}

/* 错误 Toast */
.toast.error {
  background-image: linear-gradient(#ff6474, #e01c4c);
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.4);
}

/* 信息 Toast */
.toast.info {
  background-image: linear-gradient(#31cdee, #0962a4);
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.4);
}

/* 淡出效果 */
.toast.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes toast-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* Styles migrated from welcome.ejs */
:root {
  --brand-grad-270: linear-gradient(270deg,
      rgba(164, 227, 255, 1) 0%,
      rgba(18, 120, 197, 1) 100%);
  --primary-grad-90: linear-gradient(90deg,
      rgba(3, 161, 234, 1) 0%,
      rgba(32, 91, 175, 1) 100%);

  --tag-primary-bg: #f2f3ff;
  --tag-primary-fg: #0052d9;

  --tag-success-bg: #e3f9e9;
  --tag-success-fg: #2ba471;

  --tag-warning-bg: #fff1e9;
  --tag-warning-fg: #e37318;

  --tag-danger-bg: #fff0ed;
  --tag-danger-fg: #d54941;

  --card-radius: 9px;
  --pill-radius: 16px;
}

.feed {
  width: min(960px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
  margin: 0 auto;
}

.card {
  flex: 1 1 312px;
  max-width: 312px;
  background: #ffffff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);


}

.card__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 312 / 243;
  background: var(--brand-grad-270);
  overflow: hidden;
}

.card__hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.brand-badge {
  width: 100px;
  position: absolute;
  top: 7.1%;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #ffffff;
  border-radius: var(--pill-radius);
}

.brand-badge__part {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-badge__icon {
  width: 16px;
  height: 16px;
  object-fit: cover;
}

.brand-badge__logo {
  /* width: 64px; */
  object-fit: contain;
}

.brand-badge__name {
  font-family: TencentSans, "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.5;
  color: #020f30;
  white-space: nowrap;
}

.brand-badge__course {
  font-family: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.6;
  color: #000000;
  white-space: nowrap;
}

.brand-badge__divider {
  width: 1px;
  height: 16px;
  background: #e8e8e8;
}

.info-pill {
  position: absolute;
  left: 3.8%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--pill-radius);
  background: var(--pill-bg);
  color: #ffffff;
}

.info-pill--a {
  top: 70.4%;
}

.info-pill--b {
  top: 84.6%;
}

.info-pill__dot {
  font-family: TencentSans, "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.5;
  color: #0790d9;
}

.info-pill__text {
  font-family: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 8px;
  line-height: 2;
  white-space: nowrap;
}

.card__content {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.card__title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.375 !important;
  color: #000000E5 !important;
  font-family: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--primary {
  background: var(--tag-primary-bg);
  color: var(--tag-primary-fg);
}

.tag--success {
  background: var(--tag-success-bg);
  color: var(--tag-success-fg);
}

.tag--warning {
  background: var(--tag-warning-bg);
  color: var(--tag-warning-fg);
}

.tag--danger {
  background: var(--tag-danger-bg);
  color: var(--tag-danger-fg);
}

.card__actions {
  display: flex;
  justify-content: flex-end;
}


.card__actions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 16px;
  background: linear-gradient(90deg, rgba(3, 161, 234, 1) 0%, rgba(32, 91, 175, 1) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.card__actions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 161, 234, 0.4);
}

.card__actions-btn svg {
  transition: transform 0.2s;
}

.card__actions-btn:hover svg {
  transform: translateX(2px);
}


/* Banner Carousel Indicators */
.banner-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  width: 24px;
  background: #FFFFFF;
}

/* Beautified Profile Modal Styles */
.profile-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

@media (max-width: 640px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-label {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

.profile-input-wrap {
  display: flex;
  align-items: center;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  height: 48px;
  padding: 0 16px;
  transition: all 0.2s ease;
}

.profile-input-wrap:focus-within {
  background-color: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-icon {
  width: 20px;
  height: 20px;
  color: #94A3B8;
  margin-right: 12px;
  flex-shrink: 0;
}

.profile-input-wrap:focus-within .profile-icon {
  color: #3B82F6;
}

.profile-input {
  flex: 1;
  border: none;
  background: transparent;
  height: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #1E293B;
  outline: none;
  width: 100%;
}

.profile-value {
  flex: 1;
  font-size: 14px;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom Select styling to match */
select.profile-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0 center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* VIP/Expiry Special Style */
.profile-input-wrap.is-vip {
  background: linear-gradient(to right, #FFFBF0, #FFF7E6);
  border-color: #FDE68A;
}

.profile-input-wrap.is-vip .profile-icon {
  color: #D97706;
}

.profile-value-btn {
  background: transparent;
  border: none;
  color: #D97706;
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  cursor: default;
}

.profile-input:disabled {
  background-color: transparent;
  color: #64748B;
  cursor: not-allowed;
}

.modal-subtitle {
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;

}

/* User Guide Styles */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: transparent;
}

.guide-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 10003 !important;
  pointer-events: auto;
}

.guide-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.guide-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.guide-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

.guide-close-btn {
  background: linear-gradient(90deg, #03a1ea 0%, #205baf 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s;
}

.guide-close-btn:hover {
  transform: scale(1.05);
}

.guide-highlight {
  position: absolute;
  border-radius: 12px;
  /* Massive shadow to dim the rest of the screen */
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75), 0 0 0 4px #FFD700;
  z-index: 10001;
  pointer-events: none;
  transition: all 0.3s ease;
}

.guide-highlight::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  animation: guide-pulse 2s infinite;
}

@keyframes guide-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}