/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f0f2f5;
}

/* 登录页样式 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 24px;
    color: #1890ff;
    font-size: 20px;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.login-form input:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.captcha-container {
    display: flex;
    gap: 8px;
}

.captcha-container input {
    flex: 1;
}

.captcha-image {
    cursor: pointer;
}

.captcha-image img {
    height: 40px;
    border-radius: 4px;
}

.login-btn {
    width: 100%;
    height: 40px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: #40a9ff;
}

/* 主页面布局 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background-color: #001529;
    color: #fff;
    min-height: 100vh;
}

.sidebar-logo {
    padding: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #1f1f1f;
}

.sidebar-menu {
    padding: 16px 0;
}

.sidebar-item {
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-item:hover {
    background-color: #1890ff;
}

.sidebar-item.active {
    background-color: #1890ff;
    border-right: 3px solid #ffd666;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.header {
    height: 64px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 500;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-success {
    background-color: #52c41a;
    color: #fff;
}

.btn-success:hover {
    background-color: #73d13d;
}

.btn-danger {
    background-color: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background-color: #ff7875;
}

.btn-default {
    background-color: #fff;
    border: 1px solid #d9d9d9;
    color: #333;
}

.btn-default:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background-color: #fafafa;
    font-weight: 500;
    color: #333;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 表单样式 */
.form-container {
    max-width: 600px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-col {
    flex: 1;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-group textarea {
    height: auto;
    padding: 8px 12px;
    resize: vertical;
    min-height: 80px;
}

/* 搜索框样式 */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-form .form-group {
    margin-bottom: 0;
}

.search-form input,
.search-form select {
    width: 200px;
}

/* 状态标签样式 */
.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-pending {
    background-color: #fff2e8;
    color: #fa8c16;
}

.status-approved {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-rejected {
    background-color: #fff1f0;
    color: #ff4d4f;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 24px;
    gap: 8px;
}

.pagination button {
    width: 32px;
    height: 32px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination button.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* 弹框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    min-width: 400px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* 详情页样式 */
.detail-section {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item {
    display: flex;
    margin-bottom: 12px;
}

.detail-label {
    width: 120px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .search-form input,
    .search-form select {
        width: 100%;
    }
}