/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #262626;
    line-height: 1.5;
}

/* 主容器布局 */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 95vw;
}

/* 头部导航栏 */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-title  {
    font-size: 20px;
    font-weight: 600;
    color: #1890ff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-left: 5px;
    margin-bottom: 10px;
}


.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding-left: 5px;
}

.user-name {
    color: #595959;
    font-size: 14px;
}

.user-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
}

/* 左侧导航栏-引用aligit */

nav#nav-side
{
    width: 200px;
    background: #ffffff;
    border-right: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: fixed;
    top: 0px;
    bottom: 0px;
    overflow-y: auto;
    padding-left: 5px;
    z-index: -1;
}

.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu li {
    position: relative;
	margin-bottom: 1px;
}

.menu li a {
    display: block;
    color: black;
    text-decoration: none;
    padding: 10px 15px;
}

.menu li > a.withSub::after {
	content: '»';
	float: right;
	transition: transform 0.2s;
}

.menu li.active > a::after {
	transform: rotate(90deg);
}

.menu li a:hover {
    background-color: #FFFFCC;
}

.submenu {
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #f4f4f4;
}

.submenu li a {
    padding-left: 35px;
}

.active .submenu {
    display: block;
}



/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 50px;
    padding: 10px;
    margin-top: 0px; /* 为固定头部留出空间 */
}

/* 页面标题 */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 8px;
}

.page-description {
    color: #8c8c8c;
    font-size: 14px;
}

/* 卡片组件 */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-right: 8px;
    margin-bottom: 8px;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #595959;
    border-color: #d9d9d9;
}

.btn-secondary:hover {
    background-color: #e6e6e6;
    border-color: #bfbfbf;
}

.btn-text {
    background: none;
    border: none;
    color: #1890ff;
    padding: 0;
    font-size: 14px;
}

.btn-text:hover {
    text-decoration: underline;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border: 1px solid black;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    font-weight: 600;
    color: #595959;
    background-color: #fafafa;
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* 状态标签 */
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft { background-color: #f5f5f5; color: #8c8c8c; }
.status-review { background-color: #fffbe6; color: #faad14; }
.status-approved { background-color: #f6ffed; color: #52c41a; }
.status-developing { background-color: #e6f7ff; color: #1890ff; }
.status-completed { background-color: #f9f0ff; color: #722ed1; }
.status-cancelled { background-color: #fff2f0; color: #f5222d; }

/* 优先级标签 */
.priority-tag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.priority-p0 { background-color: #f5222d; }
.priority-p1 { background-color: #fa8c16; }
.priority-p2 { background-color: #faad14; }
.priority-p3 { background-color: #52c41a; }

/* 功能域标签 */
.domain-tag {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    background-color: #f0f0f0;
    color: #595959;
}

/* 筛选区域 */
.filter-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #595959;
}

.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}


/* 查询表单样式 */
.search-form {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #262626;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: #f5f5f5;
    color: #595959;
    border: 1px solid #d9d9d9;
}

.btn-secondary:hover {
    background: #e6e6e6;
}

/* 结果表格样式 */
.results-section {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.results-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.results-count {
    color: #8c8c8c;
    font-size: 14px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    border-color: black;
    border-style: solid;
    border-width: 1px;
}

.results-table th {
    text-align: left;
    padding: 12px 24px;
    background: lightseagreen;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid #f0f0f0;
}

.results-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #262626;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:hover {
    background-color: #FFFFCC;
}

.priority-p0 { background: #fff1f0; color: #f5222d; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.priority-p1 { background: #fff7e6; color: #fa8c16; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.priority-p2 { background: #feffe6; color: #fadb14; padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.priority-p3 { background: #f9f9f9; color: #8c8c8c; padding: 2px 8px; border-radius: 12px; font-size: 12px; }

.domain-tag {
    background: #e6f7ff;
    color: #1890ff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.action-link {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.action-link:hover {
    text-decoration: underline;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #8c8c8c;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    gap: 8px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* Vue应用加载优化 - 防止闪屏 */
.vue-app-loading #app {
    visibility: hidden;
}
.vue-app-mounted #app {
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-header h1 span,
    .nav-link span,
    .sub-link span {
        display: none;
    }
    
    .nav-link i,
    .sub-link i {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 60px;
        padding: 16px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .user-info {
        gap: 12px;
    }
}


/* 20260319  增加class为haupt_tb的table样式 */
table.haupt_tb
{
	white-space:pre-wrap;
	border-collapse:collapse;
	margin-top: 5px;
	margin: 0 auto;
	width: 95%;
	text-align: center;
	white-space:pre-wrap;
}

/* 202304 固定表头sticky */
.haupt_tb thead, th
{
	font-family:'Arial';
	font-size: 13px;
	border: 2px solid #808080;
	padding:1px;
	background: purple;	 /* 避免内容穿透 */
    font-weight: bold;
	position:sticky; 
	top:0; 	/* 表头固定在顶部 */
	z-index: 1;  /* 确保表头在滚动时覆盖内容 */
}
.haupt_tb tbody, td
{
	font-family:'Arial';
	font-size: 13px;
	border: 2px solid #808080;
	padding:1px;
}
.haupt_tb tr:hover
{
	background-color: #FFFFCC;
}

table.haupt_tb_narrow
{
	white-space:pre-wrap;
	border-collapse:collapse;
	margin-top: 5px;
	margin: 0 auto;
	width: 60%;
	text-align: center;
	white-space:pre-wrap;
}

.haupt_tb_narrow thead, th
{
	font-family:'Arial';
	font-size: 13px;
	border: 2px solid #808080;
	padding:1px;
	background-color: lightseagreen;
	color: #FFF;
    font-weight: bold;
}
.haupt_tb_narrow tbody, td
{
	font-family:'Arial';
	font-size: 13px;
	border: 2px solid #808080;
	padding:1px;
}
.haupt_tb_narrow tr:hover
{
	background-color: #FFFFCC;
}