:root {
  --green: #1fbf8a;
  --green-deep: #12a574;
  --green-soft: #5ddacc;
  --text: #2a2f33;
  --text-muted: #5c656c;
  --white: #ffffff;
  --bg: #ffffff;
  --contact-bg: #111111;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-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);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.layout[hidden] {
  display: none !important;
}

/* ========== 宽屏 ========== */
.layout-wide {
  min-height: 100vh;
}

.wide-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.5rem, 4vw, 4rem);
  pointer-events: none;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.wide-nav .brand,
.wide-nav nav {
  pointer-events: auto;
}

.wide-nav.is-solid {
  background: rgba(18, 165, 116, 0.92);
  backdrop-filter: blur(10px);
}

.wide-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.wide-nav .brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
}

.wide-nav nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.wide-nav nav a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.wide-nav nav a:hover,
.wide-nav nav a.is-active {
  opacity: 1;
}

.wide-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, #6fe0c4 0%, #2ec99a 45%, #18b884 100%);
}

.wide-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-hero .hero-curve,
.wide-hero .hero-leaves,
.wide-hero .hero-phone,
.wide-hero .hero-ip {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.wide-hero .hero-curve {
  left: 0;
  bottom: 0;
  width: 100%;
  opacity: 0.95;
}

.wide-hero .hero-leaves {
  left: 18%;
  top: 36%;
  width: min(63vw, 1210px);
  opacity: 0.9;
  animation: floatY 7s ease-in-out infinite;
}

.wide-hero .hero-phone {
  left: 16%;
  top: 8%;
  width: min(64vw, 1220px);
  animation: riseIn 1.1s var(--ease) both;
}

.wide-hero .hero-ip {
  left: 50%;
  bottom: 0;
  width: min(18vw, 300px);
  transform: translateX(-10%);
  animation: riseIn 1.2s 0.15s var(--ease) both, floatY 5.5s ease-in-out infinite;
}

.hero-copy {
  position: absolute;
  left: clamp(2rem, 6vw, 6.5rem);
  bottom: clamp(4rem, 12vh, 9rem);
  z-index: 3;
  max-width: 30rem;
  animation: fadeUp 0.9s 0.1s var(--ease) both;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 8px 30px rgba(0, 80, 50, 0.25);
}

.hero-copy .tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 500;
}

.hero-copy .tagline-en {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  opacity: 0.92;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-download {
  position: absolute;
  right: clamp(2rem, 6vw, 7rem);
  bottom: clamp(4rem, 11vh, 8.5rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  animation: fadeUp 0.9s 0.25s var(--ease) both;
}

.qr-wrap {
  position: relative;
  width: 9.8rem;
  height: 9.8rem;
}

.qr-wrap .qr-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qr-wrap .qr {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  border-radius: 0.4rem;
}

.qr-tip {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--white);
}

.store-btns {
  display: flex;
  gap: 1rem;
}

.store-btn img {
  width: 11.5rem;
  transition: transform 0.25s var(--ease), filter 0.25s;
}

.store-btn:hover img {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 4;
  width: 1.4rem;
  opacity: 0.95;
  animation: bounce 1.8s ease-in-out infinite;
}

.scroll-hint.dark {
  filter: invert(48%) sepia(72%) saturate(430%) hue-rotate(113deg) brightness(95%);
}

.wide-categories {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  background: #fff;
}

.wide-categories h2 {
  margin: 0 0 3rem;
  max-width: 52rem;
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: #2f363b;
  letter-spacing: 0.04em;
}

.category-orbit {
  position: relative;
  width: min(640px, 80vw);
  aspect-ratio: 640 / 420;
}

.category-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9.5rem;
  transform: translate(-50%, -50%);
  border-radius: 1.6rem;
  box-shadow: 0 16px 40px rgba(31, 191, 138, 0.2);
  z-index: 2;
}

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

.cat-item {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  background: #fff;
  border: 1.5px solid #9ee0cb;
  border-radius: 999px;
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(20, 140, 100, 0.08);
  white-space: nowrap;
}

.cat-item img {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
}

.cat-foliage { left: 4%; top: 8%; }
.cat-flower { right: 4%; top: 8%; }
.cat-succulent { left: 0; top: 42%; }
.cat-veg { right: 0; top: 42%; }
.cat-mushroom { left: 8%; bottom: 4%; }
.cat-fruit { right: 8%; bottom: 4%; }

.wide-features {
  background: #fff;
}

.feature-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 4rem clamp(2rem, 6vw, 7rem);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.feature-panel.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.feature-panel.reverse .feature-text.left {
  order: 3;
  text-align: right;
}

.feature-panel.reverse .feature-visual {
  order: 2;
}

.feature-panel.reverse .feature-text.right {
  order: 1;
  text-align: left;
}

.feature-text h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.feature-text .sub {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

.feature-text.right p,
.feature-text.left p:not(.sub) {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.8;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-visual > img:first-child {
  width: min(100%, 520px);
  filter: drop-shadow(0 24px 48px rgba(20, 90, 60, 0.12));
}

.feature-ai .ai-badge {
  position: absolute;
  left: 8%;
  top: 18%;
  width: 5.5rem;
  animation: floatY 4s ease-in-out infinite;
}

.feature-ai .ai-hand {
  position: absolute;
  right: 14%;
  bottom: 22%;
  width: 3.2rem;
  animation: floatY 3.5s 0.4s ease-in-out infinite;
}

.wide-about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem clamp(2rem, 8vw, 10rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(94, 220, 180, 0.18), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(31, 191, 138, 0.12), transparent 45%),
    #f7fffb;
}

.about-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.about-inner h2 {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  color: var(--green-deep);
}

.about-inner > p {
  margin: 0 0 2.5rem;
  max-width: 58rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-gallery img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(20, 80, 50, 0.1);
  transition: transform 0.35s var(--ease);
}

.about-gallery img:hover {
  transform: translateY(-6px);
}

.wide-contact {
  background: var(--contact-bg);
  color: #f2f5f4;
  padding: 5rem clamp(2rem, 8vw, 10rem) 3rem;
}

.contact-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.contact-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-brand img {
  border-radius: 0.7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-grid h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--green-soft);
}

.contact-grid p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.contact-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-grid li {
  display: grid;
  grid-template-columns: 1.5rem 3rem 1fr;
  align-items: center;
  gap: 0.6rem;
}

.contact-grid li img {
  width: 1.4rem;
  height: 1.4rem;
  object-fit: contain;
}

.contact-grid li span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.contact-grid li strong {
  font-weight: 600;
  color: #fff;
}

.legal,
.copyright {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.copyright a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-left: 8px;
}

.copyright a:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ========== 竖屏 ========== */
.layout-portrait {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
}

.m-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 1466;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #57d7b8, #1fbf8a);
}

.m-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-hero-visual {
  position: absolute;
  left: 0;
  top: 6%;
  width: 100%;
  z-index: 1;
  animation: riseIn 1s var(--ease) both;
}

.m-download {
  position: absolute;
  left: 50%;
  top: 82.5%;
  z-index: 2;
  width: min(32.4vw, 15.2rem);
  margin-left: calc(min(32.4vw, 15.2rem) / -2);
  transition: transform 0.25s var(--ease);
  animation: fadeUp 0.9s 0.2s var(--ease) both;
  filter: drop-shadow(0 10px 24px rgba(0, 60, 40, 0.2));
}

.m-download:active {
  transform: scale(0.97);
}

.m-block img {
  width: 100%;
  height: auto;
  vertical-align: top;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.wide-hero .hero-ip {
  animation: riseIn 1.2s 0.15s var(--ease) both, ipFloat 5.5s ease-in-out infinite;
}

@keyframes ipFloat {
  0%, 100% { transform: translateX(-10%) translateY(0); }
  50% { transform: translateX(-10%) translateY(-12px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (max-width: 1100px) {
  .feature-panel,
  .feature-panel.reverse {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 2rem;
    text-align: center;
  }

  .feature-panel.reverse .feature-text.left,
  .feature-panel.reverse .feature-visual,
  .feature-panel.reverse .feature-text.right,
  .feature-text.left,
  .feature-visual,
  .feature-text.right {
    order: initial;
    text-align: center;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  html[data-mode="wide"] .hero-download {
    right: 1.2rem;
    bottom: 18%;
    transform: scale(0.82);
    transform-origin: right bottom;
  }

  html[data-mode="wide"] .hero-copy {
    bottom: 18%;
    max-width: 18rem;
  }

  html[data-mode="wide"] .hero-copy h1 {
    font-size: 2.4rem;
  }
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}
