.molsimulx-mdstudio {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 48px;
  box-sizing: border-box;
  text-align: left;
  --msm-md-media-aspect: 3360 / 1854;
}

.msm-md-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .msm-md-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* —— 左侧：统一轮播（演示 + 功能图解）+ CTA —— */

.msm-md-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.msm-md-showcase-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.msm-md-showcase-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: var(--msm-md-media-aspect);
  overflow: hidden;
  background: #fafbff;
}

.msm-md-showcase-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.msm-md-showcase-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.msm-md-showcase-slide--demo {
  background: #fafbff;
}

.msm-md-showcase-slide.is-placeholder {
  background-image: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #dbeafe 100%);
}

.msm-md-showcase-slide.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%233182ce' stroke-width='1.2' opacity='0.25'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E")
    center / 64px no-repeat;
}

.msm-md-showcase-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fafbff;
  vertical-align: top;
}

.msm-md-showcase-caption {
  padding: 16px 20px 14px;
  color: #1a202c;
  background: #fff;
  border-top: 1px dashed #edf2f7;
}

.msm-md-showcase-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a202c !important;
  text-align: left !important;
}

.msm-md-showcase-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #718096;
  text-align: left !important;
}

.msm-md-showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 14px;
  background: #fff;
  border-top: 1px dashed #edf2f7;
}

.msm-md-showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.msm-md-showcase-dot.is-active {
  background: #3182ce;
  transform: scale(1.2);
}

.molsimulx-mdstudio button.msm-md-demo-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 92px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(237, 237, 237, 0.7) !important;
  background-color: rgba(237, 237, 237, 0.7) !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.molsimulx-mdstudio button.msm-md-demo-play-btn > * {
  pointer-events: none;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none;
  padding: 0;
  margin: 0;
}

.molsimulx-mdstudio .msm-md-demo-glyph {
  display: none;
}

.molsimulx-mdstudio .msm-md-demo-glyph--play {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid !important;
  border-width: 11px 0 11px 18px !important;
  border-color: transparent transparent transparent #ffffff !important;
  background: transparent !important;
  filter: drop-shadow(0 0 1px rgba(120, 120, 120, 0.55));
}

.molsimulx-mdstudio button.msm-md-demo-play-btn:not(.is-playing) .msm-md-demo-glyph--play {
  display: block;
}

.molsimulx-mdstudio .msm-md-demo-glyph--pause {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.molsimulx-mdstudio .msm-md-demo-glyph--pause span {
  display: block;
  width: 4px;
  height: 22px;
  border-radius: 1px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

.molsimulx-mdstudio button.msm-md-demo-play-btn.is-playing .msm-md-demo-glyph--pause {
  display: flex;
}

.molsimulx-mdstudio button.msm-md-demo-play-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.msm-md-demo-play-btn.is-playing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.msm-md-showcase-slide--demo:hover .msm-md-demo-play-btn.is-playing {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.molsimulx-mdstudio button.msm-md-demo-play-btn:hover,
.molsimulx-mdstudio button.msm-md-demo-play-btn:active,
.molsimulx-mdstudio button.msm-md-demo-play-btn:focus,
.molsimulx-mdstudio button.msm-md-demo-play-btn:focus-visible,
.molsimulx-mdstudio button.msm-md-demo-play-btn.is-playing {
  background: rgba(237, 237, 237, 0.7) !important;
  background-color: rgba(237, 237, 237, 0.7) !important;
  background-image: none !important;
  outline: none;
  box-shadow: none !important;
}

.msm-md-demo-cinema-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(37, 99, 235, 0.88);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: background 0.2s, transform 0.2s;
}

.msm-md-demo-cinema-btn:hover {
  background: rgba(29, 78, 216, 0.95);
  transform: translateY(-1px);
}

/* legacy aliases removed */

/* —— 影院全屏 —— */

.msm-md-cinema {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.msm-md-cinema[hidden] {
  display: none !important;
}

.msm-md-cinema-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
}

.msm-md-cinema-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 48px;
  box-sizing: border-box;
}

.msm-md-cinema-video {
  display: block;
  width: 100%;
  max-height: calc(90vh - 56px);
  aspect-ratio: var(--msm-md-media-aspect);
  object-fit: contain;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.msm-md-cinema-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a202c;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.msm-md-cinema-close span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.msm-md-cinema-close:hover {
  background: #fff;
}

.msm-md-cinema-title {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

/* —— 轮播左右箭头（统一 showcase 使用） —— */

.msm-md-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1e3a8a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.msm-md-carousel-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.msm-md-carousel-nav--prev {
  left: 12px;
}

.msm-md-carousel-nav--next {
  right: 12px;
}

.msm-md-cta-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.msm-md-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.msm-md-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
  color: #fff !important;
}

.msm-md-cta.msm-md-cta--disabled,
.msm-md-cta.msm-md-cta--disabled:hover {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: #64748b !important;
  background: #e2e8f0;
  pointer-events: none;
}

.msm-md-maint-notice {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #c2410c;
}

@media (max-width: 720px) {
  .msm-md-maint-notice {
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
  }
}

/* —— 右侧：教程列表 —— */

.msm-md-articles {
  min-width: 0;
}

.msm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.msm-md-search-box {
  margin-bottom: 16px;
}

.msm-md-search-box input {
  width: 100%;
  padding: 12px 18px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  box-sizing: border-box;
}

.msm-md-search-box input:focus {
  border-color: #90cdf4;
  box-shadow: 0 4px 16px rgba(49, 130, 206, 0.12);
}

.msm-md-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 100px;
}

@media (max-width: 960px) {
  .msm-md-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .msm-md-grid {
    grid-template-columns: 1fr;
  }
}

.msm-md-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.msm-md-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(49, 130, 206, 0.12);
  border-color: #b3d7ff;
}

.msm-md-card:hover .msm-md-card-title {
  color: #3182ce;
}

.msm-md-card-image {
  width: 100%;
  height: 96px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #311082 100%);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.msm-md-card-image.is-placeholder::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E")
    center / 36px no-repeat;
  opacity: 0.16;
}

.msm-md-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 11px 0;
}

.msm-md-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 5px;
  text-align: left !important;
}

.msm-md-card-excerpt {
  font-size: 11px;
  color: #718096;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
  text-align: left !important;
}

.msm-md-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed #edf2f7;
  padding: 8px 11px 9px;
  margin-top: 8px;
}

.msm-md-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.msm-md-card-tag {
  font-size: 10px;
  color: #3182ce;
  background: #ebf8ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 0;
}

.msm-md-card-tags .msm-card-paywall {
  font-size: 10px;
  padding: 2px 6px;
}

.msm-md-card-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  color: #a0aec0;
  white-space: nowrap;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.msm-md-card-date .msm-card-date-line {
  display: block;
}

.msm-md-state {
  grid-column: 1 / -1;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  border-radius: 12px;
  border: 1px dashed #e2e8f0;
}

.msm-md-state--loading {
  color: #718096;
  background: #f7fafc;
}

.msm-md-state--empty {
  color: #a0aec0;
  background: #f7fafc;
}

.msm-md-state--error {
  color: #c53030;
  background: #fff5f5;
  border-color: #feb2b2;
}

.msm-md-skeleton {
  border-radius: 12px;
  background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%);
  background-size: 200% 100%;
  animation: msm-md-shimmer 1.2s infinite;
  min-height: 220px;
}

@keyframes msm-md-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.msm-md-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.msm-md-page-btn {
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #4a5568;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  transition: all 0.2s;
}

.msm-md-page-btn:hover:not(:disabled) {
  background: #ebf8ff;
  color: #3182ce;
  border-color: #b3d7ff;
}

.msm-md-page-btn.active {
  background: #3182ce;
  color: #fff;
  border-color: #3182ce;
  cursor: default;
}

.msm-md-page-btn:disabled {
  background: #f7fafc;
  color: #cbd5e0;
  cursor: not-allowed;
}

.msm-md-page-info {
  font-size: 12px;
  color: #718096;
  padding: 0 4px;
}
