/* 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;
}
.msc-logo:hover {
  color:#fff;
  text-decoration: none;
}
.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 {
  opacity: 0.9;
  color:#fff;
  text-decoration: none;
}

.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-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 区域（整区背景图 banner.png，按设计图边距） ========== */
.msc-hero-wrap {
  width: 100%;
  height: 620px;
  position: relative;
  overflow: hidden;
  background: #fff url(../images/banner.png) no-repeat center center;
  background-size: cover;
  border-radius: 0;
}

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

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

/* ========== 课程体系标题区（1440px 设计图） ========== */
.msc-course-title-wrap {
  width: 100%;
  padding: 100px 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-item:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 1200px) {
  .msc-nav-inner {
    padding: 0 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 {
    min-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 商品搜索/列表页 ========== */


.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;
  padding-left: 56px;
  padding-bottom: 8px;
}

.msc-user-nav-children a {
  padding: 8px 0;
  font-size: 16px;
  color: var(--msc-text-gray);
  text-decoration: none;
}

/*
.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-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);
}

/* 个人中心响应式 */
@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: 24px;
  }

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

@media (max-width: 600px) {
  .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;
}

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