:root, :root .dark {
  --radius: 1rem;
  --background: 214 75% 99%;
  --foreground: 220 59% 17%;
  --primary: 218 82% 46%;
  --primary-foreground: 0 0% 100%;
  --secondary: 215 82% 96%;
  --secondary-foreground: 220 64% 27%;
  --muted: 215 62% 95%;
  --muted-foreground: 216 26% 36%;
  --accent: 31 100% 93%;
  --accent-foreground: 26 82% 27%;
  --border: 217 57% 88%;
  --input: 217 57% 88%;
  --ring: 218 83% 51%;
  --card: 0 0% 100%;
  --miyo-navy: #112346;
  --miyo-blue: #1755ce;
  --miyo-orange: #ff8d40;
  --miyo-pink: #f47ca7;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
header { border-bottom: 1px solid #dfebfc; box-shadow: 0 4px 24px #0c3b8310; }
header a[aria-label*="首页"] img, footer a[aria-label*="首页"] img {
  width: 145px; height: auto; max-width: 100%; object-fit: contain;
}
header nav a[aria-current="page"] { background: #edf4ff; border-radius: 12px; }
header a.bg-primary, .miyo-intro a.bg-primary {
  background: var(--miyo-blue); box-shadow: 0 8px 18px #154ab436;
}
header a.bg-primary:hover, .miyo-intro a.bg-primary:hover { background: #1245ad; }
main a, header a, main button, header button { -webkit-tap-highlight-color: transparent; }
main :focus-visible, header :focus-visible, footer :focus-visible {
  outline: 2px solid var(--miyo-blue); outline-offset: 4px;
}
main h2 { letter-spacing: -.035em; }
main section .bg-card.rounded-lg, main section .bg-card.rounded-md {
  border-radius: 20px; box-shadow: 0 8px 24px #1643800b;
}
main section.bg-muted\/40, main section.bg-muted\/30 {
  background: linear-gradient(175deg,#f1f7ff,#fbfdff 85%);
}
main section:not(.miyo-intro) .text-primary.font-display-en { font-family: inherit; }
main section:not(.miyo-intro) [class*="tracking-"][class*="uppercase"].text-primary {
  letter-spacing: .18em;
}
footer { background: linear-gradient(150deg,#eff6ff,#e6f0ff) !important; }
footer nav a:hover { color: var(--miyo-blue); }

.miyo-intro {
  isolation: isolate;
  position: relative;
  background:
    radial-gradient(ellipse at 78% 48%,#d4e7ff 0%,transparent 58%),
    linear-gradient(114deg,#fbfdff 0%,#f3f8ff 53%,#e1edff 100%);
  border-bottom: 1px solid #cfe1fc;
}
.miyo-intro > span[aria-hidden], .miyo-intro > .relative > span[aria-hidden] { display: none; }
.miyo-intro > div[aria-hidden] {
  opacity: .78; mask-image: linear-gradient(110deg,transparent 15%,black 70%) !important;
}
.miyo-intro .miyo-layout {
  display: grid;
  grid-template-columns: minmax(0,1.24fr) minmax(0,.94fr);
  gap: clamp(18px,4vw,58px);
  align-items: center;
  max-width: 1248px;
}
.miyo-intro .miyo-copy { position: relative; min-width: 0; z-index: 1; }
.miyo-home { padding-top: clamp(105px,10.4vw,147px); }
.miyo-home .miyo-layout { padding-bottom: clamp(35px,6vw,84px); }
.miyo-home .miyo-copy h1 {
  font-size: clamp(35px,4.08vw,62px); line-height: 1.14; letter-spacing: -.06em;
  margin-top: 24px; text-wrap: pretty;
}
.miyo-home .miyo-copy h1 > span:last-child { color: #164fba; }
.miyo-home .miyo-copy h1 > span:first-child { color: #e66a28; }
.miyo-home .miyo-copy > p { font-size: clamp(15px,1.26vw,18px); }
.miyo-home .miyo-copy > div:first-child {
  border-color: #c5dbff; background: #ffffffb5; color: #194b9f;
}
.miyo-home .miyo-copy > div:nth-last-child(2) { margin-top: 28px; gap: 10px; }
.miyo-home .miyo-copy > div:nth-last-child(2) > a {
  border-radius: 12px; padding-inline: clamp(11px,1.25vw,19px);
  font-size: clamp(12px,1.12vw,15px);
}
.miyo-home .miyo-copy > div:last-child {
  margin-top: 29px; padding-top: 17px; gap: 12px 18px; color: #37547c;
}
.miyo-interior { padding-top: clamp(105px,10vw,132px); }
.miyo-interior .miyo-layout { padding-bottom: clamp(28px,4.5vw,62px); }
.miyo-interior .miyo-copy h1 {
  font-size: clamp(36px,4.6vw,64px); line-height: 1.11; letter-spacing: -.05em;
}

.miyo-stage {
  position: relative; isolation: isolate; justify-self: center; margin: 0;
  width: min(100%,480px); aspect-ratio: 1 / 1.02; border-radius: 32px;
  border: 1px solid #ffffffce;
  background:
    radial-gradient(ellipse at 51% 36%,#fbfdff 0%,#deedff 34%,#c3dcff 82%);
  box-shadow: 0 24px 65px #164f9e25, inset 0 1px 0 #fff;
}
.miyo-stage::before {
  content: ""; position: absolute; inset: 6%; border: 1px solid #ffffffad;
  border-radius: 50%; box-shadow: 0 0 0 22px #ffffff29, 0 0 0 44px #ffffff1e;
}
.miyo-stage::after {
  content: ""; position: absolute; z-index: -1; width: 78%; height: 17%;
  left: 11%; bottom: 8%; transform: rotate(-7deg);
  border: 1px solid #fff; border-radius: 50%;
  box-shadow: 0 0 14px #fff,0 0 0 9px #ffffff50,inset 0 0 28px #8ab7ff70;
  background: radial-gradient(ellipse,#3979c64f,transparent 65%);
}
.miyo-stage img {
  position: absolute; inset: 4% 3% 10%; width: 94%; height: 86%;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 16px 11px #163e7b35);
}
.miyo-orbit {
  position: absolute; inset: 19% 6%; z-index: -1; transform: rotate(-30deg);
  border: 1px solid #fff9; border-radius: 50%;
}
.miyo-orbit::before, .miyo-orbit::after {
  content: ""; display: block; position: absolute; border-radius: 50%;
  width: 9px; height: 9px;
}
.miyo-orbit::before { left: 5%; top: 23%; background: #fc9b4a; box-shadow: 0 0 0 5px #ffb97b39; }
.miyo-orbit::after { right: 3%; bottom: 22%; background: #ee7ca9; box-shadow: 0 0 0 5px #ff98c240; }
.miyo-caption {
  position: absolute; z-index: 1; left: 6%; bottom: 6%; display: flex;
  align-items: center; gap: 8px; padding: 8px 13px;
  border: 1px solid #fff; border-radius: 999px;
  background: #ffffffd9; color: #184794; font-size: clamp(11px,1.1vw,14px);
  font-weight: 750; letter-spacing: .06em;
}
.miyo-caption::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--miyo-orange);
}
.miyo-interior .miyo-stage {
  aspect-ratio: 1.56; width: min(100%,400px); border-radius: 28px;
}
.miyo-interior .miyo-stage::before { inset: 10% 15%; }
.miyo-interior .miyo-stage img { height: 91%; inset-block: 3% 6%; }
.miyo-interior .miyo-caption { bottom: 8%; }

@media (max-width: 1023px) {
  header a[aria-label*="首页"] img { width: 124px; }
}
@media (max-width: 767px) {
  .miyo-intro .miyo-layout {
    grid-template-columns: minmax(0,1fr); padding-inline: 20px; gap: 28px;
  }
  .miyo-home { padding-top: 92px; }
  .miyo-interior { padding-top: 90px; }
  .miyo-home .miyo-copy > div:last-child { margin-top: 22px; }
  .miyo-home .miyo-copy h1 { font-size: clamp(30px,8.15vw,47px); }
  .miyo-interior .miyo-copy h1 { font-size: clamp(32px,8vw,46px); }
  .miyo-stage { width: min(100%,330px); aspect-ratio: 1.13; }
  .miyo-interior .miyo-stage { width: min(100%,305px); aspect-ratio: 1.62; }
  #root [aria-label="快捷联络"] { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.miyo-home .miyo-copy h1 .miyo-hero-platform { color: inherit; }
.miyo-service-icon {
  position: absolute; inset: 12% 11% auto auto; z-index: 2; display: grid;
  place-items: center; width: clamp(32px,4.2vw,50px); aspect-ratio: 1;
  border: 1px solid #fff; border-radius: 14px; background: #ffffffc7;
  color: #2256b4; box-shadow: 0 6px 14px #19478f22; transform: rotate(8deg);
}
.miyo-service-icon svg { width: 53%; height: 53%; }
.miyo-stage img { z-index: 1; }
.miyo-caption { z-index: 2; }
main section:not(.miyo-intro) :is(h2,h3) { text-wrap: pretty; }
main section:not(.miyo-intro) [class*="tracking-"][class*="uppercase"].text-primary::before {
  display: inline-block; content: ""; width: 7px; height: 10px;
  margin-inline-end: 8px; border-radius: 0 85% 0 85%;
  transform: rotate(-30deg); vertical-align: -.08em;
  background: var(--miyo-orange); box-shadow: 6px 1px 0 -1px var(--miyo-pink);
}

/* Xiao You character scenes and expressions */
[data-tone="blue"] { --miyo-panel: #d6e8ff; --miyo-paper: #f4f9ff; }
[data-tone="mint"] { --miyo-panel: #cdeee2; --miyo-paper: #f2fcf7; }
[data-tone="peach"] { --miyo-panel: #ffe0c4; --miyo-paper: #fff8ef; }
[data-tone="rose"] { --miyo-panel: #f9dbea; --miyo-paper: #fff6fb; }

.miyo-stage-v2 {
  background:
    radial-gradient(ellipse at 50% 32%,#fff 0%,transparent 55%),
    linear-gradient(147deg,var(--miyo-paper),var(--miyo-panel));
}
.miyo-stage-v2 .miyo-stage-character {
  inset: 4% 12% 9%; width: 76%; height: 87%;
  animation: miyo-arrive .65s cubic-bezier(.2,.75,.3,1) both;
}
.miyo-interior .miyo-stage-v2 { width: min(100%,450px); aspect-ratio: 1.42; }
.miyo-interior .miyo-stage-v2 .miyo-stage-character { inset-block: 5% 7%; height: 88%; }
.miyo-stage-v2 .miyo-caption {
  left: 5%; bottom: 5%; flex-wrap: wrap; gap: 4px 8px; max-width: 68%;
  border-radius: 14px; letter-spacing: .02em;
}
.miyo-caption strong { font-weight: 800; }
.miyo-caption span { color: #365681; font-weight: 600; }

.miyo-leaf-pair {
  position: absolute; inset: 10% auto auto 10%; z-index: 1;
  width: 35px; height: 26px; transform: rotate(-13deg);
  filter: drop-shadow(0 3px 5px #f5966c25); pointer-events: none;
}
.miyo-leaf-pair::before, .miyo-leaf-pair::after {
  content: ""; position: absolute; bottom: 0; width: 15px; height: 24px;
  border-radius: 95% 12% 95% 12%;
}
.miyo-leaf-pair::before { left: 3px; transform: rotate(-67deg); background: #ff9a54; }
.miyo-leaf-pair::after { right: 3px; transform: rotate(19deg); background: #ef7aa8; }

.miyo-service-art {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 25px;
  min-height: 154px; height: clamp(154px,15vw,202px);
  border-radius: 17px; border: 1px solid #fff;
  background:
    radial-gradient(ellipse at 50% 33%,#ffffffd9,transparent 65%),
    linear-gradient(148deg,var(--miyo-paper),var(--miyo-panel));
}
.miyo-service-art::before {
  content: ""; position: absolute; inset: 12% 21%; z-index: -1; border-radius: 50%;
  border: 1px solid #fffd; box-shadow: 0 0 0 15px #fff4,0 0 0 30px #fff3;
}
.miyo-service-art img { position: absolute; object-fit: contain; }
.miyo-service-action {
  inset: 5% 18% 5%; width: 64%; height: 90%;
  filter: drop-shadow(0 10px 8px #20386228); transition: transform .28s ease;
}
.miyo-service-art:hover .miyo-service-action { transform: translateY(-4px) rotate(-2deg); }
.miyo-service-art .miyo-leaf-pair { inset: 17% auto auto 9%; }
.miyo-service-footer { gap: 12px; flex-wrap: wrap; }

.miyo-section-sticker {
  position: absolute; z-index: 1; right: 0; top: 50%; translate: 0 -50%;
  width: clamp(58px,9vw,108px); height: clamp(58px,9vw,108px); object-fit: contain;
  transform: rotate(9deg); pointer-events: none; filter: drop-shadow(0 6px 8px #1d4c9220);
}
.miyo-section-sticker + div { padding-inline-end: clamp(68px,10vw,125px); }

.miyo-cta {
  isolation: isolate; background: linear-gradient(126deg,#fff4e9,#fff 48%,#dfedff);
}
.miyo-cta-art {
  width: 100%; height: clamp(150px,17vw,235px); object-fit: contain;
  pointer-events: none; filter: drop-shadow(0 8px 12px #244e832e);
}
.miyo-cta > div { z-index: 2; }
.miyo-cta .miyo-leaf-pair { inset: 12% auto auto 6%; }
@media (min-width: 900px) {
  .miyo-cta {
    display: grid; grid-template-columns: minmax(0,1fr) clamp(150px,21%,240px);
    align-items: center; column-gap: 20px;
  }
  .miyo-cta-art { grid-area: 1 / 2; }
  .miyo-cta > div { grid-area: 1 / 1; }
}
@media (max-width: 899px) {
  .miyo-cta { padding-bottom: 112px; }
  .miyo-cta-art { position: absolute; bottom: 9px; right: 5%; width: 114px; height: 97px; }
}
.miyo-help {
  display: grid; place-items: center; width: 53px; height: 53px;
  border: 1px solid #c5d9fa; border-radius: 16px; background: #f4f9ff;
  box-shadow: 0 6px 16px #12469c25; transition: transform .2s ease;
}
.miyo-help:hover { transform: translateY(-3px) rotate(-5deg); }
.miyo-help:focus-visible { outline: 2px solid var(--miyo-blue); outline-offset: 3px; }
.miyo-help img { width: 30px; height: 30px; object-fit: contain; }

@keyframes miyo-arrive {
  from { opacity: .86; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
  .miyo-interior .miyo-stage-v2 { width: min(100%,330px); }
  .miyo-section-sticker { width: 52px; height: 60px; }
  .miyo-section-sticker + div { padding-inline-end: 62px; }
  #root [aria-label="快捷联络"] { gap: 7px; }
  .miyo-help { width: 44px; height: 44px; border-radius: 13px; }
  .miyo-help img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .miyo-stage-v2 .miyo-stage-character { animation: none; }
  .miyo-service-action, .miyo-help { transition: none; }
}
.miyo-process-art {
  display: grid; place-items: center; height: 128px; margin-bottom: 17px;
  border-radius: 13px;
  background: radial-gradient(ellipse at center,#fff9,transparent 65%),linear-gradient(130deg,var(--miyo-paper),var(--miyo-panel));
}
.miyo-process-art img {
  width: 100%; height: 112px; object-fit: contain;
  filter: drop-shadow(0 6px 6px #244e8324);
}
@media (max-width: 767px) {
  .miyo-home .miyo-layout { row-gap: 0; }
  .miyo-home .miyo-copy { display: contents; }
  .miyo-home .miyo-copy > div:first-child { grid-row: 1; justify-self: start; }
  .miyo-home .miyo-copy h1 { grid-row: 2; }
  .miyo-home .miyo-stage-v2 {
    grid-row: 3; width: min(100%,265px); aspect-ratio: 1.25; margin-top: 20px;
  }
  .miyo-home .miyo-copy > p { grid-row: 4; }
  .miyo-home .miyo-copy > div:nth-last-child(2) { grid-row: 5; }
  .miyo-home .miyo-copy > div:last-child { grid-row: 6; }
  #root [aria-label="快捷联络"] { flex-direction: row; bottom: 12px; }
  #root [aria-label="快捷联络"] :is(button, a) { width: 42px; height: 42px; }
}

/* Small character scenes are paired with the four homepage metrics. */
.miyo-stat-card { position: relative; min-width: 0; }
.miyo-stat-copy { position: relative; z-index: 1; }
.miyo-stat-art {
  display: block; object-fit: contain; object-position: right bottom;
  pointer-events: none;
  filter: drop-shadow(0 5px 5px #193c7624);
}

@media (min-width: 1280px) {
  .miyo-stat-grid { max-width: calc(100vw - 182px); margin-inline: auto; }
  .miyo-stat-copy > p:first-child { font-size: clamp(40px,3.5vw,48px); }
  .miyo-stat-art { position: absolute; right: 8px; bottom: -8px; width: 29%; height: 91%; }
  .miyo-stat-card:nth-child(2) .miyo-stat-art { right: 9px; bottom: -14px; width: 27%; height: 51%; }
  .miyo-stat-card:nth-child(3) .miyo-stat-art { right: -7px; top: -28px; width: 29%; height: 78%; }
  .miyo-stat-card:nth-child(4) .miyo-stat-art { right: -9px; bottom: 8px; width: 29%; height: 91%; }
}

@media (max-width: 1279px) {
  .miyo-stat-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(14px,2.5vw,26px); }
  .miyo-stat-art { align-self: flex-end; width: 75px; height: 67px; margin-top: auto; padding-top: 8px; }
}

@media (max-width: 480px) {
  .miyo-stat-grid { gap: 10px; }
  .miyo-stat-copy > p:first-child { font-size: clamp(23px,7vw,32px); }
  .miyo-stat-copy > p:first-child > span:last-child { font-size: clamp(11px,3.3vw,16px); }
  .miyo-stat-copy > p:last-child { letter-spacing: .08em; font-size: 10px; }
}
