* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 登录页面样式 */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 400px;
    overflow: hidden;
}

.login-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo {
    height: 30px;
    width: auto;
}

.divider {
    color: #bdc3c7;
    font-weight: bold;
}

.system-name {
    font-size: 18px;
    font-weight: bold;
}

.login-form {
    padding: 30px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.demo-accounts {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.demo-accounts h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 仪表盘样式 */
.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    background: #34495e;
    padding: 10px 20px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #3498db;
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-header h1 {
    color: #2c3e50;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d35400;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table th {
    background: #34495e;
    color: white;
    font-weight: bold;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 表单样式 */
.form-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 300px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* 状态标签 */
.status-pending {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-approved {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-rejected {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* 页脚样式 */
.footer {
    background-color: transparent; /* 设置背景完全透明 */
    border: none; /* 可选：移除边框 */
    color: transparent; /* 文字颜色改为深色 */
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

.beian-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: transparent; /* 备案信息文字颜色 */
}

.beian-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
}

/* 确保图片与文字对齐 */
.beian-info span {
    display: flex;
    align-items: center;
    height: 20px;
    line-height: 20px;
    color: #2c3e50; /* 备案信息文字颜色 */
}

.divider {
    color: #7f8c8d; /* 分隔符颜色调整为灰色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        width: 95%;
        margin: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .content-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}