/* MSC Psychology - 首页样式 */
/* 仅导航全屏；其他区域全部限制在 1440px 内 */

:root {
  --msc-nav-bg: #1b325f;
  --msc-primary: #D55543;
  --msc-primary-light: #F3DBD9;
  --msc-red: #D55543;
  --msc-text-dark: #21395D;
  --msc-text-gray: #666666;
  --msc-text-light: #999999;
  --msc-content-width: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--msc-text-dark);
  background: #fff;
}

/* ========== 顶部导航（全屏宽度，内容区 1440px 与下方对齐） ========== */
.msc-nav-wrap {
  width: 100%;
  background: var(--msc-nav-bg);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msc-nav-inner {
  width: 100%;
  max-width: var(--msc-content-width);
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.msc-logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.msc-logo:hover {
  color:#fff;
  text-decoration: none;
}
.msc-logo-img {
  display: block;
  max-height: 40px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}
.msc-nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.msc-nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 4px 0;
}

.msc-nav-links a:hover,
.msc-nav-links a.active {
  color:#fff;
  text-decoration: none;
  font-weight: bold;
}

.msc-nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.msc-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}

.msc-cart:hover {
  color:#fff;
  text-decoration: none;
}
.msc-cart img {
  width: 20px;
  height: 20px;
  display: block;
}

/* 导航右侧文字链接 */
.msc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}

.msc-nav-link:hover {
  color:#fff;
  text-decoration: none;
}

.msc-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 200px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}

.msc-nav-user:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.msc-nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.msc-nav-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.msc-nav-link.msc-nav-link--plain {
  gap: 0;
}

.msc-btn-login {
  display: inline-block;
  padding: 12px 28px;
  background: var(--msc-primary);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.msc-btn-login:hover {
  opacity: 0.9;
  color:#fff;
  text-decoration: none;
}

/* ========== 内容区容器：除导航外全部限制在 1440px ========== */
.msc-content {
  width: var(--msc-content-width);
  margin: 0 auto;
  padding: 0;
  background: #f5f5f5;
}

/* ========== Hero：AmazeUI 轮播（home_banner 同源）+ 文案叠层 ========== */
.msc-hero-wrap {
  width: 100%;
  height: 620px;
  position: relative;
  overflow: hidden;
  background: #e8edf2;
  border-radius: 0;
}

.msc-hero-wrap--static {
  background: #fff url(../images/banner.png) no-repeat center center;
  background-size: cover;
}

.msc-hero-banner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.msc-hero-banner .msc-hero-am-slider,
.msc-hero-banner .msc-hero-am-slider .am-slides,
.msc-hero-banner .msc-hero-am-slider .am-slides > li {
  height: 620px;
}

.msc-hero-banner .msc-hero-am-slider .am-slides > li > a {
  display: block;
  height: 100%;
  max-width: none;
  margin: 0;
}

.msc-hero-banner .msc-hero-am-slider .am-slides > li img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.msc-hero-banner .am-slider-a1 .am-control-nav {
  bottom: 24px;
  z-index: 3;
}

.msc-hero-inner {
  width: 100%;
  padding: 114px 56px 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.msc-hero-inner a,
.msc-hero-inner button {
  pointer-events: auto;
}

.msc-hero-left {
  flex: 0 0 648px;
  max-width: 648px;
}

.msc-hero-title {
  font-size: 52px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0 0 20px 0;
  line-height: 1.35;
}

.msc-hero-subtitle {
  font-size: 52px;
  font-weight: bold;
  color: var(--msc-red);
  margin: 0 0 28px 0;
  line-height: 1.25;
}

.msc-hero-desc {
  font-size: 18px;
  color: #21395D;
  line-height: 1.8;
  margin: 0 0 40px 0;
  max-width: 554px;
}

.msc-hero-btns {
  display: flex;
  align-items: center;
  gap: 20px;
}

.msc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--msc-primary);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.msc-btn-primary:hover {
  opacity: 0.9;
}

.msc-btn-primary img {
  width: 18px;
  height: 18px;
}

.msc-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--msc-primary-light);
  color: var(--msc-red);
  text-decoration: none;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

.msc-btn-secondary:hover {
  opacity: 0.9;
}

/* ========== 数据卡片区域（严格按 1440px 设计图，单一外框） ========== */
.msc-stats-wrap {
  width: 100%;
  padding: 0 0 0;
  margin-top: -45px;
  position: relative;
  z-index: 10;
}

.msc-stats-inner {
  width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 0 auto;
  height: 145px;
}

.msc-stat-card {
  padding: 22px 40px;
  text-align: center;
}

.msc-stat-num {
  font-size: 40px;
  font-weight: bold;
  color: #21395D;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.msc-stat-desc {
  font-size: 14px;
  font-weight: normal;
  color: #8E99AC;
  margin: 0;
  line-height: 1.5;
}

/* ========== 首页热门商品（设计稿：上图下文、角标、金评星、浅粉购物车） ========== */
.msc-hot-goods-wrap {
  width: 100%;
  padding: 64px 80px 56px;
  background: #f5f5f5;
}

.msc-hot-goods-head {
  text-align: center;
  margin-bottom: 48px;
}

.msc-hot-goods-title {
  font-size: 34px;
  font-weight: bold;
  color: #21395D;
  margin: 0 0 10px 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.msc-hot-goods-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: normal;
  color: #8E99AC;
  text-decoration: none;
}

.msc-hot-goods-more:hover {
  color: var(--msc-primary);
}

.msc-hot-goods-more-arrow {
  font-size: 16px;
  line-height: 1;
  color: #8E99AC;
}

.msc-hot-goods-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* 卡片：白底、大圆角、柔和阴影；无描边、无内边距，上图下文分区 */
.msc-hot-goods-wrap .msc-hot-goods-card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(33, 57, 93, 0.09);
  border: none;
}

.msc-hot-goods-wrap .msc-hot-goods-card:hover {
  box-shadow: 0 6px 28px rgba(33, 57, 93, 0.12);
}

.msc-hot-goods-card-top {
  position: relative;
  width: 100%;
}

.msc-hot-goods-wrap .msc-hot-goods-tags {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.msc-hot-goods-wrap .msc-hot-goods-tags .msc-tag {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.msc-hot-goods-wrap .msc-hot-goods-badge-hot {
  background: #e02020;
}

.msc-hot-goods-wrap .msc-hot-goods-badge-points {
  background: #2563eb;
}

.msc-hot-goods-wrap .msc-hot-goods-badge-adv {
  background: #e6980d;
}

.msc-hot-goods-wrap .msc-hot-goods-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  border-radius: 14px 14px 0 0;
  margin: 0;
  background: #eef2f6;
  overflow: hidden;
}

.msc-hot-goods-wrap .msc-hot-goods-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msc-hot-goods-card-body {
  padding: 22px 24px 24px;
  background: #fff;
}

.msc-hot-goods-wrap .msc-hot-goods-card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.msc-hot-goods-wrap .msc-hot-goods-card-title a {
  color: #21395D;
}

.msc-hot-goods-wrap .msc-hot-goods-rating {
  margin-bottom: 10px;
  gap: 8px;
}

.msc-hot-goods-wrap .msc-hot-goods-stars {
  gap: 3px;
  align-items: center;
}

.msc-hot-goods-wrap .msc-hot-goods-stars > img {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.msc-hot-goods-star-half {
  display: inline-flex;
  width: 8px;
  height: 16px;
  overflow: hidden;
  flex-shrink: 0;
  align-items: center;
}

.msc-hot-goods-star-half img {
  width: 16px;
  height: 16px;
  max-width: none;
  display: block;
}

.msc-hot-goods-wrap .msc-hot-goods-rating-num {
  font-size: 14px;
  font-weight: 600;
  color: #c9a227;
}

.msc-hot-goods-wrap .msc-hot-goods-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  color: #8E99AC;
  line-height: 1.65;
  margin: 0 0 18px 0;
  min-height: calc(1.65em * 2);
}

.msc-hot-goods-wrap .msc-hot-goods-price-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  align-items: center;
}

.msc-hot-goods-wrap .msc-hot-goods-price-wrap {
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.msc-hot-goods-wrap .msc-hot-goods-price {
  font-size: 24px;
  font-weight: bold;
  color: #e5402f;
}

.msc-hot-goods-wrap .msc-hot-goods-price .msc-price-decimal {
  font-size: 15px;
  font-weight: bold;
}

.msc-hot-goods-wrap .msc-hot-goods-points {
  font-size: 13px;
  color: #8E99AC;
}

/* ========== 课程体系标题区（1440px 设计图） ========== */
.msc-course-title-wrap {
  width: 100%;
  padding: 48px 80px 40px;
  text-align: center;
  background: #f5f5f5;
}

.msc-course-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.msc-course-subtitle {
  font-size: 18px;
  color: #586375;
  margin: 0;
  line-height: 1.5;
}

/* ========== 课程卡片区（3 列，1440px 设计图） ========== */
.msc-course-cards-wrap {
  width: 100%;
  padding: 0 80px 80px;
  background: #f5f5f5;
}

.msc-course-cards-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.msc-course-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 32px 28px 28px;
  position: relative;
}

.msc-course-card-icon {
  width:56px;
  height:56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.msc-course-card-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}


.msc-course-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #101e2c;
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.msc-course-card-desc {
  font-size: 14px;
  color: #878e95;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.msc-course-card-list {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.msc-course-card-list li {
  font-size: 14px;
  color: #21395D;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.msc-course-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: url("../images/icon-check.png") no-repeat center;
  background-size: contain;
}

.msc-course-card-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--msc-red);
  color: var(--msc-red);
  background: #fff;
}

.msc-course-card-btn:hover {
  opacity: 0.9;
}

.msc-course-btn-primary {
  background: var(--msc-primary);
  color: #fff;
  border-color: var(--msc-primary);
}

/* ========== 会员积分排行榜（整区背景图） ========== */
.msc-leaderboard-wrap {
  width: 100%;
  min-height: 420px;
  padding: 64px 80px 80px;
  background-color: #213053;
  background-image: url(../images/leaderboard-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.msc-leaderboard-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.msc-leaderboard-left {
  flex: 0 0 648px;
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}

.msc-leaderboard-title {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.msc-leaderboard-desc {
  font-size: 16px;
  color: #fff;
  line-height: 1.75;
  margin: 0 0 28px 0;
  max-width: 648px;
}

.msc-leaderboard-info-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 32px;
  justify-content: flex-start;
}

/* 购买卡牌/赛事名次：横排图标（左图标 + 右文字） */
.msc-leaderboard-info-card {
  flex: 1;
  max-width: 273px;
  background: #384D6E;
  border-radius: 8px;
  padding: 20px 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  height: 56px;
}

.msc-leaderboard-info-card .msc-leaderboard-info-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msc-leaderboard-info-card .msc-leaderboard-info-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.msc-leaderboard-info-card .msc-leaderboard-info-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.msc-leaderboard-info-label {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.msc-leaderboard-info-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.msc-leaderboard-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 14px 32px;
  background: var(--msc-primary);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
}

.msc-leaderboard-cta:hover {
  opacity: 0.9;
}

.msc-leaderboard-right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 本季 TOP3 积分动态（卡片单独背景图） */
.msc-top3-card {
  width: 100%;
  max-width: 520px;
  min-height: 364px;
  background-image: url(../images/top3-card-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 45px 24px 20px;
}

.msc-top3-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--msc-text-dark);
  text-align: center;
  margin: 0 0 10px 0;
}

.msc-top3-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msc-top3-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

/* 底线从头像右侧开始，不经过头像 */
.msc-top3-item::after {
  content: "";
  position: absolute;
  left: 64px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.msc-top3-item:last-child::after {
  display: none;
}

.msc-top3-avatar-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  position: relative;
}

.msc-top3-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.msc-top3-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  color: #666;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
}

.msc-top3-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msc-top3-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--msc-text-dark);
}

.msc-top3-cert {
  font-size: 12px;
  color: #8E99AB;
}

.msc-top3-badge-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.msc-top3-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #FCBD00;
  background: #FFF7DD;
  border-radius: 4px;
  white-space: nowrap;
}

.msc-top3-score-wrap {
  flex-shrink: 0;
  width: 80px;
  min-width: 80px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msc-top3-score {
  font-size: 20px;
  font-weight: bold;
  color: var(--msc-text-dark);
}

.msc-top3-change {
  font-size: 13px;
  color: #52c41a;
}

/* ========== MSC 心理学卡牌赛事推荐（卡片背景图 + 底部遮罩） ========== */
.msc-events-wrap {
  width: 100%;
  padding: 56px 80px 80px;
  background: #fff;
}

.msc-events-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--msc-text-dark);
  text-align: center;
  margin: 0 0 40px 0;
}

.msc-events-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.msc-event-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  text-decoration: none;
  color: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



.msc-event-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 14px;
}

.msc-event-badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  vertical-align: middle;
}

.msc-event-badge-hot {
  background: var(--msc-primary);
}

.msc-event-badge-soon {
  background: #213053;
}

.msc-event-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(33, 57, 93, 0) 35%, rgba(33, 57, 93, 0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.msc-event-card-overlay-inner {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}


.msc-event-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.msc-event-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  margin: 0 0 12px 0;
  flex: 1;
}

.msc-event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.msc-event-card-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.msc-event-card-btn {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.msc-event-card:hover .msc-event-card-btn {
  text-decoration: underline;
}

/* ========== 页脚（深蓝底，曲线背景限制在内容区宽度） ========== */
.msc-footer-wrap {
  width: 100%;
  background-color: #213053;
  padding: 56px 80px 48px;
}

.msc-footer-inner {
  width: 100%;
  max-width: var(--msc-content-width);
  margin: -56px auto -48px;
  padding: 56px 0 48px;
  background-image: url(../images/footer-bg.png);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.msc-footer-col {
  color: #fff;
}

.msc-footer-title {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 0 16px 0;
}

.msc-footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin: 0;
}

.msc-footer-heading {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 20px 0;
}

.msc-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msc-footer-links li {
  margin-bottom: 12px;
}

.msc-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.msc-footer-links a:hover {
  color: #fff;
}

.msc-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.msc-footer-contact-rows .msc-footer-contact-item:last-child {
  margin-bottom: 0;
}

.msc-footer-contact-rows {
  margin-bottom: 20px;
}

.msc-footer-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.msc-footer-qr-inner {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  line-height: 0;
  box-sizing: border-box;
}

.msc-footer-qr-img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  vertical-align: top;
}

.msc-footer-qr-caption {
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  width: 100%;
}

.msc-footer-contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
}

.msc-footer-contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.msc-footer-copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-top: 24px;
}

.msc-footer-copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

/* ========== 右侧整页浮动按钮（按设计图：圆角方、浅红/白底） ========== */
.msc-float-btns {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msc-float-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.msc-float-btn:hover {
  opacity: 0.9;
}

.msc-float-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

/* 上按钮：浅红底 + 红色购物车图标 */
.msc-float-btn-cart {
  background: #fbe4e5;
}

/* 下按钮：白底 + 深蓝耳机图标 */
.msc-float-btn-service {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 1480px) {
  .msc-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 1200px) {
  .msc-hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 56px 32px 72px;
  }
  .msc-hero-left {
    flex: none;
    max-width: 100%;
  }
  .msc-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .msc-hero-btns {
    justify-content: center;
  }
  .msc-nav-inner {
    padding: 0 32px;
  }
  .msc-hot-goods-wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
  .msc-course-title-wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .msc-nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    padding: 12px 24px;
  }
  .msc-nav-links {
    display: none;
  }
  .msc-hero-wrap {
    height: 380px;
    min-height: 0;
  }
  .msc-hero-banner .msc-hero-am-slider,
  .msc-hero-banner .msc-hero-am-slider .am-slides,
  .msc-hero-banner .msc-hero-am-slider .am-slides > li {
    height: 380px;
  }
  .msc-hero-inner {
    padding: 40px 24px 56px;
  }
  .msc-hero-title {
    margin-bottom: 16px;
  }
  .msc-hero-subtitle {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .msc-hero-desc {
    margin-bottom: 32px;
  }
  .msc-hero-btns {
    gap: 12px;
  }
  .msc-hot-goods-wrap {
    padding: 40px 24px 40px;
  }
  .msc-hot-goods-title {
    font-size: 26px;
  }
  .msc-hot-goods-head {
    margin-bottom: 28px;
  }
  .msc-hot-goods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .msc-course-title-wrap {
    padding: 32px 24px 24px;
  }
}

/* ========== MSC 商品搜索/列表页 ========== */


.msc-search-page .msc-search-inner {
  display: flex;
  gap: 24px;
  padding: 40px 80px 56px;
  max-width: var(--msc-content-width);
  margin: 0 auto;
}

/* 左侧筛选 */
.msc-search-sidebar {
  flex: 0 0 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 24px;
  width: 280px;
}

.msc-search-sidebar-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.msc-filter-block {
  margin-bottom: 24px;
}

.msc-filter-block:last-child {
  margin-bottom: 0;
}

.msc-filter-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--msc-text-dark);
  margin: 0 0 12px 0;
}

.msc-filter-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.msc-filter-category-link {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--msc-text-dark);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.msc-filter-category-link:hover {
  background: #e5e7eb;
}

.msc-filter-category-link.active {
  background: #21395D;
  color: #fff;
}

.msc-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--msc-text-dark);
  cursor: pointer;
  margin-bottom: 10px;
}

.msc-filter-check-input {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.msc-filter-check .msc-check-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
}

.msc-filter-check .msc-check-off,
.msc-filter-check .msc-check-on {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: block;
}

.msc-filter-check .msc-check-on {
  display: none;
}

.msc-filter-check input:checked ~ .msc-check-icon .msc-check-off {
  display: none;
}

.msc-filter-check input:checked ~ .msc-check-icon .msc-check-on {
  display: block;
}

.msc-filter-price {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.msc-input-price {
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: var(--msc-text-dark);
}

.msc-input-price::placeholder {
  color: var(--msc-text-light);
}

.msc-price-sep {
  color: var(--msc-text-light);
  font-size: 14px;
}

.msc-btn-redeem {
  width: 100%;
  padding: 12px 16px;
  color: #D55543;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #F3DBD9;
  background: #fff;
}


/* 右侧主内容 */
.msc-search-main {
  flex: 1;
  min-width: 0;
}

.msc-search-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.msc-search-count {
  font-size: 14px;
  color: var(--msc-text-gray);
  margin: 0;
}

.msc-search-count-num{
  font-weight: bold;
}

.msc-search-sort {
  display: flex;
  gap: 12px;
}

.msc-sort-btn {
  padding: 10px 20px;
  background: #f3f4f6;
  color: var(--msc-text-dark);
  font-size: 14px;
  border: none;
  border-radius: 56px;
  cursor: pointer;
  text-decoration: none;
}

.msc-sort-btn:hover {
  background: #e5e7eb;
}

.msc-sort-btn.active {
  background: #21395D;
  color: #fff;
}

/* 商品网格 */
.msc-search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.msc-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.msc-product-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.msc-product-card-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.msc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  color: #fff;
}

.msc-tag-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.msc-tag-hot {
  background: #dc2626;
}

.msc-tag-points {
  background: #21395D;
}

.msc-tag-advanced {
  background: #ca8a04;
}

.msc-tag-new {
  background: #16a34a;
}

.msc-product-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f8fafc;
}

.msc-product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msc-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dcfce7 0%, #fef3c7 50%, #dbeafe 100%);
  color: var(--msc-text-gray);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.msc-product-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.msc-product-card-title a {
  color: var(--msc-text-dark);
  text-decoration: none;
}

.msc-product-card-title a:hover {
  color: var(--msc-primary);
}

.msc-product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.msc-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.msc-stars img {
  width: 14px;
  height: 14px;
  display: block;
}

.msc-rating-num {
  font-size: 14px;
  color: var(--msc-text-gray);
}

.msc-product-card-desc {
  font-size: 13px;
  color: var(--msc-text-gray);
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 价格区域整行：顶部分隔线，左价格+积分，右购物车按钮 */
.msc-product-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.msc-product-card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.msc-product-card-price {
  font-size: 20px;
  font-weight: bold;
  color: #e5402f;
  margin: 0;
}

.msc-product-card-price .msc-price-decimal {
  font-size: 14px;
  font-weight: normal;
}

.msc-product-card-points {
  font-size: 13px;
  color: #999999;
  margin: 0;
  flex-shrink: 0;
}

.msc-product-card-cart {
  flex-shrink: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  display: block;
  background: transparent;
  line-height: 0;
}

.msc-product-card-cart:hover {
  opacity: 0.9;
}

.msc-product-card-cart img {
  display: block;
  width: 48px;
  height: 44px;
  object-fit: contain;
}

/* 分页 */
.msc-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.msc-page-btn,
.msc-page-num {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--msc-text-dark);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.msc-page-btn:hover,
.msc-page-num:hover {
  border-color: #21395D;
  color: #21395D;
}

.msc-page-num.active {
  background: #21395D;
  border-color: #21395D;
  color: #fff;
}

.msc-page-ellipsis {
  padding: 0 4px;
  color: var(--msc-text-light);
  font-size: 14px;
}

/* GetPageHtml 生成的分页：改为当前 msc 样式（仅搜索页） */
.msc-search-page .am-nbfc .am-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.msc-search-page .am-nbfc .am-pagination > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msc-search-page .am-nbfc .am-pagination > li > a {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--msc-text-dark);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.msc-search-page .am-nbfc .am-pagination > li > a:hover {
  border-color: #21395D;
  color: #21395D;
}

.msc-search-page .am-nbfc .am-pagination > li.am-active > a {
  background: #21395D;
  border-color: #21395D;
  color: #fff;
}

.msc-search-page .am-nbfc .am-pagination > li.am-disabled > a {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* 上一页、下一页使用背景图 */
.msc-search-page .am-nbfc .am-pagination > li:nth-child(2) > a {
  background-image: url(../images/page-prev.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
  font-size: 0;
}

.msc-search-page .am-nbfc .am-pagination > li:nth-child(2) > a:hover {
  color: transparent;
  background-image: url(../images/page-prev.png);
}

.msc-search-page .am-nbfc .am-pagination > li:nth-last-of-type(2) > a {
  background-image: url(../images/page-next.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
  font-size: 0;
}

.msc-search-page .am-nbfc .am-pagination > li:nth-last-of-type(2) > a:hover {
  color: transparent;
  background-image: url(../images/page-next.png);
}

/* 隐藏第一页、最后一页按钮 */
.msc-search-page .am-nbfc .am-pagination > li:first-of-type,
.msc-search-page .am-nbfc .am-pagination > li:last-of-type {
  display: none !important;
}

/* 隐藏分页区域后的“每页条数、跳转、总数”等 */
.msc-search-page .am-nbfc .am-pagination > span,
.msc-search-page .am-nbfc .am-pagination > input,
.msc-search-page .am-nbfc .am-pagination > div {
  display: none !important;
}

/* 搜索页响应式 */
@media (max-width: 1200px) {
  .msc-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .msc-search-page .msc-search-inner {
    flex-direction: column;
    padding: 24px 24px 40px;
  }

  .msc-search-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }

  .msc-search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .msc-search-grid {
    grid-template-columns: 1fr;
  }

  .msc-search-sort {
    width: 100%;
  }

  .msc-sort-btn {
    flex: 1;
  }
}

/* ========== 个人中心 ========== */
.msc-content.msc-user-page {
  padding: 0;
}

.msc-user-page .msc-user-inner {
  display: flex;
  gap: 24px;
  padding: 32px 56px 64px;
  min-height: 600px;
}

.msc-user-sidebar {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 0;
}

.msc-user-nav {
  display: flex;
  flex-direction: column;
}

.msc-user-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin: 0 12px;
  color: var(--msc-text-dark);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
  border-radius: 8px;
}
/*
.msc-user-nav-item:hover {
  background: var(--msc-primary-light);
  color: var(--msc-red);
}
*/
.msc-user-nav-item.active {
  background: #F0F2F5;
  color: #2E4359;
  font-weight: 500;
  border-radius: 8px;
}

.msc-user-nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msc-user-nav-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.msc-user-nav-item.active .msc-user-nav-icon img {
  opacity: 1;
  /* 图标与文字同色 #2E4359（深蓝灰） */
  filter: brightness(0) saturate(100%) invert(22%) sepia(20%) saturate(800%) hue-rotate(168deg);
}

.msc-user-nav-group {
  margin: 0;
}

.msc-user-nav-parent {
  cursor: pointer;
}

.msc-user-nav-children {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 40px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.msc-user-nav-children a {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 6px 10px;
  margin: 1px 0;
  font-size: 15px;
  color: var(--msc-text-gray);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.msc-user-nav-children a.active {
  background: #f0f2f5;
  color: #2e4359;
  font-weight: 600;
}

/*
.msc-user-nav-children a:hover {
  color: var(--msc-red);
}
*/

.msc-user-nav-logout {
  margin-top: 8px;
  /*border-top: 1px solid rgba(0, 0, 0, 0.06);*/
}

.msc-user-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.msc-user-main-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 个人资料区（框内区块，无独立卡片） */
.msc-user-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.msc-user-profile-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.msc-user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.msc-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.msc-user-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.msc-user-avatar-placeholder svg {
  opacity: 0.7;
}

.msc-user-avatar-upload {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.msc-user-avatar-upload img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}



.msc-user-profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msc-user-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0;
  line-height: 1.3;
}

.msc-user-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #8E99AC;
  text-decoration: none;
}

.msc-user-edit-link:hover {
  color: var(--msc-red);
}

/* 个人资料页（卡片内：标题、头像遮罩编辑、信息行 + 编辑按钮） */
.msc-personal-page {
  font-family: inherit;
}

.msc-personal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.msc-personal-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  line-height: 1.3;
}

.msc-personal-card-dots {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  margin-top: 2px;
  opacity: 0.6;
  background-image: radial-gradient(circle, #d0d0d0 1.25px, transparent 1.25px);
  background-size: 10px 10px;
}

.msc-personal-avatar-row {
  padding: 16px 0 20px;
  border-bottom: 1px solid #f0f0f0;
}

.msc-personal-avatar-hit {
  display: inline-block;
  text-decoration: none;
  vertical-align: top;
}

.msc-personal-avatar-ring {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8e8;
}

.msc-personal-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msc-personal-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  background: linear-gradient(145deg, #e8e8e8, #d6d6d6);
}

.msc-personal-avatar-placeholder svg {
  opacity: 0.75;
}

.msc-personal-avatar-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.msc-personal-avatar-hit:active .msc-personal-avatar-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.msc-personal-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}

.msc-personal-field-row:last-child {
  border-bottom: none;
}

.msc-personal-field-text {
  min-width: 0;
  flex: 1;
}

.msc-personal-field-label {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
}

.msc-personal-field-value {
  margin-top: 6px;
  font-size: 14px;
  color: #888888;
  line-height: 1.45;
  word-break: break-word;
}

.msc-personal-field-empty {
  color: #888888;
}

.msc-personal-edit-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #d65a49;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.msc-personal-edit-btn:hover {
  background: #c24e3f;
  color: #fff !important;
  text-decoration: none;
}

.msc-personal-card-head-aside {
  display: flex;
  align-items: center;
  gap: 20px;
}

.msc-personal-back-link {
  font-size: 14px;
  color: #888888;
  text-decoration: none;
  white-space: nowrap;
}

.msc-personal-back-link:hover {
  color: #d65a49;
  text-decoration: none;
}

/* 个人资料编辑表单 */
.msc-personal-form-wrap {
  margin-top: 12px;
}

.msc-personal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

@media (max-width: 768px) {
  .msc-personal-form-grid {
    grid-template-columns: 1fr;
  }

  .msc-personal-card-head-aside {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
  }
}

.msc-personal-form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
}

.msc-personal-input,
.msc-personal-form-field .am-form-field {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.msc-personal-input:focus,
.msc-personal-form-field .am-form-field:focus {
  outline: none;
  border-color: rgba(214, 90, 73, 0.45);
  box-shadow: 0 0 0 3px rgba(214, 90, 73, 0.12);
}

.msc-personal-form-field--full {
  grid-column: 1 / -1;
}

.msc-personal-form-field--pcs {
  grid-column: 1 / -1;
}

.msc-personal-pcs-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .msc-personal-pcs-row {
    grid-template-columns: 1fr;
  }
}

.msc-personal-pcs-cell label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
}

.msc-personal-form-gender .am-form-group {
  margin-bottom: 0;
}

.msc-personal-form-gender .am-form-group > label.am-block {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
}

.msc-personal-form-gender .am-radio-inline {
  margin-right: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.msc-personal-form-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.msc-personal-form-submit.am-btn {
  width: 100%;
  max-width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #d65a49;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.msc-personal-form-submit.am-btn:hover,
.msc-personal-form-submit.am-btn:focus {
  background: #c24e3f;
  color: #fff;
}

/* 安全中心：手机验证码一行（输入 + 获取验证码） */
.msc-safety-verify-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.msc-safety-verify-input {
  flex: 1 1 180px;
  min-width: 0;
}

.msc-safety-send-code.am-btn {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #d65a49;
  background: #fff;
  color: #d65a49 !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.msc-safety-send-code.am-btn:hover,
.msc-safety-send-code.am-btn:focus {
  background: #fff5f3;
  color: #c24e3f !important;
}

/* 图形验证码弹窗（新手机等） */
.msc-verify-win-dialog {
  border-radius: 12px;
  overflow: hidden;
  max-width: 420px;
}

.msc-verify-win-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.msc-verify-win-title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
}

.msc-verify-win-bd {
  padding: 20px 18px 22px;
}

.msc-verify-win-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msc-verify-win-captcha-input {
  width: 100%;
  box-sizing: border-box;
}

.msc-verify-win-img-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.msc-verify-win-img {
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #e5e5e5;
  display: block;
}

.msc-verify-win-refresh {
  font-size: 14px;
  color: #d65a49;
  text-decoration: none;
}

.msc-verify-win-refresh:hover {
  color: #c24e3f;
  text-decoration: none;
}

.msc-verify-win-submit.am-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #d65a49;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
}

.msc-verify-win-submit.am-btn:hover,
.msc-verify-win-submit.am-btn:focus {
  background: #c24e3f;
  color: #fff !important;
}

/* 我的地址 */
.msc-address-page-head {
  margin-bottom: 4px;
}

.msc-address-toolbar {
  margin: 16px 0 8px;
}

.msc-address-add-btn.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: #d65a49;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
}

.msc-address-add-btn.am-btn:hover,
.msc-address-add-btn.am-btn:focus {
  background: #c24e3f;
  color: #fff !important;
}

.msc-address-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.msc-address-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msc-address-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.msc-address-item.is-default {
  border-color: rgba(214, 90, 73, 0.35);
  background: linear-gradient(180deg, #fffdfb 0%, #fff 48%);
}

.msc-address-item-main {
  flex: 1 1 220px;
  min-width: 0;
}

.msc-address-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.msc-address-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  background: #f3f4f6;
}

.msc-address-tag--default {
  color: #1a7f4c;
  background: #e8f5ee;
}

.msc-address-item-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.msc-address-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.msc-address-phone {
  font-size: 15px;
  color: #666;
}

.msc-address-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #888;
}

.msc-address-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  flex-shrink: 0;
}

.msc-address-action {
  font-size: 14px;
  color: #d65a49;
  text-decoration: none;
  white-space: nowrap;
}

.msc-address-action:hover {
  color: #c24e3f;
  text-decoration: none;
}

.msc-address-action--primary {
  font-weight: 600;
}

.msc-address-action--muted {
  color: #999;
}

.msc-address-action--muted:hover {
  color: #d65a49;
}

.msc-address-empty {
  margin-top: 32px;
  padding: 24px 16px;
  text-align: center;
  border: 1px dashed #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}

.msc-address-empty .table-no {
  margin: 0;
  color: #888;
}

.msc-address-empty .table-no i {
  color: #ccc;
}

@media (max-width: 768px) {
  .msc-address-item-actions {
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
  }
}

/* 新增/编辑地址弹窗外壳（AMUI.dialog.popup → .am-popup.common-address-modal） */
.am-popup.common-address-modal.popup-not-title {
  background: rgba(27, 50, 95, 0.42);
  box-sizing: border-box;
}

.am-popup.common-address-modal.popup-not-title .am-popup-inner {
  position: relative;
  padding-top: 0;
  border-radius: 14px;
  border: none;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  background: #fff;
}

.am-popup.common-address-modal.popup-not-title .am-close.am-close-alt {
  position: absolute;
  left: auto;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: #444;
  border: none;
  box-shadow: none;
  opacity: 1;
  z-index: 20;
  font-size: 16px;
}

.am-popup.common-address-modal.popup-not-title .am-close.am-close-alt:hover {
  background: #d65a49;
  color: #fff;
}

.am-popup.common-address-modal.popup-not-title iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  vertical-align: top;
}

@media all and (min-width: 630px) and (min-height: 630px) {
  .am-popup.common-address-modal {
    width: 700px;
    height: 620px;
    margin-left: -350px;
    margin-top: -310px;
  }
}

@media (max-width: 629px) {
  .am-popup.common-address-modal.popup-not-title {
    padding: 0 0 28px;
    background: #fff;
  }

  .am-popup.common-address-modal.popup-not-title .am-popup-inner {
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .am-popup.common-address-modal.popup-not-title .am-close.am-close-alt {
    left: auto;
    top: 8px;
    right: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
}

/* 地址添加/编辑（弹窗 iframe 内） */
.msc-address-save-page {
  box-sizing: border-box;
  min-height: 0;
  padding: 14px 14px 28px;
  background: #f5f5f5;
}

.msc-address-save-inner {
  max-width: 640px;
  margin: 0 auto;
}

.msc-address-save-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.msc-address-save-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.35;
}

.msc-address-save-form.msc-personal-form-wrap {
  margin-top: 0;
  padding: 20px 18px 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.msc-address-region-block {
  margin: 8px 0 12px;
  padding: 0;
}

.msc-address-region-block .region-linkage {
  margin-bottom: 0;
}

.msc-address-region-block .region-linkage > label.am-block {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  overflow: visible;
}

.msc-address-region-block .region-linkage > label.am-block::after {
  content: '';
  display: table;
  clear: both;
}

.msc-address-region-block .region-linkage .chosen-container {
  margin-bottom: 12px;
  width: 100% !important;
  max-width: 100%;
}

.msc-address-region-block .region-linkage .chosen-container:last-child {
  margin-bottom: 0;
}

.msc-address-region-block .chosen-container-single .chosen-single {
  height: 42px;
  line-height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: none;
}

.msc-address-region-block .chosen-container-active.chosen-with-drop .chosen-single {
  border-color: rgba(214, 90, 73, 0.45);
}

/* 省市区：检索输入 + 按钮（.region-linkage-code） */
.msc-address-region-block .region-linkage-code.am-input-group {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  clear: both;
  border-collapse: separate;
}

.msc-address-region-block .region-linkage-code .am-form-field {
  flex: 1 1 160px;
  min-width: 0;
  width: auto !important;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  box-sizing: border-box;
}

.msc-address-region-block .region-linkage-code .am-form-field:focus {
  outline: none;
  border-color: rgba(214, 90, 73, 0.45);
  box-shadow: 0 0 0 3px rgba(214, 90, 73, 0.12);
}

.msc-address-region-block .region-linkage-code .am-input-group-btn {
  display: flex;
  flex: 0 0 auto;
  width: auto;
  vertical-align: unset;
}

.msc-address-region-block .region-linkage-code .am-btn {
  height: 42px;
  padding: 0 18px;
  margin: 0;
  border: 1px solid #d65a49;
  border-radius: 8px;
  background: #fff;
  color: #d65a49 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  white-space: nowrap;
  box-shadow: none;
}

.msc-address-region-block .region-linkage-code .am-btn:hover,
.msc-address-region-block .region-linkage-code .am-btn:focus {
  background: #fff5f3;
  color: #c24e3f !important;
  border-color: #c24e3f;
}

.msc-address-map-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.msc-address-map-input {
  flex: 1 1 200px;
  min-width: 0;
}

.msc-address-map-btn.am-btn {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #d65a49;
  background: #fff;
  color: #d65a49 !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.msc-address-map-btn.am-btn:hover,
.msc-address-map-btn.am-btn:focus {
  background: #fff5f3;
  color: #c24e3f !important;
}

.msc-address-map-view {
  margin-top: 12px;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #f0f0f0;
}

.msc-address-default-row {
  margin-top: 4px;
  padding-bottom: 4px;
}

.msc-address-idcard-panel {
  margin: 12px 0 0;
  padding: 16px 14px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.msc-address-idcard-panel .am-form-group {
  margin-bottom: 16px;
}

.msc-address-idcard-panel .am-form-group:last-child {
  margin-bottom: 0;
}

.msc-address-idcard-panel label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.msc-address-save-actions.msc-personal-form-actions {
  margin: 20px 0 0;
  padding-top: 18px;
}

/* 统计区（虚线分隔） */
.msc-user-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.msc-user-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  min-width: 100px;
}

.msc-user-stat-divider {
  width: 1px;
  height: 40px;
  border-left: 1px dotted rgba(0, 0, 0, 0.2);
}

.msc-user-stat-num {
  font-size: 24px;
  font-weight: bold;
  color: var(--msc-text-dark);
  line-height: 1.3;
}

.msc-user-stat-label {
  font-size: 14px;
  color: #8E99AC;
  margin-top: 4px;
}

/* 区块标题 */
.msc-user-section {
  padding: 24px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.msc-user-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.msc-user-section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0;
  line-height: 1.3;
}

.msc-user-section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #8E99AC;
  text-decoration: none;
}

.msc-user-section-more-arrow {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
}

.msc-user-section-more:hover {
  color: var(--msc-red);
}

.msc-user-section-more:hover .msc-user-section-more-arrow {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(2000%) hue-rotate(350deg);
}

/* 订单状态卡片（黄色圆角） */
.msc-user-order-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}

.msc-user-order-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 12px;
  min-width: 100px;
  text-decoration: none;
  color: #333333;
  transition: opacity 0.2s;
}

.msc-user-order-card:hover {
  opacity: 0.9;
  color:#fff;
  text-decoration: none;
}

/* 图标容器：浅黄圆角方（squircle） */
.msc-user-order-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.msc-user-order-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msc-user-order-text {
  font-size: 14px;
  font-weight: normal;
  color: #8E99AC;
  text-align: center;
  line-height: 1.4;
}

/* 购物车列表 */
.msc-user-cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msc-user-cart-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}


/* 第1列：商品图，固定宽高 */
.msc-user-cart-img-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.msc-user-cart-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msc-user-cart-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #999;
  background: linear-gradient(135deg, #e8e8e8, #ddd);
}

/* 第2列：商品标题与描述，弹性占满中间 */
.msc-user-cart-body {
  width: 500px;
  height: 96px;
}

.msc-user-cart-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.msc-user-cart-desc {
  font-size: 14px;
  color: #8E99AC;
  margin: 0 0 10px 0;
  line-height: 1.5;
}

/* 第3列：价格与数量，固定宽度，价格在上数量在下 */
.msc-user-cart-meta {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  height: 96px;
}

.msc-user-cart-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--msc-red);
  line-height: 1.3;
}

.msc-user-cart-qty {
  font-size: 14px;
  color: var(--msc-text-light);
  line-height: 1.3;
}

/* 第4列：删除，固定宽度靠右 */
.msc-user-cart-delete {
  flex-shrink: 0;
  width: 70px;
  padding: 8px 16px;
  font-size: 14px;
  color: #8E99AC;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
}

.msc-user-cart-delete:hover {
  color: var(--msc-red);
}

/* ========== 用户中心 · 我的证书 ========== */
.msc-cert-user-page .msc-cert-main {
  position: relative;
  padding-top: 8px;
}

.msc-cert-page-head {
  margin-bottom: 28px;
}

.msc-cert-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a2a4e;
  letter-spacing: 0.02em;
}

/* 时间轴 */
.msc-cert-timeline-wrap {
  position: relative;
  margin-bottom: 40px;
  padding: 0 8px;
}

.msc-cert-timeline-rail {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 5px;
  height: 2px;
  background: #e2e6ed;
  border-radius: 1px;
}

.msc-cert-timeline-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.msc-cert-timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 33.33%;
}

.msc-cert-timeline-caption {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.msc-cert-timeline-done {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #2e3d52;
  font-size: 14px;
  line-height: 1.35;
}

.msc-cert-timeline-label {
  color: #333;
  font-weight: 600;
}

.msc-cert-timeline-date {
  color: #5a6a7e;
  font-size: 13px;
}

.msc-cert-timeline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #c8cfd9;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.msc-cert-lock-icon {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.msc-cert-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.msc-cert-timeline-dot.is-earned {
  background: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.25);
}

.msc-cert-timeline-dot.is-locked {
  background: #cfd6df;
  box-shadow: none;
}

/* 证书卡片 */
.msc-cert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.msc-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.msc-cert-card-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2a4e;
  text-align: center;
  line-height: 1.35;
}

.msc-cert-fly {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.msc-cert-fly img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
}

.msc-cert-card-visual {
  width: 100%;
  max-width: 280px;
  line-height: 0;
}

.msc-cert-visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.msc-cert-exam-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
}

.msc-cert-exam-open:focus {
  outline: none;
}

.msc-cert-exam-open:focus-visible {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.45);
  border-radius: 4px;
}

.msc-cert-exam-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* 证书下方托底（略宽于证书、两头圆角） */
.msc-cert-pedestal {
  position: relative;
  width: calc(100% + 28px);
  max-width: none;
  height: 18px;
  margin-top: 2px;
  margin-bottom: 2px;
  background: #2c3e50;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.38);
}

/* 未获得：弱化 */
.msc-cert-card.is-locked .msc-cert-card-heading {
  color: #b0b8c4;
}

.msc-cert-card.is-locked .msc-cert-fly img {
  opacity: 0.45;
  filter: grayscale(1);
}

.msc-cert-card.is-locked .msc-cert-exam-img {
  filter: grayscale(0.85);
  opacity: 0.9;
}

.msc-cert-card.is-locked .msc-cert-pedestal {
  opacity: 0.55;
  filter: grayscale(0.85);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

/* 证书大图灯箱 */
html.msc-cert-lightbox-on {
  overflow: hidden;
}

.msc-cert-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  box-sizing: border-box;
}

.msc-cert-lightbox.is-open {
  display: flex;
}

.msc-cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.72);
  cursor: pointer;
}

.msc-cert-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 94vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.msc-cert-lightbox-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a2a4e;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.msc-cert-lightbox-close:hover {
  background: #f3f4f6;
  color: #e74c3c;
}

.msc-cert-lightbox-close:focus {
  outline: none;
}

.msc-cert-lightbox-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.msc-cert-lightbox-frame {
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 14px;
  background: #fff;
  border: 8px solid #1a2a4e;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.msc-cert-lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
}

/* 个人中心响应式 */
@media (max-width: 1024px) {
  .msc-user-page .msc-user-inner {
    flex-direction: column;
    padding: 24px 24px 48px;
  }

  .msc-user-sidebar {
    flex: none;
    width: 100%;
  }

  .msc-user-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .msc-user-nav-group {
    width: 100%;
  }

  .msc-user-nav-children {
    padding-left: 20px;
    align-items: flex-start;
  }

  .msc-user-profile-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .msc-user-stats {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .msc-user-stat-divider {
    display: none;
  }

  .msc-user-order-cards {
    justify-content: flex-start;
  }

  .msc-cert-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .msc-cert-timeline-rail {
    left: 8%;
    right: 8%;
    top: 5px;
  }
}

@media (max-width: 600px) {
  .msc-cert-timeline-pill {
    font-size: 12px;
    padding: 5px 10px;
  }

  .msc-user-order-cards {
    justify-content: flex-start;
  }

  .msc-user-cart-item {
    flex-wrap: wrap;
  }

  .msc-user-cart-delete {
    width: 100%;
  }
}

/* ========== 商品详情页（严格按设计图：外框、边距、上基础信息+下内容） ========== */
/* 商品详情页隐藏的规格/数量数据（与 index1 一致，仅供 JS 读取） */
.msc-goods-hidden-data,
.system-goods-detail.msc-goods-hidden-data {
  display: none !important;
}

.msc-content.msc-goods-detail-page {
  padding: 40px 80px;
}

.msc-goods-detail-outer {
  max-width: var(--msc-content-width);
  margin: 0 auto;
}

/* 白色内容外框 + 边距 */
.msc-goods-detail-frame {
  background: #fff;
  border-radius: 12px;
  padding: 40px 48px 48px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 上：基础信息（主图+缩略图+右侧信息） */
.msc-goods-base {
  display: flex;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.msc-goods-gallery {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msc-goods-main-img-wrap {
  width: 400px;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msc-goods-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.msc-goods-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.msc-goods-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f5f5f5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.msc-goods-thumb:hover {
  border-color: #ddd;
}

.msc-goods-thumb.active {
  border-color: #D55543;
}

.msc-goods-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.msc-goods-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.msc-goods-actions {
  margin-top: auto;
  margin-bottom: 87px;
}

.msc-goods-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.msc-goods-tag-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #D55543;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  flex-shrink: 0;
}

.msc-goods-tag-icon {
  flex-shrink: 0;
}

.msc-goods-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.msc-goods-desc {
  font-size: 14px;
  color: var(--msc-text-gray);
  line-height: 1.7;
  margin: 0 0 18px 0;
}

.msc-goods-spec {
  margin-bottom: 20px;
}

.msc-goods-spec-row {
  font-size: 14px;
  color: var(--msc-text-gray);
  margin: 0 0 6px 0;
}

.msc-goods-spec-types {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msc-goods-type-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

/* 商品详情 · 支付方式（有 logo 时用插件自带图；无图时圆底品牌色兜底） */
.msc-goods-pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 6px 0;
}

.msc-goods-pay-label {
  font-size: 14px;
  color: #888888;
  flex-shrink: 0;
}

.msc-goods-pay-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.msc-goods-pay-fallback {
  font-size: 14px;
  color: var(--msc-text-gray);
}

.msc-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  box-sizing: border-box;
}

.msc-pay-icon--alipay {
  background: #5b9aff;
}

.msc-pay-icon--weixin {
  background: #2dc148;
}

.msc-pay-icon--default {
  background: #9e9e9e;
}

.msc-pay-icon--with-logo {
  background: #fff;
  border: 1px solid #ebebeb;
  padding: 3px;
  color: inherit;
}

.msc-pay-icon__logo-native {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.msc-pay-icon__glyph {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  transform: translateY(0.5px);
}

.msc-pay-icon__glyph--sm {
  font-size: 12px;
  font-weight: 600;
}

.msc-pay-icon__svg {
  display: block;
}

.msc-goods-price {
  font-size: 26px;
  font-weight: bold;
  color: var(--msc-red);
  margin: 0 0 24px 0;
}

.msc-goods-actions {
  display: flex;
  gap: 16px;
  padding-top: 16px;
}

.msc-goods-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  background: #D55543;
}

.msc-goods-btn:hover {
  opacity: 0.9;
}

/* 下：详情内容（设计图中下面的图片为内容） */
.msc-goods-content-section {
  margin-top: 0;
}

.msc-goods-content-web {
  width: 100%;
  overflow-x: auto;
}

.msc-goods-content-web.richtext img {
  max-width: 100%;
  height: auto;
}

.msc-goods-content-placeholder {
  max-width: 900px;
  margin: 0 auto;
}

.msc-goods-content-brand {
  font-size: 14px;
  color: var(--msc-text-gray);
  margin-bottom: 16px;
  font-weight: 500;
}

.msc-goods-content-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--msc-text-dark);
  margin: 0 0 8px 0;
}

.msc-goods-content-subtitle {
  font-size: 16px;
  color: var(--msc-text-gray);
  margin: 0 0 24px 0;
}

.msc-goods-content-img-wrap {
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msc-goods-content-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .msc-goods-base {
    flex-direction: column;
    align-items: center;
  }
  .msc-goods-gallery {
    flex: none;
    width: 100%;
    max-width: 480px;
  }
  .msc-goods-info {
    width: 100%;
  }
}

/* ========== 商品详情图片放大镜（imagezoom 插件） ========== */
div.zoomDiv {
  z-index: 9999;
  position: absolute;
  top: 0;
  left: 0;
  width: 450px;
  height: 398px;
  background: #fff;
  border: 1px solid #ccc;
  display: none;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
div.zoomDiv img.bigimg {
  min-width: 1000px;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}
div.zoomMask {
  position: absolute;
  background: rgba(33, 150, 243, 0.25);
  cursor: move;
  z-index: 1;
  visibility: hidden;
}

/* ========== Loading 进度条（$.AMUI.progress，与 common.js 配合） ========== */
#nprogress {
  pointer-events: none;
}
#nprogress .nprogress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 3px;
  background: var(--msc-primary, #d94d3d);
}
#nprogress .nprogress-peg {
  display: block;
  position: absolute;
  right: 0;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px var(--msc-primary, #d94d3d), 0 0 5px var(--msc-primary, #d94d3d);
  opacity: 1;
  transform: rotate(3deg) translate(0, -4px);
}
#nprogress .nprogress-spinner {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2000;
  display: block;
}
#nprogress .nprogress-spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: solid 2px transparent;
  border-top-color: var(--msc-primary, #d94d3d);
  border-left-color: var(--msc-primary, #d94d3d);
  border-radius: 50%;
  animation: msc-nprogress-spinner 400ms linear infinite;
}
@keyframes msc-nprogress-spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== 全局提示 Prompt（common.js Prompt()，加入购物车成功等） ========== */
.common-prompt {
  position: fixed !important;
  left: 50%;
  margin-left: -140px;
  min-width: 280px;
  max-width: 90%;
  z-index: 9999;
  padding: 12px 40px 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  line-height: 1.5;
}
.common-prompt .prompt-content {
  display: flex;
  align-items: center;
  gap: 8px;
}
.common-prompt .prompt-msg {
  margin: 0;
  flex: 1;
}
.common-prompt .am-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  opacity: 0.7;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
.common-prompt .am-close:hover {
  opacity: 1;
}
.common-prompt.am-alert-success {
  background: #5eb95e;
  border: 1px solid #4bad4b;
  color: #fff;
}
.common-prompt.am-alert-danger {
  background: #dd514c;
  border: 1px solid #d83832;
  color: #fff;
}
.common-prompt.am-alert-warning {
  background: #f37b1d;
  border: 1px solid #e56c0c;
  color: #fff;
}
.common-prompt .am-icon-check-circle:before { content: "✓"; font-style: normal; }
.common-prompt .am-icon-times-circle:before { content: "✕"; font-style: normal; }
.common-prompt .am-icon-exclamation-circle:before { content: "!"; font-style: normal; }
[class*="am-animation-slide-top"] {
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}
@keyframes am-slide-top {
  0% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 1; transform: translateY(0); }
}
.am-animation-slide-top {
  animation-name: am-slide-top;
}

/* ========== MSC 课程（文章正文-only，整区铺满） ========== */
.msc-course-article-page {
  width: 100%;
  max-width: var(--msc-content-width);
  box-sizing: border-box;
  background: #fff;
  padding:0;
  color: #333331;
  line-height: 1.75;
}
.msc-course-article-page.richtext img {
  max-width: 100%;
  height: auto;
}

/* ========== MSC 认证介绍页（公开） ========== */
.msc-cert-landing-page {
  background: #f5f7f9;
  padding: 48px 56px 72px;
  max-width: none;
}

.msc-cert-landing-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.msc-cert-landing-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.msc-cert-landing-back {
  margin: -12px 0 20px;
  font-size: 14px;
}

.msc-cert-landing-back a {
  color: #d15a46;
  text-decoration: none;
}

.msc-cert-landing-back a:hover {
  text-decoration: underline;
}

.msc-cert-landing-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(27, 50, 95, 0.08);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.msc-cert-landing-card--search {
  padding: 24px 32px;
}

.msc-cert-landing-search {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.msc-cert-landing-search-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #eff2f5;
  font-size: 15px;
  color: #333;
  outline: none;
}

.msc-cert-landing-search-input::placeholder {
  color: #999;
}

.msc-cert-landing-search-btn {
  flex: 0 0 auto;
  min-width: 100px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 8px;
  background: #d15a46;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.msc-cert-landing-search-btn:hover {
  opacity: 0.92;
}

.msc-cert-landing-search-tip {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px solid #f0dcc8;
  color: #8a5a3c;
  font-size: 14px;
  line-height: 1.5;
}

.msc-cert-landing-page .msc-cert-main {
  position: relative;
  margin-top: 32px;
  margin-bottom: 40px;
  padding-top: 16px;
  padding-bottom: 8px;
}

.msc-cert-landing-rules-heading {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 22px;
}

.msc-cert-landing-levels {
  display: flex;
  gap: 0;
  background: #eff2f5;
  border-radius: 10px;
  padding: 28px 24px 32px;
  overflow: hidden;
}

.msc-cert-landing-level {
  flex: 1 1 0;
  padding: 0 20px;
  border-left: 1px solid rgba(35, 53, 84, 0.12);
}

.msc-cert-landing-level:first-child {
  border-left: none;
}

.msc-cert-landing-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d15a46;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.msc-cert-landing-line {
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  margin: 0 0 12px;
}

.msc-cert-landing-line strong {
  color: #333;
}

.msc-cert-landing-line--assess {
  margin-bottom: 8px;
}

.msc-cert-landing-assess-list {
  margin: 0;
  padding-left: 1.25em;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

.msc-cert-landing-assess-list li {
  margin-bottom: 6px;
}

.msc-cert-landing-cta-wrap {
  text-align: center;
  margin-top: 32px;
}

.msc-cert-landing-cta {
  display: inline-block;
  min-width: 200px;
  padding: 14px 48px;
  border-radius: 8px;
  background: #d15a46;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.msc-cert-landing-cta:hover {
  opacity: 0.92;
  color: #fff !important;
  text-decoration: none;
}

button.msc-cert-landing-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* MSC 认证 · R 法学员询问弹窗 */
html.msc-cert-r-modal-on {
  overflow: hidden;
}

.msc-cert-r-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.msc-cert-r-modal.is-open {
  display: flex;
}

.msc-cert-r-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  cursor: pointer;
}

.msc-cert-r-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(27, 50, 95, 0.18);
  padding: 28px 28px 22px;
  box-sizing: border-box;
}

.msc-cert-r-modal-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #1a2a4e;
  letter-spacing: 0.02em;
}

.msc-cert-r-modal-question {
  margin: 0 0 18px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.msc-cert-r-modal-options {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 18px;
}

.msc-cert-r-modal-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  user-select: none;
}

.msc-cert-r-modal-input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #1b325f;
  cursor: pointer;
}

.msc-cert-r-modal-tip {
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #eff2f5;
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  margin-bottom: 22px;
}

.msc-cert-r-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.msc-cert-r-modal-btn {
  min-width: 88px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.msc-cert-r-modal-btn-secondary {
  background: #e8eaed;
  color: #333;
}

.msc-cert-r-modal-btn-secondary:hover {
  background: #dde0e5;
}

.msc-cert-r-modal-btn-primary {
  background: #d15a46;
  color: #fff;
}

.msc-cert-r-modal-btn-primary:hover {
  opacity: 0.92;
}

@media (max-width: 900px) {
  .msc-course-article-page {
    padding: 32px 16px 56px;
  }

  .msc-cert-landing-page {
    padding: 32px 16px 56px;
  }

  .msc-cert-landing-page .msc-cert-main {
    margin-top: 24px;
    margin-bottom: 32px;
  }

  .msc-cert-landing-levels {
    flex-direction: column;
    padding: 20px 16px;
  }

  .msc-cert-landing-level {
    border-left: none;
    border-top: 1px solid rgba(35, 53, 84, 0.12);
    padding: 20px 8px 0;
  }

  .msc-cert-landing-level:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ========== PC 登录页（居中卡片；整区白底铺满视口，不露灰） ========== */
html:has(.msc-login-page) {
  background: #fff;
}

body:has(.msc-login-page) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

body:has(.msc-login-page) .msc-nav-wrap {
  flex-shrink: 0;
}

body:has(.msc-login-page) .msc-footer-wrap {
  flex-shrink: 0;
}

.msc-login-page {
  flex: 1 0 auto;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  box-sizing: border-box;
  min-height: calc(100vh - 68px);
}

body:has(.msc-login-page) .msc-login-page {
  min-height: 0;
}

@supports (height: 100dvh) {
  body:has(.msc-login-page) {
    min-height: 100dvh;
  }

  .msc-login-page {
    min-height: calc(100dvh - 68px);
  }

  body:has(.msc-login-page) .msc-login-page {
    min-height: 0;
  }
}

.msc-login-page-inner {
  width: 100%;
  max-width: 460px;
}

.msc-login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27, 50, 95, 0.1);
  padding: 44px 40px 36px;
}

.msc-login-card-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--msc-text-dark);
  line-height: 1.35;
  margin: 0 0 28px;
  text-align: left;
}

.msc-login-card-body {
  margin: 0;
}

.msc-login-tabs.am-tabs-d2 .am-tabs-nav {
  border-bottom: 1px solid rgba(27, 50, 95, 0.1);
  margin: 0 0 24px;
  background-color: transparent;
}

.msc-login-tabs.am-tabs-d2 .am-tabs-nav li {
  background-color: transparent;
}

.msc-login-tabs.am-tabs-d2 .am-tabs-nav a {
  color: var(--msc-text-gray);
  font-size: 14px;
}

/* am-tabs-d2 激活态下划线在 li 上，三角在 li::after，需覆盖默认 #0e90d2 */
.msc-login-tabs.am-tabs-d2 .am-tabs-nav > li.am-active {
  background-color: transparent;
  border-bottom: 2px solid var(--msc-primary);
}

.msc-login-tabs.am-tabs-d2 .am-tabs-nav > li.am-active:after {
  border-bottom-color: var(--msc-primary);
}

.msc-login-tabs.am-tabs-d2 .am-tabs-nav > li.am-active a {
  color: var(--msc-primary);
  font-weight: 600;
}

.msc-login-field label,
.msc-login-tabs .am-form-group label {
  display: block;
  font-size: 13px;
  color: var(--msc-text-light);
  margin-bottom: 8px;
  font-weight: 400;
}

.msc-login-tabs .am-form-field {
  background: #eceef1;
  border: none;
  border-radius: 8px;
  height: 46px;
  line-height: 46px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--msc-text-dark);
  box-shadow: none;
}

.msc-login-tabs .am-form-field:focus {
  background: #e5e8ec;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(213, 85, 67, 0.35);
}

.msc-login-tabs .am-input-group .am-form-field {
  border-radius: 8px 0 0 8px;
}

.msc-login-tabs .am-input-group-btn .am-btn {
  border-radius: 0 8px 8px 0;
  height: 46px;
  background: #eceef1;
  border: none;
  border-left: 1px solid rgba(27, 50, 95, 0.08);
}

.msc-login-tabs .am-input-group-btn .am-btn.form-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  min-width: 112px;
  box-sizing: border-box;
  background: #fff;
  border-left: 1px solid rgba(27, 50, 95, 0.08);
  overflow: hidden;
}

.msc-login-tabs .form-verify img[data-verify-src],
.msc-login-tabs .form-verify img.msc-verify-img-refresh {
  cursor: pointer;
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
  background: #fff;
}

/* 登录相关弹窗内图形验证码：白底铺满格，不露灰 */
#verify-win .am-fl {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

#verify-win .form-verify img[data-verify-src],
#verify-win img.msc-verify-img-refresh {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  cursor: pointer;
  display: block;
  background: #fff;
}

.msc-login-row-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 4px;
}

.msc-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--msc-text-gray);
  font-weight: 400;
}

.msc-login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin: 0;
  accent-color: var(--msc-primary);
}

.msc-login-link-forgot {
  font-size: 14px;
  color: var(--msc-primary);
  text-decoration: none;
}

.msc-login-link-forgot:hover {
  text-decoration: underline;
  color: var(--msc-primary);
}

.msc-login-alt-forgot {
  text-align: right;
  margin-bottom: 0 !important;
}

.msc-login-submit-wrap {
  margin-top: 22px !important;
}

.msc-login-submit.am-btn-primary,
.msc-login-tabs .msc-login-submit.am-btn-primary {
  background: var(--msc-primary);
  border: none;
  height: 48px;
  line-height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  padding: 0;
}

.msc-login-submit.am-btn-primary:hover,
.msc-login-tabs .msc-login-submit.am-btn-primary:hover {
  opacity: 0.92;
  background: var(--msc-primary);
}

.msc-login-card-footer {
  margin-top: 28px;
  padding-top: 8px;
  text-align: center;
}

.msc-login-register-line {
  margin: 0;
  font-size: 14px;
  color: var(--msc-text-gray);
}

.msc-login-register-line a {
  color: var(--msc-primary);
  text-decoration: none;
  font-weight: 500;
}

.msc-login-register-line a:hover {
  text-decoration: underline;
}

.msc-login-tabs .am-tab-panel {
  padding: 0;
}

@media (max-width: 767px) {
  .msc-login-card {
    padding: 32px 22px 28px;
  }

  .msc-login-card-title {
    font-size: 22px;
  }
}
