/* Add these variables at the top of your CSS */
:root {
  --mint-green: #80D8C8;
  --light-mint: #B7E7DE;
  --dark-green: #004D40;
  --accent-red: #D32F2F;
  --gold: #C79F5E;
}

/* Update body styles */
body {
  margin: 0;
  background-color: #F3F3F5;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* Update title styles */
.body_title {
  font-size: 58px;
  color: var(--dark-green);
  font-weight: 600;
  text-align: center;
  margin: 10px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  z-index: 10;
}

.box_title {
  font-size: 32px;
  color: var(--dark-green);
  font-weight: 300;
  text-align: center;
  margin: 10px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}



/* Improve search box layout */
.search_box {
  width: 90%;
  max-width: 600px;
  top: 20%;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to bottom right, rgb(255 255 255 / 15%) 0%, rgba(183, 231, 222, 0.4) 100%);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(128, 216, 200, 0.3);
}

/* Update input group styles */
.key_wp {
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 20px;
  clear: both;
  float: none;
}

.key_input_wp {
  width: 100%;
  height: 60px;
  background: #fff;
  border: 2px solid var(--mint-green);
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.key_input_wp input {
  width: 100%;
  height: 100%;
  padding: 0 20px;
  border: 0px;
  outline: none;
  font-size: 16px;
  font-weight: 300;
  color: #333;
  box-sizing: border-box;
}

/* Update CAPTCHA styles */
.yzm_wp {
  width: 100%;
  height: auto;
  background: transparent;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 20px;
  clear: both;
  float: none;
}

.yzm_input {
  width: 100%;
  height: 60px;
  background: #fff;
  border: 2px solid var(--mint-green);
  border-radius: 10px;
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.yzm_input input {
  flex: 1;
  height: 100%;
  padding: 0 20px;
  border: 0px;
  outline: none;
  font-size: 16px;
  font-weight: 300;
  color: #333;
  box-sizing: border-box;
}

.yzm_search_btn {
  width: 120px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  padding: 5px;
}

.yzm_search_btn img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 3px;
}

/* Update button styles */
.sy_search_btn {
  width: 100%;
  height: 60px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  background: var(--accent-red);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: all 0.3s ease;
}

.sy_search_btn:hover,
.sy_search_btn:focus,
.sy_search_btn:active {
  background: #c02727;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* Logo adjustments */
.logo {
  background-image: url(/images/logo_max.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 150px;
  margin-bottom: 20px;
}

.logo_phone {
  background: url(/images/logo.png) no-repeat center center;
  background-size: contain;
  width: 100%;
  height: 150px;
  margin-bottom: 20px;
}

/* Footer adjustments */
.footer {
  position: absolute;
  width: 100%;
  padding: 20px 0 10px 0;
}

.footer p {
  text-align: center;
  line-height: 20px;
  font-size: 12px;
}

/* Mobile-specific media queries */
@media (max-width: 768px) {
  .body_title {
    font-size: 32px;
    margin: 5px 0;
    top: 10%;
  }
  .box_title{
	font-size: 24px;
    margin: 5px 0;
  }
  .search_box {
    width: 90%;
    top: 20%;
    padding: 15px;
  }
  
  .key_input_wp,
  .yzm_input {
    height: 50px;
  }
  
  .key_input_wp input,
  .yzm_input input {
    font-size: 14px;
  }
  
  .yzm_search_btn {
    width: 100px;
  }
  
  .sy_search_btn {
    height: 50px;
    font-size: 18px;
  }
  
  .logo,
  .logo_phone {
    height: 120px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .body_title {
    font-size: 32px;
    top: 10%;
  }
  .box_title{
	font-size: 20px;
  }
  
  .search_box {
    width: 90%;
    top: 20%;
    padding: 10px;
  }
  
  .key_input_wp,
  .yzm_input {
    height: 45px;
  }
  
  .key_input_wp input,
  .yzm_input input {
    font-size: 13px;
    padding: 0 15px;
  }
  
  .yzm_search_btn {
    width: 90px;
  }
  
  .sy_search_btn {
    height: 45px;
    font-size: 16px;
  }
  
  .logo,
  .logo_phone {
    height: 120px;
    margin-bottom: 10px;
  }
  
  .footer {
    padding: 15px 0 5px 0;
  }
  
  .footer p {
    font-size: 10px;
    line-height: 16px;
  }
}

/* Desktop background (larger than 1024px) */
@media (min-width: 1025px) {
  .bg {
    background-image: url(/images/bg_full.jpeg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    shape-outside: polygon(100% 40%, 100% 100%, -40% 100%);
    -webkit-clip-path: polygon(100% 40%, 100% -100%, -40% 100%);
    z-index: -100;
    opacity: 0.9;
  }
}

/* Mobile background (1024px and smaller) */
@media (max-width: 1024px) {
  .bg {
    background-image: url(/images/bg_full_phone.jpeg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    shape-outside: polygon(100% 40%, 100% 100%, -40% 100%);
    -webkit-clip-path: polygon(100% 40%, 100% -100%, -40% 100%);
    z-index: -100;
    opacity: 0.9;
  }
}

/* Fallback for browsers that don't support clip-path */
.bg {
  background-color: var(--mint-green);
}

/* Product image display below search box */
.product_display {
  width: 60%;
  max-width: 600px;
  margin: 20px auto 0;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(30% + 400px); /* Position below search box */
  text-align: center;
  z-index: 5;
}

.product_display img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}

/* Adjust for mobile devices */
@media (max-width: 768px) {
  .product_display {
    top: calc(26% + 350px);
    width: 60%;
  }
  
  .product_display img {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .product_display {
    top: calc(26% + 320px);
    width: 60%;
  }
  
  .product_display img {
    padding: 5px;
  }
}