@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=ZCOOL+XiaoWei&display=swap");

:root {
  --myg-ink: #102824;
  --myg-teal: #0b6b63;
  --myg-teal-deep: #064e48;
  --myg-coral: #e85d4c;
  --myg-coral-soft: #ff8f7a;
  --myg-mist: #e8f5f1;
  --myg-foam: #f5fbf9;
  --myg-sand: #d9ebe4;
  --myg-line: rgba(16, 40, 36, 0.12);
  --myg-glass: rgba(255, 255, 255, 0.55);
  --myg-shadow: 0 18px 48px rgba(6, 78, 72, 0.12);
  --myg-radius: 22px;
  --myg-nav-h: 64px;
  --myg-font: "Noto Sans SC", sans-serif;
  --myg-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--myg-font);
  color: var(--myg-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 93, 76, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(11, 107, 99, 0.16), transparent 50%),
    linear-gradient(180deg, var(--myg-foam) 0%, var(--myg-mist) 42%, #dff0ea 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--myg-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--myg-coral);
}

.myg-wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.myg-skip {
  position: absolute;
  left: -9999px;
}

.myg-skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* promo strip */
.myg-promo {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--myg-line);
}

/* header */
.myg-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--myg-nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 251, 249, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--myg-line);
}

.myg-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.myg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--myg-ink);
}

.myg-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.myg-brand span {
  font-family: var(--myg-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.myg-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.myg-nav a {
  text-decoration: none;
  color: var(--myg-ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.myg-nav a:hover,
.myg-nav a.is-on {
  background: rgba(11, 107, 99, 0.1);
  color: var(--myg-teal-deep);
}

.myg-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--myg-line);
  border-radius: 12px;
  background: var(--myg-glass);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.myg-burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--myg-ink);
  border-radius: 2px;
}

/* sticky download dock */
.myg-dock {
  position: sticky;
  top: var(--myg-nav-h);
  z-index: 70;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--myg-line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.myg-dock.is-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.myg-dock__grid,
.myg-promo #ads {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 10px 0;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.myg-dock__item,
.myg-promo #ads .myg-dock__item {
  text-decoration: none;
  text-align: center;
  color: #555;
  font-size: 11px;
}

.myg-dock__item img,
.myg-promo #ads .myg-dock__item img {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.myg-dock__item span,
.myg-promo #ads .myg-dock__item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hero */
.myg-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.myg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(6, 78, 72, 0.88) 0%, rgba(16, 40, 36, 0.45) 48%, rgba(232, 93, 76, 0.35) 100%),
    url("screen-hot.jpg") center/cover no-repeat;
  transform: scale(1.04);
  animation: myg-drift 18s ease-in-out infinite alternate;
}

.myg-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(16, 40, 36, 0.72) 100%);
}

.myg-hero__copy {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
  color: #fff;
  animation: myg-rise 0.9s ease both;
}

.myg-hero__copy .myg-mark {
  font-family: var(--myg-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.myg-hero__copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  max-width: 18em;
}

.myg-hero__copy p {
  margin: 0;
  max-width: 34em;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* sections */
.myg-section {
  padding: 64px 0;
}

.myg-section h2 {
  font-family: var(--myg-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--myg-teal-deep);
}

.myg-section h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--myg-ink);
}

.myg-lead {
  font-size: 1.05rem;
  color: rgba(16, 40, 36, 0.78);
  max-width: 46em;
}

.myg-prose p {
  margin: 0 0 1.05em;
  font-size: 1.02rem;
}

.myg-prose p:last-child {
  margin-bottom: 0;
}

.myg-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.myg-split--flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.myg-split--flip .myg-media {
  order: -1;
}

.myg-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--myg-shadow);
  background: #fff;
  animation: myg-rise 1s ease both;
}

.myg-media img {
  width: 100%;
  display: block;
}

.myg-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(6, 78, 72, 0.28));
  pointer-events: none;
}

.myg-panel {
  background: var(--myg-glass);
  border: 1px solid var(--myg-line);
  backdrop-filter: blur(14px);
  border-radius: var(--myg-radius);
  padding: 28px;
  box-shadow: var(--myg-shadow);
}

.myg-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.myg-tile {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--myg-line);
  border-radius: 20px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.myg-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--myg-shadow);
}

.myg-tile h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.myg-tile p {
  margin: 0;
  color: rgba(16, 40, 36, 0.78);
  font-size: 0.98rem;
}

.myg-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.myg-mosaic__stack {
  display: grid;
  gap: 18px;
}

.myg-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.myg-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(11, 107, 99, 0.1);
  color: var(--myg-teal-deep);
  font-size: 0.9rem;
  font-weight: 500;
}

.myg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--myg-coral), #ff7a55);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(232, 93, 76, 0.28);
  transition: transform 0.2s ease;
}

.myg-cta:hover {
  transform: translateY(-2px);
}

.myg-cta--ghost {
  background: transparent;
  color: var(--myg-teal-deep) !important;
  border: 1px solid rgba(11, 107, 99, 0.35);
  box-shadow: none;
}

.myg-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.myg-ribbon article {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(217, 235, 228, 0.7));
  border: 1px solid var(--myg-line);
}

.myg-ribbon strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--myg-teal-deep);
}

.myg-quote {
  margin: 28px 0 0;
  padding: 24px 26px;
  border-left: 4px solid var(--myg-coral);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 18px 18px 0;
  font-size: 1.05rem;
}

.myg-crumb {
  padding: 18px 0 0;
  font-size: 0.92rem;
  color: rgba(16, 40, 36, 0.65);
}

.myg-crumb a {
  color: inherit;
  text-decoration: none;
}

.myg-crumb a:hover {
  color: var(--myg-coral);
}

.myg-pagehead {
  padding: 28px 0 10px;
}

.myg-pagehead h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--myg-teal-deep);
}

.myg-legal .myg-section {
  padding-top: 24px;
}

.myg-legal h2 {
  font-size: 1.35rem;
}

.myg-error {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.myg-error h1 {
  font-family: var(--myg-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin: 0 0 8px;
  color: var(--myg-teal-deep);
}

.myg-footer {
  margin-top: 40px;
  border-top: 1px solid var(--myg-line);
  background: rgba(6, 78, 72, 0.94);
  color: rgba(255, 255, 255, 0.88);
  padding: 36px 0 28px;
}

.myg-footer a {
  color: #fff;
  text-decoration: none;
}

.myg-footer a:hover {
  color: var(--myg-coral-soft);
}

.myg-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.myg-footer__meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

@keyframes myg-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes myg-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

.myg-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.myg-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .myg-split,
  .myg-split--flip,
  .myg-mosaic,
  .myg-grid3,
  .myg-ribbon {
    grid-template-columns: 1fr;
  }

  .myg-split--flip .myg-media {
    order: 0;
  }

  .myg-dock__grid,
  .myg-promo #ads {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .myg-burger {
    display: inline-flex;
  }

  .myg-nav {
    position: fixed;
    inset: calc(var(--myg-nav-h) + 0px) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--myg-line);
    border-radius: 16px;
    box-shadow: var(--myg-shadow);
  }

  .myg-nav.is-open {
    display: flex;
  }
}

@media (max-width: 560px) {
  .myg-hero {
    min-height: 78vh;
  }

  .myg-hero__copy {
    margin-bottom: 48px;
  }

  .myg-section {
    padding: 48px 0;
  }
}
