
/* 全局样式 */
:root {
    --primary-color: #165DFF;
    --secondary-color: #36CFC9;
    --danger-color: #F53F3F;
    --warning-color: #FF7D00;
    --success-color: #00B42A;
    --light-bg: #F2F3F5;
    --line-color: #DCDFE6;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: #1D2129;
    line-height: 1.6;
}


/* toast start */
@-webkit-keyframes toastAnimation {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes toastAnimation {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, -100%, 0);
            transform: translate3d(0, -100%, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}
.toastAnimation {
  -webkit-animation-name: toastAnimation;
          animation-name: toastAnimation;
}
.toast-message {
	text-align:center;
	color:#fff;
	max-width:500px;
	position:fixed;
	z-index:999999;
    padding: 15px;
    font-size: 16px;
    line-height: 22px;
    border-radius: 0.2rem;

	-webkit-animation:toastAnimation 0.3s ease 0s 1 normal;
	animation:toastAnimation 0.3s ease 0s 1 normal;
}
.mr-2 { margin-right: 0.5rem !important; }
/* toast end */

/* 导航栏美化 */
.nav-item:hover ul { display: block !important; } /* 二级菜单 */

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand::before {
    content: "";
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 4px;
    background: url(../img/logo2.png) no-repeat center center;
    background-size: 24px 24px;
}

.nav-link {
    position: relative;
    margin: 0 4px;
    padding: 0.5rem 0.75rem !important;
}

.nav-link.active::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: white;
    border-radius: 3px 3px 0 0;
}

.dropdown-menu {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0;
    background: rgba(13, 110, 253, 1);
    color: #ccc;
}
.dropdown-menu .dropdown-item{
    color: rgba(255, 255, 255, .7) !important;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, .2);
    color: var(--primary-color);
}

/* 卡片样式美化 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #F2F3F5;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* 按钮样式美化 */
.btn {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0E42D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #00872A;
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #E02020;
}

/* 表格样式美化 */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th, .table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table thead {
    background-color: #F7F8FA;
}

.table th {
    font-weight: 500;
    color: #4E5969;
    border-bottom: 2px solid #F2F3F5;
}

.table-hover tbody tr:hover {
    background-color: #F7F8FA;
}

.table-bordered {
    border: 1px solid #F2F3F5;
}

.table-bordered th, .table-bordered td {
    border: 1px solid #F2F3F5;
}

/* 表单样式美化 */
.line-color,.btn-outline-secondary{
    border-color: var(--line-color) !important;
}
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--line-color);
    padding: 0.375rem 0.75rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
}

/* 模态框样式美化 */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #F2F3F5;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #F2F3F5;
}

/* 分页样式美化 */
.pagination {
    margin: 1rem 0;
}

.page-link {
    color: #4E5969;
    border: 1px solid var(--line-color);
    border-radius: 6px;
    margin: 0 4px;
    transition: var(--transition);
}

.page-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: #F0F5FF;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 特殊区域样式 */
.badge {
    border-radius: 4px;
    padding: 0.25em 0.5em;
    font-weight: 500;
    font-size: 0.875rem;
}

.log-type-sensitive {
    background-color: rgba(245, 63, 63, 0.1);
    color: var(--danger-color);
}
.log-type-sensitive1 {
    background-color: rgba(245, 63, 63, 0.1);
    color: #f53f3f;
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 4px;
}

.log-detail-card {
    background-color: #F7F8FA;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.image-viewer {
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.series-list {
    border-radius: 8px;
}


        .upload-area {
            border: 2px dashed #ccc;
            border-radius: 0.375rem;
            padding: 1rem 1rem;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
        }
        .upload-area:hover {
            border-color: #1e88e5;
            background-color: #f0f7ff;
        }
        .upload-area.active {
            border-color: #28a745;
            background-color: #f0fff4;
        }
        .file-item {
            display: flex;
            align-items: center;
            padding: 0.5rem;
            margin-bottom: 0.5rem;
            background-color: #f8f9fa;
            border-radius: 0.25rem;
        }
        .file-progress {
            height: 5px;
            margin-top: 0.5rem;
            background-color: #e9ecef;
            border-radius: 3px;
            overflow: hidden;
        }
        .file-progress-bar {
            height: 100%;
            background-color: #28a745;
            width: 0%;
            transition: width 0.3s ease;
        }

/* 响应式优化 */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 0.5rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .row > * {
        margin-bottom: 1rem;
    }
}



/* 系统通知样式 */
.system-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--danger-color);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 350px;
    max-width: 90%;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    z-index: 1050; /* 确保在模态框之上 */
}

.system-notification.show {
    transform: translateX(0);
}

.notification-content h6 {
    margin: 0 0 8px 0;
    color: var(--danger-color);
    font-weight: bold;
}

.notification-content p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.notification-content a {
    text-decoration: none;
    color: var(--danger-color);
}

.close-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
}

.close-notification:hover {
    color: #333;
}



        .card-header {
            background-color: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
        }
        .form-label {
            font-weight: 500;
        }
        .status-success {
            color: #198754;
        }
        .status-danger {
            color: #dc3545;
        }
        .step-indicator {
            display: inline-block;
            width: 24px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            background-color: #0d6efd;
            color: white;
            border-radius: 50%;
            margin-right: 8px;
        }
