/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 登录页样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.login-form .el-form-item {
    margin-bottom: 25px;
}

.login-btn {
    width: 100%;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
}

/* 主布局样式 */
.main-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 220px;
    background: #304156;
    color: #fff;
}

.sidebar-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #263445;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-menu {
    border-right: none;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
}

.header {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}

.content {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

.content-card {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    min-height: calc(100vh - 140px);
}

/* 表格工具栏 */
.table-toolbar {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 图片上传区域 */
.image-upload-area {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-item .delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f56c6c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 进度弹窗 */
.progress-dialog {
    text-align: center;
}

.progress-dialog .progress-text {
    margin-top: 20px;
    color: #666;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}
