.main-content {
  scroll-behavior: smooth;
  font-family:
    "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: #333;
}

.topBackground {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #080808; /* Dark background from new design */
  /* Remove flex from here as it messes with existing children positioning. 
     We'll use specific positioning for the new background layer. 
  */
}

/* 1. Container for the rotated background element - adapted from aaa.html .playground-container */
.topBackground .playground-container {
  width: 70%;
  height: 70%;
  padding: 40px;
  /* Counter-clockwise rotation 20 deg */
  /* Position absolutely to mimic the flex-end alignment of the body in aaa.html */
  position: absolute;
  right: 0;
  bottom: 0;

  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  z-index: 1; /* Low z-index */
}

/* 2. Main Stage - adapted from aaa.html .main-stage */
.topBackground .main-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
  height: 100%;
  align-content: end; /* Push content to bottom to avoid overlapping with title */
}

/* 3. Glass Card - adapted from aaa.html */
.topBackground .glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Text Colors */
.topBackground .text-dim {
  color: rgba(224, 236, 236, 0.6) !important;
}
.topBackground .text-label {
  color: rgba(224, 236, 236, 0.35) !important;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.topBackground .text-cyan {
  color: rgba(79, 209, 197, 0.6) !important;
}

.topBackground .input-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}

.topBackground .mock-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 209, 197, 0.4);
  color: rgba(79, 209, 197, 0.7);
  background: rgba(79, 209, 197, 0.03);
  font-size: 11px;
  padding: 1px 18px; /* Increased vertical padding to match input, reduced horizontal padding */
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: normal;
}
.topBackground .mock-button.active {
  background: rgba(79, 209, 197, 0.3);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.3);
}

.topBackground .no-wrap {
  white-space: nowrap;
}

/* Address Animation Styles */
#addr-input {
  min-height: 20px; /* Keep height even when empty */
  display: flex;
  align-items: center;
}

#addr-input::after {
  content: "";
  display: block;
  width: 2px;
  height: 12px; /* Height matching text */
  background-color: rgba(150, 150, 150, 0.6);
  margin-left: 4px; /* Distance from text */
  animation: cursorBlink 0.8s step-end infinite;
  flex-shrink: 0;
}

/* Simulate cursor blinking */
@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.addr-result-item {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.addr-result-item.show {
  opacity: 1;
  transform: translateY(0);
}

.agro-result-item {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agro-result-item.show {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 767px) {
  /* Adjust playground for mobile if needed, or hide it. 
       The original design had a different background for mobile. 
       The user said "replace topBackground". I'll try to keep it responsive.
    */
  .topBackground .playground-container {
    width: 100%;
    height: auto;
    position: relative;
    top: 15%;
    bottom: auto;
    right: auto;
    padding: 20px;
    transform: none; /* Disable rotation on small screens likely */
    opacity: 0.3; /* Fade it out so text is readable */
  }

  .topBackground .mock-button {
    display: none !important; /* Hide mock buttons on mobile to reduce clutter */
  }

  /* ... rest of existing mobile styles ... */

  .topBackground .label {
    width: 90vw;
    height: 90vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10vh;
    background: url(../images/bg1.png) no-repeat center center;
    background-size: contain;
    opacity: 0.8;
  }

  .topBackground .label {
    position: absolute;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.4em 1em;
    border-radius: 2em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    white-space: nowrap;
  }

  .topBackground .label:nth-child(1) {
    top: 15%;
    left: 10%;
  }
  .topBackground .label:nth-child(2) {
    top: 20%;
    right: 10%;
  }
  .topBackground .label:nth-child(3) {
    top: 28%;
    left: 15%;
  }
  .topBackground .label:nth-child(4) {
    top: 35%;
    right: 15%;
  }
  .topBackground .label:nth-child(5) {
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
  }

  .topBackground .label-title-container {
    position: absolute;
    color: #fff;
    top: 60%; /* Moved up from 55% */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
  }

  .topBackground .label-title-container div:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
  }
  .topBackground .label-title-container div:first-child .anim-chunk {
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .topBackground .label-title-container div:last-child {
    font-size: 1rem;
    color: #94a3b8;
  }
}

@media screen and (min-width: 768px) {
  .topBackground .ill-container {
    width: 35vw;
    height: 35vw;
    position: absolute;
    right: 10vw;
    top: 50%;
    transform: translateY(-50%);
    background: url(../images/bg1.png) no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  }

  .topBackground .label {
    position: absolute;
    color: #e2e8f0;
    font-size: 1rem;
    padding: 0.6em 1.5em;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    cursor: default;
    transition: all 0.3s ease;
  }

  .topBackground .label:hover {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    color: #fff;
  }

  .topBackground .label:nth-child(1) {
    top: 25%;
    right: 45%;
    animation-delay: 0s;
  }
  .topBackground .label:nth-child(2) {
    top: 15%;
    right: 25%;
    animation-delay: 1s;
  }
  .topBackground .label:nth-child(3) {
    top: 35%;
    right: 15%;
    animation-delay: 2s;
  }
  .topBackground .label:nth-child(4) {
    top: 65%;
    right: 40%;
    animation-delay: 3s;
  }
  .topBackground .label:nth-child(5) {
    top: 75%;
    right: 20%;
    animation-delay: 4s;
  }

  .topBackground .label-title-container {
    position: absolute;
    top: 30%; /* Moved up from 35% */
    left: 10%;
    max-width: 600px;
  }

  .topBackground .label-title-container div:first-child {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  .topBackground .label-title-container div:first-child .anim-chunk {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .topBackground .label-title-container div:last-child {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 300;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.topBackground .jump {
  position: absolute;
  text-decoration: none;
  padding: 0.4em 1.4em;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 1px;
  background: #f9fbff;
  color: #000000;
}

@media screen and (max-width: 767px) {
  .topBackground .jump {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    font-size: 1rem;
    width: auto;
    border: none;
  }
}

@media screen and (min-width: 768px) {
  .topBackground .jump {
    top: 60%;
    left: 10%;
    font-size: 1.1rem;
  }

  .topBackground .jump:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
  }
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  background: #f8fafc; /* 极简灰白背景 */
  padding: 4rem 0;
}

@media screen and (max-width: 767px) {
  .product {
    padding: 2rem 0;
    min-height: auto;
  }
}

.product .product-main-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4rem;
  letter-spacing: 2px;
  position: relative;
}

@media screen and (max-width: 767px) {
  .product .product-main-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

.product .product-main-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #3b82f6;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.product .product-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media screen and (max-width: 767px) {
  .product .product-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

.product .product-item {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 767px) {
  .product .product-item {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .product .product-item {
    flex: 1;
    max-width: 260px;
    height: 320px;
  }
}

/* 顶部彩色条 */
.product .product-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--theme-color);
  transition: height 0.3s ease;
}

.product .product-item:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: transparent;
}

.product .product-item:hover::before {
  height: 6px;
}

.product .product-item:hover .product-title {
  color: var(--theme-color);
}

.product .product-item .product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

@media screen and (max-width: 767px) {
  .product .product-item .product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }
}

.product .product-item .product-des {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  text-align: justify;
}

@media screen and (max-width: 767px) {
  .product .product-item .product-des {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 80vh;
  background: #fff;
  padding: 4rem 0;
}

.about .about-text {
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .about .about-text {
    padding: 0 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .about .about-text {
    padding: 0 4rem;
    width: 80%;
  }
}

.about .about-text div:first-child {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.about .about-text div:first-child::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #3b82f6;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.about .about-text div:nth-child(2),
.about .about-text div:last-child {
  font-size: 1.1rem;
  line-height: 2;
  color: #475569;
  margin-bottom: 2rem;
  text-align: justify;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.about .about-text span {
  color: #1e293b;
  margin-right: 0.5rem;
}

/* Title Animation */
@keyframes dropBlurIn {
  0% {
    opacity: 0;
    transform: translateY(-1em);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.anim-chunk {
  display: inline-block;
  opacity: 0; /* Initially hidden */
  animation: dropBlurIn 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; /* Cubic bezier for smooth landing */
}

.chunk-1 {
  animation-delay: 0.2s;
}

.chunk-punct {
  animation-delay: 0.4s;
}

.chunk-2 {
  animation-delay: 0.6s;
}
