/**
 * 蛋蛋分享库官网独立样式
 * 视觉方向：晨雾石色底 + 蛋黄琥珀强调 + 墨色排版
 * 与同目录其他项目模板无共用关系
 */
:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --mist: #eef2f5;
  --mist-deep: #d8e2ea;
  --paper: #f7f9fb;
  --yolk: #f0c41a;
  --yolk-deep: #e4a116;
  --leaf: #3db54a;
  --leaf-deep: #2f9a3b;
  --yolk-glow: rgba(61, 181, 74, 0.28);
  --line: rgba(26, 35, 50, 0.1);
  --frame: min(1120px, calc(100% - 2.5rem));
  --radius: 18px;
  --font-ui: "Manrope", "Noto Sans SC", system-ui, sans-serif;
  --font-brand: "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 181, 74, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(240, 196, 26, 0.18), transparent 50%),
    linear-gradient(180deg, #f3f6f8 0%, var(--mist) 40%, #e9eff3 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.frame {
  width: var(--frame);
  margin-inline: auto;
}

/* —— 顶栏 —— */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 251, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.mast.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 249, 251, 0.92);
}

.mast-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.mark-logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(26, 35, 50, 0.08);
  flex-shrink: 0;
}

.rail {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.rail a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
}

.rail a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.25rem;
  height: 2px;
  background: var(--leaf);
  transition: right 0.35s var(--ease);
}

.rail a:hover {
  color: var(--ink);
}

.rail a:hover::after {
  right: 0;
}

.pill-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.pill-dl:hover {
  background: var(--leaf-deep);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.burger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* —— 首屏 —— */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  place-items: center;
  padding: 5.5rem 0 4rem;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-orb-a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  right: -8%;
  top: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(61, 181, 74, 0.4), rgba(61, 181, 74, 0.05) 55%, transparent 70%);
}

.hero-orb-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  left: -6%;
  bottom: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(240, 196, 26, 0.35), transparent 68%);
  animation-delay: -4s;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  opacity: 0.7;
}

.hero-shelf {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(26, 35, 50, 0.04)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(26, 35, 50, 0.05) 72px,
      rgba(26, 35, 50, 0.05) 74px
    );
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.hero-core {
  text-align: center;
  max-width: 820px;
}

.hero-logo {
  width: clamp(7.5rem, 18vw, 10.5rem);
  height: auto;
  margin: 0 auto 1.1rem;
  border-radius: 28px;
  box-shadow:
    0 18px 40px rgba(61, 181, 74, 0.22),
    0 0 0 1px rgba(26, 35, 50, 0.06);
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hero-lead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
}

.hero-sub {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 28px var(--yolk-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px var(--yolk-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 35, 50, 0.18);
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.btn-block {
  width: 100%;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.2rem;
  border: 1.5px solid rgba(26, 35, 50, 0.25);
  border-radius: 999px;
}

.hero-scroll span {
  display: block;
  width: 4px;
  height: 4px;
  margin: 0.45rem auto 0;
  border-radius: 50%;
  background: var(--ink);
  animation: scrollDot 1.6s var(--ease) infinite;
}

/* —— 通用区块 —— */
.block-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.block-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.block-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.ability,
.guide,
.trust,
.faq,
.gallery {
  padding: 5rem 0;
}

.gallery {
  padding-top: 2.5rem;
}

.shot-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.15rem 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-track:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 4px;
}

.shot {
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 36px rgba(26, 35, 50, 0.1);
}

.shot figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ability {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 20%, rgba(255, 255, 255, 0.55) 80%, transparent);
}

.ability-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ability-item {
  padding: 1.6rem 1.5rem 1.7rem;
  border-top: 2px solid var(--ink);
  background: transparent;
}

.ability-index {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--leaf-deep);
  margin-bottom: 0.85rem;
}

.ability-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.ability-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* —— 下载 —— */
.download {
  padding: 2rem 0 5rem;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(26, 35, 50, 0.96), #243247 55%, #1f2c3d),
    var(--ink);
  color: #f2f5f8;
  box-shadow: 0 30px 60px rgba(26, 35, 50, 0.22);
  overflow: hidden;
  position: relative;
}

.download-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 181, 74, 0.35), transparent 65%);
  pointer-events: none;
}

.download-copy,
.download-action {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 220, 140, 0.95);
}

.download-copy h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.download-copy > p {
  margin: 0.9rem 0 0;
  color: rgba(242, 245, 248, 0.78);
  max-width: 36em;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 1.75rem 0 0;
}

.meta-grid dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(242, 245, 248, 0.5);
  margin-bottom: 0.2rem;
}

.meta-grid dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.download-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  backdrop-filter: blur(8px);
}

.download-logo {
  width: 5.2rem;
  height: 5.2rem;
  margin: 0 auto 1rem;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.download-name {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
}

.download-ver {
  margin: 0.35rem 0 1.25rem;
  color: rgba(242, 245, 248, 0.65);
  font-size: 0.9rem;
}

.download-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: rgba(242, 245, 248, 0.5);
}

/* —— 安装步骤 —— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line);
  margin-left: 0.85rem;
}

.step {
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: absolute;
  left: -0.95rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--leaf-deep);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* —— 信任 —— */
.trust {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(26, 35, 50, 0.015) 18px,
      rgba(26, 35, 50, 0.015) 19px
    );
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.trust-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.trust-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.trust-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85rem 2rem 0.85rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--leaf-deep);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 48em;
}

/* —— 收束 —— */
.finale {
  padding: 2rem 0 5.5rem;
}

.finale-inner {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(61, 181, 74, 0.18), transparent 60%),
    linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.65));
  border: 1px solid var(--line);
}

.finale-logo {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(61, 181, 74, 0.2);
}

.finale-inner h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
}

.finale-inner p {
  margin: 0.85rem auto 1.75rem;
  max-width: 28em;
  color: var(--ink-soft);
}

/* —— 页脚 —— */
.foot {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.foot-row {
  text-align: center;
}

.foot-brand {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
}

.foot-meta,
.foot-legal {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.foot-legal {
  opacity: 0.85;
}

/* —— 动效 —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.04);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  80%,
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* —— 自适应 —— */
@media (max-width: 900px) {
  .ability-rail,
  .trust-list,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 1.75rem;
  }

  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --frame: min(1120px, calc(100% - 1.5rem));
  }

  .burger {
    display: inline-flex;
    margin-left: auto;
  }

  .pill-dl {
    display: none;
  }

  .rail {
    position: fixed;
    inset: 4rem 0.75rem auto;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    border-radius: 14px;
    background: rgba(247, 249, 251, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(26, 35, 50, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .rail.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .rail a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .rail a:hover {
    background: rgba(61, 181, 74, 0.1);
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0 3.5rem;
  }

  .hero-scroll {
    display: none;
  }

  .ability,
  .guide,
  .trust,
  .faq,
  .gallery {
    padding: 3.5rem 0;
  }

  .gallery {
    padding-top: 1.5rem;
  }

  .ability-rail {
    gap: 0.5rem;
  }

  .shot-track {
    grid-auto-columns: minmax(200px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-orb,
  .hero-scroll span {
    animation: none;
  }
}
