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

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #1890ff;
}

/* 表单样式 */
.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.form-item {
    flex: 1;
    margin-right: 20px;
}

.form-item:last-child {
    margin-right: 0;
}

label {
    display: inline-block;
    width: 100px;
    text-align: right;
    margin-right: 10px;
    font-weight: normal;
}

input[type="text"], input[type="password"], input[type="number"], select, textarea {
    width: calc(100% - 110px);
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

input[type="checkbox"] {
    margin-right: 5px;
}

.checkbox-label {
    width: auto;
}

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

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

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

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

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

.btn-orange {
    background-color: #fa8c16;
    color: white;
}

.btn-orange:hover {
    background-color: #ffa940;
}

/* 列表样式 */
.list-container {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    width: 200px;
    margin-right: 10px;
}

.actions {
    display: flex;
    gap: 10px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

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

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

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

/* 操作列 */
.operate-btn {
    margin-right: 8px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.operate-btn.edit {
    background-color: #1890ff;
    color: white;
}

.operate-btn.delete {
    background-color: #ff4d4f;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-item {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    input[type="text"], input[type="password"], input[type="number"], select, textarea {
        width: 100%;
    }
}
