body {
  /* Change to deep blue background */
  background: #041e42;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
@keyframes button {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.96);
  }
}
.ai-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ai-page .page-container {
  width: 100%;
  margin: 0 auto;
  padding: 20px 12px 0;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}
.ai-page .page-container .rebot-box {
  width: 120px;
  height: 140px;
  margin: 0 auto;
}
.rebot-box img {
  width: 100%;
  height: 100%;
  animation: robotFloat 2s ease-in-out infinite; /* Reduced from 4s to 2s */
}
.ai-page .page-container .word-box {
  position: relative;
  top: -20px;
  width: 100%;
  border: 1px solid #ffffff;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 243, 168, 0.3) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px;
}
.ai-page .page-container .word-box .title {
  text-align: center;
  color: #ffd324;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.3px;
}
.ai-page .page-container .word-box .line {
  margin-top: 12px;
  height: 1px;
  width: 100%;
  border-bottom: 1px solid #ffffff;
}
.analysis-image {
  width: 100%;
  margin: 10px auto 0;
  text-align: center;
}
.analysis-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.ai-page .page-container .search-btn {
  height: 50px;
  border-radius: 25px;
  margin-top: 12px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff9a34;
  background: linear-gradient(90deg, #fceec7 0%, #f7cfa1 100%);
  color: #ff8400;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 16px;
  -webkit-appearance: none;
  appearance: none;
  animation: buttonPulse 2s infinite;
}
.ai-page .ai-modal {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 9999;
}
.ai-page .ai-modal .ai-progress,
.ai-page .ai-modal .ai-result {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  padding: 10px;
  max-width: none;
  display: none;
}
.ai-page .ai-modal .ai-progress .pro-box {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}
.ai-page .ai-modal .ai-progress .pro-box .title {
  background: linear-gradient(90deg, #fffaea 0%, #f7cfa1 100%), #ffffff;
  backdrop-filter: blur(10px);
  display: flex;
  padding: 19px 22px;
}
.ai-page .ai-modal .ai-progress .pro-box .title .icon {
  width: 24px;
  height: 24px;
  margin-right: 13px;
}
.ai-page .ai-modal .ai-progress .pro-box .title .icon img {
  width: 100%;
  height: 100%;
}
.ai-page .ai-modal .ai-progress .pro-box .title .word {
  color: #ff8400;
  font-family: "SF Pro";
  font-weight: 510;
  font-size: 20px;
  line-height: 24px;
}
.ai-page .ai-modal .ai-progress .pro-box .progress-box {
  padding: 10px 16px 40px 16px;
}
.ai-page .ai-modal .ai-progress .pro-box .progress-box .item {
  margin-top: 25px;
}
.ai-page .ai-modal .ai-progress .pro-box .progress-box .item .i-title {
  color: #000000;
  font-family: "SF Pro";
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  width: 100%;
  text-align: center;
  margin-bottom: 7px;
}
.ai-page .ai-modal .ai-result {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 15px;
  overflow: hidden;
  max-width: 500px;
  display: none;
}
.ai-page .ai-modal .ai-result .result-box {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}
.ai-page .ai-modal .ai-result .result-box .title {
  background: linear-gradient(90deg, #fffaea 0%, #f7cfa1 100%), #ffffff;
  backdrop-filter: blur(10px);
  display: flex;
  padding: 19px 22px;
  width: 100%;
  text-align: center;
}
.ai-page .ai-modal .ai-result .result-box .title .word {
  color: #ff8400;
  font-family: "SF Pro";
  font-weight: 510;
  font-size: 18px;
  line-height: 24px;
  width: 100%;
}
.ai-page .ai-modal .ai-result .result-box .result-con {
  padding: 20px 20px 30px 20px;
}
.ai-page .ai-modal .ai-result .result-box .result-con .btn {
  cursor: pointer;
  border-radius: 50px;
  border: 1px solid #20c930;
  /* box-sizing: border-box; is inherited */
  background: linear-gradient(90deg, #ddfcc7 0%, #e9ffe2 100%);
  color: #20c930;
  font-family: "SF Pro";
  font-weight: 590;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: -0.6px;
  padding: 14px 42px;
  margin: 20px auto 0px auto;
  max-width: 435px;
  text-align: center;
  -webkit-animation: button 0.75s cubic-bezier(0.61, 0.2, 0.63, 1.36) infinite; /* Reduced from 1.5s to 0.75s */
  animation: button 0.75s cubic-bezier(0.61, 0.2, 0.63, 1.36) infinite; /* Reduced from 1.5s to 0.75s */
  -webkit-appearance: none; /* Reset default button appearance */
  appearance: none; /* Reset default button appearance */
}
.layui-progress-bar {
  background: linear-gradient(
    90deg,
    rgba(255, 214, 169, 1) 0%,
    rgba(255, 132, 0, 1) 100%
  );
}
.layui-progress-big,
.layui-progress-big .layui-progress-bar {
  height: 14px;
  line-height: 14px;
}
.con {
  text-align: center;
  /* Center text content horizontally */
  margin: 0 auto;
  /* Center block element horizontally */
  width: 100%;
  /* Ensure clear width definition */
}
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 162, 35, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(21, 162, 35, 0);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 162, 35, 0);
    transform: scale(1);
  }
}
.ai-page .page-container .search-btn {
  height: 50px;
  border-radius: 25px;
  margin-top: 12px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff9a34;
  background: linear-gradient(90deg, #fceec7 0%, #f7cfa1 100%);
  color: #ff8400;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 16px;
  -webkit-appearance: none;
  appearance: none;
  animation: buttonPulse 1s infinite; /* Reduced from 2s to 1s */
}
.ai-page .ai-modal {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 9999;
}
.ai-page .ai-modal .ai-progress,
.ai-page .ai-modal .ai-result {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}
.ai-page .ai-modal .ai-progress .pro-box {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}
.ai-page .ai-modal .ai-progress .pro-box .title {
  background: linear-gradient(90deg, #fffaea 0%, #f7cfa1 100%), #ffffff;
  backdrop-filter: blur(10px);
  display: flex;
  padding: 19px 22px;
}
.ai-page .ai-modal .ai-progress .pro-box .title .icon {
  width: 24px;
  height: 24px;
  margin-right: 13px;
}
.ai-page .ai-modal .ai-progress .pro-box .title .icon img {
  width: 100%;
  height: 100%;
}
.ai-page .ai-modal .ai-progress .pro-box .title .word {
  color: #ff8400;
  font-family: "SF Pro";
  font-weight: 510;
  font-size: 20px;
  line-height: 24px;
}
.ai-page .ai-modal .ai-progress .pro-box .progress-box {
  padding: 10px 16px 40px 16px;
}
.ai-page .ai-modal .ai-progress .pro-box .progress-box .item {
  margin-top: 25px;
}
.ai-page .ai-modal .ai-progress .pro-box .progress-box .item .i-title {
  color: #000000;
  font-family: "SF Pro";
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  width: 100%;
  text-align: center;
  margin-bottom: 7px;
}
.ai-page .ai-modal .ai-result {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 15px;
  overflow: hidden;
  max-width: 500px;
  display: none;
}
.ai-page .ai-modal .ai-result .result-box {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
}
.ai-page .ai-modal .ai-result .result-box .title {
  background: linear-gradient(90deg, #fffaea 0%, #f7cfa1 100%), #ffffff;
  backdrop-filter: blur(10px);
  display: flex;
  padding: 19px 22px;
  width: 100%;
  text-align: center;
}
.ai-page .ai-modal .ai-result .result-box .title .word {
  color: #ff8400;
  font-family: "SF Pro";
  font-weight: 510;
  font-size: 18px;
  line-height: 24px;
  width: 100%;
}
.ai-page .ai-modal .ai-result .result-box .result-con {
  padding: 20px 20px 30px 20px;
}
.ai-page .ai-modal .ai-result .result-box .result-con .btn {
  cursor: pointer;
  border-radius: 50px;
  border: 1px solid #20c930;
  /* box-sizing: border-box; is inherited */
  background: linear-gradient(90deg, #ddfcc7 0%, #e9ffe2 100%);
  color: #20c930;
  font-family: "SF Pro";
  font-weight: 590;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: -0.6px;
  padding: 14px 42px;
  margin: 20px auto 0px auto;
  max-width: 435px;
  text-align: center;
  -webkit-animation: button 0.75s cubic-bezier(0.61, 0.2, 0.63, 1.36) infinite; /* Reduced from 1.5s to 0.75s */
  animation: button 0.75s cubic-bezier(0.61, 0.2, 0.63, 1.36) infinite; /* Reduced from 1.5s to 0.75s */
  -webkit-appearance: none; /* Reset default button appearance */
  appearance: none; /* Reset default button appearance */
}
.layui-progress-bar {
  background: linear-gradient(
    90deg,
    rgba(255, 214, 169, 1) 0%,
    rgba(255, 132, 0, 1) 100%
  );
}
.layui-progress-big,
.layui-progress-big .layui-progress-bar {
  height: 14px;
  line-height: 14px;
}
.con {
  text-align: center;
  /* Center text content horizontally */
  margin: 0 auto;
  /* Center block element horizontally */
  width: 100%;
  /* Ensure clear width definition */
}
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 162, 35, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(21, 162, 35, 0);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 162, 35, 0);
    transform: scale(1);
  }
}
.search-btn,
.btn {
  animation: buttonPulse 1s infinite; /* Reduced from 2s to 1s */
  transition: all 0.15s ease; /* Reduced from 0.3s to 0.15s */
}
/* Remove all hover effects as mobile doesn't need them */
.rebot-box img {
  animation: robotFloat 2s ease-in-out infinite; /* Reduced from 4s to 2s */
  /* Remove transition and robotGlow animation to optimize mobile performance */
}

/* Remove PC-specific styles
.rebot-box img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(21, 162, 35, 0.8));
  animation-play-state: paused;
}
*/

/* Remove button hover effects
.search-btn:hover,
.btn:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(21, 162, 35, 0.7);
}
*/
/* AI robot icon animation */
@keyframes robotFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes robotGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(21, 162, 35, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(21, 162, 35, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(21, 162, 35, 0.3));
  }
}
.rebot-box img {
  animation: robotFloat 2s ease-in-out infinite; /* Reduced from 4s to 2s */
}
/* Simplified background video effect */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  filter: blur(2px);
  opacity: 0.6;
}
/* Simplified animation overlay to improve mobile performance */
.stock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.3;
}
/* Simplified grid and wave animations to reduce mobile device load */
.stock-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(21, 162, 35, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 162, 35, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.2;
}
@keyframes waveMove1 {
  0% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-30px) scaleY(1.2);
  }
  100% {
    transform: translateY(50px) scaleY(0.8);
  }
}
@keyframes waveMove2 {
  0% {
    transform: translateY(20px) scaleY(0.8);
  }
  50% {
    transform: translateY(-50px) scaleY(1.5);
  }
  100% {
    transform: translateY(30px) scaleY(1);
  }
}
@keyframes waveMove3 {
  0% {
    transform: translateY(-20px) scaleY(1.3);
  }
  50% {
    transform: translateY(40px) scaleY(0.7);
  }
  100% {
    transform: translateY(-40px) scaleY(1.1);
  }
}
@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(40px);
  }
}
.floating-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  width: 90%;
  transform: translateX(-50%);
  display: block;
  z-index: 1000;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  /* Add touch feedback effect to improve mobile user experience */
  -webkit-touch-callout: none;
}
.floating-btn img {
  width: 100%;
  height: auto;
  border-radius: 25px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.ai-modal {
  z-index: 1100;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 162, 35, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(21, 162, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(21, 162, 35, 0);
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 按钮图片容器样式 */
.btn-image-container {
  width: 100%;
  margin: 0 auto 15px;
  text-align: center;
}

/* 按钮图片样式 */
.btn-image {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 移动宽度限制容器 */
.mobile-width-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  /* Add blue gradient background */
  background: linear-gradient(228deg, #041e42 0%, #6b7c8e 50%, #0077cc 100%)
  min-height: 100vh;
  /* Add border on wide screens */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Adjust background and wave animations to stay within container */
#background-video,
.stock-overlay {
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

/* Adjust floating button position */
.floating-btn {
  max-width: 432px; /* 90% of 480px */
  width: 90%;
}

/* Ensure modal stays within container */
.ai-modal {
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

/* Modal content position adjustment */
.ai-page .ai-modal .ai-progress,
.ai-page .ai-modal .ai-result {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}

/* Add button image scaling animation */
@keyframes imgPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Apply animation to all button images */
.btn-image, .floating-btn img {
  animation: imgPulse 1s ease-in-out infinite; /* Reduced from 2s to 1s */
  transition: transform 0.15s ease; /* Reduced from 0.3s to 0.15s */
}

/* Click effect */
.btn-image:active, .floating-btn img:active {
  transform: scale(0.9);
}
