/* 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: 90%;
    text-align: center;
    top: 40%;
    left: 5%;
}
.con-box {
	position: relative;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.con-box .word-box {
	padding: 5% 5%;
    position: relative;
    z-index: 1;
    top: -10px;
    left: 0px;
    width: 100%;
    line-height: 35px;
    font-size: 28px;
    font-weight: 800;
    color: white;;
}


.input-section {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 67%;
}
.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;
}

.title {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: #ffa200;
	text-align: left;
	width: 100%;
}

.subtitle {
	font-size: 1.3rem;
	font-weight: 500;
	margin-bottom: 24px;
	color: #fff;
	text-align: left;
	width: 100%;
}
.card {
	background: rgba(20, 30, 60, 0.95);
	border-radius: 18px;
	padding: 20px 18px;
	margin-bottom: 24px;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.result-box {
	background: linear-gradient(135deg, #18213c 60%, #1ec6e6 100%);
	border-radius: 12px;
	padding: 64px 18px; /* 高度加一倍，原32px改为64px */
	max-width: 340px;
	margin: 60px auto;
	color: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.accuracy {
	font-size: 1.1rem;
	margin-bottom: 10px;
	color: #fff;
}

.accuracy .percent {
	color: #ffa200;
	font-weight: bold;
	font-size: 1.3rem;
}

.desc {
	font-size: 1rem;
	color: #b8c6e0;
	margin-bottom: 6px;
}

.desc .highlight {
	color: #ffa200;
	font-weight: 500;
	text-decoration: underline;
	cursor: pointer;
	font-size: 1.3rem;
}	


.btn {
	width: 80%;
	padding: 14px 0;
	border: none;
	border-radius: 24px;
	background: linear-gradient(90deg, #12ebd0 0%, #12ebd0 100%);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 25px;
	box-shadow: 0 2px 8px rgba(30, 198, 230, 0.18);
	animation: btn-breath 1.8s ease-in-out infinite;
}
/* 动画按钮 */
.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); }
}
@keyframes btn-breath {
	0% {
		box-shadow: 0 2px 16px 0 rgba(30, 198, 230, 0.25),
		0 2px 8px rgba(30, 198, 230, 0.18);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 4px 32px 0 rgba(30, 198, 230, 0.38),
		0 2px 16px rgba(30, 198, 230, 0.22);
		transform: scale(1.04);
	}
	100% {
		box-shadow: 0 2px 16px 0 rgba(30, 198, 230, 0.25),
		0 2px 8px rgba(30, 198, 230, 0.18);
		transform: scale(1);
	}
}
