html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.xpet-site {
  --xpet-ink: #13233f;
  --xpet-muted: #60708a;
  --xpet-line: rgba(72, 101, 150, 0.18);
  --xpet-blue: #2e77ff;
  --xpet-blue-dark: #1552d1;
  --xpet-sky: #eaf4ff;
  --xpet-mint: #dff8ef;
  --xpet-gold: #ffe8a8;
  --xpet-pink: #ffe9f2;
  min-height: 100vh;
  overflow: hidden;
  color: var(--xpet-ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 232, 168, 0.8), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(182, 222, 255, 0.9), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9ff 44%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.xpet-site * {
  box-sizing: border-box;
}

.xpet-site a {
  color: inherit;
  text-decoration: none;
}

.xpet-site button {
  font: inherit;
}

.xpet-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
}

.xpet-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 42px;
  border: 1px solid rgba(19, 35, 63, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(46, 119, 255, 0.12);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.xpet-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(19, 35, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
}

.xpet-nav nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334565;
  font-size: 15px;
  font-weight: 700;
}

.xpet-nav nav a:hover {
  background: #ffffff;
  color: var(--xpet-blue-dark);
}

.xpet-nav-cta,
.xpet-primary-button,
.xpet-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--xpet-blue), #57a3ff);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(46, 119, 255, 0.26);
  font-weight: 900;
  white-space: nowrap;
}

.xpet-primary-button,
.xpet-download-button {
  min-height: 58px;
  padding: 0 28px;
  font-size: 17px;
}

.xpet-site .xpet-nav-cta,
.xpet-site .xpet-primary-button,
.xpet-site .xpet-download-button {
  color: #ffffff;
}

.xpet-primary-button svg,
.xpet-nav-cta svg,
.xpet-platform-card svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.xpet-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
  width: min(1320px, calc(100% - 48px));
  min-height: min(760px, calc(100svh - 110px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.xpet-hero-copy {
  position: relative;
  z-index: 2;
}

.xpet-hero h1,
.xpet-feature-section h2,
.xpet-download-section h2 {
  margin: 0;
  color: var(--xpet-ink);
  font-weight: 950;
  letter-spacing: 0;
}

.xpet-hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 6.2vw, 94px);
  line-height: 1.02;
}

.xpet-hero p {
  max-width: 590px;
  margin: 26px 0 0;
  color: #40516f;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 650;
  line-height: 1.55;
}

.xpet-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: start;
  gap: 18px 28px;
  margin-top: 34px;
}

.xpet-hero-actions[data-recommended="mac"] [data-platform-link="mac"],
.xpet-hero-actions[data-recommended="windows"] [data-platform-link="windows"] {
  grid-row: 1;
  grid-column: 1;
}

.xpet-hero-actions[data-recommended="mac"] [data-platform-link="windows"],
.xpet-hero-actions[data-recommended="windows"] [data-platform-link="mac"] {
  grid-row: 1;
  grid-column: 2;
}

.xpet-hero-actions[data-recommended="mac"] [data-windows-portable-link] {
  grid-row: 2;
  grid-column: 2;
}

.xpet-hero-actions[data-recommended="windows"] [data-windows-portable-link] {
  grid-row: 2;
  grid-column: 1;
}

.xpet-download-button,
.xpet-platform-card {
  position: relative;
}

.xpet-recommended-download::after,
.xpet-platform-recommended::after {
  content: "推荐";
  position: absolute;
  top: -11px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #13233f;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(19, 35, 63, 0.18);
  font-size: 12px;
  font-weight: 950;
}

.xpet-platform-recommended::after {
  top: 14px;
  right: 14px;
}

.xpet-portable-link,
.xpet-windows-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(19, 35, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #52627c;
  font-size: 15px;
  font-weight: 800;
}

.xpet-portable-link {
  color: var(--xpet-blue-dark);
}

.xpet-hero-media {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(72, 101, 150, 0.14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 244, 255, 0.88));
  box-shadow: 0 32px 80px rgba(40, 70, 120, 0.18);
  overflow: hidden;
}

.xpet-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.xpet-feature-section,
.xpet-download-section,
.xpet-support-section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.xpet-feature-section {
  padding: 54px 0 88px;
}

.xpet-feature-section h2,
.xpet-download-section h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.xpet-feature-section > h2 {
  max-width: 760px;
}

.xpet-mobile-break {
  display: none;
}

.xpet-feature-stack {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.xpet-feature-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 24px;
  min-height: 282px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--xpet-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 58px rgba(43, 79, 128, 0.1);
}

.xpet-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.xpet-feature-copy span {
  color: var(--xpet-blue);
  font-size: 14px;
  font-weight: 950;
}

.xpet-feature-copy h3 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.xpet-feature-copy p,
.xpet-download-section p {
  margin: 16px 0 0;
  color: var(--xpet-muted);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.65;
}

.xpet-feature-visual {
  position: relative;
  min-height: 214px;
  border-radius: 22px;
  overflow: hidden;
}

.xpet-feature-visual {
  min-height: 300px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(72, 101, 150, 0.1);
  background: linear-gradient(135deg, #eff8ff, #fff8e5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.xpet-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.xpet-idle-demo .xpet-feature-image {
  object-position: 58% 58%;
}

.xpet-control-demo .xpet-feature-image {
  object-position: center bottom;
}

.xpet-fishing-band {
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1.52fr);
}

.xpet-fishing-demo {
  min-height: 440px;
  aspect-ratio: 3 / 2;
}

.xpet-fishing-demo .xpet-feature-image {
  object-position: center;
}

.xpet-generation-band {
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 1.52fr);
}

.xpet-generation-demo {
  min-height: 440px;
  aspect-ratio: 3 / 2;
}

.xpet-generation-demo .xpet-feature-image {
  object-position: center;
}

.xpet-download-section {
  padding: 96px 0 74px;
  text-align: center;
}

.xpet-download-section p {
  margin-right: auto;
  margin-left: auto;
}

.xpet-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.xpet-platform-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 192px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--xpet-line);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(43, 79, 128, 0.1);
}

.xpet-platform-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--xpet-blue), #61b7ff);
  box-shadow: 0 24px 58px rgba(46, 119, 255, 0.28);
}

.xpet-site .xpet-platform-active {
  color: #ffffff;
}

.xpet-platform-windows {
  background: linear-gradient(135deg, var(--xpet-blue), #61b7ff);
}

.xpet-platform-card svg {
  width: 38px;
  height: 38px;
}

.xpet-platform-card strong {
  font-size: 24px;
  font-weight: 950;
}

.xpet-platform-card span {
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  opacity: 0.84;
}

.xpet-platform-disabled {
  color: #8a97a9;
  background: rgba(255, 255, 255, 0.64);
}

.xpet-download-note {
  font-size: 15px;
}

.xpet-download-note a {
  color: var(--xpet-blue-dark);
  font-weight: 900;
}

.xpet-download-help-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.xpet-download-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(46, 119, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--xpet-blue-dark);
  box-shadow: 0 12px 28px rgba(43, 79, 128, 0.08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.xpet-download-help-link:hover {
  border-color: rgba(46, 119, 255, 0.34);
  background: #ffffff;
}

.xpet-help-open {
  overflow: hidden;
}

.xpet-help-overlay[hidden] {
  display: none;
}

.xpet-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(19, 35, 63, 0.24);
  backdrop-filter: blur(10px);
}

.xpet-help-dialog {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(980px, 100%);
  max-height: min(780px, calc(100svh - 48px));
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(72, 101, 150, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 92px rgba(19, 35, 63, 0.24);
  overflow: auto;
}

.xpet-help-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(19, 35, 63, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #52627c;
  box-shadow: 0 10px 24px rgba(43, 79, 128, 0.1);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.xpet-help-copy {
  padding-right: 42px;
}

.xpet-help-copy span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--xpet-mint);
  color: #167a58;
  font-size: 13px;
  font-weight: 950;
}

.xpet-help-copy h2 {
  margin: 12px 0 0;
  color: var(--xpet-ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}

.xpet-help-copy p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--xpet-muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.xpet-help-copy ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 1.3em;
  color: #40516f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.58;
  text-align: left;
}

.xpet-help-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.xpet-help-figure {
  display: grid;
  gap: 9px;
  margin: 0;
  min-width: 0;
}

.xpet-help-image-frame {
  position: relative;
  min-width: 0;
}

.xpet-help-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 268px;
  border: 1px solid rgba(72, 101, 150, 0.12);
  border-radius: 16px;
  background: #ffffff;
  object-fit: contain;
}

.xpet-help-smartscreen-callout,
.xpet-help-smartscreen-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.xpet-help-smartscreen-callout {
  left: 49%;
  top: 70%;
  min-width: 18%;
  min-height: 8%;
  gap: 5%;
  padding: 0 1.5%;
  border-radius: 999px;
  background: #ffffff;
  color: #13233f;
  font-size: clamp(7px, 1.15vw, 15px);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(19, 35, 63, 0.1);
  transform: translateY(-50%);
}

.xpet-help-smartscreen-callout b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 999px;
  background: #f25f5c;
  color: #ffffff;
}

.xpet-help-smartscreen-button {
  right: 7.2%;
  bottom: 7.2%;
  width: 10%;
  height: 7.6%;
  border-radius: 8px;
  background: #40bd6a;
  font-size: clamp(8px, 1vw, 15px);
}

.xpet-help-figure figcaption {
  color: #52627c;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.xpet-help-actions {
  display: flex;
  justify-content: flex-end;
}

.xpet-help-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--xpet-blue), #57a3ff);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(46, 119, 255, 0.22);
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
}

.xpet-support-section {
  padding: 0 0 64px;
  text-align: center;
}

.xpet-support-section h2 {
  margin: 0;
  color: var(--xpet-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 950;
}

.xpet-support-section p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--xpet-muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.7;
}

.xpet-support-section a {
  color: var(--xpet-blue-dark);
  font-weight: 900;
}

.xpet-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(1320px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  border-top: 1px solid rgba(19, 35, 63, 0.08);
  color: #60708a;
  font-size: 14px;
  font-weight: 800;
}

.xpet-footer span {
  color: var(--xpet-ink);
  font-weight: 950;
}

@media (max-width: 1000px) {
  .xpet-nav {
    width: min(100% - 32px, 720px);
    height: 78px;
  }

  .xpet-nav nav {
    display: none;
  }

  .xpet-hero,
  .xpet-feature-section,
  .xpet-download-section,
  .xpet-support-section,
  .xpet-footer {
    width: min(100% - 32px, 720px);
  }

  .xpet-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 34px;
  }

  .xpet-hero h1 {
    font-size: clamp(44px, 12vw, 66px);
  }

  .xpet-hero-media {
    border-radius: 22px;
  }

  .xpet-feature-section {
    padding-top: 36px;
  }

  .xpet-feature-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .xpet-nav {
    gap: 12px;
    width: calc(100% - 24px);
    overflow: hidden;
  }

  .xpet-brand {
    width: 82px;
  }

  .xpet-nav-cta {
    display: none;
  }

  .xpet-hero,
  .xpet-feature-section,
  .xpet-download-section,
  .xpet-support-section,
  .xpet-footer {
    width: calc(100% - 24px);
  }

  .xpet-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 40px;
    line-height: 1.08;
  }

  .xpet-hero p {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 17px;
  }

  .xpet-primary-button,
  .xpet-download-button,
  .xpet-portable-link,
  .xpet-windows-note {
    width: 100%;
  }

  .xpet-hero-actions {
    grid-template-columns: 1fr;
  }

  .xpet-hero-actions [data-platform-link],
  .xpet-hero-actions [data-windows-portable-link] {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .xpet-hero-actions[data-recommended="mac"] [data-platform-link="mac"],
  .xpet-hero-actions[data-recommended="windows"] [data-platform-link="windows"] {
    order: -2;
  }

  .xpet-hero-actions[data-recommended="mac"] [data-platform-link="windows"],
  .xpet-hero-actions[data-recommended="windows"] [data-windows-portable-link] {
    order: -1;
  }

  .xpet-feature-section h2,
  .xpet-download-section h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 34px;
  }

  .xpet-mobile-break {
    display: block;
  }

  .xpet-feature-band {
    border-radius: 22px;
  }

  .xpet-feature-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .xpet-feature-image {
    object-fit: contain;
  }

  .xpet-fishing-demo {
    min-height: 0;
  }

  .xpet-platforms {
    grid-template-columns: 1fr;
  }

  .xpet-help-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .xpet-help-dialog {
    max-height: calc(100svh - 24px);
    border-radius: 22px;
  }

  .xpet-help-copy {
    padding-right: 36px;
  }

  .xpet-help-visuals {
    grid-template-columns: 1fr;
  }

  .xpet-help-actions {
    justify-content: stretch;
  }

  .xpet-help-done {
    width: 100%;
  }

  .xpet-footer {
    flex-wrap: wrap;
  }
}
