* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #app {
    width: 100%;
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

/* ======= 登录页 ======= */
.login-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4a90e2 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    border-radius: 50%;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    border-radius: 50%;
}

.login-box {
    width: 420px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 40px 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    color: #303133;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-header p {
    color: #909399;
    font-size: 14px;
}

.login-form {
    margin-top: 20px;
}

.login-tip {
    text-align: center;
    margin-top: 15px;
}

/* ======= 后台布局 ======= */
.app-container {
    height: 100%;
}

.app-aside {
    background-color: #304156;
    transition: width 0.28s;
    overflow: hidden;
}

.logo {
    height: 60px;
    line-height: 60px;
    text-align: center;
    color: #fff;
    background-color: #263445;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.app-aside .el-menu {
    border-right: none;
}

.app-header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #e4e7ed;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .el-breadcrumb {
    margin-left: 20px;
}

.header-right .user-info {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #303133;
}

.app-main {
    background-color: #f0f2f5;
    padding: 18px;
    overflow-y: auto;
}

/* ======= 卡片通用 ======= */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.search-bar {
    padding: 10px 0 20px;
}

.pagination-bar {
    margin-top: 20px;
    text-align: right;
}

/* ======= 首页统计 ======= */
.stat-card .el-card__body {
    padding: 20px;
}

.stat-card {
    border-radius: 8px;
}

.stat-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    margin-right: 15px;
}

.stat-icon {
    font-size: 30px;
    color: #fff;
}

.stat-info {
    overflow: hidden;
}

.stat-title {
    font-size: 14px;
    color: #909399;
    margin-bottom: 8px;
}

.stat-num {
    font-size: 28px;
    font-weight: 600;
    color: #303133;
}

/* ======= 时间线 ======= */
.el-timeline-item__node--normal {
    width: 14px;
    height: 14px;
}

.el-timeline-item__content h4 {
    margin-bottom: 8px;
    color: #303133;
}

.el-timeline-item__content p {
    color: #606266;
    font-size: 13px;
    margin: 0;
}

/* Element UI 表格头部颜色调整 */
.el-table th.el-table__cell {
    background-color: #fafafa;
}
