/* assets/css/style.css */

/* 全局字体和背景 */
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fb;
    margin: 0;
    padding: 0;
}

/* 登录页面专用背景 */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录卡片容器 */
.login-card-wrapper {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 左侧品牌区 */
.login-left {
    flex: 1;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-left .logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-left h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-left p {
    font-size: 14px;
    opacity: 0.85;
}

/* 右侧登录表单区 */
.login-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h3 {
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.login-right .form-control {
    border-radius: 30px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.login-right .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.login-right .btn-primary {
    border-radius: 30px;
    padding: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    width: 100%;
}

.login-right .btn-primary:hover {
    opacity: 0.9;
}

/* 主布局：侧边栏 + 内容 */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo-small {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

/* 菜单列表 */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-nav .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav .menu-item li {
    margin: 2px 0;
}

/* 主菜单按钮 */
.sidebar-nav .main-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-nav .main-menu-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-nav .main-menu-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 子菜单容器 */
.submenu {
    list-style: none;
    padding-left: 0;
    background: rgba(0,0,0,0.15);
    display: none; /* 默认隐藏，由 JS 控制展开 */
}

.submenu.open {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 20px 10px 50px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.submenu li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.submenu li a.active {
    background: #3498db;
    color: #fff;
    border-radius: 4px;
    margin: 2px 8px;
}

/* 底部退出登录 */
.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #2c3e50;
}

.sidebar-footer a {
    color: #e74c3c;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar-footer a i {
    margin-right: 10px;
}

/* 内容区域 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background: #f5f7fb;
    min-height: 100vh;
}

/* 欢迎卡片 */
.welcome-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.welcome-card h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.welcome-card p {
    font-size: 18px;
    color: #7f8c8d;
}

/* 占位页面样式 */
.placeholder-page {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.placeholder-page h2 {
    color: #34495e;
    font-weight: 600;
}

.placeholder-page .alert {
    margin-top: 20px;
}

/* 修改密码弹窗样式（Bootstrap 默认即可） */