body{
    font-size: 1em;
    font-family: "Microsoft YaHei";
    color: #535353;
    box-sizing: border-box;
    background-color: #0a2463; /* 添加背景颜色，确保在加载背景图之前也能显示 */
    background: url("../images/open.jpg") no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    background-size: cover;
}
*{
    margin: 0;
    padding: 0;
}
a{
    text-decoration: none;
    color:#374782;
}
input{
    outline: none;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 5%, #2575fc 60%);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/login-bg.jpg") no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}
.system-name {
    color: #333;
    font-size: 24px;
    margin-top: 10px;
    font-weight: 600;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 弹出消息样式 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2000 !important;
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

th, td {
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

th {
    font-weight: 600;
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f5f5f5;
}

.delete-btn {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.dict-section {
    max-height: 35vh; /* 调整容器高度 */
    overflow-y: auto;
    margin-bottom: 20px;
}

.dict-section h2 {
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.action-buttons {
    margin-top: 10px;
}

.action-buttons button {
    margin-right: 10px;
}

.btn-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.7), rgba(37, 117, 252, 0));
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
    filter: blur(50px);
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.7), rgba(37, 117, 252, 0));
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
    filter: blur(50px);
}

.login-container {
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.logo-container {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}


.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 14px;
    z-index: 1;
}

.login-footer a {
    color: #2575fc;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-loader {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.login-loader i {
    color: #2575fc;
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.form-group {
    position: relative;
    margin-bottom: 20px;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
    outline: none;
}

.form-group .icon {
    position: absolute;
    right: 15px;
    top: 38px;
    color: #888;
    transition: all 0.3s ease;
}

.form-control:focus ~ .icon {
    color: #2575fc;
}


.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a0dc8 0%, #1a5dc8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #777;
    font-size: 14px;
    z-index: 1;
}

.login-footer a {
    color: #2575fc;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-loader {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.login-loader i {
    color: #2575fc;
    font-size: 24px;
    animation: spin 1s linear infinite;
}



/* 操作按钮样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.action-buttons button.modify {
    background-color: #4CAF50;
    color: white;
}

.action-buttons button.delete {
    background-color: #f44336;
    color: white;
}

    /* 表单组样式 */
    .form-group {
        margin-bottom: 15px;
    }

    /* 标签样式 */
    .form-group label {
        display: block;
        margin-bottom: 5px;
    }

    /* 输入框样式 */
    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
    }


    /* 响应式调整 */
    @media (max-width: 600px) {
        .form-group input {
            padding: 8px;
        }
    }

    .login-btn:hover {
        background-color: #45a049;
    }

    .delete-btn {
        padding: 10px 20px;
        background-color: #f44336;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }

    .delete-btn:hover {
        background-color: #d32f2f;
    }

    .dict-section {
        max-height: 35vh; /* 调整容器高度 */
        overflow-y: auto;
        margin-bottom: 20px;
    }