/**
 * 抖房 · 运营后台全局主题
 * 品牌蓝 #1677FF，现代扁平风格；在 style.min.css / skins.css / ry-ui.css 之后加载，
 * 仅做覆盖，不改动若依原有结构与脚本。
 */

:root {
	--fz-primary: #1677ff;
	--fz-primary-hover: #4096ff;
	--fz-primary-active: #0958d9;
	--fz-primary-light: #e8f1ff;
	--fz-text: #1f2329;
	--fz-text-secondary: #5c6470;
	--fz-text-muted: #8a93a4;
	--fz-border: #e6eaf2;
	--fz-border-light: #f0f3f8;
	--fz-bg: #f4f7fb;
	--fz-sidebar-from: #0a1c38;
	--fz-sidebar-to: #123a6b;
	--fz-radius: 8px;
	--fz-shadow: 0 2px 12px rgba(16, 42, 84, .06);
}

/* ---------- 基础 ---------- */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: var(--fz-text);
	-webkit-font-smoothing: antialiased;
}

body.gray-bg,
.gray-bg {
	background-color: var(--fz-bg) !important;
}

a {
	color: var(--fz-primary);
}

a:hover,
a:focus {
	color: var(--fz-primary-hover);
}

/* ---------- 侧边栏 ---------- */
.navbar-static-side,
.theme-dark .navbar-static-side,
.theme-dark .user-panel,
.skin-blue .main-sidebar,
.skin-blue .left-side,
.skin-blue .wrapper {
	background: linear-gradient(180deg, var(--fz-sidebar-from) 0%, var(--fz-sidebar-to) 100%) !important;
}

.navbar-static-side {
	box-shadow: 2px 0 12px rgba(8, 24, 52, .12);
}

.logo,
.skin-blue .logo,
.skin-blue .logo:hover {
	background: transparent !important;
	border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
	color: #fff !important;
	font-weight: 600;
}

.fz-brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 50px;
	font-size: 18px;
	letter-spacing: 2px;
	color: #fff;
}

.fz-brand__mark {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	box-shadow: 0 3px 8px rgba(4, 32, 78, .35);
}

.fz-brand__text {
	font-weight: 600;
}

.mini-navbar .fz-brand__text,
.canvas-menu .fz-brand__text {
	display: none;
}

.user-panel {
	background: transparent !important;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	padding: 14px 12px !important;
}

.user-panel .info > p {
	color: #fff;
	font-weight: 600;
}

.theme-dark .user-panel > .info > p,
.theme-dark .user-panel > .info > a {
	color: rgba(255, 255, 255, .82) !important;
}

/* 一级菜单 */
.navbar-default .nav > li > a,
.nav > li > a,
.theme-dark .navbar-default .nav > li > a {
	color: #c2d3ea !important;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background .16s ease, color .16s ease;
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus,
.theme-dark .navbar-default .nav > li > a:hover,
.theme-dark .navbar-default .nav > li > a:focus {
	background: rgba(255, 255, 255, .08) !important;
	color: #fff !important;
}

.nav > li.active,
.theme-dark .nav:not(.navbar-toolbar) > li.active,
.skin-blue .nav:not(.navbar-toolbar) > li.active {
	background: rgba(22, 119, 255, .22) !important;
	border-left: 3px solid var(--fz-primary) !important;
}

.nav > li.active > a {
	background: transparent !important;
	color: #fff !important;
}

/* 二/三级菜单 */
.nav-second-level,
.nav-third-level,
.nav-four-level {
	background: rgba(0, 0, 0, .16) !important;
}

.nav-second-level li a,
.nav-third-level li a,
.nav-four-level li a {
	color: #9fb6d4 !important;
	font-weight: 400;
}

.nav-second-level li a:hover,
.nav-third-level li a:hover,
.nav-four-level li a:hover {
	background: rgba(255, 255, 255, .06) !important;
	color: #fff !important;
}

.nav-second-level li.active > a,
.nav-third-level li.active > a,
.nav-four-level li.active > a {
	background: rgba(22, 119, 255, .24) !important;
	color: #fff !important;
	border-left: 3px solid var(--fz-primary);
}

.nav-second-level > li.active,
.skin-blue .nav > li.active > ul li.active {
	border-left: none !important;
	background: transparent !important;
}

/* ---------- 顶栏 ---------- */
.navbar-static-top {
	background: #fff !important;
	border-bottom: 1px solid var(--fz-border) !important;
	box-shadow: 0 1px 6px rgba(16, 42, 84, .05);
}

.navbar-minimalize {
	color: #44536b !important;
	border-radius: 6px;
}

.navbar-minimalize:hover {
	background: var(--fz-primary-light) !important;
	color: var(--fz-primary) !important;
}

.navbar-top-links > li > a,
.welcome-message > li > a {
	color: #4a566b !important;
	font-weight: 500;
	border-radius: 6px;
}

.navbar-top-links > li > a:hover,
.navbar-top-links > li > a:active,
.navbar-top-links > li > a:focus,
.navbar-top-links > .open > a {
	background: var(--fz-primary-light) !important;
	color: var(--fz-primary) !important;
}

.navbar-top-links .user-menu .user-image {
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(22, 119, 255, .18);
}

/* ---------- 页签 ---------- */
.content-tabs {
	background: #fff !important;
	border-bottom: 1px solid var(--fz-border) !important;
}

.page-tabs .menuTab {
	color: var(--fz-text-secondary);
	border-right: 1px solid var(--fz-border-light);
}

.page-tabs .menuTab:hover {
	color: var(--fz-primary);
}

.page-tabs .menuTab.active,
.skin-blue .page-tabs a.active {
	color: #fff !important;
	background: var(--fz-primary) !important;
	border: 1px solid var(--fz-primary) !important;
	border-radius: 6px 6px 0 0;
}

.roll-nav {
	color: var(--fz-text-muted);
}

.roll-nav:hover {
	color: var(--fz-primary);
	background: var(--fz-primary-light);
}

/* ---------- 内容区 ---------- */
.wrapper-content {
	padding: 18px 18px 68px !important;
}

.ibox {
	border: 1px solid var(--fz-border) !important;
	border-radius: 10px;
	box-shadow: var(--fz-shadow);
	overflow: hidden;
}

.ibox-title {
	padding: 13px 18px;
	border-bottom: 1px solid var(--fz-border) !important;
	background: #fff;
}

.ibox-title h5 {
	font-weight: 600;
	color: var(--fz-text);
}

.ibox-content {
	border: none !important;
	padding: 18px;
}

.hr-line-dashed {
	border-top-color: var(--fz-border);
}

/* ---------- 按钮 ---------- */
.btn {
	border-radius: 6px;
	transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn-primary,
.btn-info {
	background: var(--fz-primary) !important;
	border-color: var(--fz-primary) !important;
	color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
	background: var(--fz-primary-hover) !important;
	border-color: var(--fz-primary-hover) !important;
	box-shadow: 0 3px 10px rgba(22, 119, 255, .25);
}

.btn-success {
	background: #12b76a !important;
	border-color: #12b76a !important;
}

.btn-success:hover,
.btn-success:focus {
	background: #0ea45f !important;
	border-color: #0ea45f !important;
}

.btn-white {
	border-color: var(--fz-border);
	color: var(--fz-text-secondary);
}

.btn-white:hover {
	border-color: var(--fz-primary);
	color: var(--fz-primary);
}

/* ---------- 表格 ---------- */
.table > thead > tr > th,
.bootstrap-table .table > thead > tr > th,
.fixed-table-header .table > thead > tr > th {
	background: #f7f9fc !important;
	color: var(--fz-text-secondary) !important;
	font-weight: 600;
	border-bottom: 1px solid var(--fz-border) !important;
}

.table > tbody > tr > td {
	border-top: 1px solid var(--fz-border-light);
	color: #2b3240;
	vertical-align: middle;
}

.table-hover > tbody > tr:hover,
.bootstrap-table .table > tbody > tr:hover {
	background: #f5f9ff !important;
}

.fixed-table-container {
	border: 1px solid var(--fz-border) !important;
	border-radius: 8px;
	overflow: hidden;
}

/* ---------- 分页 ---------- */
.pagination > li > a,
.pagination > li > span {
	color: var(--fz-text-secondary);
	border: 1px solid var(--fz-border);
	border-radius: 6px;
	margin: 0 3px;
}

.pagination > li > a:hover {
	color: var(--fz-primary);
	border-color: var(--fz-primary);
	background: var(--fz-primary-light);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > a:focus {
	background: var(--fz-primary) !important;
	border-color: var(--fz-primary) !important;
	color: #fff !important;
}

/* ---------- 表单 ---------- */
.form-control {
	border-radius: 6px !important;
	border-color: #dfe5ef;
	box-shadow: none;
}

.form-control:focus {
	border-color: var(--fz-primary) !important;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, .12) !important;
}

.form-control[disabled],
.form-control[readonly] {
	background-color: #f5f7fa;
}

.control-label {
	color: var(--fz-text-secondary);
	font-weight: 500;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
	color: var(--fz-primary);
	font-weight: 600;
}

/* ---------- 标签 / 徽章 / 提示 ---------- */
.label-primary {
	background: var(--fz-primary);
}

.badge-primary {
	background: var(--fz-primary);
}

.alert-info {
	background: var(--fz-primary-light);
	border-color: #cfe0ff;
	color: #1d4ed8;
}

/* ---------- 弹层 ---------- */
.layui-layer {
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(15, 35, 70, .18) !important;
}

.layui-layer-title {
	background: #f7f9fc !important;
	border-bottom: 1px solid var(--fz-border) !important;
	color: var(--fz-text) !important;
	font-weight: 600;
	border-radius: 10px 10px 0 0;
}

.layui-layer-btn0 {
	background: var(--fz-primary) !important;
	border-color: var(--fz-primary) !important;
	border-radius: 6px;
}

.layui-layer-btn a {
	border-radius: 6px;
}

/* ---------- 页脚 ---------- */
.footer {
	background: #fff;
	border-top: 1px solid var(--fz-border);
	color: var(--fz-text-muted);
	font-size: 12px;
	padding: 9px 16px;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-thumb {
	background: #cbd6e6;
	border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
	background: #b1c1d8;
}

::-webkit-scrollbar-track {
	background: transparent;
}

/* ---------- 登录 / 注册页 ---------- */
body.signin {
	height: 100% !important;
	background: linear-gradient(135deg, #071a35 0%, #0d2f63 45%, #1450a8 100%) !important;
	background-attachment: fixed !important;
}

body.signin::before {
	content: "";
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background:
		radial-gradient(1100px 520px at 82% 8%, rgba(64, 150, 255, .38), transparent 62%),
		radial-gradient(900px 480px at 8% 92%, rgba(3, 16, 38, .55), transparent 60%);
	pointer-events: none;
}

.signinpanel {
	position: relative;
	width: 940px;
	max-width: 94%;
	margin: 9vh auto 0;
	color: #fff;
}

.fz-login-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 4px;
	color: #fff;
}

.fz-login-brand img {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(2, 18, 44, .45);
}

.signin-info h4 {
	font-size: 17px;
	font-weight: 400;
	color: rgba(255, 255, 255, .92);
}

.signin-info h4 strong {
	font-weight: 700;
}

.signinpanel .signin-info ul {
	margin: 22px 0;
}

.signinpanel .signin-info ul li {
	color: rgba(255, 255, 255, .8);
	line-height: 2.1;
	font-size: 13px;
}

.signinpanel .signin-info ul li i {
	color: #7db4ff;
}

.signinpanel form {
	background: #fff !important;
	border: none !important;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(3, 18, 44, .4);
	padding: 30px 26px !important;
	color: var(--fz-text);
}

.signinpanel form h4 {
	color: var(--fz-text);
	font-weight: 700;
}

.signinpanel form p {
	color: var(--fz-text-muted);
	font-size: 13px;
}

.signinpanel .uname,
.signinpanel .pword,
.signinpanel .code {
	background-color: #f6f8fc !important;
	border: 1px solid var(--fz-border) !important;
	border-radius: 8px !important;
	height: 42px !important;
	color: var(--fz-text) !important;
}

.signinpanel .uname:focus,
.signinpanel .pword:focus,
.signinpanel .code:focus {
	background-color: #fff !important;
	border-color: var(--fz-primary) !important;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, .12) !important;
}

.signinpanel .btn-block {
	height: 44px;
	font-size: 15px;
	letter-spacing: 2px;
	border-radius: 8px !important;
	background: var(--fz-primary) !important;
	border-color: var(--fz-primary) !important;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(22, 119, 255, .32);
}

.signinpanel .btn-block:hover {
	background: var(--fz-primary-hover) !important;
}

.signup-footer {
	border-top: 1px solid rgba(255, 255, 255, .18);
	color: rgba(255, 255, 255, .68);
	font-size: 12px;
}

.signinpanel .checkbox-custom label {
	color: var(--fz-text-secondary);
}

.signinpanel .checkbox-custom label::before {
	border-color: #cfd8e6;
}

/* ---------- 工作台 ---------- */
.fz-workbench {
	padding: 20px 20px 40px;
}

.fz-hero {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	padding: 26px 30px;
	color: #fff;
	background: linear-gradient(120deg, #0d2f63 0%, #1450a8 55%, #1677ff 100%);
	box-shadow: 0 12px 32px rgba(13, 47, 99, .22);
}

.fz-hero::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -80px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}

.fz-hero h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 1px;
}

.fz-hero p {
	margin: 0;
	color: rgba(255, 255, 255, .82);
	font-size: 13px;
}

.fz-hero .fz-hero-meta {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	font-size: 12px;
	color: rgba(255, 255, 255, .74);
}

.fz-hero .fz-hero-meta i {
	margin-right: 6px;
	color: #9cc6ff;
}

.fz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.fz-entry {
	display: block;
	background: #fff;
	border: 1px solid var(--fz-border);
	border-radius: 12px;
	padding: 18px;
	text-decoration: none !important;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.fz-entry:hover {
	transform: translateY(-2px);
	border-color: #cfe0ff;
	box-shadow: 0 10px 26px rgba(16, 42, 84, .1);
}

.fz-entry__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fz-primary-light);
	color: var(--fz-primary);
	font-size: 18px;
}

.fz-entry__title {
	display: block;
	margin-top: 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--fz-text);
}

.fz-entry__desc {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--fz-text-muted);
	line-height: 1.7;
}

.fz-panel {
	margin-top: 18px;
	background: #fff;
	border: 1px solid var(--fz-border);
	border-radius: 12px;
	padding: 18px 20px;
}

.fz-panel h3 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--fz-text);
}

.fz-panel ul {
	margin: 0;
	padding-left: 18px;
	color: var(--fz-text-secondary);
	font-size: 13px;
	line-height: 2.1;
}

.fz-panel ul li::marker {
	color: var(--fz-primary);
}

.fz-workbench-footer {
	margin-top: 22px;
	text-align: center;
	color: var(--fz-text-muted);
	font-size: 12px;
}