:root {
  --mp-cyan: #00e7ff;
  --mp-cyan-soft: rgba(0, 231, 255, 0.18);
  --mp-panel: rgba(12, 18, 29, 0.74);
  --mp-panel-strong: rgba(9, 13, 20, 0.9);
  --mp-line: rgba(148, 163, 184, 0.16);
  --mp-muted: rgba(226, 232, 240, 0.62);
}

html,
body,
#root {
  color-scheme: dark;
}

button[aria-label="切换主题"],
.mp-hide-theme-toggle {
  display: none !important;
}

.mp-brand-logo {
  display: block;
  height: 24px;
  max-width: 190px;
  object-fit: contain;
  width: auto;
}

.mp-mark-logo {
  object-fit: contain;
}

.mp-home-route .classic-home-hero {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0) 0%, rgba(5, 6, 7, 0.18) 42%, #050607 82%),
    #050607 !important;
  border-bottom-color: rgba(148, 163, 184, 0.1) !important;
}

.mp-home-route .classic-home-hero::before,
.mp-home-route .classic-home-hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.mp-home-route .classic-home-hero::before {
  background-image: url("/modelpier-home/figma-hero-bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: max(100vw, 1440px) auto;
  height: 1159px;
  left: 0;
  opacity: 1;
  top: 0;
  width: 100%;
}

.mp-home-route .classic-home-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 7, 0.72) 48%, #050607 100%);
  bottom: auto;
  height: 980px;
  left: 0;
  top: 340px;
  width: 100%;
}

.mp-home-route .classic-home-hero > div:nth-child(3) {
  position: relative;
  z-index: 1;
}

.mp-home-wrap {
  max-width: 1120px !important;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.mp-hero-copy {
  margin-top: 56px;
}

.mp-hero-copy h1 {
  font-size: clamp(44px, 5.4vw, 72px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.04 !important;
  text-shadow: 0 0 30px rgba(168, 210, 255, 0.18);
}

.mp-hero-copy .shine-text {
  background: linear-gradient(100deg, #fff8c6 0%, #f7fbff 42%, var(--mp-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.mp-hero-copy p {
  color: rgba(226, 232, 240, 0.7) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  margin-top: 16px !important;
}

.mp-hero-copy .semi-input-wrapper {
  background: rgba(16, 23, 34, 0.5) !important;
  border: 1px solid rgba(226, 232, 240, 0.26) !important;
  border-radius: 2px !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  min-height: 42px !important;
}

.mp-hero-copy .semi-input,
.mp-hero-copy .semi-scrolllist {
  color: rgba(241, 245, 249, 0.86) !important;
}

.mp-hero-copy .semi-input-suffix {
  color: var(--mp-cyan) !important;
}

.mp-hero-actions {
  gap: 12px !important;
  margin-top: 8px;
}

.mp-hero-actions .semi-button,
.mp-download {
  border-radius: 2px !important;
}

.mp-hero-actions .semi-button-solid,
.mp-download {
  background: var(--mp-cyan) !important;
  border-color: var(--mp-cyan) !important;
  color: #001217 !important;
  box-shadow: 0 0 28px rgba(0, 231, 255, 0.18);
}

.mp-hero-actions .semi-button-light {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: rgba(241, 245, 249, 0.82) !important;
}

.mp-home-head h2 span {
  color: var(--mp-cyan);
  display: inline-block;
  font-size: 0.72em;
  margin-left: 10px;
  vertical-align: 0.08em;
}

.mp-home-section {
  margin-left: auto;
  margin-right: auto;
  margin-top: 74px;
  max-width: 1040px;
  position: relative;
  text-align: left;
  width: 100%;
}

.mp-home-head {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1040px;
  text-align: center;
}

.mp-eyebrow {
  color: var(--mp-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.mp-home-head h2 {
  color: var(--semi-color-text-0, #fff);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

.mp-home-head p {
  color: var(--mp-muted);
  line-height: 1.75;
  margin: 12px 0 0;
  max-width: 620px;
}

.mp-more-link {
  border: 1px solid rgba(0, 231, 255, 0.34);
  border-radius: 4px;
  color: var(--mp-cyan);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mp-more-link:hover {
  background: rgba(0, 231, 255, 0.12);
  transform: translateY(-1px);
}

.mp-model-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1040px;
}

.mp-model-card,
.mp-sibuddy,
.mp-case-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 231, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--mp-panel);
  border: 1px solid var(--mp-line);
  border-radius: 7px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.2);
}

.mp-model-card {
  min-height: 140px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.mp-model-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 4px;
  color: rgba(248, 250, 252, 0.92);
  box-shadow: 0 0 28px rgba(0, 231, 255, 0.22);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  margin-bottom: 18px;
  width: 38px;
}

.mp-model-icon svg {
  display: block;
  flex: 0 0 auto;
  height: 30px;
  line-height: 1;
  width: 30px;
}

.mp-model-icon-fallback {
  background: #fff;
}

.mp-model-icon img {
  display: block;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.mp-model-card h3 {
  color: var(--semi-color-text-0, #fff);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.mp-model-card p {
  color: var(--mp-muted);
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.mp-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-model-tags span {
  background: rgba(0, 231, 255, 0.08);
  border: 1px solid rgba(0, 231, 255, 0.18);
  border-radius: 4px;
  color: var(--mp-cyan);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}

.mp-sibuddy {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  margin: 0 auto;
  max-width: 1040px;
  min-width: 0;
  overflow: hidden;
  padding: 40px;
}

.mp-sibuddy > div {
  min-width: 0;
}

.mp-sibuddy h2 {
  color: var(--semi-color-text-0, #fff);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0 0 14px;
}

.mp-sibuddy p,
.mp-sibuddy li {
  color: var(--mp-muted);
  line-height: 1.78;
}

.mp-sibuddy p {
  margin-bottom: 24px;
}

.mp-download {
  align-items: center;
  background: var(--mp-cyan);
  border-radius: 10px;
  color: #061013;
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
}

.mp-sibuddy-shot {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(93, 242, 255, 0.18), rgba(59, 130, 246, 0.12)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 6px;
  min-height: 240px;
  overflow: hidden;
  width: 100%;
}

.mp-sibuddy-shot img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
  width: 100%;
}

.mp-case-carousel {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1040px;
}

.mp-case-card {
  overflow: hidden;
}

.mp-provider-strip {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  height: 191px;
  left: auto;
  margin-left: auto;
  margin-right: auto;
  margin-top: 82px !important;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: none;
  max-width: 1040px;
  width: 100% !important;
}

.mp-logo-wall-frame {
  height: 191px;
  margin: 0 auto;
  max-width: 1040px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.mp-logo-wall-title {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 24px;
  margin: 34px 0 0;
  text-align: center;
}

.mp-logo-wall-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 40px;
  height: 100px;
  margin-top: 33px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-left: 40px;
  padding-right: 40px;
  scrollbar-width: none;
  white-space: nowrap;
}

.mp-logo-wall-row::-webkit-scrollbar {
  display: none;
}

.mp-provider-logo {
  display: block;
  flex: 0 0 auto;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.mp-case-media {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mp-case-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.mp-case-card:hover .mp-case-media img {
  transform: scale(1.035);
}

.mp-case-body {
  padding: 18px;
}

.mp-case-body span {
  color: var(--mp-cyan);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.mp-case-body h3 {
  color: var(--semi-color-text-0, #fff);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}

.mp-case-body p {
  color: var(--mp-muted);
  font-size: 13px;
  line-height: 1.72;
  margin: 0;
}

@media (max-width: 900px) {
  .mp-home-head,
  .mp-sibuddy {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .mp-home-head {
    flex-direction: column;
  }

  .mp-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-hero-copy {
    margin-top: 44px;
  }

  .mp-home-route .classic-home-hero::before {
    background-position: 34% top;
    background-size: auto 760px;
    height: 760px;
    width: 100%;
  }

  .mp-home-route .classic-home-hero::after {
    top: 300px;
  }

  .mp-case-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mp-case-carousel::-webkit-scrollbar {
    display: none;
  }

  .mp-case-card {
    flex: 0 0 min(78vw, 360px);
    scroll-snap-align: start;
  }

  .mp-provider-strip,
  .mp-logo-wall-frame {
    height: 170px;
  }

  .mp-provider-strip {
    max-width: 100%;
    width: 100% !important;
  }

  .mp-logo-wall-title {
    font-size: 20px;
    line-height: 24px;
    margin-top: 26px;
  }

  .mp-logo-wall-row {
    gap: 32px;
    height: 88px;
    margin-top: 30px;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none;
  }

  .mp-logo-wall-row::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .mp-brand-logo {
    height: 20px;
    max-width: 158px;
  }

  .mp-home-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mp-hero-copy h1 {
    font-size: clamp(40px, 11vw, 43px) !important;
    line-height: 1.04 !important;
  }

  .mp-hero-copy > div {
    max-width: 100% !important;
  }

  .mp-hero-copy .semi-input {
    font-size: 13px !important;
  }

  .mp-hero-copy .semi-scrolllist {
    font-size: 13px !important;
    max-width: 138px;
  }

  .mp-home-section {
    margin-top: 46px;
  }

  .mp-model-grid {
    max-width: 100%;
    width: 100%;
  }

  .mp-model-grid {
    grid-template-columns: 1fr;
  }

  .mp-sibuddy {
    padding: 20px;
  }

  .mp-sibuddy-shot {
    aspect-ratio: 1220 / 768;
    min-height: 0;
  }

  .mp-sibuddy-shot img {
    object-fit: contain;
  }
}
