/* 全局样式 */
body {
	font-family: "Roboto", sans-serif;
	background: linear-gradient(135deg, #1f1c2c, #928dab);
	color: #ffffff;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

/* 页面主标题 */
h1 {
	text-align: center;
	color: #00d1c1;
	margin-top: 40px;
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 2px;
}

.container {
	width: 40%;
	margin: 0 auto;
	padding: 30px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	color: #fff;
}

h2 {
	text-align: center;
	color: #ffffff;
	margin-top: 20px;
	font-size: 1.8rem;
}

/* 表格样式 */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 30px;
	border-radius: 10px;
	overflow: hidden;
}

th,
td {
	padding: 15px;
	text-align: center;
	border: 1px solid #333;
}

th {
	background-color: #00d1c1;
	color: #fff;
	font-weight: bold;
}

td {
	background-color: #292a3a;
}

input,
select,
button {
	padding: 12px;
	border-radius: 5px;
	border: 1px solid #333;
	width: 100%;
	font-size: 14px;
	margin-top: 10px;
	background: #333;
	color: #fff;
	box-sizing: border-box;
	transition: all 0.3s ease;
}

/* 按钮交互效果 */
button {
	background-color: #00d1c1;
	color: white;
	cursor: pointer;
	border: none;
	transition: background-color 0.3s ease;
	margin-top: 20px;
}

button:hover {
	background-color: #01b9ad;
}

button:disabled {
	background-color: #888;
	cursor: not-allowed;
}

/* 聚焦效果 */
input:focus,
select:focus,
button:focus {
	border-color: #00d1c1;
	outline: none;
	background-color: #444;
}

/* 错误提示 */
.error {
	color: red;
	text-align: center;
	font-weight: bold;
	margin-top: 20px;
}

.suggestions {
	position: absolute;
	background-color: #333;
	border: 1px solid #00d1c1;
	max-height: 200px;
	overflow-y: auto;
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 999;
	/* width: 9%; */
	border-radius: 5px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.suggestions li {
	padding: 10px 15px;
	cursor: pointer;
	font-size: 14px;
	color: #fff;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.suggestions li:hover {
	background-color: #00d1c1;
	color: #333;
}

.input-container {
	position: relative;
	width: 100%;
}

input[type="text"] {
	width: 100%;
	padding: 12px;
	border-radius: 5px;
	border: 1px solid #333;
	background: #333;
	color: #fff;
	font-size: 14px;
}

input[type="text"]:focus + .suggestions {
	display: block;
}

#result-container {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
}

.result-item {
	text-align: center;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 10px;
}

#intellectualScore,
#totalScore,
#gpaScore {
	color: #00d1c1;
}

.form-group {
	margin-top: 20px;
}

.form-group label {
	font-size: 1.2rem;
	margin-bottom: 10px;
}

input[type="number"] {
	background-color: #333;
	color: #fff;
}

input[type="number"]:focus {
	background-color: #444;
}

/* GPA评分表 */
#gpaChart {
	position: fixed;
	top: 20px;
	right: 10%;
	width: 15%;
	background-color: #333;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 14px;
	z-index: 1000;
}

/* 表格样式 */
#gpaChart table {
	width: 100%;
	border-collapse: collapse;
}

#gpaChart th,
#gpaChart td {
	padding: 10px;
	border-bottom: 1px solid #444;
	text-align: center;
}

#gpaChart th {
	background-color: #00d1c1;
}

#gpaChart td {
	background-color: #444;
}

/* 当鼠标悬停时，高亮显示行 */
#gpaChart tr:hover td {
	background-color: #00d1c1;
}

/* 公式展示框 */
#formulaBox {
	position: fixed;
	top: 20px;
	left: 10%;
	width: 15%;
	background-color: #333;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	color: #fff;
	font-size: 14px;
	z-index: 1000;
}

/* 公式列表 */
#formulaBox ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#formulaBox li {
	margin-bottom: 15px;
}

/* 强调公式标题 */
#formulaBox strong {
	font-weight: bold;
	color: #00d1c1;
}

/* 公式内容 */
#formulaBox span {
	color: #f1f1f1;
	font-style: italic;
}

/* 历史记录 */
#historyContainer {
	margin-top: 30px;
	padding: 20px;
	background-color: #444;
	border-radius: 10px;
	color: #fff;
	width: 90%;
	margin: 0 auto;
}

#historyList {
	margin-top: 20px;
}

.historyItem {
	background-color: #333;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.historyItem:hover {
	background-color: #00d1c1;
}

.historyItem p {
	margin: 5px 0;
}

footer {
	position: relative;
	height: 60px;
	color: white;
	line-height: 60px;
	width: 100%; /* 确保footer占满整个宽度 */
	bottom: 0;
	left: 0;
}
