/* ===== 全局样式 ===== */
span {
	pointer-events: none;
}
.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
    color: #999;
}
.view-framework-body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
	background: #f5f6fa;
	color: #333;
	min-height: 100%;
	padding: 24px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ===== 页面标题 ===== */
.page-header {
	margin-bottom: 24px;
}

.page-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px 0;
}

.page-desc {
	font-size: 14px;
	color: #888;
	margin: 0;
}

/* ===== 快速操作 ===== */
.quick-actions-rechargerecords {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.action-card {
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.action-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.action-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
}

.action-icon.blue { background: #e8f0fe; }
.action-icon.green { background: #e6f7ed; }

.action-info {
	flex: 1;
}

.action-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.action-desc {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
}

.action-arrow {
	font-size: 20px;
	color: #ccc;
}

/* ===== 统计概览 ===== */
.stats-overview {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.stat-card {
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	align-items: center;
	gap: 16px;
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	flex-shrink: 0;
}

.stat-icon.blue { background: #e8f0fe; }
.stat-icon.green { background: #e6f7ed; }
.stat-icon.orange { background: #fef3e2; }
.stat-icon.red { background: #ffe8e8; }

.stat-info {
	flex: 1;
}

.stat-value {
	font-size: 22px;
	font-weight: 700;
	color: #333;
}

.stat-label {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
}

/* ===== 搜索筛选 ===== */
.search-filter-section {
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	margin-bottom: 20px;
}

.filter-row {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.filter-group {
	flex: 1;
	min-width: 200px;
}

.filter-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	margin-bottom: 6px;
}

.filter-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	outline: none;
	background: #fff;
	cursor: pointer;
}

.filter-select:focus {
	border-color: #667eea;
}

.date-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.date-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	outline: none;
}

.date-input:focus {
	border-color: #667eea;
}

.date-separator {
	color: #999;
	font-size: 14px;
}

.filter-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: #fff;
	box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(102,126,234,0.4);
}

.btn-secondary {
	background: #f8f9fa;
	color: #666;
	border: 1px solid #e8e8e8;
}

.btn-secondary:hover {
	background: #f0f2f5;
}

.btn-export {
	background: #e6f7ed;
	color: #52c41a;
	margin-left: auto;
}

.btn-export:hover {
	background: #d4f0e0;
}

/* ===== 订单列表 ===== */
.orders-section {
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.section-title {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	display: flex;
	align-items: center;
	gap: 8px;
}

.orders-count {
	font-size: 13px;
	color: #999;
}

.orders-count span {
	color: #667eea;
	font-weight: 600;
}

.orders-table-header {
	display: flex;
	padding: 12px 0;
	background: #f8f9fa;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	margin-bottom: 8px;
}

.orders-table-header span {
	padding: 0 12px;
}

.col-id { width: 160px; }
.col-time { width: 170px; }
.col-type { width: 100px; }
.col-face { width: 100px; text-align: right; }
.col-price { width: 110px; text-align: right; }
.col-status { width: 100px; }
.col-action { width: 80px; text-align: center; }

.orders-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.order-item {
	display: flex;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #f5f5f5;
	transition: background 0.3s;
	cursor: pointer;
}

.order-item:hover {
	background: #fafbfc;
	border-radius: 8px;
}

.order-item span {
	padding: 0 12px;
	font-size: 14px;
}

.order-item .col-id {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #667eea;
}

.order-item .col-time {
	color: #333;
	font-size: 13px;
}

.order-item .col-type {
	color: #555;
}

.order-item .col-face {
	font-weight: 600;
	color: #333;
	text-align: right;
}

.order-item .col-price {
	font-weight: 700;
	color: #52c41a;
	text-align: right;
}

.order-item .col-status .status-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
}

.status-badge.success { background: #e6f7ed; color: #52c41a; }
.status-badge.failed { background: #ffe8e8; color: #f5222d; }
.status-badge.pending { background: #fff7e6; color: #fa8c16; }
.status-badge.checking { background: #e8f0fe; color: #667eea; }
.status-badge.cancelled { background: #f5f5f5; color: #999; }

.order-item .col-action .action-btn {
	padding: 4px 12px;
	border: 1px solid #667eea;
	background: transparent;
	color: #667eea;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s;
}

.order-item .col-action .action-btn:hover {
	background: #667eea;
	color: #fff;
}

/* ===== 分页 ===== */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.page-btn {
	width: 36px;
	height: 36px;
	border: 1px solid #e8e8e8;
	background: #fff;
	border-radius: 8px;
	font-size: 14px;
	color: #666;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-btn:hover:not(:disabled) { border-color: #667eea; color: #667eea; }
.page-btn.active { background: #667eea; border-color: #667eea; color: #fff; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.page-numbers { display: flex; gap: 4px; }

.page-info { margin-left: 16px; font-size: 13px; color: #999; }
.page-info span { color: #667eea; font-weight: 600; }

/* ===== 空状态 ===== */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 14px;
}

.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-text { font-size: 18px; font-weight: 600; color: #333; }
.empty-sub { font-size: 14px; color: #999; margin-top: 8px; }

/* ===== 弹窗 ===== */
.modal-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-content {
	background: #fff;
	border-radius: 14px;
	padding: 24px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 16px 48px rgba(0,0,0,0.15);
	animation: modalIn 0.3s ease;
}

@keyframes modalIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.modal-title { font-size: 18px; font-weight: 600; color: #333; }

.modal-close {
	width: 32px; height: 32px;
	border: none; background: #f8f9fa;
	border-radius: 8px; font-size: 16px; color: #666;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.modal-close:hover { background: #f0f2f5; }

.modal-body .detail-row {
	display: flex;
	padding: 10px 0;
	border-bottom: 1px solid #f5f5f5;
}

.modal-body .detail-label {
	width: 120px;
	font-size: 14px;
	color: #888;
}

.modal-body .detail-value {
	flex: 1;
	font-size: 14px;
	color: #333;
	font-weight: 500;
	word-break: break-all;
}

.modal-footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	justify-content: flex-end;
}

/* ===== 核销结果弹窗 ===== */
.recycle-result-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	margin-bottom: 12px;
	border-radius: 8px;
	background: #f6f8ff;
	font-size: 14px;
	color: #333;
}
.recycle-result-summary .summary-count {
	font-weight: 600;
	color: #667eea;
}

.result-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.result-table th,
.result-table td {
	padding: 10px 8px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}
.result-table th {
	color: #888;
	font-weight: 600;
	background: #fafafa;
}
.result-table td.card-no-cell {
	word-break: break-all;
	color: #555;
}
.result-table .status-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
	.view-framework-body { padding: 16px; }

	.quick-actions-rechargerecords { grid-template-columns: 1fr; }
	.stats-overview { grid-template-columns: repeat(2, 1fr); }

	.filter-row { flex-direction: column; gap: 12px; }
	.filter-group { min-width: 100%; }
	.date-range { flex-direction: column; align-items: stretch; }
	.date-separator { text-align: center; }
	.filter-actions { flex-wrap: wrap; }
	.btn-export { margin-left: 0; }

	.orders-table-header { display: none; }

	.order-item { flex-wrap: wrap; gap: 8px; padding: 16px 0; }
	.order-item span { padding: 0 8px; }
	.col-id { width: 100%; font-size: 11px; }
	.col-time { width: 50%; }
	.col-type { width: 50%; }
	.col-face { width: 50%; }
	.col-price { width: 50%; }
	.col-status { width: 100%; }
	.col-action { width: 100%; text-align: center; }

	.pagination { flex-wrap: wrap; }
}