/* 猪猪软件库 — 精致淡色官网风 */
:root {
  --black: #111111;
  --black-soft: #2a2a2a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f3f3f3;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #666666;
  --pink: #f4b4c4;
  --pink-light: #fff5f7;
  --pink-deep: #e89aab;
  --brown: #6b4423;
  --brown-light: #f5ebe3;
  --accent: #ff5c7a;
  --accent-deep: #e84d6a;
  --accent-glow: rgba(255, 92, 122, 0.22);
  --shadow: 0 20px 50px rgba(17, 17, 17, 0.08);
  --shadow-sm: 0 6px 20px rgba(17, 17, 17, 0.06);
  --shadow-pink: 0 16px 40px rgba(255, 92, 122, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-en: "DM Sans", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* 英文小标题 */
.title-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.title-en--sm { font-size: 0.65rem; margin-bottom: 0.25rem; }
.title-en--xs { font-size: 0.6rem; margin-bottom: 0.35rem; letter-spacing: 0.12em; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 2px solid var(--pink-light);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 85% 35%, rgba(244, 180, 196, 0.35), transparent 62%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(255, 92, 122, 0.08), transparent 55%),
    linear-gradient(160deg, #fff 0%, var(--pink-light) 55%, #fff 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--pink);
  box-shadow: var(--shadow-pink);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--gray-600);
  max-width: 28em;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 28px var(--accent-glow);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 92, 122, 0.32);
}

.btn-primary svg { width: 18px; height: 18px; }
.btn-primary--lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.8);
  color: var(--black-soft);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black-soft);
  box-shadow: var(--shadow-sm);
}

.hero-tags .title-en {
  display: inline;
  margin-right: 0.35rem;
  font-size: 0.55rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.hero-visual-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 196, 0.55) 0%, transparent 68%);
  filter: blur(2px);
}

.hero-phone {
  position: relative;
  z-index: 1;
  width: 280px;
  padding: 11px;
  border-radius: 32px;
  background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
  border: 3px solid var(--brown);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 28px 60px rgba(17, 17, 17, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-phone img {
  border-radius: 22px;
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--gray-200);
}

.section--white { background: var(--white); }
.section--soft {
  background: linear-gradient(180deg, var(--pink-light) 0%, var(--white) 100%);
}
.section--trust {
  padding: 3rem 0;
  background: var(--white);
  border-top: 0;
}
.section--cta {
  padding: 5rem 0 5.5rem;
  background: var(--black);
  border-top: 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
}

.story-block {
  max-width: 720px;
  margin: 0 auto;
}

.story-block .title-en {
  display: block;
  margin-bottom: 0.5rem;
}

.story-block h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.story-block p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.85;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.section-head--score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
  text-align: left;
  margin-bottom: 2.25rem;
}

.section-head--score > div:first-child {
  max-width: 520px;
}

.score-badge {
  flex-shrink: 0;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--pink-light);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.score-badge strong {
  display: block;
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.score-badge span {
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.75rem 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink-deep);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Screenshots — 桌面横排，移动端左右滑动 */
.shot-strip {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  box-shadow: var(--shadow-sm);
}

.shot-item {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
}

.shot-item img {
  width: auto;
  max-height: 340px;
  margin-inline: auto;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.shot-item:hover img {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
}

.shot-item figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* Trust */
.trust-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 1.35rem 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item .title-en { color: var(--pink); }

.trust-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-num {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--pink-light);
  -webkit-text-stroke: 1px var(--pink-deep);
  opacity: 0.9;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.review-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  border-color: var(--pink-deep);
  box-shadow: var(--shadow-sm);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brown), #8b5a2b);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.review-name { font-weight: 600; font-size: 0.9rem; }

.review-head time {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
}

.review-stars {
  color: #f2c94c;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.review-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* FAQ */
.faq-panel {
  max-width: 780px;
  margin-inline: auto;
  padding: 0.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow);
}

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  font-size: 0.92rem;
  padding-right: 1.5rem;
  line-height: 1.75;
}

/* CTA */
.cta-panel {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: 3.25rem 2rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 92, 122, 0.15), transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, var(--black) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cta-panel img {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  border: 3px solid var(--pink);
  box-shadow: var(--shadow-pink);
}

.cta-panel .title-en { color: var(--pink); }

.cta-panel h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
}

.cta-panel p {
  margin: 0 auto 1.75rem;
  color: var(--gray-400);
  max-width: 26em;
}

/* Footer */
.site-footer {
  padding: 1.75rem 0 2rem;
  background: var(--black);
  color: var(--gray-400);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.footer-links { display: flex; gap: 1.1rem; }
.footer-links a:hover { color: var(--pink); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-brand { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-tags { display: none; }

  .hero-visual {
    min-height: 360px;
    margin-top: 1.25rem;
    order: unset;
  }

  .hero-copy { order: unset; }

  .hero-phone { width: min(260px, 72vw); }

  .feature-grid,
  .step-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .trust-panel { grid-template-columns: 1fr 1fr; }

  .section-head--score {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .shot-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.85rem;
    margin-inline: -0.25rem;
    padding: 1.25rem 1rem 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
  }

  .shot-strip::-webkit-scrollbar { display: none; }

  .shot-item {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-width: 42%;
    max-width: 180px;
  }

  .shot-item img { max-height: 300px; }

  .shot-item:hover img { transform: none; }

  .nav-links { display: none; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1.25rem;
    right: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .menu-toggle { display: block; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 1.6rem, var(--max)); }

  .section { padding: 3.75rem 0; }

  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }

  .trust-panel { grid-template-columns: 1fr; }

  .shot-item {
    min-width: 58%;
    max-width: 200px;
  }

  .shot-item img { max-height: 260px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 右下角悬浮下载 */
.fab-dl {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 10px 28px var(--accent-glow);
  transition: transform 0.15s, background 0.15s;
}
.fab-dl:hover { background: var(--accent-deep); transform: translateY(-2px); color: #fff; }
.fab-dl svg { width: 17px; height: 17px; }
@media (max-width: 600px) {
  .fab-dl span { display: none; }
  .fab-dl { padding: 0.75rem; border-radius: 50%; }
}
