/* ===== 全局样式 ===== */
.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;
}

/* ===== 搜索筛选 ===== */
.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;
}

.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;
	transition: border-color 0.3s;
}

.date-input:focus {
	border-color: #667eea;
}

.date-separator {
	color: #999;
	font-size: 14px;
}

.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;
}

.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;
}

/* ===== 统计概览 ===== */
.stats-overview {
	display: grid;
	grid-template-columns: repeat(3, 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-info {
	flex: 1;
}

.stat-value {
	font-size: 22px;
	font-weight: 700;
	color: #333;
}

.stat-label {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
}

/* ===== 记录列表 ===== */
.records-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;
}

.records-count {
	font-size: 13px;
	color: #999;
}

.records-count span {
	color: #667eea;
	font-weight: 600;
}

.records-table-header {
	display: flex;
	padding: 12px 0;
	background: #f8f9fa;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	margin-bottom: 8px;
}

.records-table-header span {
	padding: 0 12px;
}

.col-id { width: 60px; text-align: center; }
.col-time { width: 180px; }
.col-amount { width: 130px; text-align: right; }
.col-network { width: 110px; }
.col-status { width: 100px; }
.col-address { flex: 1; min-width: 0; }
.col-action { width: 50px; text-align: center; }

.records-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.record-item {
	display: flex;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #f5f5f5;
	transition: background 0.3s;
	cursor: pointer;
}

.record-item:hover {
	background: #fafbfc;
	border-radius: 8px;
}

.record-item span {
	padding: 0 12px;
	font-size: 14px;
}

.record-item .col-id { color: #999; }
.record-item .col-time { color: #333; }

.record-item .col-amount {
	font-weight: 600;
	color: #333;
	text-align: right;
}

.record-item .col-network { color: #555; }

.record-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: #fef3e2;
	color: #fa8c16;
}

.record-item .col-address {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #999;
}

.record-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;
}

.record-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;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
	.view-framework-body { padding: 16px; }

	.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; }

	.stats-overview { grid-template-columns: 1fr; }
	.records-table-header { display: none; }

	.record-item { flex-wrap: wrap; gap: 8px; padding: 16px 0; }
	.record-item span { padding: 0 8px; }
	.col-id { width: auto; }
	.col-time { width: 100%; order: -1; font-weight: 600; }
	.col-amount { width: auto; }
	.col-network { width: auto; }
	.col-status { width: auto; }
	.col-address { width: 100%; font-size: 11px; }
	.col-action { width: auto; }

	.pagination { flex-wrap: wrap; }
}