/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: #f0f2f5;
    color: #333;
}

/* 主布局 */
.main {
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单 */
.sidebar {
    width: 200px;
    background: #001529;
    color: #fff;
    flex-shrink: 0;
}

.sidebar .logo {
    height: 64px;
    line-height: 64px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar .menu {
    list-style: none;
}

.sidebar .menu li {
    padding: 0 20px;
}

.sidebar .menu li a {
    display: block;
    height: 50px;
    line-height: 50px;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar .menu li.active a,
.sidebar .menu li a:hover {
    color: #fff;
}

/* 右侧内容区 */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部导航 */
.header {
    height: 64px;
    background: #fff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}

.header .user {
    color: #666;
}

.header .user span {
    margin-right: 20px;
}

.header .user a {
    color: #1890ff;
    cursor: pointer;
}

/* 内容区域 */
.content {
    flex: 1;
    background: #f0f2f5;
    overflow: auto;
}

/* 面板样式 */
.panel {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.panel-heading {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-heading h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.panel-body {
    padding: 20px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.table th {
    background: #fafafa;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    padding: 0 15px;
    height: 32px;
    line-height: 32px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-default {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}

.btn-default:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

/* 弹窗样式 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dialog-content {
    width: 500px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 10000;
}

.dialog-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialog-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.dialog-header .close {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
}

.dialog-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.dialog-footer {
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    background: #fff;
}

.dialog-footer .btn {
    margin-left: 10px;
}

/* 防止页面滚动 */
body.dialog-open {
    overflow: hidden;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-control {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
}

.form-control:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

/* 图片上传 */
.upload-box {
    width: 100px;
    height: 100px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-box .upload-btn {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    padding: 0 15px;
    height: 32px;
    line-height: 32px;
    border: 1px solid #d9d9d9;
    background: #fff;
    margin: 0 5px;
    cursor: pointer;
    outline: none;
}

.pagination button:disabled {
    color: #999;
    cursor: not-allowed;
}

.pagination span {
    margin: 0 10px;
    color: #666;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-right: 10px;
}

.search-box select {
    width: 120px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-right: 10px;
} 