/* 全局样式 */
* {
    border-radius: 0 !important;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* 顶部导航栏 */
.navbar {
    background: linear-gradient(135deg, #1c6c42 0% 0%, #28744b 50%, #206e44 100%);
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff !important;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 15px 24px !important;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #00773e);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-link:hover::before {
    width: 300px;
    height: 300px;
}

.user-info {
    color: #ffffff;
    font-weight: 500;
    padding: 0 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 左侧部分：系统名称和导航 */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 右侧部分：登录人信息 */
.navbar-right {
    display: flex;
    align-items: center;
}

.user-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 25px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin-right: 20px;
}

.user-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

.user-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #d0d7de;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
}

.user-menu-item {
    display: block;
    padding: 10px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-menu-item:hover {
    background-color: #f0f2f5;
    color: #00773e;
}

.user-menu-item:first-child {
    border-bottom: 1px solid #e0e0e0;
}

/* 主内容区域 */
.container {
    max-width: 95%;
    width: 100%;
}

.main-content {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* 卡片样式 */
.card {
    border: 1px solid #d0d7de;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 2px solid #00773e;
    font-weight: 600;
    padding: 15px 20px;
    font-size: 16px;
}

.card-body {
    padding: 20px;
    background-color: #ffffff;
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    padding: 8px 20px;
    font-size: 14px;
}

.btn-primary {
    background-color: #00773e;
    border-color: #00773e;
}

.btn-primary:hover {
    background-color: #006635;
    border-color: #006635;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

.table td {
    padding: 12px 15px;
}





/* 响应式调整 */
@media (max-width: 992px) {
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .user-info {
        margin-top: 10px;
    }
}

/* 输入框样式 */
.form-control {
    border: 1px solid #d0d7de;
    padding: 8px 12px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #00773e;
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 62, 0.25);
}

/* 表单标签样式 */
.form-label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* 警告信息样式 */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* 间距调整 */
.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* 文本对齐 */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* 文本颜色 */
.text-info {
    color: #17a2b8 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* 边框样式 */
.border {
    border: 1px solid #dee2e6 !important;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-left {
    border-left: 1px solid #dee2e6 !important;
}

.border-right {
    border-right: 1px solid #dee2e6 !important;
}

/* 边距调整 */
.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* 宽度调整 */
.w-50 {
    width: 50% !important;
}

.w-100 {
    width: 100% !important;
}

/* 按钮组样式 */
.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 输入组样式 */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #f8f9fa;
    border: 1px solid #d0d7de;
    border-radius: 0 !important;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .form-control:focus {
    z-index: 3;
}

.input-group > .input-group-text {
    flex: 0 0 auto;
}

.input-group > .form-control:not(:last-child),
.input-group > .input-group-text:not(:last-child) {
    border-right: 0;
}

.input-group > .form-control:not(:first-child),
.input-group > .input-group-text:not(:first-child) {
    border-left: 0;
}