﻿/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { text-align: center; font-family: Arial, sans-serif; }

/* 主容器 */
.main-container {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.bg-img { width: 100%; }

/* 顶部元素 */
.header {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 3%;
}
.middle-content {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 52%;
}
.con-box {
	position: relative;
	background-image: url(../image/kuang.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.con-box .word-box {
    padding: 8% 6%;
    position: relative;
    z-index: 1;
    top: -10px;
    left: 0px;
    width: 100%;
    line-height: 32px;
    color: white;
}
.con-box .word-box .title {
	font-size: 30px;
	text-align: center;
	font-weight: bold;
	padding-bottom: 10px;
}
.con-box .word-box .con {
	font-size: 25px;
}

/* 输入框部分 */
.input-section {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 75%;
}
.stock-input {
  width: 82%;
  height: 8%;
  border-radius: 1.5rem;
  border: 3px solid rgb(3 206 210);
  margin-top: 1rem;
  padding: 2rem;
  text-align: center;
  font-size: 28px;
  background: rgb(9 60 91);
  color: #fff;
}
.stock-input::placeholder { color: #fff; }

/* 错误提示 */
.error-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
}
.error-box {
  padding: 30px;
  font-size: 35px;
  color: #fff;
  background: rgba(0,0,0,0.8);
  border-radius: 10px;
  max-width: 750px;
  text-align: center;
}

/* 分析弹窗 */
.analysis-modal {
  position: fixed;
  display: none;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
}

/* 进度条 */
.progress-container {
  background: rgb(9,76,137);
  border-radius: 12px;
  padding: 32px 18px;
  max-width: 680px;
  margin: 60px auto;
  color: #fff;
}
.progress-header {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 18px;
}
.progress-item {
  margin-bottom: 16px;
  width: 500px;
  margin: 0 auto 16px;
}
.step-title { font-size: 25px; margin-bottom: 8px; }
.progress-bar {
  background: #eee;
  border-radius: 8px;
  height: 16px;
}
.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 8px;
  background: #00dcf4;
  transition: width 0.2s linear;
}

/* 结果 */
.result-box {
  background: url("../image/analysis-K.png") no-repeat;
  background-size: 100% 100%;
  width: 90%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px;
}
.result-text {
  font-size: 26px;
  margin-bottom: 18px;
  color: #fff;
}

/* 动画按钮 */
.pulse-btn {
  width: 90%;
  cursor: pointer;
  animation: pulseAnim 1s linear infinite;
}
@keyframes pulseAnim {
  0% { transform: scale(0.9); }
  50% { transform: scale(1); }
  100% { transform: scale(0.9); }
}
