/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

html, body
{
    padding-bottom: 80px;
    height: 100%;
    overflow: hidden; /* 防止整个页面滚动 */
}

/* ===== 顶部导航区域 ===== */
.header-container
{
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



/* ===== 底部页面区域 ===== */

.footer-container
{
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer
{
    height: 70px;      /* 固定高度100px */
    min-height: 60px;   /* 最小高度80px，内容多时会自动撑高 */
    max-height: 70px;  /* 最大高度150px，防止过高 */
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;  /* 平滑过渡 */
    z-index: 1000;
}

.footer-links
{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-links a
{
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover
{
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.footer.hidden
{
    transform: translateY(100%);  /* 向下移动隐藏 */
}


/* LOGO行 */
.logo-row
{
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #eee;
}

.logo
{
    font-size: 28px;
    font-weight: bold;
    color: #1a2980;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon
{
    margin-right: 10px;
    font-size: 32px;
}

.logo-container
{
    display: flex;
    align-items: center;
}

.logo-img
{
    max-height: 60px; /* 控制LOGO最大高度 */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover
{
    transform: scale(1.05);
}

.logo-text
{
    margin-left: 15px;
    font-size: 24px;
    font-weight: bold;
    color: black;
}




/* 登录界面 */
.login-container
{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
}

.login-wrapper
{
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-left
{
    flex: 1;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 40px;
}

.welcome-box h2
{
    margin-bottom: 20px;
    font-size: 28px;
}

.welcome-box p
{
    margin-bottom: 30px;
    opacity: 0.9;
}

.features
{
    margin: 30px 0;
}

.feature-item
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.quote
{
    margin-top: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    font-style: italic;
}

.login-right
{
    flex: 1;
    padding: 40px;
}

.login-form-box
{
    max-width: 400px;
    margin: 0 auto;
}

.login-right
{
    flex: 1;
    padding: 40px;
}

.login-form-box
{
    max-width: 400px;
    margin: 0 auto;
}

.form-header
{
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3
{
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.form-group
{
    margin-bottom: 20px;
    position: relative;
}

.form-group label
{
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input
{
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus
{
    border-color: #3498db;
    outline: none;
}

.toggle-password
{
    position: absolute;
    right: 15px;
    top: 40px;
    cursor: pointer;
    color: #777;
}

.form-options
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox
{
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.forgot-link
{
    color: #3498db;
    text-decoration: none;
}

.btn-login
{
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover
{
    background: linear-gradient(135deg, #2980b9 0%, #1f6396 100%);
    transform: translateY(-1px);
}




/* 主导航条 */

.nav-container
{
    width: 100%;
    background-color: #2c3e50;
}

.navbar
{
    padding: 0;

}

.nav-menu
{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item
{
    position: relative;
    background-color: #2c3e50;  /* 深灰色 */
    color: white;
}

.nav-link
{
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}


.navbar::after
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1; /* 放在导航项后面 */
}

.nav-link:hover,
.nav-link.active
{
    background: rgba(255,255,255,0.1);
    border-bottom-color: #3498db;
}

.nav-link i
{
    margin-right: 8px;
}

.dropdown-menu
{
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

.dropdown-item
{
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover
{
    background: #f5f7fa;
    color: #3498db;
}

.nav-item:hover .dropdown-menu
{
    display: block;
}

.submenu
{
    position: relative;
}

.submenu-dropdown
{
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    display: none;
}

.submenu:hover .submenu-dropdown
{
    display: block;
}







/* ===== 面包屑导航 ===== */
.breadcrumb-container
{
    width: 100%;
    background: #f8f9fa;
    padding: 12px 30px;
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    top: 120px; /* LOGO(70px) + 导航(50px) = 120px */
    left: 0;
    z-index: 999;
}

.breadcrumb
{
    list-style: none;
    display: flex;
    align-items: center;
}

.breadcrumb-item
{
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before
{
    content: ">";
    margin: 0 8px;
    color: #adb5bd;
}

.breadcrumb-item a
{
    color: #1a2980;
    text-decoration: none;
}

.breadcrumb-item a:hover
{
    text-decoration: underline;
}



/* ===== 主内容区域 ===== */
.main-content-container
{
    position: fixed;
    top: 160px; /* 头部总高度 */
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto; /* 启用滚动条 */
    padding: 20px 30px;
    background: #ffffff;
}



/* 自定义滚动条样式 */
.main-content-container::-webkit-scrollbar
{
    width: 10px;
    height: 10px;
}

.main-content-container::-webkit-scrollbar-track
{
    background: #f1f1f1;
    border-radius: 5px;
}

.main-content-container::-webkit-scrollbar-thumb
{
    background: #c1c1c1;
    border-radius: 5px;
}

.main-content-container::-webkit-scrollbar-thumb:hover
{
    background: #a8a8a8;
}

.main-content-container::-webkit-scrollbar-corner
{
    background: #f1f1f1;
}









/* ===== 内容区域样式 ===== */
.page-content
{
    width: 100%;
    margin: 0 auto;
}

.content-section
{
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
}

.section-title
{
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.content-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-item
{
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover
{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}






/*--搜索页面--*/
.search-form
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.search-form-group
{
    display: flex;
    flex-direction: column;
}

label
{
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

select, input[type="text"]
{
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-search
{
    background: #2c3e50;
    color: white;
}

.btn-reset
{
    background: #6c757d;
    color: white;
}

.btn-search:hover
{
    background: #0056b3;
}

.btn-reset:hover
{
    background: #545b62;
}

.search-btn-group
{
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button
{
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}








/* 模块样式 */
.module-header
{
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.module-header h2
{
    color: #2c3e50;
    font-size: 24px;
}





/* DASH BOARD 样式*/

.stats-cards
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card
{
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stat-icon
{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue
{
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-icon.green
{
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.stat-icon.orange
{
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.stat-icon.red
{
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.stat-info h3
{
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

.stat-number
{
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}







/* 表格样式 */

.results-table
{
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.results-table th,

.results-table td
{
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th
{
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.results-table tr:nth-child(even)
{
    background-color: #f9f9f9;
}

.results-table tr:hover
{
    background: #f5f7fa;
}

/* 选中行样式 */
.results-table tr.row-selected
{
    background-color: #dbeafe !important;
    border-left: 4px solid #2563eb;
}
.results-table tr.row-selected td:first-child
{
    border-left: none; /* 避免双重边框 */
}
.results-table tr:hover td
{
    background-color: #f8fafc;
}
.results-table tr.row-selected:hover td
{
    background-color: #bed9ff;
}
.checkbox-col
{
    width: 45px;
    text-align: center;
}
.checkbox-col input[type="checkbox"]
{
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}
/* 分页 */
.pagination-bar
{
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.pagination-item
{
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: white;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: 0.1s;
}
.pagination-item.active
{
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.pagination-item.disabled
{
    color: #94a3b8;
    pointer-events: none;
    background: #f1f5f9;
}
/* 返回顶部按钮 */
.go-top
{
    position: fixed;
    bottom:20px;
    right: 30px;
    background: #1e293b;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    border: none;
    transition: 0.2s;
    z-index: 999;
    text-decoration: none;
}
.go-top:hover
{
    background: #0f172a;
    transform: scale(1.1);
}
.info-message
{
    background: #e6f2ff;
    border-radius: 16px;
    padding: 18px 28px;
    margin: 25px 0;
    border-left: 6px solid #3b82f6;
    font-weight: 500;
}
.reset-link
{
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed;
    margin-left: 15px;
}

.no-results
{
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.results-table-wrapper
{
    background: white;
    border-radius: 20px;
    padding: 5px 0 10px 0;
    box-shadow: 0 8px 25px -10px rgba(0,0,0,0.2);
    overflow-x: auto;
    margin-top: 30px;
}



/* ===== 响应式设计 ===== */
@media (max-width: 768px)
{
    .logo-row, .main-nav, .breadcrumb-container
    {
        padding: 0 15px;
    }

    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-item {
        margin-right: 15px;
    }

    .main-content-container {
        padding: 15px;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeIn
{
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section
{
    animation: fadeIn 0.5s ease-out;
}


/* 完全去除链接样式，看起来像普通文字 */
.text-link {
    color: inherit;          /* 继承父元素颜色 */
    text-decoration: none;   /* 去除下划线 */
    cursor: pointer;         /* 保留手型指针表示可点击 */
}

.text-link:visited {
    color: inherit;          /* 访问后不变色 */
}
