/* ============================================================
   MyPam / 麦胖 — desktop AI workstation download page
   ============================================================ */

:root {
  --accent: #ff6521;
  --accent-2: #ff8a3d;
  --ink: #14202b;
  --muted: #5c6b76;
  --line: rgba(20, 32, 41, 0.08);
  --card: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 6px 20px rgba(20, 32, 41, 0.06);
  --shadow-md: 0 16px 40px rgba(20, 32, 41, 0.1);
  --win-shadow: 0 30px 70px rgba(20, 32, 41, 0.22);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #f3f7f6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 46% at 12% 6%, #d8f6ea 0%, rgba(216, 246, 234, 0) 60%),
    radial-gradient(44% 44% at 92% 10%, #ffe6d8 0%, rgba(255, 230, 216, 0) 60%),
    radial-gradient(50% 50% at 82% 94%, #e2ecff 0%, rgba(226, 236, 255, 0) 62%),
    radial-gradient(46% 46% at 6% 94%, #fde7ef 0%, rgba(253, 231, 239, 0) 60%),
    #f4f8f7;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-poster {
  position: absolute;
  top: 60px;
  right: -8%;
  width: 48vw;
  max-width: 680px;
  border-radius: 16px;
  opacity: 0.12;
  filter: blur(7px) saturate(1.05);
  transform: rotate(5deg);
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(255, 101, 33, 0.35);
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-switch button.is-active {
  background: var(--accent);
  color: #fff;
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 44px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 101, 33, 0.15);
}

.hero__title {
  margin: 18px 0 16px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.5px;
}

.hero__title mark {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 0.04em 0.18em;
  border-radius: 0.16em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__desc {
  margin: 0;
  max-width: 540px;
  font-size: clamp(15px, 1.55vw, 17.5px);
  line-height: 1.72;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 30px;
}

.pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
  color: #33434e;
  box-shadow: var(--shadow-sm);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  height: 60px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 101, 33, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 101, 33, 0.42);
  filter: brightness(1.03);
}

.dl-btn:active {
  transform: translateY(0);
}

.dl-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.dl-btn__icon {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.cta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.cta-note svg {
  flex-shrink: 0;
  color: #2fae7e;
}

/* ---------- Window mockups (hero) ---------- */
.hero__visual {
  position: relative;
  min-width: 0;
}

.windows {
  position: relative;
  padding: 6px;
}

.windows img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(20, 32, 41, 0.08);
  background: #fff;
}

.windows .w-back {
  position: absolute;
  width: 54%;
  z-index: 1;
  opacity: 0.95;
  box-shadow: 0 22px 48px rgba(20, 32, 41, 0.16);
}

.windows .w-back--tl {
  top: -7%;
  left: -7%;
  transform: rotate(-5deg);
}

.windows .w-back--br {
  right: -7%;
  bottom: -9%;
  transform: rotate(5deg);
}

.windows .w-front {
  position: relative;
  z-index: 2;
  box-shadow: var(--win-shadow);
}

/* ---------- Section heading ---------- */
.section {
  padding: clamp(40px, 6vw, 72px) 0;
}

.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.sec-title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 850;
  letter-spacing: -0.3px;
}

.sec-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(255, 101, 33, 0.14), rgba(255, 138, 61, 0.1));
}

.feature__icon svg {
  width: 27px;
  height: 27px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.feature:nth-child(2) .feature__icon {
  color: #2f9e8f;
  background: linear-gradient(135deg, rgba(47, 158, 143, 0.14), rgba(47, 158, 143, 0.08));
}
.feature:nth-child(3) .feature__icon {
  color: #4a7bd6;
  background: linear-gradient(135deg, rgba(74, 123, 214, 0.14), rgba(74, 123, 214, 0.08));
}
.feature:nth-child(4) .feature__icon {
  color: #d98a1e;
  background: linear-gradient(135deg, rgba(217, 138, 30, 0.14), rgba(217, 138, 30, 0.08));
}
.feature:nth-child(5) .feature__icon {
  color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.08));
}
.feature:nth-child(6) .feature__icon {
  color: #e0559b;
  background: linear-gradient(135deg, rgba(224, 85, 155, 0.14), rgba(224, 85, 155, 0.08));
}

/* ---------- Device highlight ---------- */
.device {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: linear-gradient(135deg, #fff2ea 0%, #ffe7f0 50%, #e9f1ff 100%);
  border-radius: 30px;
  padding: clamp(28px, 4.5vw, 56px);
  box-shadow: var(--shadow-sm);
}

.device__title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 850;
  line-height: 1.16;
}

.device__desc {
  margin: 0 0 22px;
  color: #43535e;
  font-size: clamp(14.5px, 1.55vw, 16.5px);
  line-height: 1.7;
}

.key-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.key-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: #2b3a44;
  box-shadow: var(--shadow-sm);
}

.key-chips span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.device__shot {
  position: relative;
}

.device__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(20, 32, 41, 0.08);
  box-shadow: var(--win-shadow);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.shot-card {
  margin: 0;
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shot-card:hover img {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.shot-card figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #33434e;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 30px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  background: linear-gradient(135deg, #ff6d2c 0%, #ff943f 100%);
  color: #fff;
  box-shadow: 0 26px 60px rgba(255, 101, 33, 0.36);
}

.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.final-cta::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -80px;
}

.final-cta::after {
  width: 260px;
  height: 260px;
  bottom: -140px;
  right: -60px;
}

.final-cta h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 850;
  letter-spacing: -0.3px;
}

.final-cta p {
  position: relative;
  margin: 0 auto 30px;
  max-width: 520px;
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.final-cta .cta-row {
  position: relative;
  justify-content: center;
}

.final-cta .dl-btn {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.final-cta .dl-btn:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.footer .dot {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---------- Entrance animation ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__copy .hero__title {
  animation-delay: 0.05s;
}
.hero__copy .hero__desc {
  animation-delay: 0.1s;
}
.hero__copy .pills {
  animation-delay: 0.16s;
}
.hero__copy .cta-row {
  animation-delay: 0.22s;
}
.hero__copy .cta-note {
  animation-delay: 0.28s;
}
.hero__visual .windows {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .pills,
  .cta-row {
    justify-content: center;
  }
  .cta-note {
    justify-content: center;
  }
  .device {
    grid-template-columns: 1fr;
  }
  .device__shot {
    order: -1;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: clamp(30px, 8vw, 40px);
  }
  .windows .w-back {
    display: none;
  }
  .dl-btn {
    width: 100%;
    max-width: 320px;
  }
  .cta-row {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
