/* ============================================
   全局重置和基础样式
   ============================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
	font-size: 16px;
	color: #FFFFFF;
	background: #000000;
	min-height: 100vh;
	overflow-x: hidden;
	line-height: 1.6;
	position: relative;
}

a {
	text-decoration: none;
}

a img {
	border: 0;
}

/* ============================================
   股票动态背景
   ============================================ */
#stockBackground {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	background: #1a1a1a;
}

/* ============================================
   主容器
   ============================================ */
#root {
	z-index: 2;
	position: relative;
}

.stock-main {
	width: 600px;
	max-width: 100%;
	margin: 0 auto;
	padding: 30px;
	background: #1a1a1a;
	border-radius: 25px;
	border: 1px solid #4CAF50;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   头部和Logo
   ============================================ */
.stock-header {
	width: 100%;
	height: auto;
	overflow: hidden;
	text-align: center;
	margin: 0 0 30px 0;
}

.stock-logo {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

/* ============================================
   标题和文本
   ============================================ */
.stock-title-h1 {
	font-size: 32px;
	color: #4CAF50;
	line-height: 1.2;
	font-weight: 800;
	text-shadow: 0 0 20px rgba(76, 175, 80, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
	margin-bottom: 15px;
	text-align: center;
	letter-spacing: -0.5px;
}

.stock-text {
	font-size: 18px;
	color: #FFFFFF;
	line-height: 1.4;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	margin-bottom: 25px;
	text-align: center;
	font-weight: 500;
}

/* ============================================
   卡片样式
   ============================================ */
.stock-card {
	background: #2C2C2C;
	border-radius: 20px;
	padding: 25px;
	margin-bottom: 20px;
	border: 1px solid #4CAF50;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stock-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
	border-color: #66BB6A;
}

/* ============================================
   进度条
   ============================================ */
.stock-progress-bar {
	background: #1a1a1a;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 15px;
	border: 1px solid #4CAF50;
}

.stock-progress {
	height: 100%;
	background: #4CAF50;
	width: 2%;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 5px;
	min-width: 2%;
	box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.stock-progress-text {
	font-size: 16px;
	color: #FFFFFF;
	text-align: center;
	font-weight: 600;
	margin-bottom: 15px;
}

/* ============================================
   问题部分
   ============================================ */
.stock-question-section {
	display: block;
}

.stock-question-title {
	text-align: center;
	font-size: 18px;
	color: #FFFFFF;
	font-weight: 700;
	margin-bottom: 25px;
	line-height: 1.5;
}

.stock-options-list {
	list-style: none;
}

.stock-option-item {
	display: flex;
	align-items: center;
	padding: 15px;
	background: #1a1a1a;
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600;
	font-size: 16px;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.stock-option-item:hover {
	background: #2C2C2C;
	border-color: #4CAF50;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.stock-option-item:active {
	transform: translateY(0);
}

.stock-option-item label {
	display: flex;
	align-items: center;
	width: 100%;
	cursor: pointer;
}

.stock-option-item label input {
	margin-right: 15px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #4CAF50;
}

/* ============================================
   完成部分
   ============================================ */
.stock-completion-section {
	display: block;
	text-align: center;
}

.stock-completion-title {
	font-size: 20px;
	color: #4CAF50;
	font-weight: 700;
	margin-bottom: 20px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stock-completion-text {
	font-size: 16px;
	color: #FFFFFF;
	text-align: center;
	font-weight: 500;
	margin-bottom: 25px;
	line-height: 1.6;
}

.stock-button {
	overflow: hidden;
	position: relative;
	background: #4CAF50;
	color: #fff;
	border: none;
	padding: 16px 24px;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
	width: 100%;
}

.stock-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
	background: #66BB6A;
}

.stock-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

/* ============================================
   警告部分
   ============================================ */
.stock-warning-title {
	font-size: 18px;
	color: #F44336;
	font-weight: 700;
	margin-bottom: 20px;
	text-align: center;
}

.stock-warning-text {
	overflow: hidden;
}

.stock-warning-text p {
	color: #FFFFFF;
	line-height: 1.7;
	font-size: 14px;
	margin-bottom: 12px;
}

.stock-warning-text p:last-child {
	margin-bottom: 0;
}

/* ============================================
   链接部分
   ============================================ */
.stock-links {
	text-align: center;
	border-top: 1px solid #4CAF50;
	margin-top: 20px;
	padding-top: 20px;
}

.stock-links a {
	display: inline-block;
	margin: 0 8px;
	color: #4CAF50;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.3s ease;
	padding: 5px 10px;
	border-radius: 6px;
}

.stock-links a:hover {
	color: #66BB6A;
	background: #1a1a1a;
}

/* ============================================
   弹窗样式
   ============================================ */
.stock-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.stock-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
}

.stock-modal-content {
	position: relative;
	background: #2C2C2C;
	border-radius: 20px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	border: 1px solid #4CAF50;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.3s ease;
	z-index: 10001;
}

.stock-modal-title {
	font-size: 24px;
	color: #4CAF50;
	font-weight: 700;
	margin-bottom: 20px;
	text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stock-modal-body {
	font-size: 16px;
	color: #FFFFFF;
	line-height: 1.6;
	margin-bottom: 25px;
	text-align: center;
}

.stock-modal-button {
	width: 100%;
	background: #4CAF50;
	color: #fff;
	border: none;
	padding: 16px 24px;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.stock-modal-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
	background: #66BB6A;
}

.stock-modal-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
	.stock-main {
		padding: 15px;
	}

	.stock-title-h1 {
		font-size: 24px;
	}

	.stock-text {
		font-size: 16px;
	}

	.stock-card {
		padding: 20px;
		border-radius: 15px;
	}

	.stock-question-title {
		font-size: 16px;
	}

	.stock-button {
		font-size: 16px;
		padding: 14px 20px;
	}

	.stock-modal-content {
		padding: 25px;
		max-width: 90%;
	}

	.stock-modal-title {
		font-size: 20px;
	}

	.stock-modal-body {
		font-size: 14px;
	}

	.stock-modal-button {
		font-size: 16px;
		padding: 14px 20px;
	}
}
