/* Element UI 自定义样式 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#app {
    height: 100%;
}

/* 整体布局 */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 顶栏 */
.app-header {
    background: #fff !important;
    height: 60px !important;
    line-height: 60px !important;
    padding: 0 !important;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
    border-bottom: 1px solid #e6e6e6;
    flex-shrink: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
}

.header-container .logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #409EFF;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    height: 60px;
}

.welcome-text {
    margin-right: 10px;
    color: #606266;
    font-size: 14px;
}

.toggle-btn {
    font-size: 20px;
    cursor: pointer;
    color: #606266;
}

.toggle-btn:hover {
    color: #409EFF;
}

/* 侧边栏 */
.sidebar {
    width: 200px;
    background: #fff;
    border-right: 1px solid #e6e6e6;
    overflow-y: auto;
    transition: width 0.3s;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 64px;
}

.sidebar.collapsed .el-menu-item span,
.sidebar.collapsed .el-submenu__title span {
    display: none;
}

.sidebar.collapsed .el-menu-item,
.sidebar.collapsed .el-submenu__title {
    padding: 0 20px !important;
    text-align: center;
}

.sidebar.collapsed .el-menu-item i,
.sidebar.collapsed .el-submenu__title i {
    margin-right: 0;
    font-size: 18px;
}

.sidebar .el-menu {
    border-right: none !important;
}

/* 主内容区域 */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background-color: #f0f2f5;
}

/* 面包屑 */
.breadcrumb-section {
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #e6e6e6;
    flex-shrink: 0;
}

.breadcrumb-section .el-breadcrumb {
    line-height: 24px;
}

/* 内容区 */
.content-section {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

/* 底部栏 */
.footer {
    background: #fff;
    border-top: 1px solid #e6e6e6;
    padding: 12px 20px;
    text-align: center;
    color: #909399;
    font-size: 12px;
    flex-shrink: 0;
}

/* 页面标题区域 */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title-bar h3 {
    margin: 0;
    font-size: 20px;
    color: #303133;
}

/* 登录页 */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #d2d6de;
}

.login-box {
    width: 420px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

.login-header {
    text-align: center;
    padding: 25px 20px 15px;
    border-bottom: 1px solid #ebeef5;
}

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

.login-body {
    padding: 25px 35px 30px;
}

.login-body .el-input__inner {
    height: 48px;
    border-radius: 6px;
}

.login-body .el-form-item__label {
    line-height: 48px;
}

.login-body .login-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    border-radius: 6px;
}

/* 兼容旧登录页的 login-card 样式 */
.login-card {
    width: 400px;
    border-radius: 8px;
}

/* 验证码 */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-row .el-input {
    flex: 1;
}

.captcha-img {
    width: 140px;
    height: 48px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.captcha-img:hover {
    border-color: #409EFF;
}

.login-card .el-card__body {
    padding: 30px 40px;
}

.login-title {
    text-align: center;
    font-size: 22px;
    color: #303133;
    margin: 0 0 30px 0;
    font-weight: 600;
}

/* 首页卡片 */
.dashboard-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-card .el-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.dashboard-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.dashboard-card .card-title {
    font-size: 16px;
    color: #606266;
    margin-bottom: 10px;
}

/* 表单页面 */
.form-wrapper {
    max-width: 600px;
    background: #fff;
    padding: 25px;
    border-radius: 4px;
}

/* 列表页 */
.list-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}
