* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 前台全屏布局样式 */
body:not(.admin-page) {
    background: #f5f7fa;
    min-height: 100vh;
}

/* 后台管理页面的body样式 */
body.admin-page {
    background: #f0f2f5;
    overflow: hidden;
}

/* 全屏容器 */
.fullscreen-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* 页面标题 */
.page-header {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
}

.page-header h2 {
    margin: 0;
    color: #303133;
    font-size: 24px;
    font-weight: 600;
}

/* 全屏表单 */
.fullscreen-form {
    flex: 1;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
}

/* 表单字段间距 */
.fullscreen-form .el-form-item {
    margin-bottom: 20px;
}

/* 标签样式 - 上下结构 */
.fullscreen-form .el-form-item__label {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #606266;
}

/* 按钮容器占满宽度 */
.fullscreen-form .el-form-item__content {
    width: 100%;
}

.tip-text {
    color: #909399;
    font-size: 14px;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #f5f7fa;
    border-top: 1px solid #e4e7ed;
}

.footer a {
    color: #409EFF;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    text-decoration: underline;
}

/* 后台管理样式 */
.admin-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: #304156;
    height: 100vh;
    flex-shrink: 0;
}

.admin-main {
    flex: 1;
    background: #f0f2f5;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    flex-shrink: 0;
}

.admin-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.admin-menu {
    border-right: none;
    height: calc(100vh - 61px);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
}

.login-container .form-card {
    width: 100%;
    max-width: 400px;
}

/* 响应式布局 - 手机端适配 */
@media (max-width: 768px) {
    .page-header {
        padding: 15px;
    }
    
    .page-header h2 {
        font-size: 18px;
    }
    
    .fullscreen-form {
        padding: 15px;
    }
    
    .footer {
        padding: 15px;
        font-size: 13px;
    }
}

/* 超小屏幕（<576px） */
@media (max-width: 576px) {
    .page-header {
        padding: 12px;
    }
    
    .page-header h2 {
        font-size: 16px;
    }
    
    .fullscreen-form {
        padding: 10px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .fullscreen-container .fullscreen-form {
        max-width: 1000px !important;
        width: 1000px !important;
        margin: 0 auto !important;
        padding: 40px !important;
    }
}

/* 超大屏幕优化 */
@media (min-width: 1600px) {
    .fullscreen-container .fullscreen-form {
        max-width: 1200px !important;
        width: 1200px !important;
        margin: 0 auto !important;
        padding: 50px 80px !important;
    }
}

/* Element Plus 图片预览层级修复 */
.el-image-viewer__wrapper {
    z-index: 9999 !important;
}

.el-overlay {
    z-index: 9998 !important;
}

/* 修复对话框内下拉框层级问题 */
.el-popper {
    z-index: 9999 !important;
}

.el-select__popper {
    z-index: 9999 !important;
}

/* 对话框中的下拉菜单 */
.dialog-select-dropdown {
    z-index: 10000 !important;
}
