* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	background: #F8FAFF;
}

.card {
	max-width: 1200px;
	margin: 30px auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-gap: 20px;
	gap: 20px;
}

.card-item {
	font-size: 20px;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 196px;
	height: 100%;
	justify-content: space-between;
	padding: 20px;
	border: 2px solid #edeff4;
	border-radius: 10px;
}

.card-item h5 {
	margin: 0;
	color: #2e3856;
	margin-bottom: 20px;
}

.card-tab-list {
	display: flex;
	gap: 10px;
}

.card-tab-list span {
	display: block;
	border-radius: 15px;
	background-color: #edefff;
	color: #2e3856;
	font-weight: 600;
	font-size: 13px;
	padding: 1px 10px;
}

.card-foot {
	display: flex;
	justify-content: flex-end;
}

.card-foot a {
	color: #586380;
	font-size: 14px;
	padding: 3px 8px;
	border: 2px solid #d9dde8;
	border-radius: 7px;
	text-decoration: none;
}


/* 搜索栏 */
.selector-container {
	position: relative;
	width: fit-content;
}

/* 选择器样式 */
.selector-input {
	padding: 12px 40px 12px 20px;
	border: 2px solid #ddd;
	border-radius: 25px;
	font-size: 16px;
	cursor: pointer;
	background: white;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* 下拉列表容器 */
.dropdown-container {
	display: none;
	position: absolute;
	top: 110%;
	left: 0;
	right: 0;
	background: white;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 400px;
	overflow: hidden;
}

/* 搜索框样式 */
.search-box {
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.search-input {
	width: 100%;
	padding: 10px 15px;
	border: 2px solid #4CAF50;
	border-radius: 5px;
	outline: none;
}

/* 结果列表 */
.results-list {
	max-height: 300px;
	overflow-y: auto;
	padding: 10px 0;
}

/* 选项样式 */
.option-item {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	cursor: pointer;
	transition: background 0.2s;
}

.option-item:hover {
	background: #f8f8f8;
}

.option-image {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	margin-right: 15px;
	object-fit: cover;
}

/* 清除按钮 */
.clear-btn {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 18px;
}

/* 选中项样式 */
.selected-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pc-width {
	width: 1200px;
	margin: 0 auto;
}

.top-row {
	display: flex;
	justify-content: space-between;
}

.top-text {
	color: #586380;
	font-size: 14px;
	display: flex;
	align-items: center;
}

/* 页码 */
.pagination {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	font-family: Arial, sans-serif;
}

.pagination li{
	list-style: none;
}
.pagination li a{
	text-decoration: none;
}
.page-item {
	font-weight: 600;
	color: #2e3856;
	padding: 10px 5px;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s;
}

.page-item:hover {
	/* background-color: #f5f5f5; */
}

.page-item.active {
	border-bottom: 3px solid #007bff;
}

.page-item.disabled {
	color: #ccc;
	cursor: not-allowed;
}

.ellipsis {
	padding: 8px 0;
	cursor: default;
}

.pages {
	display: flex;
	gap: 20px;
}

.dropdown {
	position: relative;
	display: inline-block;
	font-family: Arial, sans-serif;
	max-height: 54px;
	overflow: hidden;
	box-shadow: 2px 0 12px 0 #ddd;
}

.dropdown:hover {
	max-height: 300px;
	overflow: visible;
}

.dropdown-btn {
	padding: 12px 24px;
	background-color: #fff;
	color: #123541;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	min-width: 160px;
	text-align: left;
	transition: background-color 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
}

.dropdown-item i,
.dropdown-btn i {
	display: block;
	width: 26px;
	height: 28px;
}

.icon-learn {
	background: url(/static/img/flashcard/ic-learn.png) no-repeat center/100%;
}

.icon-Flashcards {
	background: url(/static/img/flashcard/ic-Flashcards.png) no-repeat center/100%;
}

.icon-Home {
	background: url(/static/img/flashcard/ic-home.png) no-repeat center/100%;
}

.icon-Test {
	background: url(/static/img/flashcard/ic-test.png) no-repeat center/100%;
}

.dropdown-btn:hover {
	background-color: #e9ecef;
}

.dropdown-menu {
	position: absolute;
	z-index: 999;
	left: 0;
	width: 100%;
	max-height: 300px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: max-height 0.2s ease-out;
}

.dropdown-menu.show,
.dropdown-menu .dropdown-item {
	padding: 12px 16px;
	cursor: pointer;
	transition: background-color 0.2s;
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #000000;
}

.dropdown-item:hover {
	background-color: #f8f9fa;
}


.pc-width {
	width: 1200px;
	margin: 20px auto;
}


.btn-row {
	display: flex;
	gap: 40px;
	margin: 40px 0;
}


.btn-row .btn {
	width: 150px;
	height: 50px;
	background: #FFFFFF;
	border-radius: 28px 28px 28px 28px;
	text-align: center;
	box-shadow: 2px 0px 24px 0px #eee;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #000000;
}

.btn-row .btn i {
	width: 26px;
	height: 28px;
}

.btn-row .btn:first-child i {
	background: url(/static/img/flashcard/ic-learn.png) no-repeat center/100%;
}

.btn-row .btn:last-child i {
	background: url(/static/img/flashcard/ic-test.png) no-repeat center/100%;
}

.btn-row .btn.active {
	box-shadow: 2px 0px 24px 0px #ccc;
}


.flip-container {
	perspective: 1200px;
	width: 100%;
	height: 400px;
	margin: 40px auto;
	cursor: pointer;
	border-radius: 15px 15px 15px 15px;
}

.flip-box {
	position: relative;
	width: 100%;
	height: 100%;
	transition: transform 0.6s;
	transform-style: preserve-3d;
}

.flip-box.flipped {
	transform: rotateX(180deg);
}

.flip-front,
.flip-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	border-radius: 10px;
}

.flip-front {
	background: #FFFFFF;
	box-shadow: 2px 0 24px 0 #e7e7e7;
	color: #354D5F;
	font-size: 20px;
	overflow-y: auto;
}

.flip-front-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px 10px 0 0;
	padding: 30px;
	white-space:pre-line;
}

.flip-foot {
	width: 100%;
	font-size: 24px;
	background-color: #1F2F7F;
	color: #FFFFFF;
	text-align: center;
	padding: 10px 0;
	border-radius: 0 0 10px 10px;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.flip-foot i {
	display: block;
	width: 38px;
	height: 38px;
	background: url(/static/img/flashcard/ic-hand.png) no-repeat center/100%;
}


.flip-back {
	background: #FFFFFF;
	box-shadow: 2px 0px 24px 0px #e7e7e7;
	color: #354D5F;
	display: flex;
	font-size: 20px;
	padding: 120px;
	align-items: center;
	justify-content: center;
	transform: rotateX(180deg);
	white-space:pre-line;
	overflow-y: auto;
}

.page {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 30px auto;
	width: 300px;
}

.page i {
	display: block;
	width: 38px;
	height: 38px;
}

.left {
	border-radius: 20px;
	width: 90px;
	height: 42px;
	border: 2px solid #D9DDE7;
	display: flex;
	justify-content: center;
	align-items: center;
}

.left i.unlock {
	background: url(/static/img/flashcard/left.png) no-repeat center/100%;
}

.left i.active {
	cursor: pointer;
	background: url(/static/img/flashcard/right.png) no-repeat center/100%;
	transform: rotate(180deg);
}

.right i.unlock {
	background: url(/static/img/flashcard/left.png) no-repeat center/100%;
	transform: rotate(180deg);
}

.right i.active {
	cursor: pointer;
	background: url(/static/img/flashcard/right.png) no-repeat center/100%;
}

.right {
	border-radius: 20px;
	width: 90px;
	height: 42px;
	border: 2px solid #D9DDE7;
	display: flex;
	justify-content: center;
	align-items: center;
}


/* 答题卡模块 */
.question-btn-row {
	display: flex;
	justify-content: space-between;
	gap: 0px;
	margin: 40px 0;
}

.question-btn-row h1{
	line-height: 55px;
}

.close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px 4px 4px 4px;
	border: 2px solid #D9DDE7;
	cursor: pointer;
	margin-top: 12px;
}

.close i {
	display: block;
	width: 32px;
	height: 32px;
	background: url(/static/img/flashcard/close.png) no-repeat center/100%;
}


.progress-container {
	width: 100%;
	background-color: #FFFFFF;
	border-radius: 10px;
	margin: 20px 0;
}

.question-container h4 {
	font-weight: bold;
	font-size: 24px;
	color: #354D5F;
	margin: 50px 0px 20px;
}

.progress-bar {
	height: 20px;
	background-color: #4CAF50;
	border-radius: 10px;
	transition: width 0.3s ease;
}

.question-container {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin: 30px 0;
}

.question-number {
	color: #666;
	font-size: 14px;
	margin-bottom: 10px;
}

.question-text {
	font-size: 20px;
	color: #354D5F;
	line-height: 30px;
	margin: 15px 0;
	white-space: pre-line;
}

.options-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0px 20px;
	list-style: none;
	padding: 0;
}

.option-item {
	flex: 45%;
	padding: 12px;
	margin: 8px 0;
	background: white;
	border: 2px solid #ddd;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 16px;
}

.options-list-longsize {
	gap: 0px 20px;
	list-style: none;
	padding: 0;
}

.options-list-longsize .option-item {
	padding: 12px;
	margin: 8px 0;
	background: white;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 16px;
	white-space: pre-line;
}


.option-item span {
	display: block;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 13px;
	border-radius: 50%;
	color: #354D5F;
}

.option-item:hover {
	border-color: #354D5F;
}

.option-item.selected {
	border-color: #2196F3;
}

.option-right,.option-right:hover {
	border-color: #45B747!important;
	cursor: unset;
	background: #ffffff!important;
}

.option-wrong,.option-wrong:hover {
	border-color: #FF0000!important;
	cursor: unset;
	background: #ffffff!important;
}

.option-correct,.option-correct:hover {
	border: dashed #45B747!important;
	cursor: unset;
	background: #ffffff!important;
}

.option-display,.option-display:hover {
	border: 2px solid #ddd;
	color: #ddd;
	cursor: unset;
	background: #ffffff;
}

.option-choose,.option-choose:hover {
	border-color: #1B8BFF;
	background: #EBF3FF;
}

.option-correct span,
.option-right span {
	color: transparent;
	z-index: 99;
	background: url(/static/img/flashcard/ic-right.png) no-repeat center/100%;
}

.option-wrong span {
	color: transparent;
	background: url(/static/img/flashcard/ic-wrong.png) no-repeat center/100%;
}

.nav-buttons {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
}

.nav-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	background-color: #2196F3;
	color: white;
	transition: background 0.3s;
}

.nav-buttons button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

.nav-buttons button:hover:not(:disabled) {
	background-color: #1976D2;
}




/* 试卷模块 */
.answer-stats {
	/*margin: 20px auto;*/
	padding: 20px;
	border-radius: 8px;
	display: flex;
	gap: 30px;
}

.summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	/* margin-bottom: 20px; */
}

.correct-box,
.incorrect-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 20px;
	border-radius: 4px;
	font-weight: bold;
}

.correct-box {
	color: #45B747;
}

.incorrect-box {
	color: #45B747;
}

.correct-box strong {
	width: 57px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	background: #EBF7EB;
	border-radius: 12px 12px 12px 12px;
	border: 1px solid #45B747;
}

.incorrect-box strong {
	width: 57px;
	height: 24px;
	line-height: 24px;
	margin-left: 60px;
	text-align: center;
	background: #FFE5E5;
	color: #FF0000;
	border-radius: 12px 12px 12px 12px;
	border: 1px solid #FF0000;
}

.question-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

.question-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px;
	font-weight: bold;
}

.question-grid-number {
	font-weight: 500;
	color: #202124;
}

.status-icon {
	font-family: serif;
	font-size: 20px;
	font-weight: bold;
}

.correct .status-icon {
	color: #45B747;
}

.incorrect .status-icon {
	color: #d93025;
}

/* 环形图样式 */
.chart-container {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.donut-chart {
	position: relative;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	transition: background 0.5s ease;
}

.donut-inner {
	position: absolute;
	width: 80px;
	height: 80px;
	background: white;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.percentage {
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: bold;
	color: #45B747;
	transition: all 0.3s ease;
}

.percentage small {
	font-size: 14px;
	color: #666;
}

#submit-confirm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
}

#confirm-submit, #cancel-submit {
	margin: 10px;
	padding: 8px 16px;
	cursor: pointer;
}

#confirm-submit {
	background: #4CAF50;
	color: white;
	border: none;
}

#cancel-submit {
	background: #f44336;
	color: white;
	border: none;
}

.times{
	font-family: HelveticaNeue, HelveticaNeue;
	font-weight: bold;
	font-size: 24px;
	color: #354D5F;
	text-align: left;
	font-style: normal;
	text-transform: none;
}

.answer-tip{
	font-family: HelveticaNeue, HelveticaNeue;
	font-weight: bold;
	font-size: 24px;
	color: #354D5F;
	text-align: left;
	font-style: normal;
	text-transform: none;
}

/* 反馈文案样式 */
.feedback-title {
	font-size: 18px;
	margin: 15px 0;
	font-weight: bold;
}
.feedback-correct {
	color: #28a745!important;
	font-size: 20px!important;
	font-weight: unset!important;
}
.feedback-incorrect {
	color: #dc3545!important;
	font-size: 20px!important;
	font-weight: unset!important;
}

/* 禁用状态样式 */
.options-disabled .option-item {
	cursor: default;
	pointer-events: none;
}
.st{
	display: none;
}

/* 随机按钮样式 */
.random-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	margin: 0 10px;
	transition: all 0.3s;
}
.random-btn i {
	background: url("/static/img/flashcard/sj.png");
	background-size: 100%;
}
.random-btn.active i {
	background: url("/static/img/flashcard/sj_active.png");
	background-size: 100%;
}


/* 添加完成弹窗样式 - 修复居中问题 */
.completion-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5);
	z-index: 1000;
}
.completion-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	max-width: 400px;
	width: 90%;
	box-sizing: border-box;
}
.completion-title {
	font-size: 24px;
	margin-bottom: 20px;
}
.completion-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 25px;
}
.completion-btn {
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	border: none;
	transition: all 0.3s;
}
.learn-again-btn {
	background-color: #45B747;
	color: white;
}
.back-to-flashcards-btn {
	background-color: #4285F4;
	color: white;
}
.completion-btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

/* Done按钮样式 */
.done-btn {
	background-color: #45B747 !important;
	color: white !important;
	cursor: pointer !important;
}
.nav-buttons button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.done-btn-test {
	background-color: #45B747 !important;
	color: white !important;
	cursor: pointer !important;
	border: unset;
	padding: 0 10px;
	border-radius: 5px;
	margin-left: 10px;
}


/* 题目列表样式 */
.question-list {
	margin-top: 40px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	padding: 20px;
}

.question-list h3 {
	color: #555;
	font-size: 16px;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}

.question-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.question-list li {
	display: flex;
	padding: 10px 0;
	align-items: center;
	font-size: 18px;
	border: 1px solid #f5f5f5;
	margin-bottom: 20px;
	border-radius: 5px;
	box-shadow: 0 .125rem .25rem 0 #d9dde7;
}

.question-list li:last-child {
	border-bottom: none;
}

.question-list .item-number {
	color: #888;
	margin: 0 10px;
	min-width: 20px;
}

.question-list .item-question {
	flex: 1;
	padding-right: 15px;
	color: #444;
	position: relative;
	white-space: pre-line;
}

.question-list .item-answer {
	flex: 1;
	padding-left: 15px;
	color: #444;
	position: relative;
	white-space: pre-line;
}

.question-list .item-question:after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 1px;
	background: #e0e0e0;
}

.card-menu{
	color: #586380;
	font-size: 16px;
	padding: 5px 8px;
	/* border: 2px solid #d9dde8; */
	/* border-radius: 7px; */
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
}
.card-menu-active{
	background-color: #edefff!important;
	color: #2e3856!important;
}

.blur-content {
	filter: blur(3px);
	-webkit-filter: blur(3px);
}