/* ===================== 全局样式重置 + 响应式基础 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Helvetica Neue, sans-serif;
}
body {
    background-color: #f5f5f7;
    min-height: 100vh;
    padding: 20px 15px;
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
}
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}
form {width: 100%;}
a {text-decoration: none;}
ul,li {list-style: none;}

/* ===================== ✅ 核心美化：一级导航栏全面升级+保留箭头+三级缩窄+悬浮弹出100%触发+全自适应 ===================== */
.nav-container {
    width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: visible !important;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: relative;
    padding: 6px 8px;
}
/* 移动端专属：汉堡按钮 - 默认隐藏，小屏下显示 */
.hamburger-btn {
    display: none;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
	font-size: 20px;
	color: #374151;
	cursor: pointer;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 99999;
}
.hamburger-btn:hover {color: #165DFF;}
.hamburger-active {color: #165DFF; transform: rotate(90deg); transition: all 0.2s ease;}

/* 导航核心样式 - 大屏默认横向布局 */
.nav-level-1 {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    background-color: transparent;
    position: relative;
    z-index: 999;
    justify-content: center;
    align-items: center;
}
/* ✅✅✅ 一级菜单 深度美化核心样式 开始 ✅✅✅ */
.nav-level-1 > .nav-item {
    position: relative;
    flex: 1;
    min-width: 80px;
    text-align: center;
    height: 40px;
    margin: 0 4px;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.nav-level-1 > .nav-item > .nav-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 40px;
	color: #4b5563;
	font-size: 14px;
	font-weight: 500;
	padding: 0 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: all 0.25s ease;
    border-radius: 12px;
}
/* 一级菜单悬浮高亮效果：渐变背景+发光边框+文字变色+箭头同步变色 Win11高级风格 */
.nav-level-1 > .nav-item:hover {
    background: linear-gradient(120deg, #f0f7ff 0%, #e6f4ff 100%);
    border: 1px solid #93c5fd;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}
.nav-level-1 > .nav-item:hover > .nav-link {
	color: #165DFF;
    font-weight: 520;
}
/* 一级菜单点击按压效果 */
.nav-level-1 > .nav-item:active {
    transform: translateY(0);
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.2);
}
/* ✅✅✅ 一级菜单 深度美化核心样式 结束 ✅✅✅ */

/* 二级导航 - 保留箭头+下拉展开 100%触发 + 过渡动画 */
.nav-level-2 {
    position: absolute;
    top: calc(100% + 4px);
	left: 0;
	width: 100%;
	background-color: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease-out;
}
.nav-level-2 > .nav-item {
    position: relative;
    height: 42px;
}
.nav-level-2 > .nav-item > .nav-link {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 42px;
	padding: 0 15px;
	color: #374151;
	font-size: 13px;
	border-bottom: 1px solid #F3F4F6;
	white-space: nowrap;
	transition: all 0.2s ease;
}
.nav-level-2 > .nav-item:last-child > .nav-link {border-bottom: none;}
.nav-level-2 > .nav-item:hover > .nav-link {
	background-color: #F1F5F9;
	color: #165DFF;
	padding-left: 20px;
}

/* 三级菜单 - 宽度150px完美缩窄+保留箭头+优化内边距 */
.nav-level-3 {
    position: absolute;
	top: 0;
	left: 100%;
	width: 150px !important;
	background-color: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 0 12px 12px 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 99999;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.2s ease-out;
}
.nav-level-3 > .nav-item > .nav-link {
	display: block;
	height: 38px;
	line-height: 38px;
	padding: 0 12px;
	color: #374151;
	font-size: 12px;
	border-bottom: 1px solid #F9FAFB;
	white-space: nowrap;
	transition: all 0.2s ease;
}
.nav-level-3 > .nav-item:last-child > .nav-link {border-bottom: none;}
.nav-level-3 > .nav-item:hover > .nav-link {
	background-color: #EFF6FF;
	color: #165DFF;
}

/* 悬浮触发规则 【鼠标放一级→出二级，放二级→出三级】 100%生效 + 保留箭头显示 */
.nav-level-1 > .nav-item.has-child:hover .nav-level-2 {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.nav-level-2 > .nav-item.has-child:hover .nav-level-3 {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* 媒体查询 自适应断点【768px】 适配所有屏幕尺寸 */
@media screen and (max-width: 768px) {
    .hamburger-btn {display: block;}
    .nav-level-1 {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        padding-top: 48px;
        z-index: 999;
    }
    .nav-hidden {display: none !important;}
    .nav-show {display: flex !important;}
    .nav-level-1 > .nav-item {
        flex: none;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #F3F4F6;
        height: auto;
        margin: 0;
        border-radius: 0;
    }
    .nav-level-1 > .nav-item > .nav-link {
        height: 50px;
        line-height: 50px;
        padding: 0 20px;
        font-size: 15px;
    }
    .nav-level-2 {
        position: static;
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: block;
        padding-left: 20px;
        opacity: 1;
        transform: none;
    }
    .nav-level-2 > .nav-item {height: auto;}
    .nav-level-2 > .nav-item > .nav-link {
        height: 45px;
        line-height: 45px;
        font-size: 14px;
    }
    .nav-level-3 {
        position: static;
        width: 100% !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: block;
        padding-left: 40px;
        opacity: 1;
        transform: none;
    }
    .nav-level-3 > .nav-item > .nav-link {
        height: 42px;
        line-height: 42px;
        padding: 0 15px;
        font-size: 13px;
    }
}

/* ===================== 标题样式 ===================== */
.page-title {
	font-size: clamp(18px, 5vw, 22px);
	font-weight: 600;
	color: #1d1d1f;
	margin-bottom: 25px;
	text-align: center;
}
.table-title {
	font-size: clamp(16px, 4vw, 20px);
	font-weight: 600;
	color: #1d1d1f;
	margin: 30px 0 15px 0;
}

/* ===================== 表单通用样式 ===================== */
.form-group {
	width: 100%;
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	font-size: 14px;
	color: #666666;
	margin-bottom: 8px;
	font-weight: 500;
}
.form-input {
	width: 100%;
	height: 48px;
	line-height: 48px;
	padding: 0 16px;
	border: 1px solid #e5e5e7;
	border-radius: 14px;
	background-color: #ffffff;
	font-size: 16px;
	color: #1d1d1f;
	outline: none;
	transition: all 0.2s ease-in-out;
}
.form-input:focus {
	border-color: #0071e3;
	box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}
.form-input::placeholder {
	color: #c7c7cc;
	font-size: 15px;
}
.form-input-half {
	width: 50%;
	height: 48px;
	line-height: 48px;
	padding: 0 16px;
	border: 1px solid #e5e5e7;
	border-radius: 14px;
	background-color: #ffffff;
	font-size: 16px;
	color: #1d1d1f;
	outline: none;
	transition: all 0.2s ease-in-out;
}
.form-input-half:focus {
	border-color: #0071e3;
	box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}
.form-input-half::placeholder {
	color: #c7c7cc;
	font-size: 15px;
}
.form-select {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #e5e5e7;
	border-radius: 14px;
	background-color: #ffffff;
	font-size: 16px;
	color: #1d1d1f;
	outline: none;
	transition: all 0.2s ease-in-out;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M10.8 1.4L6 6.2 1.2 1.4' stroke='%2386868b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}
.form-select:focus {
	border-color: #0071e3;
	box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

/* ===================== 单选框 完整美化样式 ===================== */
.radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 5px;
}
.radio-item {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}
.radio-item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.radio-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid #c7c7cc;
	border-radius: 50%;
	margin-right: 8px;
	position: relative;
	transition: all 0.2s ease;
}
.radio-item input:checked + .radio-icon {
	border-color: #0071e3;
	background-color: #0071e3;
}
.radio-item input:checked + .radio-icon::after {
	content: "";
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffffff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.radio-text {
	font-size: 16px;
	color: #1d1d1f;
}

/* ===================== 复选框(多选) 完整美化样式 ===================== */
.checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	padding-top: 5px;
}
.checkbox-item {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}
.checkbox-item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.checkbox-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid #c7c7cc;
	border-radius: 4px;
	margin-right: 8px;
	position: relative;
	transition: all 0.2s ease;
}
.checkbox-item input:checked + .checkbox-icon {
	border-color: #0071e3;
	background-color: #0071e3;
}
.checkbox-item input:checked + .checkbox-icon::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.checkbox-text {
	font-size: 16px;
	color: #1d1d1f;
}

/* ===================== 图片上传按钮+区域 完整美化样式 (Win11风格) ===================== */
.upload-group {
	width: 100%;
	padding-top: 5px;
}
.upload-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	z-index: -1;
}
.btn-upload {
	width: 100%;
	height: 48px;
	line-height: 48px;
	background-color: #F1F5F9;
	color: #165DFF;
	border: 1px solid #CBD5E1;
	border-radius: 14px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.15s ease-out;
	text-align: center;
	transform: scale(1);
}
.btn-upload:hover {
	background-color: #E2E8F0;
	border-color: #94A3B8;
	transform: scale(1.01);
}
.btn-upload:active {
	transform: scale(0.96);
	opacity: 1;
}
.upload-icon {
	margin-right: 8px;
	font-size: 18px;
}
.upload-tips {
	font-size: 12px;
	color: #86868b;
	margin-top: 8px;
	line-height: 1.4;
}
.upload-msg {
	width: 100%;
	padding: 10px 15px;
	border-radius: 8px;
	font-size: 13px;
	margin: 10px 0;
}
.upload-msg.success {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}
.upload-msg.error {
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

/* ===================== iOS风格按钮样式 (保留+按下缩小效果) ===================== */
.btn-group {
	width: 100%;
	display: flex;
	gap: 10px;
	margin-top: 10px;
}
.btn {
	flex: 1;
	height: 48px;
	border: none;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease-out;
	display: inline-block;
	text-align: center;
	line-height: 48px;
	transform: scale(1);
}
.btn:focus {outline: none;}
.btn-primary {
	background-color: #165DFF;
	color: #ffffff;
}
.btn-secondary {
	background-color: #FFFFFF;
	color: #165DFF;
	border: 1px solid #CBD5E1;
}
.btn:hover {
	opacity: 0.95;
	transform: scale(1.01);
}
.btn:active {
	transform: scale(0.96);
	opacity: 1;
}

/* ===================== Win11风格矩形圆角方块按钮 (按下缩小回弹效果保留) ===================== */
.win-btn-group {
	width: 100%;
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.win-btn-group-sm {
	gap: 8px;
	margin-top: 12px;
}
.btn-title {
	width: 100%;
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}
.win-btn {
	border: none;
	outline: none;
	cursor: pointer;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 500;
	padding: 0 18px;
	height: 42px;
	line-height: 42px;
	display: inline-block;
	text-align: center;
	transition: all 0.15s ease-out;
	user-select: none;
	transform: scale(1);
}
.win-btn:hover {
	opacity: 0.95;
	transform: scale(1.01);
}
.win-btn:active {
	transform: scale(0.96);
	opacity: 1;
}
.win-btn-primary {background: #165DFF; color: #FFFFFF;}
.win-btn-success {background: #039855; color: #FFFFFF;}
.win-btn-warning {background: #FDB022; color: #1F2937;}
.win-btn-danger  {background: #D92D20; color: #FFFFFF;}
.win-btn-border  {background: #FFFFFF; color: #165DFF; border:1px solid #94A3B8;}
.win-btn-gray    {background: #F3F4F6; color: #374151; border:1px solid #D1D5DB;}

.win-btn-sm {
	height: 34px;
	line-height: 34px;
	padding: 0 12px;
	font-size: 12px;
	border-radius: 12px;
}
.win-btn-xs {
	height: 28px;
	line-height: 28px;
	padding: 0 8px;
	font-size: 11px;
	min-width: 50px;
	border-radius: 10px;
}

/* ===================== 高对比度【主表+嵌套子表 标题栏深度拉满】静态嵌套表格 核心样式 ===================== */
.table-box {
	width: 100%;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e5e7;
	margin: 0 auto;
}
.data-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 14px;
}
.data-table thead {
	background-color: #1F2937;
	color: #FFFFFF;
	font-weight: 700;
}
.data-table thead tr th {
	padding: 14px 5px;
	font-weight: 700;
	border-bottom: 2px solid #111827;
}
.data-table tbody tr {
	border-bottom: 1px solid #e8e8e8;
}
.data-table tbody tr:nth-child(odd) {
	background-color: #FFFFFF;
}
.data-table tbody tr:nth-child(even) {
	background-color: #F9FAFB;
}
.data-table tbody tr:hover {
	background-color: #E2E8F0;
}
.data-table tbody tr td {
	padding: 12px 5px;
	color: #1F2937;
	vertical-align: middle;
	font-weight: 500;
}

.inner-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 12px;
	background: #FFFFFF;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #CBD5E0;
}
.inner-table thead {
	background-color: #1F2937;
	color: #FFFFFF;
	font-weight: 700;
}
.inner-table thead tr th {
	padding: 8px 4px;
	font-weight: 700;
	color: #FFFFFF;
	font-size: 11px;
	border-bottom: 1px solid #111827;
}
.inner-table tbody tr {
	border-bottom: 1px solid #E2E8F0;
}
.inner-table tbody tr td {
	padding: 7px 4px;
	color: #1F2937;
	font-size: 11px;
	font-weight: 500;
}
.inner-table tbody tr:hover {
	background-color: #F7FAFC;
}

/* ===================== 展开式嵌套表格样式 ===================== */
.expand-btn {
	font-size: 18px;
	font-weight: bold;
	color: #FFFFFF;
	cursor: pointer;
	user-select: none;
	transition: all 0.15s ease-out;
	transform: scale(1);
}
.expand-btn:hover {
	color: #E2E8F0;
}
.expand-btn:active {
	transform: scale(0.9);
}
.expand-active {
	color: #FDB022;
}
.status.normal {color: #165DFF; font-weight: 600;}
.status.stop {color: #D92D20; font-weight: 600;}
.sub-tr td {
	padding: 0 !important;
	border: 0;
}
.sub-table-box {
	width: 100%;
	padding: 10px 15px;
	background-color: #F9FAFB;
	border-top: 2px solid #1F2937;
}
.sub-data-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 12px;
	background-color: #FFFFFF;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #CBD5E0;
}
.sub-data-table thead {
	background-color: #1F2937;
	color: #FFFFFF;
	font-weight:700;
}
.sub-data-table thead tr th {
	padding: 9px 5px;
	font-weight: 700;
	color: #FFFFFF;
	border-bottom: 1px solid #111827;
}
.sub-data-table tbody tr {
	border-bottom: 1px solid #E2E8F0;
}
.sub-data-table tbody tr td {
	padding: 8px 5px;
	color: #1F2937;
	font-weight: 500;
}
.sub-data-table tbody tr:hover {
	background-color: #F7FAFC;
}
.btn-sm {
	width: 60px;
	height: 30px;
	line-height: 30px;
	font-size: 12px;
	padding: 0;
	border-radius: 10px;
	transition: all 0.15s ease-out;
	transform: scale(1);
}
.btn-sm:active {
	transform: scale(0.96);
}