
.container {
    max-width: 1200px; /* 设置最大宽度 */
    margin: 0 auto; /* 上下边距为0，左右自动调整以居中 */
    padding: 0 15px; /* 添加一些内边距以确保内容不会紧贴边缘 */
}

/* 登录页面样式 */
body {
    background-color: #3498db;
    color: #000;
    font-family: 'Arial', sans-serif;
    text-align: center; /* 使用文本居中代替 display: flex; */
    height: 100vh;
    margin: 0;
}

.login-container {
    width: 280px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 20vh;
    margin-left: auto;
    margin-right: auto;
}



h2 {
    margin-top: 5px;
    font-size: 35px;
    width: 100%;
    color: #fff;
    background-color: #3498db;
    border-radius: 5px;
    display: block;
    text-shadow: 2px 2px 2px rgba(51, 51, 51, 10);
    margin-bottom: 5px;
}


h3 {
    margin-top: 5px;
    font-size: 25px;
    width: 100%;
    color: #ff0505;
    border-radius: 5px;
    display: block;
    text-shadow: 1px 1px 1px rgba(20, 51, 51, 5);
    margin-bottom: 5px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0px;
    text-align: right;
}

input {
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #3498db;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

.register-link {
    display: block;
    color: #3498db;
    margin-top: 10px;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}


/* 登录页面样式 */

/* ====================header.php头部样式====================== */

.site-header {
    background-color: #3498db;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 基本样式重置 */
.site-nav {
    position: relative;
    z-index: 2;
}

.site-nav ul {
    list-style: none;
    display: flex;
    padding-left: 0;
    margin: 0;
    align-items: center;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    padding: 0 10px;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.site-nav ul li {
    position: relative;
    margin: 0 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav ul li:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

.site-nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    display: block;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.site-nav a:hover::before {
    left: 100%;
}

.site-nav ul li:hover {
    transform: translateY(-2px);
}

.site-nav ul li:hover a {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* 当前页面高亮样式 */
.site-nav ul li.active a {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    font-weight: 700;
}

.site-nav ul li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    
    .site-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 10px;
        gap: 5px;
    }
    
    .site-nav ul li {
        margin: 2px;
    }
    
    .site-nav a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .site-nav ul {
        flex-direction: column;
        width: 100%;
        border-radius: 15px;
    }
    
    .site-nav ul li {
        width: 100%;
        margin: 2px 0;
    }
    
    .site-nav ul li:not(:first-child)::before {
        display: none;
    }
    
    .site-nav a {
        text-align: center;
        padding: 12px;
        border-radius: 10px;
    }
}



.content-container {
    max-width: calc(100% - 5%);
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display：block;
}
/* ====================header.php头部样式====================== */

/* 注册页样式 */
.register-container {
    width: 300px;
    margin: 0 auto; /* 水平居中 */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 20vh;
}
/* 注册页样式 */


/* =========================index.php流程主界面样式 ================================*/
/*两个大容器，分类区分*/
.project-details {
    border: 1px solid #ccc; /* 添加边框，可以根据需要调整颜色和宽度 */
    background-color: #f0f0f0; /* 添加底色，可以根据需要调整颜色 */
    padding: 10px; /* 可选，根据需要调整内边距 */
    margin-top: 10px; /* 设置顶部间距为20px，可以根据需要调整距离 */
    border-radius:5px;
}

.index-top {
    border: 1px solid #ccc; /* 添加边框，可以根据需要调整颜色和宽度 */
    background-color: #f0f0f0; /* 添加底色，可以根据需要调整颜色 */
    padding: 10px; /* 可选，根据需要调整内边距 */
    border-radius:5px;
}
/*两个大容器，分类区分*/

/*卡控表表头信息样式*/
.table-info {
    display: inline-block;
    margin-bottom: 3px;
    padding: 7px 10px;
    line-height: 1;
    font-size: 18px;
    border-radius: 5px;
    margin-right: 5px;
    color: #fff !important;
}

/* 作业信息录入样式 */
.user-input {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.user-input h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.form-group {
    margin-bottom: 3px;
}

.control-label {
    float: left;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    padding-top: 5px;
}

.form-control {
    width: 60%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #3498db;
    border-radius: 5px;
    float: right;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 40%;
    float: left;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 40%;
    float: right;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.8;
}

/* 作业信息录入样式 */


.index-container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.workflow-banner {
    background-color: #3498db;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.workflow-template {
    border: 1px solid #3498db;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.add-template-btn {
    display: block;
    margin-top: 20px;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
}

    #dynamic-time {/* 时间日期 */
    font-weight: bold;
    font-size: 25px;
    color: #fff;
    background-color: transparent;
    padding: 5px;
    border-radius: 5px;
    margin: 0px;
    display: block; /* 独占一行 */
    text-shadow: 2px 2px 2px rgba(51, 51, 51, 10);
    margin-left: auto;
        }


/* index.php 表格样式 */
.index-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px; /* 添加上边距 */
}

.index-table th,
.index-table td {
    border: 1px solid #3498db; /* 设置边框颜色 */
    padding: 5px; /* 设置单元格内边距 */
    text-align: center;
    line-height: 1.5; /* 设置行高，可以根据需要调整 */
}

.index-table th {
    background-color: #3498db; /* 设置表头背景颜色 */
    color: white; /* 设置表头文字颜色 */
    border: 1px solid #000000;
}

.index-table td {
    background-color: #f2f2f2; /* 设置偶数行背景颜色 */
}

/* 使用:nth-child来设置奇数行背景颜色 */
.index-table tr:nth-child(odd) td {
    background-color: #ffffff; /* 设置奇数行背景颜色 */
}


/* index.php 表格样式 */    
/* index.php 使用此项目按钮样式 */    
.useProjectBtn-button {
    background-color: #3498db;
    line-height: 30px;
    font-size: 15px;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
}
.useProjectBtn-button:hover {
    background-color: #82c8f7; /* 悬停时的背景颜色 */
}

/* index.php 执行回退按钮样式 */    
.execute-button {
    background-color: #1a9332;
    line-height: 25px;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
}
.execute-button:hover {
    background-color: #30cd50; /* 悬停时的背景颜色 */
}

.rollback-button {
    background-color: #ffb515;
    line-height: 25px;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
}

.rollback-button:hover {
    background-color: #f9cb68; /* 悬停时的背景颜色 */
}

.save-Button{
    background-color: #3498db;
    line-height: 25px;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
    font-size: 18px;
    width: 100px;
}
.save-Button:hover {
     background-color: #82c8f7;  /* 悬停时的背景颜色 */
}
/* =========================index.php流程主界面样式 ================================*/



/*===================== new.php 样式 ======================*/
.new-label {
    margin-bottom: 0;
    text-align: center;
}


/* new.php 表格样式 */
.new-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px; /* 添加上边距 */
}

.new-table td {
    border: 1px solid #3498db; /* 设置边框颜色 */
    text-align: left;
    line-height: 1.5; /* 设置行高，可以根据需要调整 */
}

.new-table th {
    border: 1px solid #000000; /* 设置边框颜色 */
    padding: 5px; /* 设置单元格内边距 */
    text-align: center;
    line-height: 1.5; /* 设置行高，可以根据需要调整 */
    background-color: #3498db; /* 设置表头背景颜色 */
    color: white; /* 设置表头文字颜色 */
}

.new-table td input[type='checkbox'] {
    margin-right: 5px; /* 调整复选框与文字的间距 */
}

.new-table td textarea {
    width: 100%; /* 输入框宽度100% */
    box-sizing: border-box; /* 输入框包含边框和内边距在内的盒子尺寸 */
    overflow-y: hidden; /* 隐藏垂直滚动条 */
    resize: vertical; /* 禁止调整输入框的宽度 */
}
/*===================== new.php 样式 ======================*/


/*===================== edit.php 样式 ======================*/

/* edit.php 表格样式 */
.edit-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px; /* 添加上边距 */
}

.edit-table th,
.edit-table td {
    border: 1px solid #3498db; /* 设置边框颜色 */
    text-align: center;
    line-height: 1.5; /* 设置行高，可以根据需要调整 */
}

.edit-table th {
    background-color: #3498db; /* 设置表头背景颜色 */
    color: white; /* 设置表头文字颜色 */
    border: 1px solid #000000;
}

/* 隔行换色 */
.edit-table tr:nth-child(odd) {
    background-color: #ffffff; /* 设置奇数行背景颜色 */
}

.edit-table tr:nth-child(even) {
    background-color: #dfedf7; /* 设置偶数行背景颜色 */
}

/* 按钮样式 */
.h2-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 使子元素对齐到容器的左侧 */
}


.new-process-button {
    font-size: 18px;
    color: #fff;
    background-color: #dd980b;
    padding: 5px;
    border-radius: 5px;
    margin-top: 5px;
    display: block;
    width: 100px;
    text-shadow: 2px 2px 2px rgba(51, 51, 51, 10);
    text-decoration: none;
}


.new-process-button:hover {
    background-color: #edb452;
}
/* 按钮样式 */
/*===================== edit.php 样式 ======================*/

/*===================== dircetory.php 样式 ======================*/
.edit-button {
    background-color: #1a9332;
    line-height: 20px;
    border: none;
    Padding: 2px 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
}

.edit-button:hover {
    background-color: #52c769;
}
.delete-button {
    background-color: #c30808;
    line-height: 20px;
    border: none;
    Padding: 2px 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
}

.delete-button:hover {
    background-color: #f14e4e;
}

.rename-button {
    background-color: #ff8c00;
    line-height: 20px;
    border: none;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
    font-size: 12px;
    white-space: nowrap;
}

.rename-button:hover {
    background-color: #ffa500;
}

.rename-button-right {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-60%);
    vertical-align: middle;
    line-height: 2;
}
/*===================== dircetory.php 样式 ======================*/


/*====================== 底部样式 ======================*/
.site-footer {
    background-color: #3498db; /* 深蓝色背景 */
    display：block;
    color: #ffffff; /* 文字颜色为白色 */
    text-align: center; /* 文字居中 */
    padding: 10px 0; /* 上下内边距为10px，左右为0 */
    font-size: 16px; /* 文字大小 */
}

.site-footer .container {
    max-width: 1140px; /* 容器最大宽度 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 15px; /* 容器的内边距 */
}


/*====================== check_record.php样式 ======================*/
.tableheader {
    justify-content: space-between;
    align-items: center;
}

.title-container {
    flex-grow: 1;
    text-align: center;
}

.buttons button {
    margin-left: 10px; /* 为按钮之间添加一些间距 */
    /* 可以添加更多的样式来改善按钮的外观 */
}

/*====================== check_record.php样式 ======================*/


/*====================== 打印样式 ======================*/


/* 打印样式 */
@media print {
    /* 隐藏不需要打印的部分 */
    .site-header, .site-nav, .logo, #dynamic-time, .buttons, .h2-container, .site-footer {
        display: none;
    }
    
    .tableheader, .tablesecondrow, .table-info, .index-table {
        width: 100%;
    }
    
    .title-container {
        font-size: 24px; /* 打印时调整字体大小 */
    }
    
    .table-info {
        display: block; /* 打印时每个信息块独占一行 */
        margin-bottom: 10px;
    }
    
    .index-table th, .index-table td {
        font-size: 12px; /* 打印时调整表格内容的字体大小 */
        color: #000;
        border: 1px solid #000000;
    }
    
 /* 其他打印样式 */

    .tablesecondrow {
        display: flex;
        justify-content: space-between; /* 在元素之间提供均匀的空间 */
        flex-wrap: wrap; /* 允许元素在必要时换行 */
        margin-bottom: 10px; /* 添加一些底部外边距 */
        color: #000;
    }

    .table-info {
        flex: 1; /* 允许每个信息块占据等量的空间 */
        margin-right: 10px; /* 在信息块之间添加一些右边距 */
        min-width: 200px; /* 设置最小宽度，避免内容挤压 */
        text-align: left; /* 确保文本左对齐 */
        color: #000 !important;
        margin-bottom: 5px; /* 减小到下一个信息块的底部外边距 */
        padding: 0; /* 减少内边距 */
    }

    /* 针对.table-info内部的<p>或其他元素减小默认的margin */
    .table-info p {
        margin-top: 0;
        margin-bottom: 5px; /* 减小段落之间的外边距 */
    }

    /* 确保最后一个信息块的右边距为0 */
    .table-info:last-child {
        margin-right: 0;
    }
}

/*query.php样式========================================== */
/* 页码样式 */
.pagination {
    display: flex;
    justify-content: center; /* 中心对齐页码 */
    padding: 5px; /* 添加一些填充 */
}

.pagination a {
    margin: 0 5px; /* 页码之间的间距 */
    padding: 5px 10px; /* 内部填充 */
    background-color: #f0f0f0; /* 背景颜色 */
    border: 1px solid #ddd; /* 边框 */
    color: #333; /* 文字颜色 */
    text-decoration: none; /* 去掉下划线 */
    border-radius: 5px; /* 边角圆润 */
    transition: background-color 0.3s; /* 过渡效果 */
}

.pagination a:hover {
    background-color: #ddd; /* 鼠标悬停的背景颜色 */
}

/* 选择框样式 */
    .filter-container {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .filter-container form {
        display: flex;
        align-items: center;
        flex-direction: row;

    }
    
    .filter-container select {
        padding: 5px;
        margin-right: 10px;
    }
    
    .filter-container input[type="submit"] {
        font-size: 15px;
        background-color: #dd980b;
        line-height: 20px;
        border: none;
        Padding: 4px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        color: rgba(255, 255, 255, 1);
        margin: 4px 2px;
        cursor: pointer;
        border-radius: 3px;
        text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
        }
    
    .filter-container input[type="submit"]:hover {
        background-color: #edb452;
    }
    
    .current-page {
        color: #3498db!important; /* 或者您想要的任何颜色 */
        border: 1px solid #3498db!important;
}

/*===================== query.php 查看按钮样式 ======================*/
.view-button {
    background-color: #3498db;
    line-height: 20px;
    border: none;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    color: rgba(255, 255, 255, 1);
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 1px rgba(51, 51, 51, 1);
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.view-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

