/* FinTide金融数据库 - 专业商业风格 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #0f172a;
	--primary-light: #1e3a5f;
	--accent-color: #2563eb;
	--accent-hover: #1d4ed8;
	--bg-color: #f1f5f9;
	--white: #ffffff;
	--text-color: #1e293b;
	--text-secondary: #64748b;
	--border-color: #e2e8f0;
	--success-color: #2563eb;
	--warning-color: #f59e0b;
	--danger-color: #ef4444;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	font-size: 14px;
}

/* 登录页面 */
.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.login-box {
	background: var(--white);
	padding: 50px 40px;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 420px;
}

.login-box h1 {
	text-align: center;
	color: var(--primary-color);
	margin-bottom: 40px;
	font-size: 26px;
}

/* 主容器 */
.main-container {
	display: flex;
	min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
	width: 220px;
	background: var(--primary-color);
	color: var(--white);
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
}

.sidebar-header {
	padding: 20px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h2 {
	font-size: 20px;
	font-weight: 600;
}

.sidebar-header .version {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav {
	padding: 8px 0;
}

/* 导航项 */
.nav-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 13px;
	transition: all 0.15s;
}

.nav-item a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--white);
}

.nav-item.active a {
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
}

.nav-icon {
	width: 18px;
	height: 18px;
	opacity: 0.7;
	flex-shrink: 0;
}

.nav-item.active .nav-icon {
	opacity: 1;
}

/* 导航分组 */
.nav-group {
	margin-top: 4px;
}

.nav-group-title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s;
}

.nav-group-title:hover {
	background: rgba(255, 255, 255, 0.04);
	color: var(--white);
}

.nav-group-title .arrow {
	width: 16px;
	height: 16px;
	margin-left: auto;
	transition: transform 0.2s;
	transform: rotate(180deg);
}

.nav-group-items {
	display: none;
	background: rgba(0, 0, 0, 0.15);
}

.nav-group-items.show {
	display: block;
}

.nav-group-items .nav-item a {
	padding-left: 44px;
	font-size: 13px;
}

.nav-logout {
	margin-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 8px;
}

/* 主内容区 */
.main-content {
	flex: 1;
	margin-left: 220px;
	padding: 24px;
	min-height: 100vh;
}

/* 页面头部 */
.page-header {
	margin-bottom: 24px;
}

.page-header h1 {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 4px;
}

.page-header p {
	color: var(--text-secondary);
	font-size: 13px;
}

/* 三栏布局（类似iFinD） - 数据区域为主 */
.ifind-layout {
	display: grid;
	grid-template-columns: 240px minmax(300px, 480px) 1fr;
	gap: 12px;
	height: calc(100vh - 120px);
}

.ifind-layout-2col {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 16px;
	height: calc(100vh - 140px);
}

/* 面板 */
.panel {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.panel-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-color);
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

.panel-header h3 {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-color);
}

.panel-header .count {
	font-size: 12px;
	color: var(--text-secondary);
	background: var(--border-color);
	padding: 2px 8px;
	border-radius: 10px;
}

.panel-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
}

.panel-footer {
	padding: 12px 16px;
	border-top: 1px solid var(--border-color);
	background: #f8fafc;
	flex-shrink: 0;
}

/* 搜索框 */
.search-box {
	position: relative;
	margin-bottom: 12px;
}

.search-box input {
	width: 100%;
	padding: 8px 12px 8px 32px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 13px;
}

.search-box input:focus {
	outline: none;
	border-color: var(--accent-color);
}

.search-box svg {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	color: var(--text-secondary);
}

/* 树形列表 */
.tree-list {
	font-size: 13px;
}

.tree-item {
	border-bottom: 1px solid #f1f5f9;
}

.tree-item:last-child {
	border-bottom: none;
}

.tree-item-header {
	display: flex;
	align-items: center;
	padding: 8px 4px;
	cursor: pointer;
	transition: background 0.1s;
}

.tree-item-header:hover {
	background: #f8fafc;
}

.tree-item-header .toggle {
	width: 16px;
	height: 16px;
	margin-right: 6px;
	color: var(--text-secondary);
	transition: transform 0.15s;
}

.tree-item-header.expanded .toggle {
	transform: rotate(90deg);
}

.tree-item-header .label {
	flex: 1;
}

.tree-item-children {
	display: none;
	padding-left: 22px;
}

.tree-item-children.show {
	display: block;
}

/* 指标选择 */
.indicator-group {
	margin-bottom: 16px;
}

.indicator-group-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	padding: 6px 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 8px;
}

.indicator-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.indicator-item {
	display: flex;
	align-items: center;
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.1s;
}

.indicator-item:hover {
	background: #f1f5f9;
}

.indicator-item.selected {
	background: rgba(37, 99, 235, 0.08);
}

.indicator-item input[type="checkbox"] {
	margin-right: 8px;
	width: 14px;
	height: 14px;
}

.indicator-item .name {
	font-size: 13px;
	flex: 1;
}

.indicator-item .code {
	font-size: 11px;
	color: var(--text-secondary);
	font-family: monospace;
}

/* 技术指标参数 */
.indicator-item .tech-param {
	font-size: 10px;
	color: #6366f1;
	font-family: monospace;
	margin-left: 4px;
	padding: 1px 4px;
	background: rgba(99, 102, 241, 0.1);
	border-radius: 3px;
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.indicator-item .btn-config {
	margin-left: 4px;
	padding: 2px 6px;
	font-size: 12px;
	background: transparent;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.15s;
}

.indicator-item .btn-config:hover {
	opacity: 1;
	background: #f1f5f9;
	border-color: #6366f1;
}

.indicator-item.tech-indicator {
	background: rgba(99, 102, 241, 0.03);
}

.indicator-item.tech-indicator.selected {
	background: rgba(99, 102, 241, 0.1);
}

/* 已选择标签 */
.selected-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 32px;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: var(--accent-color);
	color: var(--white);
	border-radius: 4px;
	font-size: 12px;
}

.tag .remove {
	cursor: pointer;
	opacity: 0.7;
	font-size: 14px;
}

.tag .remove:hover {
	opacity: 1;
}

/* 参数表单 */
.param-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.param-group {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.param-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.param-item.full {
	grid-column: span 2;
}

.param-item label {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-color);
}

.param-item label .required {
	color: var(--danger-color);
}

.param-item input,
.param-item select,
.param-item textarea {
	padding: 8px 10px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 13px;
}

.param-item input:focus,
.param-item select:focus,
.param-item textarea:focus {
	outline: none;
	border-color: var(--accent-color);
}

/* 结果区域 */
.result-panel {
	display: flex;
	flex-direction: column;
}

.result-toolbar {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-color);
	background: #f8fafc;
}

.result-info {
	display: flex;
	gap: 20px;
	padding: 10px 16px;
	background: #fafafa;
	border-bottom: 1px solid var(--border-color);
	font-size: 12px;
}

.result-info-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.result-info-item .label {
	color: var(--text-secondary);
}

.result-info-item .value {
	font-weight: 600;
}

.result-content {
	flex: 1;
	overflow: auto;
	padding: 12px;
}

.result-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.result-table th,
.result-table td {
	padding: 8px 12px;
	text-align: left;
	border: 1px solid var(--border-color);
	white-space: nowrap;
}

.result-table th {
	background: #f8fafc;
	font-weight: 600;
	position: sticky;
	top: 0;
}

.result-table tr:hover {
	background: #f8fafc;
}

/* 代码预览 */
.code-preview {
	background: #1e293b;
	color: #e2e8f0;
	padding: 16px;
	border-radius: 6px;
	font-family: 'Monaco', 'Consolas', monospace;
	font-size: 12px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
}

/* 按钮 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}

.btn-primary {
	background: var(--accent-color);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--accent-hover);
}

.btn-secondary {
	background: var(--white);
	color: var(--text-color);
	border: 1px solid var(--border-color);
}

.btn-secondary:hover {
	background: #f8fafc;
}

.btn-success {
	background: var(--success-color);
	color: var(--white);
}

.btn-sm {
	padding: 5px 10px;
	font-size: 12px;
}

.btn-follow {
	background: #f0f0f0;
	color: #666;
	border: 1px solid #ddd;
}

.btn-follow:hover {
	background: #e8e8e8;
}

.btn-follow.followed {
	background: #fff3e0;
	color: #f57c00;
	border-color: #ffcc80;
}

.btn-follow.followed:hover {
	background: #ffe0b2;
}

.btn-block {
	width: 100%;
}

/* 徽章 */
.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
}

.badge-success {
	background: rgba(5, 150, 105, 0.1);
	color: var(--success-color);
}

.badge-warning {
	background: rgba(217, 119, 6, 0.1);
	color: var(--warning-color);
}

.badge-danger {
	background: rgba(220, 38, 38, 0.1);
	color: var(--danger-color);
}

.badge-info {
	background: rgba(6, 182, 212, 0.1);
	color: #0891b2;
}

.badge-primary {
	background: rgba(37, 99, 235, 0.1);
	color: var(--accent-color);
}

/* 表单样式 */
.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: var(--text-color);
	font-size: 13px;
}

.form-control {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.form-control:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
	resize: vertical;
	min-height: 80px;
}

/* 按钮危险样式 */
.btn-danger {
	background: var(--danger-color);
	color: var(--white);
}

.btn-danger:hover {
	background: #dc2626;
}

/* 卡片详细样式 */
.card-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-color);
	background: #fafafa;
}

.card-header h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 15px;
}

.card-body {
	padding: 20px;
}

/* 数据表格 */
.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.data-table th,
.data-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

.data-table th {
	background: #f8fafc;
	font-weight: 600;
	color: var(--text-color);
	white-space: nowrap;
}

.data-table tr:hover {
	background: #f8fafc;
}

.data-table td a {
	color: var(--accent-color);
	text-decoration: none;
}

.data-table td a:hover {
	text-decoration: underline;
}

/* 卡片 */
.card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 16px;
}

.card h3 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

/* ==================== 工作台样式 ==================== */
.dashboard-container {
	width: 100%;
	max-width: none;
	margin: 0;
}

.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e2e8f0;
}

.dashboard-title h1 {
	font-size: 26px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
	padding: 0;
	border: none;
}

.dashboard-subtitle {
	font-size: 14px;
	color: #64748b;
}

.dashboard-time {
	font-size: 14px;
	color: #64748b;
	font-family: 'SF Mono', 'Consolas', monospace;
	background: #f1f5f9;
	padding: 8px 16px;
	border-radius: 8px;
}

/* 核心指标卡片 */
.dashboard-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 24px;
}

.metric-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
	transition: all 0.2s;
}

.metric-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.metric-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.metric-icon svg {
	width: 28px;
	height: 28px;
}

.metric-card.metric-primary .metric-icon {
	background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
	color: #fff;
}

.metric-card.metric-info .metric-icon {
	background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
	color: #fff;
}

.metric-card.metric-data .metric-icon {
	background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
	color: #fff;
}

.metric-content {
	flex: 1;
}

.metric-value {
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.metric-label {
	font-size: 14px;
	color: #64748b;
	margin-top: 4px;
}

/* 面板卡片 */
.dashboard-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 24px;
}

.panel-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

.panel-card.panel-full {
	grid-column: 1 / -1;
}

.panel-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.panel-header svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.panel-refresh-btn {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
}

.panel-refresh-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.panel-refresh-btn svg {
	width: 14px;
	height: 14px;
}

.panel-body {
	padding: 20px;
}

/* 状态网格 */
.status-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.status-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 16px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.status-label {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 8px;
}

.status-value {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.status-value.status-active {
	color: #2563eb;
}

.status-value.status-inactive {
	color: #94a3b8;
}

/* Token网格 */
.token-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.token-item {
	padding: 16px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	text-align: center;
}

.token-label {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 8px;
}

.token-value {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

/* 快捷操作 */
.quick-actions {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.quick-action-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 16px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: all 0.2s;
}

.quick-action-item:hover {
	background: #e0f2fe;
	border-color: #2563eb;
	transform: translateY(-2px);
}

.quick-action-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #1e3a5f 0%, #334155 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.quick-action-icon svg {
	width: 24px;
	height: 24px;
}

.quick-action-item span {
	font-size: 14px;
	font-weight: 500;
	color: #334155;
}

/* 加载占位 */
.loading-placeholder {
	text-align: center;
	padding: 30px;
	color: #94a3b8;
	font-size: 14px;
}

/* 数据量卡片 */
.volume-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

.volume-card {
	padding: 20px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	text-align: center;
	transition: all 0.2s;
}

.volume-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.volume-card .volume-label {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 8px;
}

.volume-card .volume-value {
	font-size: 24px;
	font-weight: 700;
	color: #2563eb;
	margin-bottom: 6px;
}

.volume-card .volume-progress {
	font-size: 12px;
	color: #94a3b8;
}

/* 统计卡片 - 保留旧版兼容 */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.stat-card {
	background: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 20px;
}

.stat-card .label {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.stat-card .value {
	font-size: 28px;
	font-weight: 600;
	color: var(--text-color);
}

/* 表格 */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

table th,
table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

table th {
	background: #f8fafc;
	font-weight: 600;
}

/* 模态框 */
.modal {
	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: var(--white);
	border-radius: 8px;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
}

.modal-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	font-size: 16px;
	margin: 0;
	padding: 0;
	border: none;
}

.modal-close {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 4px;
	font-size: 20px;
}

.modal-close:hover {
	background: #f1f5f9;
}

.modal-body {
	padding: 20px;
}

.modal-footer {
	padding: 16px 20px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* 提示 */
.alert {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 13px;
}

.alert-warning {
	background: rgba(217, 119, 6, 0.1);
	color: #92400e;
	border: 1px solid rgba(217, 119, 6, 0.2);
}

.alert-success {
	background: rgba(5, 150, 105, 0.1);
	color: var(--success-color);
}

.alert-error {
	background: rgba(220, 38, 38, 0.1);
	color: var(--danger-color);
}

/* 复制字段 */
.copy-field {
	display: flex;
	gap: 8px;
}

.copy-field input {
	flex: 1;
	font-family: monospace;
}

/* 加载中 */
.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: var(--text-secondary);
}

/* 空状态 */
.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: var(--text-secondary);
}

.empty p {
	margin-top: 8px;
}

/* 滚动条 */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* 响应式 */
@media (max-width: 1600px) {
	.ifind-layout {
		grid-template-columns: 220px minmax(280px, 400px) 1fr;
	}
}

@media (max-width: 1400px) {
	.ifind-layout {
		grid-template-columns: 200px 350px 1fr;
	}
}

@media (max-width: 1200px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.ifind-layout {
		grid-template-columns: 1fr;
		height: auto;
	}
}

/* 数据分析页面样式 */
.stat-card {
	background: var(--white);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card .stat-value {
	font-size: 2rem;
	font-weight: bold;
	color: var(--text-color);
}

.stat-card .stat-label {
	color: var(--text-secondary);
	margin-top: 5px;
	font-size: 13px;
}

/* 标签页 */
.tabs {
	display: flex;
	gap: 5px;
	margin-bottom: 20px;
	background: var(--white);
	padding: 5px;
	border-radius: 8px;
}

.tab-btn {
	padding: 10px 20px;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 6px;
	font-size: 14px;
	color: var(--text-secondary);
	transition: all 0.2s;
}

.tab-btn:hover {
	background: var(--bg-color);
}

.tab-btn.active {
	background: var(--accent-color);
	color: white;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* 文件上传区域 */
.file-upload-area {
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
}

.file-upload-area:hover {
	border-color: var(--accent-color);
	background: rgba(37, 99, 235, 0.02);
}

.upload-placeholder {
	color: var(--text-secondary);
}

.upload-placeholder svg {
	margin-bottom: 10px;
	opacity: 0.5;
}

.upload-placeholder p {
	margin-bottom: 5px;
}

#selected-file-name {
	color: var(--accent-color);
	font-weight: 500;
}

/* 空状态 */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-secondary);
}

.empty-state svg {
	margin-bottom: 15px;
}

.empty-state p {
	margin-bottom: 20px;
}

/* 详情表格 */
.detail-table {
	width: 100%;
	border-collapse: collapse;
}

.detail-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-color);
}

.detail-table td:first-child {
	color: var(--text-secondary);
	width: 120px;
}

/* 标签 */
.tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	background: var(--bg-color);
	color: var(--text-secondary);
	margin: 3px;
}

.tag.tag-active {
	background: var(--accent-color);
	color: white;
}

/* 比值项 */
.ratio-item {
	background: var(--bg-color);
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.ratio-item .ratio-value {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--accent-color);
}

.ratio-item .ratio-label {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 5px;
}

/* 详情区块 */
.detail-section {
	background: var(--bg-color);
	border-radius: 8px;
	padding: 20px;
}

.detail-section h4 {
	margin-bottom: 15px;
	color: var(--text-color);
	font-size: 14px;
	font-weight: 600;
}

/* 条件组 */
.condition-group {
	background: var(--bg-color);
	border-radius: 8px;
	padding: 15px;
}

.condition-group h4 {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--text-color);
}

.condition-group label {
	display: block;
	margin-bottom: 8px;
	cursor: pointer;
	font-size: 13px;
}

.condition-group input[type="checkbox"],
.condition-group input[type="radio"] {
	margin-right: 8px;
}

.form-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.form-inline label {
	margin-bottom: 0;
	white-space: nowrap;
}

/* 回测统计 */
.backtest-stats .stat-item {
	background: var(--bg-color);
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.backtest-stats .stat-item .stat-value {
	font-size: 1.5rem;
	font-weight: bold;
}

.backtest-stats .stat-item .stat-label {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 5px;
}

/* 前5天表格 */
.prev5days-table {
	overflow-x: auto;
}

.prev5days-table .detail-table th,
.prev5days-table .detail-table td {
	text-align: center;
	min-width: 80px;
}

/* 筛选器 */
.filters {
	display: flex;
	gap: 10px;
	align-items: center;
}

.filters select {
	padding: 6px 12px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 13px;
}

/* 等级分析样式 */
.analysis-section {
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.analysis-section h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
	font-size: 16px;
	border-bottom: 2px solid #2196F3;
	padding-bottom: 8px;
}

.detail-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.detail-table th,
.detail-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.detail-table th {
	background: #f5f5f5;
	font-weight: 600;
	color: #555;
}

.detail-table tr:hover {
	background: #f9f9f9;
}

.detail-table tr:last-child td {
	border-bottom: none;
}

/* Tab样式 */
.tab-item {
	padding: 10px 20px;
	cursor: pointer;
	color: var(--text-secondary);
	border-bottom: 2px solid transparent;
	transition: all 0.2s;
	font-weight: 500;
}

.tab-item:hover {
	color: var(--accent-color);
}

.tab-item.active {
	color: var(--accent-color);
	border-bottom-color: var(--accent-color);
}

.tab-content {
	padding: 0;
}

/* 按钮样式补充 */
.btn-warning {
	background: #f59e0b;
	color: white;
	border: none;
}

.btn-warning:hover {
	background: #d97706;
}

.btn-danger {
	background: #ef4444;
	color: white;
	border: none;
}

.btn-danger:hover {
	background: #dc2626;
}

/* 游资详情时间范围按钮 */
.hm-range-btn {
	padding: 8px 16px;
	font-size: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	color: #64748b;
	font-weight: 500;
}

.hm-range-btn:hover {
	border-color: #2563eb;
	color: #2563eb;
	background: #f0f9ff;
}

.hm-range-btn.active {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border-color: #2563eb;
	color: #fff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ==================== 弹窗覆盖层样式 ==================== */
/* 全屏弹窗样式（用于游资、龙虎榜等页面） */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 220px;
	right: 0;
	bottom: 0;
	width: calc(100vw - 220px);
	height: 100vh;
	background: #f8fafc;
	z-index: 1000;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* 小弹窗样式（居中显示） */
.modal-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1001;
	overflow: hidden;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-popup .modal {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	max-width: 90vw;
	max-height: 85vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-popup .modal-header {
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.modal-popup .modal-header h3 {
	margin: 0;
	font-size: 16px;
	color: #1f2937;
}

.modal-popup .modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #6b7280;
	padding: 0;
	line-height: 1;
}

.modal-popup .modal-close:hover {
	color: #ef4444;
}

.modal-popup .modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

/* 弹窗内容盒子 */
.modal-box {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	background: #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
}

.modal-box .modal-header {
	padding: 12px 20px;
	border-bottom: none;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #334155 100%);
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.modal-box .modal-header h3 {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

.modal-box .modal-close {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 6px;
	font-size: 24px;
	color: rgba(255, 255, 255, 0.9);
	transition: all 0.2s;
	background: rgba(255, 255, 255, 0.1);
}

.modal-box .modal-close:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.modal-box .modal-body {
	padding: 16px !important;
	overflow-y: auto !important;
	flex: 1 !important;
	background: #f8fafc !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* 弹窗内统计卡片 */
.modal-stats-row {
	display: flex !important;
	gap: 12px !important;
	margin-bottom: 16px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.modal-stat-card {
	flex: 1;
	background: #fff;
	padding: 12px 16px;
	border-radius: 10px;
	text-align: center;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: all 0.2s;
}

.modal-stat-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.modal-stat-card .stat-label {
	font-size: 12px;
	color: #64748b;
	margin-bottom: 4px;
	font-weight: 500;
}

.modal-stat-card .stat-value {
	font-size: 22px;
	font-weight: 700;
}

.modal-stat-card .stat-value.red { color: #dc2626; }
.modal-stat-card .stat-value.blue { color: #2563eb; }
.modal-stat-card .stat-value.dark { color: #1e293b; }

/* 弹窗内容区块 */
.modal-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin-bottom: 0;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal-section-title {
	padding: 10px 16px;
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-bottom: none;
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.modal-section-title .icon {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
}

.modal-section-content {
	padding: 12px 16px;
	max-height: none;
	overflow-y: auto;
}

/* 弹窗内三栏布局 */
.modal-three-columns {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1fr !important;
	gap: 16px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

@media (max-width: 1200px) {
	.modal-three-columns {
		grid-template-columns: 1fr !important;
	}
}

/* 弹窗内表格样式 */
.modal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.modal-table th,
.modal-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}

.modal-table th {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.modal-table tr:hover {
	background: #f1f5f9;
}

.modal-table tr.date-row {
	background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
	font-weight: 700;
}

.modal-table tr.date-row td {
	border-bottom: 1px solid #cbd5e1;
	font-size: 14px;
}

/* 股票汇总项 */
.stock-summary-item {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
	transition: all 0.2s;
}

.stock-summary-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stock-summary-header {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: #f8fafc;
	cursor: pointer;
	gap: 12px;
}

.stock-summary-header:hover {
	background: #f1f5f9;
}

.stock-summary-header .toggle-icon {
	color: #94a3b8;
	font-size: 10px;
	transition: transform 0.2s;
	width: 16px;
}

.stock-summary-header .toggle-icon.open {
	transform: rotate(90deg);
}

.stock-summary-header .stock-code {
	font-weight: 600;
	color: #1e293b;
	min-width: 100px;
}

.stock-summary-header .stock-name {
	color: #64748b;
	font-size: 12px;
}

.stock-summary-header .summary-stats {
	margin-left: auto;
	display: flex;
	gap: 16px;
	font-size: 12px;
}

.stock-summary-detail {
	display: none;
	padding: 12px 16px 12px 44px;
	background: #fff;
	border-top: 1px solid #f1f5f9;
}

.stock-summary-detail.show {
	display: block;
}

.stock-trade-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f8fafc;
	font-size: 12px;
}

.stock-trade-row:last-child {
	border-bottom: none;
}

/* 历史统计面板 */
.history-stats-panel {
	background: #fff;
	border-radius: 12px;
	padding: 0;
	height: 100%;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.history-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.history-stat-item {
	background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
	padding: 18px 14px;
	border-radius: 10px;
	text-align: center;
	border: 1px solid #e2e8f0;
	transition: all 0.2s;
}

.history-stat-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.history-stat-item .label {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 6px;
	font-weight: 500;
}

.history-stat-item .value {
	font-size: 22px;
	font-weight: 800;
}

/* TOP股票列表 */
.top-stocks-list {
	max-height: 260px;
	overflow-y: auto;
}

.top-stock-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
	transition: background 0.15s;
}

.top-stock-item:hover {
	background: #f8fafc;
}

.top-stock-item .stock-info {
	display: flex;
	gap: 10px;
	align-items: center;
}

.top-stock-item .stock-code {
	font-weight: 700;
	color: #1e293b;
	font-size: 14px;
}

.top-stock-item .stock-name {
	color: #64748b;
	font-size: 13px;
}

.top-stock-item .count {
	color: #64748b;
	font-size: 13px;
}

.top-stock-item .net-amount {
	font-weight: 700;
	font-size: 14px;
}

/* 标签样式 */
.trade-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
}

.trade-tag.first {
	background: #fef3c7;
	color: #d97706;
}

.trade-tag.count {
	background: #f1f5f9;
	color: #64748b;
}

/* 开关样式 */
.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: 0.3s;
	border-radius: 26px;
}

.switch .slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
	background-color: #3b82f6;
}

.switch input:checked + .slider:before {
	transform: translateX(24px);
}
