﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0c4a6e 0%, #1e293b 50%, #0f172a 100%);
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 动态网格背景 */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

/* 霓虹光线效果 */
.neon-lines {
  position: absolute;
  width: 100%;
  height: 100%;
}

.neon-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  height: 2px;
  width: 200px;
  animation: neonMove 8s linear infinite;
}

.neon-line:nth-child(1) {
  top: 20%;
  left: -200px;
  animation-delay: 0s;
}

.neon-line:nth-child(2) {
  top: 60%;
  left: -200px;
  animation-delay: 2s;
}

.neon-line:nth-child(3) {
  top: 80%;
  left: -200px;
  animation-delay: 4s;
}

@keyframes neonMove {
  0% {
    left: -200px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* 数据可视化元素 */
.data-viz {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 150px;
  height: 200px;
  opacity: 0.3;
}

.chart-bar {
  position: absolute;
  bottom: 0;
  width: 12px;
  background: linear-gradient(0deg, #22c55e, #16a34a);
  border-radius: 2px 2px 0 0;
  animation: barGrow 3s ease-in-out infinite;
}

.chart-bar:nth-child(1) {
  left: 10px;
  height: 60px;
  animation-delay: 0s;
}
.chart-bar:nth-child(2) {
  left: 30px;
  height: 80px;
  animation-delay: 0.2s;
}
.chart-bar:nth-child(3) {
  left: 50px;
  height: 45px;
  animation-delay: 0.4s;
}
.chart-bar:nth-child(4) {
  left: 70px;
  height: 90px;
  animation-delay: 0.6s;
}
.chart-bar:nth-child(5) {
  left: 90px;
  height: 70px;
  animation-delay: 0.8s;
}
.chart-bar:nth-child(6) {
  left: 110px;
  height: 100px;
  animation-delay: 1s;
}

@keyframes barGrow {
  0%,
  100% {
    transform: scaleY(0.8);
  }
  50% {
    transform: scaleY(1.2);
  }
}

/* 主容器 */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 徽章/标签 */
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 20px;
  animation: slideInDown 1s ease-out;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #0f172a;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 主标题 */
.main-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #22c55e 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 4s ease-in-out infinite,
    slideInUp 1.2s ease-out 0.2s both;
  line-height: 1.1;
}

@keyframes titleShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 副标题 */
.subtitle {
  font-size: 1.3rem;
  color: #94a3b8;
  margin-bottom: 25px;
  font-weight: 300;
  animation: slideInUp 1.2s ease-out 0.4s both;
}

/* 特色功能列表 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
  animation: slideInLeft 1.2s ease-out 0.6s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  transform: translateY(-2px);
}

.feature-icon {
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #0f172a;
  font-weight: bold;
}

.feature-text {
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* 统计数据 */
.stats-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  animation: slideInRight 1.2s ease-out 0.8s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #22c55e;
  display: block;
  animation: countUp 2s ease-out 1.5s both;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 输入容器 */
.input-container {
  position: relative;
  margin-bottom: 20px;
  animation: slideInUp 1.2s ease-out 1s both;
}

.input-label {
  position: absolute;
  top: -18px;
  left: 20px;
  background: #0f172a;
  padding: 0 8px;
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 600;
}

.stock-input {
  width: 100%;
  padding: 18px 25px;
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 15px;
  font-size: 16px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  outline: none;
  text-align: center;
  font-weight: 500;
}

.stock-input::placeholder {
  color: #64748b;
}

.stock-input:focus {
  border-color: #22c55e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(34, 197, 94, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.9);
}

/* 分析按钮 */
.analyze-button {
  width: 100%;
  padding: 18px 25px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  animation: slideInUp 1.2s ease-out 1.2s both;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analyze-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
}

.analyze-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.analyze-button:hover::before {
  width: 300px;
  height: 300px;
}

.button-text {
  position: relative;
  z-index: 1;
}

/* 信任指标 */
.trust-indicators {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  animation: slideInUp 1.2s ease-out 1.4s both;
  position: relative;
  z-index: 20;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.trust-item:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.trust-icon {
  width: 30px;
  height: 30px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 14px;
  color: #22c55e;
}

.trust-text {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
}

/* WhatsApp 联系 */
.contact-section {
  text-align: center;
  margin-top: 30px;
  animation: slideInUp 1.2s ease-out 1.6s both;
}

.whatsapp-contact {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.whatsapp-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    flex-direction: column;
    gap: 15px;
  }

  .data-viz {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .container {
    padding: 20px 15px;
  }
}

/* 动画效果 */
.shake {
  animation: shake 0.6s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

.pulse {
  animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: all 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #22c55e;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content {
  color: #e2e8f0;
  line-height: 1.6;
}

/* Analysis process modal */
.analysis-step {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid transparent;
  transition: all 0.5s ease;
}

.analysis-step.active {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.analysis-step.completed {
  border-left-color: #16a34a;
  background: rgba(22, 163, 74, 0.15);
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.analysis-step.active .step-icon {
  background: #22c55e;
  color: #0f172a;
  animation: pulse 1s ease-in-out infinite;
}

.analysis-step.completed .step-icon {
  background: #16a34a;
  color: white;
}

.step-text {
  flex: 1;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 4px;
}

/* Result modal */
.result-content {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
  }
}

.result-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 15px;
}

.result-description {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 30px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: bounce 2s ease-in-out infinite;
  border: none;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.whatsapp-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-button .whatsapp-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #22c55e;
}

.footer-text {
  color: #64748b;
  font-size: 0.8rem;
}

/* Info modal content */
.info-section {
  margin-bottom: 20px;
}

.info-section h3 {
  color: #22c55e;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.info-section p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal {
    padding: 20px;
    margin: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
