
html,
body {
	height: 100%;
}

:root {
	--bg0: #e0f7fa;
	--bg1: #fff8e1;
	--text: #004d40;
	--muted: #5d6d64;
	--border: rgba(0, 77, 64, 0.08);
	--card-bg: #ffffff;
	--card-bg-strong: #ffffff;
	--primary: #00695c;
	--primary-weak: rgba(0, 105, 92, 0.08);
	--danger: #d32f2f;
	--success: #2e7d32;
	--radius: 24px;
	--radius-sm: 16px;
	--shadow: 0 12px 32px rgba(0, 77, 64, 0.08);
	--shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 'PingFang SC',
		'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
	background: linear-gradient(135deg, var(--bg0) 0%, #f1f8e9 50%, var(--bg1) 100%);
	color: var(--text);
	min-height: 100vh;
}

body.modal-open {
	overflow: hidden;
}

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 14px 14px 20px;
	box-sizing: border-box;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 8px 0 10px;
}

.site-header .container.header-container {
	padding-top: 0;
	padding-bottom: 0;
}

/* Header 两行布局：第一行 logo+右侧 logo，第二行 海南岛食用农产品 + 数据日期 */
.topbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 2px;
	position: relative;
}

.topbar-row {
	display: flex;
	align-items: center;
	min-width: 0;
}

.topbar-row-1 {
	justify-content: space-between;
}

.topbar-row-2 {
	justify-content: flex-start;
	gap: 14px;
	flex-wrap: wrap;
}

/* 桌面端：主标题挪到第一行中间，与海食链同一行 */
@media (min-width: 769px) {
	.topbar-row-2 {
		position: relative;
		min-height: 2em;
	}
	.topbar-row-2 .brand-title {
		position: absolute;
		left: 50%;
		top: -48px;
		transform: translate(-50%, 0);
		white-space: nowrap;
		pointer-events: none;
	}
}

.topbar-left {
	width: auto;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.logo-coop {
	height: 60px;
	width: 180px;
	object-fit: contain;
}

.topbar-center {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.brand-title {
	font-size: 22px;
	font-weight: 800;
	color: #004d40;
	margin: 0;
	letter-spacing: 1px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.05);
	line-height: 1.3;
	word-break: keep-all;
}

.brand-sub {
	font-size: 13px;
	color: #00695c;
	background: rgba(0, 77, 64, 0.08);
	padding: 6px 16px;
	border-radius: 99px;
	display: inline-block;
	font-weight: 500;
}

.topbar-right,
.topbar-right-row1 {
	width: auto;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
}

.logo-haikou {
	height: 32px;
	margin-bottom: 0;
	object-fit: contain;
}

/* 小屏（H5/手机）下头部收紧 */
@media (max-width: 768px) {
	.site-header {
		padding: 10px 0 12px;
	}
	.header-container.container {
		padding-left: 12px;
		padding-right: 12px;
	}
	.logo-coop {
		height: 48px;
		width: 140px;
	}
	.brand-title {
		font-size: 18px;
	}
	.topbar-row-2 {
		justify-content: flex-start;
	}
	.brand-sub {
		font-size: 12px;
		padding: 5px 12px;
	}
	.logo-haikou {
		height: 28px;
	}
}

.admin-btn-mini {
	font-size: 11px;
	color: #fff;
	padding: 4px 10px;
	border-radius: 10px;
	background: linear-gradient(90deg, #4db6ac, #26a69a);
	border: none;
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 2px 6px rgba(38, 166, 154, 0.3);
	font-weight: 600;
}

.admin-btn-mini:hover {
	color: #fff;
	background: linear-gradient(90deg, #26a69a, #00897b);
	transform: translateY(-1px);
}

/* Restored Generic Styles */
.card {
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: none;
	padding: 24px;
	margin-bottom: 24px;
	transition: transform 0.2s;
	animation: fadeIn 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }

.card:active {
	transform: scale(0.995);
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.section-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text);
	padding-left: 10px;
	border-left: 4px solid #26a69a;
	line-height: 1.2;
}

.muted {
	color: var(--muted);
	font-size: 13px;
}

.btn {
	cursor: pointer;
	border: none;
	background: #fff;
	border: 1px solid var(--border);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--text);
}

.btn.primary {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

.btn.danger {
    background: #fff;
    color: var(--danger);
    border-color: rgba(211, 47, 47, 0.3);
}
.btn.danger:hover {
    background: #fee2e2;
}
.btn.small {
    padding: 2px 8px;
    font-size: 12px;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Global Bar */
.globalbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 0 4px;
	gap: 12px;
	flex-wrap: wrap;
}
.globalbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	min-width: 0;
}
.globalbar-right {
	flex-shrink: 0;
}
/* 顶部右侧按钮（如「多维度分析」）直接设深色，覆盖 .btn 的 color: var(--text)，避免浅色主题下白字看不清 */
.globalbar-right .btn {
	white-space: nowrap;
	color: #0d0d0d;
	font-weight: 700;
}
.globalbar-title {
	font-weight: 700;
	font-size: 18px;
	color: #1c6b57;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

/* Tabs */
.tabs {
	display: flex;
	gap: 12px;
    flex-wrap: wrap;
}
.tab {
	padding: 8px 20px;
	border-radius: 50px;
	background: #e8f5e9;
	cursor: pointer;
	font-size: 14px;
    font-weight: 600;
    color: #4d7c6e;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.tab:hover {
    background: #dcedc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.tab.active {
	background: #1c6b57;
	color: #ffffff;
	border-color: #1c6b57;
	box-shadow: 0 4px 12px rgba(28, 107, 87, 0.3);
}
#haikouChartSwitch.tabs .tab {
	white-space: nowrap;
}

/* Broadcast */
.broadcast {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(120deg, #ffffff 0%, #f1f8e9 100%);
}
.broadcast .index {
	font-size: 36px;
	font-weight: 800;
	color: #2e7d32;
	text-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}
.broadcast .change {
	font-size: 14px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 6px;
	background: #f1f8e9;
	display: inline-block;
	margin-top: 4px;
}
.change.up { color: #d32f2f; background: #ffebee; }
.change.down { color: #2e7d32; background: #e8f5e9; }

/* Headline */
.headline {
	position: relative;
	display: flex;
	justify-content: space-between;
    /* Added styles */
    padding-left: 44px;
    align-items: center;
    min-height: 80px;
	background: linear-gradient(135deg, #ffffff 0%, #e0f2f1 100%);
}
.headline-title {
	font-size: 14px;
	color: #546e7a;
	font-weight: 600;
}
.headline-value {
	font-size: 40px;
	font-weight: 900;
	color: #00695c;
	margin: 4px 0;
	text-shadow: 0 4px 8px rgba(0, 105, 92, 0.15);
}

/* Added Help Button Styles */
.help {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.help:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.1);
}

/* Added Headline Right Styles */
.headline-right {
    width: 200px;
    height: 64px;
    flex-shrink: 0;
}

.spark {
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .headline-right {
        display: none;
    }
}

/* Charts */
.chart {
	width: 100%;
	height: 300px;
}
.grid.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 768px) {
	.grid.two { grid-template-columns: 1fr; }
}

/* Split */
.split {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

/* 价格主趋势 */
.card-trend .trend-header {
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.card-trend .trend-title-block {
	min-width: 0;
}
.card-trend .trend-title {
	margin: 0 0 4px;
}
.card-trend .trend-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	flex-wrap: wrap;
}
.card-trend .trend-controls-divider {
	width: 1px;
	height: 20px;
	background: rgba(0, 77, 64, 0.12);
	flex-shrink: 0;
}
.card-trend .trend-tabs {
	gap: 6px;
}
.card-trend .trend-tabs .tab {
	padding: 6px 14px;
	font-size: 13px;
	white-space: nowrap;
}
.card-trend .trend-chart {
	margin-top: 4px;
	height: 280px;
}

/* 蔬菜价格列表 */
.card-veg-list .veg-list-head {
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.card-veg-list .veg-list-title {
	min-width: 0;
}
.card-veg-list .veg-range-tabs {
	flex-shrink: 0;
	flex-wrap: nowrap;
}
.card-veg-list .veg-range-tabs .tab {
	white-space: nowrap;
	padding: 6px 14px;
	font-size: 13px;
}
.card-veg-list .veg-cat-block {
	margin-top: 10px;
}
.card-veg-list .veg-cat-title {
	margin: 0 0 8px;
}
.card-veg-list .veg-cat-tabs {
	flex-wrap: wrap;
	gap: 10px;
}
.card-veg-list .veg-cat-tabs .tab {
	white-space: nowrap;
	padding: 8px 18px;
}

/* Top Changes */
.top-changes-scroll {
	width: 100%;
	overflow-x: auto;
	white-space: nowrap;
	padding-bottom: 4px;
	/* Hide scrollbar */
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.top-changes-scroll::-webkit-scrollbar {
	display: none;
}
.change-card {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border: 1px solid rgba(238, 242, 246, 0.8);
	border-radius: 12px;
	padding: 12px 16px;
	margin-right: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	min-width: 200px;
}
.cc-icon {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	flex-shrink: 0;
	font-size: 24px;
	overflow: hidden;
}
.cc-icon .cc-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cc-info {
	display: flex;
	flex-direction: column;
}
.cc-name {
	font-size: 14px;
	color: #4a5563;
	font-weight: 500;
}
.cc-value {
	font-size: 18px;
	color: #102a43;
	font-weight: 700;
	margin: 2px 0;
}
.cc-change-row {
	display: flex;
	align-items: center;
	font-size: 12px;
	font-weight: 500;
}
.cc-change.up { color: #17b26a; }
.cc-change.down { color: #f04438; }

/* Modal */
.modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
}
.modal-mask {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.4);
}
.modal-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	width: 90%;
	max-width: 400px;
	z-index: 101;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
}
.modal-actions {
	margin-top: 24px;
	text-align: right;
    flex-shrink: 0;
}
.modal-price .modal-card {
    max-width: 600px;
}

/* Drawer */
.drawer {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 100;
	visibility: hidden;
}
.drawer.open { visibility: visible; }
.drawer-mask {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.4);
	opacity: 0;
	transition: opacity 0.3s;
}
.drawer.open .drawer-mask { opacity: 1; }
.drawer-panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 85%;
	max-width: 400px;
	background: #fbfdfc;
	transform: translateX(100%);
	transition: transform 0.3s;
	display: flex;
	flex-direction: column;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head {
	padding: 16px;
	border-bottom: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
}

/* Smart List Styles - Restored */
.smartlist {
	margin-top: 12px;
}

.smartrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid rgba(238, 242, 246, 0.6);
}

.smartrow:last-child {
	border-bottom: none;
}

.smart-img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #f5f5f5;
	object-fit: cover;
	flex-shrink: 0;
	margin-right: 12px;
}

.smart-left {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.smart-name {
	font-size: 16px;
	font-weight: 600;
	color: #263238;
}

.smart-meta {
	font-size: 12px;
	color: #90a4ae;
	margin-top: 2px;
}

.smart-mid {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

.smart-price {
	font-size: 18px;
	font-weight: 800;
	color: #004d40;
}

.tag {
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 4px;
	background: #eceff1;
	color: #78909c;
	font-weight: 600;
}

.tag.up {
	background: #ffebee;
	color: #c62828;
}

.tag.down {
	background: #e8f5e9;
	color: #2e7d32;
}

.badges {
	display: flex;
	gap: 4px;
	margin-top: 2px;
}

.badge {
	font-size: 10px;
	color: #ffffff;
	background: #81c784;
	padding: 1px 6px;
	border-radius: 4px;
}

/* Missing Admin Utilities */
.row {
	display: flex;
	align-items: center;
}

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 99px;
	background: #f0f4f8;
	color: #486581;
	font-size: 12px;
	font-weight: 500;
}

.pill.success {
	background: rgba(46, 125, 50, 0.1);
	color: #2e7d32;
}

.pill.danger {
	background: rgba(211, 47, 47, 0.1);
	color: #d32f2f;
}

.input {
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 13px;
	outline: none;
	background: #fff;
	box-sizing: border-box;
}

.input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px var(--primary-weak);
}

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

.table th,
.table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid rgba(238, 242, 246, 0.8);
}

.table th {
	font-weight: 600;
	color: var(--muted);
	background: rgba(250, 251, 252, 0.5);
}

.table .right {
	text-align: right;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
}

/* Base Maintenance Styles */
.basecard {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.basecard-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.basecard-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}

.basecard-sub {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}

.vegchips {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed rgba(0,0,0,0.06);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vegchip {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #f0f4f8;
	color: #627d98;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid transparent;
}

.vegchip:hover {
	background: #d9e2ec;
}

.vegchip.active {
	background: rgba(46, 125, 50, 0.1);
	color: var(--primary);
	border-color: rgba(46, 125, 50, 0.2);
	font-weight: 500;
}

/* Base Picker (for Price Maintenance) */
.basepick {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}
.basepick-item {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px;
	cursor: pointer;
	transition: all 0.2s;
}
.basepick-item:hover {
	border-color: var(--primary);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.basepick-item.selected {
	border-color: var(--primary);
	background: var(--primary-weak);
}
.basepick-title {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}
.basepick-sub {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}
.basepick-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
}
.basepick-badge {
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
}
.basepick-badge.todo { background: #fee2e2; color: #ef4444; }
.basepick-badge.done { background: #d1fae5; color: #10b981; }
.basepick-badge.info { background: #dbeafe; color: #2563eb; }
.basepick-actions {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #f0f4f8;
	display: flex;
	gap: 8px;
}

.price-modal-table th, .price-modal-table td {
    padding: 8px;
}

/* Toggle Switch Row */
.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(238, 242, 246, 0.8);
}
.switch-title {
    font-weight: 500;
    color: var(--text);
}
.switch-desc {
    font-size: 12px;
    color: var(--muted);
}

.switch-left {
    display: flex;
    flex-direction: column;
}

.price-edit-table {
    width: 100%;
    border-collapse: collapse;
}
.price-edit-name {
    font-size: 14px;
}
.price-edit-price {
    width: 100px;
}
.price-input {
    width: 100%;
    text-align: right;
    font-family: monospace;
    font-size: 14px;
}

/* 生机盎然：无拼接痕迹的平滑动态背景 */
@keyframes theme-nature-shift {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.92; }
}

body.theme-nature {
	--bg0: #b8ffd2;
	--bg1: #fff2b8;
	--text: #0d3b22;
	--muted: rgba(13, 59, 34, 0.7);
	--border: rgba(13, 59, 34, 0.12);
	--card-bg: rgba(255, 255, 255, 0.86);
	--card-bg-strong: rgba(255, 255, 255, 0.92);
	--primary: #00c853;
	--primary-weak: rgba(0, 200, 83, 0.16);
	--radius: 26px;
	--radius-sm: 18px;
	--shadow: 0 18px 48px rgba(13, 59, 34, 0.16);
	--shadow-sm: 0 14px 40px rgba(13, 59, 34, 0.14);

	/* 单层大范围渐变，避免接缝 */
	background:
		linear-gradient(160deg,
			#e8faf0 0%,
			#e0f7ed 22%,
			#e4f8f5 45%,
			#e8f9ff 68%,
			#f0fce8 88%,
			#f5fce8 100%);
	background-attachment: fixed;
	background-size: 100% 100%;
	position: relative;
	overflow-x: hidden;
}

body.theme-nature::before {
	content: '';
	position: fixed;
	inset: 0;
	/* 大光晕叠加，自然过渡无条纹 */
	background:
		radial-gradient(ellipse 120% 80% at 15% 15%, rgba(34, 197, 94, 0.18) 0%, transparent 50%),
		radial-gradient(ellipse 100% 70% at 88% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 50%),
		radial-gradient(ellipse 90% 60% at 50% 85%, rgba(134, 239, 172, 0.12) 0%, transparent 45%),
		radial-gradient(ellipse 80% 50% at 75% 40%, rgba(250, 204, 21, 0.08) 0%, transparent 45%);
	animation: theme-nature-shift 8s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

body.theme-nature::after {
	content: '';
	position: fixed;
	inset: 0;
	/* 底部一抹青绿渐变，无重复图案 */
	background:
		linear-gradient(to top,
			rgba(6, 95, 70, 0.08) 0%,
			rgba(13, 148, 136, 0.04) 35%,
			transparent 60%);
	pointer-events: none;
	z-index: 0;
}

body.theme-nature .site-header,
body.theme-nature .container {
	position: relative;
	z-index: 1;
}

body.theme-nature .site-header {
	background: rgba(255, 255, 255, 0.68);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(13, 59, 34, 0.08);
}

body.theme-nature .brand-title {
	color: #0d3b22;
	text-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

body.theme-nature .brand-sub {
	background: rgba(0, 200, 83, 0.14);
	border: 1px solid rgba(0, 200, 83, 0.22);
	color: rgba(13, 59, 34, 0.88);
}

body.theme-nature .admin-btn-mini {
	background: linear-gradient(90deg, #00c853, #00b0ff);
	box-shadow: 0 10px 22px rgba(0, 200, 83, 0.22);
}

body.theme-nature .card {
	background: var(--card-bg);
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: var(--shadow-sm);
	transform: translateZ(0);
	backdrop-filter: blur(18px);
	position: relative;
	overflow: hidden;
}

body.theme-nature .card::before {
	content: '';
	position: absolute;
	right: -44px;
	top: -56px;
	width: 200px;
	height: 160px;
	background:
		radial-gradient(closest-side at 55% 55%, rgba(34, 197, 94, 0.20) 0%, rgba(34, 197, 94, 0.00) 68%),
		radial-gradient(closest-side at 45% 45%, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.00) 70%);
	transform: rotate(18deg);
	pointer-events: none;
}

body.theme-nature .card::after {
	content: '';
	position: absolute;
	left: -64px;
	bottom: -64px;
	width: 240px;
	height: 200px;
	background:
		radial-gradient(closest-side at 40% 40%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.00) 62%),
		radial-gradient(closest-side at 55% 60%, rgba(250, 204, 21, 0.14) 0%, rgba(250, 204, 21, 0.00) 66%),
		radial-gradient(closest-side at 35% 65%, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0.00) 70%);
	transform: rotate(-12deg);
	pointer-events: none;
}

body.theme-nature .card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

body.theme-nature .section-title {
	border-left-color: transparent;
	color: #0d3b22;
	position: relative;
	padding-left: 16px;
	text-shadow: 0 6px 18px rgba(34, 197, 94, 0.16);
}

body.theme-nature .section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 6px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(34, 197, 94, 1) 0%, rgba(20, 184, 166, 1) 55%, rgba(56, 189, 248, 1) 100%);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 10px 24px rgba(56, 189, 248, 0.18);
}

body.theme-nature .tab {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
	border: 1px solid rgba(13, 59, 34, 0.08);
	color: rgba(13, 59, 34, 0.85);
	box-shadow: 0 10px 22px rgba(13, 59, 34, 0.08);
}

body.theme-nature .tab:hover {
	transform: translateY(-2px) rotate(-0.2deg);
	box-shadow: 0 16px 34px rgba(13, 59, 34, 0.14);
}

body.theme-nature .tab.active {
	background: linear-gradient(90deg, #00c853, #00b0ff);
	border-color: rgba(255, 255, 255, 0.5);
	color: #ffffff;
	box-shadow: 0 18px 40px rgba(0, 176, 255, 0.25);
}

body.theme-nature .btn.primary {
	background: linear-gradient(90deg, #00c853, #00b0ff);
	border-color: transparent;
	box-shadow: 0 14px 34px rgba(0, 200, 83, 0.22);
}

body.theme-nature .broadcast {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(236, 253, 245, 0.55) 50%, rgba(239, 246, 255, 0.45) 100%),
		repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0 14px, rgba(255, 255, 255, 0.00) 14px 44px);
}

body.theme-nature .headline {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(220, 252, 231, 0.55) 40%, rgba(240, 249, 255, 0.42) 100%),
		repeating-linear-gradient(120deg, rgba(250, 204, 21, 0.10) 0 10px, rgba(250, 204, 21, 0.00) 10px 34px);
}

body.theme-nature .headline-value {
	color: #00c853;
	text-shadow: 0 10px 24px rgba(0, 200, 83, 0.25);
}

body.theme-datav {
	--bg0: #050a16;
	--bg1: #0b1122;
	--text: #e8faff;
	--muted: rgba(200, 238, 255, 0.92);
	--border: rgba(0, 240, 255, 0.28);
	--card-bg: rgba(7, 14, 28, 0.68);
	--card-bg-strong: rgba(7, 14, 28, 0.78);
	--primary: #00f0ff;
	--primary-weak: rgba(0, 240, 255, 0.14);
	--radius: 16px;
	--radius-sm: 12px;
	--shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
	--shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.45);

	overflow-x: hidden;

	background-image:
		radial-gradient(circle at 20% 10%, rgba(0, 240, 255, 0.18), transparent 42%),
		radial-gradient(circle at 78% 22%, rgba(255, 215, 64, 0.16), transparent 46%),
		radial-gradient(circle at 50% 70%, rgba(120, 80, 255, 0.10), transparent 55%),
		radial-gradient(circle at 30% 90%, rgba(0, 240, 255, 0.08), transparent 55%);
	background-size: cover, cover, cover, cover;
	background-position: center, center, center, center;
	background-attachment: fixed, fixed, fixed, fixed;
	background-repeat: no-repeat;
	color: var(--text);
}

body.theme-datav::after {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 240, 255, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 240, 255, 0.09) 1px, transparent 1px);
	background-size: 56px 56px;
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
}

/* 驾驶舱下禁止横向滚动，避免底部出现多余横向滚动条 */
html:has(body.theme-datav) {
	overflow-x: hidden;
}

body.theme-datav .site-header,
body.theme-datav .container,
body.theme-datav .modal {
	position: relative;
	z-index: 2;
}

/* 抽屉需保持 fixed 覆盖视口，不能改为 relative，否则会跑到页面底部 */
body.theme-datav .drawer {
	position: fixed;
	z-index: 100;
}

canvas#datavParticles {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 1;
}

body.theme-datav .site-header {
	background: rgba(5, 10, 22, 0.62);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(0, 240, 255, 0.32);
}

body.theme-datav .logo-coop,
body.theme-datav .logo-haikou {
	filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.15) drop-shadow(0 0 18px rgba(0, 240, 255, 0.22));
}

body.theme-datav .brand-title {
	color: #eafcff;
	text-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

body.theme-datav .brand-sub {
	color: rgba(234, 252, 255, 0.9);
	background: rgba(0, 240, 255, 0.12);
	border: 1px solid rgba(0, 240, 255, 0.32);
}

body.theme-datav .globalbar-title {
	color: #000000;
	font-weight: 700;
}

body.theme-datav .broadcast .desc {
	color: var(--muted);
}

body.theme-datav .admin-btn-mini {
	background: linear-gradient(90deg, rgba(0, 240, 255, 0.28), rgba(255, 215, 64, 0.18));
	border: 1px solid rgba(0, 240, 255, 0.55);
	box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}

body.theme-datav .card {
	background: var(--card-bg);
	border: 1px solid rgba(0, 240, 255, 0.32);
	box-shadow: inset 0 0 26px rgba(0, 240, 255, 0.08), 0 18px 46px rgba(0, 0, 0, 0.42);
	color: var(--text);
	position: relative;
	overflow: hidden;
}

body.theme-datav .card::before {
	content: '';
	position: absolute;
	inset: -1px;
	background:
		linear-gradient(to right, rgba(0, 240, 255, 0.7) 2px, transparent 2px) 0 0,
		linear-gradient(to bottom, rgba(0, 240, 255, 0.7) 2px, transparent 2px) 0 0,
		linear-gradient(to left, rgba(255, 215, 64, 0.7) 2px, transparent 2px) 100% 0,
		linear-gradient(to bottom, rgba(255, 215, 64, 0.7) 2px, transparent 2px) 100% 0,
		linear-gradient(to right, rgba(0, 240, 255, 0.7) 2px, transparent 2px) 0 100%,
		linear-gradient(to top, rgba(0, 240, 255, 0.7) 2px, transparent 2px) 0 100%,
		linear-gradient(to left, rgba(255, 215, 64, 0.7) 2px, transparent 2px) 100% 100%,
		linear-gradient(to top, rgba(255, 215, 64, 0.7) 2px, transparent 2px) 100% 100%;
	background-size: 12px 12px;
	background-repeat: no-repeat;
	pointer-events: none;
	opacity: 0.85;
}

body.theme-datav .section-title {
	color: #00f0ff;
	border-left-color: #00f0ff;
	text-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

body.theme-datav .card .muted {
	color: var(--muted);
}

body.theme-datav .tab {
	background: rgba(7, 14, 28, 0.7);
	border: 1px solid rgba(0, 240, 255, 0.38);
	color: #b8e8f5;
	box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
}

body.theme-datav .tab.active {
	background: linear-gradient(90deg, rgba(0, 240, 255, 0.32), rgba(255, 215, 64, 0.22));
	border-color: rgba(0, 240, 255, 0.75);
	color: #000000;
	box-shadow: 0 0 26px rgba(0, 240, 255, 0.25);
}

body.theme-datav .btn.primary {
	background: linear-gradient(90deg, rgba(0, 240, 255, 0.35), rgba(255, 215, 64, 0.25));
	border: 1px solid rgba(0, 240, 255, 0.75);
	box-shadow: 0 0 26px rgba(0, 240, 255, 0.25);
}

body.theme-datav .btn {
	background: rgba(0, 240, 255, 0.08);
	border: 1px solid rgba(0, 240, 255, 0.55);
	box-shadow: 0 0 18px rgba(0, 240, 255, 0.14);
	color:#000000;
}

body.theme-datav .globalbar-right .btn {
}

body.theme-datav .btn:hover {
	background: rgba(0, 240, 255, 0.14);
	border-color: rgba(0, 240, 255, 0.8);
	box-shadow: 0 0 26px rgba(0, 240, 255, 0.24);
}

/* 驾驶舱仪表盘内「刷新」等按钮：深底+白字，确保可读 */
body.theme-datav #datavGaugesCard .btn,
body.theme-datav .datav-only .btn {
	background: rgba(0, 180, 220, 0.45);
	border: 1px solid rgba(0, 240, 255, 0.75);
	color: #ffffff;
	font-weight: 700;
	text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
	box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

body.theme-datav #datavGaugesCard .btn:hover,
body.theme-datav .datav-only .btn:hover {
	background: rgba(0, 200, 240, 0.55);
	border-color: rgba(0, 240, 255, 0.9);
	color: #ffffff;
	box-shadow: 0 0 28px rgba(0, 240, 255, 0.35);
}

body.theme-datav .broadcast {
	background: linear-gradient(135deg, rgba(7, 14, 28, 0.85) 0%, rgba(0, 240, 255, 0.06) 55%, rgba(255, 215, 64, 0.05) 100%);
}

body.theme-datav .broadcast .change {
	background: rgba(5, 10, 22, 0.6);
	border: 1px solid rgba(0, 240, 255, 0.5);
	color: #e8faff;
	font-weight: 600;
}

body.theme-datav .change.up {
	background: rgba(80, 20, 20, 0.7);
	border: 1px solid rgba(255, 100, 100, 0.6);
	color: #ff7b7b;
}

body.theme-datav .change.down {
	background: rgba(10, 50, 35, 0.7);
	border: 1px solid rgba(0, 255, 144, 0.55);
	color: #6effb8;
}

body.theme-datav .change-card {
	background: rgba(7, 14, 28, 0.75);
	border: 1px solid rgba(0, 240, 255, 0.45);
	box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.06), 0 0 20px rgba(0, 240, 255, 0.1);
	backdrop-filter: blur(10px);
	margin-right: 16px;
}

body.theme-datav .cc-name {
	color: #e0f7ff;
	font-weight: 600;
}

body.theme-datav .cc-value {
	color: #ffffff;
	text-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
	font-weight: 700;
}

body.theme-datav .cc-change.up {
	color: #ff7b7b;
	font-weight: 600;
}

body.theme-datav .cc-change.down {
	color: #6effb8;
	font-weight: 600;
}

body.theme-datav .smartrow {
	border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

body.theme-datav .smart-name {
	color: #e8faff;
	font-weight: 600;
}

body.theme-datav .smart-meta {
	color: var(--muted);
}

body.theme-datav .smart-price {
	color: #00f0ff;
	text-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
	font-weight: 700;
}

body.theme-datav .tag {
	background: rgba(0, 240, 255, 0.12);
	border: 1px solid rgba(0, 240, 255, 0.28);
	color: rgba(234, 252, 255, 0.9);
}

body.theme-datav .tag.up {
	background: rgba(255, 77, 79, 0.16);
	border: 1px solid rgba(255, 77, 79, 0.45);
	color: #ff4d4f;
}

body.theme-datav .tag.down {
	background: rgba(0, 255, 144, 0.14);
	border: 1px solid rgba(0, 255, 144, 0.42);
	color: #00ff90;
}

body.theme-datav .badge {
	background: rgba(0, 240, 255, 0.2);
	border: 1px solid rgba(0, 240, 255, 0.45);
	color: rgba(234, 252, 255, 0.95);
}

.datav-gauges {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 20px;
}

.datav-gauge {
	border: 1px solid rgba(0, 240, 255, 0.45);
	border-radius: 14px;
	background: rgba(7, 14, 28, 0.65);
	padding: 16px 14px 10px;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.25);
}

.datav-gauge::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 15%, rgba(0, 240, 255, 0.12), transparent 50%);
	pointer-events: none;
	opacity: 0.5;
	border-radius: 14px;
}

.datav-gauge-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #e0f7ff;
	text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
	margin-bottom: 4px;
}

.datav-gauge-chart {
	width: 100%;
	height: 140px;
}

@media (max-width: 980px) {
	.datav-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	.datav-gauges { grid-template-columns: 1fr; }
}

body.theme-datav .broadcast .index {
	color: #ffd740;
	text-shadow: 0 0 22px rgba(255, 215, 64, 0.45);
}

body.theme-datav .headline-value {
	color: #00f0ff;
	text-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

body.theme-datav #mapChart {
	height: 650px !important;
}
