* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: "Microsoft YaHei", sans-serif;
}

body {
	line-height: 1.6;
	padding: 0;
	max-width: 100%;
	overflow-x: hidden;
	height: 100vh;
	overflow-y: auto;
}

/* 滚动条样式 - 只在滚动时显示 */
body::-webkit-scrollbar {
	width: 0px;
	background: transparent;
}

body:hover::-webkit-scrollbar {
	width: 8px;
}

body::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.container {
	background-color: transparent;
	padding: 15px;
	margin: 0 auto;
	max-width: 100%;
	padding-bottom: 60px; /* 减少底部导航栏留出的空间 */
	min-height: calc(100vh - 60px);
}

header {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #3498db;
	background-color: #fff;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
	color: #2c3e50;
	font-size: 20px;
	margin-bottom: 10px;
}

.exam-info {
	display: flex;
	justify-content: space-between;
	f极lex-wrap: wrap;
	margin-top: 10px;
	font-size: 14px;
	gap: 8px;
}

.section {
	margin-bottom: 25px;
}

.section-title {
	background-color: #3498db;
	color: white;
	padding: 10px 15px;
	border-radius: 8px;
	margin-bottom: 15px;
	font-size: 16px;
	position: sticky;
	top: 0;
	z-index: 10;
}

.question {
	margin-bottom: 15px;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background-color: #fff;
	position: relative;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question-title {
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 16px;
}

.options {
	margin-left: 15px;
}

.option {
	margin-bottom: 8px;
	font-size: 15px;
}

/* 用户答案输入框样式 */
.user-answer-input {
	margin: 10px 0;
}

.user-answer-input input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	background-color: #f9f9f9;
	transition: border-color 0.3s;
}

.user-answer-input input:focus {
	outline: none;
	border-color: #3498db;
	background-color: #fff;
	box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.answer {
	background-color: #e8f5e9;
	padding: 10px;
	border-radius: 5px;
	margin-top: 10px;
	display: none;
}

.question-buttons {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.show-answer, .add-to-wrong, .view-wrong {
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	min-width: 50px;
}

.show-answer {
	background-color: #2196F3;
	margin-right: auto;
}

.show-answer:hover {
	background-color: #0b7dda;
}

.add-to-wrong {
	background-color: #4CAF50;
}

.add-to-wrong:hover {
	background-color: #388E3C;
}

.view-wrong {
	background-color: #2196F3;
}

.view-wrong:hover {
	background-color: #0b7dda;
}

.added-to-wrong {
	background-color: #ff9800;
}

.added-to-wrong:hover {
	background-color: #e68a00;
}

input[type="text"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-top: 8px;
	font-size: 15px;
}

/* 错题本模态框样式 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	padding: 0;
	border-radius: 12px;
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.fullscreen-modal {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	border-radius: 0;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	background-color: #f9f9f9;
	position: sticky;
	top: 0;
	z-index: 10;
}

.modal-header h2 {
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.count-text {
	color: #666;
	font-size: 16px;
	margin-left: 8px;
}

.close-modal {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.close-modal:hover {
	color: #333;
}

.modal-body {
	padding: 0;
	overflow-y: auto;
	flex-grow: 1;
	height: calc极(100% - 60px);
}

/* 模态框滚动条样式 */
.modal-body::-webkit-scrollbar {
	width: 0px;
	background: transparent;
}

.modal-body:hover::-webkit-scrollbar {
	width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.modal-body::-极webkit-scrollbar-thumb:hover {
	background: #999;
}

.wrong-list {
	padding: 15px;
	padding-bottom: 70px; /* 增加底部内边距，防止内容被导航栏遮挡 */
}

.wrong-item {
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 15px;
	background-color: #fff;
}

.wrong-item-buttons {
	margin-top: 10px;
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.remove-wrong {
	background-color: #f44336;
	color: white;
	border: none;
	padding: 极6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	min-width: 50px;
}

.remove-wrong:hover {
	background-color: #d32f2f;
}

/* 试卷列表样式 */
.exam-list {
	padding: 15px;
	padding-bottom: 70px; /* 增加底部内边距，防止内容被导航栏遮挡 */
}

.exam-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 15px;
	background-color: #fff;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.exam-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.exam-icon {
	width: 40px;
	height: 40px;
	background-color: #3498db;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 15px;
	color: white;
	font-size: 18px;
}

.exam-info {
	flex-grow: 1;
}

.exam-title {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 4px;
}

/* 底部导航栏样式 - 修改后 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    padding: 8px 0; /* 减少内边距，降低高度 */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* 移除圆角，改为直角 */
    border-radius: 0;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px 12px; /* 减少内边距 */
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width极: 50px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    background-color: #f0f7ff;
}

.nav-item:active {
    transform: scale(0.95);
    background-color: #f0f7ff;
}

.nav-item i {
    font-size: 20px; /* 减小图标大小 */
    margin-bottom: 2px; /* 减少图标与文字间距 */
    color: #666;
    transition: all 0.3s ease;
}

.nav-item.active i {
    color: #2196F3;
}

.nav-item span {
    font-size: 11px; /* 减小文字大小 */
    color: #666;
    transition: all 0.3s ease;
}

.nav-item.active span {
    color: #2196F3;
    font-weight: 500;
}

/* 添加点击涟漪效果 */
.nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #2196F3 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.nav-item:active::after {
    transform: scale(0, 0);
    opacity: 0.2;
    transition: 0s;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.container {
		padding: 12px;
		padding-bottom: 60px; /* 调整底部内边距 */
	}
	
	h1 {
		font-size: 18px;
	}
	
	.exam-info {
		flex-direction: column;
		gap: 5px;
	}
	
	.section-title {
		font-size: 16px;
		padding: 8px 12px;
	}
	
	.question {
		padding: 12px;
	}
	
	.question-title {
		font-size: 15px;
	}
	
	.options {
		margin-left: 10px;
	}
	
	.option {
		font-size: 14px;
	}
	
	.user-answer-input input {
		padding: 8px;
		font-size: 14px;
	}
	
	.modal-content {
		width: 100%;
		max-height: 100%;
	}
	
	.modal-header {
		padding: 12px 15px;
	}
	
	.modal-header h2 {
		font-size: 16px;
	}
	
	.wrong-list, .exam-list {
		padding: 12px;
		padding-bottom: 60px; /* 调整底部内边距 */
	}
	
	.wrong-item, .exam-item {
		padding: 12px;
	}
	
	.question-buttons {
		flex-direction: row;
		justify-content: space-between;
	}
	
	.show-answer, .add-to-wrong {
		min-width: 40px;
		padding: 6px 8px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	body {
		padding: 0;
	}
	
	.container {
		padding: 10px;
		padding-bottom: 60px; /* 调整底部内边距 */
	}
	
	header {
		padding: 12px;
		margin-bottom: 15px;
	}
	
	h1 {
		font-size: 16px;
	}
	
	.exam-info {
		font-size: 12px;
	}
	
	.section {
		margin-bottom: 20px;
	}
	
	.user-answer-input input {
		padding: 6px;
		font-size: 13px;
	}
	
	.question-buttons {
		flex-direction: row;
		justify-content: space-between;
	}
	
	.show-answer, .add-to-wrong {
		min-width: 35px;
		padding: 5px 6px;
		font-size: 11px;
	}
	
	.nav-item {
		padding: 6px 10px; /* 调整导航项内边距 */
		min-width: 45px;
	}
	
	.nav-item i {
		font-size: 18px; /* 调整图标大小 */
	}
	
	.nav-item span {
		font-size: 10px; /* 调整文字大小 */
	}
}

@media (min-width: 769px) {
	.container {
		max-width: 800px;
	}
    
    .nav-container {
        max-width: 450px;
    }
}

/* 空状态样式 */
.empty-state {
	text-align: center;
	padding: 40px 15px;
	color: #777;
}

.empty-state i {
	font-size: 40px;
	margin-bottom: 15px;
	color: #ccc;
}

.empty-state p {
	font-size: 16px;
}