/* User list page styles */
.user-list-panel {
    padding: 20px;
}

.user-list-actions {
    margin-bottom: 20px;
}

.user-list-table {
    width: 100%;
    height: 400px;
}

.user-list-toolbar {
    padding: 5px;
}
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 登录页面样式 - 右侧对齐 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.login-container.right-aligned {
    justify-content: flex-end;
    padding-right: 10%;
}

.login-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* 动态背景动画 - 增强兼容性 */
.login-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    -webkit-animation: gradientBG 15s ease infinite;
    animation: gradientBG 15s ease infinite;
}

@-webkit-keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 浮动动画元素 */
.login-bg-animation::before,
.login-bg-animation::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-animation: float 8s ease-in-out infinite;
    animation: float 8s ease-in-out infinite;
}

.login-bg-animation::before {
    top: 20%;
    left: 20%;
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.login-bg-animation::after {
    bottom: 20%;
    right: 20%;
    -webkit-animation-delay: 4s;
    animation-delay: 4s;
}

@-webkit-keyframes float {
    0%, 100% {
        -webkit-transform: translateY(0px) rotate(0deg);
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        -webkit-transform: translateY(-40px) rotate(180deg);
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.2;
    }
}

@keyframes float {
    0%, 100% {
        -webkit-transform: translateY(0px) rotate(0deg);
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        -webkit-transform: translateY(-40px) rotate(180deg);
        transform: translateY(-40px) rotate(180deg);
        opacity: 0.2;
    }
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

button {
    width: 100%;
    padding: 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5a67d8;
}

.error-message {
    color: #e53e3e;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #fed7d7;
    border-radius: 5px;
}

/* 后台管理样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #2d3748;
    color: white;
    padding: 1rem;
}

.sidebar h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar-menu a:hover {
    background: #4a5568;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: white;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #718096;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3748;
}

.content-section {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.logout-btn {
    background: #e53e3e;
    margin-top: 2rem;
}

.logout-btn:hover {
    background: #c53030;
}

/* 主页新增样式 */
.header-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 30px;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
}

.header-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-main h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 1.2rem;
    color: #26d0ce;
    margin-left: 10px;
}

.slogan {
    margin: 5px 0 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.login-btn {
    background: linear-gradient(to right, #26d0ce, #1a2980) !important;
    border: none !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

/* 侧边栏优化 */
.easyui-accordion {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 0 10px 0 0 !important;
}

.easyui-accordion .panel-title {
    font-weight: bold !important;
    color: #333 !important;
}

.easyui-accordion li a {
    color: #555 !important;
    transition: all 0.2s !important;
}

.easyui-accordion li a:hover {
    color: #1a2980 !important;
    padding-left: 5px !important;
}

/* 登录页面新增样式 */
#loginStatus {
    width: auto;
    text-align: center;
}

.login-back-btn {
    width: 89px;
    margin-top: 10px;
}

.error-message.hidden {
    display: none;
}

/* 主页欢迎区域样式 */
.welcome-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-content h2 {
    font-size: 2.2rem;
    color: #1a2980;
    margin-bottom: 15px;
}

.welcome-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #26d0ce;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #1a2980;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* User management page styles */
.user-management-sidebar {
    width: 200px;
    padding: 10px;
}

.user-management-content {
    padding: 10px;
}

.user-management-welcome {
    padding: 20px;
}