* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

:root {

	--wechat-green: #07c160;
	--wechat-green-light: #2bd672;
	--wechat-green-dark: #06ad56;
	--wechat-bg: #f8f8f8;
	--wechat-text: #333;
	--wechat-text-light: #666;
	--wechat-text-lighter: #999;
	--wechat-border: #e5e5e5;
	--wechat-error: #fa5151;
	--wechat-warning: #fa9d3b;
}

body {
	background-color: #f5f5f5;
	color: #333;
	max-width: 100%;
	overflow-x: hidden;
}

.container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #fff;
}

/* 顶部Tab切换按钮 */
.tab-header {
	background-color: #fff;
	border-bottom: 1px solid #eee;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	z-index: 10;
}

.tab-section {
	height: 60px;
	width: 100%;
	display: flex;
}

.tab-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.tab-btn.active {
	color: #07c160;
	font-weight: 600;
}

.tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #07c160;
}

/* 提示信息栏 */
.info-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 15px;
	background-color: #f9f9f9;
	border-bottom: 1px solid #f0f0f0;
}

.info-icon.warning {
	color: #ff9800;
}

.info-text {
	font-size: 14px;
	color: #999;
	flex: 1;
	line-height: 1.4;
}

.refresh-btn-small {
	background-color: #07c160;
	color: white;
	border: none;
	padding: 6px 15px;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	margin-left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.refresh-btn-small:hover {
	background-color: #06ad56;
}

.refresh-btn-small:active {
	transform: scale(0.98);
}

.refresh-btn-small.loading {
	opacity: 0.8;
	background-color: #06ad56;
}

/* 内容区域 */
.content-section {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	background-color: #f8f8f8;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
	animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* 信件卡片样式 */
.letter-cards {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.letter-card {
	background-color: #fff;
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border-left: 4px solid #07c160;
}

.letter-card:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.card-row {
	display: flex;
	margin-bottom: 10px;
	align-items: flex-start;
}

.card-label {
	width: 80px;
	color: #666;
	font-size: 14px;
	flex-shrink: 0;
}

.card-value {
	flex: 1;
	color: #333;
	font-size: 15px;
	word-break: break-word;
	line-height: 1.5;
}

.status-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
}

.status-sent {
	background-color: #e6f7ff;
	color: #1890ff;
}

.status-delivered {
	background-color: #f6ffed;
	color: #52c41a;
}

.status-pending {
	background-color: #fff7e6;
	color: #fa8c16;
}

.status-failed {
	background-color: #fff2f0;
	color: #ff4d4f;
}

.status-paid {
	background-color: #f6ffed;
	color: #52c41a;
}

.status-unpaid {
	background-color: #fff2f0;
	color: #ff4d4f;
}

.content-preview {
	max-height: 60px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.content-full {
	max-height: none;
}

.toggle-content {
	color: #07c160;
	font-size: 13px;
	cursor: pointer;
	margin-top: 5px;
	display: inline-block;
}

.empty-state {
	text-align: center;
	padding: 50px 20px;
	color: #999;
}

.empty-icon {
	font-size: 60px;
	color: #e0e0e0;
	margin-bottom: 15px;
}

.empty-text {
	font-size: 16px;
	margin-bottom: 20px;
}

.refresh-btn {
	background-color: #07c160;
	color: white;
	border: none;
	padding: 10px 25px;
	border-radius: 25px;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.refresh-btn:hover {
	background-color: #06ad56;
	transform: scale(1.05);
}

/* 取信处特殊样式 */
.fetch-instructions {
	background-color: #f0f9ff;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	border-left: 4px solid #1890ff;
}

.instructions-title {
	font-size: 18px;
	color: #1890ff;
	margin-bottom: 10px;
	font-weight: 600;
}

.instructions-list {
	padding-left: 20px;
	margin-bottom: 15px;
}

.instructions-list li {
	margin-bottom: 8px;
	color: #666;
	line-height: 1.5;
}

.fetch-input-group {
	display: flex;
	margin-top: 15px;
}

.fetch-input {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px 0 0 8px;
	font-size: 15px;
	outline: none;
}

.fetch-btn {
	background-color: #07c160;
	color: white;
	border: none;
	padding: 0 20px;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	font-weight: 600;
}

/* 底部导航栏 */
.nav-section {
	height: 70px;
	width: 100%;
	background-color: #fff;
	border-top: 1px solid #eee;
	display: flex;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #888;
	transition: all 0.3s ease;
	position: relative;
}

.nav-btn.active {
	color: #07c160;
}

.nav-btn.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #07c160;
}

.nav-icon {
	font-size: 20px;
	margin-bottom: 5px;
}

.nav-text {
	font-size: 12px;
}

/* 响应式调整 */
@media (max-height: 700px) {
	.tab-section {
		height: 55px;
	}

	.letter-card {
		padding: 15px;
	}

	.nav-section {
		height: 65px;
	}
}

@media (max-width: 400px) {
	.card-label {
		width: 70px;
		font-size: 13px;
	}

	.card-value {
		font-size: 14px;
	}

	.info-text {
		font-size: 0.77rem;
	}

	.refresh-btn-small {
		padding: 5px 12px;
		font-size: 12px;
	}
}

@media (max-width: 350px) {
	.info-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.refresh-btn-small {
		align-self: flex-end;
		margin-left: 0;
	}
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal.show {
	display: flex;
	animation: fadeIn 0.3s ease;
}

.modal-content {
	background-color: white;
	border-radius: 14px;
	width: 100%;
	max-width: 500px;
	max-height: 70vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border: 1px solid var(--wechat-border);
}

.modal-header {
	padding: 18px 20px;
	border-bottom: 1px solid var(--wechat-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--wechat-green);
}

.modal-title {
	font-size: 17px;
	font-weight: 600;
	color: white;
	display: flex;
	align-items: center;
	gap: 10px;
}

.modal-title i {
	font-size: 18px;
}

.modal-close {
	background: none;
	border: none;
	font-size: 26px;
	color: white;
	cursor: pointer;
	line-height: 1;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s;
}

.modal-close:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.modal-text {
	line-height: 1.6;
	color: var(--wechat-text);
	font-size: 15px;
}

.modal-text h3 {
	color: var(--wechat-green);
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wechat-border);
	font-size: 16px;
}

.modal-text h4 {
	color: var(--wechat-text);
	margin: 18px 0 10px;
	font-size: 15px;
}

.modal-text ul {
	padding-left: 18px;
	margin-bottom: 14px;
}

.modal-text li {
	margin-bottom: 8px;
	font-size: 14px;
}

/* 删除按钮样式 */
.delete-btn-container {
	text-align: right;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #eee;
}

.delete-btn {
	background-color: #fff1f0;
	color: #ff4d4f;
	border: 1px solid #ffccc7;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 4px rgba(255, 77, 79, 0.1);
}

.delete-btn:hover {
	background-color: #ff4d4f;
	color: white;
	border-color: #ff4d4f;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(255, 77, 79, 0.2);
}

.delete-btn:active {
	transform: translateY(0);
}

.delete-btn i {
	font-size: 12px;
}

/* 确认删除弹窗样式 */
.confirm-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.confirm-modal.show {
	display: flex;
	animation: fadeIn 0.3s ease;
}

.confirm-modal-content {
	background-color: white;
	border-radius: 14px;
	width: 100%;
	max-width: 320px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.confirm-modal-header {
	padding: 24px 24px 0;
	text-align: center;
}

.confirm-modal-icon {
	width: 60px;
	height: 60px;
	background-color: #fff2f0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	color: #ff4d4f;
	font-size: 28px;
	border: 2px solid #ffccc7;
}

.confirm-modal-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.confirm-modal-text {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 24px;
	padding: 0 10px;
}

.confirm-modal-body {
	padding: 0 24px 24px;
}

.confirm-modal-actions {
	display: flex;
	gap: 12px;
}

.confirm-btn-cancel,
.confirm-btn-delete {
	flex: 1;
	padding: 12px 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.confirm-btn-cancel {
	background-color: #f5f5f5;
	color: #666;
	border: 1px solid #e0e0e0;
}

.confirm-btn-cancel:hover {
	background-color: #e8e8e8;
}

.confirm-btn-delete {
	background-color: #ff4d4f;
	color: white;
	box-shadow: 0 2px 6px rgba(255, 77, 79, 0.3);
}

.confirm-btn-delete:hover {
	background-color: #ff1f1f;
	box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}

/* 删除动画 */
@keyframes slideOutLeft {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(-100%);
		opacity: 0;
	}
}

.letter-card.deleting {
	animation: slideOutLeft 0.3s ease forwards;
}

/* 禁用状态的删除按钮 */
.delete-btn:disabled {
	background-color: #f5f5f5;
	color: #bfbfbf;
	border-color: #d9d9d9;
	cursor: not-allowed;
	box-shadow: none;
	transform: none !important;
}

.delete-btn:disabled:hover {
	background-color: #f5f5f5;
	color: #bfbfbf;
	border-color: #d9d9d9;
	box-shadow: none;
}

.delete-btn:disabled i {
	color: #bfbfbf;
}

/* 禁用状态提示文字 */
.delete-disabled-tip {
	font-size: 13px;
	color: #999;
	margin-top: 4px;
	text-align: left;
	font-style: italic;
}

/* 取消发送按钮样式 */
.cancel-send-btn {
	background-color: #fff7e6;
	color: #fa8c16;
	border: 1px solid #ffd591;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 4px rgba(250, 140, 22, 0.1);
	margin-left: 8px;
}

.cancel-send-btn:hover {
	background-color: #fa8c16;
	color: white;
	border-color: #fa8c16;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(250, 140, 22, 0.2);
}

.cancel-send-btn:active {
	transform: translateY(0);
}

.cancel-send-btn:disabled {
	background-color: #f5f5f5;
	color: #bfbfbf;
	border-color: #d9d9d9;
	cursor: not-allowed;
	box-shadow: none;
	transform: none !important;
}

.cancel-send-btn:disabled:hover {
	background-color: #f5f5f5;
	color: #bfbfbf;
	border-color: #d9d9d9;
	box-shadow: none;
}

.cancel-send-btn i {
	font-size: 12px;
}

/* 按钮容器调整 */
.delete-btn-container {
	text-align: right;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #eee;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}