/* 吉津农业官网 — 深林绿工具型农务品牌 */
:root {
  --sn-primary: #0d6b4f;
  --sn-primary-mid: #168a64;
  --sn-primary-ink: #094535;
  --sn-primary-soft: #e6f4ee;
  --sn-accent: #c4a35a;
  --sn-bg: #f3f5f2;
  --sn-surface: #ffffff;
  --sn-text: #1a2e26;
  --sn-text-muted: #5c6b64;
  --sn-text-faint: #8a968f;
  --sn-border: #e4e9e5;
  --sn-radius-sm: 8px;
  --sn-radius-md: 12px;
  --sn-radius-lg: 16px;
  --space-section: 112px;
  --space-group: 64px;
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sn-text);
  background: var(--sn-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--sn-primary-ink);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
  background: rgba(243, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--sn-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-nav.is-solid .nav-brand {
  color: var(--sn-primary-ink);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.site-nav.is-solid .nav-links a {
  color: var(--sn-text-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--sn-accent);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--sn-radius-md);
  background: #fff;
  color: var(--sn-primary-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--sn-primary-soft);
  outline: 2px solid var(--sn-accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--sn-primary-ink);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 69, 53, 0.15) 0%, rgba(9, 69, 53, 0.55) 55%, rgba(9, 69, 53, 0.92) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(196, 163, 90, 0.18), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 120px 0 72px;
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    padding-bottom: 96px;
  }
}

.hero-copy {
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}

.hero-title {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--sn-radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: #fff;
  color: var(--sn-primary-ink);
}

.btn-primary:hover {
  background: var(--sn-primary-soft);
}

.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: var(--sn-primary);
  color: #fff;
  border-color: var(--sn-primary);
}

.btn-accent:hover {
  background: var(--sn-primary-mid);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--sn-primary);
  color: var(--sn-primary-ink);
}

.btn-outline-dark:hover {
  background: var(--sn-primary-soft);
}

/* Phone visual — real screenshots */
.hero-visual {
  justify-self: center;
  width: min(100%, 300px);
}

.phone-shell {
  position: relative;
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in 0.9s ease 0.15s forwards;
}

.phone-shell--hero {
  width: 100%;
}

@keyframes rise-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-shell {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.phone-bezel {
  border-radius: 32px;
  background: linear-gradient(160deg, #1a3d32, #0a2a22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone-notch {
  width: 34%;
  height: 7px;
  margin: 2px auto 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.phone-screen--shot {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0a2a22;
  aspect-ratio: 9 / 19.5;
}

.phone-screen--shot img,
.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.phone-shot.is-active {
  opacity: 1;
  z-index: 1;
}

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.phone-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.phone-dot.is-active {
  width: 22px;
  background: var(--sn-accent);
}

.phone-dot:focus-visible {
  outline: 2px solid var(--sn-accent);
  outline-offset: 3px;
}

/* Showcase gallery */
.showcase {
  background: #eef3f0;
}

.showcase-rail {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .showcase-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }

  .showcase-card--lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-lg);
  }

  .showcase-card--lead .phone-shell--shot {
    max-width: 260px;
    margin: 0 auto;
  }

  .showcase-card--lead figcaption {
    text-align: left;
    padding-top: 0;
  }

  .showcase-card--lead figcaption strong {
    font-family: var(--font-display);
    font-size: 1.75rem;
  }
}

@media (min-width: 1100px) {
  .showcase-rail {
    grid-template-columns: minmax(240px, 300px) repeat(3, 1fr);
    align-items: end;
  }

  .showcase-card--lead {
    grid-column: auto;
    display: block;
    padding: 0;
    background: transparent;
    border: none;
  }

  .showcase-card--lead .phone-shell--shot {
    max-width: none;
  }

  .showcase-card--lead figcaption {
    text-align: center;
    padding-top: 16px;
  }

  .showcase-card--lead figcaption strong {
    font-size: 1.15rem;
  }

  .showcase-card:not(.showcase-card--lead) .phone-shell--shot {
    transform: scale(0.92);
    transform-origin: bottom center;
  }
}

.showcase-card {
  margin: 0;
  text-align: center;
}

.phone-shell--shot {
  max-width: 260px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
  animation: none;
}

.phone-shell--shot .phone-bezel {
  box-shadow: 0 18px 40px rgba(9, 69, 53, 0.18);
}

.showcase-card figcaption {
  margin: 0;
  padding-top: 16px;
}

.showcase-card figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
  color: var(--sn-primary-ink);
}

.showcase-card figcaption span {
  font-size: 0.9rem;
  color: var(--sn-text-muted);
}

/* —— Sections —— */
.section {
  padding: var(--space-section) 0;
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sn-primary);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--sn-primary-ink);
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--sn-text-muted);
  font-size: 1.05rem;
}

/* Capability — asymmetric, not 3 equal cards */
.capability {
  background: #fff;
}

.cap-layout {
  display: grid;
  gap: var(--space-group);
  margin-top: 48px;
}

@media (min-width: 900px) {
  .cap-layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.cap-feature {
  position: relative;
  min-height: 360px;
  border-radius: var(--sn-radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 107, 79, 0.92), rgba(9, 69, 53, 0.88)),
    url("../img/app-icon.png") center/cover;
  color: #fff;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cap-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.cap-feature p {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--sn-border);
}

.cap-item {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--sn-border);
}

.cap-item h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--sn-primary-ink);
}

.cap-item p {
  margin: 0;
  color: var(--sn-text-muted);
  font-size: 0.95rem;
}

/* Scene strip */
.scenes {
  background: var(--sn-bg);
}

.scene-row {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 800px) {
  .scene-row {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.scene {
  padding: 28px 0 0;
  border-top: 2px solid var(--sn-primary);
}

.scene:nth-child(2) {
  border-top-color: var(--sn-accent);
}

.scene:nth-child(3) {
  border-top-color: var(--sn-primary-mid);
}

.scene h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--sn-primary-ink);
}

.scene p {
  margin: 0;
  color: var(--sn-text-muted);
  font-size: 0.95rem;
}

.scene--lead h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

/* Download band */
.download-band {
  background: var(--sn-primary-ink);
  color: #fff;
  padding: 80px 0;
}

.download-band .section-title {
  color: #fff;
}

.download-band .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.download-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-meta {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* Download page */
.page-hero {
  padding: 120px 0 48px;
  background: linear-gradient(180deg, var(--sn-primary) 0%, rgba(13, 107, 79, 0.55) 40%, transparent 70%);
}

.page-hero .section-title {
  color: #fff;
}

.page-hero .section-lead {
  color: rgba(255, 255, 255, 0.88);
}

.download-panel {
  display: grid;
  gap: 32px;
  margin-top: -24px;
  margin-bottom: var(--space-section);
  padding: 32px;
  background: #fff;
  border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius-lg);
}

@media (min-width: 800px) {
  .download-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.download-info h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--sn-primary-ink);
}

.download-info p {
  margin: 0 0 8px;
  color: var(--sn-text-muted);
  font-size: 0.95rem;
}

.qr-wrap {
  text-align: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius-md);
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-box .qr-placeholder {
  padding: 16px;
  font-size: 13px;
  color: var(--sn-text-faint);
  line-height: 1.45;
}

.steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--sn-text-muted);
}

.steps li {
  margin-bottom: 8px;
}

.note {
  margin-top: 24px;
  padding: 16px;
  background: var(--sn-primary-soft);
  border-radius: var(--sn-radius-md);
  color: var(--sn-primary-ink);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--sn-border);
  padding: 40px 0 48px;
  background: #fff;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  color: var(--sn-text-muted);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sn-primary-ink);
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-end;
}

.footer-util {
  font-size: 12px;
  color: var(--sn-text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-util:hover,
.footer-util:focus-visible {
  color: var(--sn-primary);
  outline: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* —— 微信内打开：引导用系统浏览器 —— */
body.wx-tip-open {
  overflow: hidden;
}

.wx-open-tip[hidden] {
  display: none !important;
}

.wx-open-tip {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
}

.wx-open-tip__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.wx-open-tip__arrow {
  position: absolute;
  top: 6px;
  right: 16px;
  z-index: 1;
  width: 56px;
  height: 56px;
  pointer-events: none;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  border-radius: 0 42px 0 0;
  box-shadow: 2px -2px 0 rgba(0, 0, 0, 0.12);
}

.wx-open-tip__arrow::before {
  content: "";
  position: absolute;
  top: -9px;
  right: -11px;
  border: 9px solid transparent;
  border-left-color: #fff;
  transform: rotate(-40deg);
}

.wx-open-tip__arrow::after {
  content: "点这里";
  position: absolute;
  top: 52px;
  right: -6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.wx-open-tip__card {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: min(86vw, 340px);
  padding: 28px 24px 22px;
  border-radius: var(--sn-radius-lg);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.wx-open-tip__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--sn-primary-ink);
}

.wx-open-tip__desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--sn-text-muted);
  text-align: left;
}

.wx-open-tip__desc strong {
  color: var(--sn-primary);
  font-weight: 700;
}

.wx-open-tip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--sn-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.wx-open-tip__btn:active {
  background: var(--sn-primary-ink);
}
