/* The homepage. Layout follows the 胖5 site (../115netdisk/site/pang5-site); colours and fonts are the app's
   dark and gold tokens, copied from packages/ui/src/styles/tokens.css (tests/site/consistency.spec.ts keeps them equal). */
:root {
  color-scheme: dark;
  --bg: #0a0d13;
  --surface: #131824;
  --surface-2: #1a2130;
  --surface-3: #232c3e;
  --line: #ffffff14;
  --line-strong: #ffffff26;
  --ink: #edf1f7;
  --muted: #9aa5b8;
  --faint: #7b8699;
  --gold: #e8b45a;
  --gold-bright: #f4cd85;
  --on-gold: #241a06;
  --success: #55c088;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  /* Anchored sections land below the fixed tabs. */
  scroll-padding-top: 96px;
}
/* Smooth only for the visitor's own clicks on in-page links (site.js adds the class): set on
   html from the start, browsers also animate a deep link's first jump across the whole page. */
html.smooth {
  scroll-behavior: smooth;
}
/* No background of its own: html paints the page colour, so the hero backdrop (z-index -1) shows through. */
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  background: #e8b45a44;
}
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Hero backdrop: a gold and a navy glow at the top, and two faint gold arcs. */
.page {
  position: relative;
}
.sky {
  position: absolute;
  /* Behind every section, whatever ends up inside its 720px. */
  z-index: -1;
  inset: 0 0 auto;
  height: 720px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -12%, #e8b45a2e 0, #e8b45a00 70%),
    radial-gradient(1000px 560px at 88% -6%, #1a2233 0, #1a223300 72%),
    linear-gradient(180deg, #111726 0, var(--bg) 100%);
}
.sky::before,
.sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border-top: 1.5px solid #f4cd8533;
}
.sky::before {
  width: 1200px;
  height: 900px;
  left: -120px;
  top: 140px;
  transform: rotate(-8deg);
}
.sky::after {
  width: 1500px;
  height: 1100px;
  left: 420px;
  top: 320px;
  transform: rotate(6deg);
  border-top-color: #f4cd8524;
}

/* Header */
.top {
  position: relative;
  z-index: 2;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.top-left {
  display: flex;
  align-items: center;
  gap: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* The app's header mark (AppShell.vue .app-mark). */
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    var(--gold-bright),
    var(--gold) 60%,
    #b9863a
  );
  color: var(--on-gold);
  box-shadow: 0 6px 18px #e8b45a33;
}
.mark svg {
  width: 18px;
  height: 18px;
}
.about {
  font-size: 16px;
  font-weight: 600;
}
.top-right {
  display: flex;
  gap: 44px;
  font-size: 14px;
  color: var(--muted);
}
.top a:hover {
  color: var(--gold-bright);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: 470px;
  margin-top: 16px;
  padding: 0 78px;
}
.hero-copy {
  max-width: 600px;
}
/* Headings take the body's sans at 600: 苹方 Semibold, or 微软雅黑 Bold on Windows. */
.hero-title {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 2px;
}
.hero-sub {
  margin: 12px 0 22px;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.5;
}
/* Narrow screens break between the phrases, not inside them. */
.hero-sub span {
  white-space: nowrap;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.tag {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff0a;
  font-size: 12px;
  color: var(--muted);
}

/* Platform card */
.pick {
  flex: none;
  width: 400px;
  padding: 28px 32px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(19, 24, 36, 0.72);
  box-shadow: 0 24px 60px #00000066;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.pick h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
}
.pick h2 em {
  font-style: normal;
  color: var(--gold-bright);
}
.pick .hint {
  margin: 2px 0 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.pick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 0.18s,
    color 0.18s;
}
.pick-item svg {
  width: 24px;
  height: 24px;
}
.pick-item:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.pick-item small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* Section tabs: hidden (and out of the Tab order) until the hero scrolls away. */
.tabs-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}
.tabs-wrap.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s;
}
.tabs {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 24, 36, 0.7);
  box-shadow: 0 12px 48px #00000059;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.tabs a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.tabs a:hover,
.tabs a.on {
  color: var(--ink);
  font-weight: 600;
}
.tabs a.tab-dl {
  gap: 6px;
  margin-left: 24px;
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 500;
}
.tabs a.tab-dl svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

/* Feature blocks, copy and picture side by side, alternating. */
.blocks {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 48px;
}
.block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 550px;
  padding: 60px 60px 60px 90px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.block.rev {
  flex-direction: row-reverse;
  padding: 60px 90px 60px 60px;
}
.b-copy {
  flex: 0 0 auto;
  width: 436px;
}
.b-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 65px;
}
.b-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.b-sub {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 300;
  line-height: 44px;
}
.b-list {
  margin: 0 0 46px;
  padding: 0 0 0 20px;
  list-style: none;
}
.b-list li {
  position: relative;
  font-size: 16px;
  line-height: 32px;
  color: var(--muted);
}
.b-list li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}
.b-list.check {
  margin-bottom: 34px;
  padding-left: 24px;
}
.b-list.check li::before {
  left: -20px;
  top: 11px;
  width: 10px;
  height: 6px;
  border-radius: 0;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: none;
  transform: rotate(-45deg);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 45px;
  padding: 0 26px;
  border: 1.5px solid var(--gold);
  border-radius: 22.5px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-bright);
  transition:
    background 0.18s,
    color 0.18s;
}
.pill:hover {
  background: var(--gold);
  color: var(--on-gold);
}
.pill svg {
  width: 14px;
  height: 14px;
}
.badges {
  display: flex;
  gap: 12px;
  margin: -4px 0 22px;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gold-bright);
}
.badge.k4 {
  font-size: 24px;
  line-height: 1;
}
.badge small {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.6px;
}
.b-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--faint);
}
.b-media {
  position: relative;
  flex: 0 1 633px;
  aspect-ratio: 633 / 428;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface-2), #0f141f);
  container-type: inline-size;
}
/* Captions over the picture; the pictures keep these two corners free. */
.chip {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(35, 44, 62, 0.85);
  box-shadow: 0 8px 24px #00000059;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--ink);
}
.chip b {
  font-weight: 600;
  color: var(--gold-bright);
}
.chip.c1 {
  left: 7%;
  top: 12%;
}
.chip.c2 {
  right: 7%;
  bottom: 14%;
}
/* The captions keep a fixed size, so on a picture narrower than 520px (phones, and desktop
   widths around 901–1200px) they would cover what it shows; the copy beside it says the same. */
@container (max-width: 520px) {
  .chip {
    display: none;
  }
}

/* Downloads */
.download {
  padding: 100px 0 60px;
  text-align: center;
}
.download h2 {
  margin: 0 0 50px;
  font-size: 36px;
  font-weight: 600;
}
.dl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.dl {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 132px;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}
.dl svg.os {
  width: 52px;
  height: 52px;
}
.dl .go {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.dl .name {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  transition: transform 0.18s;
}
.dl .name small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.dl .act {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-bright);
  opacity: 0;
  transition: opacity 0.18s;
}
.dl:focus-visible .act {
  opacity: 1;
}
@media (hover: hover) and (min-width: 601px) {
  .dl:hover {
    z-index: 2;
    background: var(--surface-2);
    box-shadow: 0 11px 27px #00000059;
    transform: scale(1.2);
  }
  .dl:hover .act {
    opacity: 1;
  }
  .dl:hover .name {
    transform: translateY(-6px);
  }
}
.dl-note {
  max-width: 720px;
  margin: 40px auto 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--faint);
}

/* Questions and support */
.help {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  padding-bottom: 70px;
}
.panel {
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.panel h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
}
details {
  border-bottom: 1px solid var(--line);
}
details:last-of-type {
  border-bottom: 0;
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s;
}
details[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
details p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
/* Shaped like the 胖5 community buttons, but plain text: these are directions, not links. */
.s-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.s-row b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* Footer */
.footer {
  width: min(1296px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 2;
  color: var(--faint);
  text-align: center;
}
.footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.footer .links a {
  padding: 0 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
}
.footer .links a:first-child {
  border-left: 0;
}
.footer .links a:hover {
  color: var(--gold-bright);
}
/* Narrow screens break between the phrases, not inside them. */
.footer .source span {
  white-space: nowrap;
}

/* Notice, styled like the app's toast. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 99;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--surface-3);
  box-shadow: 0 10px 30px #00000045;
  font-size: 14px;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Reduced motion: nothing animates, and the download cards do not grow under the pointer. */
@media (prefers-reduced-motion: reduce) {
  html.smooth {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .dl:hover,
  .dl:hover .name {
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .hero {
    padding: 0 24px;
  }
  .block,
  .block.rev {
    gap: 40px;
    padding: 50px 40px;
  }
  .b-copy {
    width: 380px;
  }
  .b-title {
    font-size: 34px;
    line-height: 54px;
  }
  .b-sub {
    font-size: 24px;
    line-height: 38px;
  }
}
@media (max-width: 900px) {
  .top {
    padding: 0 16px;
  }
  .top-left {
    gap: 24px;
  }
  .top-right {
    gap: 20px;
  }
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    padding: 0;
  }
  .hero-copy {
    max-width: none;
    text-align: center;
  }
  .hero-tags {
    justify-content: center;
  }
  .pick {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .tabs a {
    padding: 0 12px;
    font-size: 14px;
  }
  .tabs a.tab-dl {
    margin-left: 6px;
  }
  .block,
  .block.rev {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 40px 28px;
  }
  .b-copy {
    width: auto;
  }
  .b-media {
    flex: none;
    width: 100%;
  }
  .help {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .about,
  .top-faq {
    display: none;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-sub {
    font-size: 26px;
  }
  .pick {
    padding: 24px 18px;
  }
  .pick-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .tabs-wrap {
    top: 12px;
    justify-content: flex-start;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs-wrap::-webkit-scrollbar {
    display: none;
  }
  .block,
  .block.rev {
    padding: 32px 20px;
  }
  .b-title {
    font-size: 30px;
    line-height: 46px;
  }
  .b-sub {
    font-size: 21px;
    line-height: 34px;
  }
  .b-list li {
    font-size: 15px;
  }
  .badges {
    gap: 8px;
  }
  .badge {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 8px;
    font-size: 16px;
  }
  .badge.k4 {
    font-size: 20px;
  }
  .chip {
    padding: 6px 9px;
    font-size: 11px;
  }
  .download {
    padding-top: 70px;
  }
  .download h2 {
    margin-bottom: 32px;
    font-size: 28px;
  }
  .dl-grid {
    gap: 14px;
  }
  .dl {
    width: calc(33.333% - 10px);
    height: 150px;
  }
  .dl svg.os {
    width: 40px;
    height: 40px;
  }
  .dl .name {
    font-size: 14px;
  }
  .dl .act {
    display: none;
  }
  .panel {
    padding: 28px 20px;
  }
}
@media (max-width: 380px) {
  .dl {
    width: calc(50% - 7px);
  }
}
