:root {
	--primary-color: #1a3a5f;
	--secondary-color: #d4af37;
	--accent-color: #3a79e2;
	--light-color: #f8f9fa;
	--dark-color: #0f1f30;
	--text-color: #333;
	--text-light: #7f8c8d;
}

/* 移除body的padding-top，因为navbar是fixed的 */
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* 调整main容器，填充剩余空间 */
.main_ {
	flex: 1;
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* 让container填充main的高度 */
.main_ .container {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0;
}

/* 调整header的margin */
.header {
	text-align: center;
	margin-bottom: 0; /* 移除底部margin */
	padding: 18px 0;
	background: linear-gradient(135deg, var(--primary-color) 0%,
		var(--accent-color) 100%);
	border-radius: 0; /* 移除圆角 */
	color: white;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.header h1 {
	font-size: 26px;
	margin-bottom: 10px;
	font-weight: 300;
	position: relative;
}

.header h1 strong {
	font-weight: 600;
}

.header p {
	opacity: 0.9;
	position: relative;
}

.card {
	background-color: white;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	padding: 30px;
	margin-bottom: 0; /* 移除底部margin */
	border: none;
	min-height: auto; /* 移除固定最小高度 */
	flex: 1; /* 填充剩余空间 */
	display: flex;
	flex-direction: column;
	border-radius: 0; /* 移除圆角 */
}

.card-title {
	color: var(--primary-color);
	font-size: 24px;
	margin-bottom: 20px;
	font-weight: 500;
	border-bottom: 2px solid var(--secondary-color);
	padding-bottom: 10px;
	display: inline-block;
}

.form-group {
	margin-bottom: 25px;
}

.form-control {
	border-radius: 8px;
	border: 1px solid #ddd;
	padding: 12px 15px;
	font-size: 16px;
	transition: all 0.3s;
	box-shadow: none;
}

.form-control:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(44, 94, 138, 0.1);
}

.gender-option {
	text-align: center;
	cursor: pointer;
	padding: 20px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	margin-bottom: 15px;
	transition: all 0.3s;
	background-color: #f9f9f9;
}

.gender-option:hover {
	border-color: var(--accent-color);
	background-color: white;
	transform: translateY(-3px);
}

.gender-option.active {
	border-color: var(--secondary-color);
	background-color: rgba(212, 175, 55, 0.05);
	box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.gender-icon {
	font-size: 36px;
}

.gender-option.active .gender-icon {
	color: var(--secondary-color);
}

/* 调整信息收集表单区域 */
#baby-info-form {
	/* flex: 1; */
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.chat-container {
	flex: 1; /* 使用flex填充剩余空间 */
	overflow-y: auto;
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	margin-bottom: 25px;
	background-color: #fafafa;
}

.message {
	margin-bottom: 20px;
	clear: both;
}

.user-message {
	text-align: right;
}

.message-bubble {
	display: inline-block;
	max-width: 75%;
	padding: 12px 18px;
	border-radius: 18px;
	margin-bottom: 5px;
	position: relative;
}

.ai-message .message-bubble {
	background-color: white;
	border: 1px solid #e0e0e0;
	border-bottom-left-radius: 5px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.user-message .message-bubble {
	background-color: var(--primary-color);
	color: white;
	border-bottom-right-radius: 5px;
	box-shadow: 0 3px 10px rgba(26, 58, 95, 0.2);
}

.name-suggestion {
	background-color: white;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
	margin: 15px 0;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.name-suggestion::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background-color: var(--secondary-color);
	transition: width 0.3s;
}

.name-suggestion:hover {
	background-color: rgba(212, 175, 55, 0.05);
	border-color: var();
}

.name-suggestion:hover::before {
	width: 8px;
}

.name-text {
	font-size: 24px;
	font-weight: bold;
	color: var(--primary-color);
	margin-bottom: 5px;
}

.name-meaning {
	color: var(--text-light);
	font-size: 15px;
}

.name-pinyin {
	color: var(--accent-color);
	font-size: 14px;
	margin-bottom: 5px;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	border-radius: 8px;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(26, 58, 95, 0.2);
}


.btn-outline {
	background-color: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	border-radius: 8px;
	padding: 10px 25px;
	font-size: 15px;
	transition: all 0.3s;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: white;
}

/* 调整footer样式 */
footer#footer.footer {
	background: rgb(37, 37, 37) none repeat scroll 0 0;
	border-top: 1px solid green;
	color: #EEE;
	margin-top: 0; /* 移除顶部margin */
	padding: 20px 0;
	text-align: center;
	position: relative;
	width: 100%;
}

/* 移除navbar-fixed-bottom的固定定位 */
.navbar-fixed-bottom {
	position: relative;
}

.chat-input-container {
	margin-bottom: 20px;
	position: relative;
}

.input-wrapper {
	position: relative;
	display: block;
}

.chat-input {
	width: 100%;
	border-radius: 20px;
	border: 2px solid #e0e0e0;
	padding: 15px 60px 15px 20px; /* 右侧留出按钮空间 */
	font-size: 16px;
	line-height: 1.5;
	resize: vertical;
	min-height: 60px;
	max-height: 150px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	background-color: white;
}

.chat-input:focus {
	border-color: var(--accent-color);
	box-shadow: 0 4px 15px rgba(58, 121, 226, 0.2);
	outline: none;
}

.send-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color);
	border: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(26, 58, 95, 0.3);
	z-index: 10;
	padding: 25px 25px;
}

.send-btn:hover {
	background-color: var(--accent-color);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 4px 12px rgba(58, 121, 226, 0.4);
}

.send-btn:active {
	transform: translateY(0) scale(0.95);
}

.send-btn i {
	font-size: 16px;
	margin: 0;
}

.input-hint {
	text-align: right;
	color: var(--text-light);
	font-size: 12px;
	padding: 5px 10px 0;
}

/* 响应式调整 */
@media ( max-width : 768px) {
	.header h1 {
		font-size: 28px;
	}
	.step {
		width: 90px;
	}
	.step-line {
		width: 60px;
	}
	.message-bubble {
		max-width: 85%;
	}
	.input-wrapper {
		flex-direction: column;
		align-items: stretch;
	}
	.send-btn {
		width: 36px;
		height: 36px;
		bottom: 8px;
		right: 8px;
	}
	.send-btn i {
		font-size: 14px;
	}
	.chat-input {
		padding: 12px 50px 12px 15px;
	}
}